Merge strftime.c changes from glibc
[gnulib.git] / ChangeLog
blob71a23cbec4b45d1e03a2088274ac978798f9d771
1 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3         Merge strftime.c changes from glibc
4         This incorporates:
5         2017-11-14 [BZ #10871] Implement alternative month names
6         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
7         2017-06-20 Use locale_t, not __locale_t, throughout glibc
8         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
9         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
10         Use locale_t, not __locale_t.
11         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
12         (__strftime_internal): Add support for alternate months.
14 2018-01-23  Bruno Haible  <bruno@clisp.org>
16         doc: Mention another prerequisite for using Gnulib.
17         Reported at <https://stackoverflow.com/questions/48378214/>.
18         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19         AC_CONFIG_HEADERS.
21 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
23         build: GuixSD doesn't have /bin/bash
24         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
26 2018-01-21  Bruno Haible  <bruno@clisp.org>
28         Avoid test failures on Microsoft Windows Subsystem for Linux.
29         * tests/test-fcntl.c (main): Allow a different errno.
30         * tests/test-rename.h (test_rename): Likewise.
31         * tests/test-renameat.c (main): Likewise.
32         * tests/test-renameat2.c (main): Likewise.
34 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
36         filenamecat: make base a suffix of result
37         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
38         (mfile_name_concat): Always make BASE a suffix of the result, as
39         cp expects this.  To implement this, separate with '.' instead of
40         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
41         * tests/test-filenamecat.c (main): Adjust tests to match
42         current behavior.  Check that BASE_IN_RESULT points to
43         a copy of BASE and is a suffix of the resultk, and that DIR
44         is a prefix of the result that is no longer than the prefix
45         indicated by BASE_IN_RESULT.
47 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
49         update-copyright: Handle use of ©
50         * build-aux/update-copyright ($circle_c_re): Update regex to
51         handle use of © in headers.
53 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
55         Fix -Wundef warning in user-included header lib/cdefs.h.
56         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
58 2018-01-04  Bruno Haible  <bruno@clisp.org>
60         pthread_sigmask: Avoid compilation error on mingw.
61         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
62         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
63         macro.
65 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
67         test-framework-sh: ‘ps -ef’, not ‘ps ef’
68         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
69         Suggested by Bob Proulx (Bug#29968).
70         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
72 2018-01-02  Eric Blake  <eblake@redhat.com>
74         stat-time: silence -Wunused-parameter regression
75         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
76         Prefer attribute over cast-to-void.
77         (stat_time_normalize): Mark st as potentially unused.
79 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
81         test-framework-sh: avoid netstat
82         Problem reported by Kristýna Streitová (Bug#29947).
83         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
84         deprecated on SuSE and it's not that important anyway.
86 2018-01-01  Jim Meyering  <meyering@fb.com>
88         update-copyright: add code to handle more special cases
89         After running "make update-copyright" this year, five files
90         required additional manual changes.  Automate those adjustments
91         for next year.
92         * Makefile (_year_and_prev): Define.
93         (update-copyright): Add perl commands to induce this year's post-
94         update-copyright adjustments.
96 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
98         version-etc: new year
99         * build-aux/gendocs.sh (version):
100         * doc/gendocs_template:
101         * doc/gendocs_template_min:
102         * doc/gnulib.texi:
103         * lib/version-etc.c (COPYRIGHT_YEAR):
104         Update copyright dates by hand in templates and the like.
106         maint: fix 'make update-copyright'
107         * Makefile (update-copyright): Adjust to 2016-11-23 change
108         to config/srclist-update, which changed the format of srclist.txt.
110 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
112         chdir-safer: remove this module
113         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
114         * NEWS: Document removal.
115         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
116         * modules/chdir-safer: Remove these files.
118 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
120         Add cross-compilation results for GNU/Hurd.
121         * m4/calloc.m4: Add GNU/Hurd guess.
122         * m4/cbrtl.m4: Likewise.
123         * m4/ceil.m4: Likewise.
124         * m4/ceilf.m4: Likewise.
125         * m4/ceill.m4: Likewise.
126         * m4/chown.m4: Likewise.
127         * m4/duplocale.m4: Likewise.
128         * m4/exp2l.m4: Likewise.
129         * m4/expm1.m4: Likewise.
130         * m4/fchdir.m4: Likewise.
131         * m4/floor.m4: Likewise.
132         * m4/floorf.m4: Likewise.
133         * m4/fmod.m4: Likewise.
134         * m4/fmodf.m4: Likewise.
135         * m4/fmodl.m4: Likewise.
136         * m4/getcwd.m4: Likewise.
137         * m4/getgroups.m4: Likewise.
138         * m4/gettimeofday.m4: Likewise.
139         * m4/hypot.m4: Likewise.
140         * m4/hypotf.m4: Likewise.
141         * m4/hypotl.m4: Likewise.
142         * m4/link-follow.m4: Likewise.
143         * m4/link.m4: Likewise.
144         * m4/linkat.m4: Likewise.
145         * m4/log.m4: Likewise.
146         * m4/log10.m4: Likewise.
147         * m4/log10f.m4: Likewise.
148         * m4/log1p.m4: Likewise.
149         * m4/log1pf.m4: Likewise.
150         * m4/log1pl.m4: Likewise.
151         * m4/log2.m4: Likewise.
152         * m4/log2f.m4: Likewise.
153         * m4/logf.m4: Likewise.
154         * m4/lstat.m4: Likewise.
155         * m4/malloc.m4: Likewise.
156         * m4/mbrlen.m4: Likewise.
157         * m4/mbrtowc.m4: Likewise.
158         * m4/mkdir.m4: Likewise.
159         * m4/mkfifo.m4: Likewise.
160         * m4/mknod.m4: Likewise.
161         * m4/mkstemp.m4: Likewise.
162         * m4/modf.m4: Likewise.
163         * m4/modff.m4: Likewise.
164         * m4/modfl.m4: Likewise.
165         * m4/printf.m4: Likewise.
166         * m4/pselect.m4: Likewise.
167         * m4/ptsname.m4: Likewise.
168         * m4/putenv.m4: Likewise.
169         * m4/readlink.m4: Likewise.
170         * m4/realloc.m4: Likewise.
171         * m4/remainder.m4: Likewise.
172         * m4/remainderf.m4: Likewise.
173         * m4/remainderl.m4: Likewise.
174         * m4/rmdir.m4: Likewise.
175         * m4/round.m4: Likewise.
176         * m4/roundf.m4: Likewise.
177         * m4/roundl.m4: Likewise.
178         * m4/select.m4: Likewise.
179         * m4/setenv.m4: Likewise.
180         * m4/signbit.m4: Likewise.
181         * m4/sleep.m4: Likewise.
182         * m4/stat.m4: Likewise.
183         * m4/strerror.m4: Likewise.
184         * m4/strtok_r.m4: Likewise.
185         * m4/symlink.m4: Likewise.
186         * m4/symlinkat.m4: Likewise.
187         * m4/trunc.m4: Likewise.
188         * m4/truncf.m4: Likewise.
189         * m4/truncl.m4: Likewise.
190         * m4/tzset.m4: Likewise.
191         * m4/ungetc.m4: Likewise.
192         * m4/usleep.m4: Likewise.
193         * m4/wcwidth.m4: Likewise.
195 2017-12-28  Bruno Haible  <bruno@clisp.org>
197         gnulib-tool: Make --conditional-dependencies work better.
198         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
199         * gnulib-tool (Options): Don't reject the combination of
200         --conditional-dependencies with --with-tests.
201         (func_emit_autoconf_snippets): Add argument referenceable_modules.
202         Don't reference $modules.
203         (func_import, func_create_testdir): Pass it.
205 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
207         regex: use re_malloc etc. consistently
208         Problem and original patch reported by Arnold Robbins in:
209         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
210         * lib/regcomp.c (re_comp):
211         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
212         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
214 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
215             Paul Eggert  <eggert@cs.ucla.edu>
217         glob: Silence warning about void pointer arithmetic.
218         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
219         arithmetic.
221 2017-12-15  Bruno Haible  <bruno@clisp.org>
223         spawn-pipe: Silence a clang warning.
224         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
225         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
226         in this file.
228 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
230         explicit_bzero: port to macOS + Clang 9.0.0
231         Problem reported by Marcus Johnson (Bug#29658).
232         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
233         Don’t use asm.
235 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
237         doc: Improve explanation of supporting relocatable libraries.
238         * doc/relocatable-maint.texi (Supporting Relocation): Explain
239         properly how to build the relocatable module for
240         libraries. (Method and example code from Bruno Haible.)
242 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
244         doc: Use better texinfo tags in a few cases.
245         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
246         instead of @samp in a few places.
248 2017-12-11  Bruno Haible  <bruno@clisp.org>
250         unistr/base: Update comment.
251         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
253 2017-12-10  Pádraig Brady  <P@draigBrady.com>
255         test-faccessat.c: unlink temp file to avoid subsequent test failure
256         * tests/test-faccessat.c: Remove the file to avoid failure
257         to open the file on subsequent runs due to being created
258         with no permissions.
260 2017-12-10  Bruno Haible  <bruno@clisp.org>
262         doc: New sect. "Modifying the build rules of a Gnulib import directory".
263         * doc/gnulib-tool.texi (Modified build rules): New node.
265 2017-12-10  Bruno Haible  <bruno@clisp.org>
267         doc: Tweak wording.
268         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
269         "binaries".
271 2017-12-05  Sam Steingold  <sds@gnu.org>
272             Bruno Haible  <bruno@clisp.org>
274         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
275         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
276         AC_EGREP_CPP pattern.
278 2017-12-03  Bruno Haible  <bruno@clisp.org>
280         all: Replace more http URLs by https URLs.
281         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
282         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
283         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
284         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
286 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
288         Port better to CentOS 5
289         Problems reported by Tom G. Christensen in:
290         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
291         * doc/glibc-functions/strverscmp.texi (strverscmp):
292         Document strverscmp bug with glibc 2.9 and earlier.
293         * doc/posix-functions/tzset.texi (tzset):
294         Document that TZ with angle brackets is POSIX-2001 and later.
295         * tests/test-nstrftime.c: Include unistd.h.
296         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
297         (TZ): Use it to skip tests with angle brackets in TZ,
298         for older systems.
300         stat: add missing module dependencies
301         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
302         Add stat-time.
304 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
306         stat: fix compilation failure on macOS Sierra
307         Reported by Marius Schamschula <mschamschula@gmail.com> in:
308         https://savannah.gnu.org/bugs/?52546
309         * lib/stat.c: Add missing include of stat-time.h.
311 2017-11-28  Jim Meyering  <meyering@fb.com>
313         test-faccessat.c: correct BASE definition to avoid parallel test failure
314         * tests/test-faccessat.c (BASE): Define using this file's name, not
315         that of test-lstat.c.  Using the latter caused this test to fail
316         sometimes when run concurrently with test-lstat.
318 2017-11-27  Daiki Ueno  <ueno@gnu.org>
320         unicase: fix VPATH build
321         * modules/unicase/special-casing (Makefile.am): Ensure that the
322         base directory is created when generating
323         unicase/special-casing.h.
325 2017-11-27  Daiki Ueno  <ueno@gnu.org>
327         libunistring: update to Unicode 9.0.0
328         * lib/gen-uni-tables.c (fill_properties): Recognize
329         Sentence_Terminal and Prepended_Concatenation_Mark.
330         (is_property_default_ignorable_code_point): Exclude U+08E2.
331         (fill_arabicshaping): Allow missing whitespace when parsing;
332         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
333         (output_blocks): Increase the element size of the level1 table to
334         accommodate more blocks.
335         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
336         Update each class according to the standard.
337         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
338         E_Base_GAZ characters.
339         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
340         Glue_After_Zwj, and E_Base_GAZ characters.
341         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
342         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
343         enum value.
344         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
345         value.
346         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
347         LBP_ZWJ, LBP_EB, and LBP_EM.
348         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
349         enum value.
350         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
351         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
352         declaration.
353         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
354         (uniwbrk_table): Implement WB14.
355         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
356         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
357         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
358         uc-is-grapheme-break.
359         * modules/unigbrk/uc-grapheme-breaks: New module.
360         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
361         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
362         enum value.
363         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
364         * lib/unigbrk/u-grapheme-breaks.h: New file.
365         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
366         u-grapheme-breaks.h instead of uc_is_grapheme_break.
367         * lib/unigbrk/uc-grapheme-breaks.c: New file.
368         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
369         29.
370         * tests/unigbrk/test-uc-gbrk-prop.c
371         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
372         GBP_GAZ, and GBP_EBG.
373         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
374         * tests/unigbrk/test-uc-is-grapheme-break.c
375         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
376         GBP_GAZ, and GBP_EBG.
377         (main): Skip unsupported rules involving 3 or more characters,
378         namely GB10, GB12, and GB13.
379         * lib/uniwidth/width.c (nonspacing_table_data): Update.
380         * all generated files under lib/uni* and tests/uni*: Regenerate.
381         * all the affected modules: Bump version.
383 2017-11-26  Bruno Haible  <bruno@clisp.org>
385         strfmon_l: Fix compilation error with glibc 2.5.
386         Reported by Tom G. Christensen <tgc@jupiterrise.com>
387         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
388         * lib/monetary.in.h: Include also <locale.h>.
390 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
392         posixtm: remove PDS_LEADING_YEAR
393         This changes the API slightly, in a hopefully-innocuous way.
394         Without this change the code had undefined behavior when a
395         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
396         Problem reported by Pádraig Brady in:
397         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
398         * NEWS: Mention this.
399         * lib/posixtm.c (posix_time_parse): Treat the absence of
400         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
401         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
402         present, but define it as zero, for compatibility with existing
403         source code).  All other PDS_* values moved up.
404         * tests/test-posixtm.c (LY): New macro.
405         (T): Use it.  Do not expect a particular numeric encoding
406         for PDS_CENTURY etc.
408 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
410         stat: work around Solaris bug with tv_nsec < 0
411         * doc/posix-functions/fstat.texi (fstat):
412         * doc/posix-functions/fstatat.texi (fstatat):
413         * doc/posix-functions/lstat.texi (lstat):
414         * doc/posix-functions/stat.texi (stat):
415         Mention Solaris 11 bug.
416         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
417         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
418         * lib/lstat.c (rpl_lstat):
419         * lib/stat.c (rpl_stat):
420         Normalize resulting timestamps.
421         * lib/fstatat.c (normal_fstatat): New function.
422         (rpl_fstatat): Use it.
423         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
424         (stat_time_normalize): New function.
425         * m4/fstat.m4 (gl_FUNC_FSTAT):
426         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
427         * m4/lstat.m4 (gl_FUNC_LSTAT):
428         * m4/stat.m4 (gl_FUNC_STAT):
429         Replace on Solaris.
430         * modules/fstat (Depends-on):
431         * modules/fstatat (Depends-on):
432         Add stat-time.
433         * modules/stat-time (Depends-on): Add errno, intprops.
435 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
437         regex: merge from glibc
438         * lib/regcomp.c (init_word_char): Add comments.
440 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
442         regex: merge from glibc
443         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
444         * lib/regex_internal.h (internal_function): Remove.
445         All uses removed.
447 2017-11-20  Bruno Haible  <bruno@clisp.org>
449         crypto/gc-sm3: Fix buffer overrun.
450         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
451         Reported by Coverity.
453 2017-11-12  Jim Meyering  <meyering@fb.com>
455         maint: shorten https://lists.gnu.org/archive/html/... links
456         Each /archive/html/ part can be replace with /r/.
457         Run this to induce the change:
458         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
459         * ChangeLog: Perform that substitution.
460         * Makefile: Likewise.
461         * STATUS-libposix: Likewise.
462         * build-aux/bootstrap: Likewise.
463         * doc/maintain.texi: Likewise.
464         * gnulib-tool: Likewise.
465         * lib/allocator.h: Likewise.
466         * lib/argp-ba.c: Likewise.
467         * lib/argp-pv.c: Likewise.
468         * lib/canon-host.c: Likewise.
469         * lib/canonicalize-lgpl.c: Likewise.
470         * lib/float.in.h: Likewise.
471         * lib/fstat.c: Likewise.
472         * lib/getdelim.c: Likewise.
473         * lib/getprogname.c: Likewise.
474         * lib/glthread/thread.h: Likewise.
475         * lib/intprops.h: Likewise.
476         * lib/mbsrtowcs-state.c: Likewise.
477         * lib/safe-read.c: Likewise.
478         * lib/signal.in.h: Likewise.
479         * lib/stat.c: Likewise.
480         * lib/stdbool.in.h: Likewise.
481         * lib/stdio-impl.h: Likewise.
482         * lib/stdio.in.h: Likewise.
483         * lib/sysexits.in.h: Likewise.
484         * lib/timespec.h: Likewise.
485         * lib/wcsrtombs-state.c: Likewise.
486         * m4/alloca.m4: Likewise.
487         * m4/extern-inline.m4: Likewise.
488         * m4/fstatat.m4: Likewise.
489         * m4/gnulib-common.m4: Likewise.
490         * m4/lib-ignore.m4: Likewise.
491         * m4/printf.m4: Likewise.
492         * m4/regex.m4: Likewise.
493         * m4/stat-size.m4: Likewise.
494         * m4/std-gnu11.m4: Likewise.
495         * m4/stdbool.m4: Likewise.
496         * m4/sys_types_h.m4: Likewise.
497         * m4/threadlib.m4: Likewise.
498         * m4/vararrays.m4: Likewise.
499         * pygnulib/GLImport.py: Likewise.
500         * tests/test-exp.h: Likewise.
501         * tests/test-exp2.h: Likewise.
502         * tests/test-expm1.h: Likewise.
503         * tests/test-fflush2.c: Likewise.
504         * tests/test-getopt_long.h: Likewise.
505         * tests/test-intprops.c: Likewise.
506         * tests/test-log.h: Likewise.
507         * tests/test-log10.h: Likewise.
508         * tests/test-log1p.h: Likewise.
509         * tests/test-log2.h: Likewise.
510         * tests/test-printf-posix.h: Likewise.
511         * tests/test-regex.c: Likewise.
512         * tests/test-snprintf-posix.h: Likewise.
513         * tests/test-sprintf-posix.h: Likewise.
514         * tests/test-stdalign.c: Likewise.
515         * tests/test-stdbool.c: Likewise.
516         * tests/test-vasnprintf-posix.c: Likewise.
517         * tests/test-vasprintf-posix.c: Likewise.
518         * top/maint.mk: Likewise.
520 2017-11-12  Bruno Haible  <bruno@clisp.org>
522         faccessat: Make the last change more robust.
523         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
524         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
526 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
528         faccessat: port to macOS (Bug#29231)
529         macOS faccessat has the same bug that lstat does: if the file
530         name ends in '/' it ignores the trailing slash.
531         Problem reported for Emacs by Vincent Zhang.
532         * doc/posix-functions/faccessat.texi (faccessat): Document this.
533         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
534         around the initial includes.  Include errno.h, string.h, sys/stat.h.
535         (orig_faccessat) [HAVE_FACCESSAT]: New function.
536         Include "unistd.h" after defining it.
537         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
538         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
539         Handle in the usual way.
540         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
541         lstat dereferences symlinks, since faccessat is likely to
542         have the same problem.
543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
544         * modules/faccessat (Depends-on): Add fstatat.
545         Depend if REPLACE_FACCESSAT is 1, too.
546         (configure.ac): Link if REPLACE_FACCESSAT is 1.
547         * modules/faccessat-tests (Depends-on): Add symlink.
548         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
549         * tests/test-faccessat.c (main): Test for the bug.
551 2017-11-11  Bruno Haible  <bruno@clisp.org>
553         getprogname: Fix compilation error on IRIX.
554         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
555         'namesize'.
557 2017-11-11  Bruno Haible  <bruno@clisp.org>
559         year2038: Tweak last patch.
560         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
562 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
564         year2038: be more insistent about 64-bit time_t
565         Applications requiring access to arbitrary files should not be
566         built with 32-bit time_t on hosts that have 64-bit timestamps,
567         as this can lead to real trouble at runtime.
568         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
569         Check on all systems, not just MinGW.  Use a heuristic involving
570         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
571         output a failure or just a warning, to make it more likely that
572         builders will select 64-bit time_t.
574 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
576         havelib: fix typo in previous change
577         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
579         Don’t use AC_EGREP_CPP if affected by CFLAGS
580         * m4/float_h.m4 (gl_FLOAT_H):
581         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
582         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
583         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
584         * m4/year2038.m4 (gl_YEAR2038):
585         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
586         likely to be affected by the choice of CFLAGS, since CFLAGS are
587         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
588         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
590         fstatat: pacify GCC on unusual platform
591         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
592         Omit, as it’s unused in this case.
594 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
596         timespec: prefer ‘assume’ to ‘assure’
597         This avoids some runtime tests.  The rest of the module makes
598         similar assumptions and there is little point to testing here.
599         * lib/timespec.h: Include verify.h instead of assure.h.
600         (timespec_cmp): Use ‘assume’, not ‘assure’.
601         Also, remove an unnecessary cast to ‘int’, as lots of other
602         code in this module now causes -Wconversion to complain, and
603         this is a problem with -Wconversion not with the code.
605         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
607         Port recent gnulib-tool change to Dash
608         * gnulib-tool (func_create_testdir): Don't assume that the shell
609         retokenizes after expanding "$@" inside the call to
610         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
612 2017-10-27  Jim Meyering  <meyering@fb.com>
614         timespec.h: use "assure" to avoid a spurious warning
615         * lib/timespec.h: Include "assure.h" and use it to help
616         gcc7's -Wstrict-overflow avoid a false positive warning
617         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
618         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
619         * modules/timespec (Depends-on): Add assure.
621 2017-10-29  Bruno Haible  <bruno@clisp.org>
623         Avoid several test failures with traditional locales on Haiku.
624         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
625         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
626         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
627         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
628         LOCALE_ZH_CN=none.
630 2017-10-29  Bruno Haible  <bruno@clisp.org>
632         strerror_r-posix: Fix behaviour and test failure on Haiku.
633         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
634         are positive. Work around return value 0 instead of ERANGE on Haiku.
635         For unknown error numbers, use a format string consistent with perror().
636         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
637         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
638         are positive.
640 2017-10-29  Bruno Haible  <bruno@clisp.org>
642         get-rusage-data: Avoid crash on Haiku.
643         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
645 2017-10-29  Bruno Haible  <bruno@clisp.org>
647         get-rusage-as: Avoid crash on Haiku.
648         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
650 2017-10-29  Bruno Haible  <bruno@clisp.org>
652         ilogbl: Ensure replacement on Haiku.
653         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
654         REPLACE_ILOGBL if ilogbl does not work.
655         (gl_FUNC_ILOGBL_WORKS): New macro.
656         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
658         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
659         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
660         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
662 2017-10-29  Bruno Haible  <bruno@clisp.org>
664         expl: Ensure replacement on Haiku.
665         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
666         zero.
667         * doc/posix-functions/expl.texi: Mention the Haiku problem.
669 2017-10-29  Bruno Haible  <bruno@clisp.org>
671         math: Fix test failure on Haiku.
672         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
673         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
674         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
675         * doc/posix-headers/math.texi: Mention the Haiku problem.
677 2017-10-29  Bruno Haible  <bruno@clisp.org>
679         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
680         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
681         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
683 2017-10-29  Bruno Haible  <bruno@clisp.org>
685         crypto/*: Verify that the header file is self-contained.
686         * tests/test-gc-*.c: Include the module's header file immediately after
687         <config.h>.
688         * tests/test-hmac-*.c: Likewise.
689         * tests/test-arcfour.c: Likewise.
690         * tests/test-arctwo.c: Likewise.
691         * tests/test-des.c: Likewise.
692         * tests/test-md2.c: Likewise.
693         * tests/test-md4.c: Likewise.
694         * tests/test-md5.c: Likewise.
695         * tests/test-rijndael.c: Likewise.
696         * tests/test-sha1.c: Likewise.
697         * tests/test-sm3.c: Likewise.
699 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
700             Bruno Haible  <bruno@clisp.org>
702         crypto/gc: fix build failure with -Werror=suggest-attribute=const
703         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
705 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
707         New module: crypto/gc-sm3
708         * lib/gc.h: Declare SM3-related stuffs.
709         * lib/gc-gnulib.c: Support sm3 in internal functions.
710         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
711         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
712         * modules/crypto/gc-sm3: Define gc-sm3 module.
713         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
714         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
715         * MODULES.html.sh: List gc-sm3 module.
717 2017-10-29  Bruno Haible  <bruno@clisp.org>
719         random, random_r: Mention different prototypes on Haiku.
720         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
721         * doc/glibc-functions/random_r.texi: Likewise.
722         * doc/glibc-functions/initstate_r.texi: Likewise.
723         * doc/glibc-functions/setstate_r.texi: Likewise.
725 2017-10-28  Bruno Haible  <bruno@clisp.org>
727         posix_spawn: Avoid spurious message in configure output.
728         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
729         'cmp' command.
731 2017-10-28  Bruno Haible  <bruno@clisp.org>
733         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
734         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
735         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
737 2017-10-28  Bruno Haible  <bruno@clisp.org>
739         ioctl: Override non-POSIX declaration on Haiku.
740         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
741         * lib/sys_ioctl.in.h: Add comment about Haiku.
742         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
743         * doc/glibc-headers/sys_ioctl.texi: Likewise.
745 2017-10-28  Bruno Haible  <bruno@clisp.org>
747         crypto/sm3: Add overview documentation to the .h file.
748         * lib/sm3.h: Add comments.
750 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
752         New module: crypto/sm3
753         This new module can be used to compute SM3 message digest of files or
754         memory blocks according to the specification GM/T 004-2012
755         Cryptographic Hash Algorithm SM3, published by State Cryptography
756         Administration, China.
757         The official SM3 cryptographic hash algorithm specification is
758         available at
759         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
760         * lib/sm3.h: Declare the APIs of sm3 module.
761         * lib/sm3.c: Implement SM3 hash algorithm.
762         * m4/sm3.m4: m4 file for sm3 module.
763         * modules/crypto/sm3: Define sm3 module.
764         * tests/test-sm3.c: Implement SM3 test case.
765         * modules/crypto/sm3-tests: Define sm3 test module.
766         * MODULES.html.sh: List sm3 module.
768 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
770         gc-libgcrypt: fix undefined enum type in switch statement
771         Resolve the following build failure:
772         lib/gc-libgcrypt.c: In function 'gc_hash_open':
773         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
774         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
775              case 0:
776              ^~~~
777         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
778         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
780 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
782         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
783         Resolve the following build failure:
784         lib/gc-libgcrypt.c: In function 'gc_hash_read':
785         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
786         in signedness [-Werror=pointer-sign]
787             digest = gcry_md_read (ctx->gch, 0);
788                    ^
789         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
791 2017-10-26  Bruno Haible  <bruno@clisp.org>
793         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
794         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
795         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
797 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
799         glob: fix another heap buffer overflow
800         Problem reported by Tim Rühsen in:
801         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
802         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
804 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
806         quotearg: pacify compiler re unsigned
807         * lib/quotearg.c (quotearg_n_options):
808         Rewrite to avoid diagnostic from overly-picky compiler.
809         Problem reported by Sami Kerola in:
810         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
812         glob: fix heap buffer overflow
813         * lib/glob.c (glob): Fix off-by-one error introduced into
814         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
815         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
816         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
817         Fix suggested by Bruno Haible.
819 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
821         glob: pacify fuzzer for mempcpy
822         Problem reported by Tim Rühsen in:
823         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
824         * lib/glob.c (glob): Do not pass NULL to mempcpy.
826 2017-10-12  Bruno Haible  <bruno@clisp.org>
828         doc: Fix syntax error (regression from 2017-10-03).
829         * doc/posix-functions/strncpy.texi: Fix syntax error.
831 2017-10-12  Bruno Haible  <bruno@clisp.org>
833         doc: Update for Solaris 11.3.
834         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
835         mention Solaris 11.3.
836         * m4/log2.m4: Fix comments.
837         * m4/log2f.m4: Likewise.
838         * m4/printf.m4: Update comments.
839         * m4/rename.m4: Likewise.
840         * m4/strncat.m4: Likewise.
842         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
844 2017-10-10  Bruno Haible  <bruno@clisp.org>
846         doc: Improve doc about ioctl.
847         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
848         prototype.
850 2017-10-09  Bruno Haible  <bruno@clisp.org>
852         wcwidth: Don't use obsolete syntax of 'test'.
853         Reported by Eric Blake.
854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
855         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
857 2017-10-09  Bruno Haible  <bruno@clisp.org>
859         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
860         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
861         and Daniel P. Berrange <berrange@redhat.com>.
862         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
863         on glibc systems. The getopt-pfx-core.h file declares exactly what
864         unistd.h needs, nothing more.
866 2017-10-08  Bruno Haible  <bruno@clisp.org>
868         vma-iter: Improve support for FreeBSD.
869         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
870         vma_iterate.
871         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
873 2017-10-08  Bruno Haible  <bruno@clisp.org>
875         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
876         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
878 2017-10-07  KO Myung-Hun  <komh@chollian.net>
880         test-framework-sh: Fix 'invalid path dir' error.
881         On OS/2, a path separator is ';' not ':'. And ':' is used as a
882         separator between a drive letter and directory parts.
883         As a result, an absolute path such as x:/path/to/dir on OS/2 is
884         treated as an invalid path dir.
885         * tests/init.sh (PATH_SEPARATOR): Set at startup.
886         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
887         instead of hard coded ':'.
889 2017-10-07  Bruno Haible  <bruno@clisp.org>
891         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
892         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
893         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
894         (rof_open): On Linux, do multiple read() calls and make sure
895         MIN_LEFTOVER bytes are left when read() returns.
897 2017-10-07  Bruno Haible  <bruno@clisp.org>
899         vma-iter: Improve support for GNU/Hurd.
900         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
901         API, not the /proc file system.
903 2017-10-07  Bruno Haible  <bruno@clisp.org>
905         test-framework-sh: Don't require bash on Windows and OS/2.
906         Reported by KO Myung-Hun.
907         * tests/test-init.sh: Use 'shopt' only when running in bash.
909 2017-10-06  KO Myung-Hun  <komh@chollian.net>
911         wcwidth: check a macro version of wcwidth () as well
912         * lib/wchar.in.h: Revert commit from 2016-01-14.
913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
915 2017-10-06  Bruno Haible  <bruno@clisp.org>
917         getopt-posix: Clarify copyright header.
918         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
919         * lib/getopt-pfx-core.h: Likewise.
920         * lib/getopt-pfx-ext.h: Likewise.
921         * lib/getopt-cdefs.in.h: Likewise.
923 2017-10-03  Bruno Haible  <bruno@clisp.org>
925         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
926         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
927         gl_HOST_CPU_C_ABI.
929 2017-10-03  Bruno Haible  <bruno@clisp.org>
931         doc: warn about misuse of strncpy and wcsncpy.
932         * doc/posix-functions/strcpy.texi: Describe requirements on prior
933         memory allocation.
934         * doc/posix-functions/wcscpy.texi: Likewise.
935         * doc/posix-functions/strncpy.texi: Describe what this function is not
936         useful for.
937         * doc/posix-functions/wcsncpy.texi: Likewise.
939 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
941         fsuage: fix typo in previous change
942         * lib/fsusage.c: Remove stray include of full-read.h.
943         Problem reported by Sam Steingold for macOS (Bug#28669).
945 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
947         fsusage: remove SVR2 support
948         SVR2 was obsolete by 1986 and is no longer supported by anybody,
949         and its code was getting in the way of use of this module by
950         Emacs, which has its own ‘read’ function anyway.
951         * lib/fsusage.c: Do not include sys/filsys.h.
952         (get_fs_usage): Remove SVR2-specific code.
953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
954         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
955         * modules/fsusage (Depends-on): Do not depend on full-read.
957         Simplify autoupdate of licenses
958         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
959         place.
961 2017-10-01  Bruno Haible  <bruno@clisp.org>
963         vma-iter: Add support for GNU/Hurd.
964         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
965         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
967 2017-09-30  Bruno Haible  <bruno@clisp.org>
969         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
970         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
971         fail when module 'largefile' is in use.
972         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
973         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
974         Don't test HAVE_SYS_PROCFS_H.
976 2017-09-30  Bruno Haible  <bruno@clisp.org>
978         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
979         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
980         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
981         * modules/havelib (Depends-on): Add host-cpu-c-abi.
983 2017-09-30  Bruno Haible  <bruno@clisp.org>
985         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
986         * lib/uniname/uniname.c (unicode_name_character): Add braces around
987         scope of local variables.
989 2017-09-28  Bruno Haible  <bruno@clisp.org>
991         string: code style
992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
993         substitutable variables.
994         * modules/string (Makefile.am): Likewise.
996 2017-09-26  Bruno Haible  <bruno@clisp.org>
998         uniname/uniname-tests: Tighten code.
999         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
1000         local variables into one.
1002 2017-09-26  Bruno Haible  <bruno@clisp.org>
1004         vma-iter: Improvements for Linux and BSD platforms.
1005         - Add support for DragonFly BSD.
1006         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
1007         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
1008         Read the entire file into memory in a single system call.
1009         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
1010         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
1012 2017-09-26  Bruno Haible  <bruno@clisp.org>
1014         vma-iter: Provide the protection flags on FreeBSD.
1015         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
1016         skip three fields between the addresses and the protection flags.
1018 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1020         glob: remove bogus extern decl
1021         * lib/glob.c (__glob_pattern_type): Remove now-spurious
1022         extern declaration.  Problem reported by Adhemerval Zanella in:
1023         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
1025 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
1027         uniname/uniname-tests: integer overflow fix
1028         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
1029         Check for integer overflow.
1031         duplocale-tests: fix unlikely crash
1032         * tests/test-duplocale.c (get_locale_dependent_values):
1033         Don’t crash with absurdly long month names.
1035         maint: fix overflow checking in nap.h
1036         * modules/chown-tests:
1037         * modules/fchownat-tests, modules/fdutimensat-tests:
1038         * modules/futimens-tests, modules/lchown-tests:
1039         * modules/stat-time-tests, modules/utime-tests:
1040         * modules/utimens-tests, modules/utimensat-tests:
1041         Depend on intprops.
1042         * tests/nap.h: Include intprops.h.
1043         (diff_timespec): Handle overflow properly.
1045         sys_types: update URL
1046         * m4/sys_types_h.m4: Use https: URL.
1048         parse-datetime: fix dependency
1049         * modules/parse-datetime (Depends-on): Depend
1050         on nstrftime, not strftime.
1052         parse-datetime, posixtm: avoid uninit access
1053         * lib/parse-datetime.y (parse_datetime2):
1054         * lib/posixtm.c (posixtime):
1055         Do not access uninitialized storage, even though the resulting
1056         value is never used.
1058 2017-09-25  Bruno Haible  <bruno@clisp.org>
1060         vma-iter: Improvements for BSD platforms.
1061         - Add support for GNU/kFreeBSD.
1062         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
1063         - Speed up on OpenBSD.
1064         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
1065         (vma_iterate_bsd): New function.
1066         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
1067         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
1068         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
1069         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
1071 2017-09-23  Bruno Haible  <bruno@clisp.org>
1073         strfmon_l: New module.
1074         * modules/strfmon_l: New file.
1075         * lib/strfmon_l.c: New file.
1076         * m4/strfmon_l.m4: New file.
1077         * doc/posix-functions/strfmon_l.texi: Mention the new module.
1078         * modules/strfmon_l-tests: New file.
1079         * tests/test-strfmon_l.c: New file.
1081         monetary: New module.
1082         * modules/monetary: New file.
1083         * lib/monetary.in.h: New file.
1084         * m4/monetary_h.m4: New file.
1085         * doc/posix-headers/monetary.texi: Mention the new module.
1086         * modules/monetary-tests: New file.
1087         * tests/test-monetary.c: New file.
1088         * modules/monetary-c++-tests: New file.
1089         * tests/test-monetary-c++.cc: New file.
1090         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
1092 2017-09-23  Bruno Haible  <bruno@clisp.org>
1094         duplocale tests: Fix test crash on Linux/x86.
1095         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
1096         locale from the current thread before freeing it.
1098 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
1100         mktime: port to OpenVMS
1101         Problem reported by John E. Malmberg in:
1102         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
1103         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
1105 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1107         manywarnings: port to GCC on 64-bit MS-Windows
1108         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
1109         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
1110         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
1112 2017-09-13  Bruno Haible  <bruno@clisp.org>
1114         all: Replace many more http URLs by https URLs. Update stale URLs.
1115         * users.txt: Remove mention of 'newts'.
1116         * lib/localename.c: Update comment about LANG_SOTHO.
1118 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1120         all: Replace many http URLs by https URLs.
1122 2017-09-12  Bruno Haible  <bruno@clisp.org>
1124         doc: Prefer https URLs where possible.
1125         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
1126         * doc/ld-output-def.texi: Remove unavailable URL.
1128 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1130         maintainer-makefile: FTP -> HTTPS
1131         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
1132         of FTP, which is planned to be decommissioned on 2017-11-01.
1134 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
1136         libc-config: Fix __GNUC_PREREQ macro.
1137         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
1138         __GNUC_MINOR.
1140 2017-09-09  Bruno Haible  <bruno@clisp.org>
1142         gnulib-tool: Simplify commit from 2015-08-20.
1143         * gnulib-tool (func_add_or_update): Remove local variable
1144         is_binary_file.
1146 2017-09-08  Bruno Haible  <bruno@clisp.org>
1148         stddef: Avoid conflict with system-defined max_align_t.
1149         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
1150         Reported by Werner Lemberg <wl@gnu.org> in
1151         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
1152         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
1153         (max_align_t): Define as a macro.
1154         (GNULIB_defined_max_align_t): New macro. Guards against multiple
1155         definitions of rpl_max_align_t in different copies of gnulib-generated
1156         <stddef.h>.
1158 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1160         libc-config: port to MSVC
1161         Problems reported by Gisle Vanem in:
1162         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
1163         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
1164         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
1165         * m4/__inline.m4: New file.
1166         * modules/libc-config (Files): Add it.
1167         (Depends-on): Use it.
1169         glob: Use enum for __glob_pattern_type result
1170         From a patch proposed by Adhemerval Zanella in:
1171         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
1172         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
1173         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
1174         * lib/glob_internal.h (__glob_pattern_type):
1175         * lib/glob.c (glob):
1176         * lib/glob_pattern_p.c (__glob_pattern_p):
1177         Use them.
1179         glob: fix for use in glibc
1180         Problem reported by Adhemerval Zanella in:
1181         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
1182         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
1183         Do not redefine if _LIBC.
1185 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1187         glob: fix bugs with long login names
1188         Problem reported by Adhemerval Zanella in:
1189         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
1190         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
1191         (glob): Use the same scratch buffer for both getlogin_r and
1192         getpwnam_r.  Don’t require preallocation of the login name.  This
1193         simplifies storage allocation, and corrects the handling of
1194         long login names.
1196 2017-09-02  Bruno Haible  <bruno@clisp.org>
1198         dirent: Update doc.
1199         * doc/posix-headers/dirent.texi: More concrete list of platforms.
1201 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1203         glob: fix getpwnam_r errno typo
1204         * lib/glob.c (glob): Fix longstanding misuse of errno after
1205         getpwnam_r, which returns an error number rather than setting
1206         errno.
1208         glob: fix typo in recent change
1209         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
1210         Fix recently-introduced typo.
1212 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1214         glob: don't save and restore errno unnecessarily
1215         * lib/glob.c (glob): Don't save and restore errno
1216         merely because we have getpwnam_r.
1218         glob: don't assume getpwnam_r
1219         * lib/glob.c (glob): Port recent patches to platforms
1220         lacking getpwnam_r.
1222         scratch_buffer: don’t use private glibc API
1223         Suggested by Florian Weimer in:
1224         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
1225         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
1226         * lib/scratch_buffer_grow.c: Rename to
1227         lib/malloc/scratch_buffer_grow.c.
1228         * lib/scratch_buffer_grow_preserve.c: Rename to
1229         lib/malloc/scratch_buffer_grow_preserve.c.
1230         * lib/scratch_buffer_set_array_size.c: Rename to
1231         lib/malloc/scratch_buffer_set_array_size.c.
1232         * lib/scratch_buffer.h: New file.
1233         * modules/scratch_buffer (Files, Makefile.am):
1234         Adjust to source-file renaming.
1236 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1238         glob: use scratch_buffer instead of extend_alloca
1239         Much of the lib/glob.c part of this patch comes from a glibc patch
1240         proposed by Adhemerval Zanella in:
1241         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
1242         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
1243         included via glob.h, does this for us now.
1244         (__set_errno): Remove, as libc-config does this for us now.
1245         Include <scratch_buffer.h>.
1246         (GETPW_R_SIZE_MAX): Remove.
1247         (glob): Use struct scratch_buffer instead of extend_alloca.
1248         * lib/glob.in.h: Include libc-config.h rather than
1249         including <sys/cdefs.h> conditionally.
1250         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
1251         (__glibc_unlikely, __restrict, weak_alias):
1252         Remove, as libc-config does this for us now.
1253         * m4/glob.m4 (gl_PREREQ_GLOB):
1254         Remove sys/cdefs.h tests; no longer needed.
1255         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
1256         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
1258         scratch_buffer: new module
1259         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
1260         * lib/scratch_buffer_grow_preserve.c:
1261         * lib/scratch_buffer_set_array_size.c:
1262         New files, copied from glibc with very minor changes that can be
1263         copied back.
1264         * modules/scratch_buffer: New file.
1266         libc-config: new module
1267         * MODULES.html.sh: Add libc-config.
1268         * lib/cdefs.h: New file, copied from the GNU C Library with very
1269         minor changes that can be copied back.
1270         * lib/libc-config.h, modules/libc-config: New files.
1272 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1274         glob: match dangling symlinks
1275         This fixes a bug I inadvertently introduced to Gnulib when I
1276         merged glibc glob back into gnulib on 2007-10-16.  This fix is
1277         inspired by a patch proposed for glibc by Adhemerval Zanella in:
1278         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
1279         * doc/posix-functions/glob.texi: Update list of affected platforms.
1280         * lib/glob.c (__lstat64): New macro.
1281         (is_dir): New function.
1282         (glob, glob_in_dir): Match symlinks even if they are dangling.
1283         (link_stat, link_exists_p): Remove.  All uses removed.
1284         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
1285         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
1286         * modules/glob-tests (Depends-on): Add symlink.
1287         * tests/test-glob.c: Include errno.h, unistd.h.
1288         (BASE): New macro.
1289         (main): Test dangling symlinks, if symlinks are supported.
1291         glob, backupfile: inode 0 is a valid inode number
1292         * doc/posix-functions/readdir.texi (readdir):
1293         * doc/posix-headers/dirent.texi (dirent.h):
1294         Document more readdir portability issues.
1295         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
1296         (numbered_backup): Don’t treat inode 0 any differently from
1297         other inode values.
1298         * lib/glob.c (struct readdir_result): Remove skip_entry member.
1299         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
1300         All uses removed.
1301         * modules/glob (Depends-on): Remove d-ino.
1303         glob: simplify symlink detection
1304         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
1305         uint8_t, as C99 does not require uint8_t.
1306         (struct readdir_result): Use it.  Do not define skip_entry unless
1307         it is needed; this saves a byte on platforms lacking d_ino.
1308         (readdir_result_type, readdir_result_skip_entry):
1309         New functions, replacing ...
1310         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
1311         ... these functions, which were removed.  This makes the callers
1312         easier to read.  All callers changed.
1313         (D_INO_TO_RESULT): Now empty if there is no d_ino.
1315 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1317         fts-tests: tag as a longrunning-test so not included by default
1318         * modules/fts-tests: This test takes about 20s on current systems,
1319         and uses about 285M of space on ext4.
1321 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1323         renameat2: fix compilation on alpine linux
1324         * m4/renameat.m4: Check for <linux/fs.h> presence.
1325         * lib/renameat2.h: Only include <linux/fs.h> if present.
1326         Reported by Assaf Gordon on Alpine Linux.
1328 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1330         glob: try to port recent changes to MS-Windows
1331         Problem reported by Bruno Haible in:
1332         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
1333         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
1334         * lib/glob.in.h (__glob_pattern_p): ... to here.
1336 2017-08-24  Eric Blake  <eblake@redhat.com>
1338         warnings: fix compilation with old autoconf
1339         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
1340         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
1341         AC_DEFUN.
1342         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
1343         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
1345 2017-08-24  Bruno Haible  <bruno@clisp.org>
1347         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
1348         * modules/glob (Depends-on): Add c99.
1350 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1352         glob: fix typo that broke platforms lacking d_ino
1353         This typo also hurt performance on GNU/Linux and similar hosts.
1354         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
1355         in previous change.
1357 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1359         glob: merge from glibc with Zanella glob changes
1360         Merge glob from glibc, with changes for glob proposed
1361         by Adhemerval Zanella in the thread starting here:
1362         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
1363         plus some fixes for this merge.
1364         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
1365         New files, ported from glibc.
1366         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
1367         with __restrict.
1368         (__size_t): Remove.  All uses replaced by size_t.
1369         (size_t): Define by defining __need_size_t and including <stddef.h>.
1370         This should work even in non-glibc platforms, where any name
1371         pollution is OK.
1372         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
1373         (struct stat64): Don’t worry about __GLOB_GNULIB.
1374         (glob, globfree, glob_pattern_p): Remove macros for
1375         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
1376         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
1377         but set errno.
1378         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
1379         removed since the glibc behavior works on null pointers.
1380         Do not include stdio.h; old SunOS is irrelevant now.
1381         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
1382         Include glob_internal.h.
1383         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
1384         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
1385         worked only coincidentally.
1386         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
1387         Remove macros; now done in glob.in.h.
1388         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
1389         (glob): Properly initialize glob structure with
1390         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
1391         Remove old code using SHELL since Bash no longer
1392         uses this.
1393         (glob, prefix_array): Separate MS code better.
1394         (glob, glob_in_dir): Use C99 decls before statements when glibc
1395         does.
1396         (glob_in_dir): Remove old Amiga and VMS code.
1397         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
1398         separate files.
1399         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
1400         (__glibc_unlikely):
1401         Move here from glob.c.
1402         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
1403         (weak_alias): New macro.
1404         (__size_t): Remove.  All uses replaced by size_t.
1405         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
1406         * modules/glob (Files): Add +lib/glob_internal.h,
1407         lib/glob_pattern_p.c, lib/globfree.c.
1408         (Depends-on): Remove snippet/arg-nonnull.
1410 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1412         glob: port to clang's Undefined Sanitizer
1413         Problem reported by Tim Rühsen in:
1414         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
1415         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
1416         (glob_in_dir): Do not rely on undefined behavior in accessing
1417         struct members beyond their bounds.  Use a flexible array member
1418         instead.
1420 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1422         vc-list-files: port to Solaris 10
1423         * build-aux/vc-list-files: Don't assume test -e works.
1425 2017-08-21  Karl Berry  <karl@freefriends.org>
1427         * doc/posix-functions/srandom.texi (srandom): typo }.
1429 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1431         git-version-gen: port to Solaris 10
1432         Problem reported by Dagobert Michelsen in:
1433         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
1434         * build-aux/git-version-gen (v_from_git):
1435         Use expr instead of shell substitution.
1437 2017-08-19  Bruno Haible  <bruno@clisp.org>
1439         host-cpu-c-abi: Improve detection of MIPS ABI.
1440         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
1441         _MIPS_SIM.
1443 2017-08-17  Bruno Haible  <bruno@clisp.org>
1445         hypot tests: Fix test failure on FreeBSD 11.0/x86.
1446         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
1448 2017-08-17  Bruno Haible  <bruno@clisp.org>
1450         float: Fix LDBL_MIN value on FreeBSD/x86.
1451         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
1453 2017-08-17  Bruno Haible  <bruno@clisp.org>
1455         random: Fix test compilation failure on Cygwin 1.5.25.
1456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
1457         HAVE_DECL_SETSTATE.
1458         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
1459         declared.
1460         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
1461         HAVE_DECL_SETSTATE.
1462         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
1463         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
1464         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
1465         * doc/posix-functions/random.texi: Likewise.
1466         * doc/posix-functions/setstate.texi: Likewise.
1467         * doc/posix-functions/srandom.texi: Likewise.
1469 2017-08-16  Bruno Haible  <bruno@clisp.org>
1471         stdnoreturn: Fix test compilation failure on Cygwin.
1472         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
1473         <stdnoreturn.h> replacement.
1474         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
1475         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
1477 2017-08-16  Bruno Haible  <bruno@clisp.org>
1479         thread: Fix conflict with pthread_sigmask module.
1480         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
1481         it's defined as a macro.
1482         * modules/thread (Depends-on): Add pthread_sigmask.
1484 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
1486         rename: port better to NetBSD
1487         * doc/posix-functions/rename.texi (rename): NetBSD 7
1488         does not have the link-count bug.
1489         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
1490         broken merely because rename ("a", "b") removes "a" when the two
1491         names are hard links to the same file.
1493 2017-08-16  Bruno Haible  <bruno@clisp.org>
1495         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
1496         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
1497         the target file names with '$(srcdir)/'.
1498         * modules/unicase/locale-language (Makefile.am): Likewise.
1499         * modules/unicase/special-casing (Makefile.am): Likewise.
1500         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
1501         * modules/unictype/category-byname (Makefile.am): Likewise.
1502         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
1503         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
1504         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
1505         * modules/unictype/property-byname (Makefile.am): Likewise.
1506         * modules/unictype/scripts (Makefile.am): Likewise.
1507         * modules/uninorm/composition (Makefile.am): Likewise.
1509 2017-08-16  Bruno Haible  <bruno@clisp.org>
1511         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
1512         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
1513         value for OpenBSD.
1515 2017-08-16  Bruno Haible  <bruno@clisp.org>
1517         rename, renameat: Update doc regarding NetBSD.
1518         * doc/posix-functions/rename.texi: Clarify that when using
1519         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
1520         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
1521         version.
1523 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1525         renameat2: port better to macOS
1526         * lib/renameat2.c (renameat2): Use renameatx_np if available.
1528         futimens: don’t assume struct timespec layout
1529         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
1530         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
1531         * tests/test-fdutimensat.c (main):
1532         * tests/test-futimens.h (test_futimens):
1533         * tests/test-lutimens.h (test_lutimens):
1534         * tests/test-utimens.h (test_utimens):
1535         * tests/test-utimensat.c (main):
1536         Don’t assume that struct timespec is a two-member structure in
1537         tv_sec, tv_nsec order.  Although this is true on all platforms we
1538         know about, POSIX does not guarantee it.
1540         rename: document+test NetBSD rename
1541         Test failure reported by Bruno Haible in:
1542         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
1543         This is an area where NetBSD is better-behaved than POSIX,
1544         so allow the NetBSD behavior in tests.
1545         * doc/posix-functions/rename.texi:
1546         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
1547         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
1549 2017-08-15  Bruno Haible  <bruno@clisp.org>
1551         renameat: Ensure declaration in <stdio.h> on NetBSD.
1552         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
1553         * doc/posix-functions/renameat.texi: Mention this problem.
1555 2017-08-15  Bruno Haible  <bruno@clisp.org>
1557         duplocale: Work around NetBSD 7.0 bug.
1558         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
1559         * lib/duplocale.c: Add comment about NetBSD problem.
1560         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
1562 2017-08-15  Bruno Haible  <bruno@clisp.org>
1564         duplocale tests: Verify use with *_l functions.
1565         * modules/duplocale-tests (configure.ac): Test for uselocale and
1566         some *_l functions.
1567         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
1568         from main.
1569         (get_locale_dependent_values_from, test_with_locale_parameter): New
1570         functions.
1571         (main): Test both test_with_uselocale and test_with_locale_parameter.
1573 2017-08-15  Bruno Haible  <bruno@clisp.org>
1575         extensions: Enable NetBSD specific extensions.
1576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
1578 2017-08-14  Bruno Haible  <bruno@clisp.org>
1580         open, openat: Update doc about O_CLOEXEC.
1581         * doc/posix-functions/open.texi: More concrete list of platforms.
1582         * doc/posix-functions/openat.texi: Likewise.
1584 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1586         open: support O_CLOEXEC
1587         * NEWS, doc/posix-functions/open.texi:
1588         * doc/posix-functions/openat.texi: Document this.
1589         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
1590         (GNULIB_defined_O_CLOEXEC): New symbol.
1591         * lib/open.c: Include cloexec.h.
1592         (open): Support O_CLOEXEC.
1593         * lib/openat.c: Include cloexec.h.
1594         (rpl_openat): Support O_CLOEXEC.
1595         * lib/popen-safer.c: Do not include cloexec.h.
1596         (open_noinherit): Remove.
1597         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
1598         * lib/save-cwd.c: Do not include cloexec.h.
1599         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
1600         * m4/open-cloexec.m4: New file.
1601         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
1602         Replace 'open' if O_CLOEXEC is not present.
1603         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
1604         Replace 'openat' if O_CLOEXEC is not present.
1605         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
1606         * modules/open (Files): Add m4/open-cloexec.m4.
1607         (Depends-on): Depend on cloexec if replacing 'open'.
1608         * modules/openat (Files): Add m4/open-cloexec.m4.
1609         (Depends-on): Depend on cloexec if replacing openat.
1610         * modules/popen-safer (Depends-on): Remove cloexec.
1611         * modules/save-cwd (Depends-on): Remove cloexec, and add
1612         fd-safer-flag and 'open'.
1614 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
1616         reallocarray: minor fixes
1617         * doc/glibc-functions/reallocarray.texi: Update version numbers.
1618         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
1619         * modules/reallocarray (License): Change from GPL to LGPL.
1620         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
1621         Indent properly and don't use tabs.
1623 2017-08-13  Darshit Shah  <darnir@gnu.org>
1625         reallocarray: New module
1626         reallocarray is a new function in glibc 2.26 to safely allocate an array
1627         of memory locations with integer overflow protection.
1628         * MODULES.html.sh: Add reallocarray.
1629         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
1630         * lib/reallocarray.c: New file to implement module reallocarray.
1631         * lib/stdlib.in.h: Add function declarations for reallocarray.
1632         * m4/reallocarray.m4: New file.
1633         * m4/stdlib_h.m4: Declare reallocarray.
1634         * modules/reallocarray: New file.
1635         * modules/reallocarray-test: New file.
1636         * modules/stdlib: Coerce stdlib.h to export reallocarray.
1637         * tests/test-reallocarray.c: New test.
1639 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1641         dirent-safer: fix cloexec race
1642         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
1643         (opendir_safer): Use F_DUPFD_CLOEXEC.
1644         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
1645         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
1646         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
1647         instead of dup_safer.
1649         fts: fix cloexec races
1650         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
1651         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
1652         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
1653         (fd_ring_check): Set cloexec flag on new file descriptors.
1654         (fts_build, fd_ring_check): While we’re at it, make sure the
1655         resulting file descriptor is not 0, 1, or 2, since that is easy.
1657 2017-08-11  Bruno Haible  <bruno@clisp.org>
1659         fts tests: Fix link error.
1660         Reported by Tom G. Christensen in
1661         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
1662         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
1664 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1666         fts: port recent changes to CentOS 6
1667         Problem reported by Tom G. Christensen in:
1668         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
1669         * lib/fts.c (fsword): New type.
1670         (struct dev_type, filesystem_type): Use it.
1671         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
1672         Also, check for f_type only if fstatfs and sys/vfs.h work.
1674 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1676         tempname: do not depend on secure_getenv
1677         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
1678         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
1679         * modules/tempname (Depends-on): Remove secure_getenv.
1681 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
1683         extensions: add _OPENBSD_SOURCE
1684         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
1686 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
1687             Bruno Haible  <bruno@clisp.org>
1689         manywarnings: Add support for C++.
1690         * build-aux/g++-warning.spec: New file.
1691         * m4/manywarnings-c++.m4: New file.
1692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
1693         redirects to manywarnings-c++.m4.
1694         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
1696 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1698         git-version-gen: another fix for tags with "-"
1699         * build-aux/git-version-gen: Improve fix for tags containing "-".
1700         Suggested by Markus Armbruster in:
1701         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
1703 2017-08-06  Bruno Haible  <bruno@clisp.org>
1705         warnings, manywarnings: Add support for multiple languages, not just C.
1706         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
1707         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
1708         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
1709         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
1710         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
1711         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
1712         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
1713         of the current language. If C++ is the current language, modify
1714         WARN_CXXFLAGS instead of WARN_CFLAGS.
1715         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
1716         gl_MANYWARN_ALL_GCC.
1717         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
1719 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
1721         git-version-gen: Fix for tags containing '-'
1723         Really old versions of git-describe (before v1.5.0, Feb 2007)
1724         don't have the number of commits in their long format output,
1725         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
1726         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
1727         recognizes both patterns, and normalizes the old format to the new one.
1729         Unfortunately, this normalization code gets confused when the tag
1730         contains '-'.  Reproducer:
1732             $ git-tag -m test v0.2-rc1
1733             $ build-aux/git-version-gen .tarball-version; echo
1734             build-aux/git-version-gen: WARNING: git rev-list failed
1735             UNKNOWN
1737         We take exact tag "v0.2-rc1" for the old format, extract the presumed
1738         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
1739         commits since tha tag.  Fails, because tag "v0.2" does not exist.
1741         * git-version-gen: We could perhaps drop support for versions from
1742         more than a decade ago.  But tightening the pattern match is easy
1743         enough, so do that.  Still breaks when you use version tags ending in
1744         something matching -g????, but you arguably get what you deserve then.
1746 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
1748         valgrind-tests: use ls, and cache
1749         * m4/valgrind-tests.m4: Test ls, not bash.
1750         Problem reported by Reuben Thomas.
1751         Also, cache the result so that it can be overridden.
1753 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1755         manywarnings: port to 64-bit GCC builds of Emacs
1756         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
1757         object size rather than hardwiring 2147483647.  This is needed to
1758         build GNU Emacs, which has one conditional (and used
1759         only-in-theory) call to malloc with a literal greater than
1760         2147483647.
1762 2017-08-04  Bruno Haible  <bruno@clisp.org>
1764         Relax the license of some modules with no runtime code.
1765         * modules/std-gnu11 (License): Set to 'unlimited'.
1766         * modules/c99 (License): Likewise.
1767         Reported by Reuben Thomas <rrt@sc3d.org>.
1768         * modules/d-ino (License): Set to 'LGPL'.
1769         * modules/host-os (License): Likewise.
1770         * modules/longlong (License): Likewise.
1772 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
1774         renameat2: port to RHEL 7 + NFS
1775         * lib/renameat2.c (renameat2) [SYS_renameat2]:
1776         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
1777         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
1779 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1781         renameat2: port to non-renameat platforms
1782         Problem reported for MSVC-2015 by Gisle Vanem in:
1783         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
1784         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
1785         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
1787 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1789         manywarnings: port to 32-bit GCC bug
1790         Problem reported by Pino Toscano in:
1791         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
1792         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
1793         not 2**63 - 1, to work around the following GCC bug:
1794         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
1796 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1798         backupfile: new function to validate backup suffix
1799         * lib/backupfile.c (set_simple_backup_suffix): New function.
1800         (backupfile_internal): Use it.
1802         canonicalize: fix EOVERFLOW commentary
1803         Problem reported by Bruno Haible in:
1804         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
1805         * lib/canonicalize.c (canonicalize_filename_mode):
1806         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
1808         Don't interpret EOVERFLOW to mean nonexistence
1809         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
1810         may be EOVERFLOW; this is likely more useful than reporting the
1811         stat errno.
1812         * lib/glob.c (link_stat): Rename from link_exists2_p and
1813         return -1/0 instead of 0/1.  Caller changed.
1814         * lib/glob.c (link_exists_p):
1815         * lib/renameat2.c (rename_noreplace, renameat2):
1816         * lib/tempname.c (try_nocreate):
1817         If errno == EOVERFLOW then the directory entry exists, so do not
1818         act as if it does not exist.
1820         backup-rename: new module
1821         It is like backupfile, except it avoids some race conditions,
1822         and it does not output to stderr or exit.
1823         * MODULES.html.sh: Add backup-rename.
1824         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
1825         * modules/backup-rename: New files.
1826         * lib/backupfile.c: Turn this into an internals file, which
1827         contains code common to backupfile and backup_rename.  Include
1828         backupfile-internal.h instead of backupfile.h.  Do not include
1829         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
1830         renameat2.h and fcntl.h.
1831         (BACKUP_NOMEM): New constant.
1832         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
1833         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
1834         (backupfile_internal): Rename from find_backup_file_name.
1835         Support new arg RENAME.
1836         (backup_args, backup_types, get_version, xget_version):
1837         Move to lib/backup-find.c.
1838         * lib/backupfile.h (backup_file_rename): New decl.
1839         * modules/backupfile (Files): Add lib/backup-internal.h,
1840         lib/backup-find.c.
1841         (Depends-on): Add dirfd, fcntl, renameat2.
1842         (lib_SOURCES): Add backup-find.c.
1844         renameat2: port better to older Solaris
1845         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
1846         Add goto to use a label, to silence picky compilers.
1848         fts-tests: port to gcc -Wwrite-strings
1849         * tests/test-fts.c (base, base_d): New static vars.
1850         (argv, remove_tree, main): Use them.
1852 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
1854         relocatable-lib{,-lgpl}: improve documentation
1855         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
1856         Various other updates.
1858 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
1859             Bruno Haible  <bruno@clisp.org>
1861         relocatable-lib{,-lgpl}: add Valgrind suppressions
1862         * lib/relocatable.valgrind: New file.
1863         * modules/relocatable-lib (Files): Add relocatable.valgrind.
1864         * modules/relocatable-lib-lgpl: Likewise.
1866 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
1868         relocatable: Make the license on the sources the GPL.
1869         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
1870         LGPL, which was a special case so that the relocatable source files
1871         could be used without gnulib-tool, to GPL. They can still be used under
1872         the LGPL, using the --lgpl option to gnulib-tool.
1874 2017-07-30  Bruno Haible  <bruno@clisp.org>
1876         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
1877         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
1878         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
1879         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
1880         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
1882 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1884         faccessat: document AT_SYMLINK_NOFOLLOW issue
1885         * doc/posix-functions/faccessat.texi: Modernize platform list.
1886         Document AT_SYMLINK_NOFOLLOW limitation.
1888         renameat2: port to Solaris 10
1889         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
1890         with AT_SYMLINK_NOFOLLOW (which is not portable).
1891         (renameat): Undef before using, to avoid endless recursion when
1892         the replacement renameat calls renameat2 which calls the
1893         replacement renameat.
1894         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
1895         * modules/renameat2 (Depends-on): Remove faccessat.
1896         * modules/renameat-tests (test_renameat_LDADD):
1897         * modules/renameat2-tests (test_renameat2_LDADD):
1898         Remove $(LIB_EACCESS).
1900         renameat2: new module
1901         Although the Linux syscall renameat2 is not in glibc (yet?), it is
1902         useful to have access to its RENAME_NOREPLACE flag.
1903         * MODULES.html.sh (func_all_modules): Add renameat2.
1904         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
1905         * modules/renameat2-tests, tests/test-renameat2.c: New files.
1906         * lib/renameat.c (renameat): Move most of the implementation
1907         to renameat2, and just call renameat2.
1908         * modules/renameat (Files): Remove lib/at-func2.c.
1909         (Depends-on): Depend only on renameat2.
1910         (Include): Remove <fcntl.h>.
1911         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
1912         since renameat (via renameat2) might use faccessat.
1914 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
1916         vc-list-files: Adjust the script to support git worktrees
1917         * build-aux/vc-list-files: Require existence, not directory.
1919 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1921         doc: bring MODULES.html.sh up to date
1922         Somehow a few months ago we stopped updating MODULES.html.sh.
1923         I don’t recall explicitly deciding this, so I updated it now.
1924         Alternatively I suppose we could remove it.
1925         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
1926         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
1927         truncate, utime, utime-h, windows-stat-inodes,
1928         windows-stat-override, windows-stat-timespec, year2038.  Sort.
1930 2017-07-26  Jim Meyering  <meyering@fb.com>
1932         fprintftime: fix build-break caused by recent renaming
1933         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
1934         "strftime.c".
1935         * modules/fprintftime: Depend directly on nstrftime.
1937 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1939         regex: work with GCC7's -Werror=implicit-fallthrough=
1940         * lib/regex_internal.h (FALLTHROUGH): New macro.
1941         * lib/regcomp.c (peek_token_bracket, parse_expression):
1942         * lib/regexec.c (check_node_accept): Use it.
1944 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1946         fts: simplify fts_build
1947         * lib/fts.c (fts_build): Simplify, and be lazier about
1948         calling leaf_optimization.
1950         fts: three levels of leaf optimization
1951         * lib/fts.c (enum leaf_optimization): New type with three values.
1952         (S_MAGIC_AFS): New macro.  Sort them.
1953         (leaf_optimization): Rename from leaf_optimization_applies, and
1954         return enum leaf_optimization instead of bool.  All uses changed.
1955         Add cases for unknown type and for AFS.
1956         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
1958         fts: cache dirent_inode_sort_may_be_useful too
1959         * lib/fts.c (struct dev_type): New struct.
1960         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
1961         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
1962         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
1963         Now takes FTSENT const *, not int.  All uses changed.  Use
1964         filesystem_type to cache.
1965         (link_count_optimize_ok): Remove.  Caller changed to use
1966         leaf_optimization_applies, which now uses shared cache.
1968         fts: introduce MIN_DIR_NLINK
1969         * lib/fts.c (MIN_DIR_NLINK): New constant.
1970         Use it instead of 2, whenever we are talking about link counts.
1972         fts: nlink_t signedness fixups
1973         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
1974         so that root need not be a special case later.
1975         (fts_read): Remove now-redundant test for fts_level.
1976         Do not assume that nlink_t is signed.
1977         (fts_build): Remove useless decrement of nlinks.
1978         (fts_stat): Avoid unlikely signed integer overflow later, if
1979         nlink_t is signed.
1981         fts-tests: new module
1982         * modules/fts-tests, tests/test-fts.c: New files.
1984 2017-07-23  Bruno Haible  <bruno@clisp.org>
1986         Rename module 'strftime' to 'nstrftime'.
1987         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
1988         * lib/nstrftime.c: Renamed from lib/strftime.c.
1989         * modules/nstrftime: Renamed from modules/strftime.
1990         (Files, Makefile.am): Update.
1991         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
1992         Fix comment.
1993         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
1994         (Files, Makefile.am): Update.
1995         * modules/strftime: New file, an obsolete indirection.
1996         * doc/posix-functions/strftime.texi: Update reference.
1997         * config/srclist.txt: Update info.
1998         * NEWS: Mention the change.
2000 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
2002         malloca: Silence a warning from clang's memory sanitizer.
2003         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
2004         (freea): Use it.
2006 2017-07-18  Bruno Haible  <bruno@clisp.org>
2008         host-cpu-c-abi: Fix detection of MIPS ABI.
2009         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
2010         ABI, not the CPU instruction set.
2012 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2014         explicit_bzero: new module
2015         The explicit_bzero function has been added to glibc.
2016         This module is intended to supports its use in GNU programs.
2017         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
2018         * m4/explicit_bzero.m4, modules/explicit_bzero:
2019         New files.
2020         * doc/gnulib.texi (Glibc string.h): Link to new doc.
2021         * lib/string.in.h (explicit_bzero): Declare.
2022         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
2023         * modules/string (string.h): Substitute its vars.
2025 2017-07-16  Bruno Haible  <bruno@clisp.org>
2027         threadlib: Support static linking.
2028         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
2029         set gl_cv_have_weak to 'no'.
2031 2017-07-16  Bruno Haible  <bruno@clisp.org>
2033         unicase/locale-language: Fix link dependencies.
2034         * modules/unicase/locale-language (Link): New section.
2035         * modules/unicase/locale-language-tests (Makefile.am): Link
2036         test-locale-language program with $(LIBTHREAD).
2038 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2040         sys_socket: Add support for OpenVMS.
2041         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
2042         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
2044 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2046         sys_resource: Add support for OpenVMS.
2047         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
2048         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
2050 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
2051             Bruno Haible  <bruno@clisp.org>
2053         math: Add support for OpenVMS.
2054         * lib/math.in.h [__VMS]: Include <fp.h>.
2055         * doc/posix-headers/math.texi: Mention OpenVMS issues.
2057 2017-07-15  Bruno Haible  <bruno@clisp.org>
2059         getdtablesize: Add minimal support for OpenVMS.
2060         Reported by John E. Malmberg <wb8tyw@qsl.net>.
2061         * modules/getdtablesize (Description): Fix.
2062         * lib/getdtablesize.c: Fix comment.
2063         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
2064         getdtablesize() function, even though the test fails.
2065         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
2066         limitation on OpenVMS.
2068 2017-07-13  Bruno Haible  <bruno@clisp.org>
2070         Revisit cross-compilation guesses.
2071         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
2073 2017-07-13  Bruno Haible  <bruno@clisp.org>
2075         Improve cross-compilation guesses for native Windows.
2076         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
2077         Windows.
2078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
2079         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
2080         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
2081         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
2082         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
2083         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2084         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2085         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2086         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2087         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
2088         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2089         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
2090         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
2091         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
2092         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
2093         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2094         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
2095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2096         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
2097         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
2098         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2099         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2100         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
2101         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
2102         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
2103         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
2104         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2105         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2106         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2107         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
2108         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
2110         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2111         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
2112         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
2113         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
2114         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
2115         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2116         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2117         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2118         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2119         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2120         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
2121         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
2122         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
2123         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
2124         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
2125         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
2126         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
2127         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
2128         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
2129         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
2130         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
2131         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
2132         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
2133         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
2134         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
2135         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2136         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
2137         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
2138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
2139         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
2140         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
2141         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2142         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2144         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
2145         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
2146         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
2147         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
2148         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
2149         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
2150         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
2151         * m4/regex.m4 (gl_REGEX): Likewise.
2152         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2153         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
2154         gl_FUNC_REMAINDERF_WORKS): Likewise.
2155         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
2156         gl_FUNC_REMAINDERL_WORKS): Likewise.
2157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2158         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2159         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2160         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2162         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2163         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2164         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2165         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
2166         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2167         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
2168         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
2169         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
2170         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2172         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2173         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2174         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2175         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
2176         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2177         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2178         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2179         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2180         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
2181         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
2182         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2183         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2184         Likewise.
2185         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2186         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
2187         Windows. Enable also on Autoconf 2.70.
2188         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2189         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2190         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2191         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
2192         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2193         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
2194         for native Windows.
2195         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2196         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
2198 2017-07-13  Bruno Haible  <bruno@clisp.org>
2200         Improve cross-compilation guesses for native Windows.
2201         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
2202         Windows.
2203         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
2204         memchr.m4.
2205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
2207 2017-07-13  Bruno Haible  <bruno@clisp.org>
2209         Improve cross-compilation guesses for native Windows.
2210         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
2211         native Windows.
2212         (gl_FUNC_FFLUSH): Update accordingly.
2213         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
2214         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2216 2017-07-11  Bruno Haible  <bruno@clisp.org>
2218         More systematic m4 quoting and indentation.
2219         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
2220         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2221         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
2222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2223         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2224         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
2225         gl_WINSIZE_IN_PTEM): Likewise.
2226         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
2227         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2228         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2229         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
2230         Correct indentation.
2231         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2232         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2233         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
2234         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2235         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2236         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2238 2017-07-10  Bruno Haible  <bruno@clisp.org>
2240         round, roundf: Avoid compiler warning in configure test.
2241         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
2242         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2244 2017-07-10  Bruno Haible  <bruno@clisp.org>
2246         getlogin tests: Avoid #ifdefs when sharing code between modules.
2247         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
2248         * modules/getlogin-tests (Files): Likewise. Remove
2249         tests/test-getlogin_r.c.
2250         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
2251         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
2252         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
2253         getlogin().
2255 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2257         getlogin: don’t assume one name per uid
2258         Problem reported by Wolfgang F. Muthmann (Bug#27640).
2259         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
2260         (ttyname): Remove test.
2261         * modules/getlogin_r-tests (ttyname): Remove test.
2262         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
2263         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
2264         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
2265         getlogin rather than getlogin_r.  This avoids code duplication.
2266         (main): Use isatty and fstat rather than ttyname and stat.
2267         Use getpwnam instead of getpwuid, to be portable to test platforms
2268         that have multiple login names for the same uid.
2270 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
2271             Bruno Haible  <bruno@clisp.org>
2273         glob: Fix more memory leaks.
2274         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
2275         returning.
2276         Reported by Tim Rühsen.
2278 2017-07-10  Bruno Haible  <bruno@clisp.org>
2280         Make sure $host and $host_os are defined when used.
2281         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
2282         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
2283         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2284         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2285         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2286         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2287         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2288         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
2289         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2290         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2291         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
2292         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
2293         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2294         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
2295         m4_ifdef block.
2297 2017-07-09  Bruno Haible  <bruno@clisp.org>
2299         *printf: Fix cross-compilation guess for Solaris.
2300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
2301         2010-12-21.
2303 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2304             Bruno Haible  <bruno@clisp.org>
2306         vasnprintf: port to macOS 10.13
2307         Problem reported by comex in:
2308         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
2309         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
2311 2017-07-06  Bruno Haible  <bruno@clisp.org>
2313         imaxdiv tests: Fix logic.
2314         * tests/test-imaxdiv.c (main): Use == instead of =.
2315         Reported by Coverity.
2317 2017-07-06  Bruno Haible  <bruno@clisp.org>
2319         uninorm/filter: Fix use-after-free bug.
2320         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
2321         sortbuf == filter->sortbuf invariant.
2322         Reported by Coverity.
2324 2017-07-06  Bruno Haible  <bruno@clisp.org>
2326         glob: Fix more memory leaks.
2327         * lib/glob.c (glob): Free dirname before returning.
2328         Reported by Coverity and Tim Rühsen.
2330 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2332         parse-datetime: fix uninit var bug
2333         Reported by Bruno Haible in:
2334         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
2335         * lib/parse-datetime.y (parse_datetime2): Do not use
2336         uninitialized.
2338 2017-07-05  Bruno Haible  <bruno@clisp.org>
2340         doc: Update for MSVC 14.
2341         * doc/posix-headers/*.texi: Add info about MSVC 14.
2342         * doc/posix-functions/*.texi: Likewise.
2343         * doc/pastposix-functions/*.texi: Likewise.
2344         * doc/glibc-headers/*.texi: Likewise.
2345         * doc/glibc-functions/*.texi: Likewise.
2347 2017-07-05  Bruno Haible  <bruno@clisp.org>
2349         sched: Fix build failure on native Windows (regression from 2017-06-19).
2350         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
2352 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
2354         stdioext: Port to OpenVMS.
2355         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
2356         * lib/fpending.c (fpending): Remove non-working VMS specific code.
2357         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
2358         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
2359         * lib/fpurge.c (fpurge): Likewise.
2360         * lib/freadable.c (freadable): Likewise.
2361         * lib/freadahead.c (freadahead): Likewise.
2362         * lib/freading.c (freading): Likewise.
2363         * lib/freadptr.c (freadptr): Likewise.
2364         * lib/freadseek.c (freadseek): Likewise.
2365         * lib/fseeko.c (fseeko): Likewise.
2366         * lib/fseterr.c (fseterr): Likewise.
2367         * lib/fwritable.c (fwriteable): Likewise.
2368         * lib/fwriting.c (fwriting): Likewise.
2370 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
2372         glob: Declare variables at the very start of their scope.
2373         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
2374         its separate scope, so the functions will compile on Haiku.
2376 2017-07-01  Bruno Haible  <bruno@clisp.org>
2378         logbl: Work around a glibc bug on PowerPC64LE.
2379         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
2380         numbers.
2381         * doc/posix-functions/logbl.texi: Update.
2383 2017-06-29  Bruno Haible  <bruno@clisp.org>
2385         stat, fstat: Compile stat-w32.c only on platforms that need it.
2386         Suggested by Paul Eggert.
2387         * modules/stat (configure.ac): Request stat-w32.o only on native
2388         Windows.
2389         * modules/fstat (configure.ac): Likewise.
2391 2017-06-25  Bruno Haible  <bruno@clisp.org>
2393         stat: Improve last change.
2394         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
2396 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2398         stat: port to xlc 12.01
2399         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
2400         12.01 complains "Compilation unit is empty."
2402 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2404         xalloc-oversized: port to icc
2405         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
2406         __builtin_mul_overflow if ICC is defined, as this results in
2407         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
2408         20170213.
2410 2017-06-19  Bruno Haible  <bruno@clisp.org>
2412         classpath: Avoid including config.h twice, as it produces warnings.
2413         Reported by John E. Malmberg <wb8tyw@gmail.com>.
2414         * lib/classpath.h: Conditionalize the include of config.h.
2416 2017-06-19  Bruno Haible  <bruno@clisp.org>
2417             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
2419         sched: Fix compilation failure on OpenVMS.
2420         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
2421         test whether <pthread.h> exists and defines struct sched_param.
2422         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
2424 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2426         diffseq: port to GCC 7 with --enable-gcc-warnings
2427         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
2428         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
2429         not complain about big_snake being defined but not used.
2431 2017-06-15  Bruno Haible  <bruno@clisp.org>
2433         gettext-h: Update theoretical condition for use of variable size arrays.
2434         Reported by Paul Eggert.
2435         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
2436         to include the theoretical condition for availability of variable size
2437         arrays, if we could trust the value of __STDC_VERSION__.
2439 2017-06-12  Bruno Haible  <bruno@clisp.org>
2441         Relicense some modules under LGPLv2+.
2442         Daiki Ueno's approval is in
2443         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
2444         * modules/uniwidth/base (License): Change to LGPLv2+.
2445         * modules/uniwidth/width (License): Likewise.
2447 2017-06-11  Bruno Haible  <bruno@clisp.org>
2449         localename: Fix test failure on DragonFly BSD.
2450         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
2451         like FreeBSD.
2453 2017-06-11  Bruno Haible  <bruno@clisp.org>
2455         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
2456         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
2457         * lib/float.in.h: Likewise.
2458         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
2460 2017-06-11  Bruno Haible  <bruno@clisp.org>
2462         gnulib-tool: Clean up after autotools.
2463         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
2464         useless directory left over by the Autotools.
2466 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
2468         getopt-posix: port to glibc 2.25.90
2469         Problem reported by Daniel P. Berrange in:
2470         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
2471         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
2472         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
2473         #undef if __GETOPT_PREFIX is defined.
2475 2017-06-11  Bruno Haible  <bruno@clisp.org>
2477         strtod-obsolete: Fix license.
2478         * modules/strtod-obsolete (License): Change to LGPL.
2480 2017-06-10  Jim Meyering  <meyering@fb.com>
2482         maint: update to work with GCC7's -Werror=implicit-fallthrough=
2483         * lib/savewd.c (FALLTHROUGH): Define.
2484         (savewd_save, savewd_restore): Use this, rather than a comment,
2485         whenever one switch case falls through into the next.
2487 2017-06-08  Bruno Haible  <bruno@clisp.org>
2489         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
2490         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
2491         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
2492         case.
2494 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
2496         doc: remove robots, add prereqs
2497         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
2498         builds.  Simon's robot site does not seem to be up, so remove
2499         mentions of it for now.
2501 2017-06-08  Bruno Haible  <bruno@clisp.org>
2503         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
2504         * gnulib-tool (func_symlink_target): New function, extracted from
2505         func_symlink.
2506         (func_symlink, func_symlink_if_changed): Use it.
2508 2017-06-08  Bruno Haible  <bruno@clisp.org>
2510         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
2511         * gnulib-tool (func_ln_s): Determine cp_src correctly.
2513 2017-06-07  Bruno Haible  <bruno@clisp.org>
2515         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
2516         Reported by John E. Malmberg <wb8tyw@gmail.com> in
2517         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
2518         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
2519         override, pass 2 arguments to getcwd, not 3.
2521 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
2523         same-inode: port better to VMS 8.2 and later
2524         Problem reported by John E. Malmberg in:
2525         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
2526         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
2527         Use the usual POSIX definition.
2528         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
2530 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2532         error: fix POSIX violation for va_end
2533         Problem reported by Bruno Haible in:
2534         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
2535         * lib/error.c (error_tail): Do not call va_end here.
2536         (error, error_at_line): Call it here instead.
2538 2017-05-28  Bruno Haible  <bruno@clisp.org>
2540         c-strtod: Make it usable in C++ mode.
2541         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
2543 2017-05-25  Jim Meyering  <meyering@fb.com>
2545         quotearg: fix compilation failure due to FALLTHROUGH misuse
2546         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
2547         macro back to /* fall through */ comment.  The macro can apply only
2548         to a following case statement.  Reported by Assaf Gordon.
2550 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2552         intprops: port to recent icc
2553         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
2554         but does not support __builtin_add_overflow etc.
2555         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
2556         Define to 0.
2558 2017-05-23  Karl Berry  <karl@freefriends.org>
2560         * config/srclist.txt (iconv.m4): sync broken, comment out
2561         until (hopefully) the next gettext release.
2563 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
2565         Remove repeated words in comments.
2567 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
2569         fallthrough: reinstate a FALLTHROUGH instance in quotearg
2570         quotearg.c: Reinstate this instance which is significant
2571         when the if branch is not taken.
2573 2017-05-21  Bruno Haible  <bruno@clisp.org>
2575         gnulib-tool: Add options to create hard links.
2576         * gnulib-tool (func_usage): Document options --hardlink,
2577         --local-hardlink, --more-hardlinks.
2578         (func_symlink): Renamed from func_ln.
2579         (func_symlink_if_changed): Renamed from func_ln_if_changed.
2580         (func_hardlink): New function.
2581         (copymode, lcopymode): New variables.
2582         (symbolic, lsymbolic): Remove variables.
2583         (Options): Implement options --hardlink, --local-hardlink,
2584         --more-hardlinks.
2585         (func_should_link): Renamed from func_should_symlink. Set copyaction.
2586         (func_add_file, func_update_file): Update invocation of
2587         func_should_link. Invoke func_hardlink when appropriate.
2588         (func_import): Update comments.
2589         (func_create_testdir): Update invocation of func_should_link. Invoke
2590         func_hardlink when appropriate.
2591         Finally, invoke 'git update-index --refresh' to mitigate the effects of
2592         the hard links on git.
2594 2017-05-20  Bruno Haible  <bruno@clisp.org>
2596         argp: Simplify bit manipulation.
2597         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
2598         on a signed integer type.
2600 2017-05-20  Bruno Haible  <bruno@clisp.org>
2602         Avoid wrong configure results with gcc -fsanitize=address.
2603         This completes the work done on 2016-02-06 on this topic.
2604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
2605         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2606         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2607         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2608         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
2609         returning.
2610         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2611         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2612         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2613         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2614         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2615         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2616         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
2617         free allocated memory before returning.
2618         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2619         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
2620         objects before returning.
2621         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
2622         returning.
2624 2017-05-20  Bruno Haible  <bruno@clisp.org>
2626         gnulib-tool: Don't create hard links between gnulib and its testdirs.
2627         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
2629 2017-05-20  Bruno Haible  <bruno@clisp.org>
2631         argp, tsearch tests: Fix file list.
2632         * modules/argp-tests (Files): Add tests/macros.h.
2633         * modules/tsearch-tests (Files): Likewise.
2635 2017-05-20  Bruno Haible  <bruno@clisp.org>
2637         getopt-posix tests: Remove redundant include.
2638         * tests/test-getopt.h: Don't include "macros.h". It's already included
2639         by tests/test-getopt-main.h.
2641 2017-05-19  Jim Meyering  <meyering@fb.com>
2643         dfa: two small simplifications
2644         * lib/dfa.c (build_state): Avoid repeating longer expressions.
2646 2017-05-18  Jim Meyering  <meyering@fb.com>
2648         fallthrough: update for GCC 7/8
2649         * lib/quotearg.c (FALLTHROUGH): New macro.
2650         Use it whenever one switch case falls through into the next,
2651         replacing "/* Fall through */" comments.  This exposed one
2652         instance of an unwarranted "fall through" comment: unwarranted
2653         because it preceded a "goto" label not a case statement.
2654         * lib/freopen-safer.c (freopen_safer): Likewise.
2655         * lib/fts.c (leaf_optimization_applies): Likewise.
2656         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2657         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
2658         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
2659         tests/macros.h for the definition.
2660         * tests/test-argp.c (group1_parser): Likewise.
2661         * tests/test-getopt.h (getopt_loop): Likewise.
2663 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2665         argp: fix shift bug
2666         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
2667         behavior on shift overflow, caught by gcc -fsanitize=undefined.
2669         argp: fix pointer-subtraction bug
2670         * lib/argp-help.c (hol_append): Don’t subtract pointers to
2671         different arrays, as this can run afoul of -fcheck-pointer-bounds.
2672         See the thread containing Bruno Haible’s report in:
2673         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
2675 2017-05-19  Bruno Haible  <bruno@clisp.org>
2677         printf-posix tests: Avoid test failure with "gcc --coverage".
2678         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2679         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
2680         than 5000000.
2681         * tests/test-fprintf-posix2.c (main): Likewise.
2683 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2685         closeout: don’t close stderr when sanitizing
2686         * NEWS: Document this.
2687         * lib/closeout.c (__has_feature): New macro, if not already defined.
2688         (SANITIZE_ADDRESS): New constant.
2689         (close_stdout): Don’t close stderr if sanitizing addresses.
2691 2017-05-19  Bruno Haible  <bruno@clisp.org>
2693         get-rusage-data tests: Avoid failure on Linux/glibc.
2694         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
2695         on glibc systems.
2697 2017-05-18  Bruno Haible  <bruno@clisp.org>
2699         localename: Include necessary header files on Cygwin.
2700         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
2701         where NL_LOCALE_NAME is defined.
2703 2017-05-18  Bruno Haible  <bruno@clisp.org>
2705         gettext: Update macros from gettext git.
2706         * m4/intldir.m4: Require Autoconf >= 2.60.
2707         * m4/progtest.m4: Fix typos in copyright notice.
2709 2017-05-18  Bruno Haible  <bruno@clisp.org>
2711         copy-file tests: Fix link error (regression from 2017-05-01).
2712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2713         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
2714         $(LIB_CLOCK_GETTIME).
2716 2017-05-18  Bruno Haible  <bruno@clisp.org>
2718         unicase/special-casing: Fix incompatibility with gperf-3.0.4
2719         (regression from 2017-02-13).
2720         * lib/unicase/special-casing.in.h: Renamed from
2721         lib/unicase/special-casing.h.
2722         * modules/unicase/special-casing (Files): Add
2723         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
2724         (Makefile.am): Add rule for generating unicase/special-casing.h.
2725         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
2726         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
2727         not "special-casing.h".
2728         * lib/unicase/u*.c: Likewise.
2730 2017-05-17  Bruno Haible  <bruno@clisp.org>
2732         README: Don't ask people to read a TeXinfo file.
2733         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2734         * README: Tell people how to read the HTML formatted manual.
2736 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
2738         parse-datetime: Fix memleak
2739         * lib/parse-datetime.y (parse_datetime2): Cleanup on
2740         localtime_rz() failure.
2742 2017-05-16  Bruno Haible  <bruno@clisp.org>
2744         javacomp: Fix handle leak.
2745         Found by Coverity.
2746         * lib/javacomp.c (get_classfile_version): Close fd before returning.
2748 2017-05-16  Bruno Haible  <bruno@clisp.org>
2750         relocate: Make it easier to reclaim allocated memory.
2751         * lib/relocatable.h (relocate2): New declaration/macro.
2752         * lib/relocatable.c (relocate2): New function.
2753         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
2754         relocate2 function.
2755         * lib/localcharset.c (relocate2): Define fallback.
2756         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
2757         allocated memory.
2758         * lib/javaversion.c (relocate2): Define fallback.
2759         (javaexec_version): Invoke relocate2 instead of relocate. Free the
2760         allocated memory.
2762 2017-05-16  Bruno Haible  <bruno@clisp.org>
2764         relocate: Simplify EMX specific code.
2765         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
2766         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
2768 2017-05-16  Bruno Haible  <bruno@clisp.org>
2770         sigpipe tests: Fix file list.
2771         * modules/sigpipe-tests (Files): Add tests/macros.h.
2773 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2775         manywarnings: update for GCC 7
2776         * build-aux/gcc-warning.spec:
2777         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2778         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
2779         requires a non-comment fallthrough attribute.  This is a bit
2780         cleaner than the comment versions.
2781         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
2782         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
2783         Use it whenever one switch case falls through into the next.
2784         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
2785         Use FALLTHROUGH macro.
2787 2017-05-15  Bruno Haible  <bruno@clisp.org>
2789         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
2790         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
2791         @ALLOCA@, not @LTALLOCA@.
2793 2017-05-15  Bruno Haible  <bruno@clisp.org>
2795         sys_select: Avoid "was expanded before it was required" warning.
2796         * modules/sys_select (configure.ac): Require, not invoke,
2797         gl_HEADER_SYS_SELECT.
2799 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2801         gnulib-tool: improve GNU Make debugging
2802         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
2803         Report autoconf diagnostics when it fails, in the output makefile.
2805 2017-05-14  Bruno Haible  <bruno@clisp.org>
2807         stat-time tests: Improve comment.
2808         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
2810 2017-05-14  Bruno Haible  <bruno@clisp.org>
2812         same-inode: Adapt for windows-stat-inodes.
2813         * lib/same-inode.h: Include <sys/types.h>.
2814         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
2815         * modules/same-inode (Depends-on): Add sys_types.
2817 2017-05-14  Bruno Haible  <bruno@clisp.org>
2819         windows-stat-inodes: New module.
2820         * m4/windows-stat-inodes.m4: New file.
2821         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
2822         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
2823         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
2824         (_GL_WINDOWS_STAT_INODES): New macro.
2825         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
2826         (GetFileInformationByHandleExFunc): New variable.
2827         (initialize): Initialize it.
2828         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
2829         st_ino appropriately.
2830         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
2831         a fallback, because it does not provide st_dev and st_ino values.
2832         * modules/fstat (Depends-on): Add 'verify'.
2833         * modules/windows-stat-inodes: New file.
2834         * doc/windows-stat-inodes.texi: New file.
2835         * doc/gnulib.texi: Include it.
2836         * doc/posix-headers/sys_stat.texi: Mention the new module.
2838 2017-05-14  Bruno Haible  <bruno@clisp.org>
2840         stat-time tests: Workaround for native Windows.
2841         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
2842         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
2843         New variables.
2844         (initialize_filenames): New function.
2845         (main): Invoke it.
2846         (cleanup, prepare_test): Update.
2848 2017-05-14  Bruno Haible  <bruno@clisp.org>
2850         stat-time: Adapt for windows-stat-timespec.
2851         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
2852         entire st_ctim field.
2854 2017-05-13  Jim Meyering  <meyering@fb.com>
2856         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
2857         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
2858         file that uses the assume macro, claiming that verify.h is unused.
2860 2017-05-13  Bruno Haible  <bruno@clisp.org>
2862         Use symbolic values for _WIN32_WINNT.
2863         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
2864         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2866 2017-05-13  Bruno Haible  <bruno@clisp.org>
2868         year2038: New module.
2869         * m4/year2038.m4: New file.
2870         * modules/year2038: New file.
2871         * doc/year2038.texi: New file.
2872         * doc/gnulib.texi: Include it.
2874 2017-05-13  Bruno Haible  <bruno@clisp.org>
2876         largefile: Simplify.
2877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
2878         of _GL_WINDOWS_64_BIT_ST_SIZE.
2880 2017-05-13  Bruno Haible  <bruno@clisp.org>
2882         largefile: Improve and document.
2883         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
2884         the mingw headers already define 'stat' appropriately.
2885         * modules/largefile (Description): Clarify.
2886         * doc/largefile.texi: New file.
2887         * doc/gnulib.texi: Include it.
2888         * doc/posix-headers/sys_types.texi: Update.
2890 2017-05-13  Bruno Haible  <bruno@clisp.org>
2892         truncate: New module.
2893         * lib/unistd.in.h (truncate): New declaration.
2894         * lib/truncate.c: New file.
2895         * m4/truncate.m4: New file.
2896         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
2897         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
2898         REPLACE_TRUNCATE.
2899         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
2900         HAVE_TRUNCATE, REPLACE_TRUNCATE.
2901         * modules/truncate: New file.
2902         * tests/test-unistd-c++.cc (truncate): Test signature.
2903         * doc/posix-functions/truncate.texi: Mention the new module.
2905         * tests/test-truncate.c: New file.
2906         * modules/truncate-tests: New file.
2908 2017-05-13  Bruno Haible  <bruno@clisp.org>
2910         windows-stat-timespec: New module.
2911         * modules/windows-stat-timespec: New file.
2912         * m4/windows-stat-timespec.m4: New file.
2913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
2914         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
2915         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
2916         fields st_atim, st_mtim, st_ctim.
2917         (st_atime, st_mtime, st_ctime): Define as macros.
2918         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
2919         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
2920         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
2921         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
2922         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
2923         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
2924         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
2925         FILETIME to 'struct timespec', not 'time_t'.
2926         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
2927         FILETIME to 'struct timespec', not 'time_t'.
2928         * lib/stat-time.h (STAT_TIMESPEC): Define also if
2929         _GL_WINDOWS_STAT_TIMESPEC.
2930         * doc/windows-stat-timespec.texi: New file.
2931         * doc/gnulib.texi: Include it.
2933 2017-05-13  Bruno Haible  <bruno@clisp.org>
2935         windows-stat-override: New module.
2936         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
2937         definition. Define GNULIB_defined_struct_stat.
2938         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
2939         link error if this symbol is used and the corresponding module is not
2940         in use.
2941         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
2942         GNULIB_OVERRIDES_STRUCT_STAT.
2943         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
2944         GNULIB_OVERRIDES_STRUCT_STAT.
2945         * modules/sys_stat (Makefile.am): Substitute
2946         GNULIB_OVERRIDES_STRUCT_STAT.
2947         * modules/windows-stat-override: New file.
2949 2017-05-13  Bruno Haible  <bruno@clisp.org>
2951         fstat: Fix module dependency conditions.
2952         * modules/fstat (Depends-on): Fix typo.
2954 2017-05-13  Bruno Haible  <bruno@clisp.org>
2956         stat, fstat: Complete removal of old native Windows code.
2957         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
2958         * lib/fstat.c: Likewise.
2959         * lib/stat-w32.c: Likewise.
2961 2017-05-13  Bruno Haible  <bruno@clisp.org>
2963         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
2964         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
2966 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2968         getopt-posix: port to mingw
2969         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
2970         Problem reported by Daniel P. Berrage in:
2971         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
2973 2017-05-11  Bruno Haible  <bruno@clisp.org>
2975         gettimeofday: Increase precision on mingw.
2976         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
2977         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
2978         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
2979         GetSystemTimePreciseAsFileTime based implementation always.
2980         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
2981         mingw.
2983 2017-05-11  Bruno Haible  <bruno@clisp.org>
2985         poll: Fix confusion between SOCKETs and FDs on native Windows.
2986         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
2987         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
2989 2017-05-11  Bruno Haible  <bruno@clisp.org>
2991         doc: Clarify doc about socket functions on native Windows.
2992         This reworks doc that was added on 2008-09-29.
2993         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
2994         clearer wording.
2995         * doc/posix-functions/accept.texi: Use clearer wording.
2996         * doc/posix-functions/bind.texi: Likewise.
2997         * doc/posix-functions/connect.texi: Likewise.
2998         * doc/posix-functions/getpeername.texi: Likewise.
2999         * doc/posix-functions/getsockname.texi: Likewise.
3000         * doc/posix-functions/getsockopt.texi: Likewise.
3001         * doc/posix-functions/ioctl.texi: Likewise.
3002         * doc/posix-functions/listen.texi: Likewise.
3003         * doc/posix-functions/recv.texi: Likewise.
3004         * doc/posix-functions/recvfrom.texi: Likewise.
3005         * doc/posix-functions/send.texi: Likewise.
3006         * doc/posix-functions/sendto.texi: Likewise.
3007         * doc/posix-functions/setsockopt.texi: Likewise.
3008         * doc/posix-functions/shutdown.texi: Likewise.
3009         * doc/posix-functions/socket.texi: Likewise.
3011 2017-05-10  Bruno Haible  <bruno@clisp.org>
3013         poll: Fix link error on native Windows.
3014         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
3016 2017-05-10  Bruno Haible  <bruno@clisp.org>
3018         time: Fix missing initialization of HAVE_TIMEZONE_T.
3019         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
3020         here...
3021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
3022         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
3023         gl_HEADER_SYS_TIME_H_DEFAULTS.
3024         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
3025         (configure.ac): Remove useless quoting.
3027 2017-05-10  Bruno Haible  <bruno@clisp.org>
3029         Implement a way to opt out from MSVC support, part 2.
3030         * modules/msvc-inval (Include): Document recommended idiom.
3031         * modules/msvc-nothrow (Include): Likewise.
3033         Implement a way to opt out from MSVC support.
3034         This is useful for Emacs.
3035         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
3036         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
3037         * lib/error.c: Likewise.
3038         * lib/fcntl.c: Likewise.
3039         * lib/flock.c: Likewise.
3040         * lib/fstat.c: Likewise.
3041         * lib/fsync.c: Likewise.
3042         * lib/ioctl.c: Likewise.
3043         * lib/isapipe.c: Likewise.
3044         * lib/lseek.c: Likewise.
3045         * lib/nonblocking.c: Likewise.
3046         * lib/poll.c: Likewise.
3047         * lib/select.c: Likewise.
3048         * lib/sockets.h: Likewise.
3049         * lib/sockets.c: Likewise.
3050         * lib/stdio-read.c: Likewise.
3051         * lib/stdio-write.c: Likewise.
3052         * lib/utimens.c: Likewise.
3053         * lib/w32sock.h: Likewise.
3054         * lib/w32spawn.h: Likewise.
3055         * tests/test-cloexec.c: Likewise.
3056         * tests/test-dup-safer.c: Likewise.
3057         * tests/test-dup2.c: Likewise.
3058         * tests/test-dup3.c: Likewise.
3059         * tests/test-fcntl.c: Likewise.
3060         * tests/test-pipe.c: Likewise.
3061         * tests/test-pipe2.c: Likewise.
3062         * lib/ftruncate.c: Likewise.
3063         (chsize_nothrow): Renamed from chsize.
3064         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
3065         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
3066         * lib/close.c: Likewise.
3067         * lib/dup.c: Likewise.
3068         * lib/fclose.c: Likewise.
3069         * lib/raise.c: Likewise.
3070         * tests/test-fgetc.c: Likewise.
3071         * tests/test-fputc.c: Likewise.
3072         * tests/test-fread.c: Likewise.
3073         * tests/test-fwrite.c: Likewise.
3074         * lib/getdtablesize.c: Likewise.
3075         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
3076         * lib/isatty.c: Don't include msvc-inval.h if
3077         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
3078         Include <io.h> as an alternative to msvc-nothrow.h.
3079         * lib/read.c: Likewise.
3080         * lib/write.c: Likewise.
3081         * lib/dup2.c: Likewise.
3082         (dup2_nothrow): New function.
3083         (ms_windows_dup2): Use it.
3084         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
3085         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
3086         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3087         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3088         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
3089         * m4/read.m4 (gl_FUNC_READ): Likewise.
3090         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
3091         * doc/windows-without-msvc.texi: New file.
3092         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
3093         section.
3095 2017-05-10  Bruno Haible  <bruno@clisp.org>
3097         wait-process: Adjust native Windows support.
3098         * lib/wait-process.c: Use the usual condition for recognizing a native
3099         Windows platform.
3101 2017-05-10  Bruno Haible  <bruno@clisp.org>
3103         doc: New chapter "Native Windows Support".
3104         * doc/gnulib.texi (Native Windows Support): New chapter.
3105         * doc/windows-libtool.texi: Small wording changes.
3106         * doc/windows-sockets.texi: Small wording and formatting changes.
3108 2017-05-10  Bruno Haible  <bruno@clisp.org>
3110         doc: Move section "Library version handling".
3111         * doc/gnulib.texi: Move section "Library version handling"
3112         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
3114 2017-05-10  Bruno Haible  <bruno@clisp.org>
3116         doc: Move section "Running self-tests under valgrind".
3117         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
3118         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
3120 2017-05-10  Bruno Haible  <bruno@clisp.org>
3122         doc: New chapter "Build Infrastructure Modules".
3123         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
3125 2017-05-10  Bruno Haible  <bruno@clisp.org>
3127         Prepare for reordering sections in the manual.
3128         * doc/gnulib.texi: Move several sections to separate files. Include
3129         these files.
3130         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
3131         * doc/obsolete.texi: Likewise.
3132         * doc/extra-tests.texi: Likewise.
3133         * doc/transversal.texi: Likewise.
3134         * doc/namespace.texi: Likewise.
3135         * doc/check-version.texi: Likewise.
3136         * doc/windows-sockets.texi: Likewise.
3137         * doc/windows-libtool.texi: Likewise.
3138         * doc/licenses-texi.texi: Likewise.
3139         * doc/build-automation.texi: Likewise.
3140         * doc/c-locale.texi: Likewise.
3142 2017-05-10  Bruno Haible  <bruno@clisp.org>
3144         Fix instructions how to update manual on www.gnu.org.
3145         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
3147 2017-05-09  Bruno Haible  <bruno@clisp.org>
3149         tzset: Expand comment about TZ problem on native Windows.
3150         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
3151         Paul Eggert.
3152         * lib/ctime.c (rpl_ctime): Likewise.
3153         * lib/localtime.c (rpl_localtime): Likewise.
3154         * lib/mktime.c (mktime): Likewise.
3155         * lib/strftime-fixes.c (rpl_strftime): Likewise.
3156         * lib/wcsftime.c (rpl_wcsftime): Likewise.
3158 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3160         intprops: don’t depend on ‘verify’
3161         Problem reported by Ævar Arnfjörð Bjarmason in:
3162         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
3163         * lib/intprops.h: Do not include verify.h, and move compile-time
3164         checks from here ...
3165         * tests/test-intprops.c (main): ... to here, if they’re not here
3166         already.  Check widths of other standard integer types.
3167         * modules/intprops (Depends-on): Remove ‘verify’.
3169 2017-05-07  Bruno Haible  <bruno@clisp.org>
3171         utimens: On native Windows, support 100ns resolution also if fd < 0.
3172         * lib/utime.in.h: Include <time.h>.
3173         (_gl_utimens_windows): New declaration.
3174         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
3175         (utime): Invoke it.
3176         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
3177         instead of utime.
3178         * modules/utime (Depends-on): Add 'time'.
3180 2017-05-07  Bruno Haible  <bruno@clisp.org>
3182         utimens: Improve error code on native Windows.
3183         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
3184         error code EACCES, not EINVAL.
3186 2017-05-07  Bruno Haible  <bruno@clisp.org>
3188         utime: Handle more Windows error codes.
3189         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
3190         Based on explanations by Billy O'Neal.
3192 2017-05-05  Bruno Haible  <bruno@clisp.org>
3194         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
3195         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
3196         union.
3197         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
3198         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
3199         value of cipher->IV.
3201 2017-05-05  Bruno Haible  <bruno@clisp.org>
3203         wctype-h-c++-tests: Update.
3204         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
3206 2017-05-05  Bruno Haible  <bruno@clisp.org>
3208         wchar-c++-tests: Update.
3209         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
3211 2017-05-05  Bruno Haible  <bruno@clisp.org>
3213         utime-h-c++-tests: New module.
3214         * tests/test-utime-h-c++.cc: New file.
3215         (utime): Declare, missing since 2017-04-30.
3216         * modules/utime-h-c++-tests: New file.
3218 2017-05-05  Bruno Haible  <bruno@clisp.org>
3220         unistd-c++-tests: Update.
3221         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
3222         (read): Declare, missing since 2011-04-15.
3223         (sethostname): Declare, missing since 2011-12-03.
3225 2017-05-05  Bruno Haible  <bruno@clisp.org>
3227         time-c++-tests: Update.
3228         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
3229         (localtime, gmtime): Declare, missing since 2017-04-30.
3230         (ctime): Declare, missing since 2017-04-30.
3231         (strftime): Declare, missing since 2017-04-30.
3232         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
3233         2015-07-24.
3235 2017-05-05  Bruno Haible  <bruno@clisp.org>
3237         sys_resource-c++-tests: New module.
3238         * tests/test-sys_resource-c++.cc: New file.
3239         (getrusage): Declare, missing since 2012-04-13.
3240         * modules/sys_resource-c++-tests: New file.
3242 2017-05-05  Bruno Haible  <bruno@clisp.org>
3244         strings-c++-tests: New module.
3245         * tests/test-strings-c++.cc: New file.
3246         (ffs): Declare, missing since 2011-07-12.
3247         * modules/strings-c++-tests: New file.
3249 2017-05-05  Bruno Haible  <bruno@clisp.org>
3251         string-c++-tests: Update.
3252         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
3253         (ffsll): Declare, missing since 2011-07-15.
3255 2017-05-05  Bruno Haible  <bruno@clisp.org>
3257         stdlib-c++-tests: Update.
3258         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
3259         2011-10-18.
3260         (ptsname_r): Declare, missing since 2011-11-07.
3261         (qsort_r): Declare, missing since 2014-08-29.
3262         (random, srandom, initstate, setstate): Declare, missing since
3263         2012-01-14.
3264         (secure_getenv): Declare, missing since 2013-02-05.
3266 2017-05-05  Bruno Haible  <bruno@clisp.org>
3268         stdio-c++-tests: Update.
3269         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
3271 2017-05-05  Bruno Haible  <bruno@clisp.org>
3273         signal-h-c++-tests: Update.
3274         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
3276 2017-05-05  Bruno Haible  <bruno@clisp.org>
3278         math-c++-tests: Update.
3279         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
3280         (fma): Declare, missing since 2011-10-17.
3281         (fmal): Declare, missing since 2011-10-17.
3283 2017-05-05  Bruno Haible  <bruno@clisp.org>
3285         locale-c++-tests: Update.
3286         * tests/test-locale-c++.cc (localeconv): Declare, missing since
3287         2012-03-25.
3289 2017-05-05  Bruno Haible  <bruno@clisp.org>
3291         inttypes-c++-tests: New module.
3292         * tests/test-inttypes-c++.cc: New file.
3293         (strtoimax): Declare, missing since 2012-01-05.
3294         (strtoumax): Declare, missing since 2012-01-05.
3295         * modules/inttypes-c++-tests: New file.
3297 2017-05-05  Bruno Haible  <bruno@clisp.org>
3299         dirent-c++-tests: Update.
3300         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
3301         (rewinddir): Declare, missing since 2011-09-13.
3302         (dirfd): Declare, missing since 2010-03-08.
3304 2017-05-04  Bruno Haible  <bruno@clisp.org>
3306         argp: Fix mistake in 2017-04-23 commit.
3307         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
3308         assume that strerror_r returns 'int', not 'char *'.
3310 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
3312         argp: Fix typo.
3313         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
3315 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3317         utimens: port to Emacs + MS-Windows
3318         Skip the new MS-Windows-specific code if Emacs.
3319         * lib/utimens.c [EMACS_CONFIGUATION]:
3320         Avoid new MS-Windows-specific code.
3321         (USE_SETFILETIME): New macro.
3322         (fdutimens): Use it.
3324 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3326         tzset: update doc for TZ problems on MS-Windows
3327         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
3328         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
3329         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
3330         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
3331         * doc/posix-functions/wcsftime.texi:
3332         Mention some issues with TZ under MS-Windows.
3334 2017-05-01  Bruno Haible  <bruno@clisp.org>
3336         copy-file: Fix build error on mingw.
3337         * modules/copy-file (Depends-on): Add 'close'.
3339 2017-05-01  Bruno Haible  <bruno@clisp.org>
3341         tzset: Work around TZ problem on native Windows.
3342         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
3343         Windows, set REPLACE_TZSET to 1.
3344         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
3345         invoke '_tzset' instead of 'tzset'.
3346         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
3348         * modules/time_rz (Depends-on): Add tzset.
3349         * lib/time_rz.c (tzset): Remove fallback definition.
3350         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
3352 2017-05-01  Bruno Haible  <bruno@clisp.org>
3354         mktime: Fix dependencies.
3355         * modules/mktime (Depends-on): Add 'time'.
3357 2017-05-01  Bruno Haible  <bruno@clisp.org>
3359         New module 'localtime-buffer', split off from module 'gettimeofday'.
3360         * lib/localtime-buffer.h: New file.
3361         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
3362         * lib/time.in.h (tzset): New declaration.
3363         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
3364         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
3365         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
3366         moved to lib/localtime-buffer.c or lib/tzset.c.
3367         * m4/localtime-buffer.m4: New file.
3368         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
3369         HAVE_TZSET, REPLACE_TZSET.
3370         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
3371         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
3372         gl_LOCALTIME_BUFFER_NEEDED.
3373         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
3374         since 2007-01-18.
3375         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
3376         tzset.
3377         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
3378         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
3379         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
3380         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
3381         * modules/localtime-buffer: New file.
3382         * modules/time (Depends-on): Remove 'gettimeofday'.
3383         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
3384         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
3385         * modules/tzset (Description): Enable hyperlink to POSIX spec.
3386         (Files): Add lib/tzset.c.
3387         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
3388         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
3389         gl_TIME_MODULE_INDICATOR.
3390         * modules/gettimeofday (Depends-on): Add localtime-buffer.
3392 2017-05-01  Bruno Haible  <bruno@clisp.org>
3394         copy-file: Preserve sub-second time stamps.
3395         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
3396         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
3397         transport the time stamps from the original file to the destination
3398         file.
3399         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
3400         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
3401         utime-h.
3403 2017-05-01  Bruno Haible  <bruno@clisp.org>
3405         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
3406         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
3407         also on MSVC.
3408         Reported by Eli Zaretskii <eliz@gnu.org>.
3410 2017-05-01  Bruno Haible  <bruno@clisp.org>
3412         wchar: Fix compilation error with the original mingw.org mingw.
3413         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
3414         <stddef.h> instead.
3415         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
3416         gl_WCTYPE_H.
3417         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
3418         gl_TYPE_WINT_T_PREREQ instead.
3419         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
3420         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
3421         Reported by Eli Zaretskii <eliz@gnu.org>.
3423 2017-04-30  Bruno Haible  <bruno@clisp.org>
3425         utimecmp: Add support for native Windows.
3426         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
3428 2017-04-30  Bruno Haible  <bruno@clisp.org>
3430         utimens: Add support for native Windows.
3431         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
3432         (fdutimens): Provide a native Windows implementation, like utime.c with
3433         added tv_nsec support.
3434         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
3435         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
3437 2017-04-30  Bruno Haible  <bruno@clisp.org>
3439         wcsftime: New module.
3440         * lib/wchar.in.h (wcsftime): New declaration.
3441         * lib/wcsftime.c: New file.
3442         * m4/wcsftime.m4: New file.
3443         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
3444         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
3445         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
3447         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3448         * modules/wcsftime: New file.
3449         * doc/posix-functions/wcsftime.texi: Mention the new module.
3451 2017-04-30  Bruno Haible  <bruno@clisp.org>
3453         strftime-fixes: New module.
3454         * lib/time.in.h (strftime): New declaration.
3455         * lib/strftime-fixes.c: New file.
3456         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
3457         (gl_FUNC_STRFTIME): Remove macro.
3458         * m4/strftime-fixes.m4: New file.
3459         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
3460         REPLACE_STRFTIME.
3461         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
3462         REPLACE_STRFTIME.
3463         * modules/strftime-fixes: New file.
3464         * doc/posix-functions/strftime.texi: Mention the new module.
3466 2017-04-30  Bruno Haible  <bruno@clisp.org>
3468         mktime: Work around TZ problem on native Windows.
3469         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
3470         from the native Windows workaround.
3471         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
3472         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
3473         'guessing no'.
3474         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
3475         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
3476         NEED_MKTIME_WINDOWS.
3477         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
3478         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
3479         NEED_MKTIME_INTERNAL.
3480         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
3481         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
3482         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
3483         not REPLACE_MKTIME.
3484         * doc/posix-functions/mktime.texi: Mention the native Windows
3485         workaround.
3487 2017-04-30  Bruno Haible  <bruno@clisp.org>
3489         localtime: New module.
3490         * lib/time.in.h (localtime): Declare also if requested by module
3491         'localtime'.
3492         * lib/localtime.c: New file.
3493         * m4/localtime.m4: New file.
3494         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
3495         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
3496         * modules/localtime: New file.
3497         * doc/posix-functions/localtime.texi: Mention the new module.
3499 2017-04-30  Bruno Haible  <bruno@clisp.org>
3501         ctime: New module.
3502         * lib/time.in.h (ctime): New declaration.
3503         * lib/ctime.c: New file.
3504         * m4/ctime.m4: New file.
3505         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
3506         REPLACE_CTIME.
3507         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
3508         * modules/ctime: New file.
3509         * doc/posix-functions/ctime.texi: Mention the new module.
3511 2017-04-30  Bruno Haible  <bruno@clisp.org>
3513         gettimeofday: Provide higher resolution on native Windows.
3514         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
3515         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
3516         (initialize): Initialize it.
3517         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
3518         'struct timeval'. Don't use _ftime().
3519         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
3520         <sys/timeb.h> and _ftime.
3522 2017-04-30  Bruno Haible  <bruno@clisp.org>
3524         Document the problem with the Cygwin environment variable TZ.
3525         * doc/posix-functions/tzset.texi: Add note about TZ.
3526         * doc/posix-functions/ctime.texi: Likewise.
3527         * doc/posix-functions/localtime.texi: Likewise.
3528         * doc/posix-functions/mktime.texi: Likewise.
3529         * doc/posix-functions/strftime.texi: Likewise.
3530         * doc/posix-functions/wcsftime.texi: Likewise.
3531         * doc/pastposix-functions/ftime.texi: Likewise.
3533 2017-04-30  Bruno Haible  <bruno@clisp.org>
3535         utime-tests: New module.
3536         * tests/test-utime.c: New file, based on tests/test-utimens.h.
3537         * tests/test-utimens-common.h: Include <sys/stat.h>.
3538         * modules/utime-tests: New file.
3540 2017-04-29  Bruno Haible  <bruno@clisp.org>
3542         utime: New module.
3543         * lib/utime.in.h: Add comment for snippets.
3544         (utime): New declaration.
3545         * lib/utime.c: New file.
3546         * m4/utime.m4: New file.
3547         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
3548         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
3549         REPLACE_UTIME.
3550         * modules/utime-h (Depends-on): Add snippets.
3551         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
3552         Insert snippets.
3553         * modules/utime: New file.
3554         * doc/posix-functions/utime.texi: Mention the new module.
3556 2017-04-29  Bruno Haible  <bruno@clisp.org>
3558         utime-h: Modernize handling of 'struct utimbuf'.
3559         * lib/utime.in.h: Include next <utime.h> if it exists.
3560         (utimbuf): Define to _utimbuf on native Windows.
3561         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
3562         Set UTIME_H on native Windows.
3563         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
3564         * modules/utime-h (Depends-on): Add include_next.
3565         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
3566         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
3568         * lib/utimens.c (utimbuf): Remove fallback definition.
3569         * m4/utimens.m4 (gl_UTIMENS): Don't require
3570         gl_CHECK_TYPE_STRUCT_UTIMBUF.
3571         * m4/utimbuf.m4: Remove file.
3572         * modules/utimens (Files): Remove m4/utimbuf.m4.
3574 2017-04-29  Bruno Haible  <bruno@clisp.org>
3576         Make use of module 'utime-h'.
3577         * modules/copy-file (Depends-on): Add utime-h.
3578         * lib/copy-file.c: Assume that <utime.h> exists.
3579         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
3581         * modules/utimens (Depends-on): Add utime-h.
3582         * lib/utimens.c: Assume that <utime.h> exists.
3584 2017-04-29  Bruno Haible  <bruno@clisp.org>
3586         utime-h: New module.
3587         * m4/utime_h.m4: New file.
3588         * lib/utime.in.h: New file.
3589         * modules/utime-h: New file.
3590         * doc/posix-headers/utime.texi: Mention the new module.
3592         * tests/test-utime-h.c: New file.
3593         * modules/utime-h-tests: New file.
3595 2017-04-30  Bruno Haible  <bruno@clisp.org>
3597         Fix a few typos.
3598         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
3599         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
3600         * doc/posix-functions/fstat.texi: Fix a plural typo.
3601         * doc/posix-functions/stat.texi: Likewise.
3602         * m4/include_next.m4: Update comments.
3604 2017-04-29  Bruno Haible  <bruno@clisp.org>
3606         error: Fix mistake in 2017-04-23 commit.
3607         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
3608         assume that strerror_r returns 'int', not 'char *'.
3610 2017-04-29  Bruno Haible  <bruno@clisp.org>
3612         stat: Fix time_t values and other problems on native Windows platforms.
3613         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
3614         implementations of stat().
3615         * lib/stat.c: Include filename.h instead of dosname.h. Include
3616         malloca.h, stat-w32.h.
3617         (is_unc_root): New function.
3618         (rpl_stat): New implementation for native Windows. Remove
3619         REPLACE_FUNC_STAT_DIR code.
3620         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
3621         Don't define REPLACE_FUNC_STAT_DIR.
3622         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
3623         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
3624         (Depends-on): Remove dosname. Add filename, malloca.
3625         (configure.ac): Also compile lib/stat-w32.c.
3627 2017-04-29  Bruno Haible  <bruno@clisp.org>
3629         fstat: Fix time_t values on native Windows platforms.
3630         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
3631         * lib/stat-w32.h: New file.
3632         * lib/stat-w32.c: New file.
3633         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
3634         stat-w32.h instead.
3635         (fstat_nothrow): Remove function.
3636         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
3637         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
3638         always.
3639         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
3640         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
3641         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
3642         (configure.ac): Also compile lib/stat-w32.c.
3644 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3646         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
3647         Problem reported by Assaf Gordon and Gavin Smith in:
3648         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
3649         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
3650         #define this, too.
3652 2017-04-29  Bruno Haible  <bruno@clisp.org>
3654         strerror_r-posix: Fixes for MSVC 14.
3655         * lib/strerror_r.c: Include <stdarg.h>.
3656         (strerror_r): Provide error messages for errno values 100...140.
3657         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
3659 2017-04-28  Bruno Haible  <bruno@clisp.org>
3661         noreturn: New module.
3662         * lib/noreturn.h: New file.
3663         * modules/noreturn: New file.
3664         * tests/test-noreturn.c: New file.
3665         * modules/noreturn-tests: New file.
3666         * tests/test-noreturn-c++.cc: New file.
3667         * modules/noreturn-c++-tests: New file.
3669 2017-04-27  Bruno Haible  <bruno@clisp.org>
3671         wctype-h: Fix compilation error with the original mingw.org mingw.
3672         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
3673         HAVE_CRTDEFS_H.
3674         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
3675         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
3676         <stddef.h> instead.
3677         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
3679 2017-04-26  Pádraig Brady  <P@draigBrady.com>
3681         nap.h: Fix compilation on non windows platforms
3682         * tests/nap.h: Move misplaced endif.
3684 2017-04-26  Pádraig Brady  <P@draigBrady.com>
3685         and Paul Eggert  <eggert@cs.ucla.edu>
3687         time_rz: fix heap buffer overflow vulnerability
3688         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
3689         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
3690         whether there is enough buffer space available, thus avoiding
3691         the problematic promotion of signed to unsigned causing an invalid
3692         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
3693         the start of the buffer.
3694         * tests/test-parse-datetime.c (main): Add a test case written by
3695         Paul Eggert, which overwrites enough of the heap so that
3696         standard glibc will fail with "free(): invalid pointer"
3697         without the patch applied.
3699 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3701         xalloc: add missing integer overflow check
3702         * lib/xalloc.h (x2nrealloc): Also check for multiplication
3703         overflow when P is null.
3705 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3707         parse-datetime: make it standalone
3708         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
3709         (_GL_ATTRIBUTE_FORMAT): New macro.
3710         These are needed to get './gnulib-tool --test parse-datetime' to work.
3712 2017-04-23  Bruno Haible  <bruno@clisp.org>
3714         nap.h: Port to native Windows.
3715         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
3716         use nap_fd instead. On native Windows, close and reopen nap_fd.
3717         (nap_works): Don't compare the ctimes, because on native Windows, these
3718         are the creation times.
3719         (nap): Update.
3721 2017-04-23  Bruno Haible  <bruno@clisp.org>
3723         nap.h: Fix logic.
3724         * tests/nap.h (nap): Avoid signed integer overflow in loop.
3726 2017-04-23  Bruno Haible  <bruno@clisp.org>
3728         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
3729         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
3730         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
3731         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
3732         * lib/argp-help.c (__argp_failure): Likewise.
3734 2017-04-23  Bruno Haible  <bruno@clisp.org>
3736         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
3737         * m4/strerror_r.m4: Revert changes since 2016-10-16.
3738         * lib/strerror_r.c: Likewise.
3740 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3742         Target a C99 subset, not a C89 subset
3743         For many years Gnulib has targeted C89 and has resisted using C99
3744         features, as some Gnulib-using programs still wanted to target
3745         C89.  As this no longer seems to be the case, relax the porting
3746         requirements to allow some C99 features.  This is merely a change
3747         to the documentation, to give other Gnulib developers a chance to
3748         weigh in on the topic.
3749         * doc/extern-inline.texi (extern inline):
3750         * doc/gnulib-readme.texi (Portability guidelines):
3751         * doc/gnulib-tool.texi (Initial import):
3752         * doc/gnulib.texi (Header files):
3753         Modernize to talk about C99 and C11 instead of C89 and C99.
3754         * doc/gnulib-readme.texi (Portability guidelines):
3755         Now a section, not merely a subsection, so that it
3756         can be split up.  Modernize a bit.
3757         (C language versions, C99 features assumed)
3758         (C99 features avoided):
3759         New sections.
3761 2017-04-23  Bruno Haible  <bruno@clisp.org>
3763         doc: New section "Modules that modify the way other modules work".
3764         * doc/gnulib.texi (Modules that modify the way other modules work): New
3765         section.
3767 2017-04-23  Bruno Haible  <bruno@clisp.org>
3769         stat-time: Update comments.
3770         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
3771         * tests/test-utimens-common.h: Add reference regarding st_ctime on
3772         Windows.
3774 2017-04-01  Bruno Haible  <bruno@clisp.org>
3776         glob: Fix more memory leaks.
3777         * lib/glob.c (glob): Free allocated memory before returning.
3778         Reported by Coverity via Tim Rühsen.
3780 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3782         poll: improve fast check for out-of-range NFD
3783         * lib/poll.c: Do not include intprops.h.
3784         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
3785         * modules/poll (Depends-on): Remove intprops.
3787         ftoastr: cite a newer paper
3788         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
3789         instead of Loitsch 2010.
3791 2017-04-22  Bruno Haible  <bruno@clisp.org>
3793         poll: Enable argument check also in the Windows implementation.
3794         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
3795         Reported by Paul Eggert.
3797 2017-04-22  Bruno Haible  <bruno@clisp.org>
3799         getlogin_r: Work around bug in Mac OS X 10.12.
3800         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
3801         bug.
3802         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
3803         given size minus 1, call getlogin_r a second time, on a larger buffer.
3804         * modules/getlogin_r (Depends-on): Add malloca.
3805         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
3807 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3809         parse-datetime: fix %z and prefer signed int
3810         %z problem reported by Pádraig Brady in:
3811         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
3812         While fixing it, I decided to prefer signed ints to size_t, as
3813         they are less error-prone (e.g., ubsan catches overflow).
3814         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
3815         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
3816         counts, since signed integers make for better debugging.
3817         (date): Don’t assume %z works in printf formats.
3818         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
3819         sizes of buffers known to be small, e.g., because we’re using snprintf.
3820         (parse_datetime2): Simplify call to debug_mktime_not_ok.
3822 2017-04-22  Bruno Haible  <bruno@clisp.org>
3824         *printf: Work around rounding bug on Mac OS X.
3825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
3826         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
3827         Mac OS X and FreeBSD.
3828         * doc/glibc-functions/*printf.texi: Likewise.
3830 2017-04-22  Bruno Haible  <bruno@clisp.org>
3832         vasnprintf tests: Avoid warnings.
3833         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
3834         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
3835         test.
3837 2017-04-22  Bruno Haible  <bruno@clisp.org>
3839         sys_file tests: Avoid warning.
3840         * tests/test-sys_file.c (main): Add a default clause to the switch
3841         statement.
3843 2017-04-22  Bruno Haible  <bruno@clisp.org>
3845         sethostname: Update doc.
3846         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
3847         Mac OS X.
3849 2017-04-22  Bruno Haible  <bruno@clisp.org>
3851         quotearg tests: Avoid warnings.
3852         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
3853         false.
3855 2017-04-22  Bruno Haible  <bruno@clisp.org>
3857         poll: Enable argument check.
3858         * lib/poll.c: Include intprops.h.
3859         (poll): Check value of nfd correctly.
3860         * modules/poll (Depends-on): Add intprops.
3862 2017-04-22  Bruno Haible  <bruno@clisp.org>
3864         get-rusage-data: Avoid warnings on Mac OS X.
3865         * lib/get-rusage-data.c: On Mac OS X, don't define
3866         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
3867         (get_rusage_data) [Mac OS X]: Just return 0.
3869 2017-04-22  Bruno Haible  <bruno@clisp.org>
3871         xbinary-io: Fix build error.
3872         * modules/xbinary-io (Depends-on): Add gettext-h.
3873         * lib/xbinary-io.c: Include gettext.h and define _().
3874         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3875         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
3877 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3879         parse-datetime: overflow and debug cleanups
3880         This long patch was triggered by this bug report from Ruediger Meier:
3881         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
3882         I fixed the bug he noted, then found some others nearby, and then
3883         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
3884         up some of the code to follow GNU standards while I was at it.
3885         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
3886         use c_isdigit.
3887         (EPOCH_YEAR): Remove; unused.
3888         (TM_YEAR_BASE): Now an enum rather than a macro.
3889         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
3890         time zone offset, since timezones now are in terms of seconds and
3891         not minutes.
3892         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
3893         appropriate.  Verify that intmax_t is wide enough.
3894         (time_overflow, time_zone_str): New functions, used to deal
3895         more reliably with overflow.
3896         (dbg_printf): Add printf attribute, to help catch integer width errors.
3897         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
3898         (%union, to_hour, yylex, parse_datetime2):
3899         Use intmax_t instead of long int and/or long_time_t.
3900         All uses changed.
3901         (DBGBUFSIZE): Move earlier.
3902         (relative_time, set_hhmmss, parser_control):
3903         Just use int for nanoseconds and for time zones; that’s wide enough.
3904         (parser_control): Use bool for members like year_seen that can
3905         be booleans instead of counters.  All uses changed.
3906         Remove debug_default_input_timezone; no longer needed.
3907         All uses removed.
3908         (apply_relative_time): Return a bool overflow flag.
3909         All uses changed to check for overflow.
3910         (apply_relative_time, zone, date, relunit, relunit_snumber)
3911         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
3912         Check for integer overflow portably.
3913         (str_days): Use just int for N, as it’s wide enough.
3914         Prefer 2D char arrays to arrays of char * when it looks like
3915         2D is a win on typical platforms.
3916         Prefer snprintf to strncpy/strncat, for simplicity;
3917         all buffers are smaller than INT_MAX so this is safe.
3918         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
3919         (debug_print_current_time): Don’t assume tv_nsec is of type long,
3920         as this is not true on x32.  Output "." before any nanoseconds.
3921         (debug_print_current_time, parse_datetime2):
3922         Output local zones using a more-consistent format.
3923         (debug_print_current_time, date, parse_datetime2):
3924         (main) [TEST]:
3925         Don’t assume time_t is the same width as long.
3926         (print_rel_part): New function, replacing ...
3927         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
3928         (debug_print_relative_time): Use bool for boolean.
3929         (local_zone): dsts_seen now counts only tDST instances.
3930         (date): Fix printf of size_t to use %z.  Do not assume numeric
3931         tokens have negative values merely because the context suggests
3932         a syntax with "-" separating tokens.
3933         (time_zone_hhmm): Return bool success indicator, which checks for
3934         overflow.  Store result into PC->time_zone instead.  All callers
3935         changed.
3936         (tm_year_str): New function.  Return a bool success indicator and
3937         store the result into a buffer.  All callers changed.  Output the
3938         numerically correct string even if adding 1900 to the year would
3939         overflow.
3940         (to_tm_year): New function, replacing the old to_year.  All
3941         callers changed.
3942         (tm_diff): Sync with glibc.
3943         (lookup_word): Use to_uchar instead of doing it by hand.
3944         (TZBUFSIZE): Now local to the only function that needs it.
3945         (debug_strfdatetime): Simplify now that time zones are int seconds.
3946         (debug_strfdate): Work even if tm_year + 1900 would overflow.
3947         (get_effective_timezone): Remove.  All uses removed.
3948         (parse_datetime2): Use fprintf in pieces instead of snprintfing
3949         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
3950         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
3951         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
3952         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
3953         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
3954         * modules/parse-datetime (Depends-on): Add inttypes.
3956 2017-04-21  Bruno Haible  <bruno@clisp.org>
3958         gettext-h: Avoid -Wundef warning.
3959         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
3960         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3961         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
3963 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
3965         error: Avoid "function declaration isn't a prototype" warning.
3966         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
3968 2017-04-21  Bruno Haible  <bruno@clisp.org>
3970         vasnprintf: Fix for MSVC 14.
3971         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
3972         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
3973         of !HAVE_SNPRINTF_RETVAL_C99.
3975 2017-04-21  Bruno Haible  <bruno@clisp.org>
3977         mbrtowc tests: Fix test failures on MSVC 14.
3978         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
3979         behaviour for invalid input.
3981 2017-04-21  Bruno Haible  <bruno@clisp.org>
3983         mbsinit: Fix for MSVC 14.
3984         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
3985         implementation that is in sync with mbrtowc.c. On other platforms, use
3986         an adequate ad-hoc implementation.
3988 2017-04-21  Bruno Haible  <bruno@clisp.org>
3990         Fix test-mbrtowc5.sh failure on native Windows.
3991         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
3992         "C".
3994 2017-04-21  Bruno Haible  <bruno@clisp.org>
3996         Avoid accidental use of native Windows APIs on Cygwin.
3997         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
3998         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
3999         * lib/localename.c (WINDOWS_NATIVE): Likewise.
4001 2017-04-20  Bruno Haible  <bruno@clisp.org>
4003         Remove red warnings from the generated MODULES.html.
4004         * modules/fcntl (Description): Disambiguate function references.
4005         * modules/getcwd-lgpl (Description): Likewise.
4006         * modules/hostent (Description): Likewise.
4007         * modules/servent (Description): Likewise.
4008         * modules/tempname (Description): Likewise.
4010 2017-04-20  Bruno Haible  <bruno@clisp.org>
4012         verify tests: Fix spurious failure with parallel make.
4013         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
4014         EXTRA_PROGRAMS.
4015         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
4016         * tests/test-verify-try.c: New file.
4017         * modules/verify-tests (Files): Add it.
4018         (EXTRA_PROGRAMS): Add test-verify-try.
4019         (MOSTLYCLEANFILES): Update accordingly.
4020         Reported by Adam James Stewart <ajstewart@anl.gov>.
4022 2017-04-18  Bruno Haible  <bruno@clisp.org>
4024         vma-iter: Fix compilation error on Solaris 7.
4025         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
4026         like on IRIX, OSF/1.
4027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4029 2017-04-18  Bruno Haible  <bruno@clisp.org>
4031         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
4032         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
4033         included.
4034         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
4035         <sys/procfs.h>.
4036         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
4037         <sys/procfs.h> cannot be included.
4038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4040 2017-04-18  Bruno Haible  <bruno@clisp.org>
4042         getopt-gnu: Add comments.
4043         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
4044         * modules/getopt-gnu (configure.ac): Likewise.
4046 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
4048         regex: port better to Solaris 10
4049         Solaris 10 <locale.h> includes <libintl.h>, which #defines
4050         gettext, and this causes a double #define.
4051         Problem reported by Gavin Smith in:
4052         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
4053         * lib/regex_internal.h (gettext): #undef before #defining.
4055 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4057         intprops: improve comments
4058         * lib/intprops.h: Improve and shorten commentary.
4059         For the record, if we ever run into a pedantic compiler that
4060         behaves differently from GCC when converting an out-of-range value
4061         to a signed integer, we can work around the problem with something
4062         like the following code, where UCT is the signed counterpart of T
4063         (UCT is sometimes narrower than UT) and all callers are changed
4064         accordingly:
4065         #if __SUNPRO_C <= 0x5120
4066         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
4067            ((t) ((ut) (a) op (ut) (b)))
4068         #else
4069         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
4070            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
4071             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
4072                + TYPE_MINIMUM (t)) \
4073             : (t) (uct) ((ut) (a) op (ut) (b)))
4074         #endif
4076 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
4078         intprops: try to avoid tickling similar bugs
4079         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
4080         needs to be the same width as T; it can be wider.
4081         Change callers so that UT is at least as wide as unsigned int,
4082         as I suspect that this is less likely to run into compiler bugs.
4084         intprops: port to Oracle Studio 12.3 x86
4085         Problem reported by Gavin Smith in:
4086         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
4087         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
4088         Convert unsigned to signed via the usual rather than the standard way,
4089         to avoid a compiler bug in Oracle Studio 12.3 x86.
4091 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4093         getopt: prefer - to _ in new file names
4094         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
4095         * lib/getopt-core.h: Rename from lib/getopt_core.h.
4096         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
4097         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
4098         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
4099         All uses changed.
4101         getopt: port recent getopt changes to macOS
4102         Problem reported by Harald Maier (Bug#26398).
4103         The macOS C compiler uses __nonnull for its own purposes and that
4104         clashes with glibc's __nonnull.
4105         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
4106         * lib/getopt_cdefs.in.h (__nonnull): Remove.
4107         * lib/getopt_core.h (getopt):
4108         * lib/getopt_ext.h (getopt_long, getopt_long_only):
4109         Use _GL_ARG_NONNULL, not __nonnull.
4110         * lib/unistd.in.h: Move snippet hooks to before where the getopt
4111         .h files are included, so that _GL_ARG_NONNULL is defined in time.
4112         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
4113         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
4115 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4117         getopt-gnu: omit some duplicate code
4118         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
4119         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
4120         gnulib-tool already does this.
4121         * modules/getopt-gnu (configure.ac): Omit code duplicated from
4122         getopt-posix, which we depend on.
4124         getopt-posix: use angle-bracket include
4125         * lib/getopt1.c: Include <config.h>, not "config.h".
4127 2017-04-06  Zack Weinberg  <zackw@panix.com>
4129         getopt: annotate files with relationship to glibc
4131         As the final act in this patchset, adjust the message at the top of
4132         each file to indicate which files are synced with glibc.  (This has
4133         already been done for most of the headers.)
4135         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
4136         Mention in top-of-file boilerplate that these files are shared
4137         between glibc and gnulib.
4140         getopt: split up getopt.in.h and eliminate __need_getopt
4142         Over in glibc, all of the __need macros are being phased out in favor
4143         of small headers that declare only the necessary components, as this
4144         is much simpler and less prone to bugs.  As getopt is shared with
4145         glibc, gnulib needs to do the same for __need_getopt.
4147         __need_getopt is misnamed; what it really means is "we want only the
4148         getopt features specified in POSIX, not the GNU extensions".  glibc
4149         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
4150         these files can be shared verbatim with gnulib.  The portability
4151         wrapper, on the other hand, they have renounced altogether; glibc's
4152         getopt.h will no longer be shared with gnulib at all.  In exchange,
4153         certain glibc-specific quirks (having to do with __posix_getopt) no
4154         longer need appear in gnulib's headers at all.
4156         This patch merges getopt_core.h and getopt_ext.h from glibc, and
4157         splits up the current gnulib-side portability wrapper into three
4158         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
4159         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
4160         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
4161         unistd.in.h just use them.  All new files are clearly marked with
4162         whether they are shared with glibc.
4164         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
4165         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
4166         with glibc, and ...
4167         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
4168         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
4169         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
4170         instead of defining __need_getopt and including the full getopt.h.
4172         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
4173         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
4174         * modules/getopt-posix (Files): Add new headers and sort list.
4175         (Depends-on): No longer need snippet/arg-nonnull.
4176         (Makefile.am): Generate getopt_cdefs.h.
4179         getopt: better handling of ambiguous options
4181         glibc's getopt uses alloca to construct a linked list of possibilities
4182         for an "ambiguous" long option.  In gnulib, malloc should be used
4183         instead.  Providing for both cases complicates things a fair bit.
4185         This patch rewrites ambiguous-option handling to use a boolean vector
4186         instead of a linked list.  There is then only one allocation that
4187         might need freeing; in glibc it can honor __libc_use_alloca as usual,
4188         and in gnulib we define __libc_use_alloca to always be false, so we
4189         don't need ifdefs in the middle of the function.  This should also be
4190         slightly more efficient in the normal case of long options being fully
4191         spelled out -- I think most people aren't even aware they _can_
4192         sometimes abbreviate long options.
4194         One interesting consequence is that the list of possibilities is now
4195         printed in exactly the order they appear in the list of long options,
4196         instead of the first possibility being shuffled to the end.
4198         (The patch looks bigger than it really is because there's a fair bit
4199         of reindentation and code rearrangement.)
4201         * lib/getopt.c: When used standalone, define __libc_use_alloca
4202         as always false and alloca to abort if called.
4203         (process_long_option): Rewrite handling of ambiguous long options
4204         to use a single boolean vector, not a linked list; use
4205         __libc_use_alloca to decide whether to allocate this using alloca.
4208         getopt: refactor long-option handling
4210         There were two copies of the bulk of the code to handle long options.
4211         Now there is only one.
4213         This change temporarily removes the logic to avoid using alloca when
4214         standalone; the next patch in the series will restore it.
4216         * lib/getopt.c (process_long_option): New function split out
4217         from _getopt_internal_r.
4218         (_getopt_internal_r): Replace both copies of the long-option
4219         processing code with calls to process_long_option.
4222         getopt: tidy up _getopt_initialize a bit
4224         _getopt_data.__posixly_correct is completely redundant to
4225         _getopt_data.__ordering, and some work that logically belongs in
4226         _getopt_initialize was being done by _getopt_internal_r, making the
4227         code harder to understand.
4229         As a side effect, getenv will no longer be called if the first
4230         character of the options string is '+' or '-', which is probably a
4231         Good Thing.  (Perhaps we should have a flag character that
4232         specifically asks for the permutation behavior?)
4234         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
4235         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
4236         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
4239         getopt: merge from glibc: repetition reduction
4241         The definitions of the entry point functions 'getopt' and
4242         '__posix_getopt' can be made substantially less repetitive with a
4243         helper macro.
4245         While I was merging the const-correctness changes from gnulib into
4246         glibc I noticed there are still some unnecessary casts in
4247         _getopt_internal_r.
4249         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
4250         a macro.  Consistently cast 'argv' to 'char **' when calling
4251         _getopt_internal.
4252         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
4255         getopt: clean up error reporting
4257         getopt can print a whole bunch of error messages, and when used
4258         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
4259         cancellation point and getopt isn't, and also applying fprintf to a
4260         stream in wide-character mode is not allowed.  So every single error
4261         reporting case has an #ifdef _LIBC block in which it calls internal
4262         libc functions instead.  The counterpart patch series in glibc makes
4263         it possible to simplify all of that down to a set of #defines at the
4264         top of the file; core code is written as if it is safe to just call
4265         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
4266         call any *other* stdio functions.)
4268         * lib/getopt.c: When _LIBC is defined, define fprintf to
4269         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
4270         to _IO_funlockfile.  When neither _LIBC nor
4271         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
4272         funlockfile as no-ops.
4273         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
4274         standalone error-printing code can now be used for libc as well.
4275         Add an flockfile/funlockfile pair around one case where the error
4276         message is printed in several chunks.  Don't use fputc.
4279         getopt: fix fencepost error in ambiguous-W-option handling
4281         getopt_long contains an undocumented (AFAICT) feature in which, if you
4282         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
4283         treated as equivalent to '--foo'.  This is implemented with a partial
4284         second copy of the code for handling long options, and that code
4285         increments optind one too many times when recovering from an ambiguous
4286         abbreviated option, which can cause the main loop to walk past the end
4287         of argv and crash.
4289         I discovered this while writing a test case that tries to exercise all
4290         of getopt's error reporting paths; I wouldn't be surprised to learn
4291         that this feature is never used by real applications.
4293         * lib/getopt.c (_getopt_internal_r): Don't increment
4294         d->optind a second time when reporting ambiguous -W options.
4297         getopt: clean up getopt.c and getopt1.c file headers
4299         In getopt.c, there is no need to include wchar.h at all, and it is
4300         safe nowadays to assume that stdlib.h does declare getenv (several
4301         other gnulib modules make this assumption).
4303         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
4304         by using "" inclusions consistently, and there is no actual need to
4305         include stdlib.h (except in the #ifdef TEST block, where it should be
4306         unconditional), nor to provide a backup definition of NULL at all.
4308         * lib/getopt1.c: Simplify #ifdeffage at top of file.
4309         Move inclusion of stdlib.h to #ifdef TEST block and make
4310         unconditional.  Do not define NULL.
4311         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
4312         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
4313         * modules/getopt-gnu, modules/getopt-posix: Don't call
4314         gl_PREREQ_GETENV.
4317         getopt: harmonize comments with glibc
4319         The comments explaining how the behavior of 'getopt' varies depending
4320         on whether it's the standalone version and whether there are special
4321         characters at the beginning of the options string were inconsistent
4322         between gnulib and glibc, and also out of sync with the code.
4324         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
4327         getopt: remove USE_NONOPTION_FLAGS
4329         getopt includes code to parse an environment variable named
4330         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
4331         in decimal); but all of it has been #ifdefed out since 2001, with no
4332         official way to turn it back on.
4334         According to commentary in glibc's config.h.in, bash version 2.0
4335         set this environment variable to indicate argv elements that were
4336         the result of glob expansion and therefore should not be treated
4337         as options, but the feature was "disabled later" because "it
4338         caused problems".  According to bash's CHANGES file, "later" was
4339         release 2.01; it gives no more detail about what the problems
4340         were.
4342         Version 2.0 of bash was released on the last day of 1996, and version
4343         2.01 in June of 1997.  Twenty years later, I think it is safe to
4344         assume that this environment variable isn't coming back.
4346         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
4347         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
4348         __libc_argc and __libc_argv externs, which were only used by
4349         #ifdef USE_NONOPTION_FLAGS blocks.
4352         getopt: tabify, in preparation for merge with glibc
4354         glibc sticks to the GNU default of indenting with a mix of
4355         8-column tabs and spaces; make the gnulib copy match.
4357         getopt.h is not included because it is *not* going to be merged in its
4358         present form.
4360         * getopt.c, getopt1.c, getopt_int.h: Tabify.
4362 2017-04-02  Bruno Haible  <bruno@clisp.org>
4364         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
4365         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
4366         like it was done in modules/relocatable-lib on 2011-05-21 and in
4367         modules/relocatable-prog on 2011-08-15.
4368         Reported by Reuben Thomas <rrt@sc3d.org>.
4370 2017-03-31  Bruno Haible  <bruno@clisp.org>
4372         glob: Fix invalid free() call.
4373         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
4374         static storage to home_dir.
4375         Reported by Coverity via Tim Rühsen.
4377 2017-03-31  Bruno Haible  <bruno@clisp.org>
4379         glob: Fix memory leaks.
4380         * lib/glob.c (glob): Free allocated memory before returning.
4381         Reported by Coverity via Tim Rühsen.
4383 2017-03-31  Bruno Haible  <bruno@clisp.org>
4385         md5, sha1, sha256, sha512: Add comments regarding correctness.
4386         * lib/md5.h (buflen): Add comments regarding range.
4387         * lib/sha1.h (buflen): Likewise.
4388         * lib/sha256.h (buflen): Likewise.
4389         * lib/sha512.h (buflen): Likewise.
4390         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
4391         * lib/sha1.c (sha1_process_bytes): Likewise.
4392         * lib/sha256.c (sha256_process_bytes): Likewise.
4393         * lib/sha512.c (sha512_process_bytes): Likewise.
4394         Reported by Coverity via Tim Rühsen.
4396 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
4398         getopt: merge from glibc
4399         This does not change anything substantial; it merely simplifies
4400         hypothetical merges back to glibc.
4401         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
4402         Change copyright notice to match what is in glibc.
4403         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
4404         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
4405         __open_memstream rather than open_memstream and __glibc_likely
4406         instead of __builtin_expect.
4407         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
4409 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4411         dfa: make [0-9] faster in non-C locales
4412         Problem reported by John P. Linderman (Bug#26193).
4413         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
4414         If both ends of the range are ASCII digits, do not worry about
4415         multi-character collating sequences and the like.  Be consistent
4416         about using isalpha as a precondition for setbit_case_fold_c.
4418 2017-03-19  Bruno Haible  <bruno@clisp.org>
4420         lock: Fix compilation error with HP-UX IA64 cc.
4421         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
4422         weak on non-glibc platforms.
4424 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4426         stdalign: tweak version# and test for HP-UX IA64
4427         Problems reported by Bruno Haible in:
4428         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
4429         * lib/stdalign.in.h (_Alignas):
4430         * m4/stdalign.m4 (gl_STDALIGN_H):
4431         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
4432         used octal (as that is how they document it), but it is decimal in
4433         practice now and the ancient implementations no longer matter.
4434         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
4436 2017-03-19  Bruno Haible  <bruno@clisp.org>
4438         vma-iter: Add support for Solaris.
4439         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
4440         approach.
4441         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
4442         * lib/get-rusage-as.c: Update comment about Solaris.
4443         * lib/get-rusage-data.c: Likewise.
4445 2017-03-19  Bruno Haible  <bruno@clisp.org>
4447         vma-iter: Prefer HP-UX specific API on HP-UX.
4448         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
4449         * lib/vma-iter.h: Update.
4450         Just in case HP-UX ever implements mquery().
4452 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
4454         stdalign: restore previous behavior for HP-UX IA64
4455         See Bruno Haible's email in:
4456         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4457         which cites p 150 of a manual saying that 'aligned' works on Itanium.
4458         * lib/stdalign.in.h (_Alignas):
4459         Assume the '061200' applies to Itanium, not to PA-RISC.
4460         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
4462 2017-03-17  Bruno Haible  <bruno@clisp.org>
4464         stat-time, timespec: Support use of the header files in C++ mode.
4465         * lib/stat-time.h: Add "C" linkage declaration.
4466         * lib/timespec.h: Likewise.
4468 2017-03-17  Bruno Haible  <bruno@clisp.org>
4470         stdalign: Make it work with HP-UX cc.
4471         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
4472         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
4473         for HP-UX cc.
4475 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
4477         flexmember: try to detect HP-UX 11.31 cc bug
4478         Problem reported by Bruno Haible in:
4479         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4480         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4481         Attempt to detect bug in HP-UX 11.31 cc.
4483 2017-03-16  Bruno Haible  <bruno@clisp.org>
4485         stdint: Fix test compilation failure with HP-UX 11 cc.
4486         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
4487         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
4488         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
4489         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
4491 2017-03-14  Bruno Haible  <bruno@clisp.org>
4493         gnulib-tool: Don't produce a tests directory with only snippet .h files.
4494         * gnulib-tool (func_modules_transitive_closure_separately): If
4495         testsrelated_modules ends up with no "real" modules, aside from
4496         modules with applicability 'all', set it to empty.
4498 2017-03-14  Bruno Haible  <bruno@clisp.org>
4500         vma-iter: Add support for HP-UX.
4501         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
4502         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
4503         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
4504         * lib/get-rusage-as.c: Update comment about HP-UX.
4505         * lib/get-rusage-data.c: Likewise.
4506         (get_rusage_data): Use get_rusage_data_via_setrlimit.
4508 2017-03-14  Bruno Haible  <bruno@clisp.org>
4510         limits-h: Make it work with HP-UX cc.
4511         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
4512         defined.
4514 2017-03-14  Bruno Haible  <bruno@clisp.org>
4516         Fix test failures on DragonFlyBSD.
4517         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
4518         * tests/test-select.h (test_bad_fd): Likewise.
4519         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
4521 2017-03-14  Bruno Haible  <bruno@clisp.org>
4523         freadahead: Silence warning on DragonFlyBSD.
4524         * lib/freadahead.c (__sreadahead): Declare ourselves.
4526 2017-03-14  Bruno Haible  <bruno@clisp.org>
4528         vma-iter: Add comment about AIX.
4529         * lib/vma-iter.c: Add comment about why this module is not implemented
4530         on AIX.
4532 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4534         snippets: move unadjusted snippet sources to lib
4535         Problem reported by Michal Privoznik in:
4536         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
4537         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
4538         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
4539         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
4540         * lib/unused-parameter.h: Rename from
4541         build-aux/snippet/unused-parameter.h.
4542         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
4543         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
4544         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
4545         * modules/snippet/c++defs (Files:, CXXDEFS_H):
4546         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
4547         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
4548         Adjust to file renamings.
4550 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
4552         gnulib-tool: don't automatically distribute files from top/
4553         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
4554         not distribute top/README-release by default, don't distribute files
4555         from top/ unconditionally.
4556         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
4557         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
4559 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4561         gnulib-tool: fix typo in comment output
4562         * gnulib-tool (func_import): Fix typo with previous change.
4564         snippets: work around GNU Make 3.82 VPATH
4565         When using 'gnulib-tool --gnu-make' on Emacs, and building
4566         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
4567         an out-of-source (VPATH) build failed because the sans-copyright
4568         snippet file was not built before the file that used it.
4569         Presumably this is some sort of VPATH thing.  Work around the
4570         problem by using the original snippet, i.e., don’t bother to
4571         remove its copyright notice.
4572         * modules/snippet/_Noreturn, modules/snippet/link-warning:
4573         Don’t assume Automake in comments.  Omit long-incorrect comment.
4574         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
4575         (MOSTLYCLEANFILES):
4576         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
4577         (MOSTLYCLEANFILES):
4578         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
4579         (MOSTLYCLEANFILES):
4580         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
4581         (MOSTLYCLEANFILES):
4582         Remove.
4583         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
4584         * modules/snippet/c++defs (CXXDEFS_H):
4585         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
4586         * modules/snippet/warn-on-use (WARN_ON_USE_H):
4587         Don’t bother to remove the copyright notice; just use the
4588         original snippet as-is.
4590 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
4592         gnulib-tool: minor --gnu-make fixups
4593         * gnulib-tool (func_emit_lib_Makefile_am):
4594         Remove useless code that was a blind alley during implementation.
4595         Problem reported by Thien-Thi Nguyen in:
4596         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
4597         (func_import): Note the "--gnu-make" option in the output comment.
4599 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
4601         gnulib-tool: new option --gnu-make
4602         This is for applications like GNU Emacs that use GNU Make
4603         features instead of Automake.
4604         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
4605         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
4606         Do not assume Automake.
4607         * gnulib-tool (func_determine_path_separator)
4608         (func_modules_transitive_closure, func_update_file)
4609         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
4610         (func_import): Add support for --gnu-make.
4612 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
4614         gnulib-common.m4: avoid aclocal.m4 bloat
4615         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
4616         Hide AM_PROG_AR from aclocal, so that aclocal does not
4617         install irrelevant macro definitions into aclocal.m4.
4619 2017-03-10  Bruno Haible  <bruno@clisp.org>
4621         vma-iter: Let callers know about error.
4622         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
4623         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
4625 2017-03-05  Bruno Haible  <bruno@clisp.org>
4627         Fix value of LD for 64-bit compilers on AIX.
4628         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
4629         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
4631 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
4633         dtotimespec: simplify
4634         * lib/dtotimespec.c (dtotimespec): Simplify.
4636 2017-03-04  Bruno Haible  <bruno@clisp.org>
4638         test-calloc-gnu: Reenable test also for GCC 7.
4639         * tests/test-calloc-gnu.c (eight): New function.
4640         (main): Don't skip test; use eight() instead.
4642 2017-03-04  Jim Meyering  <meyering@fb.com>
4644         test-calloc-gnu: port to GCC7
4645         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
4646         that attempts to calloc more than SIZE_MAX bytes, because GCC7
4647         and newer would detect that at compilation time.
4649 2017-03-04  Bruno Haible  <bruno@clisp.org>
4651         tests: Avoid compiler warning about uses of null_ptr.
4652         * tests/null-ptr.h: New file.
4653         * tests/test-canonicalize.c: Include null-ptr.h.
4654         (null_ptr): Remove function.
4655         * tests/test-canonicalize-lgpl.c: Likewise.
4656         * tests/test-memmem.c: Likewise.
4657         * tests/test-ptsname_r.c: Likewise.
4658         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
4659         * modules/canonicalize-lgpl-tests: Likewise.
4660         * modules/memmem-tests: Likewise.
4661         * modules/ptsname_r-tests: Likewise.
4662         Reported by Jim Meyering.
4664 2017-03-03  Bruno Haible  <bruno@clisp.org>
4666         doc: Mention Mac OS X deficiencies regarding semaphores.
4667         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
4668         * doc/posix-functions/sem_destroy.texi: Likewise.
4669         * doc/posix-functions/sem_getvalue.texi: Likewise.
4671 2017-03-03  Bruno Haible  <bruno@clisp.org>
4673         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
4674         Reported by Assaf Gordon <assafgordon@gmail.com> via
4675         Pádraig Brady <P@draigBrady.com>.
4676         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
4677         semaphores.
4678         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
4679         (atomic_int_semaphore): New macro.
4681 2017-02-28  Bruno Haible  <bruno@clisp.org>
4683         perror tests: Tweak for z/OS.
4684         Reported by Daniel Richard G. <skunk@iskunk.org>.
4685         * tests/test-perror.sh: Don't fail z/OS style perror output.
4687 2017-02-26  Bruno Haible  <bruno@clisp.org>
4689         nproc: Refactor large function.
4690         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
4691         from num_processors.
4692         (num_processors): In this function, only deal with OMP.
4694 2017-02-26  Pádraig Brady  <P@draigBrady.com>
4696         nproc: adjust handling of OpenMP environment variables
4697         to match the return value from omp_get_num_threads(), i.e.:
4698          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
4699          - Treat 0 as an invalid value and ignore
4700         Also remove the call to omp_get_num_threads() because
4701         it's ineffective without the omp pragmas in place.
4702         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
4703         so that it can be ignored.
4704         (num_processors): Honor OMP_THREAD_LIMIT even without
4705         OMP_NUM_THREADS being set.  Also fix a typo in the environment
4706         variable being checked, from the previous recent commit.
4708 2017-02-26  Pádraig Brady  <P@draigBrady.com>
4710         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
4711         * lib/nproc.c (parse_omp_threads): A new function refactored
4712         from num_processors() to support parsing both of the
4713         above environment variables.
4714         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
4715         to accurately reflect the current OpenMP nesting level.
4716         Also support the OMP_THREAD_LIMIT environment variable
4717         to limit the max value determined from OMP_NUM_THREADS.
4718         * modules/nproc: Depend on minmax header.
4719         Suggested by Oliver Heimlich.
4721 2017-02-25  Bruno Haible  <bruno@clisp.org>
4723         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
4724         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
4726 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4728         ftoastr: port to -Wdouble-promotion
4729         Work around -Wdouble-promotion false alarm in recent GCCs.
4730         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
4731         (ftoastr_snprintf, FTOASTR): Use it.
4733 2017-02-21  Bruno Haible  <bruno@clisp.org>
4735         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
4736         Reported by Rene Saavedra <rennes@openmailbox.org> in
4737         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
4738         * lib/glthread/lock.h: On glibc systems without
4739         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
4740         implementation of rwlocks.
4741         * lib/glthread/lock.c: Likewise.
4743 2017-02-20  Bruno Haible  <bruno@clisp.org>
4745         lock tests: Fix build failure on z/OS.
4746         Reported by Daniel Richard G. <skunk@iskunk.org>.
4747         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
4748         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
4749         exist.
4751 2017-02-19  Bruno Haible  <bruno@clisp.org>
4753         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
4754         This helps when CC=clang.
4755         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
4756         of /usr/bin/gcc.
4758         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
4759         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
4761 2017-02-19  Bruno Haible  <bruno@clisp.org>
4763         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
4764         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
4765         --with-tests --single-configure is specified.
4767 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
4769         users.txt: Update links, use HTTPS where possible
4770         * users.txt: Updated to HTTPS where possible,
4771         fixed some links to new locations.
4773 2017-02-16  Bruno Haible  <bruno@clisp.org>
4775         xbinary-io: Fix inlining.
4776         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
4778 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4780         xbinary-io: rename from xsetmode
4781         This patch is taken from suggestions by Bruno Haible in:
4782         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
4783         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
4784         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
4785         not ENOTTY, when it is an inappropriate device.
4786         * lib/binary-io.h (SET_BINARY): Resurrect.
4787         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
4788         (xset_binary_mode_error): Rename from xsetmode_error.
4789         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
4790         (xset_binary_mode): Rename from xsetmode.
4791         All uses changed.
4792         * modules/xbinary-io: Rename from modules/xsetmode.
4793         Update file names.
4794         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
4795         * NEWS: Update to match revised behavior.
4797 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4799         tests: Adjust to recent SET_BINARY change
4800         * tests/test-binary-io.c (main):
4801         * tests/test-binary-io.sh: Remove test for SET_BINARY.
4802         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
4803         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
4804         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
4806         xsetmode: new module
4807         This is to fix a problem noted by Eric Blake.
4808         Code was using xfreopen to change files to binary mode, but this
4809         fails for stdout when in append mode.  Such code should use
4810         xsetmode instead.
4811         * NEWS: Document incompatible changes to binary-io module.
4812         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
4813         New function.
4814         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
4815         (set_binary_mode): New function, which also checks for tty.
4816         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
4818 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
4820         headers: fix begin-end typos
4821         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
4822         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
4824         selinux-h: port to PGI 16.10
4825         * lib/se-selinux.in.h: Don't assume that include_next skips over
4826         duplicate -I DIR options.
4828         argp: port to PGI 16.10
4829         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
4831 2017-02-13  Darshit Shah  <darnir@gnu.org>
4833         unicase: Update function protoype to match definition.
4834         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
4835         uses 'size_t' as the datatype for the 'len' parameter in the functions
4836         it generates. Update the prototype specified here to match the newly
4837         generated function.
4839 2017-02-12  Bruno Haible  <bruno@clisp.org>
4841         times test: Avoid gcc warnings on Linux/x32.
4842         * tests/test-times.c (main): Really cast printf arguments from clock_t
4843         to 'long int'.
4845 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4847         glob: port better to emscripten
4848         Problem reported by Bruno Haible in:
4849         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
4850         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
4852 2017-02-11  Bruno Haible  <bruno@clisp.org>
4854         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
4855         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
4856         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
4857         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
4858         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
4859         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
4860         Distinguish hppa64 from hppa.
4862 2017-02-10  Bruno Haible  <bruno@clisp.org>
4864         search: Don't assume that tsearch() exists if 'VISIT' is defined.
4865         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
4866         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
4867         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
4869 2017-02-09  Bruno Haible  <bruno@clisp.org>
4871         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
4872         * doc/gnulib.texi (Libtool and Windows): Recommend
4873         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
4874         Reported by Reuben Thomas <rrt@sc3d.org>.
4876 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4878         stddef-tests: port to SIZE_MAX <= INT_MAX
4879         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
4880         Do not assume that INT_MAX < SIZE_MAX.
4882 2017-02-01  Bruno Haible  <bruno@clisp.org>
4884         lock tests: Fix link error.
4885         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
4886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4888 2017-01-31  Bruno Haible  <bruno@clisp.org>
4890         lock: Fix link error (regression from 2017-01-05).
4891         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
4892         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
4893         pthread_rwlockattr_destroy weak.
4894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4896 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4898         Port to PGI 16.10 x86-64
4899         This patch fixes one real bug in gl_anylinked_list2.h, along with
4900         some minor glitches that are not bugs.  It does not silence PGI’s
4901         thousands of bogus warnings when compiling test-intprops.c.
4902         Fortunately, the warnings do not cause a failure.
4903         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
4904         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
4905         My goodness, PGI goes back a long ways - this predates C89!
4906         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
4907         For example, ASYNCSAFE (const void *) should expand to
4908         ‘const void *volatile’, not to ‘volatile const void *’.
4909         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
4910         * lib/verify.h (verify) [!__GNUC__]:
4911         Use shorter albeit meaningless string to bypass silly compiler limits.
4912         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
4913         * tests/nan.h (NaNf, NaNd, NaNl):
4914         Use static functions to avoid misguided compiler diagnostics.
4915         Is there some reason we don’t use static functions on all platforms?
4917 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
4919         parse-datetime: handle timezones reentrantly
4920         This API change was prompted by a report by Pádraig Brady in:
4921         https://bug.debian.org/851934#10
4922         To help fix the bug, make parse_datetime2 more reentrant.
4923         * NEWS: Document this incompatible change.
4924         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
4925         Add two arguments, the timezone and the timezone name.
4926         All callers changed.  If TZ="..." is specified, use it for
4927         calculating defaults.
4928         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
4929         this code should be usable in a library.
4930         (mktime_ok, get_effective_timezone):
4931         Accept timezone arg too.  All callers changed.
4932         (get_tz): Remove.
4933         (get_effective_timezone): Check for failures.
4935 2017-01-20  Eric Blake  <eblake@redhat.com>
4937         localename: port to cygwin 2.6
4938         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
4939         Cygwin.
4940         * modules/localename (Depends-on): Add extensions, since
4941         NL_LOCALE_NAME() is not visible without it.
4943 2017-01-17  Pádraig Brady  <P@draigBrady.com>
4945         parse-datetime: fix dependence on AC_PROG_SED
4946         * modules/parse-datetime: Use `sed` directly like all other modules.
4947         Reported by J William Piggott
4949 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
4951         intprops: update doc URLs
4952         * doc/intprops.texi (Integer Range Overflow): Update URLs.
4954 2017-01-16  Bruno Haible  <bruno@clisp.org>
4956         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
4957         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
4958         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
4959         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
4960         distinguish s390 and s390x.
4961         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
4962         * NEWS: Mention the change regarding 'armel'.
4964 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
4966         localeinfo: case_folded_counterparts and WEOF
4967         * NEWS: Document this.
4968         * lib/localeinfo.c (case_folded_counterparts):
4969         First arg is now wint_t, not wchar_t.  This generalizes the
4970         function to also work on WEOF, where it returns 0.
4972         dfa: port to gcc -fsanitize=undefined
4973         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
4974         as this runs afoul of gcc -fsanitize=undefined.
4976 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4978         strftime: %z is -00 if unknown
4979         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
4980         the caller's responsibility to set 'negative_number'.  All uses changed.
4981         (__strftime_internal): Put '-' before a zero UTC offset if the time
4982         zone abbreviation starts with "-", which is the recently-introduced
4983         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
4984         * tests/test-strftime.c: Test for this.
4986 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
4988         dfa: port to older GCC
4989         Problem reported by Assaf Gordon in:
4990         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
4991         * modules/c99: New module.  This merely attempts to use the latest
4992         C version, which should be enough to solve this particular problem.
4993         The idea is to document which Gnulib modules assume C99 or later.
4994         * modules/dfa (Depends-on): Add it.
4996 2017-01-10  Bruno Haible  <bruno@clisp.org>
4998         Update DEPENDENCIES.
4999         * DEPENDENCIES: List only https URLs. Update recommended version for
5000         autoconf, automake, gperf.
5002 2017-01-10  Jim Meyering  <meyering@fb.com>
5004         maint.mk: enforce spelling of "timestamp" (i.e., no space)
5005         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5006         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
5008 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5010         dfa: minor simplification with emptyset
5011         * lib/dfa.c (build_state): Simplify by using emptyset.
5013 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
5015         dfa: shrink constraints from 4 bits to 3
5016         * lib/dfa.c (newline_constraint, letter_constraint)
5017         (other_constraint, prev_newline_dependent)
5018         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
5019         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
5020         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
5021         Constraints need only 3 bits, not 4.  Using smaller integers
5022         shrinks the code a bit and makes grep a tad faster on x86-64.
5024         dfa: omit unnecessary ptrdiff_t check
5025         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
5026         overflow, since xnmalloc does that now.
5028         dfa: omit unnecessary allocation
5029         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
5030         an all-zero follow set works just fine.
5032         dfa: omit unused local
5033         * lib/dfa.c (build_state): Fix up recent change.
5035         maint: remove stray .texi files
5036         Although these were superseded by other files like
5037         doc/posix-functions/ctime.texi, the old files were not removed.
5038         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
5040 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
5042         getprogname: fix port to IRIX
5043         * lib/getprogname.c (getprogname) [__sgi]:
5044         Don't dump core if malloc returns NULL.
5046         dfa: fix reallocation bug when matching newlines
5047         Problem reported for sed by S. Gilles (Bug#25390).
5048         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
5049         (dfastate): Reallocate before moving any newline transition ...
5050         (build_state): ... instead of reallocating here, where it is too late.
5052 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5054         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
5055         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
5057 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5059         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
5060         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
5062 2017-01-07  Bruno Haible  <bruno@clisp.org>
5064         stdioext: Port to Minix 3.2 and newer.
5065         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
5066         * lib/fseeko.c (fseeko): Likewise.
5067         Reported by Nelson Beebe via Paul Eggert.
5069 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5071         getprogname: port to IRIX
5072         * lib/getprogname.c (getprogname): Port to IRIX.
5073         Based on an idea by Bastien Roucariès at:
5074         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
5075         via code from Bruno Haible at:
5076         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
5078         localename-tests: port to NetBSD 7
5079         Problem reported by Nelson H. F. Beebe.
5080         * tests/test-localename.c:
5081         Test newlocale and uselocale only if both exist.
5083         glob, intprops, xalloc: work around Clang bug
5084         Work around LLVM bug 16404, which is still not fixed.
5085         https://llvm.org/bugs/show_bug.cgi?id=16404
5086         Problem reported by Nelson H. F. Beebe.
5087         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
5088         Remove.
5089         * lib/glob.c (size_add_wrapv):
5090         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
5091         * lib/xalloc-oversized.h (xalloc_oversized):
5092         Do not use overflow builtins if Clang.
5094         dfa: fix 'return' typo
5095         Problem reported by Nelson H. F. Beebe.
5096         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
5098 2017-01-05  Pádraig Brady  <P@draigBrady.com>
5100         parse-datetime: fix generated paths for coverage files
5101         * modules/parse-datetime: Adjust the paths for parse-datetime.y
5102         within parse-datetime.c, so that gcc generates appropriate .gcno
5103         files, allowing lcov to proceed without error.  Previously it
5104         would error trying to find "lib/lib/parse-datetime.y".
5106 2017-01-05  Pádraig Brady  <P@draigBrady.com>
5108         maint.mk: support parallel execution of coverage
5109         * top/maint.mk (coverage): Run dependencies serially,
5110         thus supporting parallel processing of each one,
5111         particularly build-coverage, which builds and runs tests.
5113 2017-01-05  Bruno Haible  <bruno@clisp.org>
5115         lock tests: Prefer semaphore over mutex.
5116         * tests/test-lock.c (USE_SEMAPHORE): New constant.
5117         (struct atomic_int, init_atomic_int, get_atomic_int_value,
5118         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
5119         Suggested by Torvald Riegel <triegel@redhat.com>.
5121 2017-01-05  Bruno Haible  <bruno@clisp.org>
5123         lock: Provide guarantee to avoid writer starvation for rwlocks.
5124         The rationale is: 1) Read-preferring read-write locks are prone to
5125         writer starvation if the number of reader threads multiplied by the
5126         percentage of time they have the lock held is too high. 2) Write-
5127         preferring read-write locks are the only reliable way to avoid this.
5128         3) There have been reports of 'test-lock' hanging on glibc systems
5129         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
5130         and glibc indeed implements read-preferring rwlocks by default, see
5131         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
5132         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
5133         * m4/pthread_rwlock_rdlock.m4: New file.
5134         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
5135         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
5136         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
5137         of rwlock initialization on glibc systems without
5138         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
5139         of rwlocks altogether on non-glibc systems without
5140         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
5141         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
5142         * lib/glthread/lock.c [USE_POSIX_THREADS]
5143         (glthread_rwlock_init_for_glibc): New function.
5144         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
5145         comment.
5146         [USE_PTH_THREADS]: New implementation of rwlocks.
5147         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
5148         readers.
5149         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
5150         (Depends-on): Add 'extensions'.
5151         * tests/test-rwlock1.c: New file.
5152         * lock-tests (Files): Add it.
5153         (Depends-on): Add usleep.
5154         (Makefile.am): Add test-rwlock1 to the tests.
5156 2017-01-05  Bruno Haible  <bruno@clisp.org>
5158         thread: Fix pth port.
5159         * lib/glthread/thread.h (pth_init): Declare weak.
5160         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
5161         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
5162         function.
5164 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
5166         parse-datetime: fix debug message on lone year number
5167         Input dates such as
5168           date -d "Apr 11 22:59:00 2011"
5169         are parsed as date (Apr 11, with default year 2016), then time, then a
5170         number (2011). Based on the combination of previously seen tokens,
5171         'digits_to_date_time' determines 2011 to be a year value.
5172         This fixes the debug messages to correctly show the updated year.
5173         Before:
5174             $ date --debug -d 'Apr 11 22:59:00 2011'
5175             date: parsed date part: (Y-M-D) 2016-04-11
5176             date: parsed time part: 22:59:00
5177             date: parsed number part: today/this/now
5178         After:
5179             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
5180             date: parsed date part: (Y-M-D) 2016-04-11
5181             date: parsed time part: 22:59:00
5182             date: parsed number part: year: 2011
5183         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
5184         'debug_year_seen' member fields.
5185         (digits_to_date_time): Update 'year_seen' as needed.
5186         (debug_print_current_time): Inform about year updates.
5187         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
5189         parse-datetime: fix local timezone debug messages
5190         "Local timezones" are strings that affect only DST relative to the
5191         default timezone. The debug messages in parse-datetime.y printed
5192         wrong information when encountering local timezones.
5193         Examples:
5194         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
5195              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
5196              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
5197         When the default timezone relates to the zone strings, EET/EEST are
5198         parsed as local timezones (tLOCAL_ZONE), and only change the DST
5199         value (0/1, respectively):
5200              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
5201              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
5202         * lib/parse-datetime.y (debug_print_current_time): If local timezone
5203         was seen, inform about DST change, don't print actual timezone.
5204         (debug_strfdatetime): If local timezone was seen, use default timezone
5205         (and adjust as needed) instead of using incorrect timezone.
5206         (parse_datetime2): Use correct time-zone source string, and adjust
5207         default timezone as needed.
5209         parse-datetime: add debug warning about DST changes
5210         Incorrect date arithmetic due to daylight saving time (DST) are a
5211         common (false) bug report in coreutils.
5212         Detect two such cases and print a warning:
5213         1. year/month/day adjustments (performed on 'struct tm'),
5214            where 'mktime' returns a different isdst value.
5215         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
5216            where the result of 'localtime(3)' on the value will return a
5217            different isdst value.
5218         Note: DST changes could be harmless or unnoticeable.
5219         Examples (with 'TZ=America/New_York'):
5220         Unnoticeable: result is 2016-Dec-14
5221            $ date -d '2016-06-15 EDT + 6 months' +%b
5222            Dec
5223         Unnoticeable: result is 2016-Dec-15 11:00:00
5224            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
5225            2016-12-15
5226         This is unexpected:
5227            $ date -d '2016-06-01 EDT + 6 months' +%F
5228            2016-11-30
5229         The new debug warnings will show:
5230            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
5231            ...
5232            date: warning: daylight saving time changed after date adjustment
5233            ...
5234         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
5235         print an appropriate warning message.
5237         parse-datetime: add debug warning about date arithmetic
5238         Date arithmetic are done directly on the fields of 'struct tm',
5239         which can result in invalid dates. Normalization with 'mktime(3)'
5240         will then produce a different date - which might cause unexpected
5241         results.
5242         Examples:
5243           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
5244           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
5245         Note that date normalization is not inherently wrong and not rejected,
5246         as it has legitimate uses:
5247           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
5248         If the user asked to adjust months but 'mday' changed,
5249         or user asked to adjust years but 'month' changed - warn about it.
5250             $ ./src/date --debug -d '2016-10-31 - 1 month'
5251             ...
5252             date: warning: when adding relative months/years, \
5253                            it is recommended to specify the 15th of the month
5254             ...
5255             date: warning: month/year adjustment resulted in shifted dates:
5256             date:      adjusted Y M D: 2016 09 31
5257             date:    normalized Y M D: 2010 10 01
5258             ...
5259         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
5260         a warning message. Improve recommendation of when to use 15 of the
5261         month or noon for date arithmetic.
5263         parse-datetime: fix debug message of relative part after timezone
5264         Relative part (e.g '+8 days') after a timezone string was not
5265         reported (was only reported after a timezone number). Due to the
5266         parser's structure, timezone strings with numbers were handled
5267         separately.
5268         before:
5269              # Timezone number + relative part: OK
5270              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
5271              ...
5272              date: parsed relative part: -8 day(s)
5273              # Timezone string + relative part: missing
5274              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
5275              [ missing message ]
5276         After: messages are printed in both cases.
5277         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
5279         parse-datetime: fix incorrect debug message on lone number
5280         A lone number is an absolute value, not a relative time part.
5281         before:
5282            $ date --debug -d '20130101'
5283            date: parsed number part: today/this/now
5284         After:
5285            $ ./src/date --debug -d '20130101'
5286            date: parsed number part: (Y-M-D) 2013-01-01
5287         * lib/parse-datetime.y ('item'/'number' tokens): Call
5288         'debug_print_current_time' instead of 'debug_print_relative_time'.
5290 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5292         doc: modernize for C11 etc.
5293         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
5294         for C11, MinGW, etc.  This responds to Paul Smith's question in:
5295         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
5297         dfa: prefer functions to FETCH_WC macro
5298         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
5299         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
5300         wint_t result into DFA->lex.wctok instead of to a separate arg.
5301         All callers changed.  Move more local decls closer to where
5302         they're used.
5304         dfa: narrow more local var scopes
5305         * lib/dfa.c: Move more local decls to be more local.
5307         dfa: remove duplicate assignment
5308         Problem reported by Bruno Haible in:
5309         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
5310         * lib/dfa.c (parse_bracket_exp): Simplify.
5312 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5314         dfa: simplify constraint-dependency checking
5315         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
5316         (prev_other_constraint): Remove.
5317         (prev_newline_dependent, prev_letter_dependent):
5318         Simplify, to avoid an unnecessary bitwise AND operation.
5320         dfa: prefer functions and constants to macros
5321         * lib/dfa.c: Prefer constants to macros where either will do.
5322         (streq, isasciidigit, newline_constraint)
5323         (letter_constraint, other_constraint, succeeds_in_context)
5324         (prev_newline_constraint, prev_letter_constraint)
5325         (prev_other_constraint, prev_newline_dependent)
5326         (prev_letter_dependent, accepting, accepts_in_context):
5327         Now static functions instead of function-like macros.
5328         Use lower-case names accordingly.  All uses changed.
5330         dfa: narrow more local var scopes
5331         * lib/dfa.c: Move some more local decls down to nearer where
5332         they're needed.
5334 2016-12-31  Jim Meyering  <meyering@fb.com>
5336         dfa: narrow the scope of many local variables
5337         * lib/dfa.c: Now that we are no longer constrained to c89, move
5338         declarations of many variables (often indices) "down" into the
5339         scope(s) where used or to the point of definition.  This is a
5340         no-semantic-change diff.
5342 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5344         version-etc: new year
5345         * build-aux/gendocs.sh (version):
5346         * doc/gendocs_template:
5347         * doc/gendocs_template_min:
5348         * doc/gnulib.texi:
5349         * lib/version-etc.c (COPYRIGHT_YEAR):
5350         Update copyright dates by hand in templates and the like.
5351         * all files: Run 'make update-copyright'.
5353 2016-12-31  Eric Blake  <eblake@redhat.com>
5355         do-release-commit-and-tag: avoid shell syntax error
5356         * build-aux/do-release-commit-and-tag (curr_br): $branch can
5357         contain spaces when rebasing.
5359         maint.mk: hoist gnulib_dir definition earlier
5360         * top/maint.mk (gnulib_dir): Move near top of file.
5362 2016-12-31  Jim Meyering  <meyering@fb.com>
5364         maint.mk: do not always evaluate intprops-related shell
5365         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
5366         using gnulib_dir undefined (gnulib_dir is defined later in the
5367         file, which will be fixed separately), and besides, there is no
5368         need to incur the cost of this shell invocation for every single
5369         use of this .mk file.  Reported by Eric Blake in
5370         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
5372 2016-12-30  Jim Meyering  <meyering@fb.com>
5374         maint.mk: improve sc_prohibit_intprops_without_use
5375         * top/maint.mk (_intprops_names): Don't hard-code the list of
5376         symbol names.  Instead, derive it on the fly.
5378 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5380         dfa: shorten sbit, success
5381         * lib/dfa.c (struct regex_syntax.sbit):
5382         (struct dfa.success): Use char, not int, for array elements, since
5383         they are all in the range 0..7.
5385         dfa: simplify multibyte_prop etc.
5386         This follows up on a change made when dfa.c was in grep, namely grep
5387         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
5388         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
5389         That earlier simplification allows for some more simplification
5390         and trimming down here.
5391         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
5392         (struct lexer_state): New mamber brack.
5393         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
5394         since they must be in the range 0..3 now.
5395         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
5396         the brack member now supersedes them.
5397         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
5398         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
5399         (dfaparse): Remove unnecessary initializations of already-0 storage.
5400         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
5401         (dfassbuild): No need to clear sup->mbcsets.
5403         dfa: minor performance tweak
5404         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
5406         dfa: wrap charclass inside a struct
5407         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
5408         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
5409         about 5% faster, where list.txt is generated by 'aspell dump
5410         master | head -n 100000 >list.txt'.  See Bug#22239.
5411         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
5412         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
5413         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
5414         Adjust to this, e.g., by using charclass * rather than charclass.
5415         All callers changed as needed.
5416         (copyset): Remove.  All uses changed to simple assignment.
5417         (parse_bracket_exp): Use zeroset instead of memset.
5419 2016-12-30  Jim Meyering  <meyering@fb.com>
5421         maint.mk: update list of intprops.h symbol names
5422         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
5423         This avoids a false failure of the sc_prohibit_intprops_without_use
5424         rule in grep.
5426 2016-12-29  Eric Blake  <eblake@redhat.com>
5428         getopt: fix parallel test failure
5429         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
5430         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
5431         * tests/test-getopt-main.h (main): Use different file names
5432         in case test-getopt-gnu and test-getopt-posix run in parallel.
5434 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5436         xalloc: x2nrealloc check for ptrdiff_t overflow
5437         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
5438         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
5440 2016-12-24  Bruno Haible  <bruno@clisp.org>
5442         lock test: Fix performance problem on multi-core machines.
5443         * tests/test-lock.c (USE_VOLATILE): New macro.
5444         (struct atomic_int): New type.
5445         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
5446         functions.
5447         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
5448         as 'struct atomic_int'.
5449         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
5450         reclock_checker_thread, test_recursive_lock): Use the new functions.
5451         Reported by Eric Blake in
5452         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
5453         and by Pádraig Brady in
5454         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
5456 2016-12-19  Bruno Haible  <bruno@clisp.org>
5458         vma-iter: Fix endless loop on 64-bit Windows.
5459         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
5460         'unsigned long'.
5462 2016-12-19  Bruno Haible  <bruno@clisp.org>
5464         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
5465         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
5466         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
5467         Invoke gt_TYPE_WINT_T instead.
5468         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
5469         * modules/stdint (Files): Add m4/wint_t.m4.
5470         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
5471         * modules/wctype-h (Makefile.am): Likewise.
5472         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
5473         not only on MSVC.
5474         * lib/wctype.in.h (wint_t): Likewise.
5476 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5478         getopt-posix-tests: fix Makefile typo
5479         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
5480         Fix typo: the last ‘_’ was missing in the name.
5481         I suspect that the typo explains this build failure:
5482         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
5483         although I can’t reproduce the problem on Solaris 10 sparc.
5485 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5487         dfa: improve worst-case 'replace' performance
5488         See my note in Bug#22357#71.
5489         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
5490         (merge_constrained): New function, which is like
5491         the old 'merge' function, except with a new argument C2.
5492         Simplify the body by avoiding the need for different sections
5493         of code depending on whether one input is exhausted.
5494         (merge): Use the new function.
5495         (delete): Return the constraint of the deleted position,
5496         not the entire position.  Caller changed.
5497         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
5499 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5501         dfa: performance improvement for removal of epsilon closure
5502         See Bug#22357#32.
5503         * lib/dfa.c (delete): Use binary search to find deleted index.
5504         (replace): New function.  It replaces a position with the followed set.
5505         (epsclosure): Replace it with a new algorithm.  Update caller.
5507 2016-12-18  Bruno Haible  <bruno@clisp.org>
5509         Split tests for getopt-posix and getopt-gnu.
5510         * tests/test-getopt-posix.c: New file.
5511         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
5512         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
5513         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
5514         GNULIB_TEST_GETOPT_GNU.
5515         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
5516         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
5517         (Makefile.am): Test test-getopt-posix instead of test-getopt.
5518         * modules/getopt-gnu-tests: New file.
5519         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
5521 2016-12-18  Bruno Haible  <bruno@clisp.org>
5523         posix-modules: Add options for specific platforms.
5524         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
5525         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
5526         Invoke func_tmpdir. Filter out the excludes.
5528 2016-12-18  Bruno Haible  <bruno@clisp.org>
5530         getopt: Fix link error for users of getopt() in <unistd.h>.
5531         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
5532         __need_getopt is defined. Undefine all macros before defining them.
5533         * modules/getopt (Include): Clarify that including <unistd.h> is also
5534         OK.
5535         * tests/test-getopt.c: Add comment.
5537 2016-12-17  Bruno Haible  <bruno@clisp.org>
5539         getaddrinfo tests: Avoid compilation error on MSVC.
5540         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
5541         getaddrinfo on native Windows.
5543 2016-12-17  Bruno Haible  <bruno@clisp.org>
5545         getlogin, getlogin_r: Fix link errors on MSVC.
5546         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
5547         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
5548         (Link): New section.
5549         * modules/getlogin_r (Files): Add m4/getlogin.m4.
5550         (configure.ac): Require gl_LIB_GETLOGIN.
5551         (Link): New section.
5552         * NEWS: Mention the new link requirements.
5553         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
5554         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
5556 2016-12-17  Bruno Haible  <bruno@clisp.org>
5558         Un-deprecate the 'progname' module.
5559         * NEWS: Describe the appropriate use-cases of 'progname' versus
5560         'getprogname'. Based on discussion summary at
5561         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
5563 2016-12-17  Bruno Haible  <bruno@clisp.org>
5565         Reorganize NEWS a bit.
5566         * NEWS: Move some not so important changes away from section
5567         "Important Notes".
5569 2016-12-17  Bruno Haible  <bruno@clisp.org>
5571         tanhf: Avoid redefinition error on MSVC.
5572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
5573         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
5574         may be defined as an inline function.
5575         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
5576         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
5578 2016-12-17  Bruno Haible  <bruno@clisp.org>
5580         tanf: Avoid redefinition error on MSVC.
5581         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
5582         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
5583         may be defined as an inline function.
5584         * modules/math (Makefile.am): Substitute REPLACE_TANF.
5585         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
5587 2016-12-17  Bruno Haible  <bruno@clisp.org>
5589         sqrtf: Avoid redefinition error on MSVC.
5590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
5591         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
5592         may be defined as an inline function.
5593         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
5594         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
5596 2016-12-17  Bruno Haible  <bruno@clisp.org>
5598         sinhf: Avoid redefinition error on MSVC.
5599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
5600         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
5601         may be defined as an inline function.
5602         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
5603         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
5605 2016-12-17  Bruno Haible  <bruno@clisp.org>
5607         sinf: Avoid redefinition error on MSVC.
5608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
5609         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
5610         may be defined as an inline function.
5611         * modules/math (Makefile.am): Substitute REPLACE_SINF.
5612         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
5614 2016-12-17  Bruno Haible  <bruno@clisp.org>
5616         logf: Avoid redefinition error on MSVC.
5617         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
5618         may be defined as an inline function.
5620 2016-12-17  Bruno Haible  <bruno@clisp.org>
5622         log10l: Avoid redefinition error on MSVC.
5623         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
5624         may be defined as an inline function.
5626 2016-12-17  Bruno Haible  <bruno@clisp.org>
5628         log10f: Avoid redefinition error on MSVC.
5629         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
5630         may be defined as an inline function.
5632 2016-12-17  Bruno Haible  <bruno@clisp.org>
5634         hypotl: Avoid redefinition error on MSVC.
5635         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
5636         may be defined as an inline function.
5638 2016-12-17  Bruno Haible  <bruno@clisp.org>
5640         hypotf: Avoid redefinition error on MSVC.
5641         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
5642         may be defined as an inline function.
5644 2016-12-17  Bruno Haible  <bruno@clisp.org>
5646         fmodl: Avoid redefinition error on MSVC.
5647         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
5648         may be defined as an inline function.
5650 2016-12-17  Bruno Haible  <bruno@clisp.org>
5652         fmodf: Avoid redefinition error on MSVC.
5653         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
5654         may be defined as an inline function.
5656 2016-12-17  Bruno Haible  <bruno@clisp.org>
5658         expf: Avoid redefinition error on MSVC.
5659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
5660         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
5661         may be defined as an inline function.
5662         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
5663         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
5665 2016-12-17  Bruno Haible  <bruno@clisp.org>
5667         coshf: Avoid redefinition error on MSVC.
5668         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
5669         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
5670         may be defined as an inline function.
5671         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
5672         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
5674 2016-12-17  Bruno Haible  <bruno@clisp.org>
5676         cosf: Avoid redefinition error on MSVC.
5677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
5678         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
5679         may be defined as an inline function.
5680         * modules/math (Makefile.am): Substitute REPLACE_COSF.
5681         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
5683 2016-12-17  Bruno Haible  <bruno@clisp.org>
5685         atan2f: Avoid redefinition error on MSVC.
5686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
5687         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
5688         may be defined as an inline function.
5689         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
5690         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
5692 2016-12-17  Bruno Haible  <bruno@clisp.org>
5694         atanf: Avoid redefinition error on MSVC.
5695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
5696         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
5697         may be defined as an inline function.
5698         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
5699         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
5701 2016-12-17  Bruno Haible  <bruno@clisp.org>
5703         asinf: Avoid redefinition error on MSVC.
5704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
5705         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
5706         may be defined as an inline function.
5707         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
5708         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
5710 2016-12-17  Bruno Haible  <bruno@clisp.org>
5712         acosf: Avoid redefinition error on MSVC.
5713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
5714         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
5715         may be defined as an inline function.
5716         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
5717         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
5719 2016-12-17  Bruno Haible  <bruno@clisp.org>
5721         Avoid redefinition errors on MSVC.
5722         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
5723         the function may be defined as an inline function.
5724         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
5725         the function may be defined as an inline function.
5727 2016-12-17  Bruno Haible  <bruno@clisp.org>
5729         Avoid redefinition errors on MSVC.
5730         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
5731         * lib/unistd.in.h: Include <stdio.h> when necessary.
5733 2016-12-17  Bruno Haible  <bruno@clisp.org>
5735         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
5736         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
5737         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
5738         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
5739         WINT_MAX.
5741 2016-12-17  Bruno Haible  <bruno@clisp.org>
5743         Avoid autoconf warning.
5744         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
5745         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
5747 2016-12-17  Bruno Haible  <bruno@clisp.org>
5749         fpending: Revert workaround against Emacs bug.
5750         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
5751         The Emacs bug is fixed by Eli Zaretskii in
5752         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
5754 2016-12-17  Bruno Haible  <bruno@clisp.org>
5756         getlogin_r tests: Port to mingw.
5757         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
5758         regression introduced on 2014-05-19.
5760 2016-12-17  Bruno Haible  <bruno@clisp.org>
5762         getlogin: Port to newer mingw.
5763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
5764         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
5765         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
5766         HAVE_GETLOGIN.
5767         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
5768         HAVE_GETLOGIN.
5769         * doc/posix-functions/getlogin.texi: Mention the issue.
5770         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
5771         regression introduced on 2014-05-14.
5773 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
5775         builtin-expect: improve port to IBM XL C
5776         Problem reported for z/OS by Daniel Richard G. in:
5777         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
5778         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
5779         Test for <builtins.h> directly.
5781         builtin-expect: port to IBM XL C
5782         Problem reported for z/OS by Daniel Richard G. in:
5783         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
5784         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
5785         Also allow __builtin_expect defined via a standard include file.
5787         regex: fix dependency
5788         Problem reported by Bruno Haible in:
5789         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
5790         * modules/regex: Depend on builtin-expect.
5792         builtin-expect: new module
5793         Fix fnmatch to use it.
5794         Problem reported for z/OS by Daniel Richard G.
5795         * lib/fnmatch.c (__builtin_expect):
5796         * lib/glob.c (__builtin_expect):
5797         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
5798         * lib/memmem.c (__builtin_expect) [!_LIBC]:
5799         * lib/scandir.c (__builtin_expect):
5800         * lib/strstr.c (__builtin_expect) [!_LIBC]:
5801         Remove macro; config.h now does this.
5802         * lib/gl_anytreehash_list1.h (add_to_bucket):
5803         * lib/regex_internal.h (BE):
5804         Assume __builtin_expect.
5805         * m4/builtin-expect.m4, modules/builtin-expect: New files.
5806         * modules/avltreehash-list, modules/fnmatch, modules/glob:
5807         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
5808         * modules/scandir, modules/strstr-simple:
5809         Depend on builtin-expect.
5811 2016-12-15  Bruno Haible  <bruno@clisp.org>
5813         init.sh: Add possibility to not delete temporary files.
5814         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
5815         to yes, don't erase the temporary directory.
5817 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
5819         regex: fix integer-overflow bug in never-used code
5820         Problem reported by Clément Pit–Claudel in:
5821         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
5822         * lib/regex_internal.h: Include intprops.h.
5823         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
5824         behavior on integer overflow.
5825         * modules/regex (Depends-on): Add intprops.
5827         fpending: fix port to MinGW on Emacs
5828         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
5829         Problem reported by Eli Zaretskii in:
5830         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
5831         Is Plan 9 still a valid porting target, anyway?
5833 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5835         safe-alloc: use xalloc-oversized
5836         * lib/safe-alloc.c: Include xalloc-oversized.h.
5837         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
5838         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
5840         xalloc: do not exceed PTRDIFF_MAX
5841         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
5842         xalloc_oversized check, since objects larger than PTRDIFF_MAX
5843         bytes have pointer-subtraction problems.
5845         malloca: do not exceed PTRDIFF_MAX
5846         * lib/malloca.h: Include xalloc-oversized.
5847         (nmalloca): Use xalloc_oversized instead of rolling our own.
5848         * modules/malloca (Depends-on):
5849         * modules/relocatable-prog-wrapper (Depends-on):
5850         Add xalloc-oversized.
5852         quotearg: pacify GCC better
5853         * modules/quotearg (Depends-on): Add minmax, stdint.
5854         * lib/quotearg.c: Include minmax.h, stdint.h.
5855         (nslots): Now int, as there seems little point to going to extra
5856         work merely to support the INT_MAX slot, which nobody ever uses.
5857         (quotearg_n_options): Redo size-overflow checks to pacify GCC
5858         and to catch (mostly-theoretical) ptrdiff_t problems too.
5859         This can be done via one comparison.
5861 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
5863         xalloc-oversized: check for PTRDIFF_MAX too
5864         This avoids undefined behavior when subtracting pointers to
5865         objects containing more than PTRDIFF_MAX bytes.
5866         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
5867         Also return 1 if the result would exceed PTRDIFF_MAX>
5868         * modules/xalloc-oversized (Depends-on):
5869         Add stdint.
5871         dfa: fix glitches in previous commit
5872         Sorry, I don't know how I managed to commit the wrong version.
5873         * lib/dfa.c (MIN): Move up.
5874         (xpalloc): Now static.
5876         dfa: fix some unlikely integer overflows
5877         I found these while reviewing the recent Coverity-related fix.
5878         This patch changes part of dfa.c to prefer ptrdiff_t instead of
5879         size_t for object counts.  Using ptrdiff_t is the style typically
5880         used in Emacs; although it wastes a sign bit as sizes can never be
5881         negative, it makes -fsanitize=undefined more likely to catch
5882         integer overflows in index calculation, and nowadays the upside is
5883         typically more important than the downside.  Although perhaps the
5884         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
5885         of dfa.c already does, since it uses state_num which is signed),
5886         that is a bigger change and is not needed to fix the bugs I found.
5887         * lib/dfa.c: Include stdint.h and intprops.h.
5888         (TOKEN_MAX): New macro.
5889         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
5890         (charclass_index, parse_bracket_exp, addtok, insert, merge)
5891         (realloc_trans_if_necessary, free_mbdata):
5892         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
5893         This is safe because xpalloc checks that the sizes do not exceed
5894         either SIZE_MAX or PTRDIFF_MAX.
5895         (xpalloc): New function, mostly taken from Emacs.
5896         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
5897         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
5898         (charclass_index): Check for integer overflow in computing
5899         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
5900         added to it later.
5901         (alloc_position_set): Check for integer overflow.  On typical
5902         platforms this check has zero overhead, since the constant
5903         expression is false.
5904         (realloc_trans_if_necessary):
5905         Remove assertion, which I hope Coverity no longer needs.
5907         * modules/dfa (Depends-on): Add intprops, stdint.
5909 2016-12-12  Jim Meyering  <meyering@fb.com>
5911         dfa: add an assertion to avoid coverity false positive
5912         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
5913         warned that "newalloc1 - 2" could overflow.
5915 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
5917         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
5918         * dfa.h (DFA_CASE_FOLD): Remove.
5919         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
5921 2016-12-13  John W. Eaton  <gnu@jweaton.org>
5923         link: fix test to declare use of rename()
5924         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
5925         -Werror=implicit-function-declaration
5927 2016-12-12  Bruno Haible  <bruno@clisp.org>
5929         fpending: Port to native Windows with MSVC.
5930         * lib/fpending.c: Include stdio-impl.h.
5931         (__fpending): Include all known implementations. Err out if it's not
5932         ported.
5933         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
5934         * modules/fpending (Files): Add lib/stdio-impl.h.
5935         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
5937 2016-12-12  Bruno Haible  <bruno@clisp.org>
5939         stdioext: Port to native Windows with MSVC.
5940         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
5941         (struct _gl_real_FILE): New type.
5942         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
5943         Windows.
5944         * lib/fbufmode.c (fbufmode): Add code for native Windows.
5945         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
5946         other SystemV derived implementations.
5947         * lib/fpurge.c (fpurge): Likewise.
5948         * lib/freadable.c (freadable): Likewise.
5949         * lib/freadahead.c (freadahead): Likewise.
5950         * lib/freading.c (freading): Likewise.
5951         * lib/freadptr.c (freadptr): Likewise.
5952         * lib/freadseek.c (freadptrinc): Likewise.
5953         * lib/fseeko.c (fseeko): Likewise.
5954         * lib/fseterr.c (fseterr): Likewise.
5955         * lib/fwritable.c (fwritable): Likewise.
5956         * lib/fwriting.c (fwriting): Likewise.
5957         Reported by Gisle Vanem <gvanem@yahoo.no>.
5959 2016-12-11  Jim Meyering  <meyering@fb.com>
5961         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
5962         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
5963         to work with most shells, but not with the one provided by many
5964         Solaris 10 systems, so running configure with such a /bin/sh evokes
5965         e.g., "./configure: syntax error at line 33602: `(' unexpected".
5966         Reported by Assaf Gordon in
5967         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
5969 2016-12-10  Bruno Haible  <bruno@clisp.org>
5971         threadlib: Optimize out runtime test on Solaris >= 10.
5972         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
5973         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
5974         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
5976 2016-12-10  Bruno Haible  <bruno@clisp.org>
5978         stdint: Update doc about Solaris 9.
5979         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
5981 2016-12-09  Bruno Haible  <bruno@clisp.org>
5983         c-ctype tests: Fix link error on Solaris 9.
5984         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
5985         Reported at <https://savannah.gnu.org/bugs/?46827>.
5987 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
5989         dfa: fix performance bug that recomputes trans
5990         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
5991         25 on-demand changes.  The bug caused build_state to reset all
5992         d->trans elements to -2 even when d->trans was already non-null.
5993         Use C99 style decls after statements in this function.
5995         same-inode: port to MinGW
5996         Here st_ino is always 0, so change the definition of SAME_INODE so
5997         that 1 means the two files are the same, 0 with st_ino != 0 means
5998         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
5999         reported by Bruno Haible (Bug#25146).
6000         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
6001         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
6003 2016-12-04  Bruno Haible  <bruno@clisp.org>
6005         javacomp: Support Java 7 and 8.
6006         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
6007         target-version 1.7, 1.8.
6009 2016-12-02  Daiki Ueno  <ueno@gnu.org>
6011         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
6012         GPLv2" rewriting.
6014 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
6016         * gnulib-tool (func_import): Adhere to the license guideline when
6017         rewriting the license text to "LGPLv3+ or GPLv2":
6018         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
6020 2016-12-02  Bruno Haible  <bruno@clisp.org>
6022         localcharset: Avoid theoretical buffer overrun.
6023         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
6024         return value from setlocale if it would lead to a buffer overrun.
6026 2016-12-01  Bruno Haible  <bruno@clisp.org>
6028         Relicense some modules under LGPLv2+.
6029         Kevin Cernekee's approval is in
6030         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
6031         * modules/fseterr (License): Change to LGPLv2+.
6032         * modules/mbchar (License): Likewise.
6033         * modules/mbiter (License): Likewise.
6034         * modules/mbsnlen (License): Likewise.
6035         * modules/wcwidth (License): Likewise.
6037 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6039         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
6040         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
6041         OS/2 kLIBC.
6043 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6045         alphasort, scandir: Port to OS/2 kLIBC
6046         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
6047         declaration.
6048         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
6050 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6052         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
6053         * lib/relocatable.c (relocate): Do not touch pathname if it is started
6054         with '/@unixroot'.
6056 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
6058         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
6059         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
6060         OS/2 kLIBC unless TCPV40HDRS is defined.
6062 2016-11-29  Jim Meyering  <meyering@fb.com>
6064         dfa: avoid new infinite loop
6065         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
6066         * lib/dfa.c (dfastate): When constructing a new state table, we could
6067         initially declare that we had found a match, and later find that
6068         constraints eliminate that possibility, yet continue to use the
6069         now stale "matched" indicator.  That would lead to an infinite loop.
6070         The solution is to update "matched" when necessary.
6071         Introduced by commit v0.1-983-g403adf1.
6073 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6075         dfa: avoid match middle in multibyte character
6076         * lib/dfa.c (transit_state): If fails in matching single byte characters
6077         on a state including period expression in non-UTF8 multibyte locales,
6078         skip trailing bytes.
6079         (dfa_supported): Revert previous change.
6081 2016-11-27  Jim Meyering  <meyering@fb.com>
6083         dfa: avoid false match in non-UTF8 multibyte locales
6084         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
6085         as "not supported" so that callers will resort to using regex-based
6086         matcher.  This will surely hurt performance, but correctness trumps
6087         performance here, and the affected locales are less and less relevant,
6088         these days.  See grep's bug report https://bugs.gnu.org/24975.
6090 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
6092         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
6093         * lib/ptsname_r.c: Include the appropriate headers.
6094         [__sun]: Delete sys/sysmacros.h include.
6095         [_AIX || __osf__]: Likewise.
6096         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
6098 2016-11-27  Pádraig Brady  <P@draigBrady.com>
6100         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
6101         * lib/md4.c (md4_process_bytes): The existing define is made internal
6102         in recent versions of glibc, so also use this new public define.
6103         * lib/md5.c (md5_process_bytes): Likewise.
6104         * lib/sha1.c (sha1_process_bytes): Likewise.
6105         * lib/sha256.c (sha256_process_bytes): Likewise.
6106         * lib/sha512.c (sha512_process_bytes): Likewise.
6108 2016-11-27  Pádraig Brady  <P@draigBrady.com>
6110         maint: use a more standard return from mbrtowc test
6111         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
6112         from the test program as this often indicates an
6113         unhandled case in the test program.
6114         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
6115         (gl_MBRTOWC_SANITYCHECK): Likewise.
6116         (gl_MBRTOWC_NULL_ARG2): Likewise.
6117         (gl_MBRTOWC_NUL_RETVAL): Likewise.
6119 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
6121         freopen: work around glibc bug with closed fd
6122         Work around glibc bug#15589, where freopen mishandles the case
6123         where stdin etc. are already closed.
6124         * doc/posix-functions/freopen.texi (freopen): Document the bug.
6125         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
6126         instead of __need_FILE, as the latter does not work with glibc.
6127         Include <fcntl.h>, for open flags.
6128         (rpl_freopen): Work around glibc bug.
6129         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
6130         * modules/freopen (Depends-on): Add fcntl-h.
6131         * tests/test-freopen.c (main): Test for bug.
6133 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
6135         fnmatch: fix typo introduced on 2016-08-17
6136         This fixes the port to non-GCC compilers that lack __builtin_expect.
6137         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
6139         dfa: simplify with new function fillset
6140         * lib/dfa.c (fillset): New function.
6141         Use it for clarity when applicable.
6143         dfa: fix glitches with on-demand states
6144         Also, adjust commentary to better match new code.
6145         Some of these glitches predate the recent change.
6146         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
6147         only non-initial states.
6148         (dfastate): Rename locals to better match new roles.
6149         Move them into nested scopes if this is easy.
6150         Omit unnecessary calls to zeroset.
6151         Simplify test for whether to throw in the positions of state 0.
6152         Omit C99-ism (decl after statement) since Gawk still wants C89.
6153         (build_state): Omit unnecessary test and assignment.
6154         Fix some confusion that counted transition tables inaccurately
6155         and could cause a memory leak.
6156         (dfaexec_main): Redo to make it clearer to the compiler that
6157         -1 and -2 are the only negative state numbers here.
6159 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6161         dfa: addition of new state on demand
6162         * src/dfa.c (dfastate): Add argument UC, the current input character.
6163         Fill only a group including the character in transition table.
6164         (realloc_trans_if_necessary): Add the dummy state which means that a
6165         transition table is assigned but the next state is not assigned.
6166         (build_state): Return the next state.  All callers updated.
6167         (transit_state_singlebyte): If we get the dummy state,
6168         fill the transition table.
6169         (dfaexec_main): Handle the dummy state.
6170         (free_mbdata, dfafree): Consider the dummy state.
6172 2016-11-24  Daiki Ueno  <ueno@gnu.org>
6174         srclist: sync with released gettext
6175         * config/srclist.txt: Set "release" option to the files under
6176         $GETTEXT.
6178 2016-11-24  Daiki Ueno  <ueno@gnu.org>
6180         srclist: add "release" option
6181         * config/srclist.txt: Change the format so that the first column
6182         of each line points to the top-level directory of the source
6183         archive.
6184         * config/srclist-update: Accept "release" option that checks files
6185         from the most recently tagged revision in the source archive.
6187 2016-11-21  Bruno Haible  <bruno@clisp.org>
6189         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
6190         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6191         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
6192         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
6193         Inline and remove member function 'rpl ()' of the wrapper struct.
6195 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6197         dfa: fix logic typo
6198         Problem reported by Stephane Chazelas (Bug#24973).
6199         * lib/dfa.c (using_simple_locale): Fix typo that caused some
6200         non-simple locales like fr_FR to be treated as simple.
6202 2016-11-20  Jim Meyering  <meyering@fb.com>
6204         fix test driver leaks: exclude, malloc, realloc
6205         * tests/test-exclude.c (main): Fix trivial leak.
6206         * tests/test-malloc-gnu.c (main): Likewise.
6207         * tests/test-realloc-gnu.c (main): Likewise.
6208         With these changes, grep's tests are now leak free.
6209         I.e., running them with ASAN elicits no failure:
6210           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
6211             AM_LDFLAGS='-fsanitize=address -static-libasan' check
6213 2016-11-11  Bruno Haible  <bruno@clisp.org>
6215         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
6216         * modules/libunistring: (License): Change from LGPL to
6217         "LGPLv3+ or GPLv2".
6218         * modules/libunistring-optional: Likewise.
6219         * modules/unicase/*: Likewise.
6220         * modules/uniconv/*: Likewise.
6221         * modules/unictype/*: Likewise.
6222         * modules/unigbrk/*: Likewise.
6223         * modules/unilbrk/*: Likewise.
6224         * modules/uniname/*: Likewise.
6225         * modules/uninorm/*: Likewise.
6226         * modules/unistdio/*: Likewise.
6227         * modules/unistr/*: Likewise.
6228         * modules/uniwbrk/*: Likewise.
6229         * modules/uniwidth/*: Likewise.
6231 2016-11-12  Bruno Haible  <bruno@clisp.org>
6233         Relicense some modules under LGPLv2+.
6234         Paul Eggert's approval is in
6235         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
6236         Eric Blake's approval is in
6237         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
6238         Ludovic Courtès's approval is in
6239         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
6240         * modules/isnand-nolibm (License): Change to LGPLv2+.
6241         * modules/isnanf-nolibm (License): Likewise.
6242         * modules/isnanl-nolibm (License): Likewise.
6244 2016-11-19  Bruno Haible  <bruno@clisp.org>
6246         Relicense some modules under LGPLv2+.
6247         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
6248         modules/vasnprintf.
6249         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
6250         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
6251         All other significant changes to the files in lib/ of these modules
6252         are from me.
6253         * modules/memcmp2 (License): Change to LGPLv2+.
6254         * modules/amemxfrm (License): Likewise.
6255         * modules/fpieee (License): Likewise.
6256         * modules/fpucw (License): Likewise.
6257         * modules/frexp-nolibm (License): Likewise.
6258         * modules/frexpl-nolibm (License): Likewise.
6259         * modules/printf-frexp (License): Likewise.
6260         * modules/printf-frexpl (License): Likewise.
6261         * modules/printf-safe (License): Likewise.
6262         * modules/signbit (License): Likewise.
6264 2016-11-17  Bruno Haible  <bruno@clisp.org>
6266         Enable Unicode decoder safety unconditionally.
6267         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
6268         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
6269         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6270         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6271         * lib/unistr/u8-prev.c (u8_prev): Likewise.
6272         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
6273         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
6274         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
6275         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
6276         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
6277         * lib/unistr/u16-prev.c (u16_prev): Likewise.
6278         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
6279         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
6280         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
6281         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
6282         * lib/unistr/u32-prev.c (u32_prev): Likewise.
6283         * lib/unistr/u32-next.c (u32_next): Likewise.
6284         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
6285         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
6286         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6287         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
6288         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
6289         CONFIG_UNICODE_SAFETY tests unconditionally.
6290         * tests/unistr/test-u32-mblen.c (main): Likewise.
6291         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
6292         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
6293         * tests/unistr/test-u32-next.c (main): Likewise.
6294         * tests/unistr/test-u32-strmblen.c (main): Likewise.
6295         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
6296         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
6297         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
6298         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
6299         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6300         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
6301         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
6302         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6303         * lib/unistr/u16-check.c (u16_check): Update comment.
6304         * NEWS: Mention the changes that callers should be aware of.
6306 2016-11-19  Bruno Haible  <bruno@clisp.org>
6308         relocatable-prog-wrapper: Fix breakage on Cygwin.
6309         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
6310         (Depends-on): Remove intprops.
6311         * lib/relocwrapper.c: Update dependency tree.
6312         (strerror): Undefine.
6313         * build-aux/install-reloc (func_create_wrapper): Do not compile
6314         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
6316 2016-11-19  Bruno Haible  <bruno@clisp.org>
6318         strerror: Make it compile in C++ mode.
6319         * lib/strerror.c (strerror): Ignore the return value of memcpy().
6321 2016-11-15  Pedro Alves  <palves@redhat.com>
6323         sys_time: add gnulib::timeval for C++
6324         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
6325         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
6326         timeval macro.
6328 2016-11-14  Pedro Alves  <palves@redhat.com>
6330         snippet/c++defs: fix real-floating arg functions in C++ mode
6331         Also, define isfinite, isinf, isnan, signbit in the gnulib
6332         namespace instead of in the global namespace.
6333         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
6334         (_GL_END_NAMESPACE): New.
6335         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
6336         (isfinite, isinf, isnan, signbit) [__cplusplus &&
6337         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
6338         instead of in the global namespace.
6339         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
6340         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
6341         of in the global namespace.
6343 2016-11-13  Jim Meyering  <meyering@fb.com>
6345         strftime: don't use __THROW
6346         Each use of __THROW would provoke this from gcc-7-to-be:
6348           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
6349             on unit local functions [-Wattributes]
6350           static int iso_week_days (int, int) __THROW;
6351           ^~~~~~
6352         * lib/strftime.c (__THROW): Don't define.
6353         Remove each use of __THROW.
6354         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
6355         (tm_diff, iso_week_days, __strftime_internal): Likewise.
6357 2016-11-14  Paul Eggert  <eggert@union>
6359         obstack: port to gcc -fcheck-pointer-bounds
6360         Problem found by 'make check' failure on bleeding-edge coreutils
6361         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
6362         6.2.0-5ubuntu12), configured via "./configure
6363         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
6364         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
6365         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
6366         New macro, copied from fts_.h.
6367         (struct _obstack_chunk.contents): Use it.
6369 2016-11-14  Eric Blake  <eblake@redhat.com>
6371         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
6372         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
6373         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
6375 2016-11-14  Pádraig Brady  <P@draigBrady.com>
6377         strptime: fix compile error in recent change
6378         * lib/strptime.c (__strptime_internal): Fix ported code.
6380 2016-11-11  Bruno Haible  <bruno@clisp.org>
6382         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
6383         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
6384         (func_import): Extend determination of license_incompatibilities.
6385         (func_create_testdir): Extend table of license compatibility. Handle
6386         also the licenses GPLv3+, GPL, LGPLv3+.
6388 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6390         strftime: tune %q
6391         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
6393         Merge strftime.c changes from glibc
6394         This incorporates:
6395         2007-10-16 [BZ #5184] Add tzset_called argument
6396         2008-06-13 [BZ #6612] pass reference to tzset_called around
6397         2009-10-30 Implement Burmese language locale for Myanmar
6398         2010-01-09 Add support for XPG7 testing
6399         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
6400         2015-10-20 Convert miscellaneous function definitions to prototype style
6401         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
6402         it anyway and this lessens the difference between gnulib and glibc.
6403         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
6404         (__THROW): Define if standard headers do not.
6405         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
6406         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
6407         Declare with __THROW.
6408         (__strftime_internal): Rename from strftime_case_. Add arg for
6409         whether tzset is called.  All uses changed.  Call tzset at most
6410         once.  Allow %OC, for Burmese.
6411         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
6412         Don't assume values are in range.
6414 2016-11-12  Eric Blake  <eblake@redhat.com>
6416         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
6417         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
6418         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
6419         different value.
6421 2006-11-12  Pedro Alves  <palves@redhat.com>
6423         Fix gnulib C++ namespace support and std::frexp
6424         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
6425         _GL_CXXALIASWARN.
6427 2006-11-12  Pedro Alves  <palves@redhat.com>
6429         GNULIB_NAMESPACE::func need not pull in rpl_func
6430         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6431         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
6432         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
6433         struct instead of a function pointer.
6435 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
6437         manywarnings: fix -Wno-missing-field-initializers detection
6438         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
6439         to be independent of -Wunused-variable.  I.E. ensure the latter
6440         warning doesn't occur so that detection of the former is accurate.
6442 2016-11-05  Pádraig Brady  <pbrady@fb.com>
6444         strftime,strptime: support %q to represent the quarter
6445         * lib/strftime.c (strftime_case_): Add %q case.
6446         * lib/strptime.c (__strptime_internal): Likewise.
6447         * tests/test-strftime.c (quarter_test): A new test case.
6449 2016-11-03  Eric Blake  <eblake@redhat.com>
6451         bootstrap: Fix get_version() for AIX 5.3
6452         * build-aux/bootstrap (get_version): Factor out sed script, since
6453         indented comments choke AIX 5.3 sed.
6454         Reported-by: Michael Felt <aixtools@gmail.com>
6456 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6458         intprops: port to older XL C
6459         Problem reported by Alexander Samoilov in:
6460         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
6461         http://savannah.nongnu.org/bugs/?49448
6462         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
6463         Define to 1 only for XL C 12.1 or later, since this bug
6464         occurs in XL C for AIX 6.0 but not in 12.1.
6466 2016-11-02  Pádraig Brady  <P@draigBrady.com>
6468         backupfile: initialize default suffix within the implementation
6469         * lib/backupfile.c (find_backup_file_name): Initialize the
6470         global variable here, to simplify usage, and to only call
6471         getenv() when needed.
6473 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6475         futimens: remove FIXME for old Linux kernels
6476         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
6477         this in 2012" FIXME, like that for utimensat.
6479         utimensat: remove FIXME for old Linux kernels
6480         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
6481         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
6482         this in 2012" FIXME, by assuming the file system bug is absent
6483         unless demonstrated to be present.  We no longer need to worry
6484         about Linux kernel 2.6.32 when building with newer kernels.
6486 2016-10-16  Bruno Haible  <bruno@clisp.org>
6488         qsort_r: Fix macrology for platforms that lack the function.
6489         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
6490         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
6491         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
6492         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
6493         not exist.
6494         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
6495         the function exists.
6496         * modules/qsort_r: Add comments.
6498 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6500         sys_types: fix Texinfo typos
6501         * doc/glibc-functions/gnu_dev_major.texi:
6502         * doc/glibc-functions/gnu_dev_makedev.texi:
6503         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
6505 2016-10-26  John David Anglin  <dave.anglin@bell.net>
6507         getprogname: port to HP-UX
6508         See Bug#24805.
6509         * lib/getprogname.c (getprogname) [__hpux]: Port.
6510         * tests/test-getprogname.c (STREQ) [__hpux]:
6511         Special-case for HP-UX limitations on program name length.
6513 2016-10-20  Bruno Haible  <bruno@clisp.org>
6515         Update doc about target platforms.
6516         * doc/gnulib-intro.texi (Target Platforms): Update list.
6518 2016-10-15  Bruno Haible  <bruno@clisp.org>
6520         opendir, readdir, closedir: Relicense under LGPLv2+.
6521         * modules/opendir (License): Change to LGPLv2+.
6522         * modules/readdir (License): Likewise.
6523         * modules/closedir (License): Likewise.
6525 2016-10-16  Bruno Haible  <bruno@clisp.org>
6527         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
6528         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
6529         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
6530         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
6531         HAVE_DECL_STRERROR_R.
6533 2016-10-16  Bruno Haible  <bruno@clisp.org>
6535         Make the 'argp' module work without the 'error' module.
6536         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
6538 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6540         diffseq: restore TOO_EXPENSIVE heuristic
6541         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
6542         (Bug#24715).  The simplest solution is to restore the
6543         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
6544         using a higher threshold to avoid Bug#16848 on smaller files.
6545         * lib/diffseq.h (struct context): Restore member too_expensive.
6546         (struct partition): Restore members lo_minimal, hi_minimal.
6547         (diag, compareseq): Restore arg find_minimal.  All uses changed.
6548         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
6549         1993 to make 'diff' run faster (but not as well) on large inputs,
6550         but use a threshold of 4096 instead of the old 256.
6551         * lib/fstrcmp.c (strcmp_bounded):
6552         * lib/git-merge-changelog.c (compute_differences):
6553         Adjust to diffseq.h changes.
6555 2016-10-22  Bruno Haible  <bruno@clisp.org>
6557         iconv: Avoid compilation error when bootstrapping GNU libiconv.
6558         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
6559         declaration yet, define ICONV_CONST to empty.
6561 2016-10-15  Bruno Haible  <bruno@clisp.org>
6563         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
6564         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
6565         module.
6567 2016-10-16  Bruno Haible  <bruno@clisp.org>
6569         system-quote tests: Avoid compiler warning on AIX.
6570         * tests/test-system-quote-child.c (fopen): Redefine like the system's
6571         <stdio.h> does.
6573 2016-10-16  Bruno Haible  <bruno@clisp.org>
6575         Fix some "gcc -Wall" warnings.
6576         * tests/test-ffsl.c (main): Use variable x, not i.
6577         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
6578         freopen.
6579         * tests/test-sethostname1.c (main): Explicitly ignore the return value
6580         of sethostname.
6582 2016-10-16  Bruno Haible  <bruno@clisp.org>
6584         gnulib-tool: Make --create-testdir on all modules work again.
6585         * gnulib-tool (func_create_testdir): Don't include the
6586         non-recursive-gnulib-prefix-hack module.
6588 2016-10-21  Daiki Ueno  <ueno@gnu.org>
6590         libunistring: change the maintainer to 'all'
6591         * modules/gen-uni-tables, modules/libunistring:
6592         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
6593         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
6594         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
6595         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
6596         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
6597         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
6598         * modules/uniwidth/*: Change the maintainer to 'all'.
6600 2016-10-16  Bruno Haible  <bruno@clisp.org>
6602         Simplify "configure: checking ..." messages.
6603         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
6604         AC_MSG_NOTICE.
6605         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6607 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
6609         quotearg-tests: pacify gcc -Wall
6610         Problem reported by Bruno Haible in:
6611         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
6612         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
6613         * tests/test-quotearg.h: ... from here.
6615 2016-10-20  Pádraig Brady  <P@draigBrady.com>
6617         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
6618         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
6619         Needed on Centos <= 4.
6621 2016-10-20  Jim Meyering  <meyering@fb.com>
6623         printf.m4: fix a bug in detecting printf %j support
6624         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
6625         uintmax_t is defined in neither stdint.h nor inttypes.h.
6626         Before, this macro might have mistakenly set
6627         gl_cv_func_printf_sizes_c99=yes on such a system.
6628         Spotted by Zev Weiss.
6630 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
6632         sched: substitute HAVE_SYS_CDEFS_H too
6633         Problem reported by Tom G. Christensen in:
6634         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
6635         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
6636         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
6638 2016-10-19  Pádraig Brady  <P@draigBrady.com>
6640         quotearg: never write beyond the returned length
6641         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
6642         scan of the string when we initially encounter a single quote when
6643         shell quoting, so that if we then switch to a more concise quoting method
6644         we will not have written beyond that returned length.
6645         This is significant for sh-quote, which has separate routines
6646         to determine the length and do the actual quoting.
6647         * tests/test-quotearg.h: Reinstate the buffer bounds checking
6648         now that we never write more than the returned length.
6650 2016-10-18  Bruno Haible  <bruno@clisp.org>
6652         getprogname tests: Avoid failure in packages that use libtool.
6653         * tests/test-getprogname.c (main): Strip "lt-" prefix.
6654         Based on a patch by Jim Meyering.
6656 2016-10-16  Bruno Haible  <bruno@clisp.org>
6658         getprogname: Fix test failure on Cygwin. Comments.
6659         * lib/getprogname.h: Add comments.
6660         * lib/getprogname.c: Add comments. Fix #elif indentation.
6661         * tests/test-getprogname.c (main): On Cygwin, expect a result without
6662         ".exe" suffix.
6664 2016-10-16  Bruno Haible  <bruno@clisp.org>
6666         Make sure the libunistring detection rejects older versions with a
6667         known bug.
6668         * modules/unistr/u8-strtok (configure.ac): Bump required version.
6669         * modules/unistr/u16-strtok (configure.ac): Likewise.
6670         * modules/unistr/u32-strtok (configure.ac): Likewise.
6672 2016-10-18  Bruno Haible  <bruno@clisp.org>
6674         sh-quote, system-quote: revert regression of unit test.
6675         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
6676         * tests/test-system-quote-main.c (check_one): Likewise.
6678 2016-10-16  Pádraig Brady  <P@draigBrady.com>
6680         quotearg: fix stale tests
6681         * tests/test-quotearg.c [locale_results]: Add the missing str7
6682         entries to the expected results.
6683         * tests/test-system-quote-main.c (check_one): Don't enforce that we
6684         don't write beyond the returned length, since that's no longer the
6685         case if we switch to a more concise quoting style.
6686         * tests/test-sh-quote.c (check_one): Likewise.
6687         (main): Adjust for the new more concise quoting style.
6688         Reported by Bruno Haible.
6690 2016-10-16  Jim Meyering  <meyering@fb.com>
6692         non-recursive-gnulib-prefix-hack: fix inconsequential typo
6693         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
6694         to "$1".  This macro is always invoked with $1 == lib.
6695         Spotted by Bruno Haible
6697 2016-10-16  Bruno Haible  <bruno@clisp.org>
6699         Fix a test crash.
6700         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
6701         fails.
6703 2016-10-16  Pádraig Brady  <P@draigBrady.com>
6705         test-limits-h: suppress -Woverlength-strings
6706         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
6708 2016-10-15  Bruno Haible  <bruno@clisp.org>
6710         gettime, timespec, utimens: Relicense under LGPL.
6711         * modules/gettime (License): Change to LGPL.
6712         * modules/timespec (License): Likewise.
6713         * modules/utimens (License): Likewise.
6715 2016-10-14  Bruno Haible  <bruno@clisp.org>
6716             Pádraig Brady  <P@draigBrady.com>
6718         canonicalize-lgpl: Support the case path_max > INT_MAX.
6719         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
6720         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
6722 2016-10-13  Jim Meyering  <meyering@fb.com>
6724         getprogname: IBM z/OS: avoid NULL-dereference
6725         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
6726         upon strdup failure.
6728 2016-10-12  Jim Meyering  <meyering@fb.com>
6730         test-stdint: use _GL_VERIFY rather than "verify" for some tests
6731         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
6732         and an abbreviated diagnostic rather than verify with the full one,
6733         because the full-length strings would evoke warnings from gcc with
6734         -Woverlength-strings.
6736 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6738         stdint: port SIZE_MAX to glibc s390
6739         Problem reported by Eric Blake in:
6740         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
6741         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
6742         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
6743         correct type, if possible.
6745 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
6747         getprogname: port to IBM z/OS
6748         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
6750 2016-10-11  Jim Meyering  <meyering@fb.com>
6752         maint: remove stray space after "." in AC_DEFINE comment.
6753         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
6754         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6756 2016-10-05  Jim Meyering  <meyering@fb.com>
6758         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
6759         * lib/long-options.c (parse_long_options): Add a break statement
6760         to avoid this new warning/failure:
6761         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
6762           --create-testdir --dir=/t/x --with-tests --test long-options
6763         ../../gllib/long-options.c: In function 'parse_long_options':
6764         ../../gllib/long-options.c:66:12: error: this statement may \
6765           fall through [-Werror=implicit-fallthrough]
6766                    (*usage_func) (EXIT_SUCCESS);
6767                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
6769 2016-10-05  Jim Meyering  <meyering@fb.com>
6771         utimecmp: avoid new GCC 7 warning from -Wbool-operation
6772         Testing this module would fail when using GCC 7 like this:
6773         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
6774           --dir=/tmp/x --with-tests --test utimecmp
6775         ../../gllib/utimecmp.c: In function ‘utimecmp’:
6776         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
6777           [-Werror=bool-operation]
6778                          time_t s = src_s & ~ (res == 2 * BILLION);
6779                                             ^
6780         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
6781           [-Werror=bool-operation]
6782                src_s &= ~ (res == 2 * BILLION);
6783                         ^
6784         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
6785         Instead, make it explicit that we intend to apply it to 0 or 1.
6787 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6789         dfa: save memory for states
6790         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
6791         states if dfa has a lot of caches.
6793 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
6795         wchar, wctype-h: fix for MinGW 3.22.2
6796         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
6797         special invocation, to fix issues with MinGW 3.22.2 wchar.h
6798         when included from <string.h>.
6799         * lib/wctype.in.h [__MINGW32__]: Add special invocation
6800         convention for MinGW 3.22.2, to solve issues with their
6801         wctype.h when included from <ctype.h>.
6803 2016-10-05  Jim Meyering  <meyering@fb.com>
6805         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
6806         * lib/long-options.c (parse_long_options): Add a break statement
6807         to avoid this new warning/failure:
6808         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
6809           --create-testdir --dir=/t/x --with-tests --test long-options
6810         ../../gllib/long-options.c: In function ‘parse_long_options’:
6811         ../../gllib/long-options.c:66:12: error: this statement may \
6812           fall through [-Werror=implicit-fallthrough]
6813                    (*usage_func) (EXIT_SUCCESS);
6814                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
6816         utimecmp: avoid new GCC 7 warning from -Wbool-operation
6817         Testing this module would fail when using GCC 7 like this:
6818         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
6819           --dir=/tmp/x --with-tests --test utimecmp
6820         ../../gllib/utimecmp.c: In function ‘utimecmp’:
6821         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
6822           [-Werror=bool-operation]
6823                          time_t s = src_s & ~ (res == 2 * BILLION);
6824                                             ^
6825         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
6826           [-Werror=bool-operation]
6827                src_s &= ~ (res == 2 * BILLION);
6828                         ^
6829         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
6830         Instead, make it explicit that we intend to apply it to 0 or 1.
6832 2016-10-03  Pádraig Brady  <P@draigBrady.com>
6834         quotearg: minimize shell quoting using double quotes
6835         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
6836         quote in encountered then use double quotes (c style quoting)
6837         when possible, as it simplifies the quoting.
6838         * tests/test-quotearg-simple.c: Add test cases.
6839         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
6840         for the fact we now may write beyond the returned length.
6842 2016-10-02  Jim Meyering  <meyering@fb.com>
6844         vasnprintf.c: avoid spurious warning from GCC 7
6845         The presence of cpp directives renders this "FALLTHROUGH" comment
6846         ineffective, so does not suppress the -Wimplicit-fallthrough warning
6847         from GCC 7 built from git on 2016-10-02.
6848         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
6849         directives, so that it takes effect once again.  This is clearly
6850         not a proper change, and I will revert it once this bug is fixed:
6851         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
6853 2016-10-01  Jim Meyering  <meyering@fb.com>
6855         getprogname: correct the test for a __progname variable
6856         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
6857         and AC_LINK_IFELSE to check for a global __progname.  If found,
6858         define HAVE_VAR___PROGNAME.
6859         * lib/getprogname.c (getprogname): Reflect the new name of the
6860         feature- checked preprocessor symbol:
6861         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
6863 2016-09-28  Jim Meyering  <meyering@fb.com>
6865         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
6866         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
6867         fall-through case with a /* fallthrough */ comment.
6869         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
6870         * lib/dfa.c (dfassbuild): Mark the end of this case with a
6871         /* fallthrough */ comment.
6873         getprogname: avoid __progname vs program_invocation_short_name pitfall
6874         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
6875         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
6876         not with Fedora 24's glibc-2.23.1-10.
6877         * lib/getprogname.c (__progname): Move this declaration down...
6878         (getprogname): ... into the #elif block where used, and make it
6879         explicitly "extern".
6881         getprogname: port to OpenBSD 5.1
6882         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
6883         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
6884         * modules/getprogname (configure.ac): Move most of this code...
6885         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
6886         increment serial number, and add a test for __progname.
6887         https://bugs.gnu.org/24562
6888         Reported by Nelson H. F. Beebe.
6890 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6892         sched: port to GCC 6.2.1 on macOS Sierra
6893         Problem reported by Denis Davydov in:
6894         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
6895         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
6896         Include <sys/cdefs.h> before <sched.h>.
6897         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
6898         so that we needn’t worry about the sched.h include bug here.
6899         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
6900         and include it before <sched.h> if it exists, when
6901         checking for <sched.h>.
6903         tests/init.sh: port Alpine fix to AIX 7.1
6904         * tests/init.sh (compare_): When attempting to use diff -U3,
6905         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
6906         diff -u not outputting a space after leading '+', as the users
6907         of 'compare' should not be that picky about its output format.
6908         In the AIX 7.1 case, return with diff exit status (or with 2 if
6909         trouble), instead of some random nonzero exit status.
6910         * tests/test-init.sh (test_compare): Remove space after leading
6911         '+', so that AIX 7.1 'diff' passes the test.
6913 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6915         nl_langinfo: pacify GCC
6916         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
6917         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
6919         stdint: also set GL_GENERATE_LIMITS_H
6920         Problem reported by Jim Meyering in:
6921         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
6922         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
6924         limits-h, stdint: Don't assume extensions, fix typo
6925         * m4/limits-h.m4 (gl_LIMITS_H):
6926         * m4/stdint.m4 (gl_STDINT_H):
6927         Don't assume AC_USE_SYSTEM_EXTENSIONS.
6928         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
6929         reported by Jim Meyering in:
6930         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
6932 2016-09-21  Jim Meyering  <meyering@fb.com>
6934         getprogname: port to AIX
6935         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
6936         and strdup to obtain a short program name string.  Using code from
6937         Bruno Haible and an idea from Bastien ROUCARIÈS, in
6938         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6939         Assaf Gordon reported that this new file would fail to compile on
6940         AIX-7.1 32bit.
6942 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
6944         extensions: fix typo in comment
6945         * m4/extensions.m4: Sync from Autoconf master.
6947         stdint: support new _WIDTH macros
6948         * doc/posix-headers/stdint.texi: Document this.
6949         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
6950         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
6951         support for INTMAX_WIDTH, etc. as well as for support for just C99.
6952         * modules/stdint (Depends-on): Add limits-h.
6953         (Makefile.am): Substitute HAVE_C99_STDINT_H.
6954         * modules/stdint-tests (Depends-on): Add extensions, so that
6955         INTMAX_MAX etc. are defined.
6956         * tests/test-stdint.c: Verify the new macros.
6958         limits-h: new module
6959         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
6960         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
6961         * doc/posix-headers/limits.texi: Document new module.
6962         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
6963         * modules/limit-h-tests, tests/test-limits-h.c: New files.
6965         stdio: don't redefine __USE_MINGW_ANSI_STDIO
6966         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
6967         if it is already defined.  Apparently GNU Emacs relies on this.  See:
6968         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
6970 2016-09-15  Eric Blake  <eblake@redhat.com>
6972         sys_types: avoid glibc 2.25 warnings about major()
6973         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
6974         older autoconf.
6975         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
6976         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
6977         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
6978         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
6980         mountlist: include sysmacros.h for glibc
6981         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
6982         AC_HEADER_MAJOR.
6983         * lib/mountlist.c (includes): Use correct headers.
6985 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
6987         extensions: port to more ISO C TSes
6988         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
6989         master, to add support for more recent ISO C TRs and TSes.
6991 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6993         intprops: new macro TYPE_WIDTH
6994         * lib/intprops.h (TYPE_WIDTH): New macro.
6995         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
6996         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
6997         * lib/parse-datetime.y (parse_datetime2):
6998         Use it.
7000         extensions: port to recent ISO C TRs
7001         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7002         Sync from Autoconf master, to add support for recent ISO C TRs.
7003         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
7004         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
7005         the MinGW option is not an extension.
7007 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
7009         dfa: port to Solaris 9
7010         Problems reported by Tom G. Christensen in:
7011         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
7012         * modules/dfa (Depends-on): Add isblank.
7013         * modules/dfa-tests (dfa_match_aux_LDADD):
7014         Rename from test_stat_LDADD, to fix typo.
7015         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
7017 2016-09-10  Jim Meyering  <meyering@fb.com>
7019         strverscmp: avoid link failure on OS X
7020         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
7021         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
7023 2016-08-16  Jim Meyering  <meyering@fb.com>
7025         dfa: new module, importing grep's DFA matcher
7026         Since grep's DFA matcher is now being used by two gnulib-enabled
7027         projects, grep and sed, it makes sense to version-control its
7028         sources and unit tests in one place: here.
7029         * modules/dfa: New module.
7030         * modules/dfa-tests: New file.
7031         * lib/dfa.c: New file, from grep.
7032         * lib/dfa.h: Likewise.
7033         * lib/localeinfo.c: Likewise.
7034         * lib/localeinfo.h: Likewise.
7035         * tests/dfa-match-aux.c: Likewise.
7036         * tests/dfa-invalid-char-class.sh: Likewise.
7037         * tests/dfa-match.sh: Likewise, with minor changes.
7038         * MODULES.html.sh (Misc): Add "dfa" to this list.
7040 2016-09-09  Jim Meyering  <meyering@fb.com>
7042         getprogname-tests: don't depend on assert-h
7043         * modules/getprogname-tests (Depends-on): Remove assert-h.
7044         It was not needed, and in fact would cause build failure for
7045         coreutils on some systems.  Reported by Assaf Gordon in https:
7046         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
7048 2016-09-07  Jim Meyering  <meyering@fb.com>
7050         getprogname-tests: work also when EXEEXT is nonempty
7051         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
7052         * tests/test-getprogname.c (main): Use it.
7053         Suggested by Gisle Vanem.
7055 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
7057         getprogname: fix errors in previous change
7058         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
7059         s/program_invocation_name/base/
7060         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
7062 2016-09-08  Pádraig Brady  <P@draigBrady.com>
7064         parse-datetime: restrict debug output to input string
7065         * lib/parse-datetime.y (parse_datetime2): If we parse
7066         all of the input but determine it's invalid, ensure
7067         we don't output the now invalid input pointer.
7068         This issue was seen with `date -d 'now +1'`.
7070 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7072         flexmember: new macro FLEXALIGNOF
7073         * lib/flexmember.h: Include <stddef.h>, for offsetof.
7074         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
7075         this macro.  Update comments.
7077 2016-09-07  Jim Meyering  <meyering@fb.com>
7079         getprogname: port to systems with __argv (mingw, msvc)
7080         * lib/getprogname.c (getprogname): Include "dirname.h" and use
7081         last_component: more general than open coding it with hard-coded "/".
7082         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
7083         * modules/getprogname (Depends-on): Add dirname-lgpl.
7084         (configure.ac): Check for __argv in <stdlib.h>.
7085         * modules/getprogname-tests: New file.
7086         * tests/test-getprogname.c: New file.
7087         Suggested by Gisle Vanem in
7088         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
7090 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7092         flexmember: port better to GCC + valgrind
7093         With a char[] flexible array member in a struct with nontrivial
7094         alignment, GCC-generated code can access past the end of the
7095         array, because GCC assumes there are padding bytes to get the
7096         struct aligned.  So the common idiom of malloc (offsetof (struct
7097         s, m), n) does not properly allocate an n-byte trailing member, as
7098         malloc’s argument should be the next multiple of alignof (struct s).
7099         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
7100         Although C11 apparently permits this GCC optimization (i.e., there
7101         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
7102         See the thread containing:
7103         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
7104         * lib/flexmember.h: New file.
7105         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
7106         * lib/localename.c, lib/time_rz.c:
7107         Include flexmember.h.
7108         * lib/fnmatch_loop.c (struct patternlist):
7109         * lib/localename.c (struct hash_node):
7110         Use FLEXIBLE_ARRAY_MEMBER.
7111         * lib/fnmatch_loop.c (EXT):
7112         * lib/fts.c (fts_alloc):
7113         * lib/glob.c (glob_in_dir):
7114         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
7115         * lib/localename.c (gl_lock_define_initialized):
7116         * lib/time_rz.c (tzalloc):
7117         Use FLEXSIZEOF instead of offsetof.
7118         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7119         Check that the size of the struct can be taken.
7120         * modules/flexmember (Files): Add lib/flexmember.h.
7121         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
7122         Add flexmember.
7124 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7126         getprogname: port to Solaris 10
7127         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
7128         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
7129         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
7131         stdalign: correct mistake in alignof doc
7132         Problem reported by Joseph Myers in:
7133         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
7134         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
7135         alignof(S) where S is a structure containing a flexible array
7136         member.  The Gnulib substitute does not support this, but C11 does.
7138 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7140         main.mk: remove sc_program_name, since there is no more need to
7141         use set_program_name in tools (getprogname is enough for most
7142         of the cases).
7143         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
7144         * top/maint.mk (sc_program_name): Remove.
7146 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7148         Port tests away from progname, since modules that need the
7149         program name already depend on getprogname.
7150         * modules/acl-tests (Depends-on): Remove progname.
7151         * modules/argmatch (Depends-on): Likewise.
7152         * modules/argmatch-tests (Depends-on): Likewise.
7153         * modules/argp-tests (Depends-on): Likewise.
7154         * modules/argp-version-etc-tests (Depends-on): Likewise.
7155         * modules/array-list-tests (Depends-on): Likewise.
7156         * modules/array-oset-tests (Depends-on): Likewise.
7157         * modules/avltree-list-tests (Depends-on): Likewise.
7158         * modules/avltree-oset-tests (Depends-on): Likewise.
7159         * modules/avltreehash-list-tests (Depends-on): Likewise.
7160         * modules/carray-list-tests (Depends-on): Likewise.
7161         * modules/copy-file-tests (Depends-on): Likewise.
7162         * modules/exclude-tests (Depends-on): Likewise.
7163         * modules/fchownat-tests (Depends-on): Likewise.
7164         * modules/fdopendir-tests (Depends-on): Likewise.
7165         * modules/filenamecat-tests (Depends-on): Likewise.
7166         * modules/fstatat-tests (Depends-on): Likewise.
7167         * modules/fstrcmp-tests (Depends-on): Likewise.
7168         * modules/linked-list-tests (Depends-on): Likewise.
7169         * modules/linkedhash-list-tests (Depends-on): Likewise.
7170         * modules/mkdirat-tests (Depends-on): Likewise.
7171         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
7172         * modules/nonblocking-socket-tests (Depends-on): Likewise.
7173         * modules/obstack-printf-tests (Depends-on): Likewise.
7174         * modules/openat-tests (Depends-on): Likewise.
7175         * modules/parse-datetime-tests (Depends-on): Likewise.
7176         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
7177         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
7178         * modules/quotearg-simple-tests (Depends-on): Likewise.
7179         * modules/quotearg-tests (Depends-on): Likewise.
7180         * modules/rbtree-list-tests (Depends-on): Likewise.
7181         * modules/rbtree-oset-tests (Depends-on): Likewise.
7182         * modules/rbtreehash-list-tests (Depends-on): Likewise.
7183         * modules/spawn-pipe-tests (Depends-on): Likewise.
7184         * modules/system-quote-tests (Depends-on): Likewise.
7185         * modules/uniname/uniname-tests (Depends-on): Likewise.
7186         * modules/uninorm/nfc-tests (Depends-on): Likewise.
7187         * modules/uninorm/nfd-tests (Depends-on): Likewise.
7188         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
7189         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
7190         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
7191         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
7192         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
7193         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
7194         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
7195         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
7196         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
7197         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
7198         * modules/unlinkat-tests (Depends-on): Likewise.
7199         * modules/version-etc-tests (Depends-on): Likewise.
7200         * modules/xalloc-die-tests (Depends-on): Likewise.
7201         * modules/xmemdup0-tests (Depends-on): Likewise.
7202         * modules/xprintf-posix-tests (Depends-on): Likewise.
7203         * modules/xvasprintf-tests (Depends-on): Likewise.
7204         * tests/test-argmatch.c: Do not include progname.h.
7205         (main) Stop calling set_program_name.
7206         * tests/test-argp-version-etc.c: Likewise.
7207         * tests/test-argp.c: Likewise.
7208         * tests/test-argv-iter.c: Likewise.
7209         * tests/test-array_list.c: Likewise.
7210         * tests/test-array_oset.c: Likewise.
7211         * tests/test-avltree_list.c: Likewise.
7212         * tests/test-avltree_oset.c: Likewise.
7213         * tests/test-avltreehash_list.c: Likewise.
7214         * tests/test-carray_list.c: Likewise.
7215         * tests/test-copy-acl.c: Likewise.
7216         * tests/test-copy-file.c: Likewise.
7217         * tests/test-exclude.c: Likewise.
7218         * tests/test-fchownat.c: Likewise.
7219         * tests/test-fdopendir.c: Likewise.
7220         * tests/test-filenamecat.c: Likewise.
7221         * tests/test-fstatat.c: Likewise.
7222         * tests/test-fstrcmp.c: Likewise.
7223         * tests/test-linked_list.c: Likewise.
7224         * tests/test-linkedhash_list.c: Likewise.
7225         * tests/test-mkdirat.c: Likewise.
7226         * tests/test-nonblocking-pipe-main.c: Likewise.
7227         * tests/test-nonblocking-socket-main.c: Likewise.
7228         * tests/test-obstack-printf.c: Likewise.
7229         * tests/test-openat.c: Likewise.
7230         * tests/test-parse-datetime.c: Likewise.
7231         * tests/test-pipe-filter-gi1.c: Likewise.
7232         * tests/test-pipe-filter-gi2-main.c: Likewise.
7233         * tests/test-pipe-filter-ii1.c: Likewise.
7234         * tests/test-pipe-filter-ii2-main.c: Likewise.
7235         * tests/test-quotearg-simple.c: Likewise.
7236         * tests/test-quotearg.c: Likewise.
7237         * tests/test-rbtree_list.c: Likewise.
7238         * tests/test-rbtree_oset.c: Likewise.
7239         * tests/test-rbtreehash_list.c: Likewise.
7240         * tests/test-sameacls.c: Likewise.
7241         * tests/test-set-mode-acl.c: Likewise.
7242         * tests/test-spawn-pipe-main.c: Likewise.
7243         * tests/test-system-quote-main.c: Likewise.
7244         * tests/test-unlinkat.c: Likewise.
7245         * tests/test-version-etc.c: Likewise.
7246         * tests/test-xalloc-die.c: Likewise.
7247         * tests/test-xfprintf-posix.c: Likewise.
7248         * tests/test-xmemdup0.c: Likewise.
7249         * tests/test-xprintf-posix.c: Likewise.
7250         * tests/test-xvasprintf.c: Likewise.
7251         * tests/uniname/test-uninames.c: Likewise.
7252         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7253         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7254         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7255         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7256         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7257         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7258         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7259         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7260         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7261         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7262         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7263         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7264         * tests/test-c-stack.c: (program_name): Do not define.
7265         (main): Do not set program_name.
7266         * tests/test-closein.c: Likewise.
7267         * tests/test-xstrtol.c: Likewise.
7268         * tests/test-yesno.c: Likewise.
7270 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7272         Port modules to use getprogname explicitly, instead of requiring
7273         progname to be used (or program_name to be provided).
7274         * lib/argmatch.c: Do not include progname.h.
7275         [TEST] (program_name): Do not define.
7276         [TEST] (main): Call getprogname instead of using program_name.
7277         * lib/c-stack.c: Do not include progname.h.
7278         (program_name): Do not define.
7279         (die): Call getprogname instead of using program_name.
7280         * lib/chdir-long.c: Do not include progname.h.
7281         [TEST_CHDIR] (main): Do not set program_name.
7282         * lib/error.c [!_LIBC]: Include progname.h.
7283         [!_LIBC] (program_name): Define using getprogname.
7284         * lib/euidaccess.c: Do not include progname.h.
7285         [TEST] (main): Do not set program_name.
7286         * lib/git-merge-changelog.c: Include getprogname.h instead of
7287         progname.h.
7288         (usage): Call getprogname instead of using program_name.
7289         (main): Likewise.  Stop calling set_program_name.
7290         * lib/group-member.c: Do not include progname.h.
7291         [TEST] (main): Do not set program_name.
7292         * modules/argmatch (Depends-on): Add getprogname.
7293         * modules/c-stack (Depends-on): Likewise.
7294         * modules/error (Depends-on): Likewise.
7295         * modules/git-merge-changelog (Depends-on): Likewise.
7296         Also remove progname.
7298 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
7300         * NEWS: Document the deprecation of the 'progname' module.
7302 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7304         getprogname: new module
7305         This provides a LGPL module for getting the name of the current
7306         program, using the same API found on *BSD systems.
7307         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
7308         * modules/getprogname: New files.
7309         * MODULES.html.sh (Misc): Add getprogname.
7311 2016-09-02  Jim Meyering  <meyering@fb.com>
7313         manywarnings: add -fno-common
7314         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
7315         to the list.  Quoting the manual, "Compiling with -fno-common is
7316         useful on targets for which it provides better performance, or if
7317         you wish to verify that the program will work on other systems that
7318         always treat uninitialized variable declarations this way [putting
7319         it in the data section]."  If diffutils had been using this sooner,
7320         it would have prevented this duplicate declaration issue:
7321         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
7323 2016-08-31  Simon Josefsson  <simon@josefsson.org>
7325         parse-datetime: Fix typo.
7326         * lib/parse-datetime.y (parse_datetime2): Fix typo.
7328 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7330         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
7331         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
7332         GCC 5 and 6 that have __builtin_sub_overflow but not
7333         __builtin_sub_overflow_p.  With the recent changes, these
7334         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
7335         implementation than with INT_SUBTRACT_OVERFLOW implementation,
7336         since the former needs just one runtime comparison whereas the
7337         latter needs two.
7339         strverscmp: sync with glibc
7340         Although this doesn't exactly synchronize with glibc
7341         byte-for-byte, it makes the code behave the same as glibc.
7342         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
7343         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
7344         difference shouldn't matter in practical use.  All uses changed
7345         back to isdigit.
7346         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
7347         (next_state): Now unsigned char array; redo elements.
7348         (result_type): Now signed char array; redo elements.
7349         (__strverscmp): Fix glibc bug 9913 by using new states.
7350         * tests/test-strverscmp.c (main): Test glibc bug 9913.
7352 2016-08-29  Jim Meyering  <meyering@fb.com>
7354         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
7355         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
7356         similarly to how it was done to intprops.h.
7358 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
7360         intprops.h: port recent changes to GCC 6.2.0
7361         * lib/intprops.h (__has_builtin): Move earlier.
7362         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
7363         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
7364         the last argument can be null.  All uses changed.
7365         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
7366         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7367         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
7368         and it's not clear which GCC versions it works for.
7369         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
7370         its definiens.
7372         intprops.h: use __typeof__ with GCC 7
7373         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
7374         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
7375         This avoids computing the expression's value (which might overflow!).
7377 2016-08-29  Jim Meyering  <meyering@fb.com>
7379         intprops.h, xalloc-oversized.h: work with gcc 7
7380         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
7381         __builtin_mul_overflow each accept a NULL pointer as the third
7382         argument.  However in gcc 7, that is no longer accepted.
7383         Instead, one must use the "_p"-suffixed names, with which, the
7384         third parameter is no longer a pointer.
7385         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
7386         the definition: not true for gcc 7 and subsequent.
7387         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
7388         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7389         Provide new definitions for gcc 7 and subsequent.
7390         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
7391         that works with gcc-7.
7393         intprops.h: fix missing-backslash problems
7394         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
7395         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
7397 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7399         intprops: fix paren typo on old platforms
7400         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
7401         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
7402         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
7403         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
7404         && !defined LLONG_MAX]:
7405         Remove stray paren.
7407         intprops: port to OpenVMS
7408         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
7409         * doc/posix-headers/limits.texi: Document the problem.
7410         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
7411         Define if not already defined.
7413 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
7415         parse-datetime: improve debug implementation
7416         Follow-up to commit 12ad79069 ("add optional debug printing").
7417         Improve parse-datetime's debug implementation: remove macros,
7418         replace global debug flag variable with a function parameter,
7419         use nstrftime for formatting.
7420         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
7421         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
7422         (parse_datetime2): New function, accepts 'flags' parameter, supporting
7423         debug flag. Existing interface 'parse_datetime' left unmodified.
7424         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
7425         (struct parser_control): add 'parse_datetime_debug' member variable.
7426         (parse_datetime): Call new function 'parse_datetime2' without debug.
7427         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
7428         pc.parse_datetime_debug variable as needed.
7429         (to_year): Accept new flags parameter, instead of using global variable.
7430         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
7431         use struct 'debug' variable instead of global variable.
7432         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
7433         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
7434         correspnding functions directly instead of using macros.
7435         * modules/parse-datetime: Add gnulib's strftime module.
7437 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
7439         c-strcase-tests: port to EBCDIC
7440         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
7441         which assume ASCII encoding semantics to run only in ASCII
7442         mode, as they fail in EBCDIC.
7444         sigpipe-tests: fix typo
7445         * tests/test-sigpipe.sh: C, not B.
7447 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7449         canonicalize-lgpl: fix errno after malloca fails
7450         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
7451         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
7452         * lib/canonicalize-lgpl.c (__realpath):
7453         Don't assume malloca sets errno on failure.
7455 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7457         strtod: port errno handling to z/OS
7458         * lib/strtod.c (strtod): Save and restore errno more reliably.
7460 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7462         strtod: port to z/OS
7463         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7464         implementation.
7466 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7468         strtod: port to z/OS
7469         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7470         implementation.
7472         regex, string: rename to avoid '__string'
7473         * lib/regex.h, lib/string.in.h: Do not use the identifier
7474         '__string', as it is effectively reserved by string.h on z/OS.
7476         c-strcase-tests, wcwidth-tests: depend on c-ctype
7477         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
7478         Add c-ctype.
7480 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7482         thread: port to z/OS
7483         * lib/glthread/thread.c, lib/glthread/thread.h:
7484         Rudimentary gl_thread support for z/OS.
7486         maint: port tests to z/OS errno behavior
7487         * tests/test-nonblocking-reader.h:
7488         * tests/test-nonblocking-writer.h:
7489         Accommodate z/OS errno code preferences. (I believe this should
7490         still be within spec; IBM is good at following the letter if not
7491         the spirit of such things.)
7493         maint: preprocessor changes to support z/OS
7494         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
7495         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
7496         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
7497         * tests/test-nonblocking-pipe.h:
7499         fclose, strstr-simple, wchar: port to z/OS
7500         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
7501         Changes to the Autoconf M4 code to support z/OS.  Note that
7502         fclose() is broken in a different way on z/OS than it is on other
7503         systems, thus the special-case in fclose.m4.
7505         iconv_open-utf-tests, iconv-tests: port to EBCDIC
7506         * tests/test-iconv-utf.c, tests/test-iconv.c:
7507         Added appropriately conditional #pragmas so that the test strings
7508         in test-iconv-utf.c are correctly interpreted in ASCII instead of
7509         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
7510         addressed in a more portable way by simply rewriting all the ASCII
7511         literal characters as octal escapes, but then you would lose the
7512         partial readability that the strings have now. Also, iconv_open()
7513         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
7515         c-strcase-tests, wcwidth-tests: port to EBCDIC
7516         * tests/test-c-strcasecmp.c: Include c-ctype.h.
7517         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
7518         * tests/test-wcwidth.c: Likewise.
7520 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7522         stdbool: don't require _Bool for C++
7523         Problem reported by David Seifert in:
7524         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
7525         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
7526         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
7527         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
7528         stricter about checking that bool and _Bool are compatible in C.
7530 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
7532         getdelim: remove dependency on realloc-posix
7533         * lib/canonicalize-lgpl.c (alloc_failed)
7534         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
7535         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
7536         Use __set_errno where needed, for consistency.
7537         * lib/getdelim.c (alloc_failed): New function.
7538         (getdelim): Use it.
7540 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
7542         parse-datetime: add optional debug printing
7543         Print parsing information, warnings, and errors to stderr.
7544         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
7545         * lib/parse-datetime.y:
7546         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
7547         (PROGRESS*): Same as DEBUG, for progress reporting.
7548         (dbg_printf): Print message to stderr, with 'date' prefix.
7549         (struct parser_control): Add 'debug_*_seen' variables.
7550         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
7551         (debug_print_current_time, debug_print_relateive_time): Prints the
7552         current/relative date/time value of parser_control.
7553         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
7554         (to_year): Warn about 2-digit year parsing.
7555         (yylex):   Warn about unrecognized words.
7556         (get_effective_timezone): Returns current timezone in minutes.
7557         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
7558         clearly and unambigiously as possible.
7559         (debug_mktime_not_ok): Print detailed information about failed
7560         date/time values.
7561         (parse_datetime): Add DEBUG messages for failures, warnings. Add
7562         PROGRESS messages for status messages.
7563         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
7565 2016-08-06  Jim Meyering  <meyering@fb.com>
7567         tests/init.sh: exclude dash with bad "local" semantics
7568         * tests/init.sh (gl_shell_test_script_): Add a function to
7569         eliminate a shell like "dash" (unlike bash, zsh) that has
7570         surprising/risky "local var='...'" semantics.  Inspired by
7571         the problem and discussion in https://bugs.gnu.org/24116#11.
7573 2016-08-02  Ján Tomko  <jtomko@redhat.com>
7575         maint.mk: expand the prohibit_doubled_word regex
7576         This check has a static list of words that are checked for
7577         repetitions.  Expand it before running the perl script to
7578         avoid using expensive captures.  This decreases the cost
7579         for libvirt from 1.66s to 0.66s.
7580         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
7581         (sc_prohibit_doubled_word): Use it.
7583 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7585         useless-if-before-free: skip non-matching lines early
7586         * build-aux/useless-if-before-free: First match each line with the
7587         simple/quick /\bif\b/ and reject if there is no match. This often
7588         saves the cost of the much more involved regular expression.
7589         For libvirt, this decreases the cost from 1.44s to 1.02s.
7591 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7593         maint.mk: speed up sc_po_check
7594         sc_po_check would skip files based on their names, or on the
7595         existence of files with derived names. Rewrite it to use perl
7596         instead of shell to make the check faster.
7597         * top/maint.mk (perl_translatable_files_list_): Define.
7598         (sc_po_check): Use it.
7600 2016-07-30  Ján Tomko  <jtomko@redhat.com>
7602         maint.mk: speed up require_config_h_first
7603         Instead of spawning three processes per file,
7604         rewrite the check in perl and run it once for all the files.
7605         * top/maint.mk (perl_config_h_first_): Define.
7606         (sc_require_config_h_first): Use it in place of shell code.
7608 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7610         maint.mk: speed up sc_po_check
7611         sc_po_check would skip files based on their names, or on the
7612         existence of files with derived names. Rewrite it to use perl
7613         instead of shell to make the check faster.
7614         * top/maint.mk (perl_translatable_files_list_): Define.
7615         (sc_po_check): Use it.
7617 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7619         obstack: pacify GCC 6 with -Wnull-dereference
7620         Problem reported by Assaf Gordon in:
7621         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
7622         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
7623         Declare with __attribute_noreturn__.
7624         * lib/obstack.h (__attribute_noreturn__): New macro.
7626 2016-07-13  Eric Blake  <eblake@redhat.com>
7628         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
7629         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
7630         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
7632 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7634         doc: mention glibc SSIZE_MAX buglet
7635         * doc/posix-headers/limits.texi (limits.h): Document the bug.
7637 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
7639         printf-posix: Fix mingw build
7640         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
7641         expression for detecting C symbol prefixes but forgot to qoute square
7642         brackets in the command line arguments for grep.  That way when
7643         building with mingw the condition was false although it ought to be
7644         true instead.  In particular scenarios this led to the following
7645         compile error:
7647             Cannot export rpl_printf: symbol not found
7648             Cannot export rpl_scanf: symbol not found
7649             collect2: error: ld returned 1 exit status
7651         Fix this by properly quoting square brackets.
7653 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7655         mktime: call tzset as per POSIX
7656         Problem reported by Ludovic Courtès in:
7657         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
7658         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
7659         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
7661 2016-06-26  Pádraig Brady  <P@draigBrady.com>
7663         fts: handle readdir() errors
7664         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
7665         but also upon error when it will also set errno.  Therefore
7666         flag the error case from readdir().  We treat the case where
7667         no items are read the same as if the dir can't be accessed,
7668         i.e. by setting fts_errno to FTS_DNR.
7670 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7672         intprops: port better to GCC 7
7673         GCC 7 __builtin_add_overflow supports a new usage form, where the
7674         last argument is a null pointer, and which merely returns 1 if an
7675         overflow would occur.  This is a constant expression if all
7676         arguments are constants, and should generate faster code when code
7677         needs to be generated.
7678         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
7679         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7680         Use builtin operations if available.
7681         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
7682         operations are available, as it's almost surely faster.
7684 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7686         intprops-test: port to GCC 6
7687         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
7688         since the bug is not fixed in GCC 6.1.
7690 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7692         xalloc-oversized: port to GCC 7; fewer warnings
7693         GCC 7 will have a better way to deal with integer overflow.
7694         Plus, fix a warnings problem reported by Tim Ruehsen in:
7695         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
7696         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
7697         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
7698         For GCC 5, use __xalloc_oversized if both args are constants,
7699         or if pedantic.
7701 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7703         regex: port to Sun C
7704         Reported by Daiki Ueno.
7705         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
7706         __restrict, in prototype.  This fixes a problem I introduced in
7707         the 2016-02-19 merge from glibc.
7709 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7711         stdbool: Restore __bool_true_false_are_defined check
7712         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
7713         __bool_true_false_are_defined is still defined, even with C++11.
7715 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
7717         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
7718         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
7720 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7722         Use GCC_LINT, not lint
7723         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
7724         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
7725         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
7726         Document problem with lint and _Noreturn.
7727         * lib/diffseq.h (IF_LINT, IF_LINT2):
7728         * lib/fts.c (sccsid):
7729         * lib/getndelim2.c (IF_LINT):
7730         * lib/gl_anylinked_list2.h (gl_linked_iterator)
7731         (gl_linked_iterator_from_to):
7732         * lib/gl_anytree_list2.h (gl_tree_iterator)
7733         (gl_tree_iterator_from_to):
7734         * lib/gl_anytree_oset.h (gl_tree_iterator):
7735         * lib/gl_array_list.c (gl_array_iterator)
7736         (gl_array_iterator_from_to):
7737         * lib/gl_array_oset.c (gl_array_iterator):
7738         * lib/gl_carray_list.c (gl_carray_iterator)
7739         (gl_carray_iterator_from_to):
7740         * lib/idcache.c:
7741         * lib/inet_ntop.c (IF_LINT):
7742         * lib/regcomp.c (build_charclass_op, create_tree):
7743         * lib/regex_internal.c (re_acquire_state)
7744         (re_acquire_state_context):
7745         * lib/trigl.c (rcsid):
7746         * lib/trim.c (IF_LINT):
7747         * lib/vasnprintf.c (IF_LINT):
7748         * lib/verify.h (assume):
7749         Treat GCC_LINT like lint.
7751 2016-05-29  Bruno Haible  <bruno@clisp.org>
7753         secure_getenv: Port to many more platforms.
7754         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
7755         functions.
7756         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
7757         for non-BSD Unix platforms and for native Windows.
7758         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
7759         Prompted by a request from Nikos Mavrogiannopoulos.
7761 2016-05-27  Eric Blake  <eblake@redhat.com>
7763         canonicalize: Fix broken probe for realpath.
7764         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
7765         in logic introduced in 54615b95.
7767 2016-05-26  Eric Blake  <eblake@redhat.com>
7769         unsetenv: relax to LGPLv2+
7770         * modules/unsetenv (License): Match setenv license.
7772 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
7774         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
7775         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
7776         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
7777         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
7778         (commonarg, dirargs, dirs, infoarg, generate_ascii)
7779         (generate_html, generate_info, generate_tex, outdir)
7780         (source_extra, split, srcfile, texarg): Move above 'version'.
7781         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
7783 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7785         manywarnings: update for GCC 6.1
7786         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7787         Add GCC 6.1 options that apply to C.
7788         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
7789         do not apply to C, are obsolescent, etc.
7791 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7793         glob: size_t overflow checks
7794         * lib/glob.c (__has_builtin): New macro.
7795         (size_add_wrapv, glob_use_alloca): New static functions.
7796         (glob, glob_in_dir): Check for size_t overflow in several places,
7797         and fix some size_t checks that were not quite right.
7799         glob: don't assume INT_MAX < SIZE_MAX
7800         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
7801         latter is not portable to (probably theoretical) hosts where
7802         SIZE_MAX <= INT_MAX.
7804 2016-05-09  Bruno Haible  <bruno@clisp.org>
7806         Fix undefined behaviour in gettext.h.
7807         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
7808         pointer's value after the storage it points to has been freed.
7809         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
7810         Spotted by Coverity.
7812 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7814         git-version-gen: avoid undefined shift
7815         Problem reported by Mosè Giordano in:
7816         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
7817         * build-aux/git-version-gen: Avoid undefined behavior if invoked
7818         with --prefix or --fallback but without a later argument.  While
7819         we're at it, omit unnecessary quotes.
7821 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
7823         glob: merge glibc changes into lib/glob.c
7824         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
7825         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
7826         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
7827           struct dirent [BZ #19779]
7828         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
7829           callback gl_readdir
7830         2015-10-20 Convert miscellaneous function definitions to prototype style
7831         2015-10-20 Convert 113 more function definitions to prototype style
7832           (files with assertions)
7833         2015-06-12 Fix getlogin_r namespace (bug 18527).
7834         2014-02-10 Use glibc_likely instead __builtin_expect.
7835         2013-10-20 When glob pattern contains a trailing slash match only
7836           directories. Fixes bug 10278.
7837         2013-09-04 glob: silence -Wattribute warnings
7838         2013-06-07 Avoid use of "register" as optimization hint.
7839         2012-09-25 Use size_t instead of int for internal variables in glob
7840           (bug 14621)
7841         2011-07-20 Check for overflows in expressions
7842         2011-05-28 Remove unused variable
7843         2011-05-22 Add a few more alloca size checks
7844         2010-03-27 Whitespace fixes
7845         2010-03-27 Fix one more issue with the glob patch
7846         2010-03-24 Fix glob with empty pattern
7847         2008-05-27 Remove useless more "if" tests before "free"
7848         * modules/glob (Depends-on): Add stdint.
7850 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7852         mktime: port to stricter signed overflow checking
7853         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
7854         (long_int): Require width for INT_MAX * 3 * (seconds per year),
7855         instead of merely for INT_MAX * 2.  In practice platforms that
7856         do the latter also do the former.
7857         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
7858         (shr): New static function, replacing SHR.  All uses changed.
7859         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
7860         and TIME_T_MAX.  All uses changed.
7861         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7862         Use long_int, not time_t.
7863         (long_int_avg): New static function, replacing time_t_avg.
7864         All uses changed.  Round toward positive infinity, as that
7865         generates slightly better code.
7866         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
7867         by INT_ADD_WRAPV.
7868         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
7869         (convert_time): New static function.
7870         (ranged_convert): Use it
7871         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
7872         Use simpler test for loop exit.
7873         (__mktime_internal): Store negative of guessed offset, to simplify
7874         overflow checking.  Remove no-longer-needed test for small time_t
7875         overflows.
7877         mktime: speed up DEBUG_MKTIME benchmarks
7878         Call tzset just once, at the start, rather than for every test
7879         case.  This lets us measure the CPU cost of mktime as opposed to
7880         that of tzset.  This is relevant when TZ is not set and glibc is
7881         being used.  This speeds up tests by a factor of 40 on my Fedora
7882         23 x86-64 platform.
7883         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
7884         to call tzset and as a sanity check.  Later on, use localtime_r
7885         instead of localtime.
7887         mktime: resurrect DEBUG_MKTIME testing
7888         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
7889         Include <string.h>, for strcmp.
7891         mktime: simplify DEBUG_MKTIME
7892         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
7893         Simplify later usage accordingly.
7895         Port mktime_internal offset to unsigned time_t
7896         This avoids some assumptions about wraparound arithmetic on
7897         signed integer overflow.
7898         * lib/mktime-internal.h (mktime_offset_t): New type.
7899         (mktime_internal): Use it in decl.
7900         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
7902         * lib/mktime.c (__mktime_internal, localtime_offset):
7903         * lib/timegm.c (timegm): Use it.
7904         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
7905         (gl_FUNC_MKTIME): Require it.
7907 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
7909         xstrtol: prohibit monstrosities like "1bB"
7910         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
7911         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
7912         "B" only if the first suffix needs a base.
7913         * tests/test-xstrtol.sh: Test this.
7915 2016-04-21  Pádraig Brady  <P@draigBrady.com>
7917         xstrtod: reinstate setting of *result upon ERANGE
7918         * lib/xstrtod.c (XSTRTOD): The user may decide to use
7919         the returned limits upon ERANGE, so allow and document that.
7921 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
7923         xstrtod: modify *result only if no errors
7924         * lib/xstrtod.c (XSTRTOD).
7926 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
7928         btowc: document problems in C locale
7929         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
7930         with mbrtowc.  See: http://bugs.gnu.org/23269#32
7932 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7934         mktime: improve integer overflow checking
7935         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
7936         (WRAPV): Remove; no longer needed.
7937         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
7938         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
7939         Remove.  Use intprops.h defns instead.
7940         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
7941         Use bool for Boolean, for clarity.
7942         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
7943         detect integer overflow.
7944         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
7946         intprops: check two's complement assumption
7947         Suggested by Eric Blake in:
7948         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
7949         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
7950         short, int, long, and (if available) long long are two's complement.
7951         * modules/intprops (Depends-on): Add 'verify'.
7953         intprops, mktime, strtol: assume two's complement
7954         These macros were not portable to every conforming C11 ones'
7955         complement platform.  It's not worth the hassle of porting to some
7956         platforms that use ones' complement or signed magnitude, as such
7957         platforms are almost purely theoretical nowadays and porting even
7958         to some of them makes the code harder to review for little
7959         practical benefit.  Problem reported by Florian Weimer in:
7960         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
7961         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
7962         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
7963         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
7964         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
7965         (TYPE_SIGNED_MAGNITUDE):
7966         Remove.  All uses rewritten to assume two's complement, which is
7967         all we can reasonably test nowadays anyway.
7968         * top/maint.mk (_intprops_names): Remove the removed macros.
7970 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
7972         stdint: port to strict C11 left shift
7973         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
7974         Pacify clang -Wshift-negative-value, which should be an issue only
7975         on clang setups where stdint.h does not conform to C11 or to C++11.
7976         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
7978 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
7980         mbrtowc: work around glibc bug#19932
7981         Fix mbrtowc so that it never returns -1 in the C locale,
7982         as this conflicts with a future version of POSIX
7983         http://austingroupbugs.net/view.php?id=663#c2738
7984         and causes problems with GNU grep: http://bugs.gnu.org/23234
7985         See glibc bug 19932:
7986         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
7987         * doc/posix-functions/mbrlen.texi (mbrlen):
7988         * doc/posix-functions/mbrtowc.texi (mbrtowc):
7989         Document the glibc bug.
7990         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
7991         Include hard-locale.h, locale.h.
7992         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
7993         if the bug is possible.
7994         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
7995         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
7996         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
7997         * modules/mbrtowc (Depends-on): Add hard-locale.
7998         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
7999         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
8000         * tests/test-mbrtowc5.sh: New file.
8002 2016-04-03  Pedro Alves  <palves@redhat.com>
8004         stdint: detect good enough pre-C++11 stdint.h in C++ mode
8005         When gnulib is configured in C++ mode for a system with a working C99
8006         implementation of stdint.h that predates C++11, gnulib ends up
8007         substituting stdint.h anyway.  This works on most targets, but on e.g.,
8008         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
8009         MinGW is LLP64.  Instead of trying to detect the right types, detect
8010         good-enough-pre-C++11 stdint.h and in such case define
8011         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
8012         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
8013         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
8014         conforms to C99.  If it does, check whether it hides symbols
8015         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
8016         does, define those macros in config.h.
8018 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
8020         argp: merge changes from glibc
8021         Among other things, this should fix problems found by a Coverity
8022         scan and reported by Andrei Borzenkov:
8023         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
8024         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
8025         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
8026         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
8027         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
8028         * lib/argp.h:
8029         Merge changes from glibc.
8030         * tests/test-argp-2.sh: Adjust to match new behavior.
8032 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
8034         stddef: support configuring with g++
8035         Problem reported by Ángel González in:
8036         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
8037         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
8038         Do not define if _GCC_MAX_ALIGN_T is defined.
8040 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8042         test-framework-sh: minor cleanups
8043         * tests/init.sh (testdir_prefix_): Output a trailing newline,
8044         since strictly speaking POSIX requires this.
8045         (setup_): Do not use the variable 'fail', as that makes the
8046         trace output harder to read ('fail' is typically used by
8047         tests to mean the test failed).  Treat // portably.
8048         Check that new directory is not merely a sibling of the tmp dir.
8049         Avoid unnecessary invocation of tr.
8051         test-framework-sh: revert port to NetBSD 7.0
8052         It was a false alarm; I misinterpreted Assaf Gordon's report.
8053         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8054         Restore.
8055         (test_dir_): Adjust to mktempd_ change.
8056         (mktempd_): Restore 2nd arg.  Use -t again.
8057         (base_template_, template_, nx_): Resurrect old code.
8059         Port better to Alpine Linux
8060         Its diff implementation does not support -c, but does support -U3.
8061         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
8062         * tests/init.sh (diff_opt_): New var.
8063         (compare_): Prefer diff -U3 to diff -c to plain diff.
8065 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8067         test-framework-sh: port to NetBSD 7.0
8068         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
8069         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
8070         Remove.  All uses removed.
8071         (test_dir_): Adjust to mktempd_ change.
8072         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
8073         (base_template_, template_, nx_): Simplify by hardcoding.
8075 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
8077         gitlog-to-changelog: suppress ignored chatter
8078         * build-aux/gitlog-to-changelog: Do not warn about skipping
8079         an SHA if it would have been ignored anyway.
8081 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
8083         setlocale: add "sv" to Windows language table
8084         * lib/setlocale.c (language_table) [W32]: Add "sv".
8085         Reported in <https://savannah.gnu.org/bugs/?44588>.
8087 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8089         sys_select: port to new Cygwin
8090         Problem reported by Ken Brown in:
8091         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
8092         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
8093         diagnostics.
8095 2016-03-17  Jim Meyering  <meyering@fb.com>
8097         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
8098         * tests/test-userspec.c (main): Remove unnecessary braces and fix
8099         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
8100           test-userspec.c:176:9: error: statement is indented as if it were \
8101             guarded by... [-Werror=misleading-indentation]
8102                    {
8103                    ^
8104           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
8105                  if (!diag && !T[i].result)
8106                  ^~
8108 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
8110         time_rz: port to clang -Wunused-const-variable
8111         * lib/time_rz.c (TZ): Remove.  All uses removed.
8113         std-gnu11: improve clang support
8114         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
8115         2016-03-15 Also try clang
8116         2016-03-15 Port C11 and C++11 testing to clang
8118         select: port more to Intel 2016.1.150 compiler
8119         Problem reported by Balázs Hajgató in:
8120         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
8121         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
8123 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
8125         select: try to port to 2016.1.150 compiler
8126         Problem reported by Balázs Hajgató in:
8127         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
8128         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
8129         POSIX specifies 'restrict'.
8131 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
8133         localename-tests: memory allocation fixes
8134         * tests/test-localename.c (test_locale_name)
8135         (test_locale_name_thread): Don't call freelocale on a locale
8136         that was the base of a successful newlocale, as that
8137         results in a double free.  Problem reported by Assaf Gordon.
8138         (test_locale_name_thread): Free saved names after use, to pacify
8139         gcc -fsanitize=address.
8141 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
8143         intprops: make .h file license match module
8144         * lib/intprops.h: Change the license wording to match glibc format.
8145         This is what is in modules/intprops anyway.  See:
8146         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
8148 2016-03-08  Eric Blake  <eblake@redhat.com>
8150         acl: fix missing return on Cygwin
8151         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
8152         fall off end of function. Fixes http://bugs.gnu.org/22949
8154 2016-03-05  Bruno Haible  <bruno@clisp.org>
8156         extern-inline: port to PGI CC
8157         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
8158         keyword 'inline'.
8159         Reported by Adam James Stewart in:
8160         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
8162 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8164         signbit: port back to pre-C++11 GCC
8165         * lib/math.in.h (signbit): Do previous change only if
8166         __cplusplus < 201103.  See Jonathan Wakely in:
8167         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
8169 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
8171         mountlist: recognize autofs-mounted remote file systems, too
8172         Originally reported at: https://bugzilla.redhat.com/1309247
8173         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
8174         "-hosts" because it is used by autofs to mount remote file systems.
8176 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8178         signbit: port to C++ with GCC 6
8179         * lib/math.in.h (signbit) [__cplusplus]:
8180         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
8181         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
8183         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
8185         regex: make it closer to libc
8186         Make Idx a signed type, rather than possibly unsigned.
8187         The unsignedness was not really buying us anything, since the code
8188         overflows for other reasons before getting to PTRDIFF_MAX.  Making
8189         it signed allows us to use -1 and -2 with abandon, like libc does,
8190         thus lessening the number of differences between gnulib and libc.
8191         Also, it should help avoid gratuitous warnings like the one
8192         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
8193         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
8196         regex: merge patches from libc
8198         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8199         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8200         Convert miscellaneous function definitions to prototype style.
8201         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
8202         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
8203         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
8204         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
8205         (re_search_internal):
8206         Convert to prototype-style function definition.
8207         Use internal_function for internal functions.
8209 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
8211         stdalign: port to older HP and IBM cc
8212         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
8213         C compilers, by checking their version numbers.  These version
8214         numbers appear in MariaDB and in Qt code that dates way back and
8215         that conditiionally uses the 'aligned' attribute.
8217 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8219         stdalign: port to clang 3.7.0
8220         Problem reported by Herbert J. Skuhra in:
8221         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
8222         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
8223         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
8224         https://llvm.org/bugs/show_bug.cgi?id=26547
8226 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8228         readdir_r: now obsolescent
8229         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
8230         * lib/mountlist.c (read_file_system_list): Add a FIXME.
8232 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8234         misc: port better to gcc -fsanitize=address
8235         Without these patches, ./configure CFLAGS='-fsanitize=address'
8236         would compute incorrect values.  This patch fixes some (but not all)
8237         test failures with recent glibc, with this configuration.
8238         * m4/acl.m4 (gl_ACL_GET_FILE):
8239         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
8240         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
8241         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
8242         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
8243         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
8244         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
8245         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
8246         * m4/getline.m4 (gl_FUNC_GETLINE):
8247         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
8248         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
8249         * m4/regex.m4 (gl_REGEX):
8250         * m4/strndup.m4 (gl_FUNC_STRNDUP):
8251         * tests/test-calloc-gnu.c (main):
8252         * tests/test-duplocale.c (main):
8253         * tests/test-getgroups.c (main):
8254         * tests/test-getline.c (main):
8255         * tests/test-inttostr.c (main):
8256         * tests/test-localename.c (test_locale_name)
8257         (test_locale_name_thread, test_locale_name_environ)
8258         (test_locale_name_default):
8259         * tests/test-regex.c (main):
8260         * tests/test-setlocale1.c (main):
8261         * tests/test-stat.h (test_stat_func):
8262         Free heap-allocated storage before exiting.
8263         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
8264         Don't match *_foo symbols inserted by AddressSanitizer.
8265         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
8267 2016-02-02  Jim Meyering  <meyering@fb.com>
8269         verify-tests: also remove stray test-verify.Tpo
8270         * modules/verify-tests (Makefile.am): Arrange for "make clean"
8271         to remove the test-verify.Tpo file that is left behind by
8272         the automake-generated rule upon compilation failure.
8273         Otherwise, that .Tpo file would cause a failed "make distcheck"
8274         at least for grep.
8276 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8278         std-gnu11: new module
8279         This makes it easier for applications to prefer C11 and C++11
8280         to older variants, when compiling C and C++ code.
8281         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
8282         a nontrivial chunk of GPLed Autoconf source code.
8283         * COPYING: Mention the m4/*.m4 copyright situation.
8284         * MODULES.html.sh (std-gnu11): New module.
8285         * m4/std-gnu11.m4, modules/std-gnu11: New files.
8287 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8289         get-permissions, strftime: fix grammar in comments
8290         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
8291         some grammar fixes Alan Mackenzie made to GNU Emacs.
8293 2016-01-25  Daiki Ueno  <ueno@gnu.org>
8295         gettext: mark as obsolete
8296         Suggested by Paul Eggert in:
8297         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
8298         * modules/gettext (Status): Mark as obsolete.
8299         (Notice): Suggest to use 'gettext-h' instead.
8300         * modules/gettext-h (Description): Suggest GNU gettext, instead of
8301         the 'gettext' module.
8303 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8305         gnulib-tool: don't give up on ln -s so easily
8306         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
8307         because an earlier one failed.  The targets could be on different
8308         file systems.  Problem reported by KO Myung-Hun in:
8309         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
8311         closedir: fix OS/2-related typos
8312         Problem reported by KO Myung-Hun in:
8313         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
8314         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
8315         in the last couple of changes.
8317 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
8319         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
8320         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
8321         copying a directory.
8323 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8325         regex: treat [x] as x if x is a unibyte encoding error
8326         Problem reported by Aharon Robbins in:
8327         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
8328         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
8329         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
8331         closedir, dirfd, opendir: port to OpenSolaris 5.10
8332         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
8333         * m4/dirfd.m4 (gl_FUNC_DIRFD):
8334         * m4/opendir.m4 (gl_FUNC_OPENDIR):
8335         Don't use ${word##pat} substitution, as it doesn't work in
8336         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
8337         http://bugs.gnu.org/22443#11
8339 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8341         bootstrap: use American spelling
8342         * build-aux/bootstrap: Honor American spelling.
8344 2016-01-22  Karl Berry  <karl@freefriends.org>
8346         * doc/posix-functions/localtime.texi,
8347         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
8349 2016-01-21  Bruno Haible  <bruno@clisp.org>
8351         hash-pjw-bare: fix comment
8352         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
8354         wcwidth: Replace also on OpenBSD 5.8
8355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
8356         * doc/posix-functions/wcwidth.texi: Update.
8358 2016-01-20  Pádraig Brady  <P@draigBrady.com>
8360         gnu-web-doc-update: fix addition of new files
8361         If there were already added (emnpty) dirs,
8362         then cvs aborts the add with the message:
8363           cvs [add aborted]: there is a version in <./dirname> already
8364         * build-aux/gnu-web-doc-update: Add directories separately
8365         to the addition of files, to avoid the above issue
8366         impacting the addition of files.
8368 2016-01-19  Daiki Ueno  <ueno@gnu.org>
8370         utimens-tests: avoid pulling gettext .m4 files
8371         Although this is not the right fix to the original problem:
8372         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
8373         it makes it possible again for consumer projects to use arbitrary
8374         version of gettext, through the steps described at:
8375         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
8376         See here for details:
8377         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
8378         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
8379         'gettext'.
8380         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
8381         'gettext'.
8383 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8385         regex: pacify static checkers
8386         Problem and draft fix reported by Aharon Robbins in:
8387         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8388         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
8389         Clear memory to pacify static checkers.
8391         regex: fix [ diagnostic
8392         Problem and fix reported by Aharon Robbins in:
8393         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8394         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
8396         regex: fix memory leaks
8397         Problem and draft fix reported by Aharon Robbins in:
8398         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8399         * lib/regcomp.c (build_range_exp, build_charclass_op)
8400         * lib/regex_internal.c (re_dfa_add_node):
8401         Fix memory leak on failure.
8403 2016-01-18  Pádraig Brady  <P@draigBrady.com>
8405         fts: don't unconditionally use leaf optimization for NFS
8406         NFS st_nlink are not accurate on all implementations,
8407         leading to aborts() if that assumption is made.
8408         See <https://bugzilla.redhat.com/1299169>
8409         * lib/fts.c (leaf_optimization_applies): Remove NFS from
8410         the white list, and document the issue.
8412 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8413             KO Myung-Hun  <komh@chollian.net>
8415         gnulib-tool: don't assume ln -s works
8416         * gnulib-tool (func_ln_s): New function.
8417         (func_ln): Use it.
8419 2016-01-15  KO Myung-Hun  <komh@chollian.net>
8421         utimes: detect utimes() correctly on OS/2 kLIBC
8422         utimes() of OS/2 kLIBC has some limitations.
8423         1. OS/2 itself supports a file date since 1980 year in local time.
8424         2. OS/2 itself supports only even seconds for a file time.
8425         3. utimes() of OS/2 kLIBC does not work on an opened file.
8426         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
8427         * doc/posix-functions/utimes.texi: Document the above limitations of
8428         utimes() on OS/2 kLIBC.
8430 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8431             KO Myung-Hun  <komh@chollian.net>
8433         openat_proc_name: port to OS/2 kLIBC
8434         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
8435         instead of /proc/self/fd.
8436         * lib/openat-proc.c (openat_proc_name):
8437         Don't assume file name length is less than INT_MAX.
8438         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
8440 2016-01-14  KO Myung-Hun  <komh@chollian.net>
8442         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
8443         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
8444         definitions of intptr_t and uintptr_t (which use int and unsigned)
8445         to avoid clashes with declarations of system functions like sbrk.
8446         * lib/stdint.in.h (intptr_t, uintptr_t): Check
8447         _INTPTR_T_DECLARED before defining them.
8449         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
8450         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
8451         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
8452         Declare on kLIBC.
8453         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
8454         fd associated with dirp.
8455         (_gl_register_dirp_fd): New. Register fd associated with dirp to
8456         dirp_fd_list.
8457         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
8458         (dirfd): Implemented for kLIBC.
8459         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
8460         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
8461         succeeds.
8462         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
8463         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8464         (REPLACE_DIRFD): Define to 1 if replaced.
8465         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
8466         * modules/closedir (Depends-on): Add dirfd.
8467         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
8468         condition.
8469         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
8470         * modules/opendir (Depends-on): Add dirfd.
8472         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
8473         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
8474         * lib/dup.c (dup_nothrow): New.
8475         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
8476         (klibc_dup2): New.
8477         * lib/fcntl.c (klibc_fcntl): New.
8478         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
8479         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
8480         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
8481         fd.
8483         pipe_filter_ii_execute: port to OS/2 kLIBC
8484         Pipes on kLIBC do not support O_NONBLOCK like Win32.
8485         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
8486         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
8487         Reuse Win32 code on OS/2 kLIBC.
8488         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
8489         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
8491         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
8492         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
8493         static inline function.  The implementation of wcwidth in wcwidth.c
8494         causes a "conflicting types" error.
8495         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
8497         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
8498         spawn() on OS/2 kLIBC is not silly like one on Windows
8499         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
8500         empty string on OS/2 kLIBC.
8502         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
8503         On OS/2 kLIBC, select() works only on sockets.
8504         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
8506         binary-io: don't put fd in binary mode if it is a console on EMX
8507         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
8508         a console on EMX.
8510 2016-01-15  Pádraig Brady  <P@draigBrady.com>
8512         doc: mention unfixed issues with unsupported localtime() values
8513         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
8514         returns nonsense for localtime(2^56).
8515         * doc/posix-functions/localtime_r.texi: Likewise.
8517 2016-01-14  Pádraig Brady  <P@draigBrady.com>
8519         doc: mention setlocale() issues on OpenBSD
8520         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
8521         never fails, and the need to check categories individually.
8523 2016-01-14  Pádraig Brady  <P@draigBrady.com>
8525         sig2str: list all signals on FreeBSD >= 7
8526         FreeBSD >= 7 is contravening POSIX by not defining NSIG
8527         to the maximal statically defined signal value.
8528         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
8529         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
8530         where available, even when NSIG is defined.
8532 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
8534         acl-permissions: port to USE_ACL==0 platforms
8535         I ran into this problem when building bleeding-edge GNU Emacs
8536         with gcc -fsanitize=address on Fedora 23.  On this platform
8537         the ACL library does not pass the 'configure' test and Emacs
8538         then does not build due in part to what appear to be typos in the
8539         ACL part of Gnulib.
8540         * lib/acl-internal.c (free_permission_context):
8541         * lib/acl-internal.h (struct permission_context):
8542         Test whether USE_ACL is nonzero, not whether it is defined.
8544 2016-01-12  Martin Sebor  <msebor@redhat.com>
8546         mktime: rename macro to avoid glibc clash
8547         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
8548         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
8550 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
8552         Port "$@" to OpenIndiana ksh93
8553         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
8554         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
8555         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
8556         bug long-dead shells, so remove the workaround.
8557         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
8558         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
8559         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
8560         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
8561         Use "$@" instead of ${1+"$@"}.
8563         Port Universal Time settings to strict POSIX
8564         * build-aux/announce-gen, build-aux/bootstrap:
8565         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
8566         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
8567         * build-aux/gnupload, build-aux/mkinstalldirs:
8568         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
8569         * build-aux/update-copyright, build-aux/useless-if-before-free:
8570         * build-aux/vc-list-files, tests/test-strftime.c:
8571         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
8572         but POSIX says the behavior of TZ="UTC" is undefined.
8574 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8576         msvc-inval: fix problem with unset shell var
8577         Problem reported by Karl Berry in:
8578         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
8579         * modules/msvc-inval (Depends-on):
8580         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
8581         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
8583 2016-01-01  Pádraig Brady  <P@draigBrady.com>
8585         tests: for compare_(), use cmp -s where available
8586         * tests/init.sh (compare_): Only fall back to cmp without
8587         the POSIX defined -s option, where this is not available.
8589 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8591         version-etc: new year
8592         * build-aux/gendocs.sh (version):
8593         * doc/gendocs_template:
8594         * doc/gendocs_template_min:
8595         * doc/gnulib.texi:
8596         * lib/version-etc.c (COPYRIGHT_YEAR):
8597         Update copyright dates by hand in templates and the like.
8598         * all files: Run 'make update-copyright'.
8600 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8602         human: fix output buffer overrun by 1
8603         * lib/human.c (human_readable): Fix off-by-one typo in buffer
8604         calculation that could lead to a one-byte buffer overrun.
8606 2015-12-28  Daiki Ueno  <ueno@gnu.org>
8608         maint: fix operator precedence in mbrtowc test
8609         This is a fix for test breakage introduced by commit 45228d96; the
8610         equality expression must be parenthesized when negated with '!',
8611         otherwise we always get:
8613           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
8615         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
8616         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
8618 2015-12-23  James Youngman  <jay@gnu.org>
8620         regexprops-generic: update from regex.h
8621         * doc/regexprops-generic.texi: update by running the regexprops binary
8622         from findutils (the command line is 'regexprops "Regular Expressions"
8623         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
8624         gnulib with GNU grep had made this document out-of-date.
8626 2015-12-23  Pádraig Brady  <P@draigBrady.com>
8628         strftime-tests: avoid false failure on OS X
8629         * tests/test-strftime.c (struct localtime_rz_test): Add an
8630         ahistorical member which is used to warn rather than fail
8631         when tm_isdst isn't set for such entries.  This is the case for
8632         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
8634 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
8636         fts: ensure leaf optimization is used for NFS
8637         NFS provides usable dirent.d_type but not necessarily for all entries
8638         of large directories.  See <https://bugzilla.redhat.com/1252549>
8639         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
8641 2015-12-20  Pádraig Brady  <P@draigBrady.com>
8643         fts: enable leaf optimization for XFS
8644         XFS provides usable dirent.d_type only for DT_DIR,
8645         but the noleaf optimization still applies.
8646         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
8648 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8650         intprops: comment fix
8651         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
8652         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
8654         intprops-test: work around GCC bug 68971
8655         Problem reported by Pádraig Brady in:
8656         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
8657         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
8658         (main): Add a case that better tests 64-bit long in this area.
8660 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
8662         gnulib-tool: allow multiple --local-dir usage
8663         * gnulib-tool: Use --local-dir to construct compound
8664         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
8665         PATH_SEPARATOR early.
8666         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
8667         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
8668         func_determine_path_separator because that needs to be detected
8669         earlier now.
8670         (func_determine_path_separator): New function.
8671         (func_path_foreach, func_path_foreach_inner): New functions.
8672         (func_path_prepend, func_path_append): Likewise.
8673         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
8674         (func_lookup_file, func_all_modules): Use new functions to work
8675         with local_gnulib_path.
8676         (func_modules_in_dir, func_exists_module): New callbacks for
8677         func_path_foreach.
8678         (func_exists_module, func_get_tests_module): Likewise.
8679         (func_is_local_file, func_should_symlink): New helper methods.
8680         (func_add_file, func_update_file): Use new func_should_symlink
8681         instead, DRY.
8682         (func_reconstruct_cached_local_gnulib_path): New helper.
8683         (func_reconstruct_cached_dir): New callback.
8684         (func_import): The cached_local_gnulib_dir renamed to
8685         cached_local_gnulib_path similarly to local_gnulib_dir.
8686         Use new func_reconstruct_cached_local_gnulib_path.
8687         (func_count_relative_local_gnulib_path): New sub-method.
8688         (func_create_testdir): Use func_should_symlink, DRY.
8689         (func_create_megatestdir): Use new functions to work with
8690         local_gnulib_path correctly.
8691         (func_append_local_dir): New helper.
8693 2015-12-08  Pádraig Brady  <P@draigBrady.com>
8695         fix freadptr to work with ungetc on all uClibc configs
8696         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
8697         where GNU coreutils cut(1) generates invalid output on uClibc
8698         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
8699         * lib/freadptr.c (freadptr): Return NULL if there are
8700         ungotten chars.  In this case freadseek() will iterate
8701         again to process the ungotten character.
8703 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8705         xalloc-oversized: improve performance with GCC 5
8706         * lib/xalloc-oversized.h (xalloc_oversized):
8707         Improve performance with GCC 5 by using __builtin_mul_overflow.
8709 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8711         intprops: new public macro EXPR_SIGNED
8712         Emacs can use this macro, so make it public.
8713         * doc/intprops.texi (Arithmetic Type Properties): Rename from
8714         'Integer Type Determination', since some of these macros apply
8715         to non-integer types.  Clarify what kinds of constant expressions
8716         these macros return.  Say when the arguments can be non-integers.
8717         Mention newly published macro EXPR_SIGNED.
8718         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
8719         make it public.  All uses changed.
8721         intprops: fix typo in clang port
8722         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
8723         '__builtin_add_overflow' that is not caught by compiler.
8725 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
8727         test-timespec: fix typo in previous change
8728         * tests/test-timespec.c (main): Fix typo that reduced test quality.
8730         timespec-sub: fix overflow bug; add tests
8731         * lib/timespec-add.c (timespec_add):
8732         * lib/timespec-sub.c (timespec_sub):
8733         Work even if time_t is narrower than int (a theoretical
8734         possibility).  Redo code for a bit more clarity.
8735         * lib/timespec-sub.c (timespec_sub):
8736         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
8737         * modules/timespec-tests, tests/test-timespec.c: New files.
8739         intprops-test: suppress -Woverlength-strings
8740         Problem reported by Pádraig Brady in:
8741         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
8742         It is not worth the hassle to port this test to compilers that
8743         cannot handle long strings in diagnostics.
8744         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
8746 2015-11-03  Pádraig Brady  <P@draigBrady.com>
8748         quotearg: add quotearg_n_style_colon()
8749         This quotes with default options of the specified style,
8750         but with quoting enabled for instances of ':'.
8751         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
8752         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
8754 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8756         intprops: revise _WRAPV macros, revert _OVERFLOW
8757         The incompatible changes to the _OVERFLOW macros were too much of
8758         a hassle in practice, so revert them.  Instead, change the new
8759         _WRAPV macros to make them closer in behavior to GCC 5's new
8760         builtin_add_overflow etc. functions.  No other software was using
8761         these newly-added macros yet, so this should be OK.
8762         * NEWS: Revert previous change, since the incompatible change
8763         has been reverted, and nobody used the incompatible version.
8764         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
8765         Document revised behavior.
8766         (Integer Range Overflow): Adjust example to match above revisions.
8767         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
8768         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
8769         these can be used in integer constant expressions again.
8770         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
8771         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
8772         needed.
8773         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
8774         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
8775         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
8776         Remove, as they did not seem that useful.
8777         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
8778         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
8779         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8780         Support new semantics.
8781         (__has_builtin): New macro, if not alreay defined.
8782         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
8783         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
8784         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
8785         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
8786         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
8787         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
8788         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
8789         New macros.
8790         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
8792 2015-11-03  Jim Meyering  <meyering@fb.com>
8794         intprops: add parentheses for when OP has precedence lower than "-"
8795         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
8796         "a OP b" must be parenthesized for when OP is like "<<", which has
8797         lower precedence than the following "-". Reported by Pádraig Brady.
8799 2015-11-03  Pádraig Brady  <P@draigBrady.com>
8801         quotearg: constify get_quoting_style parameters
8802         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
8803         * lib/quotearg.c (get_quoting_style): Likewise.
8805 2015-11-02  Pádraig Brady  <P@draigBrady.com>
8807         quotearg: add support for $'' shell escaping
8808         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
8809         items and descriptions.
8810         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
8811         above types by quoting like "shell", but using $'...' syntax
8812         for non printable characters, which should provide unambiguous
8813         printable output for any input.
8814         * tests/test-quotearg-simple.c: Update accordingly.
8816 2015-11-02  Pádraig Brady  <P@draigBrady.com>
8818         maint: use a more standard return from mbrtowc test
8819         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
8820         from the test program as this is non standard and often
8821         indicates an unhandled case in the test program.
8822         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
8824 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8826         intprops: add WRAPV and const flavors for GCC 5
8827         If available, use GCC 5's builtin functions for efficient integer
8828         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
8829         and safely compute the low-order bits of the correct answer.
8830         A downside of these efficient functions is that they cannot be
8831         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
8832         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
8833         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
8834         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
8835         Document the changes.
8836         (Wraparound Arithmetic): New section.
8837         (Integer Range Overflow):
8838         Put this subsection last, since it's least useful.
8839         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
8840         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
8841         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
8842         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
8843         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
8844         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
8845         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8846         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
8847         New macros.
8848         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8849         Generate calls to GCC builtins if available, for speed.
8850         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
8851         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
8852         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
8853         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
8854         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
8855         (CHECK_QUOTIENT, CHECK_REMAINDER):
8856         Test WRAPV and CONST flavors (when available) too.
8858 2015-10-30  Pádraig Brady  <P@draigBrady.com>
8860         doc: use extended timezone format in iso-8601 example
8861         * doc/parse-datetime.texi: The standard states that extended format
8862         is to be used consistently throughout.
8863         Note that lib/parse-datetime.y can handle either tz format.
8865 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8867         stdalign: port to Sun C 5.9
8868         * doc/posix-headers/stdalign.texi: Document this.
8869         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
8870         __attribute__ ((__aligned__ (...))).
8872 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8874         time_rz: fix comment about tzalloc
8875         * lib/time_rz.c (tzalloc): Fix comment.
8877 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
8879         stdalign: work around pre-4.9 GCC x86 bug
8880         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
8881         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
8882         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
8884 2015-10-18  Pádraig Brady  <P@draigBrady.com>
8886         maint.mk: sc_tight_scope: remove extraneous expressions
8887         * top/maint.mk (tight_scope): This is not really required since
8888         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
8889         that matches all nm entries.  But it does remove extraneous entries
8890         that may be confusing or cause issue in future maintenance.
8892 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
8894         time_rz: return NULL if localtime_r fails
8895         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
8896         while still attempting to pacify bleeding-edge GCC.
8898         fts: port to C11 alignof
8899         * doc/posix-headers/stdalign.texi (stdalign.h):
8900         Document the C11 restriction.
8901         * lib/fts.c: Include stddef.h, for max_align_t.
8902         (fts_alloc): Align using max_align_t, not FTSENT.
8903         * modules/fts (Depends-on): Add stddef.
8905 2015-10-18  Jim Meyering  <meyering@fb.com>
8907         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
8908         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
8909         would see this:
8911         lib/time_rz.c: In function 'localtime_rz':
8912         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
8913           [-Werror=nonnull]
8914                    if (tm && !save_abbr (tz, tm))
8915                        ^
8917         That was complaining about "tm" because it is a parameter that was
8918         declared with the __nonnull__ attribute.
8919         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
8920         result of localtime_r.
8922 2015-10-17  Jim Meyering  <meyering@fb.com>
8924         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
8925         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
8926         name-extraction regexp mistakenly used \S+, and would mistakenly
8927         extract "*F" from "extern int *F()" rather than the desired "F".
8928         Use \w+ instead.
8930 2015-10-17  Jim Meyering  <meyering@fb.com>
8932         maint.mk: sc_tight_scope: factor and support OS X
8933         * top/maint.mk (_gl_tight_scope): Address three issues:
8934         - factor out four instances of code that wraps a string in "^...$"
8935         - allow nm-reported symbol names to have an optional leading "_"
8936         - add "main" to the list of ignored variable names, because on os x,
8937         "main" has nm-reported type "S" in the variable-checking section.
8939 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
8941         safe-alloc-tests: fix typo in license header
8942         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
8944 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
8946         copy-file: fix mem leak in error case
8947         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
8948         upon error opening or performing I/O to the src and dest files.
8950 2015-10-15  Mike Frysinger  <vapier@chromium.org>
8952         localename: control langinfo.h inclusion
8953         This header is only used to work around buggy behavior in old
8954         versions of glibc, so do not include it all the time.  Otherwise
8955         we get build failures on systems that do not provide langinfo.h.
8956         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
8957         in the source later on.
8958         The patch was originally submitted to gettext as:
8959         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
8961 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8963         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
8964         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
8965         * lib/u64.c, lib/unistd.c:
8966         Append 'typedef int dummy;', to pacify compilers that are picky
8967         about empty translation units.
8969 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
8971         accept4-tests: fix to avoid non portable flags
8972         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
8973         as they are the only documented ones, and passing others may trigger
8974         EINVAL (seen on FreeBSD 10.1-RELEASE).
8975         * doc/glibc-functions/accept4.texi: Mention that we don't provide
8976         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
8978 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
8980         gnulib-tool: fix tests of 'extensions' module
8981         This complements f8fe25fab60e3c687a124 commit.
8982         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
8983         emitting of initial gl_EARLY macros.
8984         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
8985         replaced with func_emit_pre_early_macros call.
8987 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8989         unicase/locale-language: fix typo in utf-8 cookie
8990         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
8991         Problem reported by Zbigniew Jędrzejewski-Szmek.
8993 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8995         xalloc: do not worry about GCC 5 warning on 32 bit
8996         * lib/xalloc.h: Revert previous change.
8997         I found a better way to fix this in coreutils.
8999 2015-10-02  Pádraig Brady  <P@draigBrady.com>
9001         xalloc: avoid GCC 5.1 warning on 32 bit
9002         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
9003         xalloc_oversized(), which was seen to give this warning
9004         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
9005         when simplifying conditional".
9007 2015-10-02  Daiki Ueno  <ueno@gnu.org>
9009         uniname/uniname-tests: avoid compiler warnings
9010         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
9011         unused local variables.
9012         (test_alias_lookup): Fix alias name display in failure cases.
9014 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9016         c-ctype: do not worry about EBCDIC + char signed
9017         Drop support for EBCDIC with char being signed, as this breaks too
9018         many programs.  Problem reported by Ben Pfaff in:
9019         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
9020         * lib/c-ctype.h: Verify that we are not using EBCDIC with
9021         char being signed.
9022         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
9023         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
9024         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
9025         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
9026         * tests/test-c-ctype.c (test_all):
9027         Simplify by assuming standard char values cannot be negative.
9028         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
9030 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9032         c-ctype: port better to z/OS EBCDIC
9033         Problems reported by Daniel Richard G. in:
9034         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
9035         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
9036         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
9037         (_C_CTYPE_OTHER_CNTRL): New macro.
9038         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
9039         from SCHAR_MIN, as the functions are defined only from values
9040         promoted from char or from unsigned char, not necessarily from
9041         signed char.
9043 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
9045         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
9047         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
9048         and ARFLAGS variables.  Doing this unconditionally could break
9049         later Automake's AM_PROG_AR invocation (at least it's
9050         AC_CHECK_TOOLS call to detect correct 'ar' binary).
9052         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
9053         Amsterdam Compiler Kit, so make the previous code to have effects
9054         only on ACK, and rather automatically call the Automake's
9055         AM_PROG_AR as soon as possible to decide other cases.
9057         References:
9058         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
9060         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
9061         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
9062         is possible, keep setting AR/ARFLAGS to reasonable defaults.
9063         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
9064         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
9065         'extensions' module is used.
9066         * modules/extensions (configure.ac-early): Remove as this snippet
9067         is added to gnulib-comp.m4 earlier anyway.
9069 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9071         sockets: MS Windows initalization fixes
9072         Problem reported by Test User in:
9073         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
9074         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
9075         Correct the endianness.
9076         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
9077         number mismatch, not just on <.  Cleanup before any such failure.
9079 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
9081         gc: fix detection of installed libgcrypt version
9082         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
9083         at least as recent as 1.4.4.  The previously used macro is not
9084         available now, since modules were removed in version 1.6.0.
9086 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
9088         c-ctype: rewrite to use inline functions
9089         This simplifies maintenance, since it makes for just one
9090         implementation of each function, letting the compiler have the fun
9091         of optimization.  In practice this works well nowadays with GCC.
9092         E.g., c_isascii might need only three instructions even though the
9093         source code lists every ASCII character individually in a large
9094         switch statement.
9095         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
9096         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
9097         * NEWS: Document the API change.
9098         * lib/c-ctype.c: Drastically simplify, since this now just expands
9099         inline functions.
9100         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
9101         (C_CTYPE_INLINE): New macro.
9102         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
9103         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
9104         Verify that either ASCII or EBCDIC is being used.
9105         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
9106         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
9107         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
9108         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
9109         New private macros.
9110         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
9111         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
9112         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
9113         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
9114         (c_tolower, c_toupper): When converting, return the unsigned char,
9115         as that is what z/OS does.
9116         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
9117         of some c-ctype.h macros.
9118         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
9119         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
9120         c_tolower promotion to be compatible with z/OS.
9122 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
9124         gitlog-to-changelog: trim only trailing whitespaces
9125         This is fix for --format regression introduced by commit
9126         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
9127         doubled %n string) had no effect anymore.  This format
9128         specification has been used e.g. by GNU paxuitils (commit
9129         edfd8bcc3).
9131         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
9132         newlines in commmit messages.
9134 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9136         Test that c_iscntrl agrees with iscntrl, etc.
9137         Suggested by Daniel Richard G. in:
9138         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
9139         * modules/c-ctype-tests (Depends-on): Add ctype.
9140         * tests/test-c-ctype.c: Include <ctype.h>.
9141         (NCHARS): New constant.
9142         (test_agree_with_C_locale): New function.
9143         (main): Use it.
9144         (test_all): Use named constants.
9146         c-ctype: improve c_isascii testing
9147         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
9148         Add a test to count the number of ASCII characters.
9150 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9152         savewd: remove SAVEWD_CHDIR_READABLE
9153         It was problematic in the light of file systems that ignore umask.
9154         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
9155         * NEWS: Document this.
9156         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
9157         successful, -1 (setting errno) on failure, rather than something
9158         more complicated than that.
9159         * lib/mkdir-p.c (make_dir_parents):
9160         Do not use SAVEWD_CHDIR_READABLE.
9161         * lib/savewd.c (savewd_chdir):
9162         Remove support for SAVEWD_CHDIR_READABLE.
9163         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
9165         c-ctype: port better to EBCDIC
9166         Problems reported by Daniel Richard G. in
9167         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
9168         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
9169         Include "verify.h".
9170         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
9171         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
9172         Define as enum constants with value false, if not defined, so that
9173         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
9174         code more portable, as both branches of the 'if' are compiled on
9175         all platforms.
9176         (C_CTYPE_EBCDIC): New constant.
9177         Verify that the character set is either ASCII or EBCDIC.
9178         (to_char): New static function.
9179         (c_isascii, c_iscntrl):
9180         Assume standard control-character assignments for EBCDIC.
9181         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
9182         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
9183         Rewrite to use 'if' instead of 'ifdef'.
9184         Use to_char if non-ASCII.  Prefer <= to >=.
9185         Prefer true and false to 1 and 0, for booleans.
9186         (c_iscntrl): Use 'if', not 'ifdef'.
9187         * modules/c-ctype (Depends-on): Add verify.
9188         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
9189         (to_char): New function.
9190         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
9192 2015-09-21  Pádraig Brady  <P@draigBrady.com>
9194         nanosleep: fix return code for interrupted replacement
9195         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
9196         that we return -1 in the case the call is interrupted by a signal,
9197         rather than the current value of 1.
9198         Diagnosed and tested by Daniel Richard G.
9200 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
9202         Diagnose ERE '()|\1'
9203         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
9204         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
9205         track of the set of previously-completed subexpressions available
9206         before the first alternative, and restore this set just before
9207         parsing each subsequent alternative.  This lets us diagnose the
9208         invalid back-reference in the ERE '()|\1'.
9210         regex: merge patches from libc
9212         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
9213         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
9214         * lib/regex_internal.h:
9215         Include <libc-lock.h> instead of <bits/libc-lock.h>.
9217         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
9218         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
9219         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
9220         wcscoll.
9221         * lib/regexec.c (check_node_accept_bytes): Likewise.
9223         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9224         Fix regex wcrtomb namespace (bug 18496).
9225         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
9226         instead of wcrtomb.
9228         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9229         Fix regex wctype namespace (bug 18495).
9230         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
9231         instead of towlower.
9232         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
9233         instead of iswlower.  Call __towupper instead of towupper.
9234         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
9235         instead of iswalnum.
9237         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
9238         * lib/regcomp.c (parse_bracket_exp): Initialize type to
9239         COLL_SYM in a couple of places to avoid uninitialized variable
9240         wanings on tilegx gcc 4.8.2.
9242         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9243         * lib/regex_internal.h: Remove NOT_IN_libc.
9245         2014-11-17  Andreas Schwab  <schwab@suse.de>
9246         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
9248         2014-09-11  Roland McGrath  <roland@hack.frob.com>
9249         Move findidx nested functions to top-level.
9250         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
9251         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
9252         Pass new arguments to findidx.
9253         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
9254         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
9255         Don't #include it inside the function.  Pass new arguments to findidx.
9256         * lib/regex_internal.h:
9257         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
9258         (re_string_elem_size_at): Don't #include it inside the function.
9259         Pass new arguments to findidx.
9261         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9262         Check if DEBUG is defined in regex_internal.c
9263         * lib/regex_internal.c: Check if DEBUG is defined and is set.
9265 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
9267         ceill: detect buggy OpenBSD implementation
9268         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
9269         which returns zero for small values.  Discussed here:
9270         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
9272 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
9274         mountlist: add me_mntroot field on Linux machines
9275         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
9276         mount_entry so Linux machines based on /proc/self/mountinfo can
9277         distinguish between bind mounts and original mounts.  In reality bind
9278         mounts aren't treated differently than mountroot=/ mounts by the
9279         kernel, but the user often wants these bind mounts distinguished.
9280         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
9281         More details at https://pad.lv/1432871
9283 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
9285         doc: Describe to use multiple instances of gnulib
9286         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
9287         instances of gnulib with different modules can be used, for example one
9288         for a lib and another one for associated tools.
9290 2015-09-01  Pádraig Brady  <P@draigBrady.com>
9292         base32: mark function as __attribute__ const
9293         * lib/base32.h (isbase32): Mark __attribute__ const as
9294         suggested by GCC, and consistent with the base64 module.
9296 2015-08-20  Daiki Ueno  <ueno@gnu.org>
9298         gnulib-tool: don't transform binary files with sed
9299         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
9300         .mo and .class files.
9301         Reported by Denis Denisov.
9303 2015-08-10  Daiki Ueno  <ueno@gnu.org>
9305         gperf: respect silent rules
9306         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
9307         V_GPERF_0 for silent rules.
9308         * modules/iconv_open (Makefile.am): Use V_GPERF.
9309         * modules/unicase/locale-language (Makefile.am): Likewise.
9310         * modules/unicase/special-casing (Makefile.am): Likewise.
9311         * modules/unictype/category-byname (Makefile.am): Likewise.
9312         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
9313         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
9314         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
9315         * modules/unictype/property-byname (Makefile.am): Likewise.
9316         * modules/unictype/scripts (Makefile.am): Likewise.
9317         * modules/uninorm/composition (Makefile.am): Likewise.
9319 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
9321         Improve port of stdalign to C++11
9322         Problem reported by Sundaram in:
9323         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
9324         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
9325         (__alignas_is_defined): Define if C++11 or newer.
9327 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
9329         pmccabe2html: fix gawk regex escaping
9330         * build-aux/pmccabe2html: Add one more backslash to properly
9331         escape the gsub replacement value.  Fixes this error:
9332         gawk: ./build-aux/pmccabe2html:425: \
9333         warning: escape sequence `\&' treated as plain `&'
9335 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9337         time_rz: port to pedantic memcpy
9338         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
9339         that reject memcpy (..., NULL, 0).
9341 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9343         time_rz: port better to MinGW
9344         Don't change tzname, as this makes MinGW dump core (Bug#21020).
9345         Instead, store the tzname copy in the struct tm_zone object.
9346         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
9347         * lib/strftime.c [!_LIBC]:
9348         * lib/time_rz.c: Include time-internal.h.
9349         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
9350         name from *TZ rather than from TZNAME, doable because *TZ now has
9351         a tzname_copy member.
9352         * lib/time-internal.h: New file, with contents taken from
9353         lib/time_rz.c.  It's separate because strftime.c now accesses
9354         struct tm_zone members.
9355         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9356         New member tzname_copy.
9357         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
9358         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9359         Initialize tzname_copy member.
9360         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
9361         in tzname_copy member.
9362         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
9363         (restore_tzname): Remove; no longer needed.  All calls removed.
9364         * modules/time_rz (Files): Add lib/time-internal.h.
9366         time: port __need_time_t to MinGW
9367         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
9368         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
9370 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9372         strftime: fix newly-introduced bug on Solaris
9373         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
9374         consistently at the start, rather than doing some of the setup at
9375         the start and some in the %Z format spec.  This is cleaner, and
9376         works better with time_rz on platforms like Solaris where struct
9377         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
9378         mktime_z and localtime_rz can mess up the tzname cache.
9380         test-strftime: test for Solaris bug
9381         * modules/strftime-tests (Depends-on): Add strerror.
9382         * tests/test-strftime.c: Include <errno.h>.
9383         (posixtm_test): New function, containing the old 'main'.
9384         (struct tzalloc_test, struct localtime_rz_test): New types.
9385         (TZ, LT): New static vars.
9386         (tzalloc_test): New function.
9387         (main): Rewrite in terms of posixtm_test and tzalloc_test.
9389         time_rz: port to Solaris etc.
9390         Works around a tzname problem on platforms like Solaris that have
9391         tzname but not tm_zone, by setting tzname at the appropriate time
9392         and restoring it later.
9393         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
9394         New static vars.
9395         (save_abbr) [HAVE_TZNAME]: Set them.
9396         (revert_tz) [HAVE_TZNAME]: Clear or use them.
9397         (restore_tzname): New function.
9398         (localtime_rz, mktime_z): Use it.
9400         time_rz: now LGPL
9401         * modules/time_rz (License): Now LGPL, because strftime depends on it.
9403         time_rz: make a constant 'const'
9404         * lib/time_rz.c (local_tz): Now const.
9406         time_rz: fix off-by-one typo
9407         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
9409 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9411         fprintftime, strftime: use timezone_t args
9412         * NEWS: Document the change.
9413         * lib/fprintftime.h (fprintftime):
9414         * lib/strftime.c (extra_args) [my_strftime]:
9415         * lib/strftime.h (nstrftime):
9416         Time zone arg is now of type timezone_t, not int.
9417         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
9418         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
9419         (my_strftime) [emacs && !my_strftime]:
9420         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
9421         Remove; Emacs doesn't need this any more.
9422         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
9423         fprintftime and nstrftime to call tzset.
9424         (ut) [!my_strftime]: Remove, replacing with ...
9425         (tz) [!my_stftime]: ... this new macro.  All uses changed.
9426         (strftime_case_): Use localtime_rz and mktime_z instead
9427         of localtime_r and mktime.
9428         * modules/fprintftime (Depends-on): Add time_rz.
9429         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
9430         * tests/test-strftime.c (main): Adjust to new nstrftime API.
9432         time_rz: new module
9433         * MODULES.html.sh: Add time_rz.
9434         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
9435         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
9436         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
9437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
9438         New var HAVE_TIMEZONE_T (default 0).
9439         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
9440         New var GNULIB_TIME_RZ (default 0).
9441         * modules/time (time.h): Substitute the new vars.
9443         flexmember: license is now unlimited
9444         * modules/flexmember (License): Change to unlimited,
9445         since its only source file gives an unlimited license.
9447 2015-07-15  Eric Blake  <eblake@redhat.com>
9449         maint: update copyright paper procedures
9450         * config/srclist.txt: Drop outdated files.
9451         * doc/Copyright/conditions.txt: Update to latest.
9452         * doc/Copyright/assign.changes.manual: Delete.
9453         * doc/Copyright/assign.future.manual: Likewise.
9454         * doc/Copyright/assign.manual: Likewise.
9455         * doc/Copyright/assign.translation.manual: Likewise.
9456         * doc/Copyright/disclaim.changes.manual: Likewise.
9457         * doc/Copyright/disclaim.manual: Likewise.
9458         * doc/Copyright/disclaim.program: Likewise.
9460 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9462         localename: fix link error on Illumos
9463         Illumos defines __sun, but does not have getlocalename_l nor the
9464         equivalent.  This partially reverts commit 387c214.
9465         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
9466         available, as well as uselocale.
9467         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
9468         use getlocalename_l if it is not available.
9470 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9472         unistr/uN-strtok-tests: avoid a trivial leak
9473         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
9474         input and delim after the multibyte delimiter tests.
9476 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
9478         file-has-acl, acl-permissions: fix HP-UX typos
9479         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
9480         * lib/file-has-acl.c (file_has_acl):
9481         * lib/set-permissions.c (context_acl_from_mode)
9482         (context_aclv_from_mode, set_acls):
9483         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
9484         They were introduced by the recent ACL changes.
9486         regex: match current GNU grep behavior
9487         These symbols have not matched GNU grep behavior for quite some time.
9488         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
9489         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
9490         Change to match current GNU behavior.
9491         Simplify by expressing it as differences from POSIX BREs and EREs.
9492         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
9494 2015-07-03  Jim Meyering  <meyering@fb.com>
9496         set-permissions.c: adjust acl_from_mode's cpp guard
9497         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
9498         directives identical to those guarding the sole use.
9499         Otherwise, on some systems, we'd get a warning about
9500         the function being defined but not used.
9501         Also, filter through cppi to correct misleading indentation
9502         of cpp directives.
9504 2015-07-03  Pádraig Brady  <P@draigBrady.com>
9506         tests: restrict shells to those that support 'local'
9507         The local keyword is very widely supported and used
9508         in tests in coreutils and grep at least.  Therefore
9509         restrict to testing with shells that support it.
9510         This mainly excludes /bin/sh on Solaris.
9511         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
9513 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
9514         and Daiki Ueno  <ueno@gnu.org>
9516         unistr/uN-strtok: handle multibyte delimiters
9517         Previously, uN_strtok moved PTR to the next unit to the token end.
9518         When DELIM contained a multibyte character, the new position could
9519         be a middle of a multibyte character.
9520         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
9521         after the token.
9522         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
9523         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
9524         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
9525         * modules/unistr/u8-strtok (Depends-on): Depend on
9526         unistr/u8-strmblen.
9527         * modules/unistr/u16-strtok (Depends-on): Depend on
9528         unistr/u16-strmblen.
9529         * modules/unistr/u32-strtok (Depends-on): Depend on
9530         unistr/u32-strmblen.
9531         * tests/unistr/test-u-strtok.h: New file.
9532         * tests/unistr/test-u8-strtok.c: New file.
9533         * tests/unistr/test-u16-strtok.c: New file.
9534         * tests/unistr/test-u32-strtok.c: New file.
9535         * modules/unistr/u8-strtok-tests: New file.
9536         * modules/unistr/u32-strtok-tests: New file.
9537         * modules/unistr/u16-strtok-tests: New file.
9539 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
9541         update-copyright: fix test failure with perl >= 5.22 (trivial)
9542         * build-aux/update-copyright: Escape a literal left curly bracket,
9543         required with perl >= 5.22
9545 2015-07-02  Daiki Ueno  <ueno@gnu.org>
9547         u{16,32}-strstr-tests: relax timeout condition
9548         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
9549         tests can take longer than 5 seconds to complete.
9550         Reported by Dagobert Michelsen in:
9551         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
9552         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
9553         seconds to 10 seconds.
9554         * tests/unistr/test-u32-strstr.c (main): Likewise.
9556 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
9558         gnulib-common.m4: change the ARFLAGS default to 'cr'
9559         In some GNU/Linux distributions people started to compile 'ar'
9560         binary with --enable-deterministic-archives (binutils project).
9561         That, however, in combination with previous autotools long time
9562         working default AR{_,}FLAGS=cru causes warnings on such
9563         installations:
9564         ar: `u' modifier ignored since `D' is the default (see `U')
9565         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
9566         set already.
9568 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
9570         selinux-h: avoid double free after *getfilecon()
9571         Originally reported by Ben Shelton on bug-tar:
9572         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
9573         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
9574         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
9575         param should be freed by freecon(3) (regardless the return value).
9577 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
9579         fix pty related tests issues on Windows (trivial)
9580         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
9581         however it's still present in tests/ subdirectory of the final project.
9582         Therefore avoid it to pass `make check`.
9583         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
9584         will just return -ENOSYS, so avoid this non applicable test allowing
9585         the build to proceed.
9587 2015-07-01  Pádraig Brady  <P@draigBrady.com>
9589         acl: fix definition of acl_from_mode on FreeBSD
9590         This was causing basic coreutils copy operations to fail
9591         with ENOTSUP or ENOENT error messages.
9592         * lib/acl-internal.h (acl_from_mode): Only define when
9593         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
9594         of acl_from_mode() defined in lib/set-permissions.c to
9595         be used on FreeBSD at least.
9596         * lib/set-permissions.c: Fix up comment spelling,
9597         and a redundant variable assignment; noticed in passing.
9599 2015-06-30  Pádraig Brady  <P@draigBrady.com>
9601         readutmp: port to FreeBSD >= 9
9602         * lib/readutmp.h: Map utmpxname() to setutxdb().
9603         With that coreutils who(1) and pinky(1) tests pass.
9605 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9607         mgetgroups: port to strict OS X
9608         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
9609         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
9610         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
9611         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
9613 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
9615         mgetgroups: port to strict OS X
9616         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
9617         Document the getgrouplist problem.
9618         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
9619         New macro.
9620         (mgetgroups): Use it.
9621         * m4/mgetgroups.m4 (gl_MGETGROUPS):
9622         Check for OS X signature for getgrouplist.
9624 2015-06-29  Jim Meyering  <meyering@fb.com>
9626         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
9627         It started like this when building coreutils' latest on OS X,
9628         invoking ./configure with a nonempty --cache=.cache:
9630           lib/linkat.c:46:42: error: operator '||' has no right operand
9631           lib/linkat.c: In function 'rpl_linkat':
9632           lib/linkat.c:330:27: error: #if with no expression
9634         Here's linkat.c's line 46:
9636           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
9638         Here's some context:
9640           $ grep linkat_nofoll .cache
9641           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
9642           $ grep LINKAT_SYM lib/config.h
9643           #define LINKAT_SYMLINK_NOTSUP
9645         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
9646         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
9647         but that violates a tenet of AC_CACHE_CHECK: it must
9648         have no side effect other than setting its cache variable.
9650         What happens is that when the cache is set, we'd skip the
9651         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
9652         defined to whatever value it happened to have in configure's
9653         environment.  In my case, it was not defined, so this later code:
9655           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
9656             [Define to 1 if linkat can create hardlinks to symlinks])
9658         would emit code with an empty RHS.
9660         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
9661         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
9663 2015-06-28  Jim Meyering  <meyering@fb.com>
9665         mountlist: avoid an unused-label warning on OS X
9666         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
9667         Building on OS X, I saw a warning about the "free_then_fail" label
9668         being unused.  Give it the _GL_UNUSED_LABEL attribute.
9670         error.c: correct printf-style format: %d -> %u
9671         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
9672         rather than %d, to match the type of "line_number", unsigned int.
9674 2015-06-25  Pádraig Brady  <P@draigBrady.com>
9676         fts: avoid reading beyond the heap allocation
9677         GCC 5.1.1 with -O2 and -fsanitize=address reports
9678         a read of size 4 from a heap object of size 3 is indeed invalid,
9679         though this may be due to incorrect padding assumptions by GCC, see:
9680         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
9681         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
9682         * modules/fts: Depend on stdalign.
9684 2015-06-24  Pádraig Brady  <P@draigBrady.com>
9686         savedir: avoid undefined behavior in qsort call
9687         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
9688         "runtime error: null pointer passed as argument 1,
9689          which is declared to never be null"
9690         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
9692 2015-06-24  Pádraig Brady  <P@draigBrady.com>
9694         userspec: avoid undefined behavior in gettext call
9695         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
9696         "runtime error: null pointer passed as argument 2,
9697          which is declared to never be null"
9698         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
9700 2015-06-20  Glenn Morris  <rgm@gnu.org>
9702         gitlog-to-changelog: improve gitmerge.el commits
9703         Let the Emacs ChangeLog generation process exclude "skipped"
9704         messages from merge commits (Bug#20717).
9705         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
9707 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9709         wchar: fix MinGW compilation warnings
9710         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
9711         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
9712         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
9714 2015-06-20  Daiki Ueno  <ueno@gnu.org>
9716         uniname/uniname-tests: use pristine data files
9717         For copyright and maintenance reasons, use the data files from UCD
9718         without modification.
9719         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
9720         (getfield): Remove.
9721         (aliases_count): New global variable.
9722         (fill_names): Skip comments and empty lines in the input.  Don't
9723         use getfield.
9724         (fill_aliases): Likewise.
9725         (main): Change the expected command line arguments to:
9726         NAMES... ["--" ALIASES...].
9727         * tests/uniname/test-uninames.sh: Adjust to the change in
9728         test-uninames.c.
9729         * tests/uniname/UnicodeDataNames.txt: Remove.
9730         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
9731         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
9732         file from Unicode 8.0.0.
9734 2015-06-19  Pádraig Brady  <P@draigBrady.com>
9736         linked-list, linkedhash-list: avoid compiler warnings
9737         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
9738         -Werror=suggest-attribute=pure (from GCC 5.1.1).
9740 2015-06-19  Daiki Ueno  <ueno@gnu.org>
9742         libunistring: bump minimum version to 0.9.6
9743         * all modules depending on updated Unicode data: Regenerate.
9744         The modules are listed by a script that does:
9745         - for each file listed by: git show --oneline --name-only 705f4efc
9746           - deduce the containing modules, based on "Files:"
9747         - deduce the modules which depend on the containing modules, based
9748           on "Depends-on:"
9750 2015-06-18  Daiki Ueno  <ueno@gnu.org>
9752         uniname/uniname: update to Unicode 8.0.0
9753         * lib/uniname/uninames.h: Regenerate.
9754         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
9755         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
9757 2015-06-18  Daiki Ueno  <ueno@gnu.org>
9759         libunistring: update to Unicode 8.0.0
9760         * lib/gen-uni-tables.c (SIZEOF): New macro.
9761         (output_numeric): Increase the maximum number of fractions from
9762         128 to 160.  Increase the level3 value width from 7 bits to 8
9763         bits.  Use SIZEOF instead of a hard-coded integer.
9764         (output_blocks): Decrease the cut-off threshold from 0x30000 to
9765         0x28000.
9766         (fill_blocks): Increase the maximum number of blocks from 256 to
9767         384.  Use SIZEOF instead of a hard-coded integer.
9768         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
9769         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
9770         value width.
9771         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
9772         a new case added to LBP22.
9773         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
9774         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
9775         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
9776         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
9777         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
9778         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9779         lib/uniwidth/width.c.
9780         * all generated files under lib/uni* and tests/uni*: Regenerate.
9782 2015-06-16  Pádraig Brady  <P@draigBrady.com>
9784         gnu-web-doc-update: add --mirror to remove stale files
9785         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
9786         out of date files from the CVS server.  Since this is usually
9787         appropriate, a prompt is given when the option is not specified,
9788         along with the `cvs remove` command that would be run.
9790 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9792         acl-permissions: pacify -Wsuggest-attribute=const
9793         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
9794         * lib/acl-internal.h (free_permission_context):
9795         Declare with attribute const if ! (defined USE_ACL &&
9796         (HAVE_ACL_GET_FILE || defined GETACL)).
9798         fsync: document AIX misbehavior
9799         * doc/posix-functions/fsync.texi (fsync):
9800         Document failure on AIX with read-only file descriptor.
9802 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
9804         stdio: Don't redefine gets when using C++
9805         * lib/stdio.in.h (gets): Disable warning on C++.
9807 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
9809         acl-permissions: port to AIX, C89 HP-UX
9810         Problems reported by Michael Felt.
9811         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
9812         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
9813         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
9814         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
9815         Add cast for AIX, whose system calls are declared to accept
9816         char * even though the arguments are really char const *.
9817         * lib/get-permissions.c (get_permissions):
9818         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
9819         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
9820         that broke a build.
9821         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
9822         Rework types to pacify xlc.
9824 2015-06-03  Pádraig Brady  <P@draigBrady.com>
9826         vasprintf-posix: avoid compiling vasnprintf where possible
9827         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
9828         module where not required.  For example on a GNU/Linux system
9829         when gnulib-tool is run with the --conditional-dependencies option.
9831 2015-06-02  Pádraig Brady  <P@draigBrady.com>
9833         file-has-acl: fix build on Mac OS X 10
9834         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
9835         which has an incompatible 6 parameter getxattr() call.
9836         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
9837         call on Mac OS X >= 10.4.
9838         * doc/glibc-functions/fgetxattr.texi: Likewise.
9839         * lib/file-has-acl.c: Revert to more complete combined check.
9840         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
9841         Reported by Jack Howarth.
9843 2015-06-02  Pádraig Brady  <P@draigBrady.com>
9845         prefix-gnulib-mk: remove no longer needed special case
9846         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
9847         continued lib_SOURCES lines are no longer present,
9848         so special case handling of such entries is not required.
9850 2015-06-01  Pádraig Brady  <P@draigBrady.com>
9852         acl: don't depend on the deprecated qacl module
9853         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
9855 2015-06-01  Pádraig Brady  <P@draigBrady.com>
9857         gnulib-tool: concatenate lib_SOURCES to a single line
9858         * gnulib-tool: Refactor the line merging sed logic,
9859         and use that to output a single lib_SOURCES line for each module.
9860         gnulib using projects often postprocess this output to prepend
9861         subdir paths to each item, and having a single line simplifies this
9862         processing allowing better decoupling from the gnulib-tool output.
9864 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
9866         pthread_sigmask: discount system version if a simple macro (trivial)
9867         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
9868         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
9869         function to ensure it's available.
9871 2015-05-31  Pádraig Brady  <P@draigBrady.com>
9873         readlinkat: avoid OS X 10.10 trailing slash bug
9874         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
9875         has this bug.
9876         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
9877         that OS X 10.10 has this function.
9878         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
9879         as done for readlink().
9880         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
9881         trailing slash bug, and assume readlinkat() has the same issue.
9882         Also fix a typo where $gl_cv_decl_readlink_works was tested,
9883         rather than the correct $gl_cv_decl_readlinkat_works.
9885 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
9887         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
9888         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
9889         module rewrite.
9891         acl-permissions: Fix build on Solaris and Cygwin
9892         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
9893         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
9894         ace_entries variables have moved into struct permission_context but
9895         they were still accessed as local variables here.
9897 2015-05-29  Pádraig Brady  <P@draigBrady.com>
9899         linkat: avoid OS X 10.10 trailing slash with symlink bug
9900         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
9901         causes the symlink to be dereferenced, and if it points
9902         to a non existent file, that file will be created as
9903         a hard link to "path1".
9904         This fixes a test failure in test-linkat.c.
9905         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
9906         this case.  The existing workaround in linkat.c for
9907         trailing slash issues, suffices for this case.
9908         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
9909         the list of platforms with trailing slash issues.
9911 2015-05-28  Pádraig Brady  <P@draigBrady.com>
9913         unlinkat: handle ignoring of ".." on Darwin 14
9914         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
9915         on Mac OS X 10.10, where it ignores paths with a trailing "..",
9916         so handle in the same manner.
9917         * m4/unlinkat.m4: Comment on this Darwin issue.
9918         * doc/posix-functions/unlink.texi: Update the latest version
9919         where the issue was seen.
9920         * doc/posix-functions/unlinkat.texi: Mention this issue.
9921         Fixes a test failure in test-unlinkat.c.
9923 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
9925         qacl: split into qcopy-acl and qset-acl
9926         Emacs needs the former, but not the latter.
9927         * modules/acl-permissions: New file, containing most of the old qacl.
9928         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
9929         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
9930         * modules/qcopy-acl, modules/qset-acl: New files.
9931         * MODULES.html.sh (File system functions):
9932         Mention the new modules, and mention qacl while we're at it.
9934 2015-05-27  Glenn Morris  <rgm@gnu.org>
9936         gitlog-to-changelog: new option --ignore-line
9937         (This patch is imported from the GNU Emacs master.)
9938         This option ignores individual commit lines matching a pattern.
9939         * build-aux/gitlog-to-changelog: Add --ignore-line option.
9941 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
9943         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
9944         Implement get_permissions and set_permissions primitives for getting all
9945         the permissions of a file, storing them, and later setting them. (In the
9946         minimal case, the permissions consist only of a file mode.) Reimplement
9947         qset_acl and qcopy_acl based on these new primitives: this avoids code
9948         duplication and makes error handling more consistent.
9949         The Solaris and Cygwin code still uses duplicate code paths for setting
9950         a file mode while making sure that no acls exist and setting an explicit
9951         acl; this is no worse than before, but could be cleaned up.  The AIX
9952         code still doesn't read ACLs, it only makes sure that acls don't get in
9953         the way when setting a file mode.
9954         * lib/acl-internal.h (struct permission_context): New data structure.
9955         (get_permissions, set_permissions, free_permission_context): Declare.
9956         * lib/acl-internal.c (free_permission_context): New helper function.
9957         * lib/get-permissions.c (get_permissions): New helper function split off
9958         from qcopy_acl.
9959         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
9960         AIX, set a file's permissions based only on a file mode.
9961         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
9962         other platforms construct a temporary acl from the file mode and set
9963         that acl in the same way as setting an acl read from the source file.
9964         This should help avoid code duplication and inconsistent / buggy
9965         behavior.
9966         (set_acls): New helper function Split off from qcopy_acl.
9967         (chmod_or_fchmod): Moved here from qset-acl.c.
9968         (set_permissions): New helper function.
9969         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
9970         set_permissions.
9971         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
9972         * modules/qacl: Add get-permissions.c and set-permissions.c.
9974         file-has-acl: Split feature tests again (Bug#20667)
9975         * lib/file-has-acl.c: Instead of testing for
9976         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
9977         define them when needed.
9978         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
9979         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
9981 2015-05-27  Pádraig Brady  <P@draigBrady.com>
9983         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
9984         This avoids a conflict with "FORTIFY_SOURCE" variants
9985         of the string functions when they're replaced on NetBSD-6.0.1
9986         and Darwin-14.3.0 at least.
9987         * lib/string.in.h: Avoid including our "lib/string.h" while
9988         including the system <string.h>.
9990 2015-05-26  Eric Blake  <eblake@redhat.com>
9992         stdio: limit __gnu_printf__ witness to gcc 4.4+
9993         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
9994         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
9996         error: use correct printf attributes on mingw
9997         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
9999         inttypes: force correct mingw PRIdMAX even without <stdio.h>
10000         * modules/inttypes (Depends-on): Require extensions, so that mingw
10001         always uses GNU style inttypes.
10002         * lib/inttypes.in.h: On mingw, include <stdio.h>.
10004         stdio: fix probe on mingw under gcc 5.1
10005         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
10006         around new gcc preprocessor rules.
10008 2015-05-07  Glenn Morris  <rgm@gnu.org>
10010         gitlog-to-changelog: parse "Tiny-change"
10011         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
10012         "Copyright-paperwork-exempt".  (Bug#20324)
10014 2015-05-06  Pádraig Brady  <P@draigBrady.com>
10016         doc: document glibc posix_fallocate() issues
10017         * doc/posix-functions/posix_fallocate.texi: Mention the
10018         glibc efficiency problems and issues with NFS.
10020 2015-05-05  Karl Berry  <karl@freefriends.org>
10022         * build-aux/gendocs.sh (usage): document new css default
10023         for HTML (--htmlarg).
10025 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
10027         extern-inline: no need for workaround in GCC 5.1
10028         * doc/extern-inline.texi (extern inline):
10029         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
10030         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
10031         around these bugs in GCC 5.1 and later.  Maybe in a decade or
10032         two we can remove these workarounds.
10034 2015-04-28  Pádraig Brady  <P@draigBrady.com>
10036         eealloc, pagealign_alloc, xalloc: avoid clang warnings
10037         Avoid [-Wunknown-attributes] warnings like:
10038         warning: unknown attribute '__alloc_size__' ignored
10039         * lib/xalloc.h: Don't use the __alloc_size__  attribute
10040         with clang, as support has been fully removed as of clang 3.5:
10041         https://github.com/llvm-mirror/clang/commit/c047507a
10042         * lib/eealloc.h: Likewise.
10043         * lib/pagealign_alloc.h: Likewise.
10045 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10047         tests: pacify GCC 5.1's stricter printf checking
10048         * tests/test-dirname.c (main):
10049         * tests/test-getaddrinfo.c (simple):
10050         * tests/test-getlogin.c (main):
10051         * tests/test-getndelim2.c (main):
10052         * tests/test-inttostr.c (CK):
10053         * tests/test-md5.c (main):
10054         * tests/test-read-file.c (main):
10055         * tests/test-sha1.c (main):
10056         Fix mismatches between printf format and value signedness.
10057         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
10058         Remove, as CAST_VAL always returned a value of type uintmax_t.
10060         fts: port to GCC 5.1 with --enable-gcc-warnings
10061         Without this fix, GCC 5.1 (correctly) warns about a subscript
10062         error on the fts_name component of FTSENT.  It's actually a
10063         flexible member, so define it that way on C99 or later hosts.
10064         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
10065         structure that now has a flexible array member.
10066         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
10067         (FTSENT): fts_name is now flexible on C99-or-later platforms.
10068         * modules/fts (Depends-on): Add flexmember.
10070 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10072         file-has-acl: port to CentOS 6
10073         Problem reported by Tom G. Christensen in:
10074         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
10075         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
10076         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
10077         HAVE_GETXATTR.
10078         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
10079         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
10080         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
10081         file-has-acl.c actually needs.
10083 2015-04-26  Pádraig Brady  <P@draigBrady.com>
10085         file-has-acl: always return false when ACLs aren't supported
10086         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
10087         change the GNU/Linux getxattr path, to transform "not supported"
10088         errors to a false return rather than an error.  This is handled
10089         within file_has_acl() due to the platform specific tests to
10090         determine if ACLs are not supported.
10092 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10094         gettext: propagate po/Makefile.in.in too
10095         * build-aux/po/Makefile.in.in: Copy from latest gettext.
10096         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
10097         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
10098         between Makefile.in.in and the gettext-runtime m4 files.
10100 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10102         file-has-acl: new module, split from acl
10103         And add a new module file-has-acl-tests to match.
10104         I ran into a problem with the recent changes to the acl module,
10105         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
10106         When using the fixed version with Emacs, I discovered that
10107         file-has-acl wasn't separated out well enough for Emacs (e.g., it
10108         had multiple libraries, but needed only one), so I fixed that too.
10109         * NEWS: Document this incompatible change.
10110         * modules/file-has-acl, modules/file-has-acl-tests: New files.
10111         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
10112         Initialize gl_need_lib_has_acl.
10113         (gl_FUNC_ACL): Require it.
10114         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
10115         Move the file-has-acl.c-relevant stuff to ...
10116         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
10117         use_xattrs = 0' typo, and omit some needless work.  Set
10118         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
10119         when gl_FUNC_ACL is called.
10120         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
10121         (Link): Remove $(LIB_HAS_ACL).
10122         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
10123         (check_PROGRAMS): Move stuff relevant to file-has-acl to
10124         modules/file-has-acl-tests.
10125         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
10127         manywarnings: add GCC 5.1 warnings
10128         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
10129         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
10130         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
10131         -Wsuggest-override, -Wuse-without-only.  Change
10132         -Wnormalized=... operands to match 5.1.
10133         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
10134         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
10135         -Wdiscarded-qualifiers, -Wformat-signedness,
10136         -Wincompatible-pointer-types, -Wint-conversion,
10137         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
10138         -Wshift-count-negative, -Wshift-count-overflow,
10139         -Wsizeof-array-argument, -Wsuggest-final-methods,
10140         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
10141         and add -Warray-bounds=2 as a special case.
10143 2015-04-21  Simon Josefsson  <simon@josefsson.org>
10145         doc: update FDL template to match FDL examples.
10146         * doc/alloca-opt.texi:
10147         * doc/alloca.texi:
10148         * doc/c-ctype.texi:
10149         * doc/c-strcase.texi:
10150         * doc/c-strcaseeq.texi:
10151         * doc/c-strcasestr.texi:
10152         * doc/c-strstr.texi:
10153         * doc/c-strtod.texi:
10154         * doc/c-strtold.texi:
10155         * doc/ctime.texi:
10156         * doc/error.texi:
10157         * doc/gcd.texi:
10158         * doc/gnulib-tool.texi:
10159         * doc/inet_ntoa.texi:
10160         * doc/intprops.texi:
10161         * doc/lib-symbol-visibility.texi:
10162         * doc/maintain.texi:
10163         * doc/parse-datetime.texi:
10164         * doc/quote.texi:
10165         * doc/regexprops-generic.texi:
10166         * doc/standards.texi: Remove spurious 'with' in FDL license
10167         template.
10169 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
10171         lstat: fix cross-compilation 'ln -s' problem
10172         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10173         Have the test program call 'symlink' rather than a separate
10174         script run 'ln -s'; this is more likely to work in
10175         cross-compilation environments.  Reported by Pavel Fedin in:
10176         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
10178 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
10180         gendocs.sh: default to a common CSS style sheet for HTML output
10181         * build-aux/gendocs.sh (htmlarg): Change default value.
10183 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
10185         gnulib-tool: output bold attribute more portably
10186         * gnulib-tool (func_show_module_list): Change hexadecimal
10187         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
10188         encoded numbers as arguments to `printf' is not portable,
10189         and is not claimed by POSIX.  This is the case with FreeBSD.
10191 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
10193         qacl: Simplify HP-UX acl_nontrivial check
10194         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
10195         acl_nontrivial. Check if the acl has at most three entries instead (it must
10196         have exactly three entries according to the HP-UX documentation). Ignore
10197         uids and gids as long as an entry is either for a user (i.e., the owner),
10198         a group (i.e., the owning group), or others.
10199         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
10200         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
10202 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
10204         acl: On Linux, check for acls without libacl
10205         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
10206         library function to check for the presence of acls, avoiding a library.
10207         * lib/file-has-acl.c: Include xattr headers if we have them.
10208         (file_has_acl): On Linux, use getxattr().
10209         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
10210         file_has_acl(). Check for xattr headers and getxattr().
10212 2015-04-14  Ángel González  <keisial@gmail.com>
10214         tempname: avoid unused parameter warnings (trivial)
10215         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
10216         (try_nocreate): Likewise.
10218 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
10220         fseeko: fix build failure on NetBSD >= 6 (trivial)
10221         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
10222         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
10224 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10226         gitlog-to-changelog: port to MS-Windows
10227         * build-aux/gitlog-to-changelog (git_dir_option):
10228         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
10229         MS-Windows Perl.  Reported by Eli Zaretskii in:
10230         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
10232 2015-04-07  Karl Berry  <karl@gnu.org>
10234         gendocs: new option --tex for passing args to texi2dvi.
10235         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
10236         (TEXI2DVI): cut to just command name.
10237         (usage): mention new option, and update copyright.
10238         <generate_tex>: use it.
10240 2015-04-07  Karl Berry  <karl@gnu.org>
10242         * config/srclistvars.sh (GETTEXT): new definition.
10243         * config/srclist.txt: use it for gettext .m4 files.
10244         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
10245         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
10246         and continuing into April.
10248 2015-04-07  Daiki Ueno  <ueno@gnu.org>
10250         uniname/uniname-tests: fix failure due to alias
10251         Reported by Jack Howarth in:
10252         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
10253         * tests/uniname/test-uninames.c (name_has_alias): New function.
10254         (test_inverse_lookup): Exclude character name with valid alias,
10255         from randomly generated character names.
10256         (main): Fill unicode_aliases before calling test functions.
10258 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
10260         hash: remove deprecated hash_insert0 function
10261         * lib/hash.h (hash_insert0): Remove deprecated function.
10262         * lib/hash.c (hash_insert0): Likewise.
10264 2015-04-02  Pádraig Brady  <P@draigBrady.com>
10266         mountlist: remove dependency on libmount
10267         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
10268         directly, rather than depending on libmount, which has many
10269         dependencies due to its dependence on libselinux, as detailed at:
10270         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
10271         Note we restrict this to __linux__ as that's probably where this
10272         interface will remain.  If ever porting, it would be best
10273         to first pull the makedev() wrapper from coreutils to a gnulib module.
10274         Note also we don't add a getline dependency to the mountlist module,
10275         as all Linux versions are sufficient.
10277 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10279         stddef: port to pre-C11 GCC on x86
10280         On this platform, max_align_t should have an alignment of 8 even
10281         though the storage alignments of double, long, etc. max out at 4.
10282         Inspired by a comment of Andreas Schwab's here:
10283         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
10284         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
10285         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
10286         * tests/test-stddef.c: Test __alignof__ too, if available.
10288 2015-03-24  Pádraig Brady  <P@draigBrady.com>
10290         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
10291         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
10293 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
10295         yesno: make EOL optional in ENABLE_NLS case also (trival)
10296         * lib/yesno.c (yesno): Check for EOL before replacing.
10297         * tests/test-yesno.sh: Add a test case (test along with gettext).
10299 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10301         fdopendir-tests: test it does not close its arg
10302         * tests/test-fdopendir.c (main): Test that fdopendir does not
10303         close its argument.  From a suggestion by David Grayson in:
10304         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
10306 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10308         gitlog-to-changelog: trim trailing white space
10309         * build-aux/gitlog-to-changelog (main):
10310         Trim trailing white space from commit message lines.
10311         This is helpful for processing the GNU Emacs repository,
10312         which dates back to 1985 and contains a lot of such lines.
10314         gitlog-to-changelog: new option --ignore-matching
10315         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
10316         Support new option --ignore-matching=PAT, which ignores all
10317         commit messages whose first line matches PAT.
10319 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10321         fdopendir: port better to MinGW
10322         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
10323         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
10324         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
10325         * modules/fdopendir (Depends-on): Add dirfd.
10327 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
10329         fdopendir: fix typo in comment
10330         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
10332 2015-03-09  Eric Blake  <eblake@redhat.com>
10334         error: document all entry points provided
10335         * doc/glibc-functions/error_print_progname.texi
10336         (error_print_progname): Mention the error module.
10337         * doc/glibc-functions/error_at_line.texi (error_at_line):
10338         Likewise.
10339         * doc/glibc-functions/error_message_count.texi
10340         (error_message_count): Likewise.
10341         * doc/glibc-functions/error_one_per_line.texi
10342         (error_one_per_line): Likewise.
10344 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
10346         vasnprintf: pacify clang 3.5.0
10347         Problem reported by Werner Lemberg in:
10348         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
10349         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
10350         The casts aren't needed, since the characters in question are ASCII.
10352 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10354         glob, etc.: port to MSVC v18 on MS-Windows 8.1
10355         * lib/dirent--.h (GNULIB_defined_opendir):
10356         * lib/dirent.in.h (GNULIB_defined_opendir)
10357         (GNULIB_defined_closedir):
10358         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
10359         #undef only if Gnulib defined it.
10361         poll: port to MSVC v18 on MS-Windows 8.1
10362         Problem reported by Gisle Vanem in:
10363         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
10364         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
10365         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
10366         Add sys_socket.
10368 2015-02-24  Pádraig Brady  <P@draigBrady.com>
10370         tests: support stderr verification with returns_()
10371         * tests/init.sh (returns_): Disable tracing for this wrapper
10372         function, so that stderr of the wrapped command is unchanged,
10373         allowing for verification of the contents.
10375 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
10377         passfd: avoid valgrind uninitalised data warning
10378         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
10379         to include just the fd we've initialized, rather than including
10380         the extra space used for alignment.
10382 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10384         uniwbrk/u32-wordbreaks-tests: fix copyright
10385         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
10387         dup2: doc and test for Android bug
10388         Reported by Kevin Cernekee in:
10389         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
10390         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10391         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
10393 2015-02-23  Kevin Cernekee  <cernekee@google.com>
10395         Replace dup2() on Android
10396         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
10397         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
10398         fails.  Using rpl_dup2() fixes this because it has an explicit test
10399         for this condition.
10401 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
10403         Android doesn't define RLIM_SAVED_*
10404         Portability problem reported by Kevin Cernekee in:
10405         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
10406         * doc/posix-headers/sys_resource.texi (sys/resource.h):
10407         Mention the portability problem.
10408         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
10409         Define if not defined.
10410         * m4/dup2.m4 (gl_FUNC_DUP2):
10411         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10412         Likewise.
10414 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10416         vasnprintf-posix-tests: use consistent test
10417         * tests/test-vasnprintf-posix.c (test_function):
10418         Use "<" in assert instead of "<=", for consistency with other tests.
10420 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10422         printf, isinf, etc.: noncanonical != NaN
10423         Do not require that isinf, printf, etc. treat noncanonical
10424         values as NaNs.  Instead, require only that they do not crash.
10425         Problem reported by Joseph Myers in:
10426         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
10427         * doc/posix-functions/dprintf.texi (dprintf):
10428         * doc/posix-functions/fprintf.texi (fprintf):
10429         * doc/posix-functions/isfinite.texi (isfinite):
10430         * doc/posix-functions/isinf.texi (isinf):
10431         * doc/posix-functions/isnan.texi (isnan):
10432         * doc/posix-functions/printf.texi (printf):
10433         * doc/posix-functions/snprintf.texi (snprintf):
10434         * doc/posix-functions/sprintf.texi (sprintf):
10435         * doc/posix-functions/vdprintf.texi (vdprintf):
10436         * doc/posix-functions/vfprintf.texi (vfprintf):
10437         * doc/posix-functions/vprintf.texi (vprintf):
10438         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10439         * doc/posix-functions/vsprintf.texi (vsprintf):
10440         Document this.
10441         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
10442         * m4/isinf.m4 (gl_ISINFL_WORKS):
10443         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
10444         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
10445         * tests/test-isfinite.c (test_isfinitel):
10446         * tests/test-isinf.c (test_isinfl):
10447         * tests/test-isnan.c (test_long_double):
10448         * tests/test-isnanl.h (main):
10449         * tests/test-snprintf-posix.h (test_function):
10450         * tests/test-sprintf-posix.h (test_function):
10451         * tests/test-vasnprintf-posix.c (test_function):
10452         * tests/test-vasprintf-posix.c (test_function):
10453 o       Test only that noncanonical values do not cause crashes, not that
10454         they are treated as NaNs.  In some cases this means a larger
10455         output buffer is needed.
10457 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
10459         fts: remove redundant close() (trivial)
10460         * lib/fts.c (fts_read): Remove redundant call to close().
10461         Spotted by coverity.
10463 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10465         getdtablesize: port better for Android
10466         Problem reported by Kevin Cernekee in:
10467         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
10468         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
10469         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
10470         Instead, just use getrlimit, taking care to avoid Cygwin bug.
10472         poll: fixes for large fds
10473         * lib/poll.c (poll): Don't check directly for NFD too large.
10474         Don't rely on undefined behavior in FD_SET when an arg exceeds
10475         FD_SETSIZE.  Always set revents afterwards, even if to zero.
10476         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
10477         as that makes the test a bit stricter.
10479 2015-02-19  Kevin Cernekee  <cernekee@google.com>
10481         fcntl: Fix cross compiling
10482         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
10483         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
10485 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10487         dup2, fcntl: cross-compile better for Android
10488         Problem reported by Kevin Cernekee in:
10489         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
10490         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
10491         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
10492         there's little need to cross-compile for older kernels nowadays.
10493         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
10494         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
10496 2015-02-18  Pádraig Brady  <P@draigBrady.com>
10498         getopt: don't crash on memory exhaustion
10499         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
10500         memory exhaustion.  In the _LIBC case we use alloca() as is
10501         already done in glibc, so we don't need to consider the separate
10502         error path in that awkward case.  Also fix a memory leak when
10503         ambiguous options are present.
10504         Reported by Tobias Stoeckmann
10506 2015-02-17  Mike Miller  <mtmiller@ieee.org>
10508         tempname: allow compilation with C++ (trivial)
10509         * lib/tempname.h [C++]: Specify extern "C" linkage.
10510         * lib/tempname.h (try_tempname):
10511         * lib/tempname.c (__try_tempname, __gen_tempname):
10512         Rename 'try' to 'tryfunc'.
10514 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10516         dup2, fcntl: port to AIX
10517         * m4/dup2.m4 (gl_FUNC_DUP2):
10518         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10519         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
10520         The former works on AIX 7.1 but the latter does not.
10521         Also, this may work better with Android; see:
10522         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
10524 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10526         getdtablesize, dup2, fcntl: port to Android
10527         Problem reported by Kevin Cernekee in:
10528         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
10529         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
10530         Mention that getdtablesize doesn't work on Android.
10531         * lib/getdtablesize.c: Use getrlimit substitute only if
10532         getdtablesize is declared.  This should suffice for Cygwin
10533         while not breaking Android.
10534         * m4/dup2.m4 (gl_FUNC_DUP2):
10535         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10536         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
10537         standardized but the latter is not, and sysconf works on Android.
10538         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
10539         Also check that getdtablesize is declared.
10540         This removes the need for a special case for Android.
10542 2015-02-16  Kevin Cernekee  <cernekee@google.com>
10544         localename: Implement gl_locale_name_thread_unsafe for Android
10545         * lib/localename.c: Android API level >= 21 supports two hardcoded
10546         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
10547         the internal __locale_t struct.
10549 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
10551         fts: avoid crash when a cycle is added while traversing
10552         This could be triggered by auto-mounting a recursive bind mount.
10553         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
10554         * lib/fts.c (fts_read): Avoid removing the original hash table item
10555         when leaving a directory that caused a cycle, and preserve the FTS_DC
10556         flag.
10558 2015-02-16  Daiki Ueno  <ueno@gnu.org>
10560         uniname/uniname: support character alias
10561         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
10562         Generate one-way mapping from aliases to codepoints in the
10563         generated tables.  Special case variation selectors to reduce
10564         table size.
10565         * lib/uniname/uniname.c (unicode_character_name): Special case
10566         variation selectors.
10567         (unicode_name_character): Special case variation selectors and
10568         their aliases.
10569         * lib/uniname/uninames.h: Regenerate.
10570         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
10571         * modules/uniname/uniname-tests (Files): Add
10572         tests/uniname/NameAliases.txt.
10573         * tests/uniname/test-uninames.c: Mark as static.
10574         (ALIASLEN): Define.
10575         (struct unicode_alias): New struct.
10576         (unicode_aliases): New variable.
10577         (fill_aliases): New function.
10578         (test_alias_lookup): New test function.
10579         (main): Run the 'test_alias_lookup' test if the second argument is
10580         given.
10581         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
10582         second argument.
10584 2015-02-11  Kevin Cernekee  <cernekee@google.com>
10586         Fix FILE struct compatibility with Android API level >= 21
10587         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
10588         __sferror.  Recent versions of Bionic's stdio.h no longer define
10589         __sferror.
10590         * lib/fbufmode.c: Likewise.
10591         * lib/fflush.c: Likewise.
10592         * lib/fpurge.c: Likewise.
10593         * lib/freadable.c: Likewise.
10594         * lib/freadahead.c: Likewise.
10595         * lib/freading.c: Likewise.
10596         * lib/freadptr.c: Likewise.
10597         * lib/freadseek.c: Likewise.
10598         * lib/fseeko.c: Likewise.
10599         * lib/fseterr.c: Likewise.
10600         * lib/fwritable.c: Likewise.
10602         Assume unbroken ungetc() on Android
10603         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
10604         test case passed when running on an Android host, and the code
10605         hasn't really changed since 2009.
10607         getdtablesize: Fix Android build
10608         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
10609         versions have this symbol in the .so library (at least 32-bit
10610         platforms) but are missing the declaration in the header file,
10611         causing the m4 logic to guess incorrectly.
10613         localename: Fix Android build
10614         * modules/localename (Depends-on): Add langinfo.
10616         getugroups: Fix Android build
10617         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
10618         functions.
10620         euidaccess: Fix Android build
10621         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
10622         AT_EACCESS gets declared.
10624         linkat_nofollow: Add fallback case for cross compiling
10625         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
10627         net_if: Handle content-free <net/if.h> system headers
10628         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
10629         struct if_nameindex.  If not, enable the replacement header.
10631         signal_h: Fix Android build
10632         * lib/signal.in.h: Add Android to the list of platforms that declare
10633         pthread_sigmask() in <pthread.h> instead of <signal.h>.
10635         duplocale: Fix Android build of duplocale-tests
10636         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
10637         is included by test-duplocale.c (but not by duplocale.c).
10638         * modules/duplocale-tests (configure.ac): Check for monetary.h.
10639         * tests/test-duplocale.c: Skip test if monetary.h is absent.
10640         * doc/posix-headers/monetary.texi: Add Android to the list of
10641         platforms missing monetary.h.
10643 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10645         tests: avoid recent -Werror=unused-variable regression in test-locale
10646         * tests/test-locale.c (main): Reference the variable to avoid the
10647         "unused variable" warning.
10649 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10651         maint: various whitespace cleanups in tempname
10652         * lib/tempname.c: Normalize spacing and line length.
10653         * lib/tempname.h: Likewise.
10654         * modules/tempname: Likewise.
10656 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10658         tests: provide returns_() to simplify exit status checking
10659         * tests/init.sh (returns_): A new function for use in tests,
10660         to allow for easier checking of return values, where you expect
10661         a command to exit with failure status.  By checking for a particular
10662         exit code, you don't hide any crashes for example.
10664 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10666         mountlist: only use libmount when specified
10667         There are currently many shared libs dependencies introduced by
10668         libmount with associated runtime and virt mem overhead.
10669         Therefore don't enable by default.
10670         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
10672 2015-02-08  Daiki Ueno  <ueno@gnu.org>
10674         uniname/unimame-tests: don't link with -lunistring
10675         * modules/uniname/uniname-tests (Makefile.am): Don't link against
10676         $(LIBUNISTRING).  Document the rationale why we need to
10677         conditionalize the test.
10679 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10681         fstrcmp: don't assume strlen < INT_MAX
10682         * lib/fstrcmp.c: Include stddef.h and stdint.h.
10683         (uintptr_t): Remove, as we're now assuming stdint.
10684         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
10685         Prefer ptrdiff_t to int when the value could exceed INT_MAX
10686         if the input string is long.
10687         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
10688         uintptr_t to size_t when the underlying value is a pointer casted
10689         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
10690         * modules/fstrcmp (Depends-on): Add stdint.
10692         diffseq: prefer ptrdiff_t to ssize_t
10693         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
10694         ptrdiff_t is the natural type for signed indexes.
10695         On a few older platforms, ssize_t is narrower than size_t.
10697         xalloc: fix typo that suppressed warnings
10698         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
10699         This typo, introduced a couple of years ago, mistakenly suppressed
10700         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
10701         -Wmissing-declarations warnings.
10703         full-read: fix license notice typo
10704         * lib/full-read.h: Remove a stray line in the license notice.
10705         Reported by Sam Ellis in: http://bugs.gnu.org/19808
10707         crypto/gc: fix a -Wswitch warning
10708         Reported by Bruce Korb in:
10709         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
10710         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
10712 2015-02-03  Pádraig Brady  <P@draigBrady.com>
10714         gnulib-tool: fix handling of patch(1) diagnostics
10715         * gnulib-tool: Send diagnostics from patch(1) to stderr,
10716         as otherwise gnulib-tool will reparse that output and attempt
10717         to lookup modules.
10719 2015-02-03  Pádraig Brady  <P@draigBrady.com>
10721         bootstrap: exit immediately upon gnulib-tool failure
10722         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
10723         This was noticed when gnulib-tool exited early due to failure
10724         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
10725         but various confusing errors were then given as the build proceeded.
10727 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
10729         symlinkat: include all required header files
10730         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
10731         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
10732         Reported at https://savannah.gnu.org/bugs/index.php?44151
10733         and by Jack Howarth.
10735 2015-01-29  Pádraig Brady  <P@draigBrady.com>
10737         localename: support Solaris 12 and illumos
10738         * lib/localename.c (gl_locale_name_thread_unsafe): call
10739         getlocalename_l() on newer __sun platforms.
10740         Reported by Alexander Pyhalov.
10741         Fix suggested by Rich Burridge.
10743 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
10745         locale: fix tests on illumos (trivial)
10746         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
10747         so move from global scope to main().
10749 2015-01-24  Daiki Ueno  <ueno@gnu.org>
10751         unictype: avoid undefined left-shift behavior
10752         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
10753         gcc's -fsanitize=shift and running its tests triggered:
10754           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
10755             places cannot be represented in type 'int'
10756         Cast LHS to 'unsigned int' after integer promotion.
10757         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
10758         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
10760 2015-01-20  Daiki Ueno  <ueno@gnu.org>
10762         libunistring: bump version of unitypes dependants
10763         Due to the header file search order, all the headers which depend
10764         on unitypes.h need to be generated, when the preinstalled
10765         libunistring is older.
10766         * modules/unicase/base (configure.ac): Bump minimum version to
10767         0.9.4.
10768         * modules/uniconv/base (configure.ac): Likewise.
10769         * modules/unilbrk/base (configure.ac): Likewise.
10770         * modules/uninorm/base (configure.ac): Likewise.
10771         * modules/unistdio/base (configure.ac): Likewise.
10772         * modules/unistr/base (configure.ac): Likewise.
10773         * modules/uniwbrk/base (configure.ac): Likewise.
10774         * modules/uniwidth/base (configure.ac): Likewise.
10776 2015-01-20  Daiki Ueno  <ueno@gnu.org>
10778         unictype/category-none: fix link with libunistring
10779         Since _UC_CATEGORY_NONE is not a public symbol, it will be
10780         prefixed with "libstring_" when compiled as part of libunistring.
10781         To avoid undefined symbol at link time, increase the minimum
10782         version when the dependant modules are updated.
10783         * modules/unictype/category-none (configure.ac): Bump minimum
10784         version to 0.9.5.
10786 2015-01-20  Daiki Ueno  <ueno@gnu.org>
10788         unitypes: fix build with installed libunistring
10789         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
10790         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
10791         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
10793 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10795         time: port to MinGW32 3.21
10796         Problem reported by Eli Zaretskii in:
10797         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
10798         * lib/time.in.h:
10799         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
10800         * modules/time (Depends-on):
10801         Fall back on unistd.h if the other include files don't define
10802         struct timespec.
10804         update-copyright: apply to self
10805         * build-aux/update-copyright: Fix copyright date.  How ironic!
10807 2015-01-15  Daiki Ueno  <ueno@gnu.org>
10809         libunistring: update to Unicode 7.0.0
10810         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
10811         Manichaean names.
10812         * lib/unictype/joininggroup_name.h: Likewise.
10813         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
10814         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
10815         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
10816         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
10817         (fill_arabicshaping, joining_group_as_c_identifier): Support those
10818         enum values.
10819         (is_property_alphabetic): Accept newly added characters to
10820         cuneiform numeric signs.
10821         (is_property_default_ignorable_code_point): Reject U+0605.
10822         (FIELDLEN): Increase from 120 to 160.
10823         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
10824         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
10825         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
10826         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
10827         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
10828         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
10829         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
10830         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
10831         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
10832         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
10833         U+1E8D0..U+1E8D6.
10834         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
10835         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10836         lib/uniwidth/width.c.
10837         * all generated files under lib/uni* and tests/uni*: Regenerate.
10839 2015-01-14  Daiki Ueno  <ueno@gnu.org>
10841         libunistring: update to Unicode 6.3.0
10842         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
10843         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
10844         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
10845         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
10846         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
10847         Update WB5, WB9, WB10, WB13a, and WB13b.
10848         * tests/uniwbrk/test-uc-wordbreaks.c
10849         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
10850         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
10851         (UC_BIDI_PDI): New enumeration values.
10852         (bidi_category_byname): Support those enum values.
10853         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
10854         dedicated property assigned.
10855         (is_property_case_ignorable): Check 0x0027.
10856         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
10857         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
10858         (output_wbp): Support those enum values.
10859         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
10860         (UC_BIDI_PDI): New enumeration values.
10861         * lib/unictype/bidi_byname.gperf: Add those property names.
10862         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
10863         U+180E, U+1A1B, and U+2066..U+2069.
10864         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10865         lib/uniwidth/width.c.
10866         * all generated files under lib/uni* and tests/uni*: Regenerate.
10868 2015-01-14  Daiki Ueno  <ueno@gnu.org>
10870         libunistring: update to Unicode 6.2.0
10871         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
10872         (unilbrk_table): Adjust table size.
10873         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
10874         for LBP_RI.
10875         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
10876         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
10877         Normalize table index skipping ignored properties.
10878         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
10879         WBP_EXTEND and WBP_FORMAT, which are now computed without using
10880         the table.
10881         * lib/uniwbrk/wbrktable.h: Adjust table size.
10882         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
10883         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
10884         Support rule GB8a.
10885         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
10886         * tests/unigbrk/test-uc-is-grapheme-break.c
10887         (graphemebreakproperty_to_string): Support GBP_RI.
10888         * tests/uniwbrk/test-uc-wordbreaks.c
10889         (wordbreakproperty_to_string): Support WBP_RI.
10890         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
10891         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
10892         (output_lbp): Support LBP_RI.  Adjust some characters changed from
10893         LBP_AL to LBP_ID.
10894         (output_lbp): Support LBP_RI.
10895         (WBP_RI): New enumeration value.
10896         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
10897         (output_wbp): Support WBP_RI.
10898         (GBP_RI): New enumeration value.
10899         (output_gbp_test, fill_org_gbp): Support GBP_RI.
10900         * all generated files under lib/uni* and tests/uni*: Regenerate.
10902 2015-01-14  Daiki Ueno  <ueno@gnu.org>
10904         libunistring: update to Unicode 6.1.0
10905         * lib/gen-uni-tables.c (output_joining_group): Switch to
10906         3-level table to accommodate joining groups defined with higher
10907         codepoint value.  Since there are only 88 groups defined in
10908         Unicode 7.0.0, use 7-bit packed format for level3 entries.
10909         (get_lbp): Update for Unicode 6.1.0.
10910         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
10911         3-level table.
10912         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
10913         joining group name.
10914         * lib/unictype/joininggroup_name.h: Likewise.
10915         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
10916         (unilbrk_table): Adjust table size.
10917         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
10918         for LBP_HL.
10919         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
10920         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
10921         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
10922         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
10923         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
10924         U+302E..U+302F.
10925         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10926         lib/uniwidth/width.c.
10927         * all generated files under lib/uni* and tests/uni*: Regenerate.
10928         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
10930 2015-01-15  Daiki Ueno  <ueno@gnu.org>
10932         uniwbrk/u32-wordbreaks-tests: add conformance test
10933         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
10934         tests/uniwbrk/test-uc-wordbreaks.c,
10935         tests/uniwbrk/test-uc-wordbreaks.sh, and
10936         tests/uniwbrk/WordBreakTest.txt.
10937         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
10938         test-uc-wordbreaks to $(check_PROGRAMS), and define
10939         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
10940         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
10941         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
10943 2015-01-15  Daiki Ueno  <ueno@gnu.org>
10945         uniwbrk: ignore Extended/Format characters at BOL not BOS
10946         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
10947         characters if the previous character property is one of
10948         WBP_NEWLINE, WBP_CR, and WBP_LF.
10950 2015-01-11  Jim Meyering  <meyering@fb.com>
10952         test-strstr.c: avoid a trivial leak
10953         * tests/test-strstr.c (main): Free haystack.
10955         update-copyright: recognize groff's \(co marker
10956         * build-aux/update-copyright (circle_c_re): Also accept
10957         uses of \(co, as found in gzip.1.
10959 2015-01-08  Pádraig Brady  <P@draigBrady.com>
10961         maint.mk: fix compatibility with OS X nm
10962         * top/maint.mk (_gl_tight_scope): Use the -g option to
10963         show exported items rather than the -e option which is
10964         ignored on all platforms except OS X where it gives an error.
10965         Reported by Assaf Gordon.
10967 2015-01-07  KO Myung-Hun  <komh@chollian.net>
10969         localcharset: improve charset detection on OS/2
10970         Use system codepage when appropriate.  Map OS/2 codepages to
10971         GNU canonical charset names if possible.
10972         * lib/config.charset: Don't output aliases if "$os" is os2*.
10973         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
10974         result for OS/2.
10975         (locale_charset) [OS2]: Use system codepage if codeset is omitted
10976         from the locale name which is neither "C" nor "POSIX".
10978 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10980         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
10981         This reverts the last patch but one, as it shouldn't be needed now
10982         that the typo is fixed.
10983         * lib/count-leading-zeros.h (count_leading_zeros_ll):
10984         * lib/count-trailing-zeros.h:
10985         * lib/count-one-bits.h:
10986         Go back to using 64-bit intrinsics.
10988         count-leading-zeros: fix pragma typos
10989         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
10990         Fix typos in declaration of intrinsics when _MSC_VER.
10992 2015-01-06  Pádraig Brady  <P@draigBrady.com>
10994         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
10995         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
10996         intrinsics in this case.
10997         * lib/count-trailing-zeros.h: Likewise.
10998         * lib/count-one-bits.h: Likewise.
11000 2015-01-06  Daiki Ueno  <ueno@gnu.org>
11002         uniname/uniname: update to Unicode 7.0.0
11003         To accommodate new characters added since Unicode 5.1.0, this
11004         changes the internal representation of codepoint ranges.
11005         Previously, we grouped codepoint ranges by manually assigned 4-bit
11006         tag, which only allowed 16 groups.  This removes the limitation by
11007         switching to binary search on a table.  For the detail rationale
11008         and the benchmark results, see:
11009         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
11010         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
11011         to INDEX, as it no longer represents a codepoint.
11012         (range): New struct.
11013         (main): Switch to intervals list from a bit-pattern based
11014         classification.
11015         * lib/uniname/uninames.h: Regenerate.
11016         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
11017         * modules/uniname/base (configure.ac): Bump minimum version to
11018         0.9.5.
11019         * modules/uniname/uniname (configure.ac): Bump minimum version to
11020         0.9.5.
11022 2015-01-05  Eric Blake  <eblake@redhat.com>
11024         doc: update INSTALL from autoconf
11025         * doc/install.texi: Resync from autoconf.
11026         * doc/INSTALL: Reflect recent autoconf update.
11027         * doc/INSTALL.ISO: Likewise.
11028         * doc/INSTALL.UTF-8: Likewise.
11030         stdio: fix use of PRIdMAX on modern mingw
11031         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
11032         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
11033         to work with modern mingw.
11035 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
11037         pthread: detect git mingw builds with only partial pollution
11038         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
11039         pollution, as seen temporarily in Fedora 21.
11041 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11043         lib-symbol-versions: cache script check
11044         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
11045         Cache the check for linker version scripts.
11046         From a suggestion by Christophe Curis in:
11047         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
11049 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
11051         maint: fix grammar nits in propername (trivial change)
11052         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
11053         and use an adequate verb and tense.
11055 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
11057         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
11058         * module/gendocs: Add 'doc/gendocs_template_min'.
11060         * build-aux/gendocs.sh: Change email addresses and upstream URLs
11061         from to Gnulib's.
11062         (scripturl, templateurl): Adjust accordingly.
11064 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11066         gendocs: copyright date and version fix
11067         Reported by Karl Berry in:
11068         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
11069         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
11070         Fix copyright date.
11071         * build-aux/gendocs.sh (scriptversion): Update.
11073 2015-01-01  Karl Berry  <karl@gnu.org>
11075         * doc/install.texi,
11076         * build-aux/mdate-sh,
11077         * build-aux/depcomp,
11078         * build-aux/config.guess,
11079         * build-aux/config.sub,
11080         * build-aux/ar-lib,
11081         * build-aux/compile: revert copyright updates (some from last
11082         year) in slaved files.
11084 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
11086         version-etc: new year
11087         * doc/gnulib.texi:
11088         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
11089         * all files: Run 'make update-copyright'.
11091 2014-12-30  Pádraig Brady  <P@draigBrady.com>
11093         xstrtol: ensure errno is reset
11094         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
11095         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
11097         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
11099 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11101         utimens: fix dependency typo
11102         * modules/utimens (Depends-on): Remove 'assure'.
11103         This bug was introduced in the recent 'assure' patch.
11105 2014-12-22  Eric Blake  <eblake@redhat.com>
11107         docs: mention why libgen.h is bad
11108         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
11110 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11112         assure: new module
11113         This works better than 'assert' when compiling with -DNDEBUG,
11114         as it avoids some compiler diagnostics in that case.
11115         Reported by Norihiro Tanaka in:
11116         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
11117         * MODULES.html.sh (func_all_modules): Add 'assure'.
11118         * lib/assure.h, modules/assure: New files.
11119         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
11120         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
11121         Prefer 'assure' to 'assert'.
11122         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
11123         * modules/chdir-long, modules/cycle-check, modules/fchdir:
11124         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
11125         Depend on 'assure'.
11127 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
11129         stdalign: port better to HP compilers
11130         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
11131         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
11133         stdalign: work around Apple GCC 4.0 bug
11134         Reported by David Fang in:
11135         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
11136         * lib/stdalign.in.h (_Alignas):
11137         * m4/stdalign.m4 (gl_STDALIGN_H):
11138         Do not use aligned attribute with GCC 4.0 on Apple.
11140 2014-12-16  Pádraig Brady  <P@draigBrady.com>
11142         getcwd: fix test failure on OS X 10.9
11143         * m4/getcwd-path-max.m4: Avoid the replacement if it
11144         won't be effective due to the PATH_MAX limitation of lstat().
11145         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
11146         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
11147         for this case for use in tests, and also exclude this
11148         case when setting REPLACE_GETCWD.
11149         * tests/test-getcwd.c (test_long_name): Restrict the
11150         tested path length so that lstat() will not be passed
11151         a path greater than PATH_MAX.
11152         Also key a test condition on HAVE_OPENAT_SUPPORT rather
11153         than AT_FDCWD, since the latter is set unconditionally
11154         since Sep 2009 in commit 52c658e9.
11156 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
11158         parse-datetime: avoid a compiler warning with byacc (trivial)
11159         * lib/parse-datetime.y (yylex): Use the same prototype in the
11160         function definition as the declaration, to avoid a -Wstrict-prototypes
11161         warning seen when using byacc.
11163 2014-12-12  Daiki Ueno  <ueno@gnu.org>
11165         unicase/locale-language-tests: fix LOCALE_FR test
11166         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
11167         a French locale with traditional encoding.
11168         Reported by umerqayam in:
11169         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
11171 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
11173         stddef: support C11's max_align_t
11174         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
11175         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
11176         Do not undef, as that might cause max_align_t to be defined twice.
11177         Instead, change use to check for _GL_STDDEF_WINT_T too.
11178         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
11179         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
11180         Check for max_align_t.
11181         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
11182         * modules/stddef-tests (Depends-on): Add stdalign.
11183         * tests/test-stddef.c: Test max_align_t.
11185 2014-12-11  Daiki Ueno  <ueno@gnu.org>
11187         unistd: fix iOS check conditional
11188         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
11189         as 0 or 1 in <TargetConditionals.h>, and the previous check always
11190         yielded true on non-iOS environment.
11191         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
11192         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
11193         they are defined.
11195 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
11197         posixtm: avoid compiler warning in a better way
11198         * lib/posixtm.c (IF_LINT): Remove.
11199         (year, posix_time_parse):
11200         Return true (not 0) if successful.  All callers changed.
11201         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
11203 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
11205         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
11206         started with '/' on EMX.
11208 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
11210         freopen: workaround freopen() on OS/2 kLIBC
11211         * lib/freopen.c (rpl_freopen): Workaround.
11212         * m4/freopen.m4: Add os2* case.
11214         get_shared_library_fullname: port to EMX
11215         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
11216         on EMX, respectively.
11217         (_DLL_InitTerm): New on EMX.
11218         (get_shared_library_fullname): Implement on EMX.
11220         find_executable: port to EMX
11221         * lib/progreloc.c (find_executable): Implement on EMX.
11223         sched: check struct sched_param in spawn.h as well
11224         * lib/sched.in.h: Include spawn.h on kLIBC.
11225         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
11227 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
11229         bootstrap: Allow perl modules in $buildreq
11230         * build-aux/bootstrap: Add case for perl modules.
11232 2014-12-08  Pádraig Brady  <P@draigBrady.com>
11234         apply _GL_ATTRIBUTE_PURE to some inline functions
11235         clang 3.4.2 flagged these inline functions as pure
11236         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
11237         * lib/sig-handler.h (get_handler): Likewise.
11238         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
11239         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
11241 2014-12-06  Pádraig Brady  <P@draigBrady.com>
11243         vasnprintf: fix potential use after free
11244         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
11245         flagged by clang-analyzer 3.4.2.
11247 2014-12-05  Pádraig Brady  <P@draigBrady.com>
11249         filevercmp, posixtm: avoid compiler warnings with -O3
11250         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
11251         * lib/posixtm.c: (IF_LINT): Define.
11252         (posix_time_parse): Use it to void a "may be used uninitialized"
11253         warning, seen only with -O3.
11255 2014-12-05  Bruno Haible  <bruno@clisp.org>
11257         Fix LDBL80_WORDS macro on big endian platforms.
11258         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
11259         LDBL80_WORDS macro.
11260         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11261         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11262         * tests/test-isfinite.c (test_isfinitel): Likewise.
11263         * tests/test-isinf.c (test_isinfl): Likewise.
11264         * tests/test-isnan.c (test_long_double): Likewise.
11265         * tests/test-isnanl.h (main): Likewise.
11266         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
11267         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
11268         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
11269         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
11270         Reported by Pádraig Brady.
11272 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
11274         git-version-gen: do not print new line characters
11275         * build-aux/git-version-gen: Use printf instead of echo and tr.
11277         gnulib-tool: recognize x:* as an absolute path
11278         * gnulib-tool (func_gnulib_dir): Add ?:* case.
11279         (func_relconcat): Likewise.
11281 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
11283         argp: avoid extraneous translation and mem leak with empty pre doc
11284         * lib/argp-help.c (argp_doc): Never translate the empty string,
11285         when "\v" is the first or last character of the string, as that
11286         has a reserved meaning to return the header info from a po file.
11287         This also fixes a small memory leak in the !post case.
11288         The issue can be seen with this command for example:
11289         LC_MESSAGES=en_US grub2-mknetdir --help
11291 2014-11-27  Daiki Ueno  <ueno@gnu.org>
11293         uniname/uniname-tests: skip if system's libunistring is used
11294         * modules/uniname/uniname-tests (Makefile.am): Skip test if
11295         uniname/uniname module is not compiled.
11297 2014-11-27  Pádraig Brady  <P@draigBrady.com>
11299         printf: fix configure check on big endian systems
11300         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
11302 2014-11-22  Daiki Ueno  <ueno@gnu.org>
11304         pipe-filter-gi, pipe-filter-ii: port to AIX
11305         On AIX 7.1, 'select' is defined as static and cannot be referred
11306         to from inline function.
11307         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
11308         the definition...
11309         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
11310         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
11312 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11314         gitlog-to-changelog: add --until
11315         * build-aux/gitlog-to-changelog: Support new --until option.
11316         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
11318 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
11320         extern-inline: update commentary about GCC bugs
11321         * m4/extern-inline.m4: Add another GCC bug number to comments.
11323 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11325         gen-uni-tables: untabify
11326         * lib/gen-uni-tables.c: Untabify.
11328 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11330         gen-uni-tables: check out-of-range values added to 3-level tables
11331         * lib/gen-uni-tables.c (output_category, output_bidi_category)
11332         (output_joining_type, output_ident_category): Check out-of-range
11333         values added to 3-level tables.
11335 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11337         gen-uni-tables: utilize 'assert'
11338         * lib/gen-uni-tables.c: Include <assert.h>.
11339         (output_category, output_combclass, output_decimal_digit_test)
11340         (output_decimal_digit, output_digit_test, output_digit)
11341         (output_numeric, get_mirror_value, fill_properties)
11342         (fill_property30, is_property_alphabetic)
11343         (is_property_default_ignorable_code_point)
11344         (is_property_uppercase, is_property_lowercase)
11345         (is_property_cased, is_property_case_ignorable)
11346         (is_property_changes_when_lowercased, is_property_iso_control)
11347         (is_property_math, fill_arabicshaping, output_joining_group)
11348         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
11349         (output_wbp, fill_org_gbp, get_decomposition)
11350         (output_decomposition, fill_composition_exclusions)
11351         (debug_output_composition_tables, output_composition_tables)
11352         (redistribute_casefolding_rules, output_casing_rules): Use
11353         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
11354         reporting.
11356 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11358         gen-uni-tables: cosmetic improvements
11359         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
11360         variables specification.
11361         (is_outdigit): Remove unused function.
11363 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
11365         fcntl-h-tests: port to PA-RISC GNU/Linux
11366         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
11368 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11370         fts: port to C89
11371         Problem reported for MSVC 16 by Gisle Vanem in:
11372         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
11373         * lib/fts.c (fts_build): Avoid declaration before statement.
11375 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11377         unistd: port to iOS
11378         Problem reported by André Klitzing in:
11379         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
11380         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
11382 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11384         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
11385         Problem reported by Alan Modra in:
11386         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
11387         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
11388         Always cast the function arg, reverting this part of the previous
11389         change.
11391 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11393         obstack: avoid potentially-nonportable function casts
11394         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
11395         Remove, replacing with ...
11396         (call_chunkfun, call_freefun): New static functions.
11397         All uses changed.  Avoid potentially-nonportable casts.
11398         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
11399         (_obstack_begin_worker): Omit last two args, since they
11400         rely on potentially-nonportable casts.  All callers changed.
11401         * lib/obstack.h (_OBSTACK_CAST): New macro.
11402         Use it everywhere the old API used a potentially-nonportable cast.
11403         The new API doesn't cast.
11404         (struct obstack): Use unions rather than requiring
11405         potentially-nonportable casts.
11406         (obstack_chunkfun, obstack_freefun): Return void.
11408 2014-11-03  Alan Modra  <amodra@gmail.com>
11410         obstack: fix macro return values
11411         * lib/obstack.h (obstack_next_free): Return void *.
11412         (obstack_1grow_fast, obstack_blank_fast): Return void.
11413         For __GNUC__ macros:
11414         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
11415         For !__GNUC__ macros:
11416         (obstack_make_room, obstack_grow, obstack_grow0)
11417         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
11419 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11421         obstack: do not assume system-supplied obstack is size_t safe
11422         * m4/obstack.m4: New file.
11423         * modules/obstack (Files): Add it.
11425         obstack: port to platforms that #define __alignof__
11426         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
11427         not if !_LIBC.  We don't know of any platforms that #define
11428         __alignof__, but it might be useful in tests.  Conversely,
11429         glibc assumes GCC.
11431 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11433         linkat: don't unconditionally replace on GNU/Linux
11434         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
11435         was redundant for a few reasons.  It was present to support compiling
11436         on new systems but running on the old narrow window of Linux 2.6.1[67].
11437         It setup and cleaned up test files which weren't actually used.
11438         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
11439         implicit in the following check.
11441 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11443         linkat: wrap to handle symlinks on OS X 10.10
11444         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
11445         but not usable because it doesn't support creating hardlinks
11446         to symlinks.  Therefore add a generic test for this capability
11447         and fallback to our emulation if linkat() fails with ENOTSUP.
11449 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11451         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
11452         * doc/posix-functions/open.texi (open):
11453         * doc/posix-functions/openat.texi (openat):
11454         Document that these functions do not set errno to ELOOP when
11455         a symlink is opened with O_NOFOLLOW.
11457 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11459         obstack: add NEWS entry for recent incompatible changes
11460         * NEWS: Describe recent changes.
11462 2014-10-30  Pádraig Brady  <P@draigBrady.com>
11464         mountlist: don't use libmount to decide on dummy/remote
11465         * lib/mountlist.c (read_file_system_list): Don't use the libmount
11466         routines to determine whether a file system is dummy or remote,
11467         as they're not currently compatible.  For example the remoteness
11468         is determined on file system type (for which the list seems incomplete),
11469         rather than simply checking for a ':' in the device name.
11470         Also libmount currently determines that 'tmpfs' is a dummy file system
11471         even though it has associated storage.
11473 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
11475         obstack: prefer __alignof__ to alignof
11476         This is for portability to pre-4.7 GCC when compiling glibc.
11477         See Joseph S. Myers in:
11478         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
11479         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
11480         New macro, defined by including and using <alignof.h>.
11481         (MAX): New macro.
11482         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
11483         Do not use enums as they are not portable to some broken compilers.
11484         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
11486         obstack: prefer alignof to calculating alignments by hand
11487         * lib/obstack.c: Include <stdalign.h>.
11488         (struct fooalign): Remove.
11489         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
11490         * modules/obstack (Depends-on): Add stdalign.
11492 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
11494         obstack: use size_t alignments and check for overflow
11495         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
11496         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
11497         * lib/obstack.h (struct obstack.alignment_mask):
11498         Use _OBSTACK_SIZE_T, not int, for alignments.
11499         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
11500         overflows, e.g., when adding the alignment.
11502 2014-10-29  Alan Modra  <amodra@gmail.com>
11504         obstack: 64-bit obstack support, part 3
11505         This finally enables full 64-bit obstack support.  The glibc
11506         shared library specific code is removed from obstack.c too, and
11507         the error handling code conditionally compiled under control of
11508         another macro, _OBSTACK_NO_ERROR_HANDLER.
11509         * lib/obstack.h: Include string.h earlier.
11510         (_OBSTACK_INTERFACE_VERSION): Define.
11511         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
11512         * lib/obstack.c: Don't include shlib-compat.h.
11513         (OBSTACK_INTERFACE_VERSION): Delete.
11514         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
11515         glibc code is compatible with version 2.  Don't include stdio.h for
11516         __GNU_LIBRARY.
11517         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
11518         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
11519         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
11520         glibc shared library specific source.
11522         obstack: 64-bit obstack support, part 2
11523         This gets us 4G obstack support, without changing ABI
11524         compatibility, apart from possibly introducing some
11525         signed/unsigned comparison warnings in code that uses obstack.h.
11526         a) Replace "int" size parameters, return values, and macro local vars
11527            with _OBSTACK_SIZE_T, an "unsigned int" for now.
11528         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
11529         c) Make all obstack macros checking available room use obstack_room.
11530            "next_free + desired > chunk_limit" may wrap the lhs for chunks
11531            allocated near the top of memory.
11532         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
11533         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
11534         in place of "int" size parameters, return values and local vars.
11535         (_CHUNK_SIZE_T): Define.
11536         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
11537         union use an _OBSTACK_SIZE_T integer type.
11538         For __GNUC__ versions of the following macros...
11539         (obstack_room): Rename local var.
11540         (obstack_make_room): Use obstack_room.
11541         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
11542         obstack_int_grow, obstack_blank): Likewise.
11543         (obstack_finish): Use unsigned comparison when comparing aligned
11544         next_free against chunk_limit.
11545         (obstack_free): Cast OBJ to remove possible const qualifier.
11546         For !__GNUC__ versions of the following macros...
11547         (obstack_make_room): Use obstack_room.
11548         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
11549         obstack_int_grow, obstack_blank): Likewise.
11550         (obstack_finish): Use unsigned comparision when comparing aligned
11551         next_free against chunk_limit.
11552         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
11553         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
11554         _OBSTACK_SIZE_T.
11555         (_obstack_begin, _obstack_begin_1): Likewise.
11556         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
11557         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
11559         obstack: 64-bit obstack support, part 1
11560         a) Correct calls to alloc function, to use a size_t arg.  "long" is
11561            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
11562            and "size_t" 64 bits.
11563         b) Consolidate _obstack_begin and _obstack_begin1 code.
11564         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
11565         use "size_t" rather than "long".
11566         (_obstack_begin, _obstack_begin1): Likewise.
11567         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
11568         obstack_chunkfun): Update alloc function casts.
11569         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
11570         (chunkfun_type, freefun_type): New typdefs.
11571         (_obstack_begin_worker): Split out from ..
11572         (_obstack_begin, _obstack_begin_1): ..here.
11574         obstack: tidy part 2
11575         a) Don't be concerned about "not polluting the namespace with stddef.h
11576            symbols" in obstack.h, since gnulib string.h includes stddef.h
11577            anyway, and it seems unlikely that anyone would care.
11578         b) Don't roll our own slow memcpy in _obstack_newchunk.
11579         c) Rename obstack_free to _obstack_free.  This makes the naming
11580            consistent with other obstack functions and obviates the need for
11581            __obstack_free.  Ancient obstack.c defined both obstack_free and
11582            _obstack_free.  We continue to do that for _LIBC via an alias.
11583         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
11584            is clever, but nowadays gcc warns on undefined macros.  You'll get
11585            an undefined macro warning if simulating an old gcc with -U__GNUC__
11586            -U__GNUC_MINOR__ -D__GNUC__=1.
11587         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
11588         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
11589         (__obstack_free): Delete, update refs.
11590         (_obstack_free): Rename from obstack_free.
11591         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
11592         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
11593         * lib/obstack.c: Don't include stddef.h.
11594         (COPYING_UNIT): Delete.
11595         (_obstack_begin): Formatting fix.
11596         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
11597         (_obstack_free): Rename from __obstack_free, update alias.  Move
11598         undef of obstack_free to where it is needed.
11600         obstack: tidy part 1
11601         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
11602            to me, and result in overlong lines after later patches.
11603         b) Move error handling code, to avoid a forward declaration and to
11604            simplify later patches in this series.
11605         * lib/obstack.h (struct obstack <temp>): Rename fields of union
11606         and update all uses.
11607         * lib/obstack.c: Include stdlib.h earlier.
11608         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
11609         in file.
11610         (print_and_abort): Remove now redundant forward declaration.
11612 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11614         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
11615         Without this change, in bleeding-edge fileutils Autoconf complains
11616         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
11617         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
11618         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
11619         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
11621 2014-10-24  Daiki Ueno  <ueno@gnu.org>
11623         iconv: avoid false detection of non-working iconv
11624         The INBUF arguments of iconv can be either 'const char **'
11625         or 'char **'.  If CC is g++, the difference causes a compile error
11626         and thus leads to a false detection of non-working iconv.
11627         Reported by Eli Zaretskii and Werner LEMBERG in:
11628         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
11629         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
11630         iconv.  Bump serial number.
11632 2014-10-23  Pádraig Brady  <P@draigBrady.com>
11634         bootstrap: print more diagnostics for missing programs
11635         * build-aux/bootstrap: only suppress stderr when checking for
11636         alternative program names.  This supports programs issuing non
11637         standard error messages.
11639 2014-10-23  Pádraig Brady  <P@draigBrady.com>
11641         bootstrap: only update the gnulib submodule
11642         * build-aux/bootstrap: Restrict the "submodule update" command
11643         to the gnulib path.
11645 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11647         symlinkat: port to AIX 7.1
11648         * doc/posix-functions/symlinkat.texi (symlinkat):
11649         Mention AIX porting problem.
11650         * lib/symlinkat.c: Always include errno.h.
11651         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
11652         * lib/unistd.in.h (symlinkat): Add replacement machinery.
11653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
11654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
11655         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
11656         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
11657         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
11659         readlinkat: port to AIX 7.1
11660         * doc/posix-functions/readlink.texi (readlink):
11661         * doc/posix-functions/readlinkat.texi (readlinkat):
11662         Mention AIX porting problem.
11663         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
11664         New function.
11665         * lib/unistd.in.h (readlinkat): Add replacement machinery.
11666         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
11667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
11668         * modules/readlinkat (configure.ac): Also compile replacement
11669         if REPLACE_READLINKAT.
11670         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
11672 2014-10-12  Karl Berry  <karl@gnu.org>
11674         * doc/posix-functions/dirname.texi: remove spurious {.
11676 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
11678         basename, dirname: Improve documentation.
11679         * doc/posix-functions/basename.texi: Mention dirname module and
11680         base_name() function.
11681         * doc/posix-functions/dirname.texi: Mention dir_name() and
11682         mdir_name() functions.
11683         Suggested by Werner LEMBERG <wl@gnu.org>.
11685 2014-09-24  Jim Meyering  <meyering@fb.com>
11687         exclude: declare exclude_patopts static
11688         * lib/exclude.c (exclude_patopts): Declare static,
11689         to avoid triggering a -Wmissing-prototypes warning.
11690         The alternative (declaring it in the .h file) would
11691         require publicizing the private "struct patopts".
11693 2014-09-21  Werner Lemberg  <wl@gnu.org>
11695         dirname: support compilation with C++
11696         * lib/dirname.h: Add necessary C linkage declarations.
11698 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11700         qsort_r: include <config.h>
11701         Problem reported by Tom G. Christensen in:
11702         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
11703         * lib/qsort.c [!_LIBC]: Include <config.h> first.
11705 2014-09-16  Dylan Cali  <calid1984@gmail.com>
11707         avltree-list: avoid compiler warnings (trivial)
11708         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
11709         -Werror=suggest-attribute=pure.
11710         * lib/gl_array_list.c: Likewise.
11711         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
11712         declaration to avoid -Werror=missing-prototypes.  This is not added
11713         to a header as only exported for tests.  Add (void) to the
11714         check_invariants() call to indicate we're discarding the result
11715         in this context which avoids -Werror=unused-value.  Note we don't
11716         use ignore_value here to avoid a dependency as we know we'll not
11717         be adding __attribute__((warn_unused_result)) to check_invariants().
11718         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
11720 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11722         qsort_r: new module, for GNU-style qsort_r
11723         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
11725 2014-09-15  Werner LEMBERG  <wl@gnu.org>
11727         strerror_r-posix: support compilation with C++
11728         * lib/strerror_r.c: Add necessary C linkage declarations.
11730 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
11732         fcntl-h: fix compilation with Intel C++ compiler (trivial)
11733         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
11735 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
11737         mountlist: use /proc/self/mountinfo when available
11738         Use libmount to propagate device IDs provided by Linux in
11739         /proc/self/mountinfo.  This will give more accurate output when
11740         using df in chroot'ed environments as the device IDs are not
11741         determined by stat() which may be inaccurate within the chroot.
11742         * lib/mountlist.c (read_file_system_list): Use the libmount routines
11743         from util-linux to parse "/proc/self/mountinfo" or fall back to
11744         standard getmntent() processing.
11745         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
11746         getmntent() is used, as is the case on GNU/Linux.
11748 2014-09-07  Eric Wong  <normalperson@yhbt.net>
11750         users.txt: add cmogstored
11751         cmogstored has used gnulib since the beginning in 2012 to support
11752         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
11754 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
11756         Trivial change.
11757         * gnulib-tool: Use same options as build-aux/bootstrap to download
11758         PO files.
11760 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
11762         Trivial change.
11763         * gnulib-tool: Fallback to wget when rsync of PO files fails.
11765 2014-09-04  Eric Blake  <eblake@redhat.com>
11767         maintainer-makefile: add syntax check for useless ';;'
11768         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
11770 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
11772         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
11773         Problem reported by Assaf Gordon in:
11774         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
11775         Apparently Ubuntu is doing some fancy link-time optimization
11776         that doesn't work with -lpthread but does work with -pthread.
11777         Work around the bug by preferring -pthread to -lpthread.
11778         * m4/pthread.m4 (gl_PTHREAD_CHECK):
11779         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
11780         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11781         Treat -pthread like -lpthread.
11783 2014-09-04  Eric Blake  <eblake@redhat.com>
11785         error: drop spurious semicolon
11786         * lib/error.c (__error_at_line): Fix ';;'.
11788 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11790         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
11791         * m4/gnulib-common.m4 (AC_C_RESTRICT):
11792         Override AC_C_RESTRICT unconditionally.
11793         Update from autoconf, incorporating:
11794         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
11795         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
11797 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11799         manywarnings: add GCC 4.9 warnings
11800         Also, make it easier to maintain this in the future.
11801         * build-aux/gcc-warning.spec: Add -Wabi-tag,
11802         -Wconditionally-supported, -Wdelete-incomplete,
11803         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
11804         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
11805         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
11806         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
11807         only for older GCC versions that need them.  Handle
11808         -Wnormalized=nfc specially, so that the 'comm' command used
11809         for maintenance doesn't get confused.
11811 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11813         vasnprintf: fix bugs in width computation
11814         * lib/vasnprintf.c (VASNPRINTF):
11815         Rework previous change, which introduced a bug,
11816         to avoid the warning in a different way.
11817         Avoid undefined behavior if the width arg is less than -INT_MAX.
11818         Avoid unnecessary use of HAS_WIDTH local.
11820 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
11822         vasnprintf: Avoid signed/unsigned comparison warning.
11823         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
11824         compare end addr of generated string w/ maximum end addr.
11826 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
11828         parse-datetime: Avoid pointer difference.
11829         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
11830         instead of calculating difference of pointers.  This removes an
11831         annoying warning, devoid of any use.
11833 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11835         qsort_r: new module, for GNU-style qsort_r
11836         This works even on FreeBSD, which has an incompatible qsort_r API.
11837         * MODULES.html.sh: Add it.
11838         * doc/glibc-functions/qsort_r.texi: It's now supported.
11839         * lib/qsort.c: New file, taken from glibc with minor changes
11840         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
11841         removed.
11842         * lib/qsort_r.c: New file, compiled only on FreeBSD.
11843         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
11844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
11845         * modules/qsort_r, modules/qsort_r-tests: New files.
11846         * modules/stdlib (Makefile): Set up its defaults.
11847         * tests/test-qsort_r.c: New file.
11849 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
11851         vla: new module
11852         GNU RCS can use this, mostly for documentation I expect.  See:
11853         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
11854         * MODULES.html.sh: Add vla.
11855         * lib/vla.h, modules/vla: New files.
11857 2014-08-07  Daiki Ueno  <ueno@gnu.org>
11859         localename: make gl_locale_name_thread really thread-safe on Windows
11860         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
11861         "glthread/lock.h".
11862         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
11863         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
11865 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
11867         getpass: don't assume struct termios
11868         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
11869         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
11870         * lib/getpass.c (getpass): Port to systems lacking struct termios.
11872         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
11873         Problem reported by Jonas 'Sortie' Termansen in:
11874         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
11875         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
11876         Implement via sysconf for platforms that lack getdtablesize.
11878         vararrays: modernize AC_C_VARARRAYS for C11
11879         This backports a change I recently made to Autoconf.
11880         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
11881         VLAs are not supported, as this is what C11 does.  The old macro
11882         HAVE_C_VARARRAYS is still defined if they are supported, but is
11883         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
11885 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
11887         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
11888         * build-aux/install-reloc (func_create_wrapper): Also wrap
11889         strerror-override, stat, stat.
11891 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
11893         sys_select: fix FD_ZERO problem on Solaris 10
11894         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
11895         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
11896         to expand to an expression that invoked memset without necessarily
11897         including <string.h>.  The problem was that the first include
11898         defined _SYS_TIME_H, causing the second include to short-circuit.
11899         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
11900         Also, fix what appears to be a cut-and-paste typo, by replacing
11901         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
11902         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
11904         accept: document Solaris 10 type glitch
11905         * doc/posix-functions/accept.texi (accept): Mention that
11906         Solaris 10 'accept' takes void * last arg, not socklen_t *.
11908 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
11910         extern-inline: port to FreeBSD, DragonFly
11911         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
11912         is present if either __DragonFly__ or __FreeBSD__ is defined.
11913         FreeBSD problem reported by Andrey Borzenkov in:
11914         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
11915         Also, worry about __APPLE__ only if __MACH__ is also defined,
11916         as this is more consistent with the rest of gnulib.
11917         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
11918         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
11920 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11922         regex: Make #if/#ifdef usage consistent for DEBUG
11923         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
11924         of the inconsistent usage of #if and #ifdef as that works with
11925         both Glibc and Gnulib's style.
11927 2014-07-31  Eric Blake  <eblake@redhat.com>
11929         openat-die: use _Noreturn markup
11930         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
11931         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
11932         _Noreturn.
11934 2014-07-30  Eric Blake  <eblake@redhat.com>
11936         test-open: port to cygwin, which lacks Fortify
11937         * tests/test-open.h (ALWAYS_INLINE): New macro.
11938         (__always_inline): Don't abuse internal symbol on non-glibc.
11940 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
11942         localename: Enforce declarations before statements.
11943         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
11944         first statement.
11946 2014-07-18  Jim Meyering  <meyering@fb.com>
11948         test-userspec: don't look up numeric user names
11949         * tests/test-userspec.c: I found a system for which getpwnam("0")
11950         returned a pointer to a non-root user's entry, and that made the
11951         test fail.
11952         (T): Prefix each numeric input with "+", to inhibit lookup.
11954 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
11956         localcharset, localename: MS-Windows support for non-default locales
11957         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
11958         falling back on the default system codepage, try extracting
11959         the codepage from what 'setlocale' returns.  This allows to
11960         take into account changes of the codeset due to non-default
11961         locale set by a previous call to 'setlocale'.
11962         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
11963         Define if not already defined.
11964         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
11965         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
11966         current locale by calling 'setlocale', then converting the
11967         locale name into LCID by calling 'get_lcid'.  This allows to
11968         take into account changes in the current locale from the
11969         default one, in contrast to GetThreadLocale.
11971 2014-07-14  Daiki Ueno  <ueno@gnu.org>
11973         announce-gen: avoid failure when Digest::SHA is installed
11974         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
11975         Digest::SHA1->new in print_checksums fails.
11976         * build-aux/announce-gen (digest_classes): New associative array
11977         for available message digest implementations.
11978         (print_locations): Use it.
11980 2014-07-13  Pádraig Brady  <P@draigBrady.com>
11982         gettext: revert "update macros to version 0.19"
11983         This reverts commit 9b9370ca, as it currently requires that
11984         developers of any project that explicitly uses the gettext module
11985         or implicitly uses it through the utimens-tests or
11986         futimens-tests modules, use gettext >= 0.19.
11987         However there are some stability and availablity issues with
11988         that version at present.  We can reinstate this soon, when stability
11989         is addressed and packages are more readily available.
11991 2014-07-12  Jim Meyering  <meyering@fb.com>
11993         regex: don't deref NULL upon heap allocation failure
11994         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
11995         failure in one more place.
11996         To trigger the segfault, configure grep -with-included-regex,
11997         build it, and run these commands:
11998         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
11999         I discovered this while replying to a private report from
12000         Jens Schleusener about excessive memory consumption by grep
12001         when using a regular expression like the one above.
12003 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12005         regex: fix memory leak in compiler
12006         Fix by Andreas Schwab in:
12007         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
12008         * lib/regcomp.c (parse_reg_exp): Deallocate partially
12009         constructed tree before returning error.
12011 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12013         announce-gen: avoid perl warnings
12014         * build-aux/announce-gen: add two minor checks to avoid
12015         "use of uninitialized value" warnings when command-line parameters are
12016         missing.
12018 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
12020         localename: avoid -Wsuggest-attribute={const,pure} warnings
12021         * lib/localename.c (string_has): Tag internal function as pure.
12022         * lib/localename.h (gl_locale_name_default): Tag extern declaration
12023         as const when appropriate.
12025 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
12027         nl_langinfo: Fix last change.
12028         * lib/nl_langinfo.c (includes): Drop redundant include.
12030 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12032         error: Fix -Wundef warnings in glibc
12033         * lib/error.c [_LIBC]: Define default macros for
12034         glibc.
12035         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
12036         Check _LIBC before STRERROR_R_CHAR_P.
12038         error: Sync from glibc master
12039         * lib/error.c [_LIBC]: Remove INTUSE usage.
12040         (error_tail): Remove unused macro ALLOCA_LIMIT.
12041         Fix potential buffer overflow.  Fix potential NULL dereference
12042         in strcmp.
12044 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
12046         nl_langinfo: fix build under mingw
12047         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
12049 2014-07-09  Andrew D Warshall  <warshall@99main.com>
12051         mountlist: do not classify a bind-mounted dir entry as "dummy"
12052         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
12053         1-argument getmntent() (instead of assuming absence).
12055 2014-07-08  Eric Blake  <eblake@redhat.com>
12057         maint.mk: less syntax-check noise when SIGPIPE is ignored
12058         * top/maint.mk (_sc_header_without_use)
12059         (sc_require_config_h_first): Parse full list.
12061 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
12062             Paul Eggert  <eggert@cs.ucla.edu>
12064         nl_langinfo: CODESET on MS-Windows and more items from localeconv
12065         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
12066         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
12067         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
12068         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
12069         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
12070         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
12071         Include <stdio.h> if Microsoft Windows.
12072         Include <time.h> if !REPLACE_NL_LANGINFO.
12073         (ctype_codeset): New function, taken from rpl_nl_langinfo,
12074         and with improvements for Microsoft Windows.
12075         (rpl_nl_langinfo): Use it.
12076         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
12077         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
12078         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
12079         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
12080         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
12081         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
12082         corresponding values returned by 'localeconv'.  Compute the values
12083         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
12084         'strftime' with a suitable struct tm value.
12086 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12088         Bruno Haible has stepped down as maintainer.
12089         See Karl Berry in:
12090         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
12091         Daiki Ueno has volunteered to maintain libunistring; see:
12092         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
12093         * modules/gen-uni-tables, modules/libunistring:
12094         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
12095         * modules/unicase/base, modules/unicase/cased:
12096         * modules/unicase/empty-prefix-context:
12097         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
12098         * modules/unicase/locale-language, modules/unicase/special-casing:
12099         * modules/unicase/tocasefold, modules/unicase/tolower:
12100         * modules/unicase/totitle, modules/unicase/toupper:
12101         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
12102         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
12103         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
12104         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
12105         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
12106         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
12107         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
12108         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
12109         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
12110         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
12111         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
12112         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
12113         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
12114         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
12115         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
12116         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
12117         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
12118         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
12119         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
12120         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
12121         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
12122         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
12123         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
12124         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
12125         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
12126         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
12127         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
12128         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
12129         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
12130         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
12131         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
12132         * modules/unicase/ulc-casexfrm, modules/unicodeio:
12133         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
12134         * modules/uniconv/u16-conv-to-enc:
12135         * modules/uniconv/u16-strconv-from-enc:
12136         * modules/uniconv/u16-strconv-from-locale:
12137         * modules/uniconv/u16-strconv-to-enc:
12138         * modules/uniconv/u16-strconv-to-locale:
12139         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
12140         * modules/uniconv/u32-strconv-from-enc:
12141         * modules/uniconv/u32-strconv-from-locale:
12142         * modules/uniconv/u32-strconv-to-enc:
12143         * modules/uniconv/u32-strconv-to-locale:
12144         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
12145         * modules/uniconv/u8-strconv-from-enc:
12146         * modules/uniconv/u8-strconv-from-locale:
12147         * modules/uniconv/u8-strconv-to-enc:
12148         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
12149         * modules/unictype/bidicategory-all:
12150         * modules/unictype/bidicategory-byname:
12151         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
12152         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
12153         * modules/unictype/bidiclass-byname:
12154         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
12155         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
12156         * modules/unictype/block-all, modules/unictype/block-list:
12157         * modules/unictype/block-of, modules/unictype/block-test:
12158         * modules/unictype/category-C, modules/unictype/category-Cc:
12159         * modules/unictype/category-Cf, modules/unictype/category-Cn:
12160         * modules/unictype/category-Co, modules/unictype/category-Cs:
12161         * modules/unictype/category-L, modules/unictype/category-LC:
12162         * modules/unictype/category-Ll, modules/unictype/category-Lm:
12163         * modules/unictype/category-Lo, modules/unictype/category-Lt:
12164         * modules/unictype/category-Lu, modules/unictype/category-M:
12165         * modules/unictype/category-Mc, modules/unictype/category-Me:
12166         * modules/unictype/category-Mn, modules/unictype/category-N:
12167         * modules/unictype/category-Nd, modules/unictype/category-Nl:
12168         * modules/unictype/category-No, modules/unictype/category-P:
12169         * modules/unictype/category-Pc, modules/unictype/category-Pd:
12170         * modules/unictype/category-Pe, modules/unictype/category-Pf:
12171         * modules/unictype/category-Pi, modules/unictype/category-Po:
12172         * modules/unictype/category-Ps, modules/unictype/category-S:
12173         * modules/unictype/category-Sc, modules/unictype/category-Sk:
12174         * modules/unictype/category-Sm, modules/unictype/category-So:
12175         * modules/unictype/category-Z, modules/unictype/category-Zl:
12176         * modules/unictype/category-Zp, modules/unictype/category-Zs:
12177         * modules/unictype/category-all, modules/unictype/category-and:
12178         * modules/unictype/category-and-not, modules/unictype/category-byname:
12179         * modules/unictype/category-longname, modules/unictype/category-name:
12180         * modules/unictype/category-none, modules/unictype/category-of:
12181         * modules/unictype/category-or, modules/unictype/category-test:
12182         * modules/unictype/category-test-withtable:
12183         * modules/unictype/combining-class:
12184         * modules/unictype/combining-class-all:
12185         * modules/unictype/combining-class-byname:
12186         * modules/unictype/combining-class-longname:
12187         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
12188         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
12189         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
12190         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
12191         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
12192         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
12193         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
12194         * modules/unictype/digit, modules/unictype/joininggroup-all:
12195         * modules/unictype/joininggroup-byname:
12196         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
12197         * modules/unictype/joiningtype-all:
12198         * modules/unictype/joiningtype-byname:
12199         * modules/unictype/joiningtype-longname:
12200         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
12201         * modules/unictype/mirror, modules/unictype/numeric:
12202         * modules/unictype/property-all, modules/unictype/property-alphabetic:
12203         * modules/unictype/property-ascii-hex-digit:
12204         * modules/unictype/property-bidi-arabic-digit:
12205         * modules/unictype/property-bidi-arabic-right-to-left:
12206         * modules/unictype/property-bidi-block-separator:
12207         * modules/unictype/property-bidi-boundary-neutral:
12208         * modules/unictype/property-bidi-common-separator:
12209         * modules/unictype/property-bidi-control:
12210         * modules/unictype/property-bidi-embedding-or-override:
12211         * modules/unictype/property-bidi-eur-num-separator:
12212         * modules/unictype/property-bidi-eur-num-terminator:
12213         * modules/unictype/property-bidi-european-digit:
12214         * modules/unictype/property-bidi-hebrew-right-to-left:
12215         * modules/unictype/property-bidi-left-to-right:
12216         * modules/unictype/property-bidi-non-spacing-mark:
12217         * modules/unictype/property-bidi-other-neutral:
12218         * modules/unictype/property-bidi-pdf:
12219         * modules/unictype/property-bidi-segment-separator:
12220         * modules/unictype/property-bidi-whitespace:
12221         * modules/unictype/property-byname:
12222         * modules/unictype/property-case-ignorable:
12223         * modules/unictype/property-cased:
12224         * modules/unictype/property-changes-when-casefolded:
12225         * modules/unictype/property-changes-when-casemapped:
12226         * modules/unictype/property-changes-when-lowercased:
12227         * modules/unictype/property-changes-when-titlecased:
12228         * modules/unictype/property-changes-when-uppercased:
12229         * modules/unictype/property-combining:
12230         * modules/unictype/property-composite:
12231         * modules/unictype/property-currency-symbol:
12232         * modules/unictype/property-dash:
12233         * modules/unictype/property-decimal-digit:
12234         * modules/unictype/property-default-ignorable-code-point:
12235         * modules/unictype/property-deprecated:
12236         * modules/unictype/property-diacritic:
12237         * modules/unictype/property-extender:
12238         * modules/unictype/property-format-control:
12239         * modules/unictype/property-grapheme-base:
12240         * modules/unictype/property-grapheme-extend:
12241         * modules/unictype/property-grapheme-link:
12242         * modules/unictype/property-hex-digit:
12243         * modules/unictype/property-hyphen:
12244         * modules/unictype/property-id-continue:
12245         * modules/unictype/property-id-start:
12246         * modules/unictype/property-ideographic:
12247         * modules/unictype/property-ids-binary-operator:
12248         * modules/unictype/property-ids-trinary-operator:
12249         * modules/unictype/property-ignorable-control:
12250         * modules/unictype/property-iso-control:
12251         * modules/unictype/property-join-control:
12252         * modules/unictype/property-left-of-pair:
12253         * modules/unictype/property-line-separator:
12254         * modules/unictype/property-logical-order-exception:
12255         * modules/unictype/property-lowercase, modules/unictype/property-math:
12256         * modules/unictype/property-non-break:
12257         * modules/unictype/property-not-a-character:
12258         * modules/unictype/property-numeric:
12259         * modules/unictype/property-other-alphabetic:
12260         * modules/unictype/property-other-default-ignorable-code-point:
12261         * modules/unictype/property-other-grapheme-extend:
12262         * modules/unictype/property-other-id-continue:
12263         * modules/unictype/property-other-id-start:
12264         * modules/unictype/property-other-lowercase:
12265         * modules/unictype/property-other-math:
12266         * modules/unictype/property-other-uppercase:
12267         * modules/unictype/property-paired-punctuation:
12268         * modules/unictype/property-paragraph-separator:
12269         * modules/unictype/property-pattern-syntax:
12270         * modules/unictype/property-pattern-white-space:
12271         * modules/unictype/property-private-use:
12272         * modules/unictype/property-punctuation:
12273         * modules/unictype/property-quotation-mark:
12274         * modules/unictype/property-radical:
12275         * modules/unictype/property-sentence-terminal:
12276         * modules/unictype/property-soft-dotted:
12277         * modules/unictype/property-space:
12278         * modules/unictype/property-terminal-punctuation:
12279         * modules/unictype/property-test, modules/unictype/property-titlecase:
12280         * modules/unictype/property-unassigned-code-value:
12281         * modules/unictype/property-unified-ideograph:
12282         * modules/unictype/property-uppercase:
12283         * modules/unictype/property-variation-selector:
12284         * modules/unictype/property-white-space:
12285         * modules/unictype/property-xid-continue:
12286         * modules/unictype/property-xid-start:
12287         * modules/unictype/property-zero-width, modules/unictype/scripts:
12288         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
12289         * modules/unictype/syntax-c-whitespace:
12290         * modules/unictype/syntax-java-ident:
12291         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
12292         * modules/unigbrk/u16-grapheme-breaks:
12293         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
12294         * modules/unigbrk/u32-grapheme-breaks:
12295         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
12296         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
12297         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
12298         * modules/unigbrk/uc-is-grapheme-break:
12299         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
12300         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
12301         * modules/unilbrk/u16-width-linebreaks:
12302         * modules/unilbrk/u32-possible-linebreaks:
12303         * modules/unilbrk/u32-width-linebreaks:
12304         * modules/unilbrk/u8-possible-linebreaks:
12305         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
12306         * modules/unilbrk/ulc-possible-linebreaks:
12307         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
12308         * modules/uniname/uniname, modules/uninorm/base:
12309         * modules/uninorm/canonical-decomposition:
12310         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
12311         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
12312         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
12313         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
12314         * modules/uninorm/nfkc, modules/uninorm/nfkd:
12315         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
12316         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
12317         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
12318         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
12319         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
12320         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
12321         * modules/unistdio/base, modules/unistdio/u-printf-args:
12322         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
12323         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
12324         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
12325         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
12326         * modules/unistdio/u16-u16-sprintf:
12327         * modules/unistdio/u16-u16-vasnprintf:
12328         * modules/unistdio/u16-u16-vasprintf:
12329         * modules/unistdio/u16-u16-vsnprintf:
12330         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
12331         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
12332         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
12333         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
12334         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
12335         * modules/unistdio/u32-u32-asnprintf:
12336         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
12337         * modules/unistdio/u32-u32-sprintf:
12338         * modules/unistdio/u32-u32-vasnprintf:
12339         * modules/unistdio/u32-u32-vasprintf:
12340         * modules/unistdio/u32-u32-vsnprintf:
12341         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
12342         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
12343         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
12344         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
12345         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
12346         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
12347         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
12348         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
12349         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
12350         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
12351         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
12352         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
12353         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
12354         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
12355         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
12356         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
12357         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
12358         * modules/unistr/u16-check, modules/unistr/u16-chr:
12359         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
12360         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
12361         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
12362         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
12363         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
12364         * modules/unistr/u16-move, modules/unistr/u16-next:
12365         * modules/unistr/u16-prev, modules/unistr/u16-set:
12366         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
12367         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
12368         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
12369         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
12370         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
12371         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
12372         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
12373         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
12374         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
12375         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
12376         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
12377         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
12378         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
12379         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
12380         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
12381         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
12382         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
12383         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
12384         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
12385         * modules/unistr/u32-next, modules/unistr/u32-prev:
12386         * modules/unistr/u32-set, modules/unistr/u32-startswith:
12387         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
12388         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
12389         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
12390         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
12391         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
12392         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
12393         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
12394         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
12395         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
12396         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
12397         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
12398         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
12399         * modules/unistr/u8-check, modules/unistr/u8-chr:
12400         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
12401         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
12402         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
12403         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
12404         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
12405         * modules/unistr/u8-next, modules/unistr/u8-prev:
12406         * modules/unistr/u8-set, modules/unistr/u8-startswith:
12407         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
12408         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
12409         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
12410         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
12411         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
12412         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
12413         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
12414         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
12415         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
12416         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
12417         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
12418         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
12419         * modules/uniwbrk/base, modules/uniwbrk/table:
12420         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
12421         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
12422         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
12423         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
12424         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
12425         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
12426         * modules/uniwidth/width, modules/utf16-ucs4:
12427         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
12428         * modules/utf8-ucs4-unsafe:
12429         Change maintainer from Bruno Haible to Daiki Ueno.
12430         This is my guess at the libunistring modules; please feel free
12431         to fix if I guessed incorrectly.
12432         * modules/accept4, modules/acl, modules/acos, modules/acosf:
12433         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
12434         * modules/areadlink, modules/array-list, modules/array-mergesort:
12435         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
12436         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
12437         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
12438         * modules/binary-io, modules/bison-i18n, modules/btowc:
12439         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
12440         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
12441         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
12442         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
12443         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
12444         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
12445         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
12446         * modules/closedir, modules/concat-filename, modules/copy-file:
12447         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
12448         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
12449         * modules/csharpcomp-script, modules/csharpexec:
12450         * modules/csharpexec-script, modules/ctype, modules/diffseq:
12451         * modules/dprintf, modules/dprintf-posix, modules/dup:
12452         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
12453         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
12454         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
12455         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
12456         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
12457         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
12458         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
12459         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
12460         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
12461         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
12462         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
12463         * modules/findprog, modules/findprog-lgpl, modules/floor:
12464         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
12465         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
12466         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
12467         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
12468         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
12469         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
12470         * modules/freadable, modules/freadahead, modules/freadptr:
12471         * modules/freadseek, modules/freopen, modules/frexp:
12472         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
12473         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
12474         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
12475         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
12476         * modules/ftello, modules/full-read, modules/full-write:
12477         * modules/fwritable, modules/fwriteerror, modules/gcd:
12478         * modules/get-rusage-as, modules/get-rusage-data:
12479         * modules/getdtablesize, modules/getrusage, modules/gettext:
12480         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
12481         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
12482         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
12483         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
12484         * modules/iconv, modules/iconv-h, modules/iconv_open:
12485         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
12486         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
12487         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
12488         * modules/integer_length_ll, modules/ioctl, modules/isatty:
12489         * modules/isblank, modules/isnand, modules/isnand-nolibm:
12490         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
12491         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
12492         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
12493         * modules/javaexec, modules/javaexec-script, modules/javaversion:
12494         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
12495         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
12496         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
12497         * modules/lib-symbol-visibility, modules/libsigsegv:
12498         * modules/linked-list, modules/linkedhash-list, modules/list:
12499         * modules/localcharset, modules/locale, modules/localeconv:
12500         * modules/localename, modules/lock, modules/log, modules/log-ieee:
12501         * modules/log10, modules/log10-ieee, modules/log10f:
12502         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
12503         * modules/log1p, modules/log1p-ieee, modules/log1pf:
12504         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
12505         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
12506         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
12507         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
12508         * modules/logf, modules/logf-ieee, modules/login_tty:
12509         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
12510         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
12511         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
12512         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
12513         * modules/mbscspn, modules/mbsinit, modules/mbslen:
12514         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
12515         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
12516         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
12517         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
12518         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
12519         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
12520         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
12521         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
12522         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
12523         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
12524         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
12525         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
12526         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
12527         * modules/posix_spawn, modules/posix_spawn-internal:
12528         * modules/posix_spawn_file_actions_addclose:
12529         * modules/posix_spawn_file_actions_adddup2:
12530         * modules/posix_spawn_file_actions_addopen:
12531         * modules/posix_spawn_file_actions_destroy:
12532         * modules/posix_spawn_file_actions_init:
12533         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
12534         * modules/posix_spawnattr_getpgroup:
12535         * modules/posix_spawnattr_getschedparam:
12536         * modules/posix_spawnattr_getschedpolicy:
12537         * modules/posix_spawnattr_getsigdefault:
12538         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
12539         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
12540         * modules/posix_spawnattr_setschedparam:
12541         * modules/posix_spawnattr_setschedpolicy:
12542         * modules/posix_spawnattr_setsigdefault:
12543         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
12544         * modules/pow, modules/powf, modules/printf-frexp:
12545         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
12546         * modules/progname, modules/propername, modules/pselect:
12547         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
12548         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
12549         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
12550         * modules/read, modules/readdir, modules/readlink:
12551         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
12552         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
12553         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
12554         * modules/relocatable-script, modules/remainder:
12555         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
12556         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
12557         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
12558         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
12559         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
12560         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
12561         * modules/setlocale, modules/sh-quote, modules/shutdown:
12562         * modules/signal, modules/signbit, modules/sigpipe:
12563         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
12564         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
12565         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
12566         * modules/snippet/link-warning, modules/snippet/unused-parameter:
12567         * modules/snprintf, modules/snprintf-posix, modules/spawn:
12568         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
12569         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
12570         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
12571         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
12572         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
12573         * modules/streq, modules/strerror_r-posix, modules/striconv:
12574         * modules/striconveh, modules/striconveha, modules/strncat:
12575         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
12576         * modules/sublist, modules/sys_resource, modules/sys_utsname:
12577         * modules/sys_wait, modules/system-posix, modules/system-quote:
12578         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
12579         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
12580         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
12581         * modules/truncf, modules/truncf-ieee, modules/truncl:
12582         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
12583         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
12584         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
12585         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
12586         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
12587         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
12588         * modules/wait-process, modules/waitpid, modules/wcpcpy:
12589         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
12590         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
12591         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
12592         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
12593         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
12594         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
12595         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
12596         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
12597         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
12598         * modules/write, modules/xconcat-filename, modules/xlist:
12599         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
12600         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
12601         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
12602         * modules/y0, modules/y1, modules/yn:
12603         Remove Bruno Haible as maintainer; if he's the sole maintainer,
12604         change the maintainer to 'all'.  Let's hope someone volunteers.
12606 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
12608         mktime: merge #if/#ifdef usage from glibc
12609         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
12610         as that works with both Glibc's and Gnulib's style.
12611         See thread starting at Siddhesh Poyarekar's bug report at:
12612         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
12614 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
12616         git-version-gen: improve option descriptions
12617         * build-aux/git-version-gen: Mention that --prefix and --fallback
12618         have a mandatory argument.
12620 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12622         regex: fix memory leak in compiler
12623         Fix by Andreas Schwab in:
12624         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
12625         * lib/regcomp.c (parse_expression): Deallocate partially
12626         constructed tree before returning error.
12628         regex: merge patch from libc
12629         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
12630         Combine __USE_BSD and __USE_SVID into __USE_MISC.
12631         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
12633 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12635         acl: port to gcc -Wredundant-decls
12636         From a request by Dmitry Antipov in:
12637         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
12638         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
12639         "#ifndef _GL_ACL_H".
12641 2014-06-11  Bruce Korb  <bkorb@gnu.org>
12642         Jim Meyering  <meyering@fb.com>
12644         parse-duration: eliminate 68-year duration limit
12645         * lib/parse-duration.c: Include "intprops.h".
12646         (TIME_MAX): Rename to MAX_DURATION and define to
12647         TYPE_MAXIMUM(time_t).
12648         * modules/parse-duration (Depends-on): Add intprops.
12649         Reported by Jonas 'Sortie' Termansen.
12651 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12653         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
12654         * modules/pthread (Depends-on): Add 'extensions', as it defines
12655         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
12656         (configure.ac-early): New section.
12657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
12658         it is no longer needed.
12660 2014-06-14  Pádraig Brady  <P@draigBrady.com>
12662         pthread: define thread-safe macros on some platforms
12663         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
12664         for thread-safe operation on some platforms.
12666 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12668         regex: don't be multithreaded if USE_UNLOCKED_IO.
12669         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
12670         * lib/regex_internal.h: Do not use multithreaded version if
12671         USE_UNLOCKED_IO is defined.  This is a hack, but it works
12672         around a porting bug with coreutils 8.22 on AIX 7.1.
12674 2014-06-11  Daiki Ueno  <ueno@gnu.org>
12676         gettext: update macros to version 0.19
12677         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
12678         depend on gl_EXTERN_INLINE and drop support for older Bison
12679         versions.
12681 2014-06-10  Pádraig Brady  <P@draigBrady.com>
12683         select,poll: fix console handle check on windows 8
12684         lib/poll.c (IsConsoleHandle): Change from testing the lower
12685         2 bits of the handle to the more expensive but accurate syscall.
12686         lib/select.c: Likewise.
12688 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
12690         select: fix waiting on anonymous pipes on MS-Windows
12691         * lib/select.c (rpl_select): Fall back to polling when select()
12692         indicates there is nothing to check, while due to the timeout not
12693         expiring, activity is indicated on one of the handles.
12694         Also clear the TIMEOUT argument if the timer does expire.
12696 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
12698         times: fix to return non constant value on MS-Windows
12699         * lib/times.c (times): Don't use the process creation time,
12700         rather clock() which on windows returns the number of
12701         clock ticks since the process started.
12703 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
12705         isatty: fix to work on windows 8
12706         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
12707         2 bits of the handle to the more expensive but accurate syscall.
12709 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12711         maint: fix typo in fdl.texi
12712         * doc/fdl.texi: Fix typo (missing '@').
12713         Somehow this was in fdl.texi but not fdl-1.3.texi.
12715 2014-06-06  Ben Walton  <bdwalton@gmail.com>
12717         mountlist: avoid hasmntopt const type warning on solaris
12718         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
12719         with char * instead of const char *.  Passing the constant string
12720         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
12721         to avoid the warning.
12723 2014-06-04  Eric Blake  <eblake@redhat.com>
12725         maintainer-makefile: delete obsolete code
12726         * top/maint.mk (build_aux): Drop old code, as threatened.
12728         maintainer-makefile: avoid spurious error messages
12729         * top/maint.mk (syntax-check): Guard definition and use of
12730         $(shell) by whether Makefile is present.
12732 2014-06-03  Ben Walton  <bdwalton@gmail.com>
12734         rename: avoid unused-but-set-variable compiler warning
12735         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
12736         it is possible that dst_exists may be set but not used.  Mark it with
12737         the unused attribute to avoid compiler warnings.
12739 2014-06-02  Ben Walton  <bdwalton@gmail.com>
12741         rename: mark a label as potentially unused
12742         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
12743         by marking the out label as potentially unused.
12744         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
12746 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
12748         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
12749         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
12751 2014-06-02  Ben Walton  <bdwalton@gmail.com>
12753         acl: apply pure attribute to two functions
12754         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
12755         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
12757 2014-06-01  Pádraig Brady  <P@draigBrady.com>
12759         gnulib-common.m4: add _GL_UNUSED_LABEL
12760         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
12761         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
12763 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12765         dup2, fcntl, fcntl-h: port to AIX 7.1
12766         This fixes some porting problems discovered when testing the latest
12767         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
12768         in grep but it could be important for other applications.
12769         * doc/posix-functions/dup2.texi:
12770         * doc/posix-functions/fcntl.texi:
12771         * doc/posix-headers/fcntl.texi:
12772         Document AIX bugs.
12773         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
12774         Define to 0 if outside 'int' range.
12775         * m4/dup2.m4 (gl_FUNC_DUP2):
12776         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12777         Check for getdtablesize.  If it's available, test a value just
12778         outside its range instead of testing 1000000.  When cross-compiling,
12779         guess that AIX will fail this improved test.
12781 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12783         printf, config.rpath: Port to FreeBSD 10.
12784         Problem reported by Tijl Coosemans in:
12785         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
12786         * build-aux/config.rpath (hardcode_libdir_flag_spec)
12787         (hardcode_direct): Simplify FreeBSD configuration.
12788         (library_names_spec): Don't mishandle FreeBSD 10+.
12789         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
12790         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
12791         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
12792         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
12793         Don't mishandle FreeBSD 10+ when cross-compiling.
12795         ftoastr: work around compiler bug in IBM xlc 12.1
12796         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
12797         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
12798         around a compiler bug in IBM xlc 12.1.0.0: it complains
12799         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
12800         _GL_FLT_PREC_BOUND.'
12802 2014-05-30  Kieran Colford  <colfordk@gmail.com>
12804         valgrind-tests: fixed misleading help message
12805         * m4/valgrind-tests.m4: The help message generated by configure
12806         implied that valgrind was disabled by default, which it wasn't.
12807         Adjusted the help message using s/enable/disable/ to clarify.
12809 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
12811         isfinite, isinf, isnan tests: fix for little-endian PowerPC
12812         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
12813         first double of a PowerPC "double double" pair.
12814         * tests/test-isinf.c (test_isinfl): Likewise.
12815         * tests/test-isnan.c (test_long_double): Likewise.
12816         * tests/test-isnanl.h (main): Likewise.
12817         * tests/test-signbit.c (test_signbitl): Likewise.
12819 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12821         exclude-tests: port to AIX 7.1
12822         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
12823         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
12824         the regex code uses locks.
12826 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
12828         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
12829         Without this fix, Emacs would sometimes call sigprocmask instead
12830         of pthread_sigmask, which is a no-no in multithreaded applications.
12831         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
12832         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12833         Suppress check for pthread_sigmask working without -lpthread if
12834         the application always links with -lpthread.  Do not link with
12835         $LIBMULTITHREAD if gl_THREADLIB is not defined.
12836         * m4/timer_time.m4 (gl_TIMER_TIME):
12837         Require gl_THREADLIB only if it is defined.  Do not append
12838         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
12840 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
12842         gnulib-tool: wget translations using --no-verbose rather than --quiet
12843         This allows the user to see error messages if any (--quiet hides them)
12844         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
12846 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
12848         gnulib-tool: adjust translation wget to avoid a https redirection
12849         Context: http://translationproject.org/latest/gnulib redirects to
12850            https://translationproject.org/latest/gnulib/
12851         Rationale: if the user falls back to wget, she doesn't have rsync and
12852         is probably in a minimal build environment, where packages such as
12853         'ca-certificates' are missing as well, resulting in a failed (and
12854         difficult to detect since ignored) translation initial fetch.
12855         Consequently let's avoid https if possible, and add the missing
12856         trailing slash.  This also avoids an unnecessary 302 redirection.
12857         * gnulib-tool: Add trailing slash to gnulib URL.
12859 2014-05-22  Pádraig Brady  <P@draigBrady.com>
12861         getlogin_r-tests: check return value rather than errno
12862         * tests/test-getlogin_r.c (main): As per POSIX we should be
12863         verifying the return value from getlogin_r() rather than errno.
12865 2014-05-22  Pádraig Brady  <P@draigBrady.com>
12867         getlogin_r-tests: fix various issues in recent change
12868         * tests/test-getlogin_r.c: Include required headers that were
12869         missed in recent commit eec20b4e.
12870         Also consistently check the errno rather than the return value from
12871         getlogin_r as POSIX only specifies that non zero is returned on error.
12872         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
12874 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12876         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
12877         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
12878         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
12879         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
12880         * lib/spawn-pipe.c:
12881         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
12882         and then 'int open64(const char *, int, ...);', which means the
12883         declaration for 'open' gets lost if we later '#undef open'.
12884         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
12885         where the compilation reported the non-fatal error "In function
12886         'openat_proc_name' ... warning: implicit declaration of function
12887         'open'".  In this case the error is relatively harmless, but in
12888         other cases it might not be so minor.
12890 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12892         xalloc: don't potentially generate invalid code for xmemdup calls
12893         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
12894         this function can initialize the newly-allocated storage with new
12895         pointers, which means this function is not malloc-like.  See:
12896         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
12898 2014-05-19  Pádraig Brady  <P@draigBrady.com>
12900         getlogin_r-tests: avoid false failure under sudo/ssh etc.
12901         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
12902         changes from commit 97249cf29 to not depend on environment variables.
12904 2014-05-18  Pádraig Brady  <P@draigBrady.com>
12906         getlogin-tests: avoid false failure under cron
12907         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
12908         since that's not what's under test.  Centos 6 was seen to return
12909         EINVAL for ttyname() when run from cron.
12911 2014-05-16  Jim Meyering  <meyering@fb.com>
12913         mbrtowc.m4: fix a comment typo
12914         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
12915         emitted documentation string.
12917 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12919         mbrlen, mbrtowc: fix bug with empty input
12920         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
12921         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
12922         so this is mainly for documentation.
12923         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
12924         (gl_FUNC_MBRTOWC): Use it.
12925         * tests/test-mbrtowc.c (main): Test for the bug.
12927 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
12929         doc: document mbrtowc and mbrlen problem with empty input
12930         * doc/posix-functions/mbrlen.texi (mbrlen):
12931         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12932         Document portability problem when the input string is empty.  See:
12933         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
12935         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
12936         Problem reported by Eli Zaretskii in:
12937         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
12938         * doc/posix-functions/execl.texi (execl):
12939         * doc/posix-functions/execle.texi (execle):
12940         * doc/posix-functions/execlp.texi (execlp):
12941         * doc/posix-functions/execv.texi (execv):
12942         * doc/posix-functions/execve.texi (execve):
12943         * doc/posix-functions/execvp.texi (execvp):
12944         Mention spawn+exit problem on non-Cygwin Windows platforms.
12946 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
12948         getlogin-tests: avoid false failure under sudo/ssh etc.
12949         * modules/getlogin-tests (configure.ac): Check for ttyname().
12950         * tests/test-getlogin.c (main): Don't depend on environment variables
12951         to correlate with getlogin(), since sudo and ssh etc. can tamper
12952         with the LOGNAME and USER env vars.  Instead lookup the name from
12953         the uid associated with the stdin tty.
12955 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12957         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
12958         These were found when building the latest grep snapshot on IRIX 6.5.
12959         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
12960         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
12961         never used later.
12962         * lib/quotearg.c (quoting_options_from_style):
12963         * lib/xstrtol.c (__xstrtol):
12964         Use enum instead of 0, to pacify IRIX 6.5 cc.
12966 2014-04-18  Pádraig Brady  <P@draigBrady.com>
12968         gitlog-to-changelog: revert inclusion of git-log-fix file
12969         * build-aux/git-log-fix: Delete dummy file.
12970         * modules/gitlog-to-changelog: Don't reference (overwrite)
12971         the project specific git-log-fix file.
12973 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
12975         maint.mk: Relax the copyright check to cater for non FSF projects
12976         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
12977         to not require the "Free" suffix after the copyright years.
12979 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
12981         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
12982         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
12983         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
12984         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
12985         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
12987 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
12989         exclude: port to strict C99
12990         Strict C does not allow converting a function pointer to void *
12991         and vice versa.  Pass a pointer to a function pointer instead.
12992         * lib/exclude.c (add_exclude_file):
12993         Pass the address of the function pointer.
12994         (call_addfn): And deference the address here, to match.
12996 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12998         regex: do not depend on malloc-gnu
12999         * modules/regex (Depends-on): Remove malloc-gnu.
13000         It's no longer needed, because of the 2012-12-29 patch
13001         "regex: port to hosts where malloc (0) == NULL".
13002         Reported by Nathan Kennedy in:
13003         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
13005 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
13007         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
13008         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
13009         * doc/posix-functions/expl.texi: Mention the workaround.
13011 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13013         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
13014         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
13015         size to be zero even when the pointer is nonnull.  This
13016         accommodates the use case where P is malloc (0) and *PN is 0 on a
13017         host where malloc (0) yields nonnull.
13019 2014-04-09  Eric Blake  <eblake@redhat.com>
13021         fts: avoid unnecessary strlen calls
13022         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
13024 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13026         fts: avoid unnecessary strlen calls
13027         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
13028         when that can be faster than strlen.
13030 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13032         fts: avoid unnecessary strlen calls
13033         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
13034         (fts_build): Store the length of the dp->d_name entry in a local variable
13035         instead of calling strlen() several times via the above, removed macro.
13036         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
13037         run by ~4%, yet this reduces the execution time by about a third if run
13038         via "ltrace -c rm -rf some-dir".
13040 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13042         obstack: Remove ancient NeXTSTEP gcc support conditional
13043         This change will ease merging with glibc.  The "#if ... __NEXT__"
13044         causes a warning with -Wundef which glibc now enables by default.
13045         Problem reported by Will Newton in
13046         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
13047         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
13048         so go with that.
13049         * lib/obstack.h (__extension__):
13051 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
13053         obstack: merge with glibc changes
13054         * lib/obstack.c, lib/obstack.h: Merge from glibc.
13055         This is mostly indenting and commentary changes.
13056         Instances of 'register' have been removed.
13058 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13060         strftime: wrap macros in "do {...} while(0)"
13061         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
13062         this macro in "do {...} while(0)" to prevent false use as a
13063         single statement, e.g., in an un-braced "{}" else-block.
13064         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
13065         (strftime_case_): Remove 'else' after 'goto' - which was the
13066         only non-fatal, un-braced use of one of the above macros.
13067         Spotted by coverity (NESTING_INDENT_MISMATCH).
13069 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
13071         modechange: avoid memory leaks for invalid octal modes
13072         * lib/modechange.c (mode_compile): During the parsing of
13073         notations like +40, free the 'mc' buffer for invalid mode
13074         strings like +17777 (greater than the maximum octal mode),
13075         =18 (bad octal mode characters) or u=1 ('affected' with
13076         octal modes).
13077         Reproducer, e.g.:
13078             $ valgrind --leak-check=full chmod +17777 file
13079         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
13080         add notations +40, 00440, etc.".
13081         Spotted by coverity (RESOURCE_LEAK).
13083 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13085         gitlog-to-changelog: include a dummy git-log-fix file
13086         Problem reported by Nathan Stratton Treadway in:
13087         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
13088         * build-aux/git-log-fix: New file.
13090 2014-03-13  Jim Meyering  <meyering@fb.com>
13092         gitlog-to-changelog: also include the file, git-log-fix
13093         * modules/gitlog-to-changelog (Files): Add git-log-fix.
13094         Reported by Assaf Gordon.
13096 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
13098         regex: port to OS X 10.8.5 en_US.UTF-8 locale
13099         This fixes a bug when ignoring case and when comparing the
13100         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
13101         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
13102         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
13103         titlecase letter is neither lowercase nor uppercase, but
13104         uppercasing the titlecase letter (via towupper) yields the
13105         uppercase letter, so the two letters should match when ignoring case.
13106         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
13107         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
13108         Don't test whether a character is lowercase before uppercasing it.
13110 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
13112         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
13113         This is basically one of the options Bruno Haible proposed in:
13114         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
13115         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
13116         * lib/stdint.in.h: Use it.
13117         * modules/stdint (Depends-on): Add sys_types.
13119 2014-02-26  Pádraig Brady  <P@draigBrady.com>
13121         parse-datetime: fix crash or infloop in TZ="" parsing
13122         * lib/parse-datetime.y (parse_datetime): Break out of the
13123         TZ="" parsing loop once the second significant " is found.
13124         Also skip over any subsequent whitespace to be consistent
13125         with the non TZ= case.
13126         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
13128 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
13130         savedir: new symbol for fast-read version
13131         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
13132         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
13133         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
13134         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
13136 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
13138         unistd: port readlink to Mac OS X 10.3.9
13139         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
13140         around self-include problem in Mac OS X 10.3.9 when combined with
13141         readlink module.  Problem reported by Klaus Zietler in
13142         <http://bugs.gnu.org/16825>.
13144 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
13146         diffseq: remove TOO_EXPENSIVE heuristic
13147         Problem with diffutils reported by Vincent Lefevre in
13148         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
13149         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
13150         Although appropriate for circa-1993 hardware, these days the heuristic
13151         seems to be more trouble than it's worth.
13152         * lib/diffseq.h: Modernize citations.
13153         (struct context): Remove member too_expensive.
13154         All uses changed.
13155         (struct partition): Remove members lo_minimal, hi_minimal.
13156         All uses changed.
13157         (diag, compareseq): Remove arg find_minimal.  All uses changed.
13158         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
13159         1993 to make 'diff' run faster (but not as well) on large inputs.
13160         These days, computers are fast enough that it's typically better
13161         to run slower but more accurately.
13162         * lib/fstrcmp.c: Remove duplicate comment.
13163         * lib/fstrcmp.c (strcmp_bounded):
13164         * lib/git-merge-changelog.c (compute_differences):
13165         Adjust to diffseq.h changes.
13166         * NEWS: Document the change.
13168         savedir: simplify by using stpcpy
13169         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
13170         (streamsavedir): Use stpcpy instead.
13171         * modules/savedir (Depends-on): Add stpcpy.
13173 2014-02-21  Pádraig Brady  <P@draigBrady.com>
13175         spawn: fix link error on uclibc
13176         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
13177         to incorporate -lrt if needed (on uclibc for example).
13178         * modules/posix_spawn: Reference the substituted LIB.
13180 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
13181         timer: fix uClibc detection of threading
13182         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
13183         enabled in uClibc.
13185 2014-02-21  Eric Blake  <eblake@redhat.com>
13187         maintainer-makefiles: provide AC_PROG_SED for older autoconf
13188         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
13190 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
13192         exclude: add support for posix regexps
13194         This commit adds support for POSIX extended regular expressions
13195         and fixes a long-standing memory leak (pattern buffer was never
13196         freed).  It also implements a new interface function to read
13197         exclude patterns from a FILE, which passes an additional parameter
13198         to its callback function, thereby allowing to preserve its state
13199         between invocations.
13201         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
13202         (pattern_buffer): New struct.
13203         (exclude): New member patbuf.
13204         (exclude_add_pattern_buffer): New function.
13205         (free_exclude_segment): Free regexps.
13206         (free_exclude): Free allocated pattern buffers.
13207         (exclude_patopts): New function.
13208         (file_pattern_matches): Use exclude_patopts.
13209         (add_exclude): support regexps.
13210         (add_exclude_fp): New function.
13211         (add_exclude_file): Rewrite using add_exclude_fp.
13212         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
13213         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
13214         (add_exclude_fp)
13215         (add_exclude_file): Rewrite using add_exclude_fp.
13216         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
13217         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
13218         (add_exclude_fp)
13219         (exclude_add_pattern_buffer): New prototypes.
13220         * modules/exclude: Depends on regex and filename.
13222 2014-02-20  Eric Blake  <eblake@redhat.com>
13224         maintainer-makefiles: use $(SED) for syntax check
13225         * modules/maintainer-makefile (configure.ac): Check for sane sed.
13226         * top/maint.mk: Change sed to $(SED).
13228 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
13229             Paul Eggert  <eggert@cs.ucla.edu>
13231         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
13232         Patch based on an idea by Dick Streefland in
13233         <https://savannah.gnu.org/patch/?7892>.
13234         * NEWS: Document this.
13235         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
13236         (direntry_t, comparison_function): New types.
13237         (direntry_cmp_name): New function.
13238         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
13239         (streamsavedir, savedir): New arg OPTION.
13240         (streamsavedir): Simplify memory allocation.
13241         (fdsavedir): Remove.
13242         * lib/savedir.h (enum savedir_option): New type.
13243         (streamsavedir, savedir): New arg OPTION.
13244         (fdsavedir): Remove.
13246 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13248         file-type: add support for doors and other less-common file types
13249         Problem with S_ISDOOR reported by Rich Burridge.
13250         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
13251         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
13252         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
13254 2014-01-23  Eric Blake  <eblake@redhat.com>
13256         pthread: work around winpthread header pollution on mingw
13257         * lib/time.in.h: Move pthread workarounds...
13258         * lib/pthread.in.h: ...here.
13259         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
13260         detect macro pollution on mingw.
13261         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
13263 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13265         qacl: check for fchmod
13266         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
13267         and qset-acl.c both use HAVE_FCHMOD.
13269 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13271         fdopen-tests: port to Tru64
13272         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
13273         descriptor that is not open, as POSIX doesn't specify the
13274         resulting behavior and the test does not work on Tru64.
13275         Problem reported by Steven M. Schweda in:
13276         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
13278         stdalign: port to HP-UX compilers
13279         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
13280         if __HP_cc or __HP_aCC are nonzero.
13282 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13284         strtoimax: port to platforms lacking 'long long'
13285         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
13286         check whether strtoll is declared, which causes the C file to
13287         wrongly report an error.  Problem reported by Steven M. Schweda in:
13288         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
13289         * lib/strtoimax.c (strtoull):
13290         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
13291         (strtoll): Declare only if HAVE_LONG_LONG_INT.
13293 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
13295         relocatable-perl: fix texi syntax
13296         * doc/relocatable-maint.texi: Escape braces.
13298 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
13300         relocatable-perl: like relocatable-script, but for Perl scripts
13301         * build-aux/relocatable.pl.in: Add.
13302         * doc/relocatable-maint.texi: Add documentation.
13303         * modules/relocatable-perl: Add.
13305 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
13307         tests: fix export bug in previous patch
13308         Problem reported by Jim Meyering.
13309         * tests/init.sh (re_shell): New var, which is exported instead of
13310         re_shell_.
13312         tests: simplify porting to Solaris 10 /bin/sh
13313         Some test cases in 'grep' need a shell that groks '$(';
13314         export re_shell_ for their benefit.  Problem reported for 'grep'
13315         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
13316         * tests/init.sh (re_shell_): Export if it's used.
13318 2014-01-06  Eric Blake  <eblake@redhat.com>
13320         md5, sha1, sha256, sha512: support older autoconf
13321         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
13322         for autoconf < 2.63b.
13324         include_next: port to autoconf 2.63
13325         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
13327 2014-01-04  Jim Meyering  <meyering@fb.com>
13329         maint: add a gnulib-local rule to keep non-ascii out of .texi files
13330         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
13331         so that "make sc_maint" will ding anyone who puts non-ascii
13332         in any of gnulib's .texi files.
13334 2014-01-03  Jim Meyering  <meyering@fb.com>
13336         freadable, fwritable, fwriting: declare with the "pure" attribute
13337         * lib/freadable.h (freadable): Declare with the "pure" attribute.
13338         * lib/fwritable.h (fwritable): Likewise.
13339         * lib/fwriting.h (fwriting): Likewise.
13340         Suggested by Bruno Haible.
13342         maint.mk: adapt openat.h-include-without-use test
13343         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
13344         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
13345         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
13346         With this change, running "make sc_maint" in gnulib's top-level
13347         directory now passes for me.
13349 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13351         doc: use ASCII in .texi files where UTF-8 isn't needed
13352         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
13353         * doc/posix-functions/setkey.texi, doc/regex.texi:
13354         Use ASCII input, not UTF-8.
13356 2014-01-02  Jim Meyering  <meyering@fb.com>
13358         freading: declare with the "pure" attribute
13359         * lib/freading.h (freading): Declare with the "pure" attribute.
13361         manywarnings: remove -Wmudflap
13362         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
13363         it is no longer supported in gcc-4.9-to-be.
13365 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13367         relocatable-script: remove unused code
13368         Problem reported by Reuben Thomas in:
13369         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
13370         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
13372 2014-01-01  Jim Meyering  <meyering@fb.com>
13374         maint: fix public-submodule-commit to work with newer git
13375         * top/maint.mk (public-submodule-commit): Remove excess quoting.
13376         We were over-quoting the test arguments, and somewhere prior to
13377         version 1.8.5.2.229, git stopped removing those excess quotes,
13378         which made the test fail, since the unexpanded strings would
13379         always differ; using GIT_TRACE=1 confirmed that the git merge-base
13380         command wasn't even being run.
13382 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13384         doc: update main copyright year
13385         * doc/gnulib.texi: Update copyright date.
13387 2014-01-01  Eric Blake  <eblake@redhat.com>
13389         version-etc: new year
13390         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
13391         * all files: run 'make update-copyright'
13393 2013-12-24  Eric Blake  <eblake@redhat.com>
13395         passfd: give nicer error for recvfd at eof
13396         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
13397         * tests/test-passfd.c (main): Enhance test to cover this.
13399 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13401         gettimeofday: port recent C++ fix to Emacs
13402         Without this further patch, Emacs won't build due to
13403         the portcheck failing.  Also, this simplifies the patch a bit.
13404         * lib/time.in.h (localtime, gmtime): Don't replace unless
13405         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
13406         * lib/time.in.h (localtime, gmtime):
13407         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
13408         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13409         * modules/time (time.h):
13410         Don't worry about the possibility of localtime and gmtime
13411         being absent; they're present in all C libraries we know about.
13412         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13413         Don't assume sys_time is present and has been initialized.
13414         Instead, use a hack that should work even if it hasn't been.
13415         Don't use a portcheck for gmtime or localtime; this supports
13416         the hack.
13417         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
13419 2013-12-17  John W. Eaton  <jwe@gnu.org>
13421         gettimeofday: fix C++ crosscompilation
13423         Never replace gmtime and localtime by macros when compiling with
13424         C++, this prevents <ctime> from being included.
13426         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
13427         define gmtime and localtime as preprocessor macros.  Instead
13428         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
13429         REPLACE_LOCALTIME substitutions.
13430         * lib/time.in.h: Declare gmtime and localtime when needed.
13431         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
13432         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
13433         * modules/time: Depend on gettimeofday, and substitute the above
13434         variables in time.h.
13436 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13438         qacl: port to Windows better
13439         See Eli Zaretskii in
13440         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
13441         * lib/file-has-acl.c (acl_access_nontrivial):
13442         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
13443         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
13445 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
13447         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
13448         * lib/gl_openssl.h: Cast void pointers to a specific type.
13450 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13452         open-tests: fix build failure with -Werror=old-style-declaration
13453         * tests/test-open.h: Reorder the inline to avoid the issue.
13455 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13457         md5, sha1, sha256, sha512: fix link error with partial libcrypto
13458         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
13459         init time, so that if early checks find crypto routines,
13460         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
13461         avoiding link failures.
13463 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13465         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
13466         This provides a new way to specify the default for
13467         gl_CRYPTO_CHECK, one that is reflected in the --help message.
13468         Emacs uses this, as well as the old way.
13469         This attempts to implement a suggestion by Pádraig Brady in
13470         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
13471         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
13472         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
13474         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
13475         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
13476         Add support for a new option, --with-openssl=auto, which causes
13477         the library to be used if available and silently ignored if not.
13478         Add support to allow configure.ac to specify its own
13479         default, by setting with_openssl_default before invoking gl_INIT.
13481 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13483         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
13484         Problem reported by Daiki Ueno in:
13485         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
13486         * tests/test-open.h (__always_inline):
13487         New macro, if not already defined.
13488         (test_open): Use it.
13490 2013-12-04  Eric Blake  <eblake@redhat.com>
13492         include_next: minimize code duplication
13493         * modules/include_next (Depends-on): Add absolute-header.
13494         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
13495         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
13497 2013-12-04  Pádraig Brady  <P@draigBrady.com>
13499         getcwd: fix compile error in configure check
13500         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
13502 2013-12-04  Pádraig Brady  <P@draigBrady.com>
13504         regex: suppress core dumps from detection code
13505         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
13506         to suppress core dumps that may well occur on glibc systems.
13507         These core dumps might not be cleaned up automatically, or could
13508         trigger some system core dump handling logic.
13510 2013-12-03  Pádraig Brady  <P@draigBrady.com>
13512         md5, sha1, sha256, sha512: support mandating use of openssl
13513         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
13514         description, to list the now 3 separate options.  also don't
13515         mention the default=no, since this is implicit given the option
13516         is described as --with-openssl rather than --without-openssl.
13517         If projects change the default they're free to document that.
13518         with --with-openssl[=yes] we now error out when the specified
13519         hash algorithm is not available in libcrypto.
13521 2013-12-03  Ivailo  <xakepa10@gmail.com>
13523         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
13524         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
13525         -Wformat-nonliteral checks, as these edge cases are part of the test.
13527 2013-12-03  Eric Blake  <eblake@redhat.com>
13529         regex: avoid glibc deadlock during configure
13530         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
13531         glibc bug 15078 in turn triggers bug 16159.
13532         Reported by Michal Privoznik.
13534 2013-12-02  Pádraig Brady  <P@draigBrady.com>
13536         md5, sha1, sha256, sha512: use openssl routines if available.
13537         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
13538         routines will be used if available, requiring apps to link @LIB_CRYPTO@
13539         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
13540         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
13541         in the standard system location.
13542         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
13543         * m4/sha256.m4: Likewise with SHA256.
13544         * m4/sha512.m4: Likewise with SHA512.
13545         * m4/md5.m4: Likewise with MD5.
13546         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
13547         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
13548         * lib/sha256.h: Likewise with SHA256.
13549         * lib/sha512.h: Likewise with SHA512.
13550         * lib/md5.h: Likewise with MD5.
13551         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
13552         * lib/sha256.c: Likewise with SHA256.
13553         * lib/sha512.c: Likewise with SHA512.
13554         * lib/md5.c: Likewise with MD5.
13555         * modules/crypto/sha1 (Link:): Add the new optional lib.
13556         (Depends-on:): Add dependency on extern-inline.
13557         * modules/crypto/sha256: Likewise.
13558         * modules/crypto/sha512: Likewise.
13559         * modules/crypto/md5: Likewise.
13560         * modules/crypto/sha1-tests: Reference the lib here too.
13561         * modules/crypto/md5-tests: Likewise.
13562         * modules/crypto/gc-des-tests: Likewise.
13563         * modules/crypto/gc-hmac-md5-tests: Likewise.
13564         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13565         * modules/crypto/gc-hmac-sha256-tests: Likewise.
13566         * modules/crypto/gc-hmac-sha512-tests: Likewise.
13567         * modules/crypto/gc-md5-tests: Likewise.
13568         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13569         * modules/crypto/gc-sha1-tests: Likewise.
13570         * modules/crypto/gc-tests: Likewise.
13571         * modules/crypto/hmac-md5-tests: Likewise.
13572         * modules/crypto/hmac-sha1-tests: Likewise.
13573         * modules/crypto/hmac-sha256-tests: Likewise.
13574         * modules/crypto/hmac-sha512-tests: Likewise.
13576 2013-11-29  RV1971  <rv1971@web.de>
13578         base64: (trivial) fix compilation regression on some compilers
13579         * lib/base64.c: Don't return the void function,
13580         instead split to a separate return statement.
13582 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13584         ignore-value: revert previous code change
13585         * lib/ignore-value.h (ignore_value): Use __extension__ and
13586         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
13587         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
13588         Change the comment to try to explain this better.
13590 2013-11-27  Pádraig Brady  <P@draigBrady.com>
13592         selinux-h: improve stub types and add more stub functions
13594         * lib/se-selinux.in.h: Change security_context_t to a typedef
13595         rather than a define, as it's a pointer type and so is better
13596         as a typedef to avoid issues declaring multiple variables
13597         with the comma operator.  Also add stub for string_to_security_class().
13598         * lib/se-context.in.h: Add stub functions for
13599         context_{type,range,role,user}_get().
13601 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13603         ignore-value: prefer GCC version back through 2.0
13604         The code didn't match the comments, so I did a bit of software
13605         archaeology.  GCC 2.0 seems to support __extension__ and
13606         __typeof__, so fix both code and comments to use 2.0.
13607         * lib/ignore-value.h (ignore_value): Use __extension__ and
13608         __typeof__ for GCC 2.0 through 3.3, too.
13610 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
13612         pty: Activate the signature wrapper of forkpty.
13613         The intended preprocessor macro HAVE_FORKPTY is
13614         never defined, yet `lib/forkpty.c' depends on it.
13616         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
13617         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
13618         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
13620 2013-11-18  Jim Meyering  <meyering@fb.com>
13621         and Paul Eggert  <eggert@cs.ucla.edu>
13623         quotearg: don't attempt to store 1 << 31 into an "int"
13624         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
13625         gcc's new -fsanitize=undefined and running its tests triggered some
13626         new test failures due to undefined behavior, all with this diagnostic:
13627           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
13628             cannot be represented in type int
13629         Rather than shifting "1" left to form a mask, shift the bits right and
13630         simply use "1" as the mask.
13632 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13634         error: depend on stdio
13635         Problem reported by Nikos Mavrogiannopoulos in
13636         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
13637         * modules/error (Depends-on): Add stdio.
13639 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
13641         * doc/relocatable-maint.texi (Supporting Relocation): Improve
13642         wording.
13643         Reported by Reuben Thomas <rrt@sc3d.org>.
13645 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13647         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
13648         New function and macro, to work around _DARWIN_C_SOURCE problem.
13649         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
13651 2013-11-11  Pádraig Brady  <P@draigBrady.com>
13653         base64: provide a fast path for encoding well sized buffers
13654         Avoid conditionals in the base64 encoding loop,
13655         which was seen to give 60% better throughput.
13656         * lib/base64.c (base64_encode_fast): A new function to be called
13657         when we don't want to NUL terminate, and we have enough space
13658         in the output to encode the given input.
13659         (base64_encode): Call the _fast() version when appropriate.
13660         Also remove a redundant mask with 0x3F on the first encoded byte.
13662 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
13664         extern-inline: port better to OS X 10.9
13665         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
13666         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
13667         OS X 10.9, except for g++ where the bug is still present.
13668         See <http://trac.macports.org/ticket/41033>.
13670 2013-11-08  Eric Blake  <eblake@redhat.com>
13672         fpending: fix regression on DragonFly BSD
13673         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
13674         * lib/fpending.h (__fpending): Don't declare twice.
13675         Reported by GW in
13676         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
13678 2013-11-05  Jim Meyering  <meyering@fb.com>
13680         hash: relax license to LGPLv2+, for libguestfs
13681         * modules/hash (License): Change from GPL to LGPLv2+.
13683 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13685         intprops: port to Oracle Studio c99
13686         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
13687         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
13689 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13691         obstack: pacify HP C
13692         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
13693         warning "conversion from pointer to smaller integer" from HP
13694         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
13695         C89 or later nowadays, so cast to void instead of int.  Privately
13696         reported by H.Merijn Brand.  Also, change header to match glibc's,
13697         to make checking against glibc easier.
13699 2013-10-29  Jim Meyering  <meyering@fb.com>
13701         maint.mk: prefer gpgv2 over gpgv
13702         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
13703         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
13704         Reported by Gary Vaughan.
13706 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13708         isnan: port to VAX
13709         Reported by John Klos for NetBSD-5/VAX in
13710         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
13711         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
13712         (FUNC): Use it.
13714 2013-10-28  Jim Meyering  <meyering@fb.com>
13716         gnulib-tool: protect against CDPATH
13717         * gnulib-tool: Many "cd" built-in functions print a directory name
13718         to stdout when CDPATH is set, e.g.,
13719           $ bash -c 'CDPATH=/; cd tmp'
13720           /tmp
13721         Unset it, when possible.  Prompted by a comment from Bruce Korb.
13723         maint.mk: restore functionality removed by recent change...
13724         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
13725         the context of a shallow-cloned gnulib repository: "git describe"
13726         would fail in such a directory.  However, that change made it so
13727         the reported gnulib revision no longer includes the version number
13728         or a commit count, even when run from a full clone.
13729         * top/maint.mk (gnulib-version): Use the full "git describe"
13730         output when possible, e.g., the form above, rather than the
13731         abbreviated, no-tag, no-commit-count string, and fall back to
13732         using a 10-byte hash, rather than the default minimal-length
13733         hash prefix, since while the minimal-length one may be fine today,
13734         it is likely not to be unique for very long.
13736 2013-10-26  Jim Meyering  <meyering@fb.com>
13738         maint.mk: fix "release" target to build _version
13739         This fixes a bug in README-release whereby following the outlined
13740         steps, one would publish a tarball whose programs would report
13741         --version output not consistent with the package version number.
13742         This bug caused grep-2.15 to produce a grep program whose
13743         --version option made it print 2.14.56-1e3d rather than 2.15.
13744         * top/maint.mk (release): Making this target build "_version"
13745         ensures that the new version number is reflected in configure.
13747 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
13749         install-reloc: Support multi-binary installation.
13750         * build-aux/install-reloc: Support installing multiple programs in
13751         one invocation, as done by Automake starting with commit
13752         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
13753         Haible <bruno@clisp.org>, archived at
13754         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
13755         Reported by Sylvain <beuc@gnu.org>.
13757 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13759         selinux-h: Really build without selinux when library is missing.
13760         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
13761         continue without selinux, as already told in the warning message.
13763 2013-10-21  Jim Meyering  <meyering@fb.com>
13765         regex: also remove dependency on HAVE_WCSCOLL
13766         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
13768 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
13770         xfreopen: Fix typo. s/frepoen/freopen/
13771         * lib/xfreopen.c: Fix description.
13772         * modules/xfreopen: Likewise.
13774 2013-10-21  Jim Meyering  <meyering@fb.com>
13776         regex: don't depend on wcscoll
13777         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
13778         It is no longer used.
13780 2013-10-20  Jim Meyering  <meyering@fb.com>
13782         error: add the printf attribute to a static function
13783         * lib/error.c (error_tail): Add the printf attribute, to placate
13784         gcc's -Werror=suggest-attribute=format option.
13786 2013-09-30  Jim Meyering  <meyering@fb.com>
13788         fpending, obstack, strerror-override: use pure+const function attrs
13789         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
13790         * lib/obstack.c (_obstack_allocated_p): Likewise.
13791         * lib/obstack.h (_obstack_memory_used): Likewise.
13792         (_obstack_memory_used): Likewise.
13793         * lib/strerror-override.h (strerror_override): Declare with
13794         the "const" attribute.
13796 2013-10-18  Eric Blake  <eblake@redhat.com>
13798         extern-inline: make safe for -Wundef usage
13799         Reported by Vladimir 'phcoder' Serbinenko in
13800         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
13801         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
13803 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
13805         mkfifo-tests, etc.: allow HP-UX 11.11 bug
13806         Problem reported by Daniel Richard G. in
13807         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
13808         * doc/posix-functions/mkfifo.texi (mkfifo):
13809         * doc/posix-functions/mkfifoat.texi (mkfifoat):
13810         * doc/posix-functions/mknod.texi (mknod):
13811         * doc/posix-functions/mknodat.texi (mknodat):
13812         Document the HP-UX 11.11 bug.
13813         * tests/test-mkfifo.h (test_mkfifo):
13814         Allow the HP-UX 11.11 bug.
13816 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13818         acl: allow cross-compilation to Gentoo
13819         Problem reported by Gabriel Marcano in
13820         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
13821         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
13822         test only whether it links.
13824 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13826         mgetgroups: remove dependency on realloc-gnu
13827         The dependency violates the comment in realloc-gnu, which
13828         says that tests can't depend on realloc-gnu; some tests depend
13829         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
13830         Problem reported by Daniel Richard G. in
13831         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
13832         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
13833         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
13834         not realloc-gnu.
13836 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
13838         regex-tests: port to HP-UX 11.11
13839         Problem reported by Daniel Richard G. in
13840         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
13841         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
13843 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13845         verify: document some 'assume' pitfalls
13846         * doc/verify.texi (Compile-time Assertions):
13847         Mention that 'assume (E)' can sometimes slow things down.
13848         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
13850 2013-10-10  Eric Blake  <eblake@redhat.com>
13852         strtoumax: fix typo in previous commit.
13853         * modules/strtoumax (Depends-on): Fix typo.
13854         * modules/strtoimax (Depends-on): Likewise.
13856 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13858         strtoumax: port to Solaris 8
13859         This problem was introduced in the recent HP-UX patch.
13860         Reported by Tom G. Christensen in
13861         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
13862         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
13863         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
13865 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
13867         strtoimax, strtoumax: port to HP-UX 11.11
13868         Problem reported by Daniel Richard G. in
13869         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
13870         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
13871         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
13872         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
13873         REPLACE_STRTOUMAX.
13874         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
13875         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
13876         Replace the function if defined as a macro but not as a function.
13877         * modules/inttypes-incomplete (inttypes.h): Substitute
13878         REPLACE_STRTOUMAX.
13879         * modules/strtoumax (configure.ac): Replace strtoumax if
13880         REPLACE_STRTOUMAX.
13882 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13884         strtoimax: port to HP-UX 11.11
13885         Problem reported by Daniel Richard G.
13886         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
13887         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
13888         they might clash with inttypes.h.
13890 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13892         New module 'count-trailing-zeros'.
13893         * MODULES.html.sh: Mention it.
13894         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
13895         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
13896         * modules/count-trailing-zeros-tests:
13897         * tests/test-count-trailing-zeros.c:
13898         New files.
13900         count-leading-zeros: port to MSC; support types wider than 64 bits
13901         The ideas behind the MSC port are stolen from Emacs.
13902         * lib/count-leading-zeros.h:
13903         Don't include verify.h: it's no longer needed, as types wider than
13904         64 bits are now supported.
13905         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
13906         performance with MSC.  All uses changed.  Do not assume that TYPE
13907         has at most 64 bits.
13908         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
13909         All uses changed.  Fold the subtraction from 31 into the table.
13911         count-one-bits: port to MSC; support types wider than 64 bits
13912         The ideas behind the MSC port are stolen from Emacs.
13913         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
13914         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
13915         Don't include verify.h: it's no longer needed, as types wider than
13916         64 bits are now supported.
13917         (COUNT_ONE_BITS_GENERIC): New macro.
13918         (popcount_supported) [_MSC_VER]: New inline function.
13919         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
13920         performance with MSC.  All uses changed.  Do not assume that TYPE
13921         has at most 64 bits.
13922         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
13924 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
13926         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
13927         * lib/mountlist.c (read_file_system_list): fix leak of directory
13928         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
13930 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13932         tests: improve diagnostic when an assertion fails
13933         * tests/macros.h (ASSERT): Report the assertion that failed.
13935 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13937         verify: new macro 'assume'
13938         This is taken from Emacs, and should be generally useful.
13939         * doc/verify.texi (assume): Document it.
13940         * lib/verify.h (assume): New macro.
13941         (__has_builtin): Expand to 0 if not defined.
13943 2013-09-26  Eric Blake  <eblake@redhat.com>
13945         dup2, dup3: work around another cygwin crasher
13946         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
13947         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
13948         * tests/test-dup2.c (main): Likewise.
13949         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
13950         * lib/dup3.c (dup3): Likewise.
13951         * doc/posix-functions/dup2.texi (dup2): Document it.
13952         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13954         getdtablesize: work around cygwin issue
13955         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
13956         * modules/getdtablesize (configure.ac): Build replacement.
13957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
13958         * modules/unistd (Makefile.am): Expose the witness.
13959         * lib/unistd.in.h (getdtablesize): Declare replacement.
13960         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
13961         * tests/test-getdtablesize.c (main): Test it.
13962         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
13964 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13966         pmccabe2html: escaping of special characters
13967         Escape all '<', '>', and '&' in HTML output.
13968         * build-aux/pmccabe2html (html_fnc): Call gsub()
13969         instead of sub() to capture all '<', '>', and '&'.
13970         Neither of '<' and '>' is special in a regexp,
13971         so first arguments to gsub() are corrected. Also,
13972         in replacement strings, ampersand must be escaped.
13973         Finally, '&' must be handled first, then '<' and '>'.
13975 2013-09-24  Eric Blake  <eblake@redhat.com>
13977         manywarnings: enable nicer gcc warning messages
13978         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
13979         some -f options for optimal warnings.
13981 2013-09-21  Jim Meyering  <meyering@fb.com>
13983         timespec: use the new TIMESPEC_RESOLUTION in a few more places
13984         * lib/timespec-add.c (timespec_add): Also replace 999999999
13985         with TIMESPEC_RESOLUTION - 1.
13986         * lib/timespec-sub.c (timespec_sub): Likewise.
13988 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13990         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
13991         Problem reported by Dagobert Michelsen via Eric Blake in
13992         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
13993         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
13994         not AC_COMPILE_IFELSE.
13996 2013-09-23  Eric Blake  <eblake@redhat.com>
13998         configmake: support new --runstatedir option
13999         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
14000         even if autoconf was too old to provide the command line option.
14001         * modules/configmake (Makefile.am): Propagate it to .h file.
14003 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14005         ctype, string: depend on extern-inline
14006         This is needed to complete the recent OS X fixes.
14007         Also, fix related documentation as suggested by Eric Blake.
14008         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14009         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
14010         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
14011         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
14012         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
14013         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
14014         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
14015         * doc/posix-functions/toupper.texi:
14016         List the 'ctype' gnulib module.
14017         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
14018         * doc/posix-functions/strncpy.texi:
14019         List the 'string' gnulib module.
14020         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
14021         Add string.
14022         * modules/ctype, modules/string (Depends-on): Add extern-inline.
14024 2013-09-19  Pádraig Brady  <P@draigBrady.com>
14026         userspec: support optional parameters to parse_user_spec()
14027         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
14028         then avoid group processing and treat the full spec as a user.
14029         (parse_with_separator): Allow the USERNAME and GROUPNAME to
14030         be optional params (NULL), in which case they're ignored.
14032 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14034         timespec: new function make_timespec, and new constants
14035         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
14036         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
14037         (make_timespec): New function.
14038         * lib/dtotimespec.c (dtotimespec):
14039         * lib/timespec-add.c (timespec_add):
14040         * lib/timespec-sub.c (timespec_sub):
14041         * lib/utimens.c (validate_timespec):
14042         * lib/utimensat.c (rpl_utimensat):
14043         Use these new constants and functions.
14045         stdio: OS X port of putc_unlocked + extern inline
14046         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
14047         * doc/posix-functions/putc_unlocked.texi:
14048         * doc/posix-functions/putchar_unlocked.texi:
14049         Document this portability problem.
14051         signal: OS X port of sigaddset etc. + extern inline
14052         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
14053         (sigismember): #undef on problematic Apple platforms.
14054         * doc/posix-functions/sigaddset.texi:
14055         * doc/posix-functions/sigdelset.texi:
14056         * doc/posix-functions/sigemptyset.texi:
14057         * doc/posix-functions/sigfillset.texi:
14058         * doc/posix-functions/sigismember.texi:
14059         Document this portability problem.
14061         extern-inline: do not always suppress extern inline on OS X
14062         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
14063         extern inline on Apple only if the particular compile-time
14064         configuration is known to have the problem.
14065         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
14066         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
14067         other Gnulib modules.
14069         extern-inline: document fixes for ctype and wctype macros
14070         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
14071         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
14072         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
14073         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
14074         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
14075         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
14076         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
14077         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
14078         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
14079         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
14080         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
14081         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
14082         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
14083         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
14084         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
14085         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
14086         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
14087         * doc/posix-functions/strncpy.texi:
14088         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
14089         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
14090         Document that Gnulib fixes portability problems with these
14091         functions on OS X 10.8 and earlier when called from plain inline
14092         or extern inline functions.
14094 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
14096         fflush, freadahead, fseeko: Fix for Android
14097         Suggested by Bruno Haible in:
14098         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
14099         * lib/stdio-impl.h: Use local __sfileext definition.
14101 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
14103         pmccabe2html: Portability to other awk versions.
14104         The functions systime() and strftime() are available
14105         in Gawk only.  Properly close two HTML-tags 'style'
14106         and 'span'.
14107         * build-aux/pmccabe2html (BEGIN): Store timing
14108         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
14109         systime() in HTML_COMMENT.
14110         (html_header): Correctly close tag 'style'.
14111         (END): Replace strftime() by CHRONOS_TIME.  Close
14112         tag 'span' correctly, not as 'div'.
14114 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14116         getgroups: statement without effect
14117         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
14118         Change equality conditional to expected assignment.
14120 2013-09-09  Eric Blake  <eblake@redhat.com>
14122         glob: fix compilation
14123         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
14125 2013-09-07  Eric Blake  <eblake@redhat.com>
14127         glob: fix build for platforms without __THROW
14128         * lib/glob.in.h (__THROW): Add definition again.
14130 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
14132         regex-quote: fix buffer access out of bounds
14133         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
14134         * lib/regex-quote.c (regex_quote_spec_pcre):
14135         Fix typo that resulted in an out-of-bounds read.
14137 2013-09-04  Eric Blake  <eblake@redhat.com>
14139         glob: avoid -Wattribute warnings on glibc
14140         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
14141         __THROWNL, not __THROW, on static functions.
14142         * lib/glob.in.h (__THROW): Adjust...
14143         (__THROWNL): ...accordingly.
14145 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14147         headers: check that _GL_INLINE_HEADER_BEGIN is defined
14148         Suggested by Bruce Korb in:
14149         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
14150         * doc/extern-inline.texi (extern inline):
14151         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
14152         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
14153         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
14154         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
14155         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
14156         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
14157         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
14158         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
14159         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
14160         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
14161         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
14162         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
14163         * lib/xtime.h:
14164         Check that _GL_INLINE_HEADER_BEGIN is defined.
14166 2013-08-29  Pádraig Brady  <P@draigBrady.com>
14168         bootstrap: remove the --version requirement from ancillary tools
14169         * build-aux/bootstrap (check_exists): A new refactored function to
14170         determine if a command exists.
14171         (find_tool): Use the new function which does not require the
14172         --version option to be supported.
14173         (check_versions): Use the new function.
14175 2013-08-26  Simon Josefsson  <simon@josefsson.org>
14177         gc: support HMAC-SHA256 and HMAC-SHA512.
14178         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
14179         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
14180         functions.
14181         (gc_hmac_md5): Use symbolic constant.
14182         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
14183         (gc_hmac_sha256, gc_hmac_sha512): New functions.
14184         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
14185         * m4/sha256.m4: Protect against empty expansion.
14186         * m4/sha512.m4: Likewise.
14187         * lib/hmac-sha256.c: New file.
14188         * lib/hmac-sha512.c: Likewise.
14189         * m4/gc-hmac-sha256.m4: Likewise.
14190         * m4/gc-hmac-sha512.m4: Likewise.
14191         * m4/gc-sha256.m4: Likewise.
14192         * m4/gc-sha512.m4: Likewise.
14193         * modules/crypto/gc-hmac-sha256: Likewise.
14194         * modules/crypto/gc-hmac-sha256-tests: Likewise.
14195         * modules/crypto/gc-hmac-sha512: Likewise.
14196         * modules/crypto/gc-hmac-sha512-tests: Likewise.
14197         * modules/crypto/hmac-sha256: Likewise.
14198         * modules/crypto/hmac-sha256-tests: Likewise.
14199         * modules/crypto/hmac-sha512: Likewise.
14200         * modules/crypto/hmac-sha512-tests: Likewise.
14201         * tests/test-gc-hmac-sha256.c: Likewise.
14202         * tests/test-gc-hmac-sha512.c: Likewise
14203         * tests/test-hmac-sha256.c: Likewise.
14204         * tests/test-hmac-sha512.c: Likewise
14206 2013-08-24  Daiki Ueno  <ueno@gnu.org>
14208         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
14209         of AC_CHECK_DECLS.
14211 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14213         selinux-at: omit unnecessary include
14214         * lib/selinux-at.c: Don't include dosname.h; not needed, since
14215         this source file doesn't use its macros, and subsidiary files that
14216         use the macros already include it.
14218 2013-08-21  Eric Blake  <eblake@redhat.com>
14220         d-ino: avoid false negative on symlink
14221         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
14222         Reported by Stephane Chazelas.
14224 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
14226         bootstrap: port to OpenBSD sed
14227         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
14228         does not interpret `-' as a file argument to mean stdin.
14230 2013-08-15  Eric Blake  <eblake@redhat.com>
14232         warnings: minor optimization
14233         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
14235         warnings: check -Wfoo rather than -Wno-foo
14236         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
14237         -Wno-, test if the compiler recognizes the positive form instead.
14239 2013-08-15  Karl Berry  <karl@gnu.org>
14241         * config/srclist-update: add option "doclicense" to placate
14242         pulling *.texi files from Emacs.  Write terse usage
14243         documentation at the top.
14245 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
14247         xvasprintf-tests: port to GCC with hardening flags
14248         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
14249         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
14250         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
14252 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14254         fpending: port to recent Cygwin change to stdio_ext.h
14255         Reported by LRN in
14256         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
14257         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
14258         just declare __fpending unless it's a macro.
14259         A duplicate decl shouldn't hurt.
14260         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
14261         call compiles and links, instead of separately checking for
14262         decl and lib function.
14263         * modules/fpending (configure-ac):
14264         Adjust to fpending.m4's renaming of shell variable.
14266 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14268         sys_time: port to OpenBSD
14269         * lib/sys_time.in.h: Simply delegate to the system's header
14270         in the BSDish cases as well.  Problem reported by Mike Miller in
14271         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
14272         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
14273         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
14274         wider than time_t.
14276 2013-08-09  Pádraig Brady  <P@draigBrady.com>
14278         bootstrap: support checksum utils having -c but not --status
14279         * build-aux/bootstrap: Only look for sha1sum if updating po files.
14280         Add sha1 to the list of supported checksum utils since it's now
14281         supported through adjustments below.
14282         (update_po_files): Remove the use of --status
14283         in a way that will suppress all error messages, but since this is
14284         only used to minimize updates, it shouldn't cause an issue.
14285         Exit early if there is a problem updating the po file checksums.
14286         (find_tool): Remove the check for --version support as this
14287         is optional as per commit 86186b17.  Don't even check for the
14288         presence of the command as if that is needed, it's supported
14289         through configuring prerequisites in bootstrap.conf.
14290         Prompt that when a tool isn't found, one can define an environment
14291         variable to add to the hardcoded search list.
14293 2013-08-05  Jim Meyering  <meyering@fb.com>
14295         regex: port to non-glibc/lock-using systems
14296         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
14297         system with GNULIB_LOCK would fail due to absence of the
14298         included "glthread/lock.h".  This would affect any package
14299         for which the "lock" module is used only by the regex module,
14300         and not explicitly used.
14301         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
14302         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
14303         Add a dependency on the "lock" module.
14305 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14307         localecharset: make locale_charset thread-safe on Mac OS X
14308         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
14309         instead of MB_CUR_MAX.
14311 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14313         gettext: update to version 0.18.3
14314         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
14315         require AC_PROG_SED to allow user to specify custom sed command when
14316         generating en@quot PO file.
14318 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
14320         bootstrap: use correct source when copying build-aux files
14321         * build-aux/bootstrap (gnulib_extra_files): This variable is
14322         relative to upstream gnulib layout, not downstream.
14324 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14326         tmpdir: fix bug in VMS port
14327         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
14328         See Steven M. Schweda in
14329         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
14331 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14333         tmpdir: port to VMS, to // != /, and to long dirs
14334         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
14335         __secure_getenv, so that we're more like the glibc version.
14336         All uses changed.
14337         (path_search): Don't put slash after directory if __VMS.
14338         Problem reported by Steven M. Schweda in
14339         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
14340         Simplify code to add slash; no need for a loop.
14341         Do not remove trailing slash from "//".
14342         Do not assume dlen <= INT_MAX.
14344 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14346         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
14347         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
14348         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
14349         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
14351         accept4, dup3, pipe2: port to Cygwin
14352         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
14353         * lib/accept4.c (accept4) [O_BINARY]:
14354         * lib/dup3.c (dup3) [O_BINARY]:
14355         * lib/pipe2.c (pipe2) [O_BINARY]:
14356         Use set_binary_mode, not setmode.
14357         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
14358         * modules/binary-io (Depends-on): Remove module indicator.
14359         These last two bits undo the previous change to pipe2 and binary-io.
14361 2013-07-09  Pádraig Brady  <P@draigBrady.com>
14363         mountlist: add support for deallocating returned list entries
14364         * lib/mountlist.c (free_mount_entry): A new exported function
14365         to deallocate a mount list entry.
14366         (read_file_system_list): Refactor to use the new deallocation function.
14367         Suggested by Anton Ovchinnikov.
14369 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14371         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
14372         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
14373         * lib/stdalign.in.h (_Alignas, _Alignof):
14374         Port to FreeBSD 9.1, and to C11 and C++11.
14375         (_Alignas): Also support ICC.
14376         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
14377         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
14379 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14381         fnmatch: don't goto over declaration
14382         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
14383         undefined behavior for goto over a declaration.
14384         Problem reported by Charlie Brown in
14385         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
14387         pipe2: decouple from binary-io a bit
14388         This is for Emacs, which needs pipe2 but not binary-io.
14389         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
14390         * modules/binary-io (Depends-on): Add module indicator.
14392 2013-07-03  Eric Blake  <eblake@redhat.com>
14394         mgetgroups: relax license to LGPLv2+
14395         * modules/getugroups (License): Change from GPLv3+.
14396         * modules/mgetgroups (License): Likewise.
14397         * modules/getgroups (License): Change from LGPLv3+.
14399         xalloc-oversized: relax license to LGPLv2+
14400         * modules/xalloc-oversized (License): Change from GPLv3+.
14402         nproc: relax license to LGPLv2+
14403         * modules/nproc (License): Change from LGPLv3+.
14405         bootstrap: honor --no-git
14406         * build-aux/bootstrap: Don't even try to use git when user is
14407         pointing to a static checkout.
14409 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14411         ignore-value: port to gcc -pedantic
14412         * lib/ignore-value.h (ignore_value):
14413         Port to gcc -pedantic, by using __extension__.
14414         Reindent as per usual gnulib style nowadays.
14415         Simplify GCC version check.
14417 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14419         extern-inline: port to gcc -std=c89
14420         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14421         Do not use __gnu_inline__ if pedantic and pre-C99.
14423 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14425         doc: document extern-inline
14426         * doc/extern-inline.texi: New file.
14427         * doc/gnulib.texi (alloca-opt): Include it.
14428         * m4/extern-inline.m4: Move some comments to documentation,
14429         and others closer to what they describe.
14431         doc: chatter less
14432         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
14433         (updated-stamp): Use it.  This causes 'make' to output just
14434         one file name rather than zillions.
14436         fflush, fseeko: port to musl cross-compiles
14437         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
14438         on some implementation that (1) is not known to be buggy,
14439         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
14440         cross-compiled to so we can't easily check for lack of
14441         conformance.  This is for cross-compiling to musl.
14442         Reported by Rich Felker in
14443         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
14444         * m4/fclose.m4 (gl_FUNC_FCLOSE):
14445         * m4/fflush.m4 (gl_FUNC_FFLUSH):
14446         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
14447         Adjust to above change.
14448         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
14449         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
14450         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
14451         known not to work, or unknown.
14453 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14455         msvc-inval: port to mingw-w64
14456         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
14457         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
14458         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
14460 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14462         getcwd-lgpl: port to Tru64
14463         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
14464         Problem reported by Steven M. Schweda in
14465         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
14467         tests: port large-fd POSIX spawn tests to OS X
14468         Problem reported by Daiki Ueno in
14469         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
14470         * tests/test-posix_spawn_file_actions_addclose.c:
14471         * tests/test-posix_spawn_file_actions_adddup2.c:
14472         * tests/test-posix_spawn_file_actions_addopen.c:
14473         Include <limits.h>, for OPEN_MAX, if available.
14474         (big_fd): New static function.
14475         (main): Use it.
14477 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
14479         tests/nap.h: use an adaptive delay to avoid ctime update issues
14480         The recent change in nap.h (5191133e) decreased the probability of lost
14481         races to about a third, however such problems could still be observed
14482         in virtual machines and openSUSE's OBS.
14483         Before, nap() detected the needed time once empirically and then used
14484         that delay (together with a small correction multiplier) in further
14485         calls.  This problem has been reported and discussed several times,
14486         including guesses about possible kernel issues:
14487         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
14488         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
14489         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
14490         http://bugs.gnu.org/12820
14491         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
14492         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
14493         Now, nap() avoids the race alltogether by verifying on a reference
14494         file whether a timestamp difference has happened.
14495         * tests/nap.h (nap_fd): Define file descriptor variable for the
14496         witness file.
14497         (nap_works): Change return value to bool.  Change passing
14498         the old file's status by value instead of by reference as this function
14499         does no longer update that timestamp; rename the function argument from
14500         st to old_st.  Remove the local variables cdiff and mdiff because that
14501         function now returns true/false instead of the precise delay.
14502         (guess_delay): Remove function.
14503         (clear_tmp_file): Add new function to close and unlink the witness file.
14504         (nap): Instead of re-using the delay which has been calculated during
14505         the first call, avoid the race by actually verifying that a timestamp
14506         difference can be observed on the current file system.  Use an adaptive
14507         approach for the delay to minimize execution time.  Assert that the
14508         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
14509         = 2^31 - 1 = 2.1s.
14510         Use atexit to call clear_tmp_file when the process terminates.
14512 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14514         sig2str: port to C++
14515         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
14516         Reported by Daniel J Sebald in
14517         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
14519 2013-05-30  Eric Blake  <eblake@redhat.com>
14521         docs: mention cygwin shortcoming in <sys/un.h>
14522         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
14524         vasnprintf: silence mingw compiler warning
14525         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
14527 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14529         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
14530         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
14531         This fixes a porting bug I recently reintroduced in regex, and
14532         some other instances that I discovered while testing the fix.
14533         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
14534         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
14535         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
14536         with an empty argument if this is a pedantic pre-C99 GCC.
14537         * lib/verify.h: Do not use _Static_assert if this is a pedantic
14538         pre-C11 GCC.
14540         regex: adapt to locking regime instead of depending on pthread
14541         Instead of depending on pthread, adapt to whatever thread
14542         modules are in use.  Problem reported by Ludovic Courtès in
14543         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
14544         and by Mats Erik Andersson in
14545         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
14546         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
14547         Support either the 'lock' module, or the 'pthread' module, or
14548         no module.
14549         (lock_lock, lock_unlock): New macros.
14550         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
14551         * modules/lock, modules/pthread (configure.ac): Add module indicator.
14552         * modules/regex (Depends-on): Remove pthread.
14554 2013-05-22  Eric Blake  <eblake@redhat.com>
14556         getgroups: document portability issues
14557         * doc/glibc-functions/initgroups.texi (initgroups): Mention
14558         multithread safety.
14559         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
14560         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
14561         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
14562         getugroups.
14563         * doc/posix-functions/getgroups.texi (getgroups): Mention
14564         multithread safety and mgetgroups.
14566 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
14568         test-lchown, test-chown: also skip test if chown fails with EPERM
14569         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
14570         skip this test, to handle FAT file systems.
14571         * tests/test-chown.h (test_chown): Likewise.
14573 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14575         regex: fix dfa race in multithreaded uses
14576         Problem reported by Ludovic Courtès in
14577         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
14578         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
14579         New macros.  All uses of __libc_lock_define, __libc_lock_init
14580         changed to use the first two of these.
14581         (__libc_lock_lock, __libc_lock_unlock): New macros, for
14582         non-glibc platforms.
14583         (struct re_dfa_t): Define the lock unconditionally.
14584         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
14585         '#ifdef _LIBC"s.
14586         * modules/regex (Depends-on): Add pthread, if we use the
14587         included regex.
14589         * lib/regcomp.c: Do actions that are not needed for glibc,
14590         but may be needed elsewhere.
14591         (regfree, re_compile_internal): Destroy the lock.
14592         (re_compile_internal): Check for lock-initialization failure.
14594         malloca: port to compilers that reject size-zero arrays
14595         This fixes a bug introduced in my previous patch.
14596         * lib/malloca.c (struct preliminary_header): Use an int
14597         rather than a character array of size int; that's simpler.
14598         (struct header): Remove, replacing with ...
14599         (union header): New type.  This avoids the need for declaring a
14600         character array of size zero, which is not allowed on some platforms.
14601         All uses changed.
14603 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
14605         parse-datetime, tests: don't use "string" + int
14606         Recent versions of 'clang' complain about C source code that
14607         uses expressions of the form '"string literal" + integer',
14608         I guess on the theory that it's confusing for readers who are
14609         used to C++.  On those grounds I suppose it's OK to make this
14610         minor style change.
14611         * lib/parse-datetime.y (parse_datetime):
14612         * tests/test-fchdir.c (main):
14613         * tests/test-snprintf-posix.h (test_function):
14614         * tests/test-snprintf.c (main):
14615         * tests/test-vasnprintf-posix.c (test_function):
14616         * tests/test-vasnprintf.c (test_function):
14617         * tests/test-vsnprintf.c (main):
14618         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
14619         Rewrite '"str" + E' to '&"str"[E]'.
14621 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
14623         argmatch: port to C++
14624         * lib/argmatch.h [__cplusplus]: Add extern "C".
14626         argp: typo fix
14627         * lib/argp-help.c: Typo in comment.
14629 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14631         manywarnings: update for GCC 4.8.0
14632         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14633         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
14634         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
14635         -Wmissing-noreturn, as they are duplicates of other warnings.
14636         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
14637         was documented to be flaky in earlier versions of GCC.
14639         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
14640         * tests/test-spawn.c (main):
14641         * tests/test-sys_socket.c (main):
14642         * tests/test-sys_wait.c (main):
14643         Don't have a switch value that isn't covered by a case.
14645         getaddrinfo-tests: port --enable-gcc-warnings to clang
14646         * tests/test-getaddrinfo.c (simple):
14647         Avoid casts from looser to stricter-aligned pointers.
14649         thread: port --enable-gcc-warnings to clang
14650         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
14651         Include <signal.h>, to pacify a warning about pthread_sigmask.
14653         stdio: use __REDIRECT for fwrite, fwrite_unlocked
14654         * lib/stdio.in.h (fwrite):
14655         When working around bug 11959, use __REDIRECT rather than '#define
14656         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
14657         fix the -Wunused-value issue with clang, and it works with GCC too.
14658         Problem with targeting reported by Eric Blake in
14659         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
14660         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
14661         debugging the fwrite issue.
14663         stdio: port --enable-gcc-warnings to clang
14664         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
14665         since the GCC workaround for fwrite does not pacify clang.
14667         sig2str: port --enable-gcc-warnings to clang
14668         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
14670         obstack: port --enable-gcc-warnings to clang
14671         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
14672         Avoid casts from looser to stricter-aligned pointers.
14674         memchr2: port --enable-gcc-warnings to clang
14675         * lib/memchr2.c (memchr2):
14676         Avoid casts from looser to stricter-aligned pointers.
14678         mbsstr: port --enable-gcc-warnings to clang
14679         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
14680         Avoid casts from looser to stricter-aligned pointers.
14682         malloca: port --enable-gcc-warnings to clang
14683         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
14684         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
14686         inttostr: port --enable-gcc-warnings to clang
14687         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
14689         warnings: port to clang
14690         Problem reported by Daniel P. Berrange via Eric Blake in
14691         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
14692         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
14693         (gl_WARN_ADD): Use it.
14695 2013-05-11  Jim Meyering  <meyering@fb.com>
14697         quotearg: do not read beyond end of buffer
14698         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
14699         end of an ARG for which no length was specified.  With an N-byte
14700         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
14701         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
14702         via coreutils' misc/sort-debug-keys.sh test and detected by running
14703         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
14704         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
14705         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
14706         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
14707         characters correctly."
14709 2013-05-11  Daiki Ueno  <ueno@gnu.org>
14711         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
14712         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
14713         compilation target is Mac OS X 10.6.
14714         Problem reported by parafin and Andoni Morales in
14715         <http://savannah.gnu.org/bugs/?37844> and
14716         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
14718 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14720         mkdir-p: remove assumptions about umask and mode
14721         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
14722         umask is 0, or that MODE is a subset of MODE_BITS.
14724 2013-05-10  Eric Blake  <eblake@redhat.com>
14726         maint.mk: catch more abuse of HAVE_DECL in syntax-check
14727         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
14729 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
14731         deps: require Automake >= 1.9.6 in generated Makefile fragments
14733         That is the same minimal version required in the DEPENDENCIES file.
14734         Moreover, the old code generated a requirement of Automake >= 1.5,
14735         and that is an insanely outdated version.
14737         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
14738         * tests/havelib/rpathlx/Makefile.am: Likewise.
14739         * tests/havelib/rpathly/Makefile.am: Likewise.
14740         * tests/havelib/rpathlyx/Makefile.am: Likewise.
14741         * tests/havelib/rpathlz/Makefile.am: Likewise.
14742         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
14743         * tests/havelib/rpathx/Makefile.am: Likewise.
14744         * tests/havelib/rpathy/Makefile.am: Likewise.
14745         * tests/havelib/rpathz/Makefile.am: Likewise.
14747 2013-05-08  Eric Blake  <eblake@redhat.com>
14749         bootstrap: AC_INIT may have more than four parameters
14750         * build-aux/bootstrap (extract_package_name): Correctly extract
14751         non-empty tarname field.  Avoid range in regex.
14752         Based on a report by Sami Kerola <kerolasa@iki.fi>.
14754 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14756         qacl: port to MS-Windows port of GNU Emacs
14757         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
14758         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
14759         port of GNU Emacs.  Problem reported by Eli Zaretskii in
14760         <http://bugs.gnu.org/14295#14>.
14762 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
14764         acl: include quote.h
14765         * lib/copy-acl.c: Include quote.h.
14766         * lib/set-acl.c: Likewise.
14768 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
14770         fchownat, renameat, unlinkat: update statat dependencies
14771         These modules use statat and lstatat, not fstatat; so depend on
14772         the statat module, which was split out recently from fstatat.
14773         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
14774         * modules/renameat: Likewise.  Also delete fstat.
14775         URL: http://bugs.gentoo.org/468790
14777 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
14779         Assume gnulib is checked out from Git, not CVS
14781         In fact, access to the gnulib repository through CVS has been
14782         disabled, or more precisely, got broken and was never restored; see:
14783         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
14785         Note that support for CVS is not removed completely and unthinkingly
14786         by this change: only support for CVS checkouts of gnulib itself is
14787         removed.  For example, the 'bootstrap' script still cater to .cvsingore
14788         files and CVS directories, for the benefit of those poor gnulib clients
14789         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
14791         * gnulib-tool: Simplify accordingly.
14792         * posix-modules: Likewise.
14793         * MODULES.html.sh: Likewise.
14794         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
14795         repository.
14796         * doc/gnulib-intro.texi: Likewise.
14797         * doc/gnulib-readme.texi: Likewise.
14798         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
14799         sample '.gitignore' file rather than a sample '.cvsignore'.
14800         * NEWS: Update.
14801         * m4/extensions.m4: While at it, remove a comment mistakenly referring
14802         to "CVS Autoconf" rather than "git Autoconf".
14804 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14806         utimensat-tests, etc.: try to fix some races
14807         Problem reported by Bernhard Voelker in
14808         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
14809         I don't know whether this patch fixes that race condition, but it
14810         fixes *some* race conditions, so it should be a win.
14811         * modules/chown-tests (Depends-on):
14812         * modules/fchownat-tests (Depends-on):
14813         * modules/fdutimensat-tests (Depends-on):
14814         * modules/futimens-tests (Depends-on):
14815         * modules/lchown-tests (Depends-on):
14816         * modules/stat-time-tests (Depends-on):
14817         * modules/utimens-tests (Depends-on):
14818         * modules/utimensat-tests (Depends-on):
14819         Depend on nanosleep, not usleep.
14820         * modules/chown-tests (test_chown_LDADD):
14821         * modules/lchown-tests (test_lchown_LDADD):
14822         * modules/stat-time-tests (test_stat_time_LDADD):
14823         New macro.
14824         * modules/fchownat-tests (test_fchownat_LDADD):
14825         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
14826         * modules/futimens-tests (test_futimens_LDADD):
14827         * modules/utimens-tests (test_utimens_LDADD):
14828         * modules/utimensat-tests (test_utimensat_LDADD):
14829         Add $(LIB_NANOSLEEP).
14830         * modules/stat-time-tests (Files): Add tests/nap.h.
14831         * tests/nap.h: Include <limits.h>, for INT_MAX.
14832         (lt_mtime): Remove.
14833         (diff_timespec): New function.
14834         (get_stat): Rename from get_mtime.  All callers changed.
14835         (nap_works): Determine the needed delay by inspecting the
14836         file system's timestamp jumps; this should be more reliable.
14837         Look at both mtime and ctime, and take the maximum of the two jumps.
14838         (nap_works, guess_delay):
14839         Return a nanosecond count, not a microsecond count.
14840         All callers changed.
14841         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
14842         failure.
14843         (nap): Multiply the guess by 1.125, to accommodate the case where
14844         the file system's clock is a bit slower than nanosleep's clock.
14845         * tests/test-stat-time.c (BASE): New macro.
14846         Include nap.h.
14847         (nap): Remove; nap.h now defines this.  This removes a duplicate
14848         implementation of 'nap'.
14850         utimens, utimensat: work around Solaris UTIME_OMIT bug
14851         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
14852         Linux kernel 2.6.32 does.  Work around it in the same way.
14853         * doc/posix-functions/futimens.texi (futimens):
14854         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
14855         * lib/utimens.c (fdutimens, lutimens):
14856         * lib/utimensat.c (rpl_utimensat): Work around the bug.
14858         gettext: now it's your responsibility to add -I$(top_builddir)/intl
14859         Formerly, it was your responsibility to do this for all Makefile.ams
14860         other than Gnulib's.  Now it's your responsibility to do it for
14861         Gnulib's Makefile.am, too.
14862         * NEWS: Document this.
14863         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
14865         acl: include errno.h to get errno
14866         Reported by Daiki Ueno in
14867         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
14868         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
14870 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14872         tests: don't assume getdtablesize () <= 10000000
14873         * modules/cloexec-tests:
14874         * modules/dup2-tests:
14875         * modules/dup3-tests:
14876         * modules/nonblocking-tests:
14877         * modules/posix_spawn_file_actions_addclose-tests:
14878         * modules/posix_spawn_file_actions_adddup2-tests:
14879         * modules/posix_spawn_file_actions_addopen-tests:
14880         * modules/unistd-safer-tests:
14881         Depend on the getdtablesize module.
14882         * tests/test-cloexec.c:
14883         * tests/test-dup-safer.c:
14884         * tests/test-dup2.c:
14885         * tests/test-dup3.c:
14886         * tests/test-fcntl.c:
14887         * tests/test-nonblocking.c:
14888         * tests/test-posix_spawn_file_actions_addclose.c:
14889         * tests/test-posix_spawn_file_actions_adddup2.c:
14890         * tests/test-posix_spawn_file_actions_addopen.c:
14891         Don't assume getdtablesize () <= 10000000.
14893 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
14895         extern-inline: work around bug in Sun c99
14896         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
14897         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
14899 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14901         qacl: new module, broken out from the acl module
14902         This is for GNU Emacs, which wants the acl functions but does
14903         not want 'error' invoked when they fail.
14904         * lib/acl-internal.h: Do not include error.h, quote.h.
14905         (ENOSYS, ENOTSUP): Remove; no longer needed.
14906         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
14907         * lib/acl.h: Include <stdbool.h>.
14908         (acl_errno_valid): New function.
14909         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
14910         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
14911         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
14912         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
14913         (ACL_INTERNAL_INLINE): Remove; no longer needed.
14914         * lib/file-has-acl.c (file_has_acl):
14915         * lib/qcopy-acl.c (qcopy_acl):
14916         * lib/qset-acl.c (qset_acl):
14917         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
14918         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
14919         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
14920         lib/file-has-acl.c, m4/acl.m4 to qacl module.
14921         Add lib/set-acl.c.
14922         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
14923         Add qacl.
14924         (configure.ac): Move gl_FUNC_ACL to qacl module.
14925         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
14926         Rename set-mode-acl.c to set-acl.c.
14927         * lib/acl-errno-valid.c: New file.
14928         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
14929         copy_acl function remains in copy-acl.c.
14930         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
14931         (_): Remove; not needed.
14932         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
14933         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
14934         * modules/qacl: New file, moved from the old modules/acl.
14935         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
14936         Remove set-mode-acl.c, copy-acl.c.
14937         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
14939         alignof, intprops, malloca: port better to IBM's C compiler
14940         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
14941         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
14942         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
14944 2013-04-25  Daiki Ueno  <ueno@gnu.org>
14946         wctype-h: fix gettext link error on mingw
14947         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
14948         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
14949         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
14950         rpl_towupper and rpl_towupper.
14952 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
14954         regex-tests, regex: allow glibc re_search behavior
14955         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
14956         re_search input data to make the multi-character collating element
14957         in it clearly visible, and treat re_search return code 0 as valid.
14958         * m4/regex.m4 (gl_REGEX): Likewise.
14960 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14962         stdalign: doc fix
14963         * doc/posix-headers/stdalign.texi (stdalign.h):
14964         Gnulib doesn't support '_Alignof expr'.
14966 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14968         stdalign: port to stricter ISO C11
14969         ISO C11 says that _Alignof's operand must be a parenthesized type.
14970         Problem reported by Eli Zaretskii in
14971         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
14972         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
14973         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
14975 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14977         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
14978         Problem reported by Marco Atzeri in
14979         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
14980         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
14981         Simply delegate to the system <sys/select.h> in this case too.
14982         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
14983         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
14984         be needed on Solaris either.
14985         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
14986         Simply delegate to the system <sys/time.h> in this case.
14988 2013-03-19  Karl Berry  <karl@gnu.org>
14990         * build-aux/gnupload: check for erroneous (with gnupload) use of
14991         ftp-upload.gnu.org, tweak help.
14993 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14995         copy-file, rpmatch: fix problems found by cppcheck
14996         Reported by Arno Onken in
14997         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
14998         * lib/rpmatch.c (try): Fix memory leak.
14999         * lib/copy-file.c: Include "ignore-value.h".
15000         (qcopy_file_preserving): Ignore chown value.
15001         * modules/copy-file (Depends-on): Add ignore-value.
15003 2013-01-27  Jim Meyering  <jim@meyering.net>
15005         prefix-gnulib-mk: give better diagnostics
15006         * build-aux/prefix-gnulib-mk: Don't just "die".
15007         Give better diagnostics upon failure.
15009 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
15011         putenv: port to Solaris 10
15012         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
15013         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
15014         is not what is wanted here.
15015         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
15016         declaration, not for its existence.
15018 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
15020         mktime: fix configure typo
15021         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
15023 2013-03-12  Eric Blake  <eblake@redhat.com>
15025         regex-tests: skip UTF-8 test on mingw
15026         * modules/regex-tests (Depends-on): Add localcharset.
15027         * tests/test-regex.c (main): Use it to skip test on mingw.
15029 2013-03-11  Eric Blake  <eblake@redhat.com>
15031         tests: make it easier to bypass alarm time in debugger
15032         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
15033         * tests/test-memmem.c (main): Likewise.
15034         * tests/test-passfd.c (main): Likewise.
15035         * tests/test-ptsname.c (main): Likewise.
15036         * tests/test-ptsname_r.c (main): Likewise.
15037         * tests/test-strcasestr.c (main): Likewise.
15038         * tests/test-strstr.c (main): Likewise.
15040         regex: port to mingw's recent addition of undeclared alarm
15041         * doc/posix-functions/alarm.texi (alarm): Document that alarm
15042         exists but still doesn't work in newer mingw.
15043         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
15044         not existence.  Ensure SIGALRM is not trapped.
15045         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
15046         * m4/regex.m4 (gl_REGEX): Likewise.
15047         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
15048         * tests/test-regex.c (main): Use correct probe for alarm.
15050         putenv: avoid compilation warning on mingw
15051         * lib/putenv.c (_unsetenv): Protect variable declaration.
15052         (putenv): Fix indentation.
15054 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
15056         unistd: don't prevent Tru64 Unix from using gnulib strtod.
15057         * lib/unistd.in.h: be careful not to include un-needed system
15058         stdlib.h from here, because that prevents gnulib stdlib.h from
15059         defining rpl_strtod correctly.
15061 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
15063         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
15064         changesets, but for the 'precision 0' test.
15065         * tests/test-vasprintf-posix.c (test_function): Don't insist on
15066         round-to-even, since POSIX says rounding is implementation-defined
15067         and OS X 10.8.2 rounds 1.51 to 1 here.
15069         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
15070         changeset.
15071         * tests/test-vasprintf-posix.c (test_function): Don't insist on
15072         round-to-even, since POSIX says rounding is implementation-defined
15073         and OS X 10.8.2 rounds 1.5 to 1 here.
15075 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
15077         vasnprintf-posix-tests: allow rounding 1.5 to 1
15078         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
15079         round-to-even, since POSIX says rounding is implementation-defined
15080         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
15081         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
15083         bootstrap: port to FreeBSD
15084         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
15085         that treat '--' differently.  Reported by Mats Erik Andersson in
15086         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
15088 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
15090         regex: rename remaining __attribute calls to __attribute__.
15091         2012-02-25 changed definition of __attribute, but left some uses
15092         unchanged, preventing compilation of regex module on most non-gcc
15093         environments.
15094         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
15095         (lookup_collation_sequence_value, build_range_exp)
15096         (build_collating_symbol): Set attributes with newly renamed
15097         __attribute__ decorator.
15098         * lib/regex_internal.c (re_string_peek_byte_case)
15099         (re_node_set_compare, re_node_set_contains): Likewise.
15100         * lib/regexec.c (acquire_init_state_context): Likewise.
15102 2013-03-06  Bruno Haible  <bruno@clisp.org>
15104         execute: Revert last change, but use a different condition.
15105         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
15106         on Windows.
15108 2013-03-05  Eric Blake  <eblake@redhat.com>
15110         execute: drop dead code
15111         * lib/execute.c (nonintr_close, nonintr_open): Delete.
15113 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
15115         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
15116         * m4/non-recursive-gnulib-prefix-hack.m4
15117         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
15118         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
15119         <http://bugs.gnu.org/10305#237>.
15121 2013-03-04  Eric Blake  <eblake@redhat.com>
15123         test-getsockopt: avoid compiler warning
15124         * tests/test-getsockopt.c (includes): Ensure close is declared.
15126 2013-03-02  Bruno Haible  <bruno@clisp.org>
15128         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
15129         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
15131 2013-03-02  Bruno Haible  <bruno@clisp.org>
15133         gettext: Update to version 0.18.2.
15134         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
15135         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
15136                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
15138 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15140         regex: merge patches from libc
15142         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15143         * lib/regex_internal.h (__attribute__): Rename from __attribute.
15144         All uses changed.
15145         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
15146         (re_string_wchar_at, re_string_elem_size_at):
15147         Mark function as possibly unused.
15149         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
15150         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
15151         elements compare against the byte sequence of it, not its name.
15153 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15155         putenv: port better to native Windows
15156         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
15157         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
15158         (_unsetenv): Use _putenv if available.
15159         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
15160         a bit less likely to cause damage.
15161         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
15162         Fix the wrong value with SetEnvironmentVariable.
15163         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
15164         code better.
15166 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15168         regex: ignore old-style-definition warnings
15169         * lib/regex.c: Add pragma to ignore these warnings.
15170         Problem reported for GNU tar by Pavel Raiskup.
15172 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
15174         getcwd: support coreutils better
15175         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
15176         but this might not be correct in coreutils, which disables
15177         the raw decl checks.  Problem reported by Nagendra in
15178         <http://bugs.gnu.org/10305#192>.
15179         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
15180         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15181         Test the getcwd function, not any macro, since getcwd.c wants the
15182         function.
15183         * m4/getcwd.m4 (gl_FUNC_GETCWD):
15184         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
15185         compile, as might happen if there's a macro but no function.
15187         strtod: support coreutils better
15188         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
15189         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
15190         disables the raw decl checks.  This assumes there is an underlying
15191         strtod, but that's a safe assumption these days.
15192         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
15194         mountlist: port to HP NonStop
15195         Reported by Joachim Schmitz in
15196         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
15197         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
15198         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
15200 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15202         extern-inline: avoid compilation error with HP-UX cc
15203         Reported by Richard Lloyd in
15204         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
15205         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
15206         Suppress extern inline with HP-UX cc.  This should be safe,
15207         though it may hurt performance.  Perhaps someone with some HP-UX
15208         experience can come up with a higher-performance fix.
15210 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15212         putenv: fix heap corruption with mixed putenv/_putenv
15213         Problem reported by Michael Goffioul in
15214         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
15215         * lib/putenv.c (putenv) [HAVE__PUTENV]:
15216         Rely on _putenv to allocate the new environment.
15217         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
15218         * modules/putenv (configure.ac): Use it.
15220 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
15222         unsetenv etc.: port to Solaris 11 + GNU Emacs
15223         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
15224         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
15225         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
15226         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
15227         idea but is too painful to fix right now), and without this gnulib
15228         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
15229         compiling unsetenv.c on Solaris 11.  Fix the problem for
15230         unsetenv.c, and fix other similar occurrences.
15232 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15234         secure_getenv: fix C++ declaration typo
15235         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
15236         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
15237         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
15239 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15241         careadlinkat: stop exporting careadlinkatcwd
15242         Only Emacs used it directly, and Emacs no longer needs it.
15243         * NEWS: Document this simplification.
15244         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
15245         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
15246         for readlink.
15247         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
15248         Don't include stdlib.h; no longer needed.
15249         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
15250         * lib/relocwrapper.c: Adjust comment to match new dependencies.
15251         * modules/areadlink (Depends-on): Add readlink.
15252         (Maintainer): Add self.
15253         * modules/careadlinkat (Depends-on): Remove readlink.
15255         extensions: port better to HP-UX
15256         This is merged from git Autoconf.
15257         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15258         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
15259         so that it's compatible with the value used when compiling.
15261         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
15262         Problem reported by Mats Erik Andersson in
15263         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
15264         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15265         openpty function exists, not merely when we intend to replace it.
15266         This corrects the 2013-01-31 patch, which mistakenly defined
15267         HAVE_OPENPTY even on hosts that lacked it.
15269 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15271         secure_getenv: fix include typo
15272         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
15274         secure_getenv: port better to FreeBSD and Solaris
15275         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
15276         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
15277         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
15278         This works better on BSDish platforms.
15279         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
15280         Test for issetugid if __secure_getenv is missing.
15282 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15284         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
15285         Some of these changes are merged in from git Autoconf.
15286         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15287         When deciding whether to define _XOPEN_SOURCE, inspect the
15288         preprocessor macro __hpux instead of the more-heavyweight
15289         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
15290         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
15291         as the key for __EXTENSIONS__.
15293         unistd: avoid namespace pollution on non-glibc systems
15294         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
15295         This avoids namespace pollution on non-glibc systems, by causing
15296         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
15297         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
15298         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
15300 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15302         tmpdir: use secure_getenv
15303         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
15304         Define to secure_getenv, not getenv.
15305         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
15306         as that's now secure_getenv's job.
15307         * modules/tmpdir (Depends-on): Add secure_getenv.
15309         tempname: use secure_getenv
15310         * lib/tempname.c (__secure_getenv) [!_LIBC]:
15311         Define to secure_getenv, not getenv.
15312         * modules/tempname (Depends-on):
15313         Add secure_getenv.
15315         secure_getenv: new module
15316         * MODULES.html.sh (Extra functions based on ANSI C 89):
15317         Add secure_getenv.
15318         * doc/glibc-functions/secure_getenv.texi: New file.
15319         * doc/gnulib.texi: Include it.
15320         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
15321         New files.
15322         * lib/stdlib.in.h (secure_getenv): New decl.
15323         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
15324         * modules/stdlib (stdlib.h):
15325         Add secure_getenv checks.
15327 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15329         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
15330         Reported for OS X 10.8.2 by Assaf Gordon in
15331         <http://bugs.gnu.org/13516>.
15332         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
15333         !HAVE_OPENAT && !HAVE_FDOPENDIR.
15334         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
15335         so that they can be kept in sync more easily.  Avoid PATH_MAX
15336         test on the Hurd.  Sync from test-getcwd.c for errno tests after
15337         mkdir or chdir failure.
15338         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
15339         lib/getcwd.c.
15340         (test_abort_bug): Do not test for the deep directory bug unless we
15341         have openat support.  Avoid PATH_MAX test on the Hurd.
15343         regex-tests, regex: fix bug: memset undeclared
15344         * tests/test-regex.c: Don't include regex.h twice.  Include
15345         string.h, to declare memset.  Christensen's report also mentioned
15346         this issue.
15347         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
15348         test-regex.c, to avoid future problems like this.  Remove
15349         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
15350         twice.
15352         regex-tests: fix link errors on older Solaris
15353         These need to link with @LIBINTL@ to get libintl_gettext.
15354         Problem reported by Tom G. Christensen in
15355         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
15356         * modules/regex-tests (test_regex_LDADD): New macro.
15358 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15360         regex-tests: new module
15361         * modules/regex-tests, tests/test-regex.c: New files.
15363         regex: fix off-by-one error in configure test
15364         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
15366 2013-01-31  Eric Blake  <eblake@redhat.com>
15368         regex: avoid infinite configure test
15369         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
15371 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
15373         openpty: fix bug where HAVE_OPENPTY wasn't defined
15374         See the thread starting at:
15375         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
15376         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15377         openpty function exists, not merely when we intend to replace it.
15379 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15381         sys_time: port to Solaris 2.6
15382         There is a circularity problem on Solaris 2.6, where <time.h> includes
15383         <sys/time.h> for struct timespec.  The include nesting is gnulib
15384         <time.h>, system <time.h>, gnulib <sys/time.h>, system
15385         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
15386         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
15387         <sys/siginfo.h>; the last, innermost file needs struct
15388         timestruc_t, which is defined in <sys/time.h>, which has not been
15389         fully parsed.  Problem reported by Tom G. Christensen in
15390         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
15391         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
15392         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
15393         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
15394         uses split double-inclusion guards.
15396 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15398         regex: test for buffer overrun
15399         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
15400         for the just-fixed regex bug.
15402 2013-01-29  Andreas Schwab  <schwab@suse.de>
15404         regex: fix buffer overrun in regexp matcher [BZ #15078]
15405         * lib/regexec.c (extend_buffers): Add parameter min_len.
15406         (check_matching): Pass minimum needed length.
15407         (clean_state_log_if_needed): Likewise.
15408         (get_subexp): Likewise.
15410 2013-01-28  Pádraig Brady  <P@draigBrady.com>
15412         mountlist: don't consider "devtmpfs" as dummy
15413         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
15414         as there is storage associcated with it.
15416 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
15418         futimens-tests, utimens-tests: Depend on gettext.
15419         This works around a problem introduced in my 2013-01-12 patch,
15420         which added @LIBINTL@ to these modules.
15421         * modules/futimens-tests (Depends-on):
15422         * modules/utimens-tests (Depends-on): Add gettext.
15424 2013-01-26  Eric Blake  <eblake@redhat.com>
15426         test-getpeername: fix typo
15427         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
15429 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
15431         bootstrap: remove the need for a sorted .gitignore file
15432         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
15433         rename to insert_if_absent(), so that we don't need or generate
15434         a sorted .gitignore file.  We do require a .gitignore with no
15435         existing duplicate entries and enforce that.
15436         (sort_patterns): Remove this function as we now use the simpler
15437         technigue of inserting blacklist entries at the top of the file,
15438         assuming gnulib won't be inserting !whitelist entries.
15440 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15442         readlinkat: don't depend on gl_FUNC_OPENAT
15443         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
15444         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
15445         renameat.m4, symlinkat.m4; but one thing at a time.
15447         statat: new module, split out from fstatat
15448         GNU Emacs needs the POSIX-specified fstatat, but not the
15449         gnulib-specified statat and lstat.  Split the latter two into a
15450         new module 'statat'.
15451         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
15452         * lib/openat.h, lib/statat.c (STATAT_INLINE):
15453         Rename from FSTATAT_INLINE. All uses changed.
15454         * modules/fstatat (Files): Remove lib/statat.c.
15455         (gl_MODULE_INDICATOR([fstatat])): Remove.
15456         (lib_SOURCES): Remove.
15457         (Maintainer): Add self.
15458         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
15459         * tests/test-fstatat.c (BASE): Don't define if already defined.
15460         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
15462 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15464         tests: don't assume fd 99 is closed
15465         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
15466         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
15467         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
15468         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
15469         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
15470         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
15471         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
15472         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
15473         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
15474         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
15475         * tests/test-fwrite.c, tests/test-getpeername.c:
15476         * tests/test-getsockname.c, tests/test-getsockopt.c:
15477         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
15478         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
15479         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
15480         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
15481         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
15482         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
15483         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
15484         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
15485         * tests/test-unlinkat.c, tests/test-unlockpt.c:
15486         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
15487         Close file descriptor 99, instead of assuming it's already closed.
15489 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15491         stpncpy: port to OS X 10.8
15492         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
15493         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
15495 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15497         unistd: port to recent mingw
15498         * lib/unistd.in.h: Remove special invocation convention for mingw,
15499         which breaks for the latest mingw version.  See John W. Eaton in
15500         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
15502         largefile: port better to Mac OS X 10.5
15503         This patch is backported from Autoconf git.
15504         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
15505         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
15506         with ino_t size being different for configuration time versus
15507         build/run time.  Problem reported by PHO in
15508         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
15510 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15512         doc: clarify -Werror
15513         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
15514         clarify that it's intended for developers, not for ordinary builds,
15515         and mention --enable-gcc-warnings as one possible use.
15517 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
15519         stdint: fix build with Android's Bionic fox x86
15520         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
15521         was already included as _SSIZE_T_DEFINED_ might also be defined
15522         in include/machine/_types.h, which is included by stdio.h
15524 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
15526         net_if-tests: port to Solaris 7 + GCC 3.4.6
15527         Problem reported by Tom G. Christensen in
15528         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
15529         * tests/test-net_if.c (ni): Move to next the code that uses it,
15530         so that it's declared only if needed.
15532 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
15534         net_if-tests: port to older Solaris
15535         Problem reported by Tom G. Christensen in
15536         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15537         * modules/net_if-tests (NET_IF_LIB): New substitution.
15538         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
15539         (HAVE_IF_NAMEINDEX): New C macro.
15540         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
15542         system-quote-tests: port to older Solaris
15543         Problem reported by Tom G. Christensen in
15544         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15545         * tests/test-system-quote-child.c (fopen, fread): Undef.
15547         c-xvasprintf etc.: fix link errors on older Solaris
15548         These need to link with @LIBINTL@ to get libintl_gettext.
15549         Problem reported by Tom G. Christensen in
15550         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15551         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
15552         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
15553         * modules/futimens-tests (test_futimens_LDADD):
15554         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
15556 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15558         locale: port to Solaris 2.6 and 7 + GNU gettext
15559         * lib/locale.in.h: Just include_next <locale.h> when
15560         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
15561         when combining the localename module with GNU gettext 0.18.2.
15562         Problem reported by Tom G. Christensen in
15563         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
15565 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15567         stdlib: port to Solaris 2.6
15568         Also, the code worked on Solaris 7 through 9 only by accident.
15569         Problem reported by Tom G. Christensen in
15570         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
15571         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
15572         simply include the system stdlib.h.
15573         * lib/getopt.in.h (__need_system_stdlib_h):
15574         * lib/pthread.in.h (__need_system_stdlib_h):
15575         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
15576         Define when including <stdlib.h>, to avoid problems at least for
15577         the pthread case on Solaris 2.6 and 7.  These .h files can get by
15578         with the system stdlib.h.
15580 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15582         doc: update main copyright year
15583         * doc/gnulib.texi: Update copyright date.
15585         doc: improve ISO 8601 discussion
15586         * doc/parse-datetime.texi (Combined date and time of day items):
15587         Specify more carefully what formats are supported and what is
15588         done with excess precision.
15590 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15592         doc: avoid small caps
15593         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
15594         they're more trouble than they're worth.  Suggested by Karl Berry
15595         in <http://bugs.gnu.org/13360>.
15597         regex: conform to strict C
15598         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
15599         From Aharon Robbins.
15601         gnulib-tool: fix incompatibility with autopoint 0.18.2
15602         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
15603         Problem reported by Tom G. Christensen in
15604         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
15606 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15608         fprintftime: bring back and reword fwrite comment
15609         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
15611         stdio: remove now-unnecessary stdio.c
15612         Since stdio.in.h no longer uses inline functions, we no longer
15613         need to compile the extern versions.
15614         * lib/stdio.c: Remove.
15615         * modules/stdio (Files): Remove lib/stdio.c.
15616         (lib_SOURCES): Remove.
15618         unicodeio: depend on stdio, not ignore-value
15619         * lib/unicodeio.c: Do not include ignore-value.h.
15620         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
15621         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
15623         fprintftime: depend on stdio, not ignore-value
15624         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
15625         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
15626         since the stdio module arranges to silence that warning now.
15627         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
15629 2012-10-04  Simon Josefsson  <simon@josefsson.org>
15631         stdint-tests: Fix expanded-before-required-warning.
15632         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
15634 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15636         fwrite: silence __wur only for older glibc versions
15637         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
15638         This will help us remove this workaround some time in the far future.
15640 2013-01-03  Eric Blake  <eblake@redhat.com>
15642         fwrite: silence __wur without using inline
15643         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
15644         just gcc, and in a way that avoids inline issues.
15645         * modules/stdio (Depends-on): Drop extern-inline.
15647 2013-01-03  Jim Meyering  <jim@meyering.net>
15649         update-copyright: avoid copyright notice date corruption
15650         Given a sequence of copyright year numbers in which the final
15651         one was a two-digit number that happened to be a substring of
15652         a preceding four-digit year number, we would mistakenly update
15653         the substring (from two- to four-digit) rather than the two-digit
15654         number at the end, which, combined with the addition of the current
15655         4-digit year number would yield two 5-digit year numbers, e.g.,
15656         here, it would convert the first "99" to "1999, 2013" rather than
15657         the final one:
15658           1991, 99
15659           11999, 20131, 1999
15660         * build-aux/update-copyright: Tighten a regexp.
15661         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
15662         Reported by Joseph Myers in
15663         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
15665 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15667         regex: omit needless signed-pointer casts
15668         * lib/regcomp.c (build_charclass, build_charclass_op):
15669         Use char *, not unsigned char *, for class name and extra.
15670         The char values are always nonnegative so there's no need to
15671         insist on unsigned char * here, and using char * removes the need
15672         for casts.  Reported by Aharon Robbins in
15673         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15675         regex: support Gawk, which never uses alloca
15676         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
15677         Do not include in this case.  Gawk doesn't supply a substitute
15678         alloca.h and doesn't need one.
15680         regex: port __libc_lock_define usage to C89
15681         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
15682         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
15683         does not conform to C89, as it has an empty macro argument.
15684         Reported by Aharon Robbins in
15685         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15687 2013-01-01  Eric Blake  <eblake@redhat.com>
15689         maint: update all copyright year number ranges
15690         Run "make update-copyright".
15692         version-etc: bump copyright year reported in --version
15693         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
15695 2012-12-31  Eric Blake  <eblake@redhat.com>
15697         sigprocmask-tests: skip test if pid is unexpectedly large
15698         * tests/test-sigprocmask.c (main): Add range check.
15700         git-version-gen: avoid test -z portability glitch
15701         * build-aux/git-version-gen: Prefer portable test spelling, since
15702         git-version-gen is run on more than just developer machines.
15704 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
15706         git-version-gen: add --fallback option to use if git is not present
15707         * build-aux/git-version-gen: Add support for the new option --fallback,
15708         which comes into play when there is no $tarball_version_file and
15709         git is not working.
15710         (scriptversion): Update.
15712         maint.mk: handle missing git with more grace
15713         * top/maint.mk (no-submodule-changes, public-submodule-commit):
15714         Quietly proceed if git is not present.
15716 2012-12-31  Eric Blake  <eblake@redhat.com>
15718         dup2: work around cygwin bug
15719         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
15720         * lib/dup2.c (rpl_dup2): Work around it.
15721         * doc/posix-functions/dup2.texi (dup2): Document it.
15723 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15725         regex: remove unnecessary dependency on localcharset.h
15726         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
15727         hasn't been needed for years.
15728         * modules/regex (Depends-on): Remove localcharset.
15730         regex: revert single-byte change
15731         * lib/regexec.c (check_node_accept_bytes): Revert previous change
15732         to this function.  This was alredy fixed in a different way, at
15733         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
15734         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
15735         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
15737         regex: simplify based on Gawk version
15738         * lib/regex_internal.c (re_dfa_add_node): Simplify.
15739         Reported by Aharon Robbins in
15740         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15742 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15744         regex: check that pattern char is single-byte
15745         Reported by Aharon Robbins in
15746         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15747         * lib/regexec.c (check_node_accept_bytes):
15748         Return 0 if the pattern string has a multibyte character here.
15750         regex: implement rational ranges
15751         Reported by Aharon Robbins in
15752         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15753         * lib/regcomp.c (build_range_exp) [!_LIBC]:
15754         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
15755         Implement rational ranges.
15757         regex: avoid redefining __wctype
15758         Reported by Aharon Robbins in
15759         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15760         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
15761         #undef before defining.
15763         regex: port to hosts where malloc (0) == NULL
15764         Reported by Aharon Robbins in
15765         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15766         * lib/regex_internal.c (re_node_set_alloc):
15767         Don't assume that malloc (0) yields nonnull.
15768         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
15769         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
15770         * modules/regex (Files): Add m4/eealloc.m4.
15772         regex: port to C89
15773         Reported by Aharon Robbins in
15774         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15775         * lib/regcomp.c (init_word_char): Declaration before statement.
15777         regex: merge glibc changes
15778         Also, copy the license wording from glibc.  This simplifies
15779         merging changes.  gnulib-tool will change the wording to GPL as
15780         appropriate, when importing it to other packages.  The only
15781         glibc change made since the last merge, which needs merging, is:
15782         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
15783         * lib/regex_internal.h (gettext): Remove use of INTUSE.
15785         * users.txt: Add Emacs.
15787         doc: omit mention of version when not needed
15788         * doc/gnulib-intro.texi (Portability and Application Code):
15789         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
15790         Don't mention particular dates or versions when not necessary, so
15791         that the documentation won't go out of date so quickly.
15793         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
15795 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
15797         bootstrap: pass --force to autoreconf.
15798         * build-aux/bootstrap (AUTORECONFFLAGS): New.
15799         Add "--force" so that Automake's ylwrap and other such tools
15800         be updated at each bootstrap invocation.
15801         Use it.
15803 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15805         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
15806         The earlier patch forgot to update one of the #if conditions, causing
15807         a problem on Debian testing i386 reported by Mats Erik Andersson
15808         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
15809         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
15810         (__argp_fmtstream_puts, argp_fmtstream_puts)
15811         (__argp_fmtstream_write, argp_fmtstream_write)
15812         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
15814         * doc/gnulib-readme.texi: Minor fixups.
15815         (Portability guidelines): Modernize URLs.  Remove some repetition.
15816         (Indent with spaces not TABs): Reword to avoid too-long lines.
15817         Remove some '@ifset standalone' stuff that isn't used.
15819         * doc/gnulib-readme.texi (Portability guidelines):
15820         ctype.h, not ctime.h.
15822         Correct name of POSIX.1-2001.
15823         * doc/posix-functions/fgetc.texi (fgetc):
15824         * doc/posix-functions/fgets.texi (fgets):
15825         * doc/posix-functions/fread.texi (fread):
15826         * doc/posix-functions/fscanf.texi (fscanf):
15827         * doc/posix-functions/getc.texi (getc):
15828         * doc/posix-functions/getchar.texi (getchar):
15829         * doc/posix-functions/scanf.texi (scanf):
15830         POSIX.1-2001, not POSIX-2001.
15832         doc: move README into manual
15833         * README: Move contents to new file doc/gnulib-readme.texi.
15834         Replace with a one-line summary.
15835         * doc/gnulib.texi (Brief Overview): New section,
15836         with old intro preface.  Include gnulib-readme.texi for contents.
15837         (Philosophy): Rename from "Introduction", since this
15838         section no longer introduces the rest.  Write a new preface.
15839         * doc/gnulib-readme.texi: New file, with the old contents of
15840         README texinfo-ized.  This way, the README info appears
15841         in the online and printed manual.
15843 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
15845         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
15846         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
15847         c_vasprintf() prototype.
15849 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
15851         c-vasprintf: Fix "empty declaration" warning reported by GCC.
15852         * lib/c-vasprintf.h: Remove stray semicolon.
15854 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15856         gettext: avoid obsolete macro AM_PROG_MKDIR_P
15857         It is obsolete and is planned to be removed from Automake 1.14; see
15858         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
15859         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
15860         (installdirs-data, installdirs-data-yes):
15861         Use $(MKDIR_P), not $(mkdir_p).
15862         * m4/intl.m4 (AM_INTL_SUBDIR):
15863         * m4/po.m4 (AM_PO_SUBDIRS):
15864         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
15866 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15868         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
15869         On this platform, we are not optimizing but we are using
15870         the substitute for extern inlines, so compile as if
15871         C99-style extern inline, or a substitute, is available.
15872         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
15873         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
15874         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
15875         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
15876         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
15877         Declare as ARGP_FS_EI, not as extern.
15878         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
15879         (__option_is_short, _option_is_end, __option_is_end)
15880         [!_LIBC && __USE_EXTERN_INLINES]:
15881         Declare as ARGP_EI, not as extern.
15883 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15885         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
15886         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
15887         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
15888         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
15889         ...), as the latter is fatal with older Autoconfs.
15890         Problem reported and fix suggested by Eric Blake in thread starting at
15891         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
15893 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15895         AC_PROG_MKDIR_P: don't workaround if not buggy
15896         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
15897         Define only for Autoconf versions before 2.62.
15898         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
15899         undocumented m4_PACKAGE_VERSION, for consistency with the
15900         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
15901         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
15902         was introduced in 2.62.
15904 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
15906         New 'c-*printf' modules for formatted output in C locale.
15908         New module 'c-vasnprintf'.
15909         * modules/c-vasnprintf: New file.
15910         * lib/c-vasnprintf.c: New file.
15911         * lib/c-vasnprintf.h: New file.
15913         New module 'c-snprintf'.
15914         * modules/c-snprintf: New file.
15915         * modules/c-snprintf-tests: New file.
15916         * lib/c-snprintf.c: New file.
15917         * lib/c-snprintf.h: New file.
15918         * tests/test-c-snprintf.c: New file.
15919         * tests/test-c-snprintf.sh: New file.
15921         New module 'c-vsnprintf'.
15922         * modules/c-vsnprintf: New file.
15923         * modules/c-vsnprintf-tests: New file.
15924         * lib/c-vsnprintf.c: New file.
15925         * lib/c-vsnprintf.h: New file.
15926         * tests/test-c-vsnprintf.c: New file.
15927         * tests/test-c-vsnprintf.sh: New file.
15929         New module 'c-vasprintf'.
15930         * modules/c-vasprintf: New file.
15931         * modules/c-vasprintf-tests: New file.
15932         * lib/c-asprintf.c: New file.
15933         * lib/c-vasprintf.c: New file.
15934         * lib/c-vasprintf.h: New file.
15935         * tests/test-c-vasprintf.c  +: New file.
15936         * tests/test-c-vasprintf.sh: New file.
15938         New module 'c-xvasprintf'.
15939         * modules/c-xvasprintf: New file.
15940         * modules/c-xvasprintf-tests: New file.
15941         * lib/c-xasprintf.c: New file.
15942         * lib/c-xvasprintf.c: New file.
15943         * lib/c-xvasprintf.h: New file.
15944         * tests/test-c-xvasprintf.c: New file.
15945         * tests/test-c-xvasprintf.sh: New file.
15947 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15949         argp: better 'inline'
15950         Use extern-inline module to declare extern inline functions.
15951         This avoids some bogus warning diagnostics.  Problem discovered
15952         when modifying GNU tar to use the manywarnings module.
15953         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
15954         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
15955         Define based on extern-inline.
15956         * modules/argp (Depends-on): Add extern-inline.
15958 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15960         filemode, sys_stat: Handle MPX files a la AIX.
15961         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
15962         * lib/sys_stat.in.h (S_ISMPX): New macro.
15963         * tests/test-sys_stat.c: Add tests for MPX files.
15965 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15967         x-to-1: honor $PERL
15968         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
15969         a chance to use his preferred version of Perl.  This is typically
15970         required by Darwin users whose default /usr/bin/perl does not have all
15971         the libraries required by help2man, and who need to use their MacPorts
15972         installation of Perl instead.
15974 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
15976         gnu-web-doc-update: add all the new files, even in new directories
15977         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
15978         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
15979         Use it.
15980         (main): Don't use cvsutils to get the list of unknown files,
15981         just add all the existing files and directories.
15983 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
15985         gnu-web-doc-update: improve --help
15986         * build-aux/gnu-web-doc-update: Move comments into --help.
15988 2012-12-07  Eric Wong  <normalperson@yhbt.net>
15990         mountlist: recognize more "dummy" file systems
15991         * lib/mountlist.c (ME_DUMMY_0):
15992         Add these dummy FS names to the list:
15993         - "debugfs" virtual filesystem for kernel debugging
15994         - "devpts" PTY slave filesystem
15995         - "devtmpfs" device filesystem on top of tmpfs/ramfs
15996         - "fusectl" control filesystem for FUSE
15997         - "mqueue" enumerates POSIX message queues
15998         - "rpc_pipefs" kernel <-> userspace bridge for NFS
15999         - "sysfs" is for exporting kernel objects
16000         - "devfs" device filesystem for Linux 2.4 and FreeBSD
16002 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
16004         extern-inline: avoid incompatibility with Darwin Libc
16005         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
16006         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
16007         Problem reported by Akim Demaille in
16008         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
16010 2012-12-11  Simon Josefsson  <simon@josefsson.org>
16012         gnupload: Work with GnuPG using gpg-agent (for smartcards).
16013         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
16014         let it handle password prompting.
16016 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
16018         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
16019         * lib/canonicalize.c (canonicalize_filename_mode):
16020         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
16021         fetching the current directory.  Don't overrun the beginning of
16022         rpath if there's no slashes after the MS-Windows drive letter.
16024 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
16026         maint.mk: avoid extra forks
16027         * top/maint.mk (_cfg_mk): The GNU make manual documents that
16028         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
16029         So use that instead of "$(shell test -f FILE && echo FILE)".
16031 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
16033         vasnprintf: fix ASCII_ONLY typo
16034         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16035         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16036         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
16037         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
16038         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
16040 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
16042         list, oset, xlist, xoset: fix extern inline issue with C99
16043         This was introduced by my recent changes for 'inline'.
16044         Problem reported for gettext by Daiki Ueno in
16045         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
16046         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
16047         (gl_list_nx_create, gl_list_size, gl_list_node_value)
16048         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
16049         (gl_list_previous_node, gl_list_get_at)
16050         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
16051         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
16052         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
16053         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
16054         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
16055         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
16056         (gl_list_iterator_free, gl_sortedlist_search)
16057         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
16058         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
16059         (gl_sortedlist_remove):
16060         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
16061         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
16062         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
16063         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
16064         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
16065         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
16066         (gl_list_add_at, gl_sortedlist_add):
16067         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
16068         Wrap these extern decls inside "#if 0", because they are implemented
16069         as inline functions, and extern inline is not what's wanted here.
16070         It would simplify these .h files to remove the extern decls entirely,
16071         although a downside would be less-clear separation between
16072         specification and implementation.
16074 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
16076         sys_stat: no 'static inline'
16077         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
16078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
16080         extern-inline: no 'static inline'
16081         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16082         Do not require AC_C_INLINE.
16083         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
16084         'static inline', for older compilers.
16086         snippet/warn-on-use: no 'static inline'
16087         * build-aux/snippet/warn-on-use.h:
16088         Remove unnecessary 'inline' in comment.
16090         rbtree-list, rbtreehash-list: no 'static inline'
16091         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
16092         * lib/gl_anytree_list2.h (node_at):
16093         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
16094         (gl_oset_first, add_nodes_to_buckets):
16095         Now static, not static inline.
16097         regex: no 'static inline'
16098         * lib/regex_internal.c (calc_state_hash):
16099         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
16100         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
16101         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
16102         Now static, not static inline.
16103         (inline) [__GNUC__ < 3 && _LIBC]:
16104         Remove macro; no longer needed.
16106         xvasprintf: no 'static inline'
16107         * lib/xvasprintf.c (xstrcat):
16108         Now static, not static inline.
16109         * m4/xvasprintf.m4 (gl_XVASPRINTF):
16110         Do not require AC_C_INLINE.
16112         parse-datetime, parse-duration: no 'static inline'
16113         * lib/parse-datetime.y (to_uchar):
16114         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
16115         (scale_n_add):
16116         Now static, not static inline.
16117         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
16118         * modules/parse-duration (configure.ac):
16119         Do not require AC_C_INLINE.
16121         getaddrinfo: no 'static inline'
16122         * lib/getaddrinfo.c (validate_family):
16123         Now static, not static inline.
16124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
16125         Do not require AC_C_INLINE.
16127         ftruncate, fts, lstat, openat, raise: no 'static inline'
16128         * lib/ftruncate.c (chsize_nothrow):
16129         * lib/fts.c (opendirat, diropen):
16130         * lib/lstat.c (orig_lstat):
16131         * lib/openat.c (orig_openat):
16132         * lib/raise.c (raise_nothrow):
16133         Now static, not static inline.
16134         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
16135         * m4/fts.m4 (gl_FUNC_FTS_CORE):
16136         * m4/lstat.m4 (gl_PREREQ_LSTAT):
16137         * m4/openat.m4 (gl_PREREQ_OPENAT):
16138         * m4/raise.m4 (gl_PREREQ_RAISE):
16139         Do not require AC_C_INLINE.
16141         fflush, stat: no 'static inline'
16142         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16143         (clear_ungetc_buffer, disable_seek_optimization)
16144         (restore_seek_optimization, update_fpos_cache):
16145         * lib/stat.c (orig_stat):
16146         Now static, not static inline.
16147         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
16148         (update_fpos_cache):
16149         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
16150         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
16151         * m4/stat.m4 (gl_PREREQ_STAT):
16152         Do not require AC_C_INLINE.
16154         error, filevercmp: no 'static inline'
16155         * lib/error.c (is_open, flush_stdout):
16156         * lib/filevercmp.c (order):
16157         Now static, not static inline.
16158         * m4/error.m4 (gl_PREREQ_ERROR):
16159         * modules/filevercmp (configure.ac):
16160         Do not require AC_C_INLINE.
16162         dup, execute, fatal-signal, etc.: no 'static inline'
16163         * lib/dup.c (dup_nothrow):
16164         * lib/execute.c (nonintr_close, nonintr_open):
16165         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
16166         * lib/fopen.c (orig_fopen):
16167         * lib/freadseek.c (freadptrinc):
16168         * lib/freopen.c (orig_freopen):
16169         * lib/fstat.c (orig_fstat, fstat_nothrow):
16170         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
16171         (get_rusage_as_via_iterator):
16172         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
16173         * lib/getdtablesize.c (_setmaxstdio_nothrow):
16174         * lib/isatty.c (_isatty_nothrow):
16175         * lib/open.c (orig_open):
16176         * lib/read.c (read_nothrow):
16177         * lib/sigprocmask.c (signal_nothrow):
16178         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
16179         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
16180         * lib/wait-process.c (unregister_slave_subprocess):
16181         * lib/write.c (write_nothrow):
16182         Now static, not static inline.
16183         * lib/spawn-pipe.c (nonintr_open): Define only if
16184         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
16185         * m4/dup.m4 (gl_PREREQ_DUP):
16186         * m4/execute.m4 (gl_EXECUTE):
16187         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
16188         * m4/fopen.m4 (gl_PREREQ_FOPEN):
16189         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
16190         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
16191         * m4/fstat.m4 (gl_PREREQ_FSTAT):
16192         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
16193         * m4/isatty.m4 (gl_PREREQ_ISATTY):
16194         * m4/open.m4 (gl_PREREQ_OPEN):
16195         * m4/read.m4 (gl_PREREQ_READ):
16196         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
16197         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
16198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
16199         * m4/wait-process.m4 (gl_WAIT_PROCESS):
16200         * m4/write.m4 (gl_PREREQ_WRITE):
16201         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
16202         Do not require AC_C_INLINE.
16204         c-strtod, memcoll, readutmp: no 'static inline'
16205         * lib/c-strtod.c (c_locale):
16206         * lib/memcoll.c (strcoll_loop):
16207         * lib/readutmp.c (desirable_utmp_entry):
16208         Now static, not static inline.
16209         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
16210         * m4/memcoll.m4 (gl_MEMCOLL):
16211         * m4/readutmp.m4 (gl_READUTMP):
16212         Do not require AC_C_INLINE.
16214         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
16215         * lib/arctwo.c (to_uchar):
16216         * lib/md4.c (set_uint32):
16217         * lib/md5.c (set_uint32):
16218         * lib/sha1.c (set_uint32):
16219         * lib/sha256.c (set_uint32):
16220         * lib/sha512.c (set_uint64):
16221         Now static, not static inline.  This is a bit simpler, and doesn't
16222         affect performance with GCC and default optimization.
16223         * m4/arctwo.m4 (gl_ARCTWO):
16224         * m4/md4.m4 (gl_MD4):
16225         * m4/md5.m4 (gl_MD5):
16226         * m4/sha1.m4 (gl_SHA1):
16227         * m4/sha256.m4 (gl_SHA256):
16228         * m4/sha512.m4 (gl_SHA512):
16229         Do not require AC_C_INLINE.
16231         cond, lock, thread: better 'inline'
16232         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
16233         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
16234         New macros.  Use them instead of static inline, for header functions.
16235         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
16236         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16237         * lib/glthread/lock.c (gl_waitqueue_init)
16238         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16239         * lib/glthread/thread.c (get_current_thread_handle):
16240         Change 'static inline' to 'inline'.
16241         * lib/glthread/cond.h, lib/glthread/thread.h:
16242         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16243         * m4/cond.m4 (gl_COND):
16244         * m4/lock.m4 (gl_PREREQ_LOCK):
16245         * m4/thread.m4 (gl_THREAD):
16246         Do not require AC_C_INLINE.
16247         * modules/cond, modules/thread (Depends-on): Add extern-inline.
16249         chdir-long, cycle-check, savewd: better 'inline'
16250         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
16251         (find_non_slash):
16252         * lib/cycle-check.c (is_zero_or_power_of_two):
16253         * lib/savewd.c (savewd_delegating):
16254         Change 'static inline' to 'inline'.
16255         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
16256         Replace all remaining uses of 'static inline' with it.
16257         * lib/savewd.h:
16258         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16259         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
16260         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16261         * m4/savewd.m4 (gl_SAVEWD):
16262         Do not require AC_C_INLINE.
16263         * modules/savewd (Depends-on): Add extern-inline.
16265         base32, base64: no need for 'inline'
16266         * lib/base32.c (to_uchar, get_8, decode_8):
16267         * lib/base64.c (to_uchar, get_4, decode_4):
16268         Change 'static inline' to 'inline'.
16269         * m4/base32.m4 (gl_PREREQ_BASE32):
16270         * m4/base64.m4 (gl_PREREQ_BASE64):
16271         Do not require AC_C_INLINE.
16273         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
16274         * lib/gl_array_oset.c (gl_array_nx_add_at):
16275         (gl_array_remove_at):
16276         * lib/gl_linkedhash_list.c (hash_resize_after_add)
16277         (add_to_bucket, remove_from_bucket):
16278         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
16279         Change 'static inline' to 'static', as it's simpler to omit
16280         'inline' unless there's a significant performance advantage.
16282         list, oset, xlist, xoset, xsublist: simplify via extern inline
16283         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
16284         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
16285         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
16286         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
16287         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
16288         New macro.  Replace all uses of 'static inline' with it.
16289         [HAVE_INLINE]: Implement functions as *_INLINE functions,
16290         instead of as macros FOO that are defined to static inline
16291         functions FOO_inline.
16292         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
16293         * lib/gl_xsublist.c:
16294         Reimplement from scratch, by defining the corresponding *_INLINE
16295         macro and including the corresponding .h file.  This is simpler.
16296         * modules/list, modules/oset, modules/xlist, modules/xoset:
16297         (Files): Remove m4/gl_list.m4.
16298         (configure.ac): Remove gl_LIST.
16299         * m4/gl_list.m4: Remove.
16300         * modules/list, modules/oset, modules/xlist, modules/xoset:
16301         * modules/xsublist:
16302         (Depends-on): Depend on extern-inline, not inline.
16304         xalloc: better 'inline'
16305         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
16306         New macro.  Replace all uses of 'static inline' with it.
16307         (static_inline): Remove.
16308         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
16309         Let 'extern inline' do the work automatically, instead of doing
16310         it by hand.
16311         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
16312         Remove.  All uses removed.
16313         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
16315         gethrxtime: better 'inline'
16316         * lib/xtime.c: New file.
16317         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
16318         * lib/xtime.h (XTIME_INCLUDE):
16319         New macros.  Replace all uses of 'static inline' with them.
16320         * lib/gethrxtime.c (gethrxtime): Define only if
16321         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
16322         this source file is now always compiled, because of the extern inline.
16323         * lib/gethrxtime.h, lib/xtime.h:
16324         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16325         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
16326         if gethrtime works, as they're not needed in that case.
16327         (gl_XTIME): Do not require AC_C_INLINE.
16328         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
16329         compiled now.  Move the check into gl_GETHRXTIME.
16330         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
16331         (Depends-on): Add extern-inline.
16332         (configure.ac): gethrxtime is always compiled now.
16333         (lib_SOURCES): Add gethrxtime.c.
16335         wctype-h: better 'inline'
16336         * lib/wctype-h.c: New file.
16337         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
16338         New macro.  Replace all uses of 'static inline' with it.
16339         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16340         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
16341         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
16342         (Depends-on): Add extern-inline.
16344         unistd: better 'inline'
16345         * lib/unistd.c: New file.
16346         * lib/unistd.in.h (_GL_UNISTD_INLINE):
16347         New macro.  Replace all uses of 'static inline' with it.
16348         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16349         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
16350         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
16351         (Depends-on): Add extern-inline.
16353         sys_socket: better 'inline'
16354         * lib/sys_socket.c: New file.
16355         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
16356         New macro.  Replace all uses of 'static inline' with it.
16357         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
16359         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
16360         (Depends-on): Add extern-inline.
16362         stdio: better 'inline'
16363         * lib/stdio.c: New file.
16364         * lib/stdio.in.h (_GL_STDIO_INLINE):
16365         New macro.  Replace all uses of 'static inline' with it.
16366         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16367         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
16368         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
16369         (Depends-on): Add extern-inline.
16371         sigaction: better 'inline'
16372         * lib/sig-handler.c: New file.
16373         * lib/sig-handler.h (SIG_HANDLER_INLINE):
16374         New macro.  Replace all uses of 'static inline' with it.
16375         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16376         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
16377         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
16378         (Depends-on): Add extern-inline.
16380         selinux-h: better 'inline'
16381         * lib/se-context.c, lib/se-selinux.c: New files.
16382         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
16383         * lib/se-context.in.h (SE_CONTEXT_INLINE):
16384         New macro.  Replace all uses of 'static inline' with it.
16385         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16386         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
16387         New macro.  Replace all uses of 'static inline' with it.
16388         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16389         * modules/selinux-h (Files, lib_SOURCES):
16390         Add lib/se-context.c, lib/se-selinux.c.
16391         (Depends-on): Add extern-inline.
16392         (configure.ac): Do not require AC_C_INLINE.
16394         pthread: better 'inline'
16395         * lib/pthread.c: New file.
16396         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
16397         New macro.  Replace all uses of 'static inline' with it.
16398         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16399         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16400         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
16401         * modules/pthread (Files): Add lib/pthread.c.
16402         (Depends-on): Add extern-inline.
16404         math: better 'inline'
16405         * lib/math.c: New file.
16406         * lib/math.in.h (_GL_MATH_INLINE):
16407         New macro.  Replace all uses of 'static inline' with it.
16408         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16409         * m4/math_h.m4 (gl_MATH_H):
16410         Do not require AC_C_INLINE.
16411         * modules/math (Files, lib_SOURCES):
16412         Add lib/math.c.
16413         (Depends-on): Add extern-inline.
16415         count-one-bits: better 'inline'
16416         * lib/count-one-bits.c: New file.
16417         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
16418         New macro.  Replace all uses of 'static inline' with it.
16419         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16420         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
16421         Do not require AC_C_INLINE.
16422         * modules/count-one-bits (Files, lib_SOURCES):
16423         Add lib/count-one-bits.c.
16424         (Depends-on): Add extern-inline.
16426         count-leading-zeros: better 'inline'
16427         * lib/count-leading-zeros.c: New file.
16428         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
16429         New macro.  Replace all uses of 'static inline' with it.
16430         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16431         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
16432         Do not require AC_C_INLINE.
16433         * modules/count-leading-zeros (Files, lib_SOURCES):
16434         Add lib/count-leading-zeros.c.
16435         (Depends-on): Add extern-inline.
16437         bitrotate: better 'inline'
16438         * lib/bitrotate.c: New file.
16439         * lib/bitrotate.h (BITROTATE_INLINE):
16440         New macros.
16441         Replace all uses of 'static inline' with them.
16442         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16443         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
16444         (Depends-on): Add extern-inline.
16445         (configure.ac): Do not require AC_C_INLINE.
16447 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
16449         maint.mk: avoid gratuitous failure
16450         Reported by Stefano Lattarini in
16451         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
16452         * top/maint.mk (public-submodule-commit): Quote more safely.
16454 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
16456         canonicalize, canonicalize-lgpl: support MS-Windows file names
16457         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
16458         for test cases, which it'd be nice to add at some point.
16459         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
16460         * lib/canonicalize.c (canonicalize_filename_mode):
16461         * lib/canonicalize-lgpl.c (__realpath):
16462         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
16463         slash is at the beginning of the file name.  Use ISSLASH, instead
16464         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
16465         the first character with '/'.  Test for
16466         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
16467         with a drive letter.
16468         * lib/canonicalize.c (SLASHES): New macro.
16469         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
16471 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
16473         fts: introduce FTS_VERBATIM
16474         * lib/fts_.h (FTS_VERBATIM): New bit flag.
16475         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
16476         * lib/fts.c (fts_open): Honor it.
16478 2012-11-09  Pádraig Brady  <P@draigBrady.com>
16480         getlogin-tests: allow errno == ENXIO
16481         * tests/test-getlogin.c (main): Skip tests if getlogin fails
16482         with errno == ENXIO (No controlling tty).
16483         getlogin_r-tests: Likewise. Also allow errno == ENOENT
16484         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
16485         with errno == ENOENT.  This was reported to happen in various
16486         situations on GNU/Linux.
16488 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16490         getlogin-tests: allow errno == ENOENT
16491         * tests/test-getlogin.c (main): Skip tests if getlogin fails
16492         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
16493         when running a test in an Emacs shell buffer.
16495 2012-11-08  Jim Meyering  <jim@meyering.net>
16497         tests/nap.h: avoid warning about unused variable
16498         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
16500         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
16501         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
16502         white space before each of the special-cased file names, to avoid
16503         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
16504         in http://bugs.gnu.org/12830.
16506 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16508         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
16509         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
16510         fails with errno == EBADF when fd is opened with O_PATH.
16511         Reported by Jim Meyering in
16512         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
16513         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
16514         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
16516 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16518         test-utimens: speed up by taking shorter naps
16519         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
16520         New functions.
16521         (nap): Use them, to do a better job of guessing the delay.
16522         On Fedora 17 with ext4 atop md atop hard disks, this made
16523         test-utimens run 10x faster, because the test napped for
16524         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
16525         <http://bugs.gnu.org/12820#11>.
16527 2012-11-07  Jim Meyering  <jim@meyering.net>
16529         mountlist.c: fix a compilation failure
16530         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
16531         I introduced while transforming commit v0.0-7683-g613bcb6
16533 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16535         errno: port to LynxOS 178 2.2.2
16536         Problem reported by Joel Brobecker in
16537         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
16538         * doc/posix-headers/errno.texi (errno.h): Document this.
16539         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
16540         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
16541         Supply a string for EILSEQ.
16542         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
16544 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16546         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
16547         Linux kernel 2.6.39 introduced O_PATH (see
16548         <http://lwn.net/Articles/433854/>) and this is a better fallback
16549         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
16550         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
16551         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
16552         * lib/fcntl.in.h (O_ACCMODE):
16553         * tests/test-fcntl-h.c (main):
16554         Do not reject O_ACCMODE merely because it has more than the
16555         minimal number of bits, as POSIX allows extensions here.
16557 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
16559         mountlist: do not classify a bind-mounted dir entry as "dummy"
16560         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
16561         the "none"-testing clause.
16562         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
16563         exception for bind-mounted directories.
16565 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
16567         quote: provide a means to escape strings with nul characters
16568         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
16569         (quote, quote_n): Rename formal arguments for consistency with
16570         quotearg.
16572 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16574         test-raise: don't assume 199 is an invalid signal
16575         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
16577         sh-quote-tests: port to Solaris 9
16578         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
16579         Problem reported by Dagobert Michelsen in
16580         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
16582 2012-10-28  Jim Meyering  <jim@meyering.net>
16584         maint.mk: rename a new configurable variable
16585         * top/maint.mk (_gl_translatable_string_re): Rename from
16586         translation-markers: _gl_ prefix to insulate from user Makefile code,
16587         and the _re suffix to inform that it's a regular expression.
16589 2012-10-26  Eric Blake  <eblake@redhat.com>
16591         maint.mk: let packages tweak sc_po_check pattern
16592         * top/maint.mk (sc_po_check): Add translation-markers, to allow
16593         finding files with other translation markers.
16595 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16597         euidaccess: speed up 'configure' on GNU hosts
16598         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
16599         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
16600         it's needed only in this case.  Use AC_CHECK_DECLS, not
16601         AC_CHECK_DECLS_ONCE.
16602         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
16603         or AC_REQUIRE for AC_FUNC_GETGROUPS.
16605         * lib/regexec.c (re_search_internal): Fix grammar in comment.
16607 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16609         fchmodat, fchownat, fstatat: port to non-inlining compilers
16610         Problem reported for FreeBSD 9 by Jim Meyering in
16611         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
16612         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
16613         New files, which define FCHMODAT_INLINE etc.
16614         * lib/fchmodat.c (FCHMODAT_INLINE):
16615         * lib/fchownat.c (FCHOWNAT_INLINE):
16616         * lib/fstatat.c (FSTATAT_INLINE):
16617         Remove, as chmodat.c etc. now do this.
16618         * modules/fchmodat (Files): Add lib/chmodat.c.
16619         * modules/fchownat (Files): Add lib/chownat.c.
16620         * modules/fstatat (Files): Add lib/statat.c.
16622 2012-10-15  Jim Meyering  <jim@meyering.net>
16624         fchmodat.c, fchownat.c: compile-impeding typos
16625         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
16626         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
16627         Introduced in commit v0.0-7636-gd202279.
16629 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16631         fcntl-h: support GNU flags like O_IGNORE_CTTY
16632         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
16633         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
16634         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
16635         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
16636         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
16637         Define to 0 if not already defined.
16638         * tests/test-fcntl-h.c: Test these new flags.
16640 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16642         faccessat, etc.: support AT_FDCWD-only use
16643         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
16644         this function only if its first argument is AT_FDCWD.
16645         Emacs wants faccessat for AT_EACCESS but not for any first-arg
16646         values other than AT_FDCWD, so it doesn't want all the openat
16647         machinery with fchdir etc.
16648         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
16649         * modules/fstatat, modules/mkdirat, modules/openat (Files):
16650         * modules/unlinkat (Files):
16651         Remove lib/openat-priv.h, as at-internal supplies this file.
16652         Removing this file here allows us to support programs like Emacs
16653         that avoid at-internal.
16655         faccessat: speed up 'configure' on mainstream hosts
16656         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
16657         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
16658         since it's only on unusual platforms that we need to check for
16659         'access', and it's better not to slow 'configure' down on all
16660         platforms.
16662         faccessat: port to Solaris 10
16663         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
16664         Needed on Solaris 10, which doesn't have AT_EACCESS,
16665         so we need the Gnulib fcntl.h, which defines it.
16667 2012-10-14  Pádraig Brady  <P@draigBrady.com>
16668         canonicalize: fix C89 compilation
16669         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
16670         declarations so C89 is supported.  Also remove the comment
16671         referencing memorty allocation as the suggested feature could
16672         not be implemented as suggested.
16673         Reported by Michael Goffioul.
16675 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16677         group-member: omit unnecessary dependencies
16678         This is for Emacs, which has its own allocator and where we
16679         don't want to use xalloc.
16680         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
16681         since we no longer use xmalloc.  Do not include stdbool.h, since
16682         the changes below happen to remove the only use of bool.
16683         (GROUPBUF_SIZE): New constant.
16684         (struct group_info): Remove n_groups member.  Add groupbuf member.
16685         This lets us get the groups without using malloc, usually.
16686         (free_group_info, get_group_info): Adjust to this.
16687         (get_group_info): Return the number of groups found, or -1 on error.
16688         Use plain malloc not xmalloc, and treat its failure as if there
16689         are no groups, as the user already loses in case of error.
16690         (group_member): Simplify, based on changes to get_group_info.
16691         * modules/group-member (Depends-on): Remove dependencies on
16692         xalloc and stdbool.  Add dependency on xalloc-oversized.
16694 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
16696         gethrxtime: port to C++
16697         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
16699 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
16701         ptsname: fix macro-name typo
16702         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
16704 2012-10-03  Simon Josefsson  <simon@josefsson.org>
16706         inttostr: Relax license.
16707         * modules/inttostr (License): Change from LGPL to LGPLv2+.
16709 2012-10-03  Eric Blake  <eblake@redhat.com>
16711         ptsname_r: support ptys returned by FreeBSD posix_openpt
16712         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
16713         lives in /dev/pts/.
16715 2012-10-02  Eric Blake  <eblake@redhat.com>
16717         pselect: reject invalid file descriptors
16718         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
16719         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
16720         * modules/pselect (Depends-on): Add dup2.
16721         * doc/posix-functions/pselect.texi (pselect): Document this.
16723         select: reject invalid file descriptors
16724         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
16725         * lib/select.c (rpl_select) [!win32]: Work around it.
16726         * modules/select (Depends-on): Add dup2.
16727         * doc/posix-functions/select.texi (select): Document this.
16729         select: enhance test
16730         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
16731         New functions.
16732         (test_function): Enhance test.
16733         (do_select_bad_fd): Avoid any stale errno values.
16735         ptsname: reject invalid file descriptors
16736         http://www.austingroupbugs.net/view.php?id=503
16737         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
16738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
16739         * modules/stdlib (Makefile.am): Replace witness.
16740         * lib/stdlib.in.h (ptsname): Allow for replacement.
16741         * modules/ptsname (configure.ac): Trigger replacement.
16742         * doc/posix-functions/ptsname.texi (ptsname): Document this.
16744 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
16746         hash-pjw-bare: new module
16747         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
16748         * lib/hash-pjw-bare.h: Likewise.
16749         * modules/hash-pjw-bare: New file.
16750         * MODULES.html.sh (Misc): Add it.
16752 2012-10-02  Eric Blake  <eblake@redhat.com>
16754         manywarnings: cater to more gcc infelicities
16755         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
16756         -Wuninitialized without -O.
16758 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
16760         select, poll tests: Make setsockopt invocation effective.
16761         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
16762         the bind() call.
16763         * tests/test-select.h (open_server_socket): Likewise.
16765 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16767         sockets, sys_stat: restore AC_C_INLINE
16768         This undoes the 2012-09-22 patch.
16769         * m4/sockets.m4 (gl_SOCKETS):
16770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
16771         Restore AC_C_INLINE, since MSVC requires __inline or _inline
16772         and does not support plain 'inline'.  Reported by Bruno Haible in
16773         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
16775 2012-09-30  Bruno Haible  <bruno@clisp.org>
16777         localeconv tests: Avoid test failure on OpenIndiana.
16778         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
16779         skip the 'grouping' and 'mon_grouping' tests.
16780         Reported by Jim Meyering.
16782 2012-09-30  Bruno Haible  <bruno@clisp.org>
16784         havelib: Follow libtool developments.
16785         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
16786         Suggested by Simon Josefsson.
16788 2012-09-29  Jim Meyering  <meyering@redhat.com>
16790         fstatat.c: fix a compile-impeding typo
16791         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
16792         Introduced in commit v0.0-7636-gd202279.
16793         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
16795 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
16797         extern-inline: provide a -Wundef safe config.h
16798         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
16799         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
16800         to produce a -Wundef warning free config.h.
16802 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16804         hash-pjw: relax license to LGPLv2+
16805         * modules/hash-pjw (License): Relax, with consent of author.
16807 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
16809         maint.mk: fix strict vs. lazy variable issues with RELEASE
16810         * top/maint.mk (_equal): New function.
16811         (member_check): Strip the result to avoid spurious spaces.
16812         (url_dir_list): Do not use ifeq, which is strict, as it will
16813         require RELEASE_TYPE to be defined.
16814         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
16815         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
16816         (announcement_Cc_alpha,announcement_mail_headers_alpha)
16817         (announcement_Cc_beta,announcement_mail_headers_beta)
16818         (announcement_Cc_stable,announcement_mail_headers_stable): these.
16819         (release): Do not depend on $(release-type), as it forces its
16820         evaluation.  Bounce to it.
16822 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
16824         maint.mk: formatting changes
16825         * top/maint.mk: Indent bodies of if's.
16827 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
16829         maint.mk: factor the validation of RELEASE_TYPE
16830         With help from Jim Meyering.
16831         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
16832         * top/maint.mk (_empty, _sp): Move their definition earlier.
16833         (member-check, release-type): New.
16834         Use the latter instead of $(RELEASE_TYPE).
16835         Remove now useless local checks.
16837 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
16839         maint.mk: provide "make upload" to ease uploading
16840         See
16841         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
16842         Do not depend simply on the current $(VERSION), as there may have been
16843         new commits since the tarball generation.  Rather, rely on $(RELEASE),
16844         as "make release-commit" already does.
16846         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
16847         "make TYPE".
16849         * top/maint.mk (upload_command, upload, release): New.
16850         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
16851         (VERSION): first word of $(RELEASE) is always right.
16852         (emit_upload_commands): Adjust.
16853         * top/README-release: Update.
16855 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
16857         maint.mk: silent rules
16858         With help from Stefano Lattarini.
16859         * top/maint.mk (writable-files): Use $(AM_V_GEN).
16860         (announcement): Use $(AM_V_at).
16862 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
16864         localename: port gl_locale_name_thread_unsafe to FreeBSD
16865         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
16866         and use the simpler FreeBSD implementation on Mac OS X as well.
16867         Original idea suggested by Ed Maste in
16868         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
16870 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16872         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
16873         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
16874         * lib/mbuiter.c, lib/xsize.c: New files.
16875         * lib/binary-io.h (BINARY_IO_INLINE):
16876         * lib/eealloc.h (EEALLOC_INLINE):
16877         * lib/mbfile.h (MBFILE_INLINE):
16878         * lib/mbiter.h (MBITER_INLINE):
16879         * lib/mbuiter.h (MBUITER_INLINE):
16880         * lib/xsize.h (XSIZE_INLINE):
16881         New macros.
16882         Replace all uses of 'static inline' with them.
16883         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16884         * m4/eealloc.m4 (gl_EEALLOC):
16885         * m4/mbfile.m4 (gl_MBFILE):
16886         * m4/mbiter.m4 (gl_MBITER):
16887         * m4/xsize.m4 (gl_XSIZE):
16888         Do not require AC_C_INLINE.
16889         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
16890         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
16891         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
16892         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
16893         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
16894         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
16895         * modules/binary-io, modules/eealloc, modules/mbfile:
16896         * modules/mbiter, modules/mbuiter:
16897         (Depends-on): Add extern-inline.
16899         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
16900         * lib/pipe-filter-aux.c: New file.
16901         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
16902         Replace all uses of 'static inline' with it.
16903         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16904         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
16905         (filter_retcode): No real need for inline here.
16906         * modules/pipe-filter-gi, modules/pipe-filter-ii:
16907         (Files): Add lib/pipe-filter-aux.c.
16908         (Depends-on): Add extern-inline.
16909         (configure.ac): Do not require AC_C_INLINE.
16910         (lib_SOURCES): Add pipe-filter-aux.c.
16912         fdutimensat: omit unnecessary AC_C_INLINE
16913         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
16915         fchmodat, fchownat, fstatat: use extern-inline
16916         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
16917         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
16918         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
16919         New macros.
16920         * lib/openat.h:
16921         Replace all uses of 'static inline' with them.
16922         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16923         * modules/fchmodat, modules/fchownat, modules/fstatat:
16924         * modules/openat-h:
16925         (Depends-on):
16926         Add extern-inline.
16927         (configure.ac): Remove AC_C_INLINE.
16929         acl, mbchar, priv-set: use extern-inline
16930         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
16931         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
16932         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
16933         New macros.
16934         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
16935         Replace all uses of 'static inline' with it.
16936         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16937         * m4/acl.m4 (gl_FUNC_ACL):
16938         * m4/mbchar.m4 (gl_MBCHAR):
16939         * m4/priv-set.m4 (gl_PRIV_SET):
16940         Remove AC_C_INLINE, since 'inline' is no longer used directly.
16941         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
16942         Add extern-inline.
16944         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
16945         * m4/sockets.m4 (gl_SOCKETS):
16946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
16947         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
16948         environments where it's already guaranteed to work, so we needn't
16949         check for it at 'configure'-time.
16951         tls-tests: omit unnecessary 'inline'
16952         * tests/test-tls.c (perhaps_yield): No longer inline.
16953         Simplicity and portability trump efficiency in test cases.
16955         utimens-tests: avoid unnecessary 'inline'
16956         * modules/fdutimensat-tests (configure.ac):
16957         * modules/futimens-tests (configure.ac):
16958         * modules/utimens-tests (configure.ac):
16959         * modules/utimensat-tests (configure.ac):
16960         Remove AC_C_INLINE.
16961         * tests/test-utimens-common.h (ctime_compare):
16962         No longer inline.  Simplicity and portability trump efficiency here.
16964         misc: don't limit commentary to inline functions
16965         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
16966         * lib/xalloc-oversized.h, lib/xsize.h:
16967         Contrast macros to functions in general, not just to inline functions,
16968         when the commentary does not apply only to inline functions.
16970 2012-09-20  Jim Meyering  <meyering@redhat.com>
16972         non-recursive-gnulib-prefix-hack: new module
16973         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
16974         the file that originated in Bison.
16975         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
16976         largely copied from a snippet that resided in bison's configure.ac.
16977         * modules/non-recursive-gnulib-prefix-hack: New file.
16978         * MODULES.html.sh (Support for maintaining and releasing projects):
16979         Add it.
16981 2012-09-18  Jim Meyering  <meyering@redhat.com>
16983         maint.mk: generalize _gl_tight_scope for non-recursive make
16984         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
16985         that *.h would describe additional .h files in the directory
16986         specified by $(_gl_TS_dir).  I.e., add this...
16987         (_gl_TS_other_headers): New variable.
16989         maint.mk: exempt trailing blanks found in "binary" files
16990         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
16991         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
16992         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
16994 2012-09-17  Jim Meyering  <meyering@redhat.com>
16996         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
16997         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
16998         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
16999         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17001 2012-09-17  Jim Meyering  <meyering@redhat.com>
17003         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
17004         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
17005         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
17006         It is not in the same category as "exit (0)" or "exit (1)", and
17007         besides, I know of no symbolic name for that 77.  Reported by
17008         Richard W.M. Jones in
17009         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17011 2012-09-17  Jim Meyering  <meyering@redhat.com>
17013         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
17014         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
17015         all uses of #define, not just those that start in column 1.
17016         Richard W.M. Jones reported a false positive in
17017         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
17019 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17021         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
17022         * lib/localcharset.c (locale_charset) [DARWIN7]:
17023         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
17024         as these two values are incompatible.  Problem reported by Max Horn.
17025         For more discussion, please see
17026         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
17028         doc: document sticky-EOF issue
17029         * doc/posix-functions/fgetc.texi (fgetc):
17030         * doc/posix-functions/fgets.texi (fgets):
17031         * doc/posix-functions/fread.texi (fread):
17032         * doc/posix-functions/fscanf.texi (fscanf):
17033         * doc/posix-functions/getc.texi (getc):
17034         * doc/posix-functions/getchar.texi (getchar):
17035         * doc/posix-functions/scanf.texi (scanf):
17036         Mention that glibc and default Solaris do not conform to
17037         C99 and POSIX-2001 or later, with respect to how getchar
17038         etc. behave when feof reports nonzero.
17040 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17042         poll: fix poll(0, NULL, msec)
17043         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
17044         but nfd is 0.  In that case poll should behave like select.
17046 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
17047             Paolo Bonzini  <bonzini@gnu.org>
17049         poll: fix for systems that can't recv() on a non-socket
17050         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
17051         is readable.  In this case POLLHUP will not be supported.
17052         * doc/posix-functions/poll.texi: Document this.
17054 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
17056         poll/select: document portability problems not fixed by Gnulib.
17057         * doc/posix-functions/poll.texi: poll does not work well on
17058         pipes under Windows.  It has the same limitations as select on
17059         BeOS.
17060         * doc/posix-functions/select.texi: select does not work well
17061         on pipes under Windows.
17063 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17065         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
17066         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
17067         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
17068         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
17070 2012-09-06  Eric Blake  <eblake@redhat.com>
17072         net_if: give more details about the bug being fixed
17073         * doc/posix-headers/net_if.texi: Add clarification.
17075 2012-09-05  Eric Blake  <eblake@redhat.com>
17077         net_if: new module
17078         * modules/net_if: New module, borrowing ideas from netinet_in.
17079         * m4/net_if_h.m4: New file.
17080         * lib/net_if.in.h: Likewise.
17081         * doc/posix-headers/net_if.texi (net/if.h): Document it.
17082         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17083         * tests/test-net_if.c: Make function checks conditional.
17084         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
17086 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
17088         readutmp: fix non-portable UT_PID use
17089         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
17090         Use `UT_PID (u) > 0' as absolute condition.
17092 2012-09-04  Jim Meyering  <meyering@redhat.com>
17094         fts: reduce two or more trailing spaces to just one, usually
17095         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
17096         or more slashes, trim all but the final one.  But if a name consists
17097         solely of two slashes, don't modify it.  If it consists solely of
17098         three or more slashes, strip all but one.
17100         This is part of the solution to a minor problem with rm:
17101         it would print a bogus ELOOP diagnostic when failing to remove
17102         the slash-decorated name of a symlink-to-directory:
17104             $ mkdir d && ln -s d s && env rm -r s/
17105             rm: cannot remove 's': Too many levels of symbolic links
17107         With the change below and a trivial don't-trim-trailing-slashes
17108         adjustment to remove.c, it does this:
17110             $ env rm -r s/
17111             rm: cannot remove 's/': Not a directory
17113         Improved by: Eric Blake
17115         fts: when there is no risk of overlap, use memcpy, not memmove
17116         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
17118 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17120         stdbool: be more compatible with mixed C/C++ compiles
17121         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
17122         Define to bool, true, false, respectively, as GCC's builtin
17123         stdbool.h does.  Problem reported by Michael Goffioul in
17124         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
17126 2012-08-28  Jim Meyering  <meyering@redhat.com>
17128         revert last change: it was not needed
17129         * tests/test-vc-list-files-git.sh: There's already a test for
17130         a working git, just below.
17132 2012-08-28  Jim Meyering  <meyering@redhat.com>
17134         tests: test-vc-list-files-git.sh: skip if git is not available
17135         * tests/test-vc-list-files-git.sh: Skip this test when git is
17136         not available.
17138 2012-08-26  Bruno Haible  <bruno@clisp.org>
17140         gnulib-tool: Remove no-op option --no-changelog.
17141         * gnulib-tool (func_usage): Don't mention --no-changelog.
17142         (do_changelog): Remove variable.
17143         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17145 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17147         doc: remove fdl-1.2.texi
17148         It is no longer used or maintained, and its use of @acronym
17149         is problematic.  See the thread containing
17150         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
17151         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
17152         * doc/old-licenses/fdl-1.2.texi: Remove.
17154         execinfo: port to FreeBSD
17155         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
17156         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
17157         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
17158         * modules/execinfo (Link): Add $(LIB_EXECINFO).
17160 2012-08-23  Jim Meyering  <meyering@redhat.com>
17162         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
17163         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
17164         to placate gcc's -Wold-style-declaration.
17166 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17168         doc: do not use @acronym
17169         * doc/inet_ntoa.texi (inet_ntoa):
17170         * doc/parse-datetime.texi (Seconds since the Epoch)
17171         (Specifying time zone rules):
17172         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
17173         Don't use @acronym.  Problem reported by John Darlington in
17174         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
17176 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17178         stdnoreturn: port to newer GCCs
17179         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
17180         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
17181         Problem reported by Jim Meyering in
17182         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
17183         Also, rename the 'test' function to a void a clash with the
17184         already-supplied 'main' function; this fixes a bug that incorrectly
17185         rejected GCC 4.7.1's <stdnoreturn.h>.
17186         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
17187         Document GCC problem.
17189 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
17191         pipe-filter: fix comment typo
17192         * lib/pipe-filter.h: Mention correct function.
17194 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17196         execinfo: new module
17197         This is for Emacs.  Currently, it provides a no-effect stub
17198         on all platforms where it does not already work.
17199         It already works on glibc-based systems, and on Solaris 11.
17200         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
17201         New files.
17202         * doc/glibc-headers/execinfo.texi (execinfo.h):
17203         * MODULES.html.sh (Misc): Document it.
17205 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17207         extern-inline: support old GCC 'inline'
17208         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
17209         if available.  This applies to GCC versions 2.7 through 4.2, or
17210         when newer GCC is using -fgnu89-inline.  The goal is to address
17211         some of the performance issues mentioned by Bruno Haible in
17212         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
17214 2012-08-20  Eric Blake  <eblake@redhat.com>
17216         maint.mk: avoid redundant file name in message
17217         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
17218         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
17219         (sc_makefile_path_separator_check): Remove bogus $(ME).
17221 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
17223         timer-time: fix link order when static linking on glibc
17224         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
17225         _after_ -lrt so that it's significant.
17227 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17229         timespec: omit unnecessary AC_C_INLINE
17230         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
17232         stat-time: omit unnecessary AC_C_INLINE
17233         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
17234         Do not require AC_C_INLINE.
17236         ignore-value: omit unnecessary AC_C_INLINE
17237         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
17239         sys_select: avoid 'static inline'
17240         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
17242         mktime: avoid 'static inline'
17243         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
17244         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
17246 2012-08-19  Bruno Haible  <bruno@clisp.org>
17248         gnulib-tool: Improve coding style.
17249         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
17250         func_emit_lib_Makefile_am.
17251         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17253 2012-08-19  Bruno Haible  <bruno@clisp.org>
17255         gnulib-tool: Fix indentation.
17256         * gnulib-tool (func_import): Fix indentation.
17258 2012-08-19  Bruno Haible  <bruno@clisp.org>
17260         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
17261         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
17262         on the list of removed files.
17264 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17266         test-parse-datetime: avoid glibc leap-second glitch
17267         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
17268         with the 2012 rules.  Problem reported by Bruce Dubbs in
17269         <http://bugs.gnu.org/12206>.
17271 2012-08-14  Bruno Haible  <bruno@clisp.org>
17273         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
17274         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
17275         from argument.
17276         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17278 2012-08-14  Eric Blake  <eblake@redhat.com>
17280         ldexp: relax license
17281         * modules/ldexp (License): Trivial relax, since the module only
17282         provides a permissively licensed m4 file.
17284 2012-08-13  Bruno Haible  <bruno@clisp.org>
17286         gnulib-tool: Fix persistence of --witness-c-macro option.
17287         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
17288         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17290 2012-08-11  Eric Blake  <eblake@redhat.com>
17292         count-leading-zeros: use a lookup table on non-gcc compilers
17293         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
17294         alternate implementation, suggested by Jim Meyering.
17296 2012-08-10  Eric Blake  <eblake@redhat.com>
17298         count-leading-zeros: new module
17299         * modules/count-leading-zeros: New module.
17300         * m4/count-leading-zeros.m4: New file.
17301         * lib/count-leading-zeros.h: Likewise.
17302         * modules/count-leading-zeros-tests: New test.
17303         * tests/test-count-leading-zeros.c: New file.
17304         * MODULES.html.sh (Integer arithmetic functions): Document it.
17306 2012-08-07  Simon Josefsson  <simon@josefsson.org>
17307             Jim Meyering  <meyering@redhat.com>
17309         maintainer-makefile: Fix syntax error with dash.
17310         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
17311         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
17313 2012-08-05  Jim Meyering  <meyering@redhat.com>
17315         extern-inline: also ignore -Wmissing-declarations
17316         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
17317         required with gcc-4.8.0-to-be.
17319         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
17320         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
17321         for /error ?([^,]*)/.  This avoids false-positives for strings like
17322         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
17324 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
17326         gnumakefile: better interaction with Automake-NG
17327         * modules/gnumakefile [Makefile.am]: The makefiles generated by
17328         Automake-NG always contain a definition of VPATH, even in non-VPATH
17329         builds (its value being simply '.' in that case).  So, in the
17330         'clean-GNUmakefile' rule, to determine whether running under a
17331         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
17332         '$(VPATH)' expands to the empty string.
17334 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
17336         base64: Use extern C scope in header file, for C++.
17337         * lib/base64.h: Add C++ namespace protection.
17339 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17341         stat-time, timespec, u64: support naive out-of-dir builds
17342         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
17343         Use '#include "foo.h"', not '#include <foo.h>', when including
17344         one's own interface.  This works better when configuring with
17345         out-of-directory builds, since packages need not add an
17346         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
17348 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17350         utimens: use extern-inline
17351         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
17352         * lib/utimens.h: Add copyright notice, since this is now large enough
17353         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17354         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
17355         * modules/utimens (Depends-on): Add extern-inline.
17357         u64: use extern-inline
17358         * lib/u64.c: New file.
17359         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17360         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
17361         * modules/u64 (Files): Add lib/u64.c.
17362         (Depends-on): Add extern-inline.
17363         (configure.ac): No need to require AC_C_INLINE, since extern-inline
17364         does that now.
17365         (lib_SOURCES): Add u64.c.
17367         timespec: use extern-inline
17368         * lib/timespec.c: New file.
17369         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17370         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
17371         * modules/timespec (Files): Add lib/timespec.c.
17372         (Depends-on): Add extern-inline.
17373         (lib_SOURCES): Add timespec.c.
17375         stat-time: use extern-inline
17376         * lib/stat-time.c: New file.
17377         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17378         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
17379         * modules/stat-time (Files): Add lib/stat-time.c.
17380         (Depends-on): Add extern-inline.
17381         (lib_SOURCES): Add stat-time.c.
17383         extern-inline: new module
17384         * modules/extern-inline, m4/extern-inline.m4: New files.
17385         This is for better support of 'extern inline' a la ISO C99,
17386         with a portable alternative on compilers that do not support
17387         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
17388         of the Emacs executable, when compiled with debugging disabled,
17389         which is a typical way that Emacs is built while developing.
17391 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
17393         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
17394         * build-aux/do-release-commit-and-tag: Move variable definitions
17395         together.
17396         ($branch): Instead of defaulting to "master", default to the current
17397         branch (as gnu-web-doc-update does).
17398         (help): Display the current values of the option arguments.
17399         * top/maint.mk (release-commit): New.
17400         * top/README-release: Simplify the corresponding step.
17402 2012-07-30  Eric Blake  <eblake@redhat.com>
17404         passfd: fix comment on recvfd
17405         * lib/passfd.c (recvfd): Fix comment.
17406         Reported by Jann Horn <jannhorn@googlemail.com>.
17408 2012-07-30  Jim Meyering  <meyering@redhat.com>
17410         maint.mk: avoid a sub-shell
17411         * top/maint.mk (release-prep): Remove unneeded sub-shell.
17413 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17415         maint.mk: use silent-rules support from Automake
17416         * top/maint.mk (news-check, vc-diff-check, announcement)
17417         (no-submodule-changes, alpha beta stable, release-prep)
17418         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
17420 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17422         maint.mk: provide a web-manual-update target
17423         * top/maint.mk: here.
17424         * top/README-release: Use it to simplify the web manual update step.
17426 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17428         README-release: shorten the circuit to post a news
17429         * top/README-release: Point directly to the news submission form.
17431 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17433         gnu-web-doc-update: fix --help
17434         * build-aux/gnu-web-doc-update: The information "top level" was written
17435         twice.
17437 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17439         maint.mk: absolute VPATH issue
17440         * top/maint.mk (release-prep): Help Git find .git/.
17441         From Jim Meyering.
17443 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17445         gitlog-to-changelog: fix previous change
17446         * build-aux/gitlog-to-changelog: Fix condition.
17447         Add missing ";".
17449 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17451         gitlog-to-changelog: don't expect .git to be in $srcdir
17452         Reported by Bruno Haible.
17453         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
17454         * build-aux/gitlog-to-changelog (&git_dir_option): New.
17455         Use it.
17457 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17459         maint.mk: absolute VPATH build fix
17460         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
17461         $(srcdir) is not a parent of $(builddir).
17463 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
17465         clean-temp: Fix memory leak.
17466         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
17467         'files' members of tmpdir.
17469 2012-07-27  Jim Meyering  <meyering@redhat.com>
17471         maint.mk: new rule: refresh-gnulib-patches
17472         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
17473         Use this rule to refresh them.
17474         * top/maint.mk (refresh-gnulib-patches): New rule.
17476 2012-07-24  Bruno Haible  <bruno@clisp.org>
17478         gnulib-tool: Fix handling of inctests variable.
17479         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
17480         Reported by Nick Bowler <nbowler@elliptictech.com>.
17482 2012-07-22  Bruno Haible  <bruno@clisp.org>
17484         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
17485         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
17486         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
17487         Remove exemption for getpass.h.
17488         Suggested by Eric Blake.
17490 2012-07-20  Eric Blake  <eblake@redhat.com>
17492         verify: document conflict with -Wnested-externs
17493         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
17495         maint.mk: forbid exit(-1)
17496         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
17498 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
17500         fsusage: port back to Solaris
17501         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
17502         error (fsd not declared) on Solaris 10.  Reported privately by
17503         Andrew Borodin.
17505 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
17507         gnu-web-doc-update: fix error messages
17508         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
17510         gnu-web-doc-update: check the requirements.
17511         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
17512         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
17513         * build-aux/bootstrap (find_tool): Comment change.
17515 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
17517         maint.mk: minor simplication.
17518         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
17519         for default values.
17521 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
17523         gitlog-to-changelog: VPATH build issues
17524         If builddir is not a subdirectory of srcdir, running git from it will
17525         fail.
17526         * build-aux/gitlog-to-changelog (--srcdir): New option.
17528 2012-07-15  Bruno Haible  <bruno@clisp.org>
17530         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
17531         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
17532         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
17533         Remove exemption for fpending.h.
17534         Suggested by Eric Blake.
17536 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17538         pthread_sigmask: fix bug on FreeBSD 9
17539         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
17540         Include string.h.
17541         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
17542         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
17543         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
17544         but pthread_sigmask (1729, NULL, NULL) returns zero.
17545         See <http://bugs.gnu.org/11884>.
17546         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
17547         by inspecting whether the main call changed the old mask.
17549 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
17551         README-release: make it more legible
17552         * top/README-release: Improve typography slightly.
17554 2012-07-15  Jim Meyering  <meyering@redhat.com>
17556         maint: require that each sc_... command start with "@"
17557         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
17558         "make sc_maint" helps us avoid this nit.
17560 2012-07-15  Jim Meyering  <meyering@redhat.com>
17562         maint.mk: add leading "@" to quiet new "make syntax-check" rule
17563         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
17565 2012-07-13  Eric Blake  <eblake@redhat.com>
17567         maint.mk: new syntax check for HAVE_DECL checks
17568         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
17569         * cfg.mk
17570         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
17571         Exempt some false positives.
17572         Based on a report by Karel Zak.
17574         argp: make HAVE_DECL usage consistent
17575         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
17576         macros, not whether they are defined.
17577         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
17578         convention with other declaration checks.
17579         Reported by Karel Zak, with suggestions from Paul Eggert.
17581         stat-time: relax license to LGPLv2+
17582         * modules/stat-time (License): Relax, with consent of all authors.
17584         strndup: fix m4 usage error
17585         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
17586         defined, to either 0 or 1.
17587         Reported by Karel Zak.
17589 2012-07-11  Jim Meyering  <meyering@redhat.com>
17591         maint: enable the sc_avoid_if_before_free syntax-check rule
17592         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
17593         (if_before_free_offenders_): Define.
17594         (if_before_free_basename_re_): Define.
17595         Exempt current files with useless if-before-free.
17597 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
17599         gettext: do not assume '#define ... defined ...' behavior
17600         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
17601         Do not use '#define FOO ... defined BAR ...', as the C standard says
17602         it's not portable to expect that this works after macro expansion.
17603         Problem reported for gzip by Steven M. Schweda in
17604         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
17606 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17608         getloadavg: clean out old Emacs and Autoconf cruft
17609         See Glenn Morris in <http://bugs.gnu.org/11905>.
17610         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
17611         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
17612         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
17613         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
17615 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
17617         bootstrap: let warn be like tests/init.sh's warn_
17618         Reported by Jim Meyering.
17619         * build-aux/bootstrap (warn): Remove, replaced by...
17620         (warnf_, warn_): these.
17621         Adjust callers.
17622         Shorten messages that no longer fit in 80 columns.
17624 2012-07-09  Bruno Haible  <bruno@clisp.org>
17626         getopt: Simplify after Emacs changed.
17627         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
17628         (gl_GETOPT_IFELSE): Remove macro.
17630 2012-07-09  Jim Meyering  <meyering@redhat.com>
17632         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
17633         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
17635         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
17636         Bugs in both of those conspired to make the
17637         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
17638         _sc_search_regexp's handling of non-empty $in_files would filter
17639         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
17640         choice of in_files value meant there would be no match in most
17641         projects, due to the presence of two or more Makefile.in files.
17642         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
17643         Fix a bug in how a non-empty $$in_files was processed:
17644         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
17645         in spite of the name, it's a regexp, not a list of file names.
17647 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17649         getloadavg, getopt: fix commentary re configure.in
17650         Autoconf is deprecating the name 'configure.in', so change it to
17651         to the new name 'configure.ac' in a couple of places.
17652         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
17653         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
17654         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
17655         Emacs has renamed it to configure.ac, and it no longer refers
17656         to these macros anyway.
17658         timespec: mark functions with const attributes
17659         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
17660         Mark with _GL_ATTRIBUTE_CONST.
17662 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
17664         canonicalize[-lgpl]: handle "guessing" values when cross-building
17665         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17666         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
17667         matches "*yes" instead of just "yes".  Regression introduced in commit
17668         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
17670 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
17671             Bruno Haible  <bruno@clisp.org>
17673         canonicalize: make the right guess when cross-compiling to GNU
17674         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
17675         determine whether cross-compiling to glibc systems, so as to
17676         include GNU/Hurd.
17678 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17680         timespec-sub: avoid duplicate include
17681         * lib/timespec-sub.c: Do not include <config.h> twice.
17682         Reported by Juanma Barranquero.
17684 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
17686         bootstrap: use a more consistent error reporting scheme
17687         * build-aux/bootstrap (warn, die): New.
17688         Use them.
17690 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17692         sys_time: allow too-wide tv_sec
17693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
17694         timeval even if tv_sec is wider than time_t.  This allows
17695         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
17696         as without this patch gnulib replaces struct timeval
17697         and OpenBSD futimes therefore has a type mismatch.
17698         * doc/posix-headers/sys_time.texi: Mention this.
17700         pthread: check for both pthread_create and pthread_join
17701         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
17702         alter the check so that it tests for both pthread_create and
17703         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
17704         Suggested by Bruno Haible and Richard Yao in
17705         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
17707         parse-datetime: doc tuneup
17708         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
17709         spacing issues.
17711 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
17713         do-release-commit-and-tag: fix the previous commit
17714         * build-aux/do-release-commit-and-tag: Actually the test was right,
17715         but the comment and the error message were misleading.
17716         Fix comment, and improve error message.
17717         Perform check first, so that NEWS is not modified uselessly.
17719         do-release-commit-and-tag: fix typo
17720         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
17721         _not_ start with a stub.
17723 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17725         pthread: check for pthread_create, not pthread_join
17726         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
17727         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
17728         pthread_join in libc.  I hope this removes the need for all the
17729         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
17730         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
17732 2012-07-04  Jim Meyering  <meyering@redhat.com>
17734         parse-datetime: fix failure to diagnose invalid input
17735         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
17736         rather than diagnosing the invalid input.  Now it reports this:
17737         date: invalid date '\260'
17738         * lib/parse-datetime.y (to_uchar): Define.
17739         (yylex): Don't sign-extend "other" bytes.
17740         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
17741         Thanks to Bruno Haible for the patch to this file.
17742         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
17743         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
17745 2012-07-03  Jim Meyering  <meyering@redhat.com>
17747         bootstrap: do not require now-removed build-aux/missing
17748         Now that build-aux/missing is, er, missing, bootstrap would
17749         silently fail.
17750         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
17751         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
17752         no longer part of gnulib.
17753         Diagnose the failure.
17755 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17757         alloca: add support for HP NonStop TNS/E native
17758         * lib/alloca.in.h (alloca): Support the new host.
17759         From a suggestion by Joachim Schmitz in
17760         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
17762 2012-07-02  Pádraig Brady  <P@draigBrady.com>
17764         fsusage: remove code not needed on non GNU/Linux systems.
17766         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
17767         Don't include headers no longer needed in this case.
17768         * lib/fsusage.c [STAT_STATVFS &&
17769         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
17770         STAT_STATFS2_FRSIZE to exclude code not used in this case.
17772 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
17774         fsusage: include files needed for glibc 2.6 fallback
17775         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
17776         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
17777         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
17778         Problem reported by Ludovic Courtès in
17779         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
17781         fsusage: avoid needless check on GNU/Linux
17782         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
17783         on GNU/Linux systems, since it can't possibly work.
17785 2012-07-01  Bruno Haible  <bruno@clisp.org>
17787         log: Fix an autoconf >= 2.64 warning.
17788         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
17789         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
17791 2012-06-28  Bruno Haible  <bruno@clisp.org>
17793         log10f: Fix possible configuration problem.
17794         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
17795         $LOGF_LIBM.
17796         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
17798 2012-06-28  Bruno Haible  <bruno@clisp.org>
17800         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
17801         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
17802         not gl_cv_func_unlink_works.
17803         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
17805 2012-06-27  Eric Blake  <eblake@redhat.com>
17807         config: drop scripts that automake says are not independent
17808         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
17809         * build-aux/elisp-comp: Delete.
17810         * build-aux/missing: Likewise.
17811         * build-aux/ylwrap: Likewise.
17812         * modules/elisp-comp: Likewise.
17813         * MODULES.html.sh: Drop mention of elisp-comp.
17814         * NEWS: Mention this.
17816 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
17818         root-uid: new module
17819         This is for portability to Tandem's NonStop Kernel.
17820         * lib/root-uid.h, modules/root-uid: New files.
17821         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
17822         * lib/write-any-file.c, tests/test-sethostname2.c:
17823         Include "root-uid.h".
17824         * lib/euidaccess.c (euidaccess):
17825         * lib/pt_chown.c (main):
17826         * lib/unlinkdir.c (cannot_unlink_dir):
17827         * lib/write-any-file.c (can_write_any_file):
17828         * m4/mknod.m4 (gl_FUNC_MKNOD):
17829         * tests/test-sethostname2.c (geteuid, main):
17830         Don't assume ROOT_UID == 0.
17831         * modules/euidaccess (Depends-on):
17832         * modules/pt_chown (Depends-on):
17833         * modules/sethostname-tests (Depends-on):
17834         * modules/unlinkdir (Depends-on):
17835         * modules/write-any-file (Depends-on):
17836         Add root-uid.
17838         regex: use locale-independent comparison for codeset name
17839         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
17840         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
17841         for codeset name.
17842         * lib/regex_internal.h: Do not include <strings.h>, since we
17843         no longer use strcasecmp.
17844         * modules/regex (Depends-on): Remove strcase.
17846 2012-06-23  Bruno Haible  <bruno@clisp.org>
17848         getopt-posix: No longer guarantee that option processing is resettable.
17849         * doc/posix-functions/getopt.texi: Drop description of problem with
17850         internal state. Fix info about mingw and msvc9.
17851         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
17852         option processing by getopt(). Run three test programs instead of one.
17853         Simplify cross-compilation guess.
17854         * NEWS: Mention the change.
17855         Reported by Rich Felker <dalias@aerifal.cx>.
17857 2012-06-26  Bruno Haible  <bruno@clisp.org>
17859         argp, regex: Ensure strcasecmp gets declared.
17860         * lib/argp-help.c: Include <strings.h>.
17861         * lib/regex_internal.h: Likewise.
17862         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
17864 2012-06-24  Bruno Haible  <bruno@clisp.org>
17866         ptsname_r: Make it consistent with ptsname on AIX.
17867         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
17868         implementation as for OSF/1.
17869         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
17870         a pty master.
17872         ptsname_r: Make it consistent with ptsname on OSF/1.
17873         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
17874         OSF/1.
17876 2012-06-24  Bruno Haible  <bruno@clisp.org>
17878         ttyname_r: Fix result on OSF/1, Solaris.
17879         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
17881 2012-06-24  Bruno Haible  <bruno@clisp.org>
17883         ptsname_r: Add support for Solaris.
17884         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
17885         Solaris.
17887         ptsname_r: Fix test failure on native Windows.
17888         * modules/ptsname_r (Depends-on): Add isatty.
17890         ptsname_r: Fix test failures on IRIX, Solaris.
17891         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
17892         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
17893         accordingly.
17894         * lib/ptsname_r.c: Include <fcntl.h>.
17895         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
17896         set errno if fd is invalid.
17897         * tests/test-isatty.c (main): Update comments.
17899 2012-06-24  Bruno Haible  <bruno@clisp.org>
17901         ptsname test: Extend test.
17902         * tests/test-ptsname.c: Include <errno.h>.
17903         (main): Test behaviour with invalid file descriptor.
17905 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17907         time: fix obsolete comment
17908         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
17909         reference to HAVE_STRUCT_TIMESPEC in comment.
17911 2012-06-23  Bruno Haible  <bruno@clisp.org>
17913         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
17914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
17915         does not handle abbreviated long options with equivalent
17916         disambiguations, set gl_replace_getopt to yes.
17917         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
17919 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
17921         time_r: fix typo that always overrode localtime_r decl
17922         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
17923         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
17924         not in a standard include.
17926 2012-06-22  Bruno Haible  <bruno@clisp.org>
17928         Write "Mac OS X" instead of "MacOS X".
17929         * README: Write "Mac OS X" instead of "MacOS X".
17930         * build-aux/bootstrap: Likewise.
17931         * build-aux/install-reloc: Likewise.
17932         * lib/acl-internal.h: Likewise.
17933         * lib/acl_entries.c: Likewise.
17934         * lib/argp-ba.c: Likewise.
17935         * lib/argp-pv.c: Likewise.
17936         * lib/config.charset: Likewise.
17937         * lib/copy-acl.c: Likewise.
17938         * lib/csharpexec.c: Likewise.
17939         * lib/euidaccess.c: Likewise.
17940         * lib/fbufmode.c: Likewise.
17941         * lib/fflush.c: Likewise.
17942         * lib/file-has-acl.c: Likewise.
17943         * lib/filemode.h: Likewise.
17944         * lib/fpurge.c: Likewise.
17945         * lib/freadable.c: Likewise.
17946         * lib/freadahead.c: Likewise.
17947         * lib/freading.c: Likewise.
17948         * lib/freadptr.c: Likewise.
17949         * lib/freadseek.c: Likewise.
17950         * lib/fseeko.c: Likewise.
17951         * lib/fseterr.c: Likewise.
17952         * lib/fsusage.c: Likewise.
17953         * lib/fwritable.c: Likewise.
17954         * lib/fwriting.c: Likewise.
17955         * lib/get-rusage-as.c: Likewise.
17956         * lib/get-rusage-data.c: Likewise.
17957         * lib/getdomainname.c: Likewise.
17958         * lib/idpriv-drop.c: Likewise.
17959         * lib/idpriv-droptemp.c: Likewise.
17960         * lib/localcharset.c: Likewise.
17961         * lib/locale.in.h: Likewise.
17962         * lib/localename.c: Likewise.
17963         * lib/mbsrtowcs-state.c: Likewise.
17964         * lib/nproc.c: Likewise.
17965         * lib/passfd.c: Likewise.
17966         * lib/posix_openpt.c: Likewise.
17967         * lib/printf-parse.c: Likewise.
17968         * lib/progreloc.c: Likewise.
17969         * lib/safe-read.h: Likewise.
17970         * lib/safe-write.h: Likewise.
17971         * lib/sched.in.h: Likewise.
17972         * lib/set-mode-acl.c: Likewise.
17973         * lib/signal.in.h: Likewise.
17974         * lib/stdint.in.h: Likewise.
17975         * lib/stdio-impl.h: Likewise.
17976         * lib/stdlib.in.h: Likewise.
17977         * lib/strtod.c: Likewise.
17978         * lib/sys_select.in.h: Likewise.
17979         * lib/tcgetsid.c: Likewise.
17980         * lib/unistd.in.h: Likewise.
17981         * lib/unlockpt.c: Likewise.
17982         * lib/vasnprintf.c: Likewise.
17983         * lib/vma-iter.c: Likewise.
17984         * lib/wcsrtombs-state.c: Likewise.
17985         * m4/acl.m4: Likewise.
17986         * m4/acosl.m4: Likewise.
17987         * m4/asinl.m4: Likewise.
17988         * m4/atanl.m4: Likewise.
17989         * m4/c-stack.m4: Likewise.
17990         * m4/cosl.m4: Likewise.
17991         * m4/expl.m4: Likewise.
17992         * m4/extensions.m4: Likewise.
17993         * m4/fdatasync.m4: Likewise.
17994         * m4/fmal.m4: Likewise.
17995         * m4/frexp.m4: Likewise.
17996         * m4/frexpf.m4: Likewise.
17997         * m4/frexpl.m4: Likewise.
17998         * m4/fsusage.m4: Likewise.
17999         * m4/getdomainname.m4: Likewise.
18000         * m4/getloadavg.m4: Likewise.
18001         * m4/getopt.m4: Likewise.
18002         * m4/gettext.m4: Likewise.
18003         * m4/gnulib-common.m4: Likewise.
18004         * m4/intdiv0.m4: Likewise.
18005         * m4/intlmacosx.m4: Likewise.
18006         * m4/largefile.m4: Likewise.
18007         * m4/ldexpl.m4: Likewise.
18008         * m4/link-follow.m4: Likewise.
18009         * m4/locale-ar.m4: Likewise.
18010         * m4/locale-fr.m4: Likewise.
18011         * m4/locale-ja.m4: Likewise.
18012         * m4/locale-tr.m4: Likewise.
18013         * m4/locale-zh.m4: Likewise.
18014         * m4/locale_h.m4: Likewise.
18015         * m4/lock.m4: Likewise.
18016         * m4/logl.m4: Likewise.
18017         * m4/mathfunc.m4: Likewise.
18018         * m4/minus-zero.m4: Likewise.
18019         * m4/mktime.m4: Likewise.
18020         * m4/mmap-anon.m4: Likewise.
18021         * m4/multiarch.m4: Likewise.
18022         * m4/nanosleep.m4: Likewise.
18023         * m4/nocrash.m4: Likewise.
18024         * m4/poll.m4: Likewise.
18025         * m4/printf-frexpl.m4: Likewise.
18026         * m4/printf.m4: Likewise.
18027         * m4/signbit.m4: Likewise.
18028         * m4/sinl.m4: Likewise.
18029         * m4/sqrtl.m4: Likewise.
18030         * m4/strerror_r.m4: Likewise.
18031         * m4/tanl.m4: Likewise.
18032         * m4/threadlib.m4: Likewise.
18033         * m4/ttyname_r.m4: Likewise.
18034         * m4/unlink.m4: Likewise.
18035         * m4/visibility.m4: Likewise.
18036         * m4/wcwidth.m4: Likewise.
18037         * tests/minus-zero.h: Likewise.
18038         * tests/test-alloca-opt.c: Likewise.
18039         * tests/test-copy-acl.sh: Likewise.
18040         * tests/test-copy-file.sh: Likewise.
18041         * tests/test-fdatasync.c: Likewise.
18042         * tests/test-file-has-acl.sh: Likewise.
18043         * tests/test-flock.c: Likewise.
18044         * tests/test-fsync.c: Likewise.
18045         * tests/test-localename.c: Likewise.
18046         * tests/test-malloca.c: Likewise.
18047         * tests/test-nonblocking-pipe.h: Likewise.
18048         * tests/test-nonblocking-socket.h: Likewise.
18049         * tests/test-openpty.c: Likewise.
18050         * tests/test-posix_openpt.c: Likewise.
18051         * tests/test-ptsname.c: Likewise.
18052         * tests/test-ptsname_r.c: Likewise.
18053         * tests/test-sameacls.c: Likewise.
18054         * tests/test-select.h: Likewise.
18055         * tests/test-set-mode-acl.sh: Likewise.
18056         * tests/test-snprintf-posix.h: Likewise.
18057         * tests/test-sprintf-posix.h: Likewise.
18058         * tests/test-strtod.c: Likewise.
18059         * tests/test-time.c: Likewise.
18060         * tests/test-vasnprintf-posix.c: Likewise.
18061         * tests/test-vasprintf-posix.c: Likewise.
18062         * doc/acl-resources.txt: Likewise.
18063         * doc/**/*.texi: Likewise.
18064         Reported by Max Horn <max@quendi.de>.
18066 2012-06-22  Bruno Haible  <bruno@clisp.org>
18068         grantpt: Relax requirement regarding invalid file descriptors.
18069         * lib/grantpt.c: Don't include <fcntl.h>.
18070         (grantpt): Don't verify the validity of the file descriptor.
18071         * modules/grantpt (Depends-on): Remove fcntl-h.
18072         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
18073         file descriptors.
18074         * doc/posix-functions/grantpt.texi: Document more platforms on which
18075         grantpt succeeds for invalid file descriptors.
18076         Reported by Rich Felker <dalias@aerifal.cx>.
18078 2012-06-22  Bruno Haible  <bruno@clisp.org>
18080         fbufmode test: Don't test unportable behaviour.
18081         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
18082         (main): Invoke it three times.
18083         Reported by Szabolcs Nagy <nsz@port70.net>
18084         and Rich Felker <dalias@aerifal.cx>.
18086 2012-06-21  Bruno Haible  <bruno@clisp.org>
18088         gnulib-tool: Refactor inctests variable.
18089         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
18090         (func_modules_transitive_closure,
18091         func_modules_transitive_closure_separately,
18092         func_import, func_create_testdir): Update.
18094         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
18095         * gnulib-tool: Accept option --without-tests.
18096         (func_usage): Document --without-tests option. Rearrange.
18097         (inctests): Normalize according to the mode.
18098         * NEWS: Mention the change.
18099         Suggested by Simon Josefsson.
18101 2012-06-21  Bruce Korb  <bkorb@gnu.org>
18103         parse-duration test: Avoid spurious output.
18104         * tests/test-parse-duration.sh: Reindent with leading tabs.
18106 2012-06-21  Jim Meyering  <meyering@redhat.com>
18108         maint: disable the strncpy prohibition
18109         * cfg.mk: Do not prohibit strncpy here.
18111 2012-06-21  Bruno Haible  <bruno@clisp.org>
18113         nonblocking: Avoid compilation error on mingw64.
18114         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
18115         fscanf.
18116         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
18117         * modules/vfscanf (configure.ac): Likewise.
18118         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
18119         definition only if stdio.h has prepared it.
18120         Reported by Daniel P. Berrange <berrange@redhat.com>.
18122 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
18124         gnulib-tool: Use readlink if it is available.
18125         * gnulib-tool (func_readlink): Choose function more appropriately.
18127 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18129         posixtm-tests: port to buggy compiler
18130         Problem reported by Simon Josefsson in
18131         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
18132         * modules/posixtm-tests (Depends-on): Add stdint.
18133         * tests/test-posixtm.c (struct posixtm_test.t_expected):
18134         Now of type int_least64_t, not int64_t, both because that's
18135         what INT64_C returns and because int_least64_t works even
18136         on 72-bit hosts.
18137         (T): Use INT64_C on constants outside the traditional int range,
18138         to work around compiler bug noted by Simon.
18140         mktime: fix integer overflow in 'configure'-time test
18141         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
18142         after integer overflow.  Problem reported by Rich Felker in
18143         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
18144         Also, don't look for further instances of a bug if we've already
18145         found one instance; this helps 'configure' run faster.
18147 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
18149         tmpfile, clean-temp: Fix invocation of GetVersionEx.
18150         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
18151         GetVersionEx correctly.
18152         * lib/clean-temp.c (supports_delete_on_close): Likewise.
18154 2012-06-20  Bruno Haible  <bruno@clisp.org>
18156         fdopen: Allow implementations that don't reject invalid fd arguments.
18157         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
18158         succeeds.
18159         Reported by Rich Felker <dalias@aerifal.cx>.
18161 2012-06-20  Simon Josefsson  <simon@josefsson.org>
18163         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
18164         bring in LIBINTL.
18166 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18168         init.sh: do not rely on autoupated PWD
18169         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
18170         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
18171         Although Nelson's bug was not necessarily fixed by this patch,
18172         it seems wise to make the change for safety.
18173         * tests/init.sh (path_prepend_): Do not rely on PWD updating
18174         automagically after 'cd'; this is not reliable on older shells.
18175         (setup_): Fail if we cannot cd to temporary directory.
18177 2012-06-19  Bruno Haible  <bruno@clisp.org>
18179         stat, fstat: Avoid warnings on mingw64.
18180         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
18181         redefining.
18182         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
18183         Reported by Daniel P. Berrange <berrange@redhat.com>.
18185 2012-06-19  Bruno Haible  <bruno@clisp.org>
18187         stdioext: Add support for musl libc.
18189         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
18190         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
18192         * m4/fseterr.m4: New file.
18193         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
18194         function exists.
18195         * modules/fseterr (Files): Add m4/fseterr.m4.
18196         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
18197         __fseterr does not exist.
18198         (Makefile.am): Remove fseterr.c from lib_SOURCES.
18200         * lib/freadable.h: Update comment.
18202         * lib/fwritable.h: Update comment.
18204         * lib/freading.h: Update comment.
18206         * lib/fwriting.h: Update comment.
18208         * m4/freadahead.m4: New file.
18209         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
18210         that function exists.
18211         * modules/freadahead (Files): Add m4/freadahead.m4.
18212         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
18213         __freadahead does not exist.
18214         (Makefile.am): Remove freadahead.c from lib_SOURCES.
18216         * m4/freadptr.m4: New file.
18217         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
18218         function exists.
18219         * modules/freadptr (Files): Add m4/freadptr.m4.
18220         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
18221         __freadptr does not exist.
18222         (Makefile.am): Remove freadptr.c from lib_SOURCES.
18224         * m4/freadseek.m4: New file.
18225         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
18226         exists.
18227         * modules/freadseek (Files): Add m4/freadseek.m4.
18228         (configure.ac): Invoke gl_FUNC_FREADSEEK.
18230         * lib/fpurge.c (fpurge): Update comment.
18232         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
18234 2012-06-19  Bruno Haible  <bruno@clisp.org>
18236         *printf-posix: Put more info into config.log.
18237         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
18238         exit code into config.log.
18240 2012-06-19  Bruno Haible  <bruno@clisp.org>
18242         getopt-gnu: Fix exit code overflow in autoconf test.
18243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
18244         to keep them below < 128.
18246 2012-06-17  Jim Meyering  <meyering@redhat.com>
18248         maint.mk: fix typo in code to derive GPG key at release time
18249         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
18251 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18253         regex: avoid warning when pointers are not long
18254         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
18255         and uintptr_t, not long, for portability to hosts where pointers and
18256         long have different sizes.  Issue noted by Daniel P. Berrange in
18257         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
18258         and fix suggested by Bruno Haible in
18259         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
18261 2012-06-17  Bruno Haible  <bruno@clisp.org>
18263         dummy: Relicense into the public domain.
18264         * modules/dummy (License): Set to "public domain".
18265         Suggested by Reuben Thomas.
18267 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18269         announce-gen: VPATH issues
18270         * build-aux/announce-gen (--srcdir): New option, used to trim the
18271         $srcdir part of the path from $builddir to NEWS.
18272         * top/maint.mk (announcement): Adjust.
18274 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18276         gnu-web-doc-update: VPATH builds
18277         * build-aux/gnu-web-doc-update (--builddir): New option.
18278         Revamp the handling of options.
18279         Prefer $(...) to `...`.
18280         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
18281         the template, and it is GNU mktemp specific.
18282         Prefer set -e to long series of &&.
18283         Restore the initial git branch, not "master".
18284         Properly initialize submodules (don't rely only on bootstrap).
18285         Do not reconfigure blindly, use config.status.
18286         * top/README-release: Update instructions for gnu-web-doc-update.
18288 2012-06-11  Jim Meyering  <meyering@redhat.com>
18290         maint.mk: revert most of the previous change re "all these"
18291         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
18292         For rationale, see the discussion at
18293         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
18295 2012-06-10  Karl Berry  <karl@gnu.org>
18297         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
18299         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
18301 2012-06-10  Bruce Korb  <bkorb@gnu.org>
18303         parse-duration: Relicense under LGPLv2+.
18304         * modules/parse-duration (License): Change to LGPLv2+.
18306 2012-06-10  Jim Meyering  <meyering@redhat.com>
18308         maint.mk: prohibit common grammar error: "all these"
18309         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
18310         the list of prohibited word sequences.  It should be "all of these".
18311         * lib/tempname.c (__gen_tempname): Fix one of them.
18313 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18315         do-release-commit-and-tag: support VPATH builds
18316         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
18317         (noteworthy): Defined earlier to factor its value.
18318         (noteworthy_stub): New.
18319         Use it to factor.
18320         (help_version): Split into...
18321         (help, version): these.
18322         Adjust the option processing part.
18323         Support "--option=value" in addition to "--option value".
18324         (builddir): New.
18325         (--builddir): New option.
18326         * top/README-release: Document this.
18327         Reword slightly so that the reader cannot understand that he
18328         has to do these steps before calling do-release-commit-and-tag.
18330 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18332         readme-release: also require announce-gen and maintainer-makefile
18333         * modules/readme-release (Depends-on): here.
18334         * modules/announce-gen, modules/do-release-commit-and-tag,
18335         modules/gnu-web-doc-update, modules/maintainer-makefile
18336         (Description): Point to readme-release.
18338 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18340         maint.mk: fix VPATH issues.
18341         * top/maint.mk (news-check): GNU Make understand $< very well.
18342         (release-prep): NEWS is in $(srcdir).
18344 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
18346         readme-release: require the promoted modules.
18347         * modules/readme-release (Depends-on): Add
18348         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
18349         in this text.
18351 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18352             Bruno Haible  <bruno@clisp.org>
18354         error, strerror-override: Support mingw64 from Fedora 17.
18355         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
18356         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
18357         EINPROGRESS.
18358         * lib/strerror-override.h (strerror_override): Test it.
18359         * lib/strerror-override.c (strerror_override): Likewise.
18360         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
18362 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18363             Bruno Haible  <bruno@clisp.org>
18365         error, strerror-override: Support mingw64 from Fedora 17.
18366         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
18367         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
18368         * lib/strerror-override.h (strerror_override): Test it.
18369         * lib/strerror-override.c (strerror_override): Likewise.
18371 2012-06-03  Bruno Haible  <bruno@clisp.org>
18373         error, strerror-override: Support new errno values from POSIX:2008.
18374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
18375         ENOTRECOVERABLE.
18376         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
18377         platforms.
18378         * lib/strerror-override.c (strerror_override): Conditionalize the
18379         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
18380         * lib/strerror-override.h (strerror_override): Declare also if
18381         GNULIB_defined_EOWNERDEAD is defined.
18382         * tests/test-errno.c (e130, e131): New variables.
18383         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
18384         ENOTRECOVERABLE.
18385         Reported by Paolo Bonzini.
18387 2012-05-31  Jim Meyering  <meyering@redhat.com>
18389         savewd: add missing dependency on sys_wait module
18390         * modules/savewd (Depends-on): Add sys_wait, needed at least
18391         for MSVC.  Report and suggested change by Michael Goffioul.
18393 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18395         system-quote-tests: port to CentOS 5
18396         Problem reported by Tom G. Christensen in
18397         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
18398         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
18400 2012-05-29  Jim Meyering  <meyering@redhat.com>
18402         maint: fix typos in comments and ChangeLog
18403         Culprits identified and fixed mostly automatically using these commands:
18404         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
18405         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
18406         using http://github.com/lyda/misspell-check
18407         * ChangeLog: Fix typos.
18408         * doc/solaris-versions: Likewise.
18409         * lib/regexec.c (re_search_stub): Likewise.
18410         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18412 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18414         manywarnings: remove duplicate -Wmultichar entry
18415         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
18416         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
18417         so keep the entry marked as documented.
18419 2012-05-27  Karl Berry  <karl@gnu.org>
18421         * config/srclist.txt (mktime.c): remove last libc sync,
18422         perhaps just temporarily.
18424 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18426         regex: don't assume uint64_t or uint32_t
18427         * lib/regcomp.c (init_word_char): Don't assume that the types
18428         uint64_t and uint32_t exist.  The C standard doesn't guarantee
18429         them, and on some 32-bit compilers there is no uint64_t.
18430         Problem reported by Gianluigi Tiesi in
18431         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
18433 2012-05-25  Jim Meyering  <meyering@redhat.com>
18435         maint.mk: add strncpy-prohibiting syntax-check rule
18436         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
18438 2012-05-24  Jim Meyering  <meyering@redhat.com>
18440         maint.mk: compute $(gpg_key_ID) more portably
18441         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
18442         That use of sed is not portable to some fringe systems.
18443         Reported by Paul Eggert in
18444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
18446 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18448         mktime: sync from glibc
18449         * config/srclist.txt: Uncomment mktime.c.
18450         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
18451         First, indent with tabs, since glibc uses tabs and doesn't want to
18452         change and we'd rather be identical to glibc.  Also, two small
18453         coding changes:
18454         (isdst_differ): Use &&, not &, as && is the usual style.
18455         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
18456         for clarity.
18458 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18460         announce-gen: du -h is more portable than du --human
18461         * build-aux/announce-gen (sizes): Invoke du with -h instead
18462         of --human.  Accept leading white space in its output.
18464 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18466         announce-gen: Improve diagnostics.
18467         * build-aux/announce-gen: When parsing command line options,
18468         prefer "announce-gen: option --release-type requires an argument"
18469         to "Option release-type requires an argument".
18471 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18473         maint.mk: gpg_key_ID: use sed more portably
18474         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
18475         the closing brace.
18476         (refresh-po): Fuse two sed invocations into one.
18478 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
18480         gitlog-to-changelog: support the log message format used in Bison.
18481         * build-aux/gitlog-to-changelog: Support --strip-tab and
18482         --strip-cherry-picked.
18484 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18486         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
18487         the rest of the current time slice to another thread in the current
18488         process. So if the thread that feeds the file decscriptor we're
18489         polling is not in the current process, we get busy-waiting.
18490         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
18491         Patch from Theodore Leblond.
18492         * lib/select.c: Split polling out of the loop that sets the output
18493         fd_sets.  Check for zero result and loop if the wait timeout is
18494         infinite.
18496 2012-05-21  Simon Josefsson  <simon@josefsson.org>
18498         select: Fix build error on IRIX 6.5.
18499         * lib/select.c: Include stddef.h for NULL.
18501 2012-05-21  Simon Josefsson  <simon@josefsson.org>
18503         gc: fix libgcrypt detection on older machines.
18504         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
18505         copyright years because the file has been distributed every year
18506         since it was created.
18508 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18510         crypto: fix bug in large buffer handling
18511         Problem reported by Serge Belyshev for glibc in
18512         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
18513         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
18514         * lib/md4.c (md4_process_block):
18515         * lib/md5.c (md5_process_block):
18516         * lib/sha1.c (sha1_process_block):
18517         * lib/sha256.c (sha256_process_block):
18518         Don't assume the buffer length is less than 2**32.
18519         * lib/sha512.c (sha512_process_block): Likewise.
18520         Here, the bug is present only in the rare case where the host does
18521         not support uint64_t or where size_t is wider than 64 bits.
18522         Use u64size to work around the problems.
18523         * lib/u64.h (u64size): New macro.
18525 2012-05-15  Pádraig Brady  <P@draigBrady.com>
18527         fsusage: fix block size returned on older Linux 2.6
18529         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
18530         which is available since Linux 2.6.
18531         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
18532         when the member is available so it can be used as a fallback.
18533         * doc/posix-functions/statvfs.texi: Mention the hang issue
18534         on Linux < 2.6.36.
18536 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18538         bootstrap: suppress stderr chatter
18539         * build-aux/bootstrap (insert_sorted_if_absent, main program):
18540         Omit unnecessary chatter to stderr.  The main program chatter
18541         was there only inadvertantly.
18543         bootstrap: .gitignore files created by autopoint, libtool
18544         I ran into this problem when bootstrapping the latest diffutils.
18545         After './bootstrap', 'git status' reported lots of untracked files
18546         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
18547         autopoint and do not need to be version-controlled.
18548         * build-aux/bootstrap: Put into .gitignore the files that
18549         autopoint and libtool create, by keeping track of files that exist
18550         after but not before these programs are run.
18551         (version_controlled_file): Move up.  2nd arg is now full file
18552         name, not base name; this is more convenient.  Put CVS at the end,
18553         as it's now somewhat deprecated.
18555 2012-05-14  Jim Meyering  <meyering@redhat.com>
18557         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
18558         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
18559         definition.  Reported by Bruno Haible.
18561 2012-05-13  Bruno Haible  <bruno@clisp.org>
18562             Paul Eggert  <eggert@cs.ucla.edu>
18564         binary-io: Define set_binary_mode function.
18565         * lib/binary-io.h (set_binary_mode): New function.
18566         (SET_BINARY): Define in terms of set_binary_mode.
18567         * modules/binary-io (configure.ac): Require AC_C_INLINE.
18568         * tests/test-binary-io.c (main): Accept an argument, and test either
18569         set_binary_mode or SET_BINARY depending on the argument.
18570         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
18571         argument. Clean up also t-bin-out0.tmp.
18573 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
18575         bootstrap: take advantage of POSIX shell features
18577         The 'bootstrap' script offered by Gnulib script already uses POSIX
18578         shell features (like $((...)) arithmetic expansions) that are not
18579         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
18580         means that bootstrap must already be run using a proper POSIX shell,
18581         which will thus provide more features, like ${var#pattern} parameter
18582         expansion or inversion of a command exit status with '!'.  We can
18583         thus use these features to improve the clarity and the performances
18584         of the bootstrap script.
18586         Suggested by Eric Blake.
18588         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
18589         of sed/expr plus command substitutions, to save some forks.  While
18590         we are at it, prefer the POSIX $(...) form of command substitution,
18591         rather than the legacy form `...` (since the former is visually
18592         clearer and interacts better with quoting), and prefer the idiom:
18593           "if ! CMD; then ACTION ..."
18594         over the idiom:
18595           "if CMD; then :; else ACTION ..."
18596         which was required by legacy Bourne shells not supporting '!'.
18598 2012-05-12  Bruno Haible  <bruno@clisp.org>
18600         system-quote: Add more comments.
18601         * lib/system-quote.h: Add more comments about wilcards and limitations.
18602         Suggested by Eli Zaretskii <eliz@gnu.org>.
18604         sh-quote, system-quote: Add comments about wildcards.
18605         * lib/sh-quote.h: Clarify what happens with wildcard characters.
18606         * lib/system-quote.h: Likewise.
18607         Reported by Eli Zaretskii <eliz@gnu.org>.
18609 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18611         fsusage: check for GNU/Linux statvfs problem dynamically
18612         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
18613         Define STAT_STATFS2_BSIZE too, since in this case the code now
18614         checks dynamically whether statvfs is reliable, falling back on
18615         Linux-style statfs otherwise.
18616         (statvfs_works): New function, for dynamically testing statvfs.
18617         (get_fs_usage) [STAT_STATVFS]: Use it.
18618         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
18619         statvfs on GNU/Linux hosts, since it's now done dynamically.
18621 2012-05-10  Bruno Haible  <bruno@clisp.org>
18623         system-quote, execute, spawn-pipe: Escape '?' on Windows.
18624         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
18625         '?' character.
18626         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
18627         * tests/test-system-quote-main.c (check_all): Check also strings like
18628         "??????????".
18629         Reported by Eli Zaretskii <eliz@gnu.org>.
18631 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
18633         _Noreturn: port config.h to gcc -Wundef
18634         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
18635         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
18636         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
18638 2012-05-10  Bruno Haible  <bruno@clisp.org>
18640         system-quote: Refactor.
18641         * lib/system-quote.h (system_quote_copy): Fix comment.
18642         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
18643         New functions, extracted from system_quote_copy.
18644         (system_quote_length, system_quote_copy): Use these functions.
18645         Reported by Paul Eggert.
18647 2012-05-08  Bruno Haible  <bruno@clisp.org>
18649         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
18650         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
18652 2012-05-08  Bruno Haible  <bruno@clisp.org>
18654         Tests for module 'system-quote'.
18655         * modules/system-quote-tests: New file.
18656         * tests/test-system-quote.sh: New file.
18657         * tests/test-system-quote-main.c: New file.
18658         * tests/test-system-quote-child.c: New file.
18660         New module 'system-quote'.
18661         * lib/system-quote.h: New file.
18662         * lib/system-quote.c: New file.
18663         * modules/system-quote: New file.
18665 2012-05-08  Bruno Haible  <bruno@clisp.org>
18667         sh-quote: Make C++ safe and allow multiple inclusion.
18668         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
18669         declarations in extern "C".
18671 2012-05-08  Bruno Haible  <bruno@clisp.org>
18673         sh-quote tests: Make tests stricter.
18674         * tests/test-sh-quote.c (check_one): Check the return value of
18675         shell_quote_copy.
18676         (main): Check a string with a CR character. Check a string that
18677         contains UCHAR_MAX.
18679 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
18681         warnings.m4: provide a means to specify the program to compile.
18682         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
18683         (gl_WARN_ADD): here.
18684         Use gl_AS_VAR_APPEND.
18685         Support an argument to specify the program to compile.
18686         (gl_WARN_ADD): Accept an argument to specify the program to compile.
18687         AC_SUBST the WARN_CFLAGS when they are used.
18688         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
18689         leave this to gl_WARN_ADD.
18691 2012-05-08  Eric Blake  <eblake@redhat.com>
18693         doc: recommendations on gettext version
18694         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
18695         choice between versions.
18696         * DEPENDENCIES (gettext): Cover both approaches.
18698 2012-05-08  Jim Meyering  <meyering@redhat.com>
18700         init.sh: explain why EXEEXT support uses aliases rather than functions
18701         * tests/init.sh: Add a comment.
18703         init.sh: don't let bash aliases interfere with tests
18704         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
18705         is bash.  This avoids problems for those who alias standard commands to
18706         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
18707         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
18709 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18711         stdint: be more consistent with glibc, SunOS libc
18712         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
18713         (gl_int_fast16_t, gl_uint_fast16_t)
18714         (gl_int_fast32_t, gl_uint_fast32_t)
18715         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
18716         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
18717         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
18718         Be consistent with glibc by default, and with SunOS 5.10 and later
18719         if __sun is defined.  This lessens the likelihood of clashes if
18720         code compiled for older hosts is combined with code compiled for
18721         newer ones.  Problem reported by Niels Möller in
18722         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
18724 2012-05-07  Eric Blake  <eblake@redhat.com>
18726         isatty: relax license to LGPLv2+
18727         * modules/isatty (License): Relax license.
18729 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18731         stat-size: comment fix
18732         * lib/stat-size.h: Remove obsolete comment about indenting.
18734 2012-05-06  Bruno Haible  <bruno@clisp.org>
18736         Tests for module 'sh-quote'.
18737         * modules/sh-quote-tests: New file.
18738         * tests/test-sh-quote.c: New file.
18740 2012-05-06  Bruno Haible  <bruno@clisp.org>
18742         sh-quote: Improve shell_quote_argv's signature.
18743         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
18744         * lib/sh-quote.c (shell_quote_argv): Likewise.
18746 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18748         stdint: document issues with int_fast8_t etc.
18749         * doc/posix-headers/stdint.texi (stdint.h): Say that other
18750         stdint.h substitutes may define these types differently.  See
18751         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
18753 2012-05-05  Bruno Haible  <bruno@clisp.org>
18755         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
18756         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
18757         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
18758         or 'guessing no (mishandles large arguments)'.
18760 2012-05-05  Bruno Haible  <bruno@clisp.org>
18762         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
18763         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
18764         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
18765         set gl_cv_func_link_follows_symlink to "guessing no".
18767 2012-05-05  Bruno Haible  <bruno@clisp.org>
18769         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
18770         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
18771         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
18772         "guessing no".
18773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
18775 2012-05-05  Bruno Haible  <bruno@clisp.org>
18777         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
18778         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
18779         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
18780         set gl_cv_struct_dirent_d_ino to "guessing yes".
18782 2012-05-05  Bruno Haible  <bruno@clisp.org>
18784         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
18785         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
18786         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
18787         "guessing yes".
18789 2012-05-05  Bruno Haible  <bruno@clisp.org>
18791         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
18792         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
18793         compiling to a glibc system, set gl_cv_func_signbit and
18794         gl_cv_func_signbit_gcc to "guessing yes".
18796 2012-05-05  Bruno Haible  <bruno@clisp.org>
18798         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
18799         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
18800         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
18801         to "guessing yes".
18802         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
18803         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
18805 2012-05-05  Bruno Haible  <bruno@clisp.org>
18807         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
18808         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
18809         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
18810         gl_cv_func_realpath_works to "guessing yes".
18812 2012-05-05  Bruno Haible  <bruno@clisp.org>
18814         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
18815         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
18816         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
18818 2012-05-04  Bruno Haible  <bruno@clisp.org>
18820         Tweak last commit.
18821         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
18822         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18824 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
18826         unistd_h: make it easier to avoid sys_types_h
18827         This is useful for Emacs, which has its own method of porting to
18828         Windows, and which therefore does not need the sys_types_h module.
18829         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
18830         code moved here from gl_SYS_TYPES_H.
18831         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
18832         using the code directly.
18833         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
18834         gl_SYS_TYPES_H.
18835         * modules/sys_types (Files):
18836         * modules/unistd (Files): Add m4/off_t.m4.
18838 2012-05-03  Bruno Haible  <bruno@clisp.org>
18840         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
18841         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
18842         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
18843         "guessing yes" or "guessing no".
18844         (gl_FUNC_LSTAT): Update.
18845         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
18846         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18847         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
18849 2012-05-03  Bruno Haible  <bruno@clisp.org>
18851         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
18852         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
18853         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
18854         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
18855         cross-compiling, choose the first alternative on glibc systems.
18856         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
18858 2012-05-03  Bruno Haible  <bruno@clisp.org>
18860         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
18861         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
18862         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
18864 2012-05-03  Bruno Haible  <bruno@clisp.org>
18866         chown: Avoid "guessing no" when cross-compiling to glibc systems.
18867         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
18869 2012-05-03  Bruno Haible  <bruno@clisp.org>
18871         Avoid "guessing no" guesses when cross-compiling to glibc systems.
18872         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
18873         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
18874         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
18875         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
18876         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
18877         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
18878         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
18879         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
18880         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
18881         compiling to glibc systems, set gl_cv_func_chown_slash_works,
18882         gl_cv_func_chown_ctime_works to "guessing yes".
18883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
18884         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
18885         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
18886         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
18887         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
18888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
18889         compiling to glibc systems, set gl_cv_func_open_directory_works to
18890         "guessing yes".
18891         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
18892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
18893         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
18894         "guessing yes".
18895         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
18896         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
18897         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
18898         compiling to glibc systems, set gl_cv_func_floorf_ieee to
18899         "guessing yes".
18900         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
18901         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
18902         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
18903         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
18904         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
18905         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
18906         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
18907         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
18908         "guessing yes".
18909         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
18910         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
18911         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
18912         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
18913         "guessing yes".
18914         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
18915         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
18916         "guessing yes".
18917         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
18918         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
18919         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
18920         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
18921         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
18922         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
18923         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
18924         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
18925         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
18926         compiling to glibc systems, set gl_cv_func_log10f_ieee to
18927         "guessing yes".
18928         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
18929         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
18930         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
18931         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
18932         "guessing yes".
18933         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
18934         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
18935         "guessing yes".
18936         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
18937         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
18938         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
18939         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
18940         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
18941         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
18942         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
18943         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
18944         compiling to glibc systems, set gl_cv_func_mkfifo_works to
18945         "guessing yes".
18946         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
18947         compiling to glibc systems, set gl_cv_func_mknod_works to
18948         "guessing yes".
18949         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
18950         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
18951         "guessing yes".
18952         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
18953         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
18954         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
18955         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
18956         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
18957         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
18958         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
18959         compiling to glibc systems, set gl_cv_func_svid_putenv to
18960         "guessing yes".
18961         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
18962         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
18963         "guessing yes".
18964         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
18965         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
18966         "guessing yes".
18967         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
18968         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
18969         to "guessing yes".
18970         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
18971         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
18972         to "guessing yes".
18973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
18974         compiling to glibc systems, set gl_cv_func_rmdir_works to
18975         "guessing yes".
18976         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
18977         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
18978         gl_cv_func_unlink_parent_fails to "guessing yes".
18979         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
18980         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
18981         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
18982         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
18983         gl_cv_func_rename_dest_works to "guessing yes".
18984         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
18985         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
18986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
18987         compiling to glibc systems, set gl_cv_func_roundf_ieee to
18988         "guessing yes".
18989         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
18990         compiling to glibc systems, set gl_cv_func_roundl_ieee to
18991         "guessing yes".
18992         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
18993         compiling to glibc systems, set gl_cv_func_setenv_works to
18994         "guessing yes".
18995         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
18996         compiling to glibc systems, set gl_cv_func_unsetenv_works to
18997         "guessing yes".
18998         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
18999         compiling to glibc systems, set gl_cv_func_sleep_works to
19000         "guessing yes".
19001         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
19002         compiling to glibc systems, set gl_cv_func_stat_file_slash to
19003         "guessing yes".
19004         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
19005         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
19006         "guessing yes".
19007         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
19008         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
19009         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
19010         compiling to glibc systems, set gl_cv_func_truncf_ieee to
19011         "guessing yes".
19012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
19013         compiling to glibc systems, set gl_cv_func_truncl_ieee to
19014         "guessing yes".
19015         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
19016         compiling to glibc systems, set gl_cv_func_usleep_works to
19017         "guessing yes".
19018         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
19019         compiling to glibc systems, set gl_cv_func_futimesat_works to
19020         "guessing yes".
19022 2012-05-03  Bruno Haible  <bruno@clisp.org>
19024         Say "guessing yes" or "guessing no" when cross-compiling.
19025         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
19026         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
19027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
19028         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
19029         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
19030         am_cv_func_working_getline to "guessing yes" or "guessing no".
19031         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
19032         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
19033         (gl_FUNC_MEMMEM): When cross-compiling, set
19034         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
19035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
19036         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
19037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
19038         set gl_cv_func_strcasestr_works_always to "guessing yes" or
19039         "guessing no".
19040         (gl_FUNC_STRCASESTR): When cross-compiling, set
19041         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
19042         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
19043         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
19044         (gl_FUNC_STRSTR): When cross-compiling, set
19045         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
19046         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
19047         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
19048         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
19049         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
19051 2012-05-01  Bruno Haible  <bruno@clisp.org>
19053         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
19054         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
19055         * build-aux/reloc-ldflags: Likewise.
19056         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
19058 2012-05-01  Bruno Haible  <bruno@clisp.org>
19060         gnulib-tool: Remove transitional code.
19061         * gnulib-tool: Don't warn about --import with 0 arguments any more.
19062         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19064 2012-05-01  Bruno Haible  <bruno@clisp.org>
19066         getcwd: Fix misindentation.
19067         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
19069 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19071         exclude: process exclude and include directives in order
19072         This restores the pre-2009 behavior, and is part of a fix of a
19073         grep bug reported by Quentin Arce in
19074         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
19075         * lib/exclude.c (struct exclude): Remove 'tail' member.
19076         (new_exclude_segment): Prepend the new segment instead of appending.
19077         Return void, since that's now more convenient.
19078         (file_pattern_matches): Renamed from excluded_file_pattern_p.
19079         (file_name_matches): Renamed from excluded_file_name_p.
19080         (file_pattern_matches, file_name_matches):
19081         Return true if the pattern matches, not if it excludes.
19082         All callers changed.
19083         (excluded_file_name): Process the list in reverse order;
19084         since the list is now reversed this restores the pre-2009 behavior.
19085         (add_exclude): Adjust to new reversed-order list.  Use local var
19086         rather than macro, for clarity.
19087         * tests/test-exclude7.sh: Adjust to corrected behavior.
19089         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
19090         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
19091         it's not possible here.  Handle the case of \ at end of pattern
19092         without dumping core.
19093         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
19095         _Noreturn: future-proof non-GNU and non-MSVC compilers
19096         * build-aux/snippet/_Noreturn.h (_Noreturn):
19097         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19098         Do not define _Noreturn if __STDC_VERSION__ indicates this is
19099         C11 or later.  This is more likely to work with random future C
19100         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
19101         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
19103         exclude: handle wildcards with FNM_EXTMATCH
19104         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
19105         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
19106         comment that "has wildcards" really means "has or may have
19107         wildcards".  Simplify by avoiding the need to call strcspn.
19109 2012-04-29  Bruno Haible  <bruno@clisp.org>
19111         gnulib-tool: Fix list of authors.
19112         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
19114 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
19116         bootstrap: support Automake-NG in $buildreq
19117         * bootstrap (check_versions): Handle automake and aclocal from
19118         Automake-NG specially.  They can be specified as respectively
19119         the "automake-ng" and "aclocal-ng" requirements.
19121 2012-04-25  Eric Blake  <eblake@redhat.com>
19123         bootstrap: only force latest Makefile.in.in for gettext module
19124         * build-aux/bootstrap (with_gettext): Only install latest
19125         Makefile.in.in for projects requesting bleeding edge gettext.
19127 2012-04-22  Bruno Haible  <bruno@clisp.org>
19129         doc: Mention reason for replacement on glibc/Linux systems.
19130         * doc/posix-functions/dprintf.texi: Mention the problem with special
19131         'long double' values.
19132         * doc/posix-functions/fprintf.texi: Likewise.
19133         * doc/posix-functions/printf.texi: Likewise.
19134         * doc/posix-functions/snprintf.texi: Likewise.
19135         * doc/posix-functions/sprintf.texi: Likewise.
19136         * doc/posix-functions/vdprintf.texi: Likewise.
19137         * doc/posix-functions/vfprintf.texi: Likewise.
19138         * doc/posix-functions/vprintf.texi: Likewise.
19139         * doc/posix-functions/vsnprintf.texi: Likewise.
19140         * doc/posix-functions/vsprintf.texi: Likewise.
19141         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
19142         platforms with F_DUPFD_CLOEXEC problems.
19143         * doc/posix-functions/glob.texi: Mention which platforms are affected
19144         by the problem with symbolic links.
19145         * doc/posix-functions/linkat.texi: Mention the problem with
19146         AT_SYMLINK_FOLLOW on Linux.
19148 2012-04-22  Bruno Haible  <bruno@clisp.org>
19150         pwrite: Don't replace on all platforms.
19151         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
19153 2012-04-22  Bruno Haible  <bruno@clisp.org>
19155         rint* tests: Avoid gcc warnings.
19156         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
19157         * tests/test-rintf.c (INFINITY, NAN): Likewise.
19158         * tests/test-rintl.c (INFINITY, NAN): Likewise.
19160 2012-04-21  Bruno Haible  <bruno@clisp.org>
19162         users.txt: Update.
19163         * users.txt: Add freedink, wdiff. Update URLs for projects that have
19164         switched from CVS to git, bzr, or svn.
19166 2012-04-21  Bruno Haible  <bruno@clisp.org>
19168         Large File Support for native Windows platforms.
19170         * m4/largefile.m4 (gl_LARGEFILE): New macro.
19171         * modules/largefile (configure.ac): Require gl_LARGEFILE.
19173         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
19174         type.
19175         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
19176         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
19177         * doc/posix-headers/sys_types.texi: Mention the effect of the
19178         'largefile' module.
19180         * lib/fcntl.in.h: Add comments about off_t.
19181         * modules/fcntl-h (Depends-on): Add sys_types.
19183         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
19184         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
19185         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
19186         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
19187         * modules/unistd (Depends-on): Add sys_types.
19188         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
19190         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
19191         instead of lseek.
19192         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
19193         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
19194         * modules/lseek (Depends-on): Add sys_types.
19196         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
19197         msvc-nothrow.h.
19198         (SetFileSize): New function.
19199         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
19200         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
19201         if Large File Support is requested.
19202         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
19203         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
19205         * lib/stdio.in.h: Add comments about off_t.
19206         * modules/stdio (Depends-on): Add sys_types.
19208         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
19209         instead of ftello.
19210         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
19211         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
19212         (gl_PREREQ_FTELLO): New macro.
19213         * modules/ftello (Depends-on): Add sys_types.
19214         (configure.ac): Incoke gl_PREREQ_FTELLO.
19216         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
19217         instead of fseeko.
19218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
19219         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
19220         (gl_PREREQ_FSEEKO): New macro.
19221         * modules/fseeko (Depends-on): Add sys_types.
19222         (configure.ac): Invoke gl_PREREQ_FSEEKO.
19224         * lib/sys_stat.in.h: Add comments about off_t.
19225         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
19226         64-bit integer for st_size in 'struct stat'.
19227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
19228         Define _GL_WINDOWS_64_BIT_ST_SIZE.
19229         * modules/sys_stat (Depends-on): Add sys_types.
19230         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
19232         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
19233         instead of stat or _stat.
19235         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
19236         'struct _stati64' instead of fstat and 'struct stat'.
19237         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
19238         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
19240         Reported by Ray Satiro <raysatiro@yahoo.com>.
19242 2012-04-19  Eric Blake  <eblake@redhat.com>
19244         bootstrap: accommodate older libtool
19245         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
19246         Reported by Daniel P. Berrange.
19248 2012-04-19  Jim Meyering  <meyering@redhat.com>
19250         announce-gen: avoid failure due to lack of Digest::SHA1
19251         Even with the preferred Digest::SHA available, this script
19252         would fail when the backup module, Digest::SHA1, was not installed.
19253         * build-aux/announce-gen: Quote the conditional use of "use".
19254         Reported by Reuben Thomas in:
19255         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
19257         bootstrap: don't let a user's CDPATH setting affect this script
19258         When CDPATH is set, cd will sometimes generate output.
19259         When "cd" is run in a subshell whose output matters, that
19260         surprising-to-some output can cause malfunction.
19261         Unsetting CDPATH turns off this shell "feature."
19262         * build-aux/bootstrap (CDPATH): Unset.
19263         Reported by Reuben Thomas in:
19264         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
19265         and inspired by his patch here:
19266         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
19268 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
19269         and Jim Meyering  <meyering@redhat.com>
19271         maint.mk: catch "see @xref{}" and similar
19272         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
19273         prohibit "See also @xref{", "Also see @pxref{", and similar.
19275 2012-04-16  Jim Meyering  <meyering@redhat.com>
19277         bootstrap: really use gnulib's po/Makefile.in.in
19278         * build-aux/bootstrap: Correct the source file name in previous change.
19279         Reported by Akim Demaille.
19281         configmake: correct minor inconsistency in Makefile rule
19282         * modules/configmake (Makefile.am): All other rules like this one
19283         run the final "mv -f ..." in the same backslash-continued command
19284         as the one that does everything else.  This one put the mv -f ...
19285         command on a separate, non-backslash-continued line.
19286         Make it like the others.
19288         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
19289         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
19290         the one from gettext.  Reported by Akim Demaille.
19292 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
19294         Fix recursion of install-* into po directories.
19295         Bison's install-pdf bug reported by Hans Aberg at
19296         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
19297         * build-aux/po/Makefile.in.in (install-dvi, install-html)
19298         (install-info, install-pdf, install-ps): New targets.
19300 2012-04-16  Jim Meyering  <meyering@redhat.com>
19302         maint: avoid spurious "make sc_maint" failure
19303         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
19304         exempt all *.class file names, for lib/javaversion.class.
19306 2012-04-15  Bruno Haible  <bruno@clisp.org>
19308         lseek: Make configure test independent of environment.
19309         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
19310         Windows, we know that lseek() on pipes is broken; skip the runtime
19311         test.
19313 2012-04-14  Bruno Haible  <bruno@clisp.org>
19315         stat: Bypass buggy override in mingw64.
19316         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
19317         * lib/stat.c (stat) [mingw64]: Define to _stat.
19318         * doc/posix-functions/stat.texi: Mention mingw64 bug.
19320 2012-04-14  Bruno Haible  <bruno@clisp.org>
19322         pathmax: Fix compilation error on MSVC 9.
19323         * modules/pathmax (Depends-on): Add unistd.
19325 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19327         README: document pointer comparison assumption
19328         * README (Portability guidelines): Document assumption about
19329         pointer comparisons, in response to a recent bug-gnulib comment by
19330         Jeffrey Kegler.
19332 2012-04-12  Bruno Haible  <bruno@clisp.org>
19334         Tests for module 'getrusage'.
19335         * modules/getrusage-tests: New file.
19336         * tests/test-getrusage.c: New file.
19338         New module 'getrusage'.
19339         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
19340         warn-on-use.h.
19341         (getrusage): New declaration.
19342         * lib/getrusage.c: New file.
19343         * m4/getrusage.m4: New file.
19344         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
19345         is declared.
19346         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
19347         HAVE_GETRUSAGE.
19348         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
19349         snippet/c++defs, snippet/warn-on-use.
19350         (Makefile.am): Update generation of sys/resource.h. Substitute
19351         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
19352         * modules/getrusage: New file.
19353         * doc/posix-functions/getrusage.texi: Mention the new module.
19355 2012-04-12  Bruno Haible  <bruno@clisp.org>
19357         Tests for module 'sys_resource'.
19358         * modules/sys_resource-tests: New file.
19359         * tests/test-sys_resource.c: New file.
19361         New module 'sys_resource'.
19362         * lib/sys_resource.in.h: New file.
19363         * m4/sys_resource_h.m4: New file.
19364         * modules/sys_resource: New file.
19365         * doc/posix-headers/sys_resource.texi: Mention the new module.
19367 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
19369         ioctl: Fix compilation error on mingw.
19370         * lib/ioctl.c: Include <windows.h>.
19371         Also reported by Ray Satiro <raysatiro@yahoo.com>.
19373 2012-04-04  Jim Meyering  <meyering@redhat.com>
19375         regex: correct #pragma guard expression
19376         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
19377         not 4.3.  Correct its cpp guard expression.
19379 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19381         regex: remove unnecessary type punning
19382         Problem reported by Vladimir Serbinenko in
19383         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
19384         * lib/regex.h (struct re_pattern_buffer): Change the type of
19385         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
19386         Fix comment to match code.
19387         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
19388         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
19389         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19390         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
19391         (set_regs):
19392         Omit no-longer-necessary casts.
19394 2012-04-03  Bruno Haible  <bruno@clisp.org>
19396         Tests for module 'ilogbl'.
19397         * modules/ilogbl-tests: New file.
19398         * tests/test-ilogbl.c: New file.
19400         New module 'ilogbl'.
19401         * lib/math.in.h (ilogbl): New declaration.
19402         * lib/ilogbl.c: New file.
19403         * m4/ilogbl.m4: New file.
19404         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
19405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
19406         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
19407         Split sed invocation, to avoid the limit of 100 substitutions of
19408         HP-UX 'sed'.
19409         * modules/ilogbl: New file.
19410         * tests/test-math-c++.cc: Check the declaration of ilogbl.
19411         * doc/posix-functions/ilogbl.texi: Mention the new module.
19413 2012-04-03  Bruno Haible  <bruno@clisp.org>
19415         Tests for module 'ilogbf'.
19416         * modules/ilogbf-tests: New file.
19417         * tests/test-ilogbf.c: New file.
19419         New module 'ilogbf'.
19420         * lib/math.in.h (ilogbf): New declaration.
19421         * lib/ilogbf.c: New file.
19422         * m4/ilogbf.m4: New file.
19423         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
19424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
19425         REPLACE_ILOGBF.
19426         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
19427         REPLACE_ILOGBF.
19428         * modules/ilogbf: New file.
19429         * tests/test-math-c++.cc: Check the declaration of ilogbf.
19430         * doc/posix-functions/ilogbf.texi: Mention the new module.
19432 2012-04-03  Bruno Haible  <bruno@clisp.org>
19434         Tests for module 'ilogb'.
19435         * modules/ilogb-tests: New file.
19436         * tests/test-ilogb.c: New file.
19437         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
19438         tests/test-logb-ieee.h.
19440         New module 'ilogb'.
19441         * lib/math.in.h (ilogb): New declaration.
19442         * lib/ilogb.c: New file.
19443         * m4/ilogb.m4: New file.
19444         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
19445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
19446         REPLACE_ILOGB.
19447         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
19448         REPLACE_ILOGB.
19449         * modules/ilogb: New file.
19450         * tests/test-math-c++.cc: Check the declaration of ilogb.
19451         * doc/posix-functions/ilogb.texi: Mention the new module.
19453 2012-04-03  Bruno Haible  <bruno@clisp.org>
19455         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
19456         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
19457         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
19458         (main): Check their values.
19459         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
19460         problem.
19462 2012-04-03  Bruno Haible  <bruno@clisp.org>
19464         Tests for module 'logbl-ieee'.
19465         * modules/logbl-ieee-tests: New file.
19466         * tests/test-logbl-ieee.c: New file.
19468         New module 'logbl-ieee'.
19469         * modules/logbl-ieee: New file.
19471         Tests for module 'logb-ieee'.
19472         * modules/logb-ieee-tests: New file.
19473         * tests/test-logb-ieee.c: New file.
19475         New module 'logb-ieee'.
19476         * modules/logb-ieee: New file.
19478         Tests for module 'logbf-ieee'.
19479         * modules/logbf-ieee-tests: New file.
19480         * tests/test-logbf-ieee.c: New file.
19481         * tests/test-logb-ieee.h: New file.
19483         New module 'logbf-ieee'.
19484         * modules/logbf-ieee: New file.
19486 2012-04-03  Bruno Haible  <bruno@clisp.org>
19488         Tests for module 'logbl'.
19489         * modules/logbl-tests: New file.
19490         * tests/test-logbl.c: New file.
19492         New module 'logbl'.
19493         * lib/math.in.h (logbl): New declaration.
19494         * lib/logbl.c: New file.
19495         * m4/logbl.m4: New file.
19496         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
19497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
19498         REPLACE_LOGBL.
19499         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
19500         REPLACE_LOGBL.
19501         * modules/logbl: New file.
19502         * tests/test-math-c++.cc: Check the declaration of logbl.
19503         * doc/posix-functions/logbl.texi: Mention the new module.
19505 2012-04-02  Bruno Haible  <bruno@clisp.org>
19507         Tests for module 'logbf'.
19508         * modules/logbf-tests: New file.
19509         * tests/test-logbf.c: New file.
19511         New module 'logbf'.
19512         * lib/math.in.h (logbf): New declaration.
19513         * lib/logbf.c: New file.
19514         * m4/logbf.m4: New file.
19515         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
19516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
19517         REPLACE_LOGBF.
19518         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
19519         REPLACE_LOGBF.
19520         * modules/logbf: New file.
19521         * tests/test-math-c++.cc: Check the declaration of logbf.
19522         * doc/posix-functions/logbf.texi: Mention the new module.
19524 2012-04-02  Bruno Haible  <bruno@clisp.org>
19526         logb tests: More tests.
19527         * tests/test-logb.h: New file, based on tests/test-logb.c and
19528         tests/test-frexp.h.
19529         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
19530         (main): Just invoke test_function.
19531         * modules/logb-tests (Files): Add tests/test-logb.h,
19532         tests/minus-zero.h, tests/randomd.c.
19533         (Makefile.am): Add randomd.c to test_logb_SOURCES.
19535         logb: Provide replacement and workarounds.
19536         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
19537         is 1.
19538         * lib/logb.c: New file.
19539         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
19540         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
19541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
19542         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
19543         * modules/logb (Files): Add lib/logb.c.
19544         (Depends-on): Add isfinite, frexp, isnand.
19545         (configure.ac): Compile the replacement code logb.c if needed.
19546         * tests/test-math-c++.cc: Check the declaration of logb.
19547         * doc/posix-functions/logb.texi: Mention the replacement and the bug
19548         with subnormal numbers.
19550 2012-04-02  Bruno Haible  <bruno@clisp.org>
19552         log10* tests: Speed up.
19553         * tests/test-log10.h (test_function): Reduce amount of random numbers
19554         to test.
19556 2012-04-01  Bruno Haible  <bruno@clisp.org>
19558         logf-ieee: Fix test whether logf works.
19559         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
19561 2012-04-01  Bruno Haible  <bruno@clisp.org>
19563         log10l: Work around log10l-ieee test failure on IRIX 6.5.
19564         * lib/log10l.c: Include <float.h>
19565         (log10l): On IRIX, normalize the +Infinity value.
19566         * modules/log10l (Depends-on): Add 'float'.
19567         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
19568         +Infinity.
19570         log10f-ieee: Work around test failure on NetBSD 5.1.
19571         * m4/log10f-ieee.m4: New file.
19572         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
19573         test whether log10f works with a negative argument. Replace it if not.
19574         * lib/log10f.c (log10f): For negative arguments, return NaN.
19575         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
19576         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
19577         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
19579         log10f-ieee: Work around test failure on Solaris 9.
19580         * modules/log10f-ieee (Depends-on): Add log10-ieee.
19581         (configure.ac): Require gl_FUNC_LOG10F.
19583         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
19584         * m4/log10-ieee.m4: New file.
19585         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
19586         whether log10 works with a negative argument. Replace it if not.
19587         * lib/log10.c (log10): For negative arguments, return NaN.
19588         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
19589         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
19590         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
19592         Tests for module 'log10l-ieee'.
19593         * modules/log10l-ieee-tests: New file.
19594         * tests/test-log10l-ieee.c: New file.
19596         New module 'log10l-ieee'.
19597         * modules/log10l-ieee: New file.
19599         Tests for module 'log10-ieee'.
19600         * modules/log10-ieee-tests: New file.
19601         * tests/test-log10-ieee.c: New file.
19603         New module 'log10-ieee'.
19604         * modules/log10-ieee: New file.
19606         Tests for module 'log10f-ieee'.
19607         * modules/log10f-ieee-tests: New file.
19608         * tests/test-log10f-ieee.c: New file.
19609         * tests/test-log10-ieee.h: New file.
19611         New module 'log10f-ieee'.
19612         * modules/log10f-ieee: New file.
19614 2012-04-01  Bruno Haible  <bruno@clisp.org>
19616         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
19617         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
19618         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
19619         workaround.
19620         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
19621         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
19622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
19623         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
19624         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
19625         (Depends-on): Update conditions.
19626         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
19627         IRIX 6.5, OSF/1 5.1 problems.
19629 2012-04-01  Bruno Haible  <bruno@clisp.org>
19631         log10f: Work around OSF/1 5.1 bug.
19632         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
19633         * lib/log10f.c (log10f): If logf exists, use it and provide just the
19634         workaround.
19635         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
19636         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
19637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
19638         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
19639         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
19640         (Depends-on): Update conditions.
19641         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
19643 2012-04-01  Bruno Haible  <bruno@clisp.org>
19645         log10: Work around OSF/1 5.1 bug.
19646         * lib/math.in.h (log10): New declaration.
19647         * lib/log10.c: New file.
19648         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
19649         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
19650         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
19651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
19652         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
19653         * modules/log10 (Files): Add lib/log10.c.
19654         (Depends-on): Add math.
19655         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
19656         * tests/test-math-c++.cc: Check the declaration of log10.
19657         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
19659 2012-03-31  Bruno Haible  <bruno@clisp.org>
19661         log10l tests: More tests.
19662         * modules/log10l-tests (Files): Add tests/test-log10l.h,
19663         tests/minus-zero.h, tests/randoml.c.
19664         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
19665         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
19666         (main): Invoke test_function.
19668         log10f tests: More tests.
19669         * modules/log10f-tests (Files): Add tests/test-log10.h,
19670         tests/minus-zero.h, tests/randomf.c.
19671         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
19672         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
19673         (main): Invoke test_function.
19675         log10 tests: More tests.
19676         * tests/test-log10.h: New file.
19677         * modules/log10-tests (Files): Add tests/test-log10.h,
19678         tests/minus-zero.h, tests/randomd.c.
19679         (Makefile.am): Add randomd.c to test_log10_SOURCES.
19680         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
19681         (main): Invoke test_function.
19683 2012-03-31  Simon Josefsson  <simon@josefsson.org>
19685         fflush: Fix syntax error.
19686         * lib/fflush.c: Include unused-parameter.h, needed for
19687         _GL_UNUSED_PARAMETER.
19688         * modules/fflush (Depends-on): Add snippet/unused-parameter.
19690 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19692         regex: pacify GCC when compiling GRUB
19693         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
19694         a diagnostic.  Reported by Vladimir Serbinenko in
19695         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
19697 2012-03-29  Eric Blake  <eblake@redhat.com>
19699         stdio: don't assume gets any more
19700         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
19701         support.
19702         * modules/stdio (Makefile.am): Likewise.
19703         * lib/stdio-read.c (gets): Likewise.
19704         * tests/test-stdio-c++.cc: Likewise.
19705         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
19706         * lib/stdio.in.h (gets): Make warning occur in more places.
19707         * doc/posix-functions/gets.texi (gets): Update documentation.
19708         Reported by Christer Solskogen.
19710         maint.mk: fix syntax checks without exclusions
19711         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
19712         Reported by Daniel P. Berrange.
19714         strerror_r: avoid compiler warning
19715         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
19716         level.
19718         fflush: avoid compiler warning
19719         * lib/fflush.c (update_fpos_cache): Mark variables that are
19720         potentially unused.
19722 2012-03-25  Bruno Haible  <bruno@clisp.org>
19724         Tests for module 'localeconv'.
19725         * modules/localeconv-tests: New file.
19726         * tests/test-localeconv.c: New file.
19728         New module 'localeconv'.
19729         * lib/locale.in.h (localeconv): New declaration.
19730         * lib/localeconv.c: New file.
19731         * m4/localeconv.m4: New file.
19732         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
19733         REPLACE_LOCALECONV.
19734         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
19735         REPLACE_LOCALECONV.
19736         * modules/localeconv: New file.
19737         * modules/nl_langinfo (Depends-on): Add localeconv.
19738         * modules/human (Depends-on): Likewise.
19739         * doc/posix-functions/localeconv.texi: Mention the new module.
19741 2012-03-25  Bruno Haible  <bruno@clisp.org>
19743         locale: Provide a complete 'struct lconv'.
19744         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
19745         'struct lconv' does not contain int_p_cs_precedes.
19746         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
19747         * doc/posix-headers/locale.texi: Update.
19749         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
19750         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
19751         * doc/posix-headers/locale.texi: Update.
19753         locale: Provide a working 'struct lconv'.
19754         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
19755         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
19756         'struct lconv' does not even contain decimal_point.
19757         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
19758         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
19759         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
19760         * doc/posix-headers/locale.texi: Mention the problems with
19761         'struct lconv'.
19762         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19764 2012-03-24  Bruno Haible  <bruno@clisp.org>
19766         Enable common subexpression optimization in GCC.
19767         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
19768         macros.
19769         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
19770         GCC attribute 'const'.
19771         (uc_locale_language): Declare with GCC attribute 'pure'.
19772         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
19773         with GCC attribute 'const'.
19774         * lib/unictype.in.h (uc_is_general_category_withtable,
19775         uc_combining_class, uc_combining_class_name,
19776         uc_combining_class_long_name, uc_bidi_class_name,
19777         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
19778         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
19779         uc_decimal_value, uc_digit_value, uc_numeric_value,
19780         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
19781         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
19782         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
19783         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
19784         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
19785         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
19786         Declare with GCC attribute 'const'.
19787         (uc_general_category_name, uc_general_category_long_name,
19788         uc_general_category_byname, uc_general_category,
19789         uc_is_general_category, uc_combining_class_byname,
19790         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
19791         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
19792         Declare with GCC attribute 'pure'.
19793         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
19794         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
19795         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
19796         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
19797         with GCC attribute 'pure'.
19798         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
19799         'const'.
19800         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
19801         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
19802         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
19803         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
19804         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
19805         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
19806         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
19807         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
19808         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
19809         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
19810         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
19811         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
19812         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
19813         GCC attribute 'pure'.
19814         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
19815         'const'.
19816         * lib/uniwidth.in.h (uc_width): Simplify declaration.
19817         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
19818         u32_strwidth): Declare with GCC attribute 'pure'.
19820         Enable common subexpression optimization in GCC.
19821         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
19822         (alphasort): Declare with GCC attribute 'pure'.
19823         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
19824         (atoll): Declare with GCC attribute 'pure'.
19825         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19826         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19827         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
19828         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
19829         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
19830         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
19831         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
19833 2012-03-24  Bruno Haible  <bruno@clisp.org>
19835         gnulib-tool: Avoid unintended error output from 'cmp'.
19836         * gnulib-tool (func_add_file, func_update_file, func_import): Use
19837         "cmp -s", not "cmp > /dev/null".
19839 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
19841         gnulib-tool: fix imprecise comments w.r.t. an automake bug
19843         It's not just Automake versions < 1.9b that creates an empty
19844         pkgdatadir at installation time if pkgdata_DATA is specified
19845         to empty; modern automake versions do this as well, at least
19846         until automake 1.11.4 (not yet released at the moment of writing,
19847         but soon to appear).  That behaviour was generally considered a
19848         feature rather than a bug, at least until this discussion:
19849         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
19851         See also automake bugs #10997 and #11030.
19853         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
19854         reference to relevant automake bug numbers.
19855         (func_emit_tests_Makefile_am): Likewise.
19857 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
19859         announce-gen: use Digest::SHA when possible
19860         * build-aux/announce-gen: Use Digest::SHA when possible, falling
19861         back to Digest::SHA1 if necessary.
19863 2012-03-20  Jim Meyering  <meyering@redhat.com>
19865         tests: avoid gcc warnings about argv vs. const initializers
19866         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
19867         warnings about discarding 'const' qualifier from pointer target type.
19868         * tests/test-posix_spawn2.c (main): Likewise.
19870 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
19872         README-release: simplify slightly
19873         * top/README-release: Run "git checkout master" only once.
19875 2012-03-15  Mark Wielaard  <mark@klomp.org>
19877         git-merge-changelog: add specific example on how to use with hg.
19878         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
19880 2012-03-18  Mark Wielaard  <mark@klomp.org>
19882         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
19884 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
19886         git-version-gen: don't let "prefix" envvar cause trouble
19887         * build-aux/git-version-gen (prefix): Initialize properly,
19888         so as not to use a value specified via the environment.
19889         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
19891 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19893         regex: diagnose too-large repeat counts in EREs
19894         Previously, the code did not diagnose the too-large repeat count
19895         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
19896         as if it were 'b\{1000000000}', which is unexpected.
19897         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
19898         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
19899         is a reasonable one for this problem.  Another option would be to
19900         create a new REG_OVERFLOW error for repeat counts that are too large.
19901         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
19902         count is too large, so that the caller can distinguish the two cases.
19903         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
19904         "Too large" return code, and that repeat counts are one example of this.
19906 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19908         doc: some glibc x32 integer width issues
19909         * doc/posix-headers/sys_types.texi (sys/types.h):
19910         * doc/posix-headers/time.texi (time.h):
19911         Mention that glibc x32 does not conform to POSIX in a couple of
19912         areas related to integer widths.
19914 2012-03-15  Bruno Haible  <bruno@clisp.org>
19916         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
19917         * lib/fma.c (VOLATILE): New macro.
19918         (FUNC): Use it to work around a GCC compiler bug.
19920 2012-03-13  Bruno Haible  <bruno@clisp.org>
19922         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19923         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
19924         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
19925         REPLACE_HYPOTL to 1.
19926         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
19928 2012-03-13  Bruno Haible  <bruno@clisp.org>
19930         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19931         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
19932         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
19933         REPLACE_REMAINDERL to 1.
19934         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
19935         bug.
19937 2012-03-13  Bruno Haible  <bruno@clisp.org>
19939         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19940         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
19941         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
19942         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
19943         too big rounding errors.
19944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
19945         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
19946         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
19947         (Depends-on): Update conditions.
19948         * tests/test-sqrtl.c (my_ldexpl): New function.
19949         (main): Add test of a particular value.
19950         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
19952 2012-03-13  Pádraig Brady  <P@draigBrady.com>
19954         doc: Update timer_* platform portability notes.
19955         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
19956         that always return ENOSYS.
19957         * doc/posix-functions/timer_delete.texi: Likewise.
19958         * doc/posix-functions/timer_gettime.texi: Likewise.
19959         * doc/posix-functions/timer_settime.texi: Likewise.
19961 2012-03-13  Bruno Haible  <bruno@clisp.org>
19963         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19964         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
19965         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
19966         REPLACE_CBRTL to 1.
19967         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
19969 2012-03-13  Bruno Haible  <bruno@clisp.org>
19971         remainderl: Avoid compilation error on AIX >= 5.2.
19972         * lib/math.in.h (remainderl): Undefine macro from the system header.
19974 2012-03-13  Bruno Haible  <bruno@clisp.org>
19976         Avoid compilation errors with MSVC option -fp:strict.
19977         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
19978         * lib/cbrtf.c: Likewise.
19979         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
19981 2012-03-12  Bruno Haible  <bruno@clisp.org>
19983         uninorm: Don't crash in out-of-memory conditions.
19984         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
19985         gracefully.
19986         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
19987         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
19989 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
19991         quote: fix syntax-check
19992         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
19993         also exports quote_quoting_options.
19995 2012-03-12  Simon Josefsson  <simon@josefsson.org>
19997         Collapse list of copyright years to ranges.  See
19998         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
19999         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
20000         build-aux/csharpexec.sh.in, build-aux/gnupload,
20001         build-aux/install-reloc, build-aux/javacomp.sh.in,
20002         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
20003         build-aux/move-if-change, build-aux/reloc-ldflags,
20004         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
20006 2012-03-11  Bruno Haible  <bruno@clisp.org>
20008         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20009         * m4/log2f-ieee.m4: New file.
20010         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
20011         whether log2f works with a minus zero argument. Replace it if not.
20012         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
20013         (Depends-on): Add log2-ieee.
20014         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
20015         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
20017         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
20018         * m4/log2-ieee.m4: New file.
20019         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
20020         whether log2 works with a minus zero argument. Replace it if not.
20021         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
20022         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
20023         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
20025         Tests for module 'log2l-ieee'.
20026         * modules/log2l-ieee-tests: New file.
20027         * tests/test-log2l-ieee.c: New file.
20029         New module 'log2l-ieee'.
20030         * modules/log2l-ieee: New file.
20032         Tests for module 'log2-ieee'.
20033         * modules/log2-ieee-tests: New file.
20034         * tests/test-log2-ieee.c: New file.
20036         New module 'log2-ieee'.
20037         * modules/log2-ieee: New file.
20039         Tests for module 'log2f-ieee'.
20040         * modules/log2f-ieee-tests: New file.
20041         * tests/test-log2f-ieee.c: New file.
20042         * tests/test-log2-ieee.h: New file.
20044         New module 'log2f-ieee'.
20045         * modules/log2f-ieee: New file.
20047 2012-03-11  Bruno Haible  <bruno@clisp.org>
20049         Tests for module 'log2l'.
20050         * modules/log2l-tests: New file.
20051         * tests/test-log2l.c: New file.
20053         New module 'log2l'.
20054         * lib/math.in.h (log2l): New declaration.
20055         * lib/log2l.c: New file.
20056         * m4/log2l.m4: New file.
20057         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
20058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
20059         REPLACE_LOG2L.
20060         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
20061         REPLACE_LOG2L.
20062         * modules/log2l: New file.
20063         * tests/test-math-c++.cc: Check the declaration of log2l.
20064         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
20065         and OSF/1 problems.
20067 2012-03-11  Bruno Haible  <bruno@clisp.org>
20069         Tests for module 'log2f'.
20070         * modules/log2f-tests: New file.
20071         * tests/test-log2f.c: New file.
20073         New module 'log2f'.
20074         * lib/math.in.h (log2f): New declaration.
20075         * lib/log2f.c: New file.
20076         * m4/log2f.m4: New file.
20077         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
20078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
20079         REPLACE_LOG2F.
20080         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
20081         REPLACE_LOG2F.
20082         * modules/log2f: New file.
20083         * tests/test-math-c++.cc: Check the declaration of log2f.
20084         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
20085         and OSF/1 and Cygwin problems.
20087 2012-03-11  Bruno Haible  <bruno@clisp.org>
20089         Tests for module 'log2'.
20090         * modules/log2-tests: New file.
20091         * tests/test-log2.c: New file.
20092         * tests/test-log2.h: New file.
20094         New module 'log2'.
20095         * lib/math.in.h (log2): New declaration.
20096         * lib/log2.c: New file.
20097         * m4/log2.m4: New file.
20098         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
20099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
20100         REPLACE_LOG2.
20101         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
20102         REPLACE_LOG2.
20103         * modules/log2: New file.
20104         * tests/test-math-c++.cc: Check the declaration of log2.
20105         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
20106         and OSF/1 and Cygwin problems.
20108 2012-03-11  Bruno Haible  <bruno@clisp.org>
20110         exp2* tests: More tests.
20111         * tests/test-exp2.h (test_function): Test all integral arguments that
20112         don't need to overflow or denormalized numbers.
20113         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
20114         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
20115         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
20117 2012-03-10  Bruno Haible  <bruno@clisp.org>
20119         log1pl-ieee: Work around test failure on AIX 7.1.
20120         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
20122         log1pl-ieee: Work around test failure on IRIX 6.5.
20123         * m4/log1pl-ieee.m4: New file.
20124         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
20125         test whether log1pl works with a minus zero argument. Replace it if
20126         not.
20127         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
20128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
20129         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
20130         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
20131         (Depends-on): Update conditions.
20132         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
20133         m4/signbit.m4.
20134         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
20135         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
20137         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
20138         * m4/log1pf-ieee.m4: New file.
20139         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
20140         test whether log1pf works with a minus zero argument. Replace it if
20141         not.
20142         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
20143         m4/signbit.m4.
20144         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
20145         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
20147         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
20148         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
20149         (configure.ac): Require gl_FUNC_LOG1PF.
20151         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
20152         * m4/log1p-ieee.m4: New file.
20153         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
20154         whether log1p works with a minus zero argument. Replace it if not.
20155         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
20156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
20157         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
20158         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
20159         (Depends-on): Update conditions.
20160         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
20161         m4/signbit.m4.
20162         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
20163         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
20165         Tests for module 'log1pl-ieee'.
20166         * modules/log1pl-ieee-tests: New file.
20167         * tests/test-log1pl-ieee.c: New file.
20169         New module 'log1pl-ieee'.
20170         * modules/log1pl-ieee: New file.
20172         Tests for module 'log1p-ieee'.
20173         * modules/log1p-ieee-tests: New file.
20174         * tests/test-log1p-ieee.c: New file.
20176         New module 'log1p-ieee'.
20177         * modules/log1p-ieee: New file.
20179         Tests for module 'log1pf-ieee'.
20180         * modules/log1pf-ieee-tests: New file.
20181         * tests/test-log1pf-ieee.c: New file.
20182         * tests/test-log1p-ieee.h: New file.
20184         New module 'log1pf-ieee'.
20185         * modules/log1pf-ieee: New file.
20187 2012-03-10  Bruno Haible  <bruno@clisp.org>
20189         Tests for module 'log1pl'.
20190         * modules/log1pl-tests: New file.
20191         * tests/test-log1pl.c: New file.
20193         New module 'log1pl'.
20194         * lib/math.in.h (log1pl): New declaration.
20195         * lib/log1pl.c: New file.
20196         * m4/log1pl.m4: New file.
20197         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
20198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
20199         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
20200         * modules/log1pl: New file.
20201         * tests/test-math-c++.cc: Check the declaration of log1pl.
20202         * doc/posix-functions/log1pl.texi: Mention the new module.
20204 2012-03-10  Bruno Haible  <bruno@clisp.org>
20206         Tests for module 'log1pf'.
20207         * modules/log1pf-tests: New file.
20208         * tests/test-log1pf.c: New file.
20210         New module 'log1pf'.
20211         * lib/math.in.h (log1pf): New declaration.
20212         * lib/log1pf.c: New file.
20213         * m4/log1pf.m4: New file.
20214         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
20215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
20216         REPLACE_LOG1PF.
20217         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
20218         REPLACE_LOG1PF.
20219         * modules/log1pf: New file.
20220         * tests/test-math-c++.cc: Check the declaration of log1pf.
20221         * doc/posix-functions/log1pf.texi: Mention the new module.
20223 2012-03-10  Bruno Haible  <bruno@clisp.org>
20225         log1p tests: More tests.
20226         * tests/test-log1p.h: New file.
20227         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
20228         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
20229         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
20230         (main): Invoke test_function.
20232         log1p: Provide replacement for Minix and MSVC.
20233         * lib/math.in.h (log1p): New declaration.
20234         * lib/log1p.c: New file.
20235         * m4/log1p.m4: New file.
20236         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
20237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
20238         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
20239         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
20240         (Depends-on): Add math, isnand, log, round.
20241         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
20242         HAVE_LOG1P is 0.
20243         * tests/test-math-c++.cc: Check the declaration of log1p.
20244         * doc/posix-functions/log1p.texi: Mention the replacement.
20246 2012-03-10  Bruno Haible  <bruno@clisp.org>
20248         math tests: Small simplification.
20249         * tests/test-exp.h (test_function): Use the same err_bound for
20250         'double' on platforms with sizeof (long double) == sizeof (double)
20251         than on platforms with sizeof (long double) > sizeof (double).
20252         * tests/test-exp2.h (test_function): Likewise.
20253         * tests/test-expm1.h (test_function): Likewise.
20254         * tests/test-log.h (test_function): Likewise.
20256 2012-03-10  Bruno Haible  <bruno@clisp.org>
20258         Fix some comments.
20259         * lib/expl.c: Fix an ambiguous comment.
20260         * lib/expm1.c: Likewise.
20261         * lib/expm1l.c: Likewise.
20262         * lib/exp2.c: Likewise.
20263         * lib/exp2l.c: Likewise.
20265 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
20267         regex: allow inclusion of <regex.h> before <limits.h>
20268         Without this patch, portable programs had to include <limits.h> before
20269         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
20270         I ran into this problem with a test version of GNU grep on Solaris 8.
20271         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
20272         This is done conditionally so that this change can be merged
20273         back to glibc.
20274         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
20275         using the included regex.
20277         fts: depend on fdopendir
20278         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
20279         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
20280         problem was introduced when fdopendir was split out.
20282 2012-03-10  Bruno Haible  <bruno@clisp.org>
20284         Remove unused variables.
20285         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
20286         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
20288 2012-03-10  Bruno Haible  <bruno@clisp.org>
20290         isnanf-nolibm: Fix last commit.
20291         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
20293         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
20294         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
20296 2012-03-10  Bruno Haible  <bruno@clisp.org>
20298         logf-ieee: Work around test failure on NetBSD 5.1.
20299         * m4/logf-ieee.m4: New file.
20300         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
20301         whether logf works with a negative argument. Replace it if not.
20302         * lib/logf.c (logf): For negative arguments, return NaN.
20303         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
20304         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
20305         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
20307         logf-ieee: Work around test failure on Solaris 9.
20308         * modules/logf-ieee (Depends-on): Add log-ieee.
20309         (configure.ac): Require gl_FUNC_LOGF.
20311         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20312         * m4/log-ieee.m4: New file.
20313         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
20314         log works with a negative argument. Replace it if not.
20315         * lib/log.c (log): For negative arguments, return NaN.
20316         * modules/log-ieee (Files): Add m4/log-ieee.m4.
20317         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
20318         * doc/posix-functions/log.texi: Mention the log-ieee module.
20320         Tests for module 'logl-ieee'.
20321         * modules/logl-ieee-tests: New file.
20322         * tests/test-logl-ieee.c: New file.
20324         New module 'logl-ieee'.
20325         * modules/logl-ieee: New file.
20327         Tests for module 'log-ieee'.
20328         * modules/log-ieee-tests: New file.
20329         * tests/test-log-ieee.c: New file.
20331         New module 'log-ieee'.
20332         * modules/log-ieee: New file.
20334         Tests for module 'logf-ieee'.
20335         * modules/logf-ieee-tests: New file.
20336         * tests/test-logf-ieee.c: New file.
20337         * tests/test-log-ieee.h: New file.
20339         New module 'logf-ieee'.
20340         * modules/logf-ieee: New file.
20342 2012-03-10  Bruno Haible  <bruno@clisp.org>
20344         log: Fix bug introduced on 2012-03-09.
20345         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
20347 2012-03-10  Pádraig Brady  <P@draigBrady.com>
20349         timer-time: link explicitly with pthreads on glibc
20350         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
20351         to support static linking, when newer glibc is
20352         detected, as that contains pthread emulation of
20353         POSIX timer functions where required.
20354         * modules/timer-time: Depend on threadlib to
20355         pull in the appropriate library to link.
20357 2012-03-10  Bruno Haible  <bruno@clisp.org>
20359         log* tests: More tests.
20360         * tests/test-log.h: New file.
20361         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
20362         (main): Invoke test_function.
20363         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
20364         (main): Invoke test_function.
20365         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
20366         (main): Invoke test_function.
20367         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20368         tests/randomd.c.
20369         (Makefile.am): Add randomd.c to test_log_SOURCES.
20370         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20371         tests/randomf.c.
20372         (Makefile.am): Add randomf.c to test_logf_SOURCES.
20373         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20374         tests/randoml.c.
20375         (Depends-on): Add 'float'.
20376         (Makefile.am): Add randoml.c to test_logl_SOURCES.
20378 2012-03-09  Bruno Haible  <bruno@clisp.org>
20380         logl: Work around OSF/1 5.1 bug.
20381         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
20382         * lib/logl.c (logl): If logl exists, use it and provide just the
20383         workaround.
20384         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
20385         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
20386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
20387         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
20388         * modules/logl (configure.ac): Consider REPLACE_LOGL.
20389         (Depends-on): Update conditions.
20390         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
20392 2012-03-09  Bruno Haible  <bruno@clisp.org>
20394         logf: Work around OSF/1 5.1 bug.
20395         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
20396         * lib/logf.c (logf): If logf exists, use it and provide just the
20397         workaround.
20398         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
20399         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
20400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
20401         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
20402         * modules/logf (configure.ac): Consider REPLACE_LOGF.
20403         (Depends-on): Update conditions.
20404         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
20406 2012-03-09  Bruno Haible  <bruno@clisp.org>
20408         log: Work around OSF/1 5.1 bug.
20409         * lib/math.in.h (log): New declaration.
20410         * lib/log.c: New file.
20411         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
20412         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
20413         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
20414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
20415         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
20416         * modules/log (Files): Add lib/log.c.
20417         (Depends-on): Add math.
20418         (configure.ac): If REPLACE_LOG is 1, compile an override.
20419         * tests/test-math-c++.cc: Check the declaration of log.
20420         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
20422 2012-03-09  Jim Meyering  <meyering@redhat.com>
20424         readtokens.c: adjust wording in a comment
20425         * lib/readtokens.c: Insert omitted "that" in a comment.
20427 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20429         modechange: add notations +40, 00440, etc.
20430         * lib/modechange.c (mode_compile): Support new notations
20431         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
20433 2012-03-08  Bruno Haible  <bruno@clisp.org>
20435         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
20436         * m4/exp2l-ieee.m4: New file.
20437         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
20438         test whether exp2l works with a NaN argument and with a negative
20439         infinity argument. Replace it if not.
20440         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
20441         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
20442         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
20443         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
20444         (Depends-on): Update conditions.
20445         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
20446         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
20447         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
20449         Tests for module 'exp2l-ieee'.
20450         * modules/exp2l-ieee-tests: New file.
20451         * tests/test-exp2l-ieee.c: New file.
20453         New module 'exp2l-ieee'.
20454         * modules/exp2l-ieee: New file.
20456         Tests for module 'exp2-ieee'.
20457         * modules/exp2-ieee-tests: New file.
20458         * tests/test-exp2-ieee.c: New file.
20460         New module 'exp2-ieee'.
20461         * modules/exp2-ieee: New file.
20463         Tests for module 'exp2f-ieee'.
20464         * modules/exp2f-ieee-tests: New file.
20465         * tests/test-exp2f-ieee.c: New file.
20466         * tests/test-exp2-ieee.h: New file.
20468         New module 'exp2f-ieee'.
20469         * modules/exp2f-ieee: New file.
20471 2012-03-08  Bruno Haible  <bruno@clisp.org>
20473         Tests for module 'exp2l'.
20474         * modules/exp2l-tests: New file.
20475         * tests/test-exp2l.c: New file.
20477         New module 'exp2l'.
20478         * lib/math.in.h (exp2l): New declaration.
20479         * lib/exp2l.c: New file.
20480         * lib/expl-table.c: New file, extracted from lib/expl.c.
20481         * lib/expl.c (gl_expl_table): New declaration.
20482         (expl): Remove expl_table. Update reference.
20483         * m4/exp2l.m4: New file.
20484         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
20485         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
20486         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
20487         * modules/exp2l: New file.
20488         * modules/expl (Files): Add lib/expl-table.c.
20489         (configure.ac): Compile also expl-table.c.
20490         * tests/test-math-c++.cc: Check the declaration of exp2l.
20491         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
20492         problem.
20494 2012-03-08  Bruno Haible  <bruno@clisp.org>
20496         Tests for module 'exp2f'.
20497         * modules/exp2f-tests: New file.
20498         * tests/test-exp2f.c: New file.
20500         New module 'exp2f'.
20501         * lib/math.in.h (exp2f): New declaration.
20502         * lib/exp2f.c: New file.
20503         * m4/exp2f.m4: New file.
20504         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
20505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
20506         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
20507         * modules/exp2f: New file.
20508         * tests/test-math-c++.cc: Check the declaration of exp2f.
20509         * doc/posix-functions/exp2f.texi: Mention the new module and the
20510         IRIX problem.
20512 2012-03-08  Bruno Haible  <bruno@clisp.org>
20514         Tests for module 'exp2'.
20515         * modules/exp2-tests: New file.
20516         * tests/test-exp2.c: New file.
20517         * tests/test-exp2.h: New file.
20519         New module 'exp2'.
20520         * lib/math.in.h (exp2): New declaration.
20521         * lib/exp2.c: New file.
20522         * m4/exp2.m4: New file.
20523         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
20524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
20525         REPLACE_EXP2.
20526         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
20527         REPLACE_EXP2.
20528         * modules/exp2: New file.
20529         * tests/test-math-c++.cc: Check the declaration of exp2.
20530         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
20531         and OpenBSD problems.
20533 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20535         savedir: fix comment typo
20536         * lib/savedir.c (savedirstream): Fix typo in comment.
20538 2012-03-08  Bruno Haible  <bruno@clisp.org>
20540         test-readtokens.c: use const; remove unwarranted cast
20541         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
20543 2012-03-08  Bruno Haible  <bruno@clisp.org>
20545         fmal: Avoid compilation error on AIX.
20546         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
20547         AIX 5.2..7.1.
20549 2012-03-08  Bruno Haible  <bruno@clisp.org>
20551         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
20552         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
20553         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
20554         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
20555         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
20556         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
20557         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
20559 2012-03-08  Bruno Haible  <bruno@clisp.org>
20561         remainderf: Override buggy system function on IRIX 6.5.
20562         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
20563         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
20564         when it exists.
20565         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
20567 2012-03-08  Jim Meyering  <meyering@redhat.com>
20569         test-readtokens.c: avoid const-related compilation warnings
20570         * tests/test-readtokens.c: Avoid const-related compilation warnings.
20572 2012-03-07  Jim Meyering  <meyering@redhat.com>
20573             Bruno Haible  <bruno@clisp.org>
20575         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
20576         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
20577         tests/randomd.c.
20578         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
20579         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
20580         tests/randoml.c.
20581         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
20583 2012-03-07  Bruno Haible  <bruno@clisp.org>
20585         expm1l: Avoid compilation error on AIX.
20586         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
20587         AIX 5.2..7.1.
20589 2012-03-07  Bruno Haible  <bruno@clisp.org>
20591         expm1l: Don't override undeclared system function on IRIX 6.5.
20592         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
20593         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
20594         it exists. Set HAVE_DECL_EXPM1L.
20595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
20596         HAVE_EXPM1L.
20597         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
20598         HAVE_EXPM1L.
20599         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
20601 2012-03-07  Bruno Haible  <bruno@clisp.org>
20603         remainderl: Don't override undeclared system function on IRIX 6.5.
20604         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
20605         HAVE_REMAINDERL.
20606         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
20607         declared when it exists. Set HAVE_DECL_REMAINDERL.
20608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
20609         not HAVE_REMAINDERL.
20610         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
20611         HAVE_REMAINDERL.
20612         * doc/posix-functions/remainderl.texi: Mention missing declaration
20613         problem.
20615 2012-03-07  Bruno Haible  <bruno@clisp.org>
20617         rintf: Don't override undeclared system function on IRIX 6.5.
20618         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
20619         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
20620         exists. Set HAVE_DECL_RINTF.
20621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
20622         HAVE_RINTF.
20623         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
20624         HAVE_RINTF.
20625         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
20627 2012-03-07  Bruno Haible  <bruno@clisp.org>
20629         roundl: Avoid compilation error on AIX.
20630         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
20631         AIX 5.2..7.1.
20633 2012-03-07  Bruno Haible  <bruno@clisp.org>
20635         roundl: Don't override undeclared system function on IRIX 6.5.
20636         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
20637         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
20638         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
20639         * modules/roundl (configure.ac): For replacement code, test
20640         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
20641         (Depends-on): Update conditions.
20642         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
20644 2012-03-07  Bruno Haible  <bruno@clisp.org>
20646         roundf: Don't override undeclared system function on IRIX 6.5.
20647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
20648         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
20649         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
20650         * modules/roundf (configure.ac): For replacement code, test
20651         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
20652         (Depends-on): Update conditions.
20653         * modules/roundf-ieee (Depends-on): Update conditions.
20654         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
20656 2012-03-07  Bruno Haible  <bruno@clisp.org>
20658         round: Don't override undeclared system function on IRIX 6.5.
20659         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
20660         argument.
20661         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
20662         also when it is not declared. Set HAVE_ROUND. For replacement code,
20663         test HAVE_ROUND, not HAVE_DECL_ROUND.
20664         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
20665         not HAVE_DECL_ROUND.
20666         (Depends-on): Update conditions.
20667         * modules/round-ieee (Depends-on): Update conditions.
20668         * doc/posix-functions/round.texi: Mention the IRIX problem.
20670 2012-03-07  Bruno Haible  <bruno@clisp.org>
20672         copysignf: Don't override undeclared system function on IRIX 6.5.
20673         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
20674         HAVE_COPYSIGNF.
20675         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
20676         declared when it exists. Set HAVE_DECL_COPYSIGNF.
20677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
20678         not HAVE_COPYSIGNF.
20679         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
20680         HAVE_COPYSIGNF.
20681         * doc/posix-functions/copysignf.texi: Mention missing declaration
20682         problem.
20684 2012-03-07  Jim Meyering  <meyering@redhat.com>
20686         readtokens: add tests
20687         * modules/readtokens-tests: New file.
20688         * tests/test-readtokens.c: New file.
20690 2012-03-07  Jim Meyering  <meyering@redhat.com>
20692         quotearg: the module must now include quote.h
20693         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
20694         So must the module.
20695         * modules/quotearg (Files): Add quote.h.
20697 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
20699         readtokens: avoid core dumps with unusual calling patterns
20700         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
20701         * lib/readtokens.c: Include limits.h.
20702         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
20703         (readtoken): Don't cache the delimiters; the cache code was buggy
20704         if !delim && saved_delim, or if the new n_delim differs from the old.
20705         Also, it wasn't thread-safe.
20707 2012-03-07  Bruno Haible  <bruno@clisp.org>
20709         quote: Adhere to common module description layout.
20710         * modules/quote (Makefile.am): Add back empty section.
20712 2012-03-06  Akim Demaille  <demaille@gostai.com>
20714         quote: fuse into quotearg
20715         This patch is made for the benefit of Bison.
20716         quote does not leave the choice of the quoting style to the user.
20717         quoting_style provides poor customizability, yet quoting_options,
20718         which is very rich, is hidden inside quotearg.c.  So in order to
20719         allow quote customization, move its implementation to quotearg.c.
20720         * lib/quote.c: Remove.
20721         * modules/quote: Adjust.
20722         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
20723         warning: provide all the members of literal structs.
20724         (quote_quoting_options): New.
20725         (quote, quote_n): Import implementation from quote.c.
20726         * lib/quote.h: Import the comments from quote.c.
20727         (quote_quoting_options): New.
20729 2012-03-06  Bruno Haible  <bruno@clisp.org>
20731         Tests for module 'expm1l-ieee'.
20732         * modules/expm1l-ieee-tests: New file.
20733         * tests/test-expm1l-ieee.c: New file.
20735         New module 'expm1l-ieee'.
20736         * modules/expm1l-ieee: New file.
20738         Tests for module 'expm1f-ieee'.
20739         * modules/expm1f-ieee-tests: New file.
20740         * tests/test-expm1f-ieee.c: New file.
20742         New module 'expm1f-ieee'.
20743         * modules/expm1f-ieee: New file.
20745         Tests for module 'expm1-ieee'.
20746         * modules/expm1-ieee-tests: New file.
20747         * tests/test-expm1-ieee.c: New file.
20748         * tests/test-expm1-ieee.h: New file.
20750         New module 'expm1-ieee'.
20751         * modules/expm1-ieee: New file.
20752         * m4/expm1-ieee.m4: New file.
20753         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
20754         whether expm1 works with a minus zero argument. Replace it if not.
20755         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
20756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
20757         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
20758         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
20759         (Depends-on): Update conditions.
20760         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
20761         AIX problem.
20763 2012-03-06  Bruno Haible  <bruno@clisp.org>
20765         Work around expm1f bug on IRIX 6.5.
20766         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
20767         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
20768         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
20769         not work.
20770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
20771         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
20772         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
20773         (Depends-on): Update conditions.
20774         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
20776 2012-03-06  Bruno Haible  <bruno@clisp.org>
20778         Tests for module 'expm1l'.
20779         * modules/expm1l-tests: New file.
20780         * tests/test-expm1l.c: New file.
20782         New module 'expm1l'.
20783         * lib/math.in.h (expm1l): New declaration.
20784         * lib/expm1l.c: New file.
20785         * m4/expm1l.m4: New file.
20786         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
20787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
20788         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
20789         * modules/expm1l: New file.
20790         * tests/test-math-c++.cc: Check the declaration of expm1l.
20791         * doc/posix-functions/expm1l.texi: Mention the new module.
20793 2012-03-06  Bruno Haible  <bruno@clisp.org>
20795         Tests for module 'expm1f'.
20796         * modules/expm1f-tests: New file.
20797         * tests/test-expm1f.c: New file.
20799         New module 'expm1f'.
20800         * lib/math.in.h (expm1f): New declaration.
20801         * lib/expm1f.c: New file.
20802         * m4/expm1f.m4: New file.
20803         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
20804         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
20805         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
20806         * modules/expm1f: New file.
20807         * tests/test-math-c++.cc: Check the declaration of expm1f.
20808         * doc/posix-functions/expm1f.texi: Mention the new module.
20810 2012-03-06  Bruno Haible  <bruno@clisp.org>
20812         Tests for module 'expm1'.
20813         * modules/expm1-tests: New file.
20814         * tests/test-expm1.c: New file.
20815         * tests/test-expm1.h: New file.
20817         New module 'expm1'.
20818         * lib/math.in.h (expm1): New declaration.
20819         * lib/expm1.c: New file.
20820         * m4/expm1.m4: New file.
20821         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
20822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
20823         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
20824         * modules/expm1: New file.
20825         * tests/test-math-c++.cc: Check the declaration of expm1.
20826         * doc/posix-functions/expm1.texi: Mention the new module.
20828 2012-03-06  Bruno Haible  <bruno@clisp.org>
20830         math: Ensure declarations of math functions.
20831         * modules/acosf (Depends-on): Add 'extensions'.
20832         * modules/asinf (Depends-on): Likewise.
20833         * modules/atan2f (Depends-on): Likewise.
20834         * modules/atanf (Depends-on): Likewise.
20835         * modules/cbrt (Depends-on): Likewise.
20836         * modules/cbrtf (Depends-on): Likewise.
20837         * modules/cbrtl (Depends-on): Likewise.
20838         * modules/copysignf (Depends-on): Likewise.
20839         * modules/copysignl (Depends-on): Likewise.
20840         * modules/cosf (Depends-on): Likewise.
20841         * modules/coshf (Depends-on): Likewise.
20842         * modules/expf (Depends-on): Likewise.
20843         * modules/fabsf (Depends-on): Likewise.
20844         * modules/fabsl (Depends-on): Likewise.
20845         * modules/fmaf (Depends-on): Likewise.
20846         * modules/fmal (Depends-on): Likewise.
20847         * modules/fmodf (Depends-on): Likewise.
20848         * modules/fmodl (Depends-on): Likewise.
20849         * modules/frexpf (Depends-on): Likewise.
20850         * modules/frexpl (Depends-on): Likewise.
20851         * modules/hypot (Depends-on): Likewise.
20852         * modules/hypotf (Depends-on): Likewise.
20853         * modules/hypotl (Depends-on): Likewise.
20854         * modules/ldexpf (Depends-on): Likewise.
20855         * modules/ldexpl (Depends-on): Likewise.
20856         * modules/log10f (Depends-on): Likewise.
20857         * modules/log10l (Depends-on): Likewise.
20858         * modules/log1p (Depends-on): Likewise.
20859         * modules/logb (Depends-on): Likewise.
20860         * modules/logf (Depends-on): Likewise.
20861         * modules/modff (Depends-on): Likewise.
20862         * modules/modfl (Depends-on): Likewise.
20863         * modules/powf (Depends-on): Likewise.
20864         * modules/remainderf (Depends-on): Likewise.
20865         * modules/remainderl (Depends-on): Likewise.
20866         * modules/rintf (Depends-on): Likewise.
20867         * modules/rintl (Depends-on): Likewise.
20868         * modules/sinf (Depends-on): Likewise.
20869         * modules/sinhf (Depends-on): Likewise.
20870         * modules/sqrtf (Depends-on): Likewise.
20871         * modules/tanf (Depends-on): Likewise.
20872         * modules/tanhf (Depends-on): Likewise.
20873         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
20874         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
20875         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
20876         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
20877         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
20878         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
20879         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
20880         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
20881         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
20882         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
20883         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
20884         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
20885         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
20886         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
20887         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
20888         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
20889         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
20890         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
20891         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
20892         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
20893         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
20894         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
20895         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
20896         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
20897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
20898         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
20899         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
20900         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20901         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
20902         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
20903         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
20904         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
20905         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
20906         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
20907         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
20908         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
20909         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
20910         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
20911         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
20912         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
20913         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
20915 2012-03-06  Bruno Haible  <bruno@clisp.org>
20917         math: Update module names in warnings.
20918         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20919         tanl): Use specific module name in warn-on-use warning.
20921 2012-03-06  Bruno Haible  <bruno@clisp.org>
20923         expl: Simplify computation.
20924         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
20926 2012-03-05  Bruno Haible  <bruno@clisp.org>
20928         exp* tests: More tests.
20929         * tests/test-exp.h: New file.
20930         * tests/test-exp.c: Include <float.h> and test-exp.h.
20931         (main): Invoke test_function.
20932         * tests/test-expf.c: Include <float.h> and test-exp.h.
20933         (main): Invoke test_function.
20934         * tests/test-expl.c: Include <float.h> and test-exp.h.
20935         (main): Invoke test_function.
20936         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
20937         (Makefile.am): Add randomd.c to test_exp_SOURCES.
20938         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
20939         (Makefile.am): Add randomf.c to test_expf_SOURCES.
20940         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
20941         (Depends-on): Add 'float'.
20942         (Makefile.am): Add randoml.c to test_expl_SOURCES.
20944         expl: Fix precision of computed result.
20945         * lib/expl.c: Completely rewritten.
20946         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
20947         (Maintainer): Add me.
20948         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
20950 2012-03-05  Bruno Haible  <bruno@clisp.org>
20952         cbrt* tests: More tests.
20953         * tests/test-cbrt.h: New file.
20954         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
20955         (main): Invoke test_function.
20956         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
20957         (main): Invoke test_function.
20958         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
20959         (main): Invoke test_function.
20960         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
20961         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
20962         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
20963         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
20964         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
20965         (Depends-on): Add 'float'.
20966         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
20968 2012-03-05  Bruno Haible  <bruno@clisp.org>
20970         hypot* tests: More tests.
20971         * tests/test-hypot.h: New file, partially extracted from
20972         tests/test-hypotl.c.
20973         * tests/test-hypot.c: Include test-hypot.h.
20974         (main): Invoke test_function.
20975         * tests/test-hypotf.c: Include test-hypot.h.
20976         (main): Invoke test_function.
20977         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
20978         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
20979         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
20980         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
20981         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
20982         tests/randomf.c.
20983         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
20984         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
20985         tests/randoml.c.
20986         (Depends-on): Add 'fpucw', 'float'.
20987         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
20989 2012-03-05  Bruno Haible  <bruno@clisp.org>
20991         fpucw: Doc about FreeBSD.
20992         * lib/fpucw.h: Mention FreeBSD in comments.
20994 2012-03-04  Bruno Haible  <bruno@clisp.org>
20996         sqrt* tests: More tests.
20997         * tests/test-sqrt.h: New file.
20998         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
20999         (main): Invoke test_function.
21000         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
21001         (main): Invoke test_function.
21002         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
21003         (main): Invoke test_function.
21004         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
21005         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
21006         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
21007         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
21008         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
21009         (Depends-on): Add 'float'.
21010         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
21012 2012-03-04  Bruno Haible  <bruno@clisp.org>
21014         remainder* tests: More tests.
21015         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
21016         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
21017         (main): Invoke test_function.
21018         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
21019         (main): Invoke test_function.
21020         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
21021         (main): Invoke test_function.
21022         * modules/remainder-tests (Files): Add tests/test-remainder.h,
21023         tests/randomd.c.
21024         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
21025         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
21026         tests/randomf.c.
21027         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
21028         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
21029         tests/randoml.c.
21030         (Depends-on): Add 'float'.
21031         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
21033 2012-03-04  Bruno Haible  <bruno@clisp.org>
21035         remainder, remainderf, remainderl: Fix computation for large quotients.
21036         * lib/remainder.c: Completely rewritten.
21037         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
21038         USE_FLOAT.
21039         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
21040         USE_LONG_DOUBLE.
21041         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
21042         isnand, isinf. Remove round, fma.
21043         * modules/remainderf (Files): Add lib/remainder.c.
21044         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
21045         Remove roundf, fmaf.
21046         * modules/remainderl (Files): Add lib/remainder.c.
21047         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
21048         isinf. Remove roundl, fmal.
21049         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
21050         REMAINDER_LIBM.
21051         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
21052         REMAINDERF_LIBM.
21053         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
21054         REMAINDERL_LIBM.
21056 2012-03-04  Bruno Haible  <bruno@clisp.org>
21058         fmod* tests: More tests.
21059         * tests/test-fmod.h (my_ldexp): New function.
21060         (test_function): Reduce amount of random numbers to test. Add tests
21061         of very large quotients x / y.
21062         * tests/test-fmod.c (MAX_EXP): New macro.
21063         * tests/test-fmodf.c (MAX_EXP): Likewise.
21064         * tests/test-fmodl.c (MAX_EXP): Likewise.
21066 2012-03-04  Bruno Haible  <bruno@clisp.org>
21068         fmod, fmodl: Fix computation for large quotients x / y.
21069         * lib/fmod.c: Completely rewritten.
21070         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
21071         USE_LONG_DOUBLE.
21072         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
21073         isnand. Remove fma.
21074         * modules/fmodl (Files): Add lib/fmod.c.
21075         (Depends-on): Add float, isfinite, signbit, fabsl,
21076         frexpl, ldexpl, isnanl. Remove fma.
21077         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
21078         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
21080 2012-03-03  Bruno Haible  <bruno@clisp.org>
21082         fmod* tests: More tests.
21083         * tests/test-fmod.h: New file.
21084         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
21085         (main): Invoke test_function.
21086         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
21087         (main): Invoke test_function.
21088         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
21089         (main): Invoke test_function.
21090         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
21091         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
21092         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
21093         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
21094         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
21095         (Depends-on): Add 'float'.
21096         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
21098 2012-03-03  Bruno Haible  <bruno@clisp.org>
21100         rint* tests: More tests.
21101         * tests/test-rint.h: New file, partially extracted from
21102         tests/test-rintl.c.
21103         * tests/test-rint.c: Include test-rint.h.
21104         (main): Invoke test_function.
21105         * tests/test-rintf.c: Include test-rint.h.
21106         (main): Invoke test_function.
21107         * tests/test-rintl.c: Include test-rint.h.
21108         (main): Invoke test_function.
21109         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
21110         (Makefile.am): Add randomd.c to test_rint_SOURCES.
21111         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
21112         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
21113         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
21114         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
21116 2012-03-03  Bruno Haible  <bruno@clisp.org>
21118         modf* tests: More tests.
21119         * tests/test-modf.h: New file.
21120         * tests/test-modf.c: Include <float.h> and test-modf.h.
21121         (main): Invoke test_function.
21122         * tests/test-modff.c: Include <float.h> and test-modf.h.
21123         (main): Invoke test_function.
21124         * tests/test-modfl.c: Include <float.h> and test-modf.h.
21125         (main): Invoke test_function.
21126         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
21127         (Makefile.am): Add randomd.c to test_modf_SOURCES.
21128         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
21129         (Makefile.am): Add randomf.c to test_modff_SOURCES.
21130         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
21131         (Depends-on): Add 'float'.
21132         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
21134 2012-03-03  Bruno Haible  <bruno@clisp.org>
21136         fabs* tests: More tests.
21137         * tests/test-fabs.h: New file, partially extracted from
21138         tests/test-fabsl.c.
21139         * tests/test-fabs.c (RANDOM): New macro.
21140         * tests/test-fabsf.c (RANDOM): New macro.
21141         * tests/test-fabsl.c (RANDOM): New macro.
21142         * modules/fabs-tests (Files): Add tests/randomd.c.
21143         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
21144         * modules/fabsf-tests (Files): Add tests/randomf.c.
21145         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
21146         * modules/fabsl-tests (Files): Add tests/randoml.c.
21147         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
21149 2012-03-03  Bruno Haible  <bruno@clisp.org>
21151         ldexp* tests: More tests.
21152         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
21153         * tests/test-ldexp.c (RANDOM): New macro.
21154         * tests/test-ldexpf.c (RANDOM): New macro.
21155         * tests/test-ldexpl.c (RANDOM): New macro.
21156         * modules/ldexp-tests (Files): Add tests/randomd.c.
21157         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
21158         * modules/ldexpf-tests (Files): Add tests/randomf.c.
21159         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
21160         * modules/ldexpl-tests (Files): Add tests/randoml.c.
21161         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
21163 2012-03-03  Bruno Haible  <bruno@clisp.org>
21165         frexp* tests: More tests.
21166         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
21167         * tests/test-frexp.c (RANDOM): New macro.
21168         * tests/test-frexpf.c (RANDOM): New macro.
21169         * tests/test-frexpl.c (RANDOM): New macro.
21170         * modules/frexp-tests (Files): Add tests/randomd.c.
21171         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
21172         * modules/frexpf-tests (Files): Add tests/randomf.c.
21173         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
21174         * modules/frexpl-tests (Files): Add tests/randoml.c.
21175         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
21177 2012-03-03  Bruno Haible  <bruno@clisp.org>
21179         Support for pseudo-random numbers in tests.
21180         * tests/randomf.c: New file.
21181         * tests/randomd.c: New file.
21182         * tests/randoml.c: New file.
21183         * tests/macros.h (randomf, randomd, randoml): New declarations.
21185 2012-03-03  Bruno Haible  <bruno@clisp.org>
21187         frexp* tests: Refactor.
21188         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
21189         * tests/test-frexp.c: Include and use it.
21190         * tests/test-frexpf.c: Likewise.
21191         * tests/test-frexpl.c: Likewise.
21192         * modules/frexp-tests (Files): Add tests/test-frexp.h.
21193         * modules/frexpf-tests (Files): Likewise.
21194         * modules/frexpl-tests (Files): Likewise.
21196 2012-03-02  Jim Meyering  <meyering@redhat.com>
21198         maint: don't specify XZ_OPT=-9ev in dist-related rule
21199         Using xz's -9 option is warranted only if you have a very large
21200         tarball (see xz's documentation for the sizes vs. presets), and
21201         requires 64MiB of memory at decompression time.
21202         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
21203         Automake's default of just "-e" is fine.  Override on a
21204         per-package basis by setting XZ_OPT e.g., in cfg.mk.
21206 2012-03-01  Eric Blake  <eblake@redhat.com>
21208         maint.mk: allow announcement for non-gnulib project
21209         * maint.mk (announcement): Skip gnulib version if not used.
21211 2012-03-01  Jim Meyering  <meyering@redhat.com>
21213         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
21214         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
21215         envvar settings cannot interfere.  Otherwise, setting envvars like
21216         prohibit=foo require=bar, etc. would cause spurious test failures.
21218 2012-03-01  Eric Blake  <eblake@redhat.com>
21220         maint.mk: add per-line exclusions to prohibitions
21221         * maint.mk (_sc_search_regexp): Add $exclude parameter.
21222         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21223         (sc_const_long_option): Use it.
21225 2012-03-01  Bruno Haible  <bruno@clisp.org>
21227         Tests for module 'expl-ieee'.
21228         * modules/expl-ieee-tests: New file.
21229         * tests/test-expl-ieee.c: New file.
21231         New module 'expl-ieee'.
21232         * modules/expl-ieee: New file.
21234         Tests for module 'exp-ieee'.
21235         * modules/exp-ieee-tests: New file.
21236         * tests/test-exp-ieee.c: New file.
21238         New module 'exp-ieee'.
21239         * modules/exp-ieee: New file.
21241         Tests for module 'expf-ieee'.
21242         * modules/expf-ieee-tests: New file.
21243         * tests/test-expf-ieee.c: New file.
21244         * tests/test-exp-ieee.h: New file.
21246         New module 'expf-ieee'.
21247         * modules/expf-ieee: New file.
21249 2012-02-29  Bruno Haible  <bruno@clisp.org>
21251         cbrtl-ieee: Work around test failure on IRIX 6.5.
21252         * m4/cbrtl-ieee.m4: New file.
21253         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
21254         test whether cbrtl works with a minus zero argument. Replace it if not.
21255         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
21256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
21257         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
21258         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
21259         (Depends-on): Update conditions.
21260         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
21261         m4/signbit.m4.
21262         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
21263         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
21264         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
21266         Tests for module 'cbrtl-ieee'.
21267         * modules/cbrtl-ieee-tests: New file.
21268         * tests/test-cbrtl-ieee.c: New file.
21270         New module 'cbrtl-ieee'.
21271         * modules/cbrtl-ieee: New file.
21273         Tests for module 'cbrt-ieee'.
21274         * modules/cbrt-ieee-tests: New file.
21275         * tests/test-cbrt-ieee.c: New file.
21277         New module 'cbrt-ieee'.
21278         * modules/cbrt-ieee: New file.
21280         Tests for module 'cbrtf-ieee'.
21281         * modules/cbrtf-ieee-tests: New file.
21282         * tests/test-cbrtf-ieee.c: New file.
21283         * tests/test-cbrt-ieee.h: New file.
21285         New module 'cbrtf-ieee'.
21286         * modules/cbrtf-ieee: New file.
21288 2012-02-29  Bruno Haible  <bruno@clisp.org>
21290         cbrtf: Work around bug in IRIX 6.5 system function.
21291         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
21292         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
21293         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
21294         work.
21295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
21296         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
21297         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
21298         (Depends-on): Update conditions.
21299         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
21301 2012-02-29  Bruno Haible  <bruno@clisp.org>
21303         Tests for module 'cbrtl'.
21304         * modules/cbrtl-tests: New file.
21305         * tests/test-cbrtl.c: New file.
21307         New module 'cbrtl'.
21308         * lib/math.in.h (cbrtl): New declaration.
21309         * lib/cbrtl.c: New file.
21310         * m4/cbrtl.m4: New file.
21311         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
21312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
21313         HAVE_DECL_CBRTL.
21314         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
21315         HAVE_DECL_CBRTL.
21316         * modules/cbrtl: New file.
21317         * tests/test-math-c++.cc: Check the declaration of cbrtl.
21318         * doc/posix-functions/cbrtl.texi: Mention the new module.
21320 2012-02-29  Bruno Haible  <bruno@clisp.org>
21322         Tests for module 'cbrtf'.
21323         * modules/cbrtf-tests: New file.
21324         * tests/test-cbrtf.c: New file.
21326         New module 'cbrtf'.
21327         * lib/math.in.h (cbrtf): New declaration.
21328         * lib/cbrtf.c: New file.
21329         * m4/cbrtf.m4: New file.
21330         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
21331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
21332         HAVE_DECL_CBRTF.
21333         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
21334         HAVE_DECL_CBRTF.
21335         * modules/cbrtf: New file.
21336         * tests/test-math-c++.cc: Check the declaration of cbrtf.
21337         * doc/posix-functions/cbrtf.texi: Mention the new module.
21339 2012-02-29  Bruno Haible  <bruno@clisp.org>
21341         cbrt: Provide replacement on MSVC and Minix.
21342         * lib/math.in.h (cbrt): New declaration.
21343         * lib/cbrt.c: New file.
21344         * m4/cbrt.m4: New file.
21345         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
21346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
21347         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
21348         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
21349         (Depends-on): Add dependencies.
21350         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
21351         * tests/test-math-c++.cc: Check the declaration of cbrt.
21352         * doc/posix-functions/cbrt.texi: Mention that the module provides a
21353         replacement.
21355 2012-02-29  Bruno Haible  <bruno@clisp.org>
21357         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
21358         * m4/hypotl-ieee.m4: New file.
21359         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
21360         test whether hypotl works with mixed NaN and Infinity arguments.
21361         Replace it if not.
21362         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
21363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
21364         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
21365         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
21366         (Depends-on): Update conditions.
21367         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
21368         (Depends-on): Add hypot-ieee.
21369         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
21370         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
21372         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
21373         * m4/hypotf-ieee.m4: New file.
21374         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
21375         test whether hypotf works with mixed NaN and Infinity arguments.
21376         Replace it if not.
21377         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
21378         (Depends-on): Add hypot-ieee.
21379         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
21380         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
21382         hypot-ieee: Work around test failure on OSF/1 and native Windows.
21383         * lib/math.in.h (hypot): New declaration.
21384         * lib/hypot.c: New file.
21385         * m4/hypot-ieee.m4: New file.
21386         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
21387         whether hypot works with mixed NaN and Infinity arguments. Replace it
21388         if not.
21389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
21390         REPLACE_HYPOT.
21391         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
21392         * modules/hypot (Files): Add lib/hypot.c.
21393         (Depends-on): Add dependencies.
21394         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
21395         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
21396         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
21397         * tests/test-math-c++.cc: Check the declaration of hypot.
21398         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
21400         Tests for module 'hypotl-ieee'.
21401         * modules/hypotl-ieee-tests: New file.
21402         * tests/test-hypotl-ieee.c: New file.
21404         New module 'hypotl-ieee'.
21405         * modules/hypotl-ieee: New file.
21407         Tests for module 'hypot-ieee'.
21408         * modules/hypot-ieee-tests: New file.
21409         * tests/test-hypot-ieee.c: New file.
21411         New module 'hypot-ieee'.
21412         * modules/hypot-ieee: New file.
21414         Tests for module 'hypotf-ieee'.
21415         * modules/hypotf-ieee-tests: New file.
21416         * tests/test-hypotf-ieee.c: New file.
21417         * tests/test-hypot-ieee.h: New file.
21419         New module 'hypotf-ieee'.
21420         * modules/hypotf-ieee: New file.
21422 2012-02-29  Bruno Haible  <bruno@clisp.org>
21424         Remove unused variables.
21425         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
21426         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21427         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21428         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21430 2012-02-29  Eric Blake  <eblake@redhat.com>
21432         termios: fix pid_t always, not just for tcgetsid
21433         * doc/posix-headers/termios.texi (termios.h): Mention problem.
21434         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
21435         just when building tcgetsid.
21437 2012-02-29  Bruno Haible  <bruno@clisp.org>
21439         Tests for module 'hypotl'.
21440         * modules/hypotl-tests: New file.
21441         * tests/test-hypotl.c: New file.
21443         New module 'hypotl'.
21444         * lib/math.in.h (hypotl): New declaration.
21445         * lib/hypotl.c: New file.
21446         * m4/hypotl.m4: New file.
21447         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
21449         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
21450         * modules/hypotl: New file.
21451         * tests/test-math-c++.cc: Check the hypotl declaration.
21452         * doc/posix-functions/hypotl.texi: Mention the new module.
21454 2012-02-29  Eric Blake  <eblake@redhat.com>
21456         tcgetsid: fix cygwin header bug
21457         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
21459         docs: update cygwin progress
21460         * doc/posix-functions/llround.texi (llround): Added in cygwin
21461         1.7.8.
21462         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
21463         * doc/glibc-functions/program_invocation_name.texi
21464         (program_invocation_name): Likewise.
21465         * doc/glibc-functions/program_invocation_short_name.texi
21466         (program_invocation_short_name): Likewise.
21467         * doc/glibc-functions/madvise.texi (madvise): Likewise.
21468         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
21469         Likewise.
21470         * doc/posix-functions/pthread_spin_destroy.texi
21471         (pthread_spin_destroy): Added in cygwin 1.7.10.
21472         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
21473         Likewise.
21474         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
21475         Likewise.
21476         * doc/posix-functions/pthread_spin_trylock.texi
21477         (pthread_spin_trylock): Likewise.
21478         * doc/posix-functions/pthread_spin_unlock.texi
21479         (pthread_spin_unlock): Likewise.
21480         * doc/posix-functions/pthread_setschedprio.texi
21481         (pthread_setschedprio): Likewise.
21482         * doc/posix-functions/pthread_attr_getstack.texi
21483         (pthread_attr_getstack): Likewise.
21484         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
21485         (pthread_attr_getstackaddr): Likewise.
21486         * doc/glibc-functions/pthread_getattr_np.texi
21487         (pthread_getattr_np): Likewise.
21488         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
21489         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
21490         * doc/posix-functions/clock_settime.texi (clock_settime):
21491         Likewise.
21492         * doc/posix-functions/pthread_attr_getguardsize.texi
21493         (pthread_attr_getguardsize): Likewise.
21494         * doc/posix-functions/pthread_attr_setguardsize.texi
21495         (pthread_attr_setguardsize): Likewise.
21496         * doc/posix-functions/pthread_attr_setstack.texi
21497         (pthread_attr_setstack): Likewise.
21498         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
21499         (pthread_attr_setstackaddr): Likewise.
21500         * doc/posix-functions/clock_getcpuclockid.texi
21501         (clock_getcpuclockid): Likewise.
21502         * doc/posix-functions/pthread_getcpuclockid.texi
21503         (pthread_getcpuclockid): Likewise.
21504         * doc/glibc-functions/error.texi (error): Likewise.
21505         * doc/glibc-functions/error_at_line.texi (error_at_line):
21506         Likewise.
21507         * doc/glibc-functions/error_message_count.texi
21508         (error_message_count): Likewise.
21509         * doc/glibc-functions/error_one_per_line.texi
21510         (error_one_per_line): Likewise.
21511         * doc/glibc-functions/error_print_progname.texi
21512         (error_print_progname): Likewise.
21513         * doc/posix-functions/pthread_condattr_getclock.texi
21514         (pthread_condattr_getclock): Likewise.
21515         * doc/posix-functions/pthread_condattr_setclock.texi
21516         (pthread_condattr_setclock): Likewise.
21517         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
21518         Likewise.
21519         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
21520         * doc/glibc-functions/getpt.texi (getpt): Likewise.
21521         * doc/glibc-functions/get_current_dir_name.texi
21522         (get_current_dir_name): Likewise.
21523         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
21524         Likewise.
21525         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
21526         wrong return type.
21527         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
21528         1.7.11.
21530 2012-02-29  Bruno Haible  <bruno@clisp.org>
21532         Tests for module 'hypotf'.
21533         * modules/hypotf-tests: New file.
21534         * tests/test-hypotf.c: New file.
21536         New module 'hypotf'.
21537         * lib/math.in.h (hypotf): New declaration.
21538         * lib/hypotf.c: New file.
21539         * m4/hypotf.m4: New file.
21540         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
21542         REPLACE_HYPOTF.
21543         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
21544         REPLACE_HYPOTF.
21545         * modules/hypotf: New file.
21546         * tests/test-math-c++.cc: Check the hypotf declaration.
21547         * doc/posix-functions/hypotf.texi: Mention the new module.
21549         hypot: Prepare for hypotf module.
21550         * m4/hypot.m4: New file.
21551         * modules/hypot (Files): Add m4/hypot.m4.
21552         (configure.ac): Invoke gl_FUNC_HYPOT.
21554 2012-02-29  Bruno Haible  <bruno@clisp.org>
21556         hypot tests: More tests.
21557         * tests/test-hypot.c: Include <float.h>.
21558         (main): Add tests about overflow and underflow.
21560 2012-02-29  Bruno Haible  <bruno@clisp.org>
21562         math code: Add comments.
21563         * lib/acosl.c: Add comment about related glibc source files.
21564         * lib/asinl.c: Likewise.
21565         * lib/atanl.c: Likewise.
21566         * lib/expl.c: Likewise.
21567         * lib/logl.c: Likewise.
21568         * lib/sincosl.c: Likewise.
21569         * lib/sinl.c: Likewise.
21570         * lib/tanl.c: Likewise.
21571         * lib/trigl.c: Likewise.
21572         * lib/cosl.c: Likewise. Fix comments.
21574 2012-02-28  Bruno Haible  <bruno@clisp.org>
21576         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
21577         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
21578         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
21579         HUGE_VALL are defined.
21580         (numeric_equald): Renamed from numeric_equal.
21581         (numeric_equalf, numeric_equall): New functions.
21582         (main): Check also HUGE_VALF, HUGE_VALL.
21583         * modules/math-tests (Files): Add tests/macros.h.
21584         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
21585         HUGE_VALL.
21587 2012-02-28  Bruno Haible  <bruno@clisp.org>
21589         doc: Move ISO C11 feature notes into POSIX chapters.
21590         * doc/posix-functions/aligned_alloc.texi: Renamed from
21591         doc/glibc-functions/aligned_alloc.texi.
21592         * doc/posix-functions/quick_exit.texi: Renamed from
21593         doc/glibc-functions/quick_exit.texi.
21594         * doc/posix-headers/uchar.texi: Renamed from
21595         doc/glibc-headers/uchar.texi.
21596         * doc/posix-functions/c16rtomb.texi: Renamed from
21597         doc/glibc-functions/c16rtomb.texi.
21598         * doc/posix-functions/c32rtomb.texi: Renamed from
21599         doc/glibc-functions/c32rtomb.texi.
21600         * doc/posix-functions/mbrtoc16.texi: Renamed from
21601         doc/glibc-functions/mbrtoc16.texi.
21602         * doc/posix-functions/mbrtoc32.texi: Renamed from
21603         doc/glibc-functions/mbrtoc32.texi.
21604         * doc/gnulib.texi: Update.
21605         (Glibc uchar.h): Remove section.
21606         Suggested by Eric Blake.
21608 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
21610         stdnoreturn: port to MSVC better
21611         MSVC standard headers use __declspec(noreturn), so #define noreturn
21612         to empty on that platform.  Reported by Bruno Haible in
21613         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
21614         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
21615         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
21617 2012-02-28  Bruno Haible  <bruno@clisp.org>
21619         doc: Mention new glibc headers and functions.
21620         * doc/glibc-headers/uchar.texi: New file.
21621         * doc/glibc-functions/aligned_alloc.texi: New file.
21622         * doc/glibc-functions/c16rtomb.texi: New file.
21623         * doc/glibc-functions/c32rtomb.texi: New file.
21624         * doc/glibc-functions/clock_adjtime.texi: New file.
21625         * doc/glibc-functions/fanotify_init.texi: New file.
21626         * doc/glibc-functions/fanotify_mark.texi: New file.
21627         * doc/glibc-functions/inet6_opt_append.texi: New file.
21628         * doc/glibc-functions/inet6_opt_find.texi: New file.
21629         * doc/glibc-functions/inet6_opt_finish.texi: New file.
21630         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
21631         * doc/glibc-functions/inet6_opt_init.texi: New file.
21632         * doc/glibc-functions/inet6_opt_next.texi: New file.
21633         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
21634         * doc/glibc-functions/inet6_rth_add.texi: New file.
21635         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
21636         * doc/glibc-functions/inet6_rth_init.texi: New file.
21637         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
21638         * doc/glibc-functions/inet6_rth_segments.texi: New file.
21639         * doc/glibc-functions/inet6_rth_space.texi: New file.
21640         * doc/glibc-functions/login.texi: New file.
21641         * doc/glibc-functions/mbrtoc16.texi: New file.
21642         * doc/glibc-functions/mbrtoc32.texi: New file.
21643         * doc/glibc-functions/name_to_handle_at.texi: New file.
21644         * doc/glibc-functions/ntp_gettimex.texi: New file.
21645         * doc/glibc-functions/open_by_handle_at.texi: New file.
21646         * doc/glibc-functions/prlimit.texi: New file.
21647         * doc/glibc-functions/process_vm_readv.texi: New file.
21648         * doc/glibc-functions/process_vm_writev.texi: New file.
21649         * doc/glibc-functions/recvmmsg.texi: New file.
21650         * doc/glibc-functions/scandirat.texi: New file.
21651         * doc/glibc-functions/sendmmsg.texi: New file.
21652         * doc/glibc-functions/setns.texi: New file.
21653         * doc/glibc-functions/timespec_get.texi: New file.
21654         * doc/gnulib.texi: Include them.
21655         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
21656         sections.
21657         Reported by Eric Blake.
21659 2012-02-28  Bruno Haible  <bruno@clisp.org>
21661         Avoid compilation errors with MSVC option -fp:strict.
21662         * lib/floor.c: Use MSVC specific pragma fenv_access.
21663         * lib/ceil.c: Likewise.
21664         * lib/trunc.c: Likewise.
21665         * lib/round.c: Likewise.
21666         * lib/rint.c: Likewise.
21667         * lib/fma.c: Likewise.
21668         * lib/integer_length.c: Likewise.
21669         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21670         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21671         * tests/test-floor2.c: Likewise.
21672         * tests/test-floorf2.c: Likewise.
21673         * tests/test-ceil2.c: Likewise.
21674         * tests/test-ceilf2.c: Likewise.
21675         * tests/test-trunc2.c: Likewise.
21676         * tests/test-truncf2.c: Likewise.
21677         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21679 2012-02-27  Bruno Haible  <bruno@clisp.org>
21681         Tests for module 'sqrtl-ieee'.
21682         * modules/sqrtl-ieee-tests: New file.
21683         * tests/test-sqrtl-ieee.c: New file.
21685         New module 'sqrtl-ieee'.
21686         * modules/sqrtl-ieee: New file.
21688         Tests for module 'sqrt-ieee'.
21689         * modules/sqrt-ieee-tests: New file.
21690         * tests/test-sqrt-ieee.c: New file.
21692         New module 'sqrt-ieee'.
21693         * modules/sqrt-ieee: New file.
21695         Tests for module 'sqrtf-ieee'.
21696         * modules/sqrtf-ieee-tests: New file.
21697         * tests/test-sqrtf-ieee.c: New file.
21698         * tests/test-sqrt-ieee.h: New file.
21700         New module 'sqrtf-ieee'.
21701         * modules/sqrtf-ieee: New file.
21703 2012-02-27  Bruno Haible  <bruno@clisp.org>
21705         remainderl-ieee: Work around test failure on OSF/1.
21706         * m4/remainderl-ieee.m4: New file.
21707         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
21708         present, test whether remainderl works with a zero second argument.
21709         Replace it if not.
21710         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
21711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
21712         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
21713         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
21714         (Depends-on): Update conditions.
21715         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
21716         (Depends-on): Add remainder-ieee.
21717         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
21718         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
21719         module.
21721         remainderf-ieee: Work around test failure on OSF/1.
21722         * m4/remainderf-ieee.m4: New file.
21723         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
21724         present, test whether remainderf works with a zero second argument.
21725         Replace it if not.
21726         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
21727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
21728         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
21729         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
21730         (Depends-on): Update conditions.
21731         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
21732         (Depends-on): Add remainder-ieee.
21733         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
21734         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
21735         module.
21737         remainder-ieee: Work around test failure on OSF/1.
21738         * m4/remainder-ieee.m4: New file.
21739         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
21740         present, test whether remainder works with a zero second argument.
21741         Replace it if not.
21742         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
21743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
21744         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
21745         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
21746         (Depends-on): Update dependencies.
21747         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
21748         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
21749         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
21751         Tests for module 'remainderl-ieee'.
21752         * modules/remainderl-ieee-tests: New file.
21753         * tests/test-remainderl-ieee.c: New file.
21755         New module 'remainderl-ieee'.
21756         * modules/remainderl-ieee: New file.
21758         Tests for module 'remainder-ieee'.
21759         * modules/remainder-ieee-tests: New file.
21760         * tests/test-remainder-ieee.c: New file.
21762         New module 'remainder-ieee'.
21763         * modules/remainder-ieee: New file.
21765         Tests for module 'remainderf-ieee'.
21766         * modules/remainderf-ieee-tests: New file.
21767         * tests/test-remainderf-ieee.c: New file.
21768         * tests/test-remainder-ieee.h: New file.
21770         New module 'remainderf-ieee'.
21771         * modules/remainderf-ieee: New file.
21773 2012-02-27  Bruno Haible  <bruno@clisp.org>
21775         modff, modfl: Fix configure syntax error.
21776         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
21777         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21779 2012-02-27  Bruno Haible  <bruno@clisp.org>
21781         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
21782         * m4/fmodl-ieee.m4: New file.
21783         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
21784         whether fmodl works with zero arguments. Replace it if not.
21785         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
21786         (Depends-on): Add fmod-ieee.
21787         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
21788         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
21790         fmodf-ieee: Work around test failure on OSF/1.
21791         * m4/fmodf-ieee.m4: New file.
21792         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
21793         whether fmodf works with zero arguments. Replace it if not.
21794         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
21795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
21796         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
21797         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
21798         (Depends-on): Update dependencies.
21799         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
21800         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
21801         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
21803         fmodf-ieee: Work around test failure on MSVC 9.
21804         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
21805         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
21807         fmod-ieee: Work around test failures on OSF/1, mingw.
21808         * m4/fmod-ieee.m4: New file.
21809         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
21810         whether fmod works with zero arguments. Replace it if not.
21811         * lib/math.in.h (fmod): New declaration.
21812         * lib/fmod.c: New file.
21813         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
21814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
21815         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
21816         * modules/fmod (Files): Add lib/fmod.c.
21817         (Depends-on): Add math, isinf, trunc, fma.
21818         (configure.ac): Arrange to compile lib/fmod.c if needed.
21819         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
21820         m4/signbit.m4.
21821         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
21822         * tests/test-math-c++.cc: Check the declaration of fmod.
21823         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
21825         fmodl-ieee: Fix test failures.
21826         * lib/fmodl.c (fmodl): Treat Inf specially.
21827         * modules/fmodl (Depends-on): Add isinf.
21829         Tests for module 'fmodl-ieee'.
21830         * modules/fmodl-ieee-tests: New file.
21831         * tests/test-fmodl-ieee.c: New file.
21833         New module 'fmodl-ieee'.
21834         * modules/fmodl-ieee: New file.
21836         Tests for module 'fmod-ieee'.
21837         * modules/fmod-ieee-tests: New file.
21838         * tests/test-fmod-ieee.c: New file.
21840         New module 'fmod-ieee'.
21841         * modules/fmod-ieee: New file.
21843         Tests for module 'fmodf-ieee'.
21844         * modules/fmodf-ieee-tests: New file.
21845         * tests/test-fmodf-ieee.c: New file.
21846         * tests/test-fmod-ieee.h: New file.
21848         New module 'fmodf-ieee'.
21849         * modules/fmodf-ieee: New file.
21851 2012-02-27  Bruno Haible  <bruno@clisp.org>
21853         Tests for module 'rintl-ieee'.
21854         * modules/rintl-ieee-tests: New file.
21855         * tests/test-rintl-ieee.c: New file.
21857         New module 'rintl-ieee'.
21858         * modules/rintl-ieee: New file.
21860         Tests for module 'rint-ieee'.
21861         * modules/rint-ieee-tests: New file.
21862         * tests/test-rint-ieee.c: New file.
21864         New module 'rint-ieee'.
21865         * modules/rint-ieee: New file.
21867         Tests for module 'rintf-ieee'.
21868         * modules/rintf-ieee-tests: New file.
21869         * tests/test-rintf-ieee.c: New file.
21870         * tests/test-rint-ieee.h: New file.
21872         New module 'rintf-ieee'.
21873         * modules/rintf-ieee: New file.
21875 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21877         regex: re_search etc. should return -2 when memory exhausted
21878         This bug was uncovered when testing 'grep'.  Without the fix,
21879         re_search and friends return -1 when memory is exhausted, but -1
21880         means no match, and this causes grep to falsely report no-match
21881         instead of memory-exhaustion.  See
21882         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
21883         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
21884         trouble; this can occur if re_search_internal ran out of memory.
21886 2012-02-26  Bruno Haible  <bruno@clisp.org>
21888         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
21889         * m4/modfl-ieee.m4: New file.
21890         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
21891         whether modfl works with Inf. Replace it if not.
21892         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
21893         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
21894         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
21895         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
21896         (Depends-on): Update dependencies.
21897         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
21898         m4/signbit.m4.
21899         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
21900         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
21902         modfl-ieee: Fix dependencies.
21903         * modules/modfl-ieee (Depends-on): Add modf-ieee.
21905         modfl-ieee: Fix test failures.
21906         * lib/modfl.c (modfl): Treat NaN and Inf specially.
21907         * modules/modfl (Depends-on): Add isfinite, isinf.
21909         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
21910         * m4/modff-ieee.m4: New file.
21911         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
21912         whether modff works with NaN and Inf. Replace it if not.
21913         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
21914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
21915         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
21916         * modules/modff (configure.ac): Consider REPLACE_MODFF.
21917         (Depends-on): Update dependencies.
21918         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
21919         m4/signbit.m4.
21920         (Depends-on): Add modf-ieee.
21921         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
21922         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
21924         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
21925         * m4/modf-ieee.m4: New file.
21926         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
21927         whether modf works with NaN and Inf. Replace it if not.
21928         * lib/math.in.h (modf): New declaration.
21929         * lib/modf.c: New file.
21930         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
21931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
21932         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
21933         * modules/modf (Files): Add lib/modf.c.
21934         (Depends-on): Add math, isfinite, trunc, isinf.
21935         (configure.ac): Addrange to compile lib/modf.c if needed.
21936         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
21937         m4/signbit.m4.
21938         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
21939         * tests/test-math-c++.cc: Check the declaration of modf.
21940         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
21942         Tests for module 'modfl-ieee'.
21943         * modules/modfl-ieee-tests: New file.
21944         * tests/test-modfl-ieee.c: New file.
21946         New module 'modfl-ieee'.
21947         * modules/modfl-ieee: New file.
21949         Tests for module 'modf-ieee'.
21950         * modules/modf-ieee-tests: New file.
21951         * tests/test-modf-ieee.c: New file.
21953         New module 'modf-ieee'.
21954         * modules/modf-ieee: New file.
21956         Tests for module 'modff-ieee'.
21957         * modules/modff-ieee-tests: New file.
21958         * tests/test-modff-ieee.c: New file.
21959         * tests/test-modf-ieee.h: New file.
21961         New module 'modff-ieee'.
21962         * modules/modff-ieee: New file.
21964 2012-02-26  Bruno Haible  <bruno@clisp.org>
21966         Tests for module 'fabsl-ieee'.
21967         * modules/fabsl-ieee-tests: New file.
21968         * tests/test-fabsl-ieee.c: New file.
21970         New module 'fabsl-ieee'.
21971         * modules/fabsl-ieee: New file.
21973         Tests for module 'fabs-ieee'.
21974         * modules/fabs-ieee-tests: New file.
21975         * tests/test-fabs-ieee.c: New file.
21977         New module 'fabs-ieee'.
21978         * modules/fabs-ieee: New file.
21980         Tests for module 'fabsf-ieee'.
21981         * modules/fabsf-ieee-tests: New file.
21982         * tests/test-fabsf-ieee.c: New file.
21983         * tests/test-fabs-ieee.h: New file.
21985         New module 'fabsf-ieee'.
21986         * modules/fabsf-ieee: New file.
21988 2012-02-26  Bruno Haible  <bruno@clisp.org>
21990         Tests for module 'fmal-ieee'.
21991         * modules/fmal-ieee-tests: New file.
21992         * tests/test-fmal-ieee.c: New file.
21994         New module 'fmal-ieee'.
21995         * modules/fmal-ieee: New file.
21997         Tests for module 'fma-ieee'.
21998         * modules/fma-ieee-tests: New file.
21999         * tests/test-fma-ieee.c: New file.
22001         New module 'fma-ieee'.
22002         * modules/fma-ieee: New file.
22004         Tests for module 'fmaf-ieee'.
22005         * modules/fmaf-ieee-tests: New file.
22006         * tests/test-fmaf-ieee.c: New file.
22007         * tests/test-fma-ieee.h: New file.
22009         New module 'fmaf-ieee'.
22010         * modules/fmaf-ieee: New file.
22012 2012-02-26  Bruno Haible  <bruno@clisp.org>
22014         Tests for module 'ldexpl-ieee'.
22015         * modules/ldexpl-ieee-tests: New file.
22016         * tests/test-ldexpl-ieee.c: New file.
22018         New module 'ldexpl-ieee'.
22019         * modules/ldexpl-ieee: New file.
22021         Tests for module 'ldexp-ieee'.
22022         * modules/ldexp-ieee-tests: New file.
22023         * tests/test-ldexp-ieee.c: New file.
22025         New module 'ldexp-ieee'.
22026         * modules/ldexp-ieee: New file.
22028         Tests for module 'ldexpf-ieee'.
22029         * modules/ldexpf-ieee-tests: New file.
22030         * tests/test-ldexpf-ieee.c: New file.
22031         * tests/test-ldexp-ieee.h: New file.
22033         New module 'ldexpf-ieee'.
22034         * modules/ldexpf-ieee: New file.
22036 2012-02-26  Bruno Haible  <bruno@clisp.org>
22038         Refactor frexp*-ieee tests.
22039         * tests/test-frexp-ieee.h: New file.
22040         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
22041         (main): Just call test_function.
22042         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
22043         (main): Just call test_function.
22044         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
22045         (main): Just call test_function.
22046         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
22047         * modules/frexp-ieee-tests (Files): Likewise.
22048         * modules/frexpl-ieee-tests (Files): Likewise.
22050         Tests for module 'frexpl-ieee'.
22051         * modules/frexpl-ieee-tests: New file.
22052         * tests/test-frexpl-ieee.c: New file.
22054         New module 'frexpl-ieee'.
22055         * modules/frexpl-ieee: New file.
22057         Tests for module 'frexp-ieee'.
22058         * modules/frexp-ieee-tests: New file.
22059         * tests/test-frexp-ieee.c: New file.
22061         New module 'frexp-ieee'.
22062         * modules/frexp-ieee: New file.
22064         Tests for module 'frexpf-ieee'.
22065         * modules/frexpf-ieee-tests: New file.
22066         * tests/test-frexpf-ieee.c: New file.
22068         New module 'frexpf-ieee'.
22069         * modules/frexpf-ieee: New file.
22071 2012-02-26  Bruno Haible  <bruno@clisp.org>
22073         roundl-ieee tests: More tests.
22074         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22075         (main): Add tests for [MX] shaded specification in POSIX.
22076         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22077         (Depends-on): Add isnanl-nolibm.
22079         round-ieee tests: More tests.
22080         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22081         (main): Add tests for [MX] shaded specification in POSIX.
22082         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22083         (Depends-on): Add isnand-nolibm.
22085         roundf-ieee tests: More tests.
22086         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22087         (main): Add tests for [MX] shaded specification in POSIX.
22088         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22089         (Depends-on): Add isnanf-nolibm.
22091         truncl-ieee tests: More tests.
22092         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22093         (main): Add tests for [MX] shaded specification in POSIX.
22094         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22095         (Depends-on): Add isnanl-nolibm.
22097         trunc-ieee tests: More tests.
22098         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22099         (main): Add tests for [MX] shaded specification in POSIX.
22100         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22101         (Depends-on): Add isnand-nolibm.
22103         truncf-ieee tests: More tests.
22104         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22105         (main): Add tests for [MX] shaded specification in POSIX.
22106         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22107         (Depends-on): Add isnanf-nolibm.
22109         ceill-ieee tests: More tests.
22110         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22111         (main): Add tests for [MX] shaded specification in POSIX.
22112         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22113         (Depends-on): Add isnanl-nolibm.
22115         ceil-ieee tests: More tests.
22116         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22117         (main): Add tests for [MX] shaded specification in POSIX.
22118         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22119         (Depends-on): Add isnand-nolibm.
22121         ceilf-ieee tests: More tests.
22122         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22123         (main): Add tests for [MX] shaded specification in POSIX.
22124         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22125         (Depends-on): Add isnanf-nolibm.
22127         floorl-ieee tests: More tests.
22128         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
22129         (main): Add tests for [MX] shaded specification in POSIX.
22130         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22131         (Depends-on): Add isnanl-nolibm.
22133         floor-ieee tests: More tests.
22134         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
22135         (main): Add tests for [MX] shaded specification in POSIX.
22136         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22137         (Depends-on): Add isnand-nolibm.
22139         floorf-ieee tests: More tests.
22140         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
22141         (main): Add tests for [MX] shaded specification in POSIX.
22142         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
22143         (Depends-on): Add isnanf-nolibm.
22145 2012-02-26  Bruno Haible  <bruno@clisp.org>
22147         fpieee: More comments.
22148         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
22150 2012-02-25  Bruno Haible  <bruno@clisp.org>
22152         Tests for module 'log10l'.
22153         * modules/log10l-tests: New file.
22154         * tests/test-log10l.c: New file.
22155         * tests/test-math-c++.cc: Check the declaration of log10l.
22157         New module 'log10l'.
22158         * lib/math.in.h (log10l): New declaration.
22159         * lib/log10l.c: New file.
22160         * m4/log10l.m4: New file.
22161         * modules/log10l: New file.
22162         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
22163         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
22164         HAVE_DECL_LOG10L.
22165         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
22166         HAVE_DECL_LOG10L.
22167         * doc/posix-functions/log10l.texi: Mention the new module.
22169 2012-02-25  Bruno Haible  <bruno@clisp.org>
22171         fmodl, remainder*: Avoid wrong results due to rounding errors.
22172         * lib/fmodl.c (fmodl): Correct the result if it is not within the
22173         expected bounds.
22174         * lib/remainderf.c (remainderf): Likewise.
22175         * lib/remainder.c (remainder): Likewise.
22176         * lib/remainderl.c (remainderl): Likewise.
22178 2012-02-25  Bruno Haible  <bruno@clisp.org>
22180         Tests for module 'remainderl'.
22181         * modules/remainderl-tests: New file.
22182         * tests/test-remainderl.c: New file.
22183         * tests/test-math-c++.cc: Check the declaration of remainderl.
22185         New module 'remainderl'.
22186         * lib/math.in.h (remainderl): New declaration.
22187         * lib/remainderl.c: New file.
22188         * m4/remainderl.m4: New file.
22189         * modules/remainderl: New file.
22190         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
22191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
22192         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
22193         HAVE_REMAINDERL.
22194         * doc/posix-functions/remainderl.texi: Mention the new module.
22196 2012-02-25  Bruno Haible  <bruno@clisp.org>
22198         Tests for module 'remainderf'.
22199         * modules/remainderf-tests: New file.
22200         * tests/test-remainderf.c: New file.
22201         * tests/test-math-c++.cc: Check the declaration of remainderf.
22203         New module 'remainderf'.
22204         * lib/math.in.h (remainderf): New declaration.
22205         * lib/remainderf.c: New file.
22206         * m4/remainderf.m4: New file.
22207         * modules/remainderf: New file.
22208         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
22209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
22210         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
22211         HAVE_REMAINDERF.
22212         * doc/posix-functions/remainderf.texi: Mention the new module.
22214 2012-02-25  Bruno Haible  <bruno@clisp.org>
22216         remainder: Support for MSVC.
22217         * lib/math.in.h (remainder): New declaration.
22218         * lib/remainder.c: New file.
22219         * m4/remainder.m4: New file.
22220         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
22221         (Depends-on): Add math, round, fma.
22222         (configure.ac): Use results of gl_FUNC_REMAINDER.
22223         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
22224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
22225         HAVE_DECL_REMAINDER.
22226         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
22227         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
22228         * tests/test-math-c++.cc: Check the declaration of remainder.
22229         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
22230         problems are fixed.
22232 2012-02-25  Bruno Haible  <bruno@clisp.org>
22234         Tests for module 'fmodl'.
22235         * modules/fmodl-tests: New file.
22236         * tests/test-fmodl.c: New file.
22237         * tests/test-math-c++.cc: Check the declaration of fmodl.
22239         New module 'fmodl'.
22240         * lib/math.in.h (fmodl): New declaration.
22241         * lib/fmodl.c: New file.
22242         * m4/fmodl.m4: New file.
22243         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
22244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
22245         REPLACE_FMODL.
22246         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
22247         REPLACE_FMODL.
22248         * modules/fmodl: New file.
22249         * doc/posix-functions/fmodl.texi: Mention the new module.
22251 2012-02-25  Bruno Haible  <bruno@clisp.org>
22253         Tests for module 'modfl'.
22254         * modules/modfl-tests: New file.
22255         * tests/test-modfl.c: New file.
22256         * tests/test-math-c++.cc: Check the declaration of modfl.
22258         New module 'modfl'.
22259         * lib/math.in.h (modfl): New declaration.
22260         * lib/modfl.c: New file.
22261         * m4/modfl.m4: New file.
22262         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
22263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
22264         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
22265         * modules/modfl: New file.
22266         * doc/posix-functions/modfl.texi: Mention the new module.
22268 2012-02-25  Bruno Haible  <bruno@clisp.org>
22270         Tests for module 'fabsl'.
22271         * modules/fabsl-tests: New file.
22272         * tests/test-fabsl.c: New file.
22273         * tests/test-math-c++.cc: Check the declaration of fabsl.
22275         New module 'fabsl'.
22276         * lib/math.in.h (fabsl): New declaration.
22277         * lib/fabsl.c: New file.
22278         * m4/fabsl.m4: New file.
22279         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
22280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
22281         REPLACE_FABSL.
22282         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
22283         REPLACE_FABSL.
22284         * modules/fabsl: New file.
22285         * doc/posix-functions/fabsl.texi: Mention the new module.
22287 2012-02-25  Bruno Haible  <bruno@clisp.org>
22289         fabs tests: More tests.
22290         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
22291         (zero): New variable.
22292         (main): Add tests for signed zero.
22293         * modules/fabs-tests (Files): Add tests/minus-zero.h.
22295         fabsf tests: More tests.
22296         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
22297         (zero): New variable.
22298         (main): Add tests for signed zero.
22299         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
22301 2012-02-24  Bruno Haible  <bruno@clisp.org>
22303         atanl: Provide function definition on MSVC.
22304         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
22305         function pointer.
22306         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
22308 2012-02-24  Bruno Haible  <bruno@clisp.org>
22310         acosl: Provide function definition on MSVC.
22311         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
22312         function pointer.
22313         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
22315 2012-02-24  Bruno Haible  <bruno@clisp.org>
22317         asinl: Provide function definition on MSVC.
22318         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
22319         function pointer.
22320         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
22322 2012-02-24  Bruno Haible  <bruno@clisp.org>
22324         tanl: Provide function definition on MSVC.
22325         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
22326         function pointer.
22327         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
22329 2012-02-24  Bruno Haible  <bruno@clisp.org>
22331         cosl: Provide function definition on MSVC.
22332         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
22333         function pointer.
22334         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
22336 2012-02-24  Bruno Haible  <bruno@clisp.org>
22338         sinl: Provide function definition on MSVC.
22339         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
22340         function pointer.
22341         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
22343 2012-02-24  Bruno Haible  <bruno@clisp.org>
22345         logl: Provide function definition on MSVC.
22346         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
22347         function pointer.
22348         * lib/math.in.h (logl): Undefine if it does not exist as a function.
22350 2012-02-24  Bruno Haible  <bruno@clisp.org>
22352         expl: Provide function definition on MSVC.
22353         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
22354         function pointer.
22355         * lib/math.in.h (expl): Undefine if it does not exist as a function.
22357 2012-02-24  Bruno Haible  <bruno@clisp.org>
22359         sqrtl: Provide function definition on MSVC.
22360         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
22361         a function pointer.
22362         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
22364 2012-02-24  Bruno Haible  <bruno@clisp.org>
22366         ceill: Provide function definition on MSVC.
22367         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
22368         used as a function pointer.
22369         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
22371 2012-02-24  Bruno Haible  <bruno@clisp.org>
22373         floorl: Provide function definition on MSVC.
22374         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
22375         used as a function pointer.
22376         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
22378 2012-02-24  Bruno Haible  <bruno@clisp.org>
22380         ceilf: Provide function definition on MSVC.
22381         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
22382         used as a function pointer.
22383         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
22385 2012-02-24  Bruno Haible  <bruno@clisp.org>
22387         floorf: Provide function definition on MSVC.
22388         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
22389         used as a function pointer.
22390         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
22392 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22394         stdnoreturn: new module
22395         This implements a replacement for C11's <stdnoreturn.h>.
22396         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
22397         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
22398         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
22399         * tests/test-stdnoreturn.c: New files.
22401 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
22403         regex: fix false multibyte matches in some regular expressions
22404         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
22405         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
22406         * lib/regex_internal.c (re_string_skip_chars):
22407         Fix miscomputation of remain_len that may cause incomplete
22408         multi-byte character and false match.
22410 2012-02-24  Jim Meyering  <meyering@redhat.com>
22412         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
22413         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
22414         uses with "==" *before* the call, e.g., 0 == strcmp (...)
22415         Remove now-unnecessary str''cmp obfuscation.
22416         Suggested by Akim Demaille.
22418 2012-02-24  Bruno Haible  <bruno@clisp.org>
22420         streq: Rename macro.
22421         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
22422         * NEWS: Mention the change.
22423         * lib/mbrtowc.c (mbrtowc): Update.
22424         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
22425         * lib/wcwidth.c (wcwidth): Update.
22426         Suggested by Akim Demaille and Jim Meyering.
22428 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22430         regex: fix typo in definition of MIN
22431         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
22432         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
22434 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22435             Bruno Haible  <bruno@clisp.org>
22437         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
22438         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
22439         entries into a stack-allocated buffer directly.
22440         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
22442 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22443             Bruno Haible  <bruno@clisp.org>
22445         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
22447          - There were several instances of this pattern:
22449              for (;;) {
22450                n = acl (f, GETACLCNT, 0, NULL);
22451                [ allocate an array A of size N ]
22452                if (acl (f, GETACL, n, a) == n)
22453                  break;
22454              }
22456            This loop might never terminate if some other process is constantly
22457            manipulating the file's ACL.  The loop should be rewritten to
22458            terminate.
22460          - The acl (... GETACLNT ...) call is merely an optimization; its value
22461            is merely a hint as to how big to make the array.  A better
22462            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
22463            and just guess a reasonably-big size, growing the size and trying
22464            again if it's not large enough.  This guarantees termination, and
22465            saves a system call.
22467         * lib/acl-internal.h: Include <limits.h>.
22468         (MIN, SIZE_MAX): New macros.
22469         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
22470         a stack-allocated buffer, and use malloc if it does not fit. Don't
22471         use GETACLCNT.
22472         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
22474 2012-02-19  Bruno Haible  <bruno@clisp.org>
22476         acl: Fix endless loop on Solaris with vxfs.
22477         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
22478         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
22479         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
22480         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
22481         * tests/test-sameacls.c (main)[Solaris]: Likewise.
22482         Reported by Bill Jones in
22483         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
22485 2012-02-19  Bruno Haible  <bruno@clisp.org>
22487         acl: Fix copy-acl test failure on Solaris 11.0.
22488         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
22489         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
22490         that this function returns 0 in some more cases.
22492 2012-02-19  Bruno Haible  <bruno@clisp.org>
22494         acl: Update doc references.
22495         * doc/acl-resources.txt: Update links to Solaris documentation.
22497 2012-02-19  Bruno Haible  <bruno@clisp.org>
22499         Fix test failure in many locales on Solaris 11.
22500         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
22501         'tr' arguments.
22502         * tests/test-pipe-filter-ii1.c (main): Likewise.
22503         * build-aux/bootstrap (check_versions): Run 'tr' command with range
22504         expressions in the C locale.
22505         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22506         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22508 2012-02-19  Bruno Haible  <bruno@clisp.org>
22510         gnulib-tool: Improve usage message.
22511         * gnulib-tool (func_usage): Move doc of --help and --version to the
22512         section "Operation modes".
22514 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
22516         README-release: make it easier to execute commands
22517         * top/README-release: break commands out on to separate lines.
22519 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
22521         GNUmakefile: simplify detection of unconfigured trees
22522         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
22523         whether the tree make is being run from is already configured or
22524         not.  Related simplifications.
22526 2012-02-13  Simon Josefsson  <simon@josefsson.org>
22528         * gnulib-tool (func_usage): Document --help and --version.
22530 2012-02-11  Jim Meyering  <meyering@redhat.com>
22532         bootstrap: don't exit 0 upon gnulib-tool failure
22533         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
22534         its exit status, not 0.
22536 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
22538         README-release: various improvements
22539         * top/README-release: Give a command to push changes for the
22540         release.  Add "distcheck" to list of other pre-release checks.
22541         Fix instance of "make stable" which should be "make TYPE".
22543 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22545         maint: replace FSF snail-mail addresses with URLs
22546         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
22547         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
22548         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
22549         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
22550         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
22551         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
22552         * lib/check-version.c, lib/check-version.h, lib/config.charset:
22553         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
22554         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
22555         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
22556         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
22557         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
22558         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
22559         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
22560         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
22561         * lib/glthread/thread.c, lib/glthread/thread.h:
22562         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
22563         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
22564         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
22565         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
22566         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
22567         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
22568         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
22569         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
22570         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
22571         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
22572         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
22573         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
22574         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
22575         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
22576         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
22577         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
22578         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
22579         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
22580         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
22581         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
22582         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
22583         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
22584         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
22585         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
22586         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
22587         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
22588         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
22589         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
22590         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
22591         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
22592         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
22593         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
22594         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
22595         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
22596         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
22597         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
22598         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
22599         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
22600         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
22601         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
22602         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
22603         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
22604         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
22605         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
22606         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
22607         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
22608         * tests/test-poll.c, tests/test-quotearg-simple.c:
22609         * tests/test-quotearg.c, tests/test-quotearg.h:
22610         * tests/test-round-ieee.c, tests/test-round1.c:
22611         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
22612         * tests/test-roundl-ieee.c, tests/test-roundl.c:
22613         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
22614         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
22615         * tests/test-strerror.c, tests/test-strerror_r.c:
22616         * tests/test-strsignal.c, tests/test-strverscmp.c:
22617         * tests/test-xmemdup0.c:
22618         Replace FSF snail mail addresses with URLs, as per GNU coding
22619         standards.  See glibc bug
22620         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
22622 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22624         README-release: capitalize a word and split a line
22625         * top/README-release: Fix punctuation and spacing.
22627 2012-02-08  Akim Demaille  <demaille@gostai.com>
22629         fatal-signal: use C prototypes (with explicit void).
22630         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22631         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
22633 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22635         regex: spelling fix
22636         * lib/regexec.c: spelling fix
22638         regex: rely on stdint.h for SIZE_MAX
22639         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
22641 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22643         regex: merge glibc changes
22645         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
22646         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
22647         (init_word_char): Work even if bitset words are not exactly 32 or
22648         64 bits wide.  Don't assume there are no padding bits.
22649         * lib/regex.c [_LIBC]: Do not include <config.h>.
22650         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
22651         and -Wtype-limits.
22652         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
22653         needless disagreement with glibc.  All uses changed.  Define it to
22654         1 only if _GNU_SOURCE, to match glibc.
22655         (_REG_RM_NAME): Remove; no longer needed, since the names in
22656         question are now all protected by __USE_GNU.
22657         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
22658         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
22659         * lib/regex_internal.h (MIN): New macro.
22661         2012-01-03 Ulrich Drepper <drepper@gmail.com>
22662         * lib/regcomp.c (init_word_char): Optimize regex a bit.
22664         2011-12-30 Jakub Jelinek <jakub@redhat.com>
22665         * lib/regex_internal.c (re_string_fetch_byte_case):
22666         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
22667         is miscompiled, and it turns out it is because of an incorrect
22668         attribute on re_string_fetch_byte_case.  Unlike
22669         re_string_peek_byte_case, this one is really not pure, it modifies
22670         memory (increments pstr->cur_idx), and with the pure attribute GCC
22671         assumed it doesn't and it cached the presumed value of
22672         regexp->cur_idx in a variable across the
22673          for (;; ++i)
22674            {
22675              if (i >= BRACKET_NAME_BUF_SIZE)
22676                return REG_EBRACK;
22677              if (token->type == OP_OPEN_CHAR_CLASS)
22678                ch = re_string_fetch_byte_case (regexp);
22679              else
22680                ch = re_string_fetch_byte (regexp);
22681              if (re_string_eoi(regexp))
22682                return REG_EBRACK;
22683              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
22684                break;
22685              elem->opr.name[i] = ch;
22686            }
22688         2011-11-29 Andreas Schwab <schwab@redhat.com>
22689         * lib/regcomp.c (build_equiv_class):
22690         Fix access after end of search string in regex matcher.
22692         2011-11-12 Ulrich Drepper <drepper@redhat.com>
22693         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
22695         2011-10-12 Ulrich Drepper <drepper@redhat.com>
22696         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
22698         2011-10-11 Ulrich Drepper <drepper@redhat.com>
22699         * lib/regcomp.c (parse_branch, parse_sub_exp):
22700         More regex memory leak fixes and tests.
22701         (parse_sub_exp, parse_bracket_exp):
22702         Fix memory leak for some invalid regular expressions.
22704         2011-05-28 Ulrich Drepper <drepper@gmail.com>
22705         * lib/regex_internal.c, lib/regexec.c:
22706         Fix unnecessary overallocation due to incomplete character.  When
22707         incomplete characters are found at the end of a string the code
22708         ran amok and allocated lots of memory.  Stricter limits are now in
22709         place.
22711         2011-05-20 Reuben Thomas <rrt@sc3d.org>
22712         * lib/regex.h: Update documentation.
22714         2011-05-16 Aharon Robbins <arnold@skeeve.com>
22715         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
22717         2010-05-05 Andreas Schwab <schwab@redhat.com>
22718         * lib/regexec.c (find_collation_sequence_value):
22719         Fix lookup of collation sequence value during regexp matching.
22721         2010-01-22 Ulrich Drepper <drepper@redhat.com>
22722         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
22724         2008-01-16 Ulrich Drepper <drepper@redhat.com>
22725         * lib/regex.h: Cleanup namespace.
22727         2007-11-26 Ulrich Drepper <drepper@redhat.com>
22728         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
22730         2007-08-26 Ulrich Drepper <drepper@redhat.com>
22731         * lib/regex_internal.h: Prevent some declarations and definitions
22732         to be seen when used in tests.
22734         2005-05-06 Ulrich Drepper <drepper@redhat.com>
22735         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
22736         __libc_lock_* macros if not _LIBC.
22737         (struct re_dfa_t): Add lock.
22739 2012-02-07  Eric Blake  <eblake@redhat.com>
22741         maint.mk: also prohibit lower-case @var@
22742         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
22743         lower case, like @top_srcdir@.
22745 2012-02-04  Eric Blake  <eblake@redhat.com>
22747         canonicalize: avoid uninitialized memory use
22748         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
22749         random '/' left in dest.
22750         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
22752 2012-02-04  Bruno Haible  <bruno@clisp.org>
22754         isatty: Fix test failure of ptsname_r on native Windows.
22755         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
22756         and don't set errno.
22757         (isatty): Test first whether fd is valid. Set errno when returning 0.
22759 2012-02-04  Bruno Haible  <bruno@clisp.org>
22761         spawn-pipe tests: Fix a NULL program name in a diagnostic.
22762         * tests/test-spawn-pipe-main.c: Include progname.h.
22763         (main): Invoke set_program_name.
22764         * modules/spawn-pipe-tests (Depends-on): Add progname.
22766         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
22767         * tests/test-nonblocking-socket-main.c: Include progname.h.
22768         (main): Invoke set_program_name.
22769         * modules/nonblocking-socket-tests (Depends-on): Add progname.
22771         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
22772         * tests/test-nonblocking-pipe-main.c: Include progname.h.
22773         (main): Invoke set_program_name.
22774         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
22776 2012-02-04  Eric Blake  <eblake@redhat.com>
22778         canonicalize-lgpl: fix // handling
22779         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
22781         canonicalize: fix // handling
22782         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
22783         /// to //, since only // is special.
22785 2012-02-04  Bruno Haible  <bruno@clisp.org>
22787         ioctl: Fix test failure on native Windows.
22788         * lib/ioctl.c: Include msvc-nothrow.h.
22789         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
22791 2012-02-04  Bruno Haible  <bruno@clisp.org>
22793         fsync: Avoid test failure on native Windows.
22794         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
22795         read-only.
22797 2012-02-04  Bruno Haible  <bruno@clisp.org>
22799         sys_select: Avoid syntax error on OpenBSD 5.0.
22800         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
22801         currently being included, just include the system's <sys/select.h>.
22803 2012-02-04  Bruno Haible  <bruno@clisp.org>
22805         sys_select: Avoid syntax error on OpenBSD 5.0.
22806         * lib/sys_select.in.h: Include <signal.h> only after the include_next
22807         <sys/select.h>, not before.
22808         Reported by Jiri B <jirib@devio.us>.
22810 2012-02-04  Bruno Haible  <bruno@clisp.org>
22812         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
22813         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
22814         global variables.
22815         * tests/test-get-rusage-data.c (main): Likewise.
22816         Reported by Jim Meyering.
22818 2012-02-04  Bruno Haible  <bruno@clisp.org>
22820         stdioext: Fix last commit.
22821         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
22823 2012-02-03  Bruno Haible  <bruno@clisp.org>
22825         stdioext: Add tentative support for Plan9.
22826         * lib/stdio-impl.h: Include <errno.h>.
22827         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
22828         * lib/freadable.c (freadable): Likewise.
22829         * lib/fwritable.c (fwritable): Likewise.
22830         * lib/fbufmode.c (fbufmode): Likewise.
22831         * lib/freading.c (freading): Likewise.
22832         * lib/fwriting.c (fwriting): Likewise.
22833         * lib/freadptr.c (freadptr): Likewise.
22834         * lib/freadseek.c (freadptrinc): Likewise.
22835         * lib/freadahead.c (freadahead): Likewise.
22836         * lib/fpurge.c (fpurge): Likewise.
22837         * lib/fseeko.c (rpl_fseeko): Likewise.
22838         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
22839         Reported by Jens Staal <staal1978@gmail.com>.
22841 2012-02-02  Jim Meyering  <meyering@redhat.com>
22843         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
22844         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
22845         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
22846         not even to try to add the attribute.  Instead, add a pragma to suppress
22847         the suggestion/warning.
22849 2012-01-31  Karl Berry  <karl@gnu.org>
22851         setstate doc: typo.
22852         * doc/posix-functions/setstate.texi (setstate): { not (.
22854 2012-01-31  Bruno Haible  <bruno@clisp.org>
22856         popen: Make more robust on Windows.
22857         * lib/popen.c: On native Windows, use the _popen based code even if
22858         HAVE_POPEN is set.
22859         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
22860         environment variable on native Windows.
22862 2012-01-30  Bruno Haible  <bruno@clisp.org>
22864         pclose: Fix typo.
22865         * lib/stdio.in.h (pclose): Fix typo in warning message.
22867 2012-01-30  Bruno Haible  <bruno@clisp.org>
22869         doc about getlogin_r, setstate.
22870         * doc/posix-functions/getlogin_r.texi: List the incompatible
22871         declaration problem under "not fixed by gnulib".
22872         * doc/posix-functions/setstate.texi: Mention incompatible declaration
22873         problem on Solaris 11 and other platforms.
22875 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
22876             Bruno Haible  <bruno@clisp.org>
22878         poll tests: Make test more robust.
22879         * tests/test-poll.c: Include macros.h.
22880         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
22881         return value of various I/O operations.
22882         * modules/poll-tests (Files): Add tests/macros.h.
22884 2012-01-30  Bruno Haible  <bruno@clisp.org>
22886         sys_stat: Fix support for mingw64 and MSVC.
22887         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
22888         header files already do it.
22889         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
22890         stat itself.
22891         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
22893 2012-01-30  Bruno Haible  <bruno@clisp.org>
22895         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
22896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
22897         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
22899 2012-01-29  Bruno Haible  <bruno@clisp.org>
22901         quotearg: Fix test failure on MacOS X 10.5.
22902         * tests/test-quotearg-simple.c: Include localcharset.h.
22903         (main): If the locale encoding is not ASCII, bypass the tests of
22904         locale_quoting_style and clocale_quoting_style.
22905         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
22907 2012-01-29  Jim Meyering  <meyering@redhat.com>
22909         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
22910         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
22911         detect uses of canonicalize_file_name.
22913 2012-01-28  Bruno Haible  <bruno@clisp.org>
22915         test-framework-sh: Fix test failure with AIX 7.1 diff.
22916         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
22917         in column 1, like 'diff -c' does.
22918         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
22919         whether 'diff -u' is used. Instead, test whether the output contains
22920         some '@' character.
22922 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22924         strtoimax: eliminate need for stdint.h, inttypes.h checks
22925         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
22926         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
22927         the prerequisites for a recently-introduced strtoimax test.
22928         I guess this might cause strtoimax to be replaced when not
22929         strictly necessary on older hosts, but this shouldn't introduce
22930         any bugs and it should make Emacs 'configure' faster on typical
22931         modern hosts.  Problem discovered when importing the latest gnulib
22932         to an Emacs test version.
22933         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
22935 2012-01-28  Bruno Haible  <bruno@clisp.org>
22937         sys_time: Override 'struct timeval' on some native Windows platforms.
22938         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
22939         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
22940         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
22941         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
22942         needs to be overridden.
22943         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
22944         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
22945         * tests/test-sys_select.c: Check that the tv_sec member has the same
22946         size as a 'time_t'.
22947         * tests/test-sys_time.c: Likewise.
22948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
22949         is set, set also REPLACE_GETTIMEOFDAY.
22950         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
22951         convert the resulting 'struct timeval' before returning.
22952         * lib/select.c: Include <sys/time.h>.
22953         (select, timeval): Undefine at the right place.
22954         * modules/select (Depends-on): Add sys_time.
22955         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
22956         some Windows platforms.
22957         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
22959 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
22961         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
22962         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
22963         an integer.
22964         * lib/fcntl.c (dupfd): Likewise.
22965         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
22967 2012-01-28  Bruno Haible  <bruno@clisp.org>
22969         fcntl: Avoid compilation error on native Windows.
22970         * modules/fcntl (Depends-on): Add 'close'.
22972 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
22974         select, poll, isatty: Avoid warnings on x86_64 mingw64.
22975         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
22976         pointer to an integer.
22977         * lib/poll.c (IsConsoleHandle): Likewise.
22978         * lib/isatty.c (IsConsoleHandle): Likewise.
22980 2012-01-28  Jim Meyering  <meyering@redhat.com>
22982         doc: clarify README-release
22983         * top/README-release: Clarify: you should make a point to have
22984         the latest stable versions of build tools in your PATH, and the
22985         reference to buildreq is solely for its list of tool names, not
22986         for its minimal-functional version numbers.
22987         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
22989         maint.mk: use more readable (yet functionally equivalent) quoting
22990         It is common to quote a single quote in a single quoted string like
22991         this:  '...'\''...'.  Unless you know the idiom, that looks like
22992         gibberish, so prefer to double-quote the string when possible.
22993         Then you can use a more readable, lone single quote: "...'..."
22994         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
22995         "don't" is more readable than the equivalent 'don'\''t'.
22996         (sc_cast_of_x_alloc_return_value): Likewise.
22997         (sc_cast_of_alloca_return_value): Likewise.
22998         (sc_makefile_path_separator_check): Similar: use ":" in '...',
22999         rather than '\'':'\''.
23001 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23003         stdalign: relax _Alignof and tighten _Alignas test
23004         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
23005         as it was too strict: alignof must divide offsetof, but it need
23006         not equal offsetof.  Inspired by Joseph S. Myers's comment
23007         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
23008         Conversely, tighten the _Alignas test a bit, as the resulting
23009         alignment must be exactly 8.
23011 2012-01-27  Bruno Haible  <bruno@clisp.org>
23013         stdalign: Document the last change.
23014         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
23016 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
23018         stdalign: check that alignof and offsetof are consistent
23019         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
23020         Problem reported for gnulib by Richard W.M. Jones in
23021         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
23023 2012-01-27  Jim Meyering  <meyering@redhat.com>
23025         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
23026         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
23027         convert a sequence with gaps to the minimal containing range.
23028         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
23029         * tests/test-update-copyright.sh: Test for this.
23030         The FSF confirmed it is ok to do this, assuming there is at
23031         least one significant change per year in the affected range:
23032         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
23034 2012-01-26  Bruno Haible  <bruno@clisp.org>
23036         pipe2: refine doc about thread-safety
23037         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
23038         multithread-safety problem.
23039         * doc/glibc-functions/accept4.texi: Likewise.
23041 2012-01-26  Bruno Haible  <bruno@clisp.org>
23043         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
23044         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
23045         In the test program, include <fcntl.h>, for O_RDONLY.
23047 2012-01-26  Eric Blake  <eblake@redhat.com>
23049         pipe2: document lack of thread-safety in replacement
23050         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
23051         issue in replacement.
23052         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23053         Based on a report by Eric Wong.
23055 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
23056             Bruno Haible  <bruno@clisp.org>
23058         malloca: Avoid warnings on x86_64 mingw64.
23059         * lib/malloca.c: Include <stdint.h>.
23060         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
23061         * modules/malloca (Depends-on): Add stdint.
23062         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
23064 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23066         obstack: remove __STDC__ conditionals
23067         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
23068         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
23069         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
23070         m4/include_next.m4 as the only gnulib-maintained places that still
23071         refer to __STDC__.
23073 2012-01-24  Bruno Haible  <bruno@clisp.org>
23075         havelib: Modern quoting.
23076         * build-aux/config.rpath: Quote 'like this', not `like this', as per
23077         the recent change to the GNU coding standards.
23079 2012-01-24  Bruno Haible  <bruno@clisp.org>
23081         stdint: Improve support for Android.
23082         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
23083         Reported by Simon Josefsson <simon@josefsson.org>.
23085 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23087         doc: omit trailing empty lines from INSTALL etc.
23088         * doc/Makefile (INSTALL): Omit trailing empty lines.
23089         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
23090         omit trailing empty lines.  This simplifies the build procedure.
23092 2012-01-23  Jim Meyering  <meyering@redhat.com>
23094         tests: avoid spurious warnings about gl_sockets_startup
23095         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
23096         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
23097         reporting a "statement with no effect".
23098         * tests/test-accept.c (main): Mark as "(void)".
23099         * tests/test-accept4.c (main): Likewise.
23100         * tests/test-bind.c (main): Likewise.
23101         * tests/test-connect.c (main): Likewise.
23102         * tests/test-getpeername.c (main): Likewise.
23103         * tests/test-getsockname.c (main): Likewise.
23104         * tests/test-getsockopt.c (main): Likewise.
23105         * tests/test-listen.c (main): Likewise.
23106         * tests/test-recv.c (main): Likewise.
23107         * tests/test-recvfrom.c (main): Likewise.
23108         * tests/test-send.c (main): Likewise.
23109         * tests/test-sendto.c (main): Likewise.
23110         * tests/test-setsockopt.c (main): Likewise.
23111         * tests/test-shutdown.c (main): Likewise.
23113 2012-01-21  Bruno Haible  <bruno@clisp.org>
23115         locale-fr.m4: Fix for Android.
23116         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
23117         failure of the test program on Bionic libc.
23119 2012-01-21  Jim Meyering  <meyering@redhat.com>
23121         bootstrap: fail when bootstrap_post_import_hook fails
23122         Otherwise, it's far too easy to miss diagnostics emitted
23123         between gnulib-tool's output and that of running configure.
23124         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
23126 2012-01-17  Jim Meyering  <meyering@redhat.com>
23128         maint: enable sc_trailing_blank
23129         * build-aux/pmccabe.css: Remove trailing blanks.
23130         * doc/acl-cygwin.txt: Likewise.
23131         * doc/gnu-oids.texi: Likewise
23132         * cfg.mk: Enable sc_trailing_blank.
23133         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
23135 2012-01-17  Jim Meyering  <meyering@redhat.com>
23137         maint: enable sc_prohibit_openat_without_use
23138         * cfg.mk: Enable sc_prohibit_openat_without_use.
23139         Exempt lib/selinux-at.c.
23141 2012-01-17  Jim Meyering  <meyering@redhat.com>
23143         maint: enable sc_prohibit_cloexec_without_use
23144         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
23145         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
23147 2012-01-17  Jim Meyering  <meyering@redhat.com>
23149         maint: enable sc_prohibit_intprops_without_use
23150         * cfg.mk: Enable sc_prohibit_intprops_without_use
23151         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
23153 2012-01-17  Jim Meyering  <meyering@redhat.com>
23155         maint: enable sc_prohibit_hash_pjw_without_use
23156         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
23157         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
23158         to match any use of \<hash_pjw\>, i.e., not necessarily with a
23159         following " (".
23161 2012-01-17  Jim Meyering  <meyering@redhat.com>
23163         maint: enable double-word-prohibiting rule
23164         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
23165         Exempt three files.
23167 2012-01-17  Jim Meyering  <meyering@redhat.com>
23169         maint: remove empty lines at EOF, but excluding modules/*
23170         Apply syntax rules at home as well as abroad.  Most changes
23171         were induced by running this:
23172           make srcdir=. _build-aux=build-aux -f top/maint.mk \
23173             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
23174             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
23175         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
23176         Exempt modules/* and two binary files.
23177         Also exempt doc/INSTALL*, per request from Bruno Haible.
23178         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
23179         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
23180         * doc/Copyright/request-assign.future: Likewise.
23181         * doc/Copyright/request-disclaim.changes: Likewise.
23182         * doc/INSTALL: Likewise.
23183         * doc/INSTALL.ISO: Likewise.
23184         * doc/INSTALL.UTF-8: Likewise.
23185         * doc/acl-cygwin.txt: Likewise.
23186         * doc/acl-resources.txt: Likewise.
23187         * doc/fdl-1.2.texi: Likewise.
23188         * doc/fdl-1.3.texi: Likewise.
23189         * doc/fdl.texi: Likewise.
23190         * lib/argp-pin.c: Likewise.
23191         * lib/round.c: Likewise.
23192         * lib/unicase/u16-totitle.c: Likewise.
23193         * lib/unictype/block_test.c: Likewise.
23194         * lib/uninorm/canonical-decomposition.c: Likewise.
23195         * m4/README: Likewise.
23196         * m4/relocatable-lib.m4: Likewise.
23197         * tests/test-isnand-nolibm.c: Likewise.
23198         * tests/test-isnand.c: Likewise.
23199         * tests/uninorm/NormalizationTest.txt: Likewise.
23201 2012-01-17  Jim Meyering  <meyering@redhat.com>
23203         maint: add framework to run syntax-check rules against gnulib sources
23204         * cfg.mk: New file, to disable all currently-failing tests.
23205         We'll enable them one by one, as they are made to pass.
23206         * Makefile (sc_maint): New rule.
23208 2012-01-21  Bruno Haible  <bruno@clisp.org>
23210         stdint: Add support for Android.
23211         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
23212         include the system's <stdint.h>.
23213         Reported by Simon Josefsson <simon@josefsson.org>.
23215 2012-01-19  Jim Meyering  <meyering@redhat.com>
23217         bootstrap: add bootstrap_post_import_hook
23218         Bison does still need something like the gnulib_mk_hook whose
23219         invocation I had to remove along with slurp in commit 767ccd40.
23220         Technically, we could get along without it, but doing so would
23221         have required living with a warning and a mandatory post-bootstrap
23222         automake rerun.
23223         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
23224         (bootstrap_post_import_hook): New function.
23225         Invoke it after gnulib-tool --import and before autoreconf.
23227 2012-01-18  Jim Meyering  <meyering@redhat.com>
23229         gitlog-to-changelog: don't use "no_"-prefixed variable name
23230         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
23231         to enable both --cluster and --no-cluster.  Change variable name,
23232         s/\$no_cluster/$cluster/, and reverse usage to match.
23234         gitlog-to-changelog: use "||", not "or" in expressions
23235         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
23236         expressions.
23238 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
23240         gitlog-to-changelog: new option --no-cluster
23241         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
23242         clustering of adjacent commit messages.
23244 2012-01-17  Jim Meyering  <meyering@redhat.com>
23246         maint: spell file systems with two words, not one
23247         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
23248         two words, not one.
23250 2012-01-16  Jim Meyering  <meyering@redhat.com>
23252         bootstrap: add a FIXME comment to ensure we eventually remove the hack
23253         * build-aux/bootstrap (gnulib_tool_options): Add comment.
23255 2012-01-16  Eric Blake  <eblake@redhat.com>
23257         bootstrap: cater to autoconf 2.59
23258         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
23259         is not available.
23261         bootstrap: properly check for libtool
23262         * build-aux/bootstrap (libtoolize): Also run libtool when older
23263         usage is detected.
23265 2012-01-15  Bruno Haible  <bruno@clisp.org>
23267         Improve support for MSVC 9.
23268         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
23269         clashes on MSVC.
23270         * lib/fcntl.in.h: Likewise.
23271         * lib/stdlib.in.h: Likewise.
23272         * lib/sys_stat.in.h: Likewise.
23274 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
23276         gnupload: we hold the master copy of this script now
23277         For motivation and more information, see:
23278         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
23279         * build-aux/gnupload: Make it clear in the heading comments that the
23280         master copy of this file is maintained by gnulib.  Since we are at
23281         it, bump its copyright year and ...
23282         ($scriptversion): ... the date in its version.
23283         ($usage): Patches and bug reports should be sent to the gnulib list,
23284         not the automake one.
23285         * config/srclist.txt: Don't try to sync 'gnupload' from automake
23286         anymore.
23288 2012-01-15  Bruno Haible  <bruno@clisp.org>
23290         Fix module 'random'.
23291         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
23292         initstate, setstate are declared.
23294 2012-01-14  Bruno Haible  <bruno@clisp.org>
23296         Tests for module 'random'.
23297         * modules/random-tests: New file.
23298         * tests/test-random.c: New file, based on tests/test-random_r.c.
23300         New module 'random'.
23301         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
23302         declarations.
23303         * lib/random.c: New file, based on glibc/stdlib/random.c.
23304         * m4/random.m4: New file.
23305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
23306         HAVE_RANDOM.
23307         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
23308         * modules/random: New file.
23309         * config/srclist.txt: Add an entry for random.c.
23310         * doc/posix-functions/random.texi: Mention the 'random' module.
23311         * doc/posix-functions/initstate.texi: Likewise.
23312         * doc/posix-functions/setstate.texi: Likewise.
23313         * doc/posix-functions/srandom.texi: Likewise.
23315 2012-01-12  Bruno Haible  <bruno@clisp.org>
23317         random_r: Use common idioms.
23318         * lib/random_r.c: Include <stdlib.h> first.
23320         random_r: Override incompatible API on AIX, OSF/1.
23321         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
23322         Override the system function if REPLACE_RANDOM_R is 1.
23323         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
23324         and OSF/1, set REPLACE_RANDOM_R.
23325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
23326         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
23327         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
23328         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
23329         * doc/glibc-functions/random_r.texi: Likewise.
23330         * doc/glibc-functions/setstate_r.texi: Likewise.
23332         random_r: Support for MSVC 9.
23333         * lib/random_r.c: Include stdint.h, not inttypes.h.
23335 2012-01-12  Eric Blake  <eblake@redhat.com>
23337         inet_ntop: guard extra work by IF_LINT
23338         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
23339         better code generation when not checking for warnings.
23340         Suggested by Paul Eggert and Jim Meyering.
23342         strptime: fix regression on mingw
23343         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
23344         Fix regression.  Reported by Bruno Haible.
23346 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
23347             Bruno Haible  <bruno@clisp.org>
23349         copy-file: add error-code-returning variant.
23350         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
23351         (qcopy_file_preserving): New declaration.
23352         * lib/copy-file.c (qcopy_file_preserving): Renamed from
23353         copy_file_preserving. Change return type to 'int'. Don't emit an error
23354         message here.
23355         (copy_file_preserving): New function.
23356         * tests/test-copy-file.c: Include <stdlib.h>.
23357         (main): Test qcopy_file_preserving if the environment variable
23358         NO_STDERR_OUTPUT is set.
23359         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
23360         with NO_STDERR_OUTPUT
23361         * tests/test-copy-file-2.sh: Likewise.
23363 2012-01-10  Bruno Haible  <bruno@clisp.org>
23365         copy-file: Use 'quote' module consistently.
23366         * lib/copy-file.c (copy_file_preserving): Use quote().
23368         copy-file: Refactor.
23369         * lib/copy-file.c: Include quote.h.
23370         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
23371         message here.
23372         * modules/copy-file (Depends-on): Add quote.
23374         acl: Export qcopy_acl.
23375         * lib/acl.h (qcopy_acl): New declaration.
23376         * lib/copy-acl.c (qcopy_acl): Make non-static.
23378         acl: Rename a local variable.
23379         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
23381         acl: Align return values of copy_acl and qcopy_acl.
23382         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
23383         maybe < -1.
23385 2012-01-11  Eric Blake  <eblake@redhat.com>
23387         strptime: silence gcc warnings
23388         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
23389         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
23390         Reported by Daniel P. Berrange.
23392         inet_ntop: silence gcc warning
23393         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
23394         Reported by Daniel P. Berrange.
23396 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
23398         getloadavg test: skip the test on GNU/Linux without /proc mounted
23399         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
23400         file.  When /proc is not mounted, it always fails with ENOENT.
23401         * tests/test-getloadavg.c (main): Treat ENOENT return code from
23402         getloadavg(3) the same way as ENOSYS and ENOTSUP.
23404 2012-01-10  Bruno Haible  <bruno@clisp.org>
23406         regex: Avoid link error on MSVC 9.
23407         * modules/regex (Depends-on): Add wctype.
23409 2012-01-10  Bruno Haible  <bruno@clisp.org>
23411         doc: Mention --with-tests option.
23412         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
23413         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
23414         --with-tests.
23415         Reported by Reuben Thomas.
23417 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
23419         users.txt: order package names lexicographically.
23420         * users.txt: Order package names lexicographically.
23422 2012-01-10  Jim Meyering  <meyering@redhat.com>
23424         maint.mk: fix description in comment
23425         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
23427         ignore-value: remove deprecated ignore_ptr function
23428         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
23429         * NEWS: Note this.
23431 2012-01-09  Jim Meyering  <meyering@redhat.com>
23433         test-init.sh: avoid a subshell
23434         * tests/test-init.sh: Remove protective subshell.
23435         Suggested by Bernhard Voelker.  While a subshell is normally
23436         required to protect against older shells (Solaris, FreeBSD) that
23437         warn about a missing program before performing redirection, the
23438         shell-selection tests performed by init.sh probably exclude any
23439         offending shell.
23441 2012-01-08  Bruno Haible  <bruno@clisp.org>
23443         setlocale tests: Avoid test failure on Solaris 11.0.
23444         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
23445         variable.
23447 2012-01-08  Bruno Haible  <bruno@clisp.org>
23449         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
23450         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23451         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23452         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
23453         macro.
23454         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
23455         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23456         * lib/spawn_faction_addopen.c: Add workaround implementation if
23457         HAVE_WORKING_POSIX_SPAWN.
23458         * modules/spawn (Makefile): Substitute
23459         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23460         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
23461         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
23462         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23463         (Depends-on): Update conditions.
23464         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
23465         the Solaris 11 bug.
23467 2012-01-08  Bruno Haible  <bruno@clisp.org>
23469         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
23470         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23471         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
23472         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
23473         macro.
23474         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
23475         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
23476         * lib/spawn_faction_adddup2.c: Add workaround implementation if
23477         HAVE_WORKING_POSIX_SPAWN.
23478         * modules/spawn (Makefile): Substitute
23479         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
23480         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
23481         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
23482         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
23483         (Depends-on): Update conditions.
23484         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
23485         the Solaris 11 bug.
23487 2012-01-08  Bruno Haible  <bruno@clisp.org>
23489         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
23490         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23491         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
23492         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
23493         HAVE_WORKING_POSIX_SPAWN.
23494         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
23495         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
23496         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
23497         * lib/spawn_faction_addclose.c: Add workaround implementation if
23498         HAVE_WORKING_POSIX_SPAWN.
23499         * modules/spawn (Makefile): Substitute
23500         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
23501         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
23502         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
23503         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
23504         (Depends-on): Update conditions.
23505         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
23506         the Solaris 11 bug.
23508 2012-01-08  Bruno Haible  <bruno@clisp.org>
23510         doc: Update for Solaris 11.0.
23511         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
23512         * m4/printf.m4: Update comments.
23514 2012-01-08  Bruno Haible  <bruno@clisp.org>
23516         mktime: Avoid compilation error on Solaris 11.
23517         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
23519 2012-01-08  Bruno Haible  <bruno@clisp.org>
23521         doc: Small fix.
23522         * doc/posix-headers/nl_types.texi: Correct platforms list.
23524 2012-01-08  Simon Josefsson  <simon@josefsson.org>
23526         Add lgpl-3.0 module.
23527         * MODULES.html.sh (Support for building documentation): Add
23528         lgpl-3.0.
23529         * modules/lgpl-3.0: New file.
23531 2012-01-08  Jim Meyering  <meyering@redhat.com>
23533         select.c: indent with spaces, not TABs
23534         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
23536 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23538         quotearg: do not use grave accent for left quote
23539         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
23540         locale_quoting_style.
23541         (quotearg_buffer_restyled): Fix example.
23542         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
23544 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23546         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
23547         Most programs do not have translation catalogs for English and much
23548         less separate catalogs for British and American English.  Drop the
23549         suggestion to translators about these two, and provide it
23550         automatically for Unicode locales.  Like most programs, even those
23551         using American English, we use single quotation marks.  This conflicts
23552         with the American typographic convention, but works better when you
23553         cite the entire error message within double quotes.  It also tries not
23554         to clash with established practice and with what non-gnulib programs
23555         will usually do.
23556         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
23557         using an UTF-8 or GB-18030 locale.  The list of other locales with
23558         quotes was provided by Bruno Haible.
23559         (quotearg_buffer_restyled): Adjust instructions to translators.
23560         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
23561         text, since this would be wrong when using Unicode.
23562         * modules/quotearg: Depend on c-strcaseeq.
23564 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23566         quotearg: fix Wikipedia link
23567         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
23569 2012-01-07  Simon Josefsson  <simon@josefsson.org>
23571         Fix for mingw with MSVC9.
23572         * m4/ld-version-script.m4: Check that compiler rejects version
23573         scripts with syntax errors.  Reported by Bruno Haible
23574         <bruno@clisp.org>.
23576 2012-01-06  Bruno Haible  <bruno@clisp.org>
23578         Talk about "native Windows API", not "Woe32".
23579         * lib/accept4.c: Update comments to mention native Windows.
23580         * lib/execute.c: Likewise.
23581         * lib/fatal-signal.c: Likewise.
23582         * lib/localcharset.c: Likewise.
23583         * lib/nanosleep.c: Likewise.
23584         * lib/nl_langinfo.c: Likewise.
23585         * lib/pclose.c: Likewise.
23586         * lib/pipe-filter-gi.c: Likewise.
23587         * lib/pipe-filter-ii.c: Likewise.
23588         * lib/pipe.c: Likewise.
23589         * lib/pipe2.c: Likewise.
23590         * lib/popen.c: Likewise.
23591         * lib/progreloc.c: Likewise.
23592         * lib/relocatable.c: Likewise.
23593         * lib/sigaction.c: Likewise.
23594         * lib/sigprocmask.c: Likewise.
23595         * lib/spawn-pipe.h: Likewise.
23596         * lib/spawn-pipe.c: Likewise.
23597         * lib/spawni.c: Likewise.
23598         * lib/stat-time.h: Likewise.
23599         * lib/w32spawn.h: Likewise.
23600         * tests/test-isatty.c: Likewise.
23601         * lib/config.charset: More comments.
23602         * doc/gnulib-intro.texi: Mention native Windows.
23603         * doc/posix-functions/_Exit_C99.texi: Likewise.
23604         * doc/posix-headers/fcntl.texi: Likewise.
23606 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
23608         argp: Avoid crash if translator uses % characters in a translation.
23609         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
23610         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
23612 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
23614         doc: C11 and C++11 are now official
23615         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
23616         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
23617         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
23618         * modules/stdalign:
23619         Replace references to draft C1X to C11, and to draft C++0X to C++11.
23621 2012-01-06  Bruno Haible  <bruno@clisp.org>
23623         uc-is-grapheme-break tests: Tweak.
23624         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
23625         message.
23627 2012-01-06  Bruno Haible  <bruno@clisp.org>
23629         test-init.sh: correct the test for diff -u
23630         * tests/test-init.sh: Also redirect stdout to /dev/null.
23632 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
23634         Use ', not `, for quoting output.
23635         * build-aux/announce-gen (usage, sizes, print_news_deltas)
23636         (print_changelog_deltas, get_tool_versions, main program):
23637         * build-aux/git-version-gen:
23638         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
23639         * build-aux/move-if-change (help):
23640         * build-aux/useless-if-before-free (usage, main program):
23641         * check-module (parse_module_file, usage)
23642         (find_included_lib_files, check_module):
23643         * lib/argmatch.c (main) [TEST]:
23644         * lib/argp-help.c (_help):
23645         * lib/getopt1.c (main) [TEST]:
23646         * lib/git-merge-changelog.c (usage):
23647         * lib/xstrtol-error.c (xstrtol_error):
23648         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
23649         * m4/argz.m4 (gl_FUNC_ARGZ):
23650         * m4/bison.m4 (gl_BISON):
23651         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
23652         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23653         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23654         * m4/fpending.m4 (gl_PREREQ_FPENDING):
23655         * m4/gc-random.m4 (gl_GC_RANDOM):
23656         * m4/intl.m4 (gt_CHECK_DECL):
23657         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
23658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
23659         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
23660         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
23661         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
23662         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
23663         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
23664         * tests/test-dirname.c (main):
23665         * tests/test-getpass.c (main):
23666         * tests/test-iconvme.c (main):
23667         * tests/test-parse-datetime.c (LOG):
23668         * tests/test-xstrtoimax.sh:
23669         * tests/test-xstrtol.sh:
23670         * tests/test-xstrtoll.sh:
23671         * tests/test-xstrtoumax.sh:
23672         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
23673         * top/GNUmakefile (abort-due-to-no-makefile):
23674         Quote 'like this', not `like this', as per the recent change to
23675         the GNU coding standards.
23677 2012-01-05  Bruno Haible  <bruno@clisp.org>
23679         strtoimax: Don't force a replacement on systems where intmax_t is int.
23680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
23681         'intmax_t' is not larger than 'int'.
23682         Reported by Pádraig Brady <P@draigBrady.com>.
23684 2012-01-05  Bruno Haible  <bruno@clisp.org>
23686         doc: Mention NetBSD bugs.
23687         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
23688         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
23690 2012-01-05  Bruno Haible  <bruno@clisp.org>
23692         strtoumax tests: Enhance tests.
23693         * tests/test-strtoumax.c (main): Add tests for large values.
23695 2012-01-05  Bruno Haible  <bruno@clisp.org>
23697         strtoimax: Work around AIX 5.1 bug.
23698         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
23699         definition.
23700         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
23701         Set HAVE_STRTOIMAX.
23702         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
23703         REPLACE_STRTOIMAX.
23704         * modules/inttypes-incomplete (Makefile.am): Substitute
23705         REPLACE_STRTOIMAX.
23706         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
23707         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
23708         (Depends-on): Update conditions.
23709         * tests/test-strtoimax.c (main): Add tests for large values.
23710         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
23712 2012-01-05  Bruno Haible  <bruno@clisp.org>
23714         inttypes: Modernize.
23715         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
23716         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
23717         (Makefile.am): Update inttypes.h rule.
23719 2012-01-05  Jim Meyering  <meyering@redhat.com>
23721         init.sh: don't waste a subshell just to redirect stderr
23722         * tests/init.sh: In testing for diff -u and diff -c, use a
23723         stderr-redirecting exec inside `...` rather than a subshell.
23725         test-init.sh: avoid failure on HP-UX 11.00
23726         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
23727         resolves to diff -c or cmp.  Reported by Bruno Haible.
23729 2012-01-05  Bruno Haible  <bruno@clisp.org>
23731         Tests for module 'strtoull'.
23732         * modules/strtoull-tests: New file.
23733         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
23735 2012-01-05  Bruno Haible  <bruno@clisp.org>
23737         Tests for module 'strtoll'.
23738         * modules/strtoll-tests: New file.
23739         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
23741 2012-01-05  Bruno Haible  <bruno@clisp.org>
23743         Tests for module 'strtoul'.
23744         * modules/strtoul-tests: New file.
23745         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
23747 2012-01-05  Bruno Haible  <bruno@clisp.org>
23749         Tests for module 'strtol'.
23750         * modules/strtol-tests: New file.
23751         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
23753 2012-01-04  Jim Meyering  <meyering@redhat.com>
23755         test-init.sh: accommodate Solaris 5.10's different diff -u output
23756         * tests/test-init.sh: Also exempt @@ lines from the comparison
23757         of diff output, since Solaris 5.10 and GNU diff formats differ.
23758         Reported by Stefano Lattarini.
23760 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23762         test-posixtm: don't assume signed integer wraparound
23763         * tests/test-posixtm.c (main): Don't assume wraparound semantics
23764         after signed integer overflow.  Inspired by (though it may not
23765         fix) Bruno Haible's bug report in
23766         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
23768         Spell out "Windows 9x" and "Windows XP".
23769         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
23770         "Windows 9x" and "WinXP" with "Windows XP".
23772 2012-01-04  Jim Meyering  <meyering@redhat.com>
23774         test-vc-list-files-cvs.sh: remove obsolete comment
23775         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
23776         double exit.  Now that's all encapsulated via skip_ and Exit.
23778 2012-01-04  Bruno Haible  <bruno@clisp.org>
23780         Talk about "native Windows API", not "Win32".
23781         * lib/classpath.c: Update comments to mention native Windows.
23782         * lib/csharpexec.c: Likewise.
23783         * lib/dup2.c: Likewise.
23784         * lib/error.c: Likewise.
23785         * lib/fcntl.c: Likewise.
23786         * lib/filename.h: Likewise.
23787         * lib/findprog.c: Likewise.
23788         * lib/get-rusage-as.c: Likewise.
23789         * lib/get-rusage-data.c: Likewise.
23790         * lib/getpagesize.c: Likewise.
23791         * lib/javaexec.c: Likewise.
23792         * lib/msvc-inval.c: Likewise.
23793         * lib/msvc-nothrow.c: Likewise.
23794         * lib/nanosleep.c: Likewise.
23795         * lib/nonblocking.c: Likewise.
23796         * lib/printf-parse.c: Likewise.
23797         * lib/setlocale.c: Likewise.
23798         * lib/sigaction.c: Likewise.
23799         * lib/strerror_r.c: Likewise.
23800         * lib/tmpdir.c: Likewise.
23801         * lib/vasnprintf.c: Likewise.
23802         * lib/w32spawn.h: Likewise.
23803         * lib/waitpid.c: Likewise.
23804         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
23805         * m4/locale-ar.m4: Likewise.
23806         * m4/locale-fr.m4: Likewise.
23807         * m4/locale-ja.m4: Likewise.
23808         * m4/locale-tr.m4: Likewise.
23809         * m4/locale-zh.m4: Likewise.
23810         * m4/printf.m4: Likewise.
23811         * tests/test-cloexec.c: Likewise.
23812         * tests/test-copy-acl.sh: Likewise.
23813         * tests/test-copy-file.sh: Likewise.
23814         * tests/test-file-has-acl.sh: Likewise.
23815         * tests/test-set-mode-acl.sh: Likewise.
23816         * tests/test-dup-safer.c: Likewise.
23817         * tests/test-dup2.c: Likewise.
23818         * tests/test-dup3.c: Likewise.
23819         * tests/test-fcntl.c: Likewise.
23820         * tests/test-nonblocking-pipe.h: Likewise.
23821         * tests/test-nonblocking-socket.h: Likewise.
23822         * tests/test-pipe.c: Likewise.
23823         * tests/test-pipe2.c: Likewise.
23824         * tests/test-spawn-pipe-child.c: Likewise.
23825         * doc/acl-resources.txt: Likewise.
23826         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
23827         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
23828         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
23829         * lib/localcharset.c: Update comments to mention native Windows.
23830         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
23831         * lib/localename.c: Likewise.
23832         * lib/progreloc.c: Likewise.
23833         * lib/relocatable.c: Likewise.
23834         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
23835         (windows_compute_revents): Renamed from win32_compute_revents.
23836         (windows_compute_revents_socket): Renamed from
23837         win32_compute_revents_socket.
23838         * lib/select.c: Update comments to mention native Windows.
23839         (windows_poll_handle): Renamed from win32_poll_handle.
23840         * m4/threadlib.m4: Update comments to mention native Windows.
23841         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
23842         --enable-threads=windows instead of --enable-threads=win32. Set
23843         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
23844         * lib/glthread/lock.h: Update comments to mention native Windows.
23845         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
23846         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
23847         USE_WIN32_THREADS.
23848         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
23849         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
23850         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
23851         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
23852         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
23853         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
23854         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
23855         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
23856         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
23857         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
23858         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
23859         * tests/test-tls.c: Likewise.
23860         Rationale:
23861         Microsoft renamed the "Win32 API" to "Windows API", as it is available
23862         on both 32-bit and 64-bit Windows systems.
23863         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
23864         line of distinction is between "native Windows" on one side and Unix/
23865         POSIX systems on the other side. More details in
23866         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
23867         Suggested by Paul Eggert.
23869 2012-01-03  Bruno Haible  <bruno@clisp.org>
23871         isatty: Support for MSVC 9.
23872         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
23873         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
23874         (_isatty_nothrow): New function.
23875         (isatty): Use it instead of _isatty.
23876         (IsConsoleHandle): Add comment, from Paolo Bonzini.
23877         * lib/poll.c (IsConsoleHandle): Likewise.
23878         * lib/select.c (IsConsoleHandle): Likewise.
23879         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
23880         (gl_PREREQ_ISATTY): New macro.
23881         * modules/isatty (Depends-on): Add msvc-inval.
23882         (configure.ac): Invoke gl_PREREQ_ISATTY.
23884 2012-01-03  Jim Meyering  <meyering@redhat.com>
23886         maint.mk: remove temporary transition aid from over 1.5 years ago
23887         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
23888         purpose was to aid in the transition (avoiding silent malfunction)
23889         from that old name to the new _sc_search_regexp.  This shim was
23890         added by commit 219c504b.
23892         init.sh: do not try to accommodate compare arguments starting with "-"
23893         * tests/init.sh (compare_dev_null_): Do not try to accommodate
23894         compare arguments that start with "-".  Besides, we do not worry
23895         about this when invoking diff or cmp; why start now with sed?
23896         Using "--" to separate options from argument would trigger sed
23897         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
23898         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
23900 2012-01-02  Bruno Haible  <bruno@clisp.org>
23902         Enhance tests for module 'isatty'.
23903         * modules/isatty-tests (Depends-on): Add pipe-posix.
23904         * tests/test-isatty.c: Include <fcntl.h>.
23905         (DEV_NULL): New macro.
23906         (main): Test the resut of isatty() also on regular files, pipes, and
23907         /dev/null.
23909         New module 'isatty'.
23910         * lib/unistd.in.h (isatty): New declaration.
23911         * lib/isatty.c: New file, based on an idea of
23912         Bastien Roucariès <roucaries.bastien@gmail.com>.
23913         * m4/isatty.m4: New file.
23914         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
23915         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
23916         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
23917         REPLACE_ISATTY.
23918         * modules/isatty: New file.
23919         * doc/posix-functions/isatty.texi: Mention the new module.
23920         Suggested by Paolo Bonzini.
23922 2012-01-02  Bruno Haible  <bruno@clisp.org>
23924         canonicalize: Tweak 2011-12-29 commit.
23925         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
23926         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
23928 2012-01-02  Jim Meyering  <meyering@redhat.com>
23930         gitlog-to-changelog: describe input syntax in --help output
23931         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
23933         gitlog-to-changelog: fix typo in --help: show backslash before email @
23934         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
23935         in sources, but not in actual output.
23937 2011-12-30  Jim Meyering  <meyering@redhat.com>
23939         gitlog-to-changelog: don't malfunction when name contains %-directive
23940         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
23941         in a name string cause trouble.  E.g., with a user name of "%s",
23942         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
23944 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
23946         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
23947         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
23948         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
23949         the "  (tiny change)" notation that is appended to the standard
23950         ChangeLog "date  name  email" header line.
23952 2012-01-01  Jim Meyering  <meyering@redhat.com>
23954         test-framework-sh: init.sh: fix "make dist" failure
23955         When using gnulib-tool's --with-tests option and any module that
23956         depends on test-framework-sh, "make dist" would fail due to the
23957         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
23958         in the gltests directory, and not in the gllib/ directory.
23959         One way to work around that is to move the EXTRA_DIST += init.sh
23960         from the primary module to the -tests one:
23961         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
23962         * modules/test-framework-sh (Makefile.am): ...not here.
23963         Reported by Tom G. Christensen in
23964         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
23966         version-etc: update copyright year reported by --version
23967         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
23969 2011-12-31  Pádraig Brady  <P@draigBrady.com>
23971         canonicalize: only stat() if required
23972         * lib/canonicalize.c (canonicalize_filename_mode):
23973         Avoid calling l?stat() when both CAN_MISSING,
23974         and CAN_NOLINKS are set, as we neither need
23975         to resolve symlinks or test component existence.
23977 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
23979         doc: cover st_ino issues once; add OpenVMS etc.
23980         * doc/posix-functions/stat.texi (stat):
23981         * doc/posix-functions/lstat.texi (lstat):
23982         * doc/posix-functions/fstatat.texi (fstatat):
23983         * doc/posix-functions/fstat.texi (fstat):
23984         Move general 'struct stat' stuff to sys_stat.texi,
23985         leaving behind a pointer.
23986         * doc/posix-headers/sys_stat.texi (sys/stat.h):
23987         Merge duplicate info about 'struct stat' problems into here.
23988         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
23989         and suggest partial workarounds.
23991         same-inode: port to OpenVMS
23992         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
23993         three st_ino values.
23995 2011-12-30  Pádraig Brady  <P@draigBrady.com>
23997         canonicalize: fix references to stat() and lstat()
23998         * lib/canonicalize.c (canonicalize_filename_mode):
23999         Ensure references always resolve to a replacement
24000         function if required (even via a macro).
24002 2011-12-30  Jim Meyering  <meyering@redhat.com>
24004         gitlog-to-changelog: remove a little duplication
24005         * build-aux/gitlog-to-changelog (main): Grep @lines once,
24006         rather than twice.
24008 2011-12-29  Pádraig Brady  <P@draigBrady.com>
24010         canonicalize: add support for not resolving symlinks
24011         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
24012         indicate we don't want to follow symlinks.  Also
24013         provide CAN_MODE_MASK to aid setting these existing
24014         mutually exclusive values.
24015         * lib/canonicalize.c (canonicalize_filename_mode):
24016         Extract the flags from can_mode parameter, which
24017         are currently just used to select between stat()
24018         and lstat().  Also ensure that mutually exclusive
24019         values are flagged immediately as invalid.
24020         * tests/test-canonicalize.c: Verify symlinks are
24021         not followed, and that invalid flag combinations
24022         are diagnosed.
24024 2011-12-25  Jim Meyering  <meyering@redhat.com>
24026         gitlog-to-changelog: do not clump multi-paragraph entries
24027         Identical header lines (date,name,email+coauthors) are suppressed,
24028         thus putting all entries with those same characteristics under
24029         a single header.  However, when a log entry consists of two or
24030         more paragraphs, it may not be clear where it starts and ends.
24031         This change makes it so that such an entry is always separated
24032         from others by a header line, even when that header would
24033         otherwise be suppressed.
24034         * build-aux/gitlog-to-changelog: Implement the above.
24035         Inspired by a related request from Stefano Lattarini in
24036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
24038 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24040         announce-gen: fix `cmd' typo in diagnostic
24041         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
24042         diagnostic: a missing '$' meant that the command was not output.
24044 2011-12-23  Jim Meyering  <meyering@redhat.com>
24046         test-framework-sh: distribute init.sh
24047         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
24048         Otherwise, "make -C gnulib-tests check" (at least in grep) would
24049         fail due to the lack of init.sh.
24051         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
24052         * modules/atexit-tests: Rather than listing tests/init.sh,
24053         now that there's a module for it, simply depend on that new module.
24054         * modules/closein-tests: Likewise.
24055         * modules/exclude-tests: Likewise.
24056         * modules/getcwd-tests: Likewise.
24057         * modules/perror-tests: Likewise.
24058         * modules/pread-tests: Likewise.
24059         * modules/pwrite-tests: Likewise.
24060         * modules/vc-list-files-tests: Likewise.
24061         * modules/verify-tests: Likewise.
24062         * modules/xalloc-die-tests: Likewise.
24063         * modules/xstrtoimax-tests: Likewise.
24064         * modules/xstrtol-tests: Likewise.
24065         * modules/xstrtoll-tests: Likewise.
24066         * modules/xstrtoumax-tests: Likewise.
24067         * modules/yesno-tests: Likewise.
24069 2011-12-22  Jim Meyering  <meyering@redhat.com>
24071         test-framework-sh: add minimal tests of init.sh's compare function
24072         * modules/test-framework-sh-tests: New file.
24073         * tests/test-init.sh: New file.
24075         test-framework-sh: new module
24076         * modules/test-framework-sh: New file.
24077         * MODULES.html.sh (Support for maintaining and releasing projects):
24078         List it.
24080         init.sh: do not emit simulated diff output to stderr
24081         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
24083 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
24085         .gitignore: ignore gnulib.dvi and regex.info
24086         * doc/.gitignore:add gnulib.dvi and regex.info
24088 2011-12-22  Jim Meyering  <meyering@redhat.com>
24090         init.sh: correct previous change
24091         * tests/init.sh (compare): My previous change was wrong.
24092         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
24094         init.sh: avoid unwarranted test failure when using "set -e"
24095         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
24096         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
24097         a use like "compare exp out" would get evoke an unconditional failure.
24099 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
24101         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
24102         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
24103         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
24104         autoreconf that did not.
24105         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
24106         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
24108 2011-12-17  Jim Meyering  <meyering@redhat.com>
24110         bootstrap: remove some now-unneeded code
24111         This script arose back when gnulib-tool was young.
24112         Since then, it has seen improvements that render much of this
24113         script unnecessary.  In particular, it can now make symlinks
24114         to the files it uses.  Also, I no longer see as much value in
24115         marking files as read-only via comments.
24116         If you relied on the symlink-creation feature of the preceding
24117         version of this script, you can get most of that functionality
24118         by adding the --symlink option to the definition of
24119         gnulib_tool_option_extras in your bootstrap.conf file.
24120         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
24121         Run autopoint and libtoolize *before* gnulib-tool.
24122         After it, run an abbreviated autoreconf, rather than a loop around
24123         all tools.
24124         (slirp, bt_mark_as_generated): Remove functions.
24126 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24128         ftoastr: fix typo
24129         * lib/ftoastr.h: Fix misspelling in comment.
24131 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
24133         * top/README-release: fix punctuation.
24135 2011-12-17  Jim Meyering  <meyering@redhat.com>
24137         bootstrap: correct the recent buildreq change
24138         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
24139         had no effect.
24140         * build-aux/bootstrap (buildreq): Bracket each search term with
24141         "*...*", so that the shell "case" statement works as intended.
24142         Add comments.
24144 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
24146         build: let bootstrap resort to wget when downloading .po files
24147         * build-aux/bootstrap (download_po_files): Fallback to wget when
24148         downloading the .po files via rsync fails.  This is necessary to
24149         bootstrap from behind a strict firewall.
24151 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24153         stdint: don't assume C++11 when compiling with g++
24154         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
24155         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
24156         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
24157         work also in C++ before C++11, as that improperly inhibits
24158         generating a substitute stdint.h for that case.
24160 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
24162         alloca: protect comment from gnulib-tool
24163         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
24164         that gnulib-tool doesn't think it's a license, and munge it to
24165         say "GCC version 3".
24167 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
24169         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
24170         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
24171         $(abs_top_builddir) instead of $(top_builddir).
24173 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
24175         strftime-tests: also test nanoseconds
24176         * tests/test-strftime.c (T): Add a test of %N.
24178 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
24180         inttypes, stdint: add C++11 support
24181         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
24182         when including inttypes.h and stdint.h.  Support this change to
24183         the standard.
24184         * doc/posix-headers/inttypes.texi (inttypes.h):
24185         * doc/posix-headers/stdint.texi (stdint.h): Document this.
24186         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
24187         Define if not defined already, for the benefit of pre-C++11 hosts.
24188         Define the standard format macros (e.g., PRId8) always.
24189         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
24190         Likewise, if __cpluspus.  Define the standard constant and limit
24191         macros (e.g., INT8_C, INT8_MAX) always.
24192         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
24193         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
24194         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
24195         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
24196         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
24197         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
24198         Likewise.
24200 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
24202         nonblocking tests: Fix test failure on Linux/PPC.
24203         Suggested by Prerna Saxena in
24204         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
24205         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
24206         Set to 1100000.
24208 2011-12-12  Jim Meyering  <meyering@redhat.com>
24210         argmatch: don't hard-code `' when listing valid option arguments
24211         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
24212         use the quote function to add quotes.  Use fputs rather than
24213         fprintf for the format string with no format directive.
24215 2011-12-07  Eric Blake  <eblake@redhat.com>
24217         bootstrap: detect tools required by gnulib-tool
24218         * build-aux/bootstrap (buildreq): Provide minimum implicit
24219         dependencies.
24220         * DEPENDENCIES: Mention patch as a prereq.
24222 2011-12-04  Bruno Haible  <bruno@clisp.org>
24224         sethostname: Port to Windows platforms.
24225         * lib/sethostname.c: Provide an alternate implementation for Windows
24226         platforms.
24227         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
24228         (main): Skip the test if sethostname() fails with EPERM. On Windows
24229         platforms, don't check the result of gethostname().
24231 2011-12-04  Bruno Haible  <bruno@clisp.org>
24232             Jim Meyering  <meyering@redhat.com>
24234         tests: Avoid spurious error message on platforms without mktemp program.
24235         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
24237 2011-12-04  Bruno Haible  <bruno@clisp.org>
24239         sethostname: Fix documentation.
24240         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
24241         "not fixed" section.
24243 2011-12-03  Bruno Haible  <bruno@clisp.org>
24245         gnulib-tool: Verify that the License field is present and non-empty.
24246         * gnulib-tool (func_get_license_raw): New function, extracted from
24247         func_get_license.
24248         (func_get_license): Use it. Warn if the module is not a test module and
24249         has no license.
24250         Suggested by Jim Meyering.
24252 2011-12-03  Bruno Haible  <bruno@clisp.org>
24254         sethostname tests: Fix link error on mingw.
24255         * tests/test-sethostname1.c: New file, extracted from
24256         tests/test-sethostname.c.
24257         * tests/test-sethostname2.c: New file, extracted from
24258         tests/test-sethostname.c.
24259         * tests/test-sethostname.c: Remove file.
24260         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
24261         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
24262         (Depends-on): Add gethostname.
24263         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
24264         Link the latter with $(GETHOSTNAME_LIB).
24266         sethostname tests: Fix compilation error on mingw.
24267         * tests/test-sethostname.c: Don't include <sys/types.h>.
24268         (geteuid): Use a dummy value without uid_t.
24269         * modules/sethostname-tests (Depends-on): Remove sys_types.
24271         sethostname tests: Avoid a gcc warning.
24272         * tests/test-sethostname.c (main): Remove an unused variable.
24274         Tweak last commit.
24275         * modules/sethostname-tests (Files): Sort by decreasing importance.
24276         (configure.ac): Check for geteuid.
24277         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
24278         the test when there's nothing to test. Drop an unnecessary cast.
24279         Improve an error message. Verify that the final sethostname() call
24280         succeeds.
24282 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24284         Add a test suite for the sethostname module.
24285         * modules/sethostname-tests: New file.  A test program
24286         for the sethostname module.
24287         * tests/test-sethostname.c: Likewise.
24289 2011-12-03  Bruno Haible  <bruno@clisp.org>
24291         Tweak last commit.
24292         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
24293         Fix preprocessor directives indentation. Fix typos.
24294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
24295         * modules/unistd (Makefile): Likewise.
24297 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24299         Integrate the sethostname module into unistd.
24300         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
24301         into the unistd.h header.
24302         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
24303         preprocessor directives.
24304         * modules/unistd: Setup the Makefile substitutions of the
24305         SETHOSTNAME preprocessor directives.
24307 2011-12-03  Bruno Haible  <bruno@clisp.org>
24309         Tweak last commit.
24310         * lib/sethostname.c: Don't include <string.h>.
24311         (sethostname): No need to copy the argument string to the stack. Don't
24312         call clearerr. Preserve errno when fprintf failed.
24313         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
24314         Don't invoke AC_REPLACE_FUNCS.
24315         * modules/sethostname (Link): Remove empty section.
24316         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
24317         failure problem.
24319 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24321         New module 'sethostname'.
24322         * lib/sethostname.c (sethostname): New file.  Provide sethostname
24323         for systems that lack it.
24324         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
24325         sethostname declaration and function.
24326         * modules/sethostname: New file.  Define the sethostname module.
24328 2011-12-03  Bruno Haible  <bruno@clisp.org>
24330         Tweak last commit.
24331         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
24333 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24335         Split the HOST_NAME_MAX detection into a separate m4 macro.
24336         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
24337         macro so it can be used by the pending sethostname module.
24339 2011-12-03  Bruno Haible  <bruno@clisp.org>
24341         Fix module descriptions syntax.
24342         * modules/argv-iter (License): Fix syntax.
24343         * modules/di-set (License): Likewise.
24344         * modules/ino-map (License): Likewise.
24345         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
24347 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24349         stdalign: port to Clang 3.0
24350         Problem reported by Simon Josefsson in
24351         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
24352         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
24353         which has <stdalign.h> but which does not define alignof.
24354         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
24356 2011-12-01  Eric Blake  <eblake@redhat.com>
24358         mktempd: silence dd usage
24359         * build-aux/mktempd (rand_bytes): Silence dd.
24361 2011-11-30  Simon Josefsson  <simon@josefsson.org>
24363         manywarnings: Don't mention gcc version in docstring.
24364         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
24365         Jim Meyering <meyering@redhat.com>.
24367 2011-11-30  Jim Meyering  <meyering@redhat.com>
24369         hash: mark a few floating point constants with "f" suffix
24370         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
24371         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
24372         floating point constants with "f", since they're destined to be
24373         saved/used as "float"s.
24375 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
24377         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
24378         * tests/test-float.c (test_long_double): Correct and re-enable the
24379         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
24381 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
24383         Avoid subtracting two pointers that don't point into the same block.
24384         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
24385         only pointers into the same memory block are subtracted. We cannot
24386         assume that sizeof (ptrdiff_t) == sizeof (void *).
24388 2011-11-29  Eric Blake  <eblake@redhat.com>
24390         maint.mk: add syntax check for use of compare from init.sh
24391         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
24392         moved here from coreutils.
24394         manywarnings: drop -Wunsuffixed-float-constants
24395         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
24396         '1.0D', which is the only way to silence this warning for 'double'.
24398 2011-11-29  Jim Meyering  <meyering@redhat.com>
24400         hash: mark compute_bucket_size with the pure attribute
24401         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
24403         quotearg, propername: correct pragma guard expression
24404         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
24405         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
24407 2011-11-28  Jim Meyering  <meyering@redhat.com>
24409         propername: do not mark proper_name with the const attribute
24410         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
24411         since it examines data pointed to by its parameter.
24412         * lib/propername.c (proper_name): Instead, add a pragma to suppress
24413         the suggestion from -Wsuggest-attribute=const.
24415         propername: mark one more function as const
24416         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
24418 2011-11-27  Jim Meyering  <meyering@redhat.com>
24420         mark functions with const and pure attributes
24422         Mark functions per suggestions from gcc-4.6 when using these options:
24423         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
24424         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
24425         Follow these guidelines: when possible, apply the attribute to
24426         an extern declaration, not to its definition.  Apply it to the
24427         definition only when the definition is static.
24428         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
24429         * lib/argv-iter.h (argv_iter_n_args): Likewise.
24430         * lib/base64.h (isbase64): Likewise.
24431         * lib/basename-lgpl.c (last_component, base_len): Likewise.
24432         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
24433         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
24434         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
24435         (c_tolower, c_toupper): Likewise.
24436         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
24437         * lib/chdir-long.c (find_non_slash): Likewise.
24438         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
24439         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
24440         * lib/file-type.h (file_type): Likewise.
24441         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
24442         * lib/filevercmp.c (verrevcmp): Likewise.
24443         * lib/freadahead.h (freadahead): Likewise.
24444         * lib/fts.c (fts_maxarglen): Likewise.
24445         * lib/hash-pjw.h (hash_pjw): Likewise.
24446         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
24447         * lib/hash.c (is_prime, next_prime): Likewise.
24448         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
24449         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
24450         (hash_table_ok, hash_get_first, hash_string): Likewise.
24451         (compute_bucket_size): Likewise.
24452         * lib/i-ring.h (i_ring_empty): Likewise.
24453         * lib/isnan.c (isnanl): Likewise.
24454         * lib/math.h (isnanl, rpl_isnanl): Likewise.
24455         * lib/memcasecmp.h (memcasecmp): Likewise.
24456         * lib/memchr2.h (memchr2): Likewise.
24457         * lib/memcmp2.h (memcmp2): Likewise.
24458         * lib/parse-datetime.y (lookup_zone): Likewise.
24459         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
24460         [!WINDOWS_SOCKETS]: Likewise.
24461         * lib/strnlen1.h (strnlen1): Likewise.
24462         * lib/uniwidth.in.h (uc_width): Likewise.
24463         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
24464         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
24465         (quoting_options_from_style): Add a comment.
24466         * lib/propername.h (proper_name): Add a comment.
24468 2011-11-27  Bruno Haible  <bruno@clisp.org>
24470         Remove unused macros from !_LIBC code in glibc-borrowed files.
24471         * lib/fnmatch.c (STRCOLL): Remove macro.
24472         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
24473         * lib/glob.c (__stat, __readdir64): Remove macros.
24474         * lib/tempname.c (__open64, __xstat64): Remove macros.
24475         Suggested by Paul Eggert.
24477 2011-11-27  Bruno Haible  <bruno@clisp.org>
24479         getcwd: Fix link error on MSVC 9.
24480         * modules/getcwd (Depends-on): Add readdir, rewinddir.
24482 2011-11-27  Bruno Haible  <bruno@clisp.org>
24484         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
24485         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
24486         HAVE_OPENDIR is 0.
24487         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
24488         HAVE_CLOSEDIR is 0.
24489         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
24490         is 0.
24491         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
24493 2011-11-27  Bruno Haible  <bruno@clisp.org>
24495         getcwd: Fix bug from 2011-08-17.
24496         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
24497         platforms that need it.
24498         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
24499         code of 4 to be a failure, not a success. This ensures that
24500         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
24502 2011-11-27  Bruno Haible  <bruno@clisp.org>
24504         binary-io tests: Avoid test failure on mingw when libtool is used.
24505         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
24506         Don't verify the size of t-bin-out1.tmp here.
24507         * tests/test-binary-io.sh: Verify it here.
24508         Reported by Simon Josefsson.
24510 2011-11-26  Bruno Haible  <bruno@clisp.org>
24512         Fix conflict between two instantiations of module 'unistd'.
24513         * gnulib-tool (func_emit_autoconf_snippet): Substitute
24514         ${include_guard_prefix} also in the autoconf snippet.
24515         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
24516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
24517         GNULIB_UNISTD_H_GETOPT.
24518         * modules/getopt-posix (configure.ac): Set the
24519         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
24520         * modules/getopt-gnu (configure.ac): Likewise.
24521         * modules/unistd (Makefile.am): Change the substitution value of
24522         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
24523         Reported by Simon Josefsson.
24525 2011-11-25  Bruno Haible  <bruno@clisp.org>
24527         pagealign_alloc: Doc and comments.
24528         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
24529         module.
24530         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
24532 2011-11-25  Jim Meyering  <meyering@redhat.com>
24534         test-update-copyright.sh: avoid false-positive failure
24535         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
24536         around false positive failure on Cygwin/Windows.  The latter was
24537         matching erroneously-created files with names like
24538         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
24540 2011-11-25  Simon Josefsson  <simon@josefsson.org>
24542         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
24543         * m4/valgrind-tests.m4: Check that the parameters that will be
24544         used works, not just a subset of them.  Reported by Bruno Haible
24545         <bruno@clisp.org>.
24547 2011-11-24  Jim Meyering  <meyering@redhat.com>
24549         test-stdalign.c: comment out long double tests
24550         * tests/test-stdalign.c: Don't try to reduce alignment of long double
24551         variables.  That provokes errors like this from gcc-4.7.0 20111124:
24552         error: '_Alignas' specifiers cannot reduce alignment of \
24553         'static_longdouble_alignas'.
24555 2011-11-22  Jim Meyering  <meyering@redhat.com>
24557         init.sh: make "compare /dev/null FILE" output more readable
24558         * tests/init.sh (compare_): Document the preferred order of arguments.
24559         (emit_diff_u_header_): New function.
24560         (compare_dev_null_): Emit a simulated diff, rather than just the
24561         contents of the unexpected file.  Suggestion from Bruno Haible.
24563 2011-11-21  Jim Meyering  <meyering@redhat.com>
24564             Eric Blake  <eblake@redhat.com>
24566         init.sh: work around OSF/1 5.1's mishandling of /dev/null
24567         * tests/init.sh: Make our compare function slightly more portable.
24568         Reported by Bruno Haible in
24569         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
24571 2011-11-21  Simon Josefsson  <simon@josefsson.org>
24573         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
24574         before using it, in code that ends up in config.h.
24576 2011-11-20  Bruno Haible  <bruno@clisp.org>
24578         getcwd: Work around getcwd bug on AIX 5..7.
24579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
24580         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
24581         Use a different value for gl_cv_func_getcwd_path_max. Move the
24582         definition of HAVE_PARTLY_WORKING_GETCWD from here...
24583         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
24584         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
24585         Define HAVE_MINIMALLY_WORKING_GETCWD.
24586         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
24587         where it is not even minimally working, that is, on AIX.
24588         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
24589         m4/getcwd-path-max.m4.
24590         (main): Update exit code computation.
24591         * doc/posix-functions/getcwd.texi: Mention list of platforms where
24592         getcwd does not handle long file names.
24594 2011-11-20  Bruno Haible  <bruno@clisp.org>
24596         getcwd: Fix bug from 2009-09-10.
24597         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
24598         like "no".
24600 2011-11-20  Simon Josefsson  <simon@josefsson.org>
24602         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
24604 2011-11-20  Bruno Haible  <bruno@clisp.org>
24606         fma tests: Avoid shadowing local variables.
24607         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
24608         expected.
24610 2011-11-20  Bruno Haible  <bruno@clisp.org>
24612         copysignf tests: Fix.
24613         * tests/test-copysignf.c: Fix signature check.
24615 2011-11-20  Bruno Haible  <bruno@clisp.org>
24617         fma: Remove unused code.
24618         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
24619         unused macros.
24621 2011-11-20  Bruno Haible  <bruno@clisp.org>
24623         sethostname: Fix doc about AIX.
24624         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
24625         sethostname; it has it.
24627         sethostname: Mention more portability problems.
24628         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
24629         problem.
24630         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24632 2011-11-19  Bruno Haible  <bruno@clisp.org>
24634         Depend on module fcntl-h when AT_FDCWD is used.
24635         * modules/utimens (Depends-on): Add fcntl-h.
24636         * modules/areadlinkat (Depends-on): Likewise.
24637         * modules/areadlinkat-with-size (Depends-on): Likewise.
24638         * modules/faccessat (Depends-on): Likewise.
24639         * modules/fchmodat (Depends-on): Likewise.
24640         * modules/fchownat (Depends-on): Likewise.
24641         * modules/getcwd (Depends-on): Likewise.
24642         * modules/mkdirat (Depends-on): Likewise.
24643         * modules/mkfifoat (Depends-on): Likewise.
24644         * modules/readlinkat (Depends-on): Likewise.
24645         * modules/symlinkat (Depends-on): Likewise.
24646         * modules/dup2-tests (Depends-on): Likewise.
24647         * modules/fdutimensat-tests (Depends-on): Likewise.
24648         * modules/futimens-tests (Depends-on): Likewise.
24650 2011-11-19  Bruno Haible  <bruno@clisp.org>
24652         euidaccess: Update a comment.
24653         * lib/euidaccess.c: Update comment about platforms with faccessat.
24655 2011-11-19  Bruno Haible  <bruno@clisp.org>
24657         openat: Fix file list.
24658         * modules/openat (Files): Remove lib/at-func.c.
24660 2011-11-19  Bruno Haible  <bruno@clisp.org>
24662         fstatat: Simplify.
24663         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
24664         gnulib should define rpl_fstatat, there is a
24665         "#define fstatat rpl_fstatat" in <sys/stat.h>.
24667 2011-11-19  Bruno Haible  <bruno@clisp.org>
24669         Ensure 'inline' can be used in tests/test-utimens-common.h.
24670         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
24671         * modules/futimens-tests (configure.ac): Likewise.
24672         * modules/utimens-tests (configure.ac): Likewise.
24673         * modules/utimensat-tests (configure.ac): Likewise.
24675 2011-11-19  Simon Josefsson  <simon@josefsson.org>
24677         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
24678         not hash_insert0.
24679         (hash_insert_if_absent): Doc fix.
24681 2011-11-19  Simon Josefsson  <simon@josefsson.org>
24683         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
24685 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24687         test-getcwd: disambiguate exit status
24688         * tests/test-getcwd.c (test_long_name): Return 0..7.
24689         (main): Exit with an unambiguous exit status.  The old
24690         code yielded a mysterious mixture of two failure codes.
24692         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
24693         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
24694         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
24695         rpl_fstatat or fstatat.  This should fix the other problem
24696         reported by Kai Habel in
24697         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
24698         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
24699         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
24700         and I reproduced it on a Solaris 8 host we still have in production.
24702 2011-11-18  Jim Meyering  <meyering@redhat.com>
24704         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
24705         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
24706         Add a sentence to the comment.
24707         (hash_insert0): New function that simply calls hash_insert_if_absent.
24708         * lib/hash.h (hash_insert_if_absent): Declare it.
24709         (hash_insert0): Add deprecation attribute.
24710         (_GL_ATTRIBUTE_DEPRECATED): Define.
24711         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
24712         not hash_insert0.
24713         * NEWS: Mention it, even though it's not really an incompatible change.
24715 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
24717         openat: avoid compilation failure due to lack of <errno.h> inclusion
24718         * lib/openat.c: Include <errno.h>.
24720 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24722         * modules/getcwd (Depends-on): Add fdopendir.
24723         This fixes one of the two problems reported by Kai Habel in
24724         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
24726         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
24727         stdalign problem reported by Ian Beckwith in
24728         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
24729         * modules/crypto/gc-arcfour (Depends-on):
24730         Depend conditionally on crypto/arcfour.
24731         * modules/crypto/gc-arctwo (Depends-on):
24732         Depend conditionally on crypto/arctwo.
24733         * modules/crypto/gc-des (Depends-on):
24734         Depend conditionally on crypto/des.
24735         * modules/crypto/gc-hmac-md5 (Depends-on):
24736         Depend conditionally on crypto/hmac-md5.
24737         * modules/crypto/gc-hmac-sha1 (Depends-on):
24738         Depend conditionally on crypto/hmac-sha1.
24739         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
24740         * modules/crypto/gc-md4 (Depends-on):
24741         Depend conditionally on crypto/md4.
24742         * modules/crypto/gc-md5 (Depends-on):
24743         Depend conditionally on crypto/md5.
24744         * modules/crypto/gc-rijndael (Depends-on):
24745         Depend conditionally on crypto/rijndael.
24746         * modules/crypto/gc-sha1 (Depends-on):
24747         Depend conditionally on crypto/sha1.
24748         * modules/crypto/gc-arcfour:
24749         * modules/crypto/gc-arctwo:
24750         * modules/crypto/gc-des:
24751         * modules/crypto/gc-hmac-md5:
24752         * modules/crypto/gc-hmac-sha1:
24753         * modules/crypto/gc-md2:
24754         * modules/crypto/gc-md4:
24755         * modules/crypto/gc-md5:
24756         * modules/crypto/gc-rijndael:
24757         * modules/crypto/gc-sha1:
24758         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
24759         now that the conditional dependencies do the work for us.
24761 2011-11-17  Jim Meyering  <meyering@redhat.com>
24763         tests: factor st_ctime-comparison out of two headers
24764         * tests/test-utimens-common.h (ctime_compare): Define.
24765         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
24766         * tests/test-lutimens.h (test_lutimens): Likewise.
24767         * tests/test-utimens.h (test_utimens): Likewise.
24769         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
24770         Invoke the test program via an init.sh-using wrapper.
24771         * tests/test-getcwd.sh: New file.
24772         * modules/getcwd-tests (Files): Add it.
24773         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
24775 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
24777         gitlog-to-changelog: support multi-author commits.
24778         The FSF cares about keeping track of all authors of patches to its
24779         projects, but Git doesn't provide obvious support for multi-author
24780         changesets. Consensus seems to be forming around the use of extra
24781         Signed-off-by inspired lines in the log message formatted as
24782         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
24783         multi-author commits between version control systems.
24784         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
24785         log message and output in standard ChangeLog multi-author format.
24786         Reported by Peter Rosin <peda@lysator.liu.se>
24788 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24789             Bruno Haible  <bruno@clisp.org>
24791         Fix some modules' file list.
24792         * modules/fstatat (Files): Add m4/lstat.m4.
24793         * modules/openat (Files): Likewise.
24794         * modules/unlinkat (Files): Likewise.
24796 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
24798         maint.mk: fix tight-scope.mk generation in VPATH builds.
24799         * top/maint.mk (tight-scope.mk): Make sure to prefix file
24800         reference with $(srcdir) so that the file is found correctly even
24801         when running `make syntax-check' in a VPATH build.
24803 2011-11-13  Bruno Haible  <bruno@clisp.org>
24804             Jim Meyering  <meyering@redhat.com>
24806         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
24807         * tests/init.sh (compare): Remove "No differences encountered" or
24808         synonymous output from the 'diff' program.
24810 2011-11-13  Bruno Haible  <bruno@clisp.org>
24812         Makefile: Tweak indentation.
24813         * Makefile: Use tab as first character in every line that contains rule
24814         commands.
24816 2011-11-13  Bruno Haible  <bruno@clisp.org>
24818         Syntax check for copyright statements.
24819         * check-copyright: New file.
24820         * Makefile (sc_check_copyright): New rule.
24822 2011-11-13  Simon Josefsson  <simon@josefsson.org>
24824         * build-aux/git-version-gen: Add --prefix to configure the tag
24825         match string.
24827 2011-11-13  Simon Josefsson  <simon@josefsson.org>
24829         * build-aux/git-version-gen: Add --help and --version.
24831 2011-11-12  Jim Meyering  <meyering@redhat.com>
24833         revamp the other test-exclude?.sh scripts to use init.sh, too
24834         * tests/test-exclude1.sh: Use init.sh.
24835         * tests/test-exclude2.sh: Likewise.
24836         * tests/test-exclude3.sh: Likewise.
24837         * tests/test-exclude4.sh: Likewise.
24838         * tests/test-exclude5.sh: Likewise.
24839         * tests/test-exclude6.sh: Likewise.
24840         * tests/test-exclude7.sh: Likewise.
24841         * tests/test-exclude8.sh: Likewise.
24842         * modules/exclude-tests (Files): List init.sh.
24844         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
24845         These shell scripts ignored failure of the binary test-exclude,
24846         so making the latter return 77 didn't cause them to be skipped.
24847         * tests/test-exclude5.sh: Exit with test-exclude's error status
24848         when that program fails.  Revamp to use init.sh.
24849         * tests/test-exclude2.sh: Likewise.
24851         test-exclude: fix a typo
24852         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
24854 2011-11-11  Bruno Haible  <bruno@clisp.org>
24856         obstack: Fix compilation error on MSVC 9.
24857         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
24859 2011-11-11  Jim Meyering  <meyering@redhat.com>
24861         test-exclude: skip tests rather than failing on deficient systems
24862         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
24863         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
24864         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
24865         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
24867 2011-11-10  Bruno Haible  <bruno@clisp.org>
24869         ptsname_r test: Avoid gcc warning on glibc systems.
24870         * tests/test-ptsname_r.c (null_ptr): New function.
24871         (test_errors): Use it.
24873 2011-11-10  Bruno Haible  <bruno@clisp.org>
24875         ptsname_r: Avoid compilation error on OSF/1 5.1.
24876         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
24877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
24878         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
24879         function is not declared or incompatibly declared.
24880         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
24881         * modules/ptsname_r (Depends-on, configure.ac): Update.
24882         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
24884 2011-11-10  Bruno Haible  <bruno@clisp.org>
24886         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
24887         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
24888         When cross-compiling, guess yes on all platforms except AIX.
24889         Reported by Ludovic Courtès <ludo@gnu.org>.
24891 2011-11-09  Bruno Haible  <bruno@clisp.org>
24893         ptsname_r tests: Fix bugs.
24894         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
24895         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
24897 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
24899         fstatat: work with cross-compilation
24900         Problem reported by Ludovic Courtès in
24901         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
24902         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
24903         "cross-compiling" and assume the bug is present.  Replace
24904         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
24905         an inverted sense, to be more conservative about our assumptions.
24906         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
24908 2011-11-09  Bruno Haible  <bruno@clisp.org>
24910         Improve MODULES.html output.
24911         * modules/mkfifoat (Description): Use the word "function".
24912         * modules/readlinkat (Description): Likewise.
24913         * modules/symlinkat (Description): Likewise.
24915 2011-11-09  Eric Blake  <eblake@redhat.com>
24917         ptsname_r-tests: new test module
24918         * modules/ptsname_r-tests: New module.
24919         * tests/test-ptsname_r.c: New file.
24921         ptsname_r: new module
24922         * modules/ptsname_r: New module.
24923         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
24924         * lib/ptsname.c (__ptsname_r): Split...
24925         * lib/ptsname_r.c: ...into new file.
24926         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
24927         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
24928         * modules/stdlib (Makefile.am): Substitute witnesses.
24929         * lib/stdlib.in.h (ptsname_r): Declare it.
24930         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
24931         * MODULES.html.sh (Misc): Likewise.
24932         * modules/ptsname (Depends-on): Alter dependency.
24933         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
24935 2011-11-09  Jim Meyering  <meyering@redhat.com>
24937         announce-gen: be more concise when there's only one URL+tarball
24938         * build-aux/announce-gen (get_tool_versions): When you distribute
24939         only one type of tarball, combine the first two "Here are..."
24940         sections and make the key-checking grammar independent of
24941         how many tarballs there are.
24943 2011-11-09  Eric Blake  <eblake@redhat.com>
24945         openpty: provide a stub on mingw
24946         * lib/pty.in.h (includes): Provide forward declarations.
24947         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
24949         raise: fix mingw handling of SIGPIPE
24950         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
24952 2011-11-08  Bruno Haible  <bruno@clisp.org>
24954         More conditional dependencies.
24955         * modules/faccessat (Depends-on): Add conditions.
24956         * modules/fchmodat (Depends-on): Likewise.
24957         * modules/fchownat (Depends-on): Likewise.
24958         * modules/fstatat (Depends-on): Likewise.
24959         * modules/mkfifoat (Depends-on): Likewise.
24960         * modules/readlinkat (Depends-on): Likewise.
24961         * modules/symlinkat (Depends-on): Likewise.
24962         * modules/unlinkat (Depends-on): Likewise.
24963         * modules/utimensat (Depends-on): Likewise.
24964         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
24965         * modules/linkat (Depends-on): Refine the conditions.
24966         * modules/renameat (Depends-on): Likewise.
24968 2011-11-08  Bruno Haible  <bruno@clisp.org>
24970         faccessat: Move AC_LIBOBJ invocation to module description.
24971         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
24972         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
24973         invocation from here...
24974         * modules/faccessat (configure.ac): ... to here. Invoke
24975         gl_PREREQ_FACCESSAT.
24977 2011-11-08  Bruno Haible  <bruno@clisp.org>
24979         faccessat: Simplify autoconf macro.
24980         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
24981         gl_FUNC_EUIDACCESS.
24983 2011-11-08  Bruno Haible  <bruno@clisp.org>
24985         renameat: Fix dependencies.
24986         * modules/renameat (Depends-on): Add stdbool.
24988 2011-11-08  Bruno Haible  <bruno@clisp.org>
24990         mkfifoat: Fix module description.
24991         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
24992         not gl_UNISTD_MODULE_INDICATOR.
24994 2011-11-08  Bruno Haible  <bruno@clisp.org>
24996         fstatat: Remove unused dependency.
24997         * modules/fstatat (Depends-on): Remove fstat.
24999 2011-11-08  Simon Josefsson  <simon@josefsson.org>
25001         GNUmakefile: behave when Makefile is missing.
25002         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
25004 2011-11-08  Bruno Haible  <bruno@clisp.org>
25006         openat: Conditionalize dependencies.
25007         * lib/openat.c: Reduce the scope of some #includes.
25008         * modules/openat (Depends-on): Add conditions.
25010 2011-11-07  Jim Meyering  <meyering@redhat.com>
25012         maint.mk: extract GPG key ID without using a temporary file
25013         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
25014         without using a temporary file.  Based on a suggestion from Werner Koch
25015         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
25017 2011-11-07  Eric Blake  <eblake@redhat.com>
25019         grantpt: fix typo
25020         * lib/stdlib.in.h (grantpt): Check correct function.
25022         maint.mk: silence new syntax check
25023         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
25025 2011-11-06  Bruno Haible  <bruno@clisp.org>
25027         Doc about floating-point and math API.
25028         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
25029         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
25031 2011-11-06  Bruno Haible  <bruno@clisp.org>
25033         stdalign tests: Skip the test when compiled by Sun C.
25034         * tests/test-stdalign.c (main): Skip the test on Sun C.
25036 2011-11-06  Bruno Haible  <bruno@clisp.org>
25038         ansi-c++-opt: Complete the 2011-06-05 change.
25039         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
25040         does not support namespaces, set the variable to "no", not to ":".
25042 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
25044         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
25046 2011-11-06  Bruno Haible  <bruno@clisp.org>
25048         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
25049         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
25050         (minus_zerol) [HP-UX]: New macro.
25051         (unary_minus) [HP-UX]: New function.
25052         (copysignl) [HP-UX]: Use unary_minus function.
25054 2011-11-06  Bruno Haible  <bruno@clisp.org>
25056         ldexp, ldexpf, ldexpl: Enhance tests.
25057         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
25058         and tests/test-ldexpl.c.
25059         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
25060         LDEXP, MIN_EXP, MAX_EXP): New macros.
25061         Include test-ldexp.h.
25062         (main): Just call test_function.
25063         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
25064         infinity.h, nan.h.
25065         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
25066         MAX_EXP): New macros.
25067         Include test-ldexp.h.
25068         (x, y): Remove variables.
25069         (main): Just call test_function.
25070         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
25071         infinity.h, nan.h.
25072         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
25073         MAX_EXP): New macros.
25074         Include test-ldexp.h.
25075         (x, y): Remove variables.
25076         (main): Just call test_function.
25077         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
25078         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
25079         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
25080         (Depends-on): Add isnand-nolibm, signbit, float.
25081         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
25082         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
25083         (Depends-on): Add isnanf-nolibm, signbit, float.
25085 2011-11-06  Bruno Haible  <bruno@clisp.org>
25087         math tests: Cosmetics.
25088         * tests/test-math-c++.cc: Reorder declarations.
25090 2011-11-05  Bruno Haible  <bruno@clisp.org>
25092         fma*: Simplify test.
25093         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
25094         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
25096         Tests for module 'fmal'.
25097         * modules/fmal-tests: New file.
25098         * tests/test-fmal1.c: New file.
25099         * tests/test-fmal2.c: New file.
25101         New module 'fmal'.
25102         * lib/math.in.h (fmal): New declaration.
25103         * lib/fmal.c: New file.
25104         * m4/fmal.m4: New file.
25105         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
25106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
25107         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
25108         REPLACE_FMAL.
25109         * modules/fmal: New file.
25110         * doc/posix-functions/fmal.texi: Mention the new module and the various
25111         bugs.
25113         Tests for module 'fmaf'.
25114         * modules/fmaf-tests: New file.
25115         * tests/test-fmaf1.c: New file.
25116         * tests/test-fmaf2.c: New file.
25118         New module 'fmaf'.
25119         * lib/math.in.h (fmaf): New declaration.
25120         * lib/fmaf.c: New file.
25121         * m4/fmaf.m4: New file.
25122         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
25123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
25124         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
25125         REPLACE_FMAF.
25126         * modules/fmaf: New file.
25127         * doc/posix-functions/fmaf.texi: Mention the new module and the various
25128         bugs.
25130         Tests for module 'fma'.
25131         * modules/fma-tests: New file.
25132         * tests/test-fma1.c: New file.
25133         * tests/test-fma1.h: New file.
25134         * tests/test-fma2.c: New file.
25135         * tests/test-fma2.h: New file.
25137         New module 'fma'.
25138         * lib/math.in.h (fma): New declaration.
25139         * lib/fma.c: New file.
25140         * m4/fma.m4: New file.
25141         * m4/fegetround.m4: New file.
25142         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
25143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
25144         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
25145         REPLACE_FMA.
25146         * modules/fma: New file.
25147         * doc/posix-functions/fma.texi: Mention the new module and the various
25148         bugs.
25150         Extend gl_MATHFUNC.
25151         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
25152         Support 'void' as argument type.
25153         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
25155 2011-11-05  Jim Meyering  <meyering@redhat.com>
25157         maint.mk: also prohibit inclusion of dirent.h without use
25158         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
25160 2011-11-05  Bruno Haible  <bruno@clisp.org>
25162         ldexpl tests: Avoid test failure on MSVC 9.
25163         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
25164         value. Needed in order to enforce the conversion from a value greater
25165         than LDBL_MAX to Infinity.
25167 2011-11-05  Bruno Haible  <bruno@clisp.org>
25169         New modules 'at-internal', 'openat-h', split off from module 'openat'.
25170         * modules/at-internal: New file, extracted from modules/openat.
25171         * modules/openat-h: New file.
25172         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
25173         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
25174         * modules/openat (Description): Add reference to POSIX function.
25175         (Files): Remove lib/openat.h, lib/openat-proc.c.
25176         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
25177         intprops, unistd.
25178         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
25179         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
25180         gl_FCNTL_MODULE_INDICATOR.
25181         (Include): Remove unistd.h, openat.h.
25182         * modules/areadlinkat (Files): Add lib/at-func.c.
25183         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25184         openat-die, openat-h, save-cwd.
25185         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
25186         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25187         openat-die, openat-h, save-cwd, unistd.
25188         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
25189         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25190         openat-h, save-cwd. Remove fcntl-h, openat.
25191         * modules/fchmodat (Files): Remove lib/openat.h.
25192         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25193         openat, stdbool, unistd.
25194         * modules/fchownat (Files): Remove lib/openat.h.
25195         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25196         openat, stdbool, sys_stat.
25197         * modules/fdopendir (Files): Remove lib/openat-priv.h,
25198         lib/openat-proc.c.
25199         (Depends-on): Add at-internal.
25200         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
25201         * modules/fstatat (Files): Remove lib/openat.h.
25202         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25203         stdbool, unistd.
25204         * modules/fts (Depends-on): Add openat-h.
25205         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
25206         openat.
25207         * modules/mkdirat (Files): Remove lib/openat.h.
25208         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
25209         openat, stdbool, sys_stat.
25210         * modules/mkfifoat (Files): Add lib/at-func.c.
25211         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25212         openat-h, save-cwd. Remove fcntl-h, openat.
25213         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
25214         * modules/readlinkat (Files): Add lib/at-func.c.
25215         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25216         openat-h, save-cwd. Remove fcntl-h, openat.
25217         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
25218         openat.
25219         * modules/selinux-at (Files): Add lib/at-func.c.
25220         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25221         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
25222         * modules/symlinkat (Files): Add lib/at-func.c.
25223         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25224         openat-h, save-cwd. Remove fcntl-h, openat.
25225         * modules/unlinkat (Files): Remove lib/openat.h.
25226         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25227         stdbool.
25228         * modules/utimensat (Files): Add lib/at-func.c.
25229         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
25230         openat-die, openat-h, save-cwd.
25231         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
25232         * modules/fdutimensat-tests (Depends-on): Add openat.
25233         * modules/fstatat-tests (Depends-on): Add openat-h.
25234         * modules/readlinkat-tests (Depends-on): Add openat.
25235         * modules/symlinkat-tests (Depends-on): Add openat.
25237 2011-11-05  Bruno Haible  <bruno@clisp.org>
25239         openat: Include <stdbool.h>.
25240         * lib/openat.c: Include <stdbool.h>.
25242 2011-11-04  Bruno Haible  <bruno@clisp.org>
25244         fchownat, renameat, unlinkat: Fix dependencies.
25245         * modules/fchownat (Depends-on): Add fstatat.
25246         * modules/renameat (Depends-on): Likewise.
25247         * modules/unlinkat (Depends-on): Likewise.
25249 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25251         openat: remove direct dependency on dirent
25252         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
25253         and hasn't been needed ever since fdopendir was split into its own
25254         module on 2009-08-31.
25255         * modules/openat (Depends-on): Remove dirent.
25257 2011-11-04  Bruno Haible  <bruno@clisp.org>
25259         renameat: Optimize code size.
25260         * modules/renameat (configure.ac): Don't compile at-func2.c if
25261         REPLACE_RENAMEAT is 1.
25263 2011-11-04  Bruno Haible  <bruno@clisp.org>
25265         openat tests: Fix file list.
25266         * modules/openat-tests (Files): Add tests/test-open.h.
25268 2011-11-04  Bruno Haible  <bruno@clisp.org>
25270         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
25271         * modules/fchmodat (Depends-on): Add openat-die.
25272         * modules/fchownat (Depends-on): Likewise.
25273         * modules/linkat (Depends-on): Likewise.
25274         * modules/renameat (Depends-on): Likewise.
25275         * modules/openat (Depends-on): Add dirent.
25277 2011-11-04  Jim Meyering  <meyering@redhat.com>
25279         at-func*.c: fix comments
25280         * lib/at-func2.c: Correct/improve first-line comment.
25281         * lib/at-func.c: Correct grammar in first-line comment.
25283 2011-11-04  Bruno Haible  <bruno@clisp.org>
25285         New module 'mkdirat', split off from module 'openat'.
25286         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
25287         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
25288         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
25289         * modules/mkdirat: New file, extracted from modules/openat.
25290         * modules/openat (Files): Remove lib/mkdirat.c.
25291         (Depends-on): Remove mkdir.
25292         (configure.ac): Remove AC_LIBOBJ of mkdirat.
25293         (Include): Remove <sys/stat.h>.
25294         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
25295         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
25296         tests/test-mkdir.h.
25297         (Depends-on): Remove ignore-value.
25298         (Makefile.am): Remove rules for test-mkdirat.
25299         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
25300         of module 'openat'.
25301         * NEWS: Mention the change.
25303 2011-11-04  Bruno Haible  <bruno@clisp.org>
25305         closedir: Avoid warning on mingw.
25306         * lib/closedir.c: Include <unistd.h>.
25308 2011-11-04  Bruno Haible  <bruno@clisp.org>
25310         New module 'fstatat', split off from module 'openat'.
25311         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
25312         defined.
25313         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
25314         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
25315         gl_FUNC_FSTATAT.
25316         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
25317         * modules/fstatat: New file, extracted from modules/openat.
25318         * modules/openat (Files): Remove lib/fstatat.c.
25319         (Depends-on): Remove lstat.
25320         (configure.ac): Remove AC_LIBOBJ of fstatat.
25321         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
25322         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
25323         tests/test-lstat.h, tests/test-stat.h.
25324         (Depends-on): Remove getcwd-lgpl.
25325         (Makefile.am): Remove rules for test-fstatat.
25326         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
25327         of module 'openat'.
25328         * NEWS: Mention the change.
25329         * modules/getcwd (Depends-on): Add fstatat.
25330         * modules/linkat (Depends-on): Likewise.
25331         * modules/mkfifoat-tests (Depends-on): Likewise.
25332         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
25334 2011-11-03  Bruno Haible  <bruno@clisp.org>
25336         New module 'unlinkat', split off from module 'openat'.
25337         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
25338         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
25339         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
25340         * modules/unlinkat: New file, extracted from modules/openat. Correct
25341         the dependency conditions.
25342         * modules/openat (Files): Remove lib/unlinkat.c.
25343         (Depends-on): Remove rmdir, unlink.
25344         (configure.ac): Remove AC_LIBOBJ of unlinkat.
25345         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
25346         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
25347         tests/test-rmdir.h, tests/test-unlink.h.
25348         (Depends-on): Remove unlinkdir.
25349         (Makefile.am): Remove rules for test-unlinkat.
25350         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
25351         of module 'openat'.
25352         * NEWS: Mention the change.
25353         * modules/linkat-tests (Depends-on): Add unlinkat.
25354         * modules/mkfifoat-tests (Depends-on): Likewise.
25355         * modules/readlinkat-tests (Depends-on): Likewise.
25357 2011-11-02  Bruno Haible  <bruno@clisp.org>
25359         New module 'fchmodat', split off from module 'openat'.
25360         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
25361         defined.
25362         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
25363         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
25364         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
25365         * modules/fchmodat: New file, extracted from modules/openat.
25366         * modules/openat (Files): Remove lib/fchmodat.c.
25367         (configure.ac): Remove AC_LIBOBJ of fchmodat.
25368         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
25369         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
25370         (Makefile.am): Remove rules for test-fchmodat.
25371         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
25372         of module 'openat'.
25373         * NEWS: Mention the change.
25375 2011-11-02  Jim Meyering  <meyering@redhat.com>
25377         putenv: indent #definition of "environ" to placate cppi
25378         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
25380         gitlog-to-changelog: provide a ChangeLog-repair mechanism
25381         Git logs are often treated as immutable, because editing them
25382         changes the SHA1 checksums of all descendants.  Thus, errors in
25383         git logs tend to stay there forever.  However, when we generate
25384         a ChangeLog file -- typically for distribution -- from that git log,
25385         we can actually make corrections in the generated file.  The key
25386         lies in recording in machine-readable/applicable form the desired
25387         corrections.  See --help for description and an example.
25388         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
25389         (usage): Describe it; alphabetize option descriptions.
25390         (main): Honor the new option, carefully.
25392 2011-11-01  Jim Meyering  <meyering@redhat.com>
25394         gitlog-to-changelog: avoid an infloop
25395         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
25396         that ends up being empty.
25398 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25400         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
25401         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
25402         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
25403         contains (possibly-quoted) backslashes.  This should avoid
25404         all-too-common shell bugs if COMPLICATED contains backslashes in
25405         the "wrong" places.  Reported by David Evans in
25406         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
25407         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
25408         because we want ASCII ranges.  Is there some reason we don't use
25409         the C locale everywhere in this script?
25410         (func_module, top level): Avoid unwanted pathname expansion when
25411         $repo_url_prefix or $repo_url_suffix_repl contain shell
25412         metacharacters like '?' and '*'.
25414 2011-11-01  Bruno Haible  <bruno@clisp.org>
25416         fchownat: Improve description.
25417         * modules/fchownat (Description): Add link to function.
25419 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25421         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
25422         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
25423         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
25424         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
25426 2011-11-01  Bruno Haible  <bruno@clisp.org>
25428         alignof: Avoid collision with stdalign module.
25429         * lib/alignof.h (alignof): Remove macro.
25430         * NEWS: Mention the change.
25431         Reported by Paul Eggert.
25433 2011-11-01  Bruno Haible  <bruno@clisp.org>
25435         New module 'fchownat', split off from module 'openat'.
25436         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
25437         defined.
25438         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
25439         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
25440         invoke gl_FUNC_FCHOWNAT.
25441         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
25442         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
25443         * modules/fchownat: New file, extracted from modules/openat.
25444         * modules/openat (Files): Remove lib/fchownat.c.
25445         (Depends-on): Remove lchown.
25446         (configure.ac): Remove AC_LIBOBJ of fchownat.
25447         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
25448         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
25449         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
25450         (Depends-on): Remove mgetgroups, usleep, stat-time.
25451         (configure.ac): Remove test for getegid.
25452         (Makefile.am): Remove rules for test-fchownat.
25453         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
25454         of module 'openat'.
25455         * NEWS: Mention the change.
25457 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25459         stdalign: port better to MSVC and to Sun C 5.11
25460         This fixes some of the problems reported by Bruno Haible in
25461         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
25462         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
25463         shortcomings of MSVC and of Sun C 5.11.
25464         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
25465         around __declspec arg.
25466         * modules/stdalign-tests (Files): Add tests/macros.h.
25467         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
25468         Include macros.h, for ASSERT.
25469         (DECLARE_ALIGNED): Remove.
25470         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
25471         to catch bug), and to 1 if not (simplifies the rest of the code).
25472         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
25473         (CHECK_AUTO): Remove.
25474         (CHECK_ALIGNED): Check only the alignment of the static vars,
25475         since auto var alignment isn't supported by Sun C 5.11.
25476         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
25477         ASSERT failures are easier to diagnose.
25479 2011-10-31  Bruno Haible  <bruno@clisp.org>
25481         doc about some IRIX 5.3 problems.
25482         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
25483         on IRIX 5.3.
25484         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
25485         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
25486         5.3.
25487         * doc/posix-functions/grantpt.texi: Likewise.
25488         * doc/posix-functions/unlockpt.texi: Likewise.
25489         * doc/posix-functions/lgamma.texi: Likewise.
25490         * doc/posix-functions/nextafter.texi: Likewise.
25491         * doc/posix-functions/remainder.texi: Likewise.
25492         * doc/posix-functions/select.texi: Mention misplaced declaration on
25493         IRIX 5.3.
25494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25496 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
25498         gitlog-to-changelog: fix git-log invocation.
25499         git-log mishandles date strings before 1970-01-01 UTC, and there is
25500         no use to specify --since=1970-01-01 by default anyway.
25501         * build-aux/gitlog-to-changelog: By default, when no --since option
25502         was given, do not specify explicit --since option to git-log.
25504 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
25506         gitlog-to-changelog: new option --append-dot.
25507         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
25508         first non-blank line of each commit message terminated with a dot.
25510 2011-10-30  Bruno Haible  <bruno@clisp.org>
25512         ffsl, ffsll: Avoid compilation error due to 'restrict'.
25513         * lib/ffsl.h: Include <config.h>.
25514         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
25516 2011-10-30  Jim Meyering  <meyering@redhat.com>
25518         GNUmakefile: reenable "make syntax-check" for most projects
25519         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
25520         build-aux variable", "syntax-check" would do nothing but succeed with
25521         the "No version control files detected..." diagnostic (unless you
25522         happened to override _build-aux via cfg.mk).
25523         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
25524         to precede inclusion of maint.mk.  Otherwise, these variables would
25525         be used undefined in any project that does not override the default.
25527 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
25529         gitlog-to-changelog: treat a message with only blank lines as empty.
25530         * build-aux/gitlog-to-changelog: Move the code that removes leading and
25531         trailing blank lines before the code that issues a warning about an
25532         empty commit message.
25534 2011-10-30  Jim Meyering  <meyering@redhat.com>
25536         test-parse-datetime.c: avoid new DST-related false positive test failure
25537         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
25538         based on the time/date we'll convert, not the current time.
25539         Otherwise, the moment we cross a DST boundary like today's in
25540         Europe, (CEST to CET), that offset ends up being one hour off.
25542 2011-10-27  Bruno Haible  <bruno@clisp.org>
25544         fstat: Tweak documentation.
25545         * modules/fstat (Description): More precise description.
25547 2011-10-27  Bruno Haible  <bruno@clisp.org>
25549         Update documentation regarding 'largefile' module.
25550         * doc/posix-functions/fstat.texi: Tweak wording.
25551         * doc/posix-functions/opendir.texi: Mention that the module fixes the
25552         problems with huge directories and/or small ino_t types.
25553         * doc/posix-functions/readdir.texi: Likewise.
25554         * doc/posix-functions/rewinddir.texi: Likewise.
25556 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
25558         maint.mk: don't maintain a second build-aux variable.
25559         * maint.mk (build_aux): Removed.  The maintainer-makefile module
25560         depends on GNUmakefile, which already maintains a cfg.mk
25561         overridable $(_build-aux) for projects with a non-standard
25562         build-aux directory location, although without the $(srcdir)
25563         prefix.  Use that variable consistently instead of introducing a
25564         second one.  Adjust all call sites.
25566 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
25568         Add stdalign module and use it in other modules.
25569         This is based on a previous proposal by Bruno Haible
25570         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
25572         stdalign: new module
25573         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
25574         * modules/stdalign: New files.
25575         * MODULES.html.sh (c1x_core_properties): Add stdalign.
25576         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
25578         stdalign-tests: new module
25579         * modules/stdalign-tests, tests/test-stdalign.c: New files.
25581         argp: use stdalign
25582         * lib/argp-parse.c: Include <stdalign.h>.
25583         (alignof): Remove.
25584         * modules/argp (Depends-on): Add stdalign.
25586         crypto libraries: use stdalign
25587         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
25588         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
25589         Do not include <stdlib.h> twice, in md4.c.
25590         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
25591         because we are accessing a pointer's bit-pattern, not a size.
25592         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
25593         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
25594         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
25595         * modules/crypto/sha512: Likewise.
25597         sys_socket: use stdalign, not alignof
25598         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
25599         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
25601 2011-10-27  Bruno Haible  <bruno@clisp.org>
25603         raise test: Avoid a test failure on Linux/MIPS.
25604         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
25605         because 99 is a valid signal on Linux/MIPS.
25607 2011-10-27  Bruno Haible  <bruno@clisp.org>
25609         nonblocking tests: Fix test failure on Linux/MIPS.
25610         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
25611         Set to 270000.
25613 2011-10-27  Bruno Haible  <bruno@clisp.org>
25615         utimensat: Work around problem on Linux/hppa.
25616         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
25617         values.
25618         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
25620 2011-10-25  Jim Meyering  <meyering@redhat.com>
25622         maint.mk: fix a bug in sc_prohibit_stddef_without_use
25623         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
25624         after symbols like NULL, size_t, etc.
25625         Reported by Alfred M. Szmidt.
25627         maint.mk: exempt ENODATA from a syntax-check rule
25628         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
25629         from the sc_prohibit_always-defined_macros syntax-check rule.
25630         Add a comment.  See this for more details:
25631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
25633 2011-10-23  Jim Meyering  <meyering@redhat.com>
25635         fts: close parent dir FD before returning from post-traversal fts_read
25636         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
25637         unlink A, even though an FD open on A remained.  This is suboptimal
25638         (holding a file descriptor open longer than needed), but otherwise not
25639         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
25640         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
25641         that represents a real problem: it causes the removal of A to fail
25642         with e.g., "rm: cannot remove `A': Device or resource busy"
25644         fts visits each directory twice and keeps a cache (fts_fd_ring) of
25645         directory file descriptors.  After completing the final, FTS_DP,
25646         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
25647         cache, but then proceeded to add a new FD to it via the subsequent
25648         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
25649         final file descriptor would be closed only via fts_close's call to
25650         fd_ring_clear.  Now, it is usually closed earlier, via the final
25651         FTS_DP-returning fts_read call.
25652         * lib/fts.c (restore_initial_cwd): New function, converted from
25653         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
25654         Update callers.
25655         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
25656         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
25658 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
25659             Bruno Haible  <bruno@clisp.org>
25660             Jim Meyering  <jim@meyering.net>
25662         readme-release: improve safety of release prep instructions.
25663         * README-release: Don't git pull all branches when only master
25664         is needed for the release process.
25665         Run make maintainer-clean before changing trees and merging.
25666         Don't try to run ./configure right after git pull in case files
25667         that influence the bootstrap process have changed, move the
25668         ./configure step to after running ./bootstrap.
25669         Don't bootstrap "one last time"... it's the first time!
25671 2011-10-22  Bruno Haible  <bruno@clisp.org>
25673         errno, strerror-override: Support for MSVC 10.
25674         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
25675         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
25676         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
25677         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
25678         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
25679         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
25680         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
25681         Assign values compatible with MSVC 10.
25682         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
25683         New macros.
25684         (GNULIB_defined_EWINSOCK): New macro.
25685         * lib/strerror-override.c (strerror_override): Update accordingly.
25686         * lib/strerror-override.h: Likewise.
25687         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
25688         longer equal to the corresponding errno value.
25689         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25691 2011-10-22  Bruno Haible  <bruno@clisp.org>
25693         perror: Recognize when test program crashes.
25694         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
25695         strerror, set gl_cv_func_perror_works to no.
25696         Reported by Daniel Richard G. <skunk@iskunk.org>.
25698         perror: Fix indentation.
25699         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
25701 2011-10-22  Bruno Haible  <bruno@clisp.org>
25703         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
25704         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
25705         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
25706         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
25707         functions, not as a macro.
25708         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
25709         macros.
25710         (isfinite, isinf, isnan, signbit): Check overloaded functions and
25711         absence of macro.
25712         Suggested by Eric Blake.
25713         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25715 2011-10-21  Bruno Haible  <bruno@clisp.org>
25717         relocatable-prog-wrapper: Don't leave object files behind.
25718         * build-aux/install-reloc: Re-synchronize list of .o files to be
25719         removed with list of compilation units.
25721 2011-10-20  Bruno Haible  <bruno@clisp.org>
25723         openpty, posix_openpt: Remove code duplication.
25724         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
25725         * lib/openpty.c: Include <stdlib.h>.
25726         (openpty): Use posix_openpt on all platforms except IRIX.
25727         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
25729 2011-10-20  Bruno Haible  <bruno@clisp.org>
25731         unlockpt: Detect invalid argument.
25732         * lib/unlockpt.c: Include <fcntl.h>.
25733         (unlockpt): Check whether fd is valid, using fcntl().
25734         * modules/unlockpt (Depends-on): Add fcntl-h.
25736 2011-10-20  Bruno Haible  <bruno@clisp.org>
25738         openpty: Avoid compilation error on AIX 6.1.
25739         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
25741 2011-10-20  Bruno Haible  <bruno@clisp.org>
25743         posix_openpt: Support for OpenBSD.
25744         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
25745         (posix_openpt) [OpenBSD]: New code.
25746         * lib/grantpt.c: Include <fcntl.h>.
25747         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
25748         * modules/grantpt (Depends-on): Add fcntl-h.
25750 2011-10-20  Bruno Haible  <bruno@clisp.org>
25752         posix_openpt test: Coding style.
25753         * tests/test-posix_openpt.c: Use GNU coding style.
25755 2011-10-20  Bruno Haible  <bruno@clisp.org>
25757         grantpt: Support --avoid=pt_chown.
25758         * modules/grantpt (Files): Add lib/pty-private.h.
25760 2011-10-20  Bruno Haible  <bruno@clisp.org>
25762         posix_openpt: Fix autoconf macro.
25763         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
25764         unneeded check for _getpty.
25766 2011-10-20  Bruno Haible  <bruno@clisp.org>
25768         openpty: Update comments.
25769         * lib/openpty.c: Add comments about Minix.
25771 2011-10-19  Eric Blake  <eblake@redhat.com>
25773         openpty: relax license
25774         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
25776         pt_chown: use configmake to simplify build
25777         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
25779         ptsname and others: relax license
25780         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
25781         * modules/unlockpt (License): Likewise.
25782         * modules/pt_chown (License): Likewise.
25783         * modules/ptsname (License): Likewise.
25784         * modules/ttyname_r (License): Likewise.
25786 2011-10-19  Jim Meyering  <meyering@redhat.com>
25788         posix_openpt: remove spurious #endif
25789         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
25791 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
25793         maint.mk: Respect $(build_aux) in web-manual rule.
25794         * top/maint.mk (web-manual): Find gen-announce script in user's
25795         $(build_aux) directory instead of hard-coding 'build-aux'.
25797 2011-10-19  Bruno Haible  <bruno@clisp.org>
25799         posix_openpt: Fix compilation error.
25800         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
25801         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
25802         Mention the openpty module as an alternative.
25804 2011-10-19  Bruno Haible  <bruno@clisp.org>
25806         Support for old NeXTstep 3.3 frexp().
25807         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
25808         execution time of the test to 5 seconds.
25809         Reported by Daniel Richard G. <skunk@iskunk.org>.
25811 2011-10-19  Bruno Haible  <bruno@clisp.org>
25813         Support for old NeXTstep 3.3 sed.
25814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
25815         part, use /.../, not \|...|. Escape periods in the header file name.
25816         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
25817         Reported by Daniel Richard G. <skunk@iskunk.org>.
25819 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
25821         Support for old NeXTstep 3.3 gcc.
25822         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
25823         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
25824         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
25825         * lib/spawn.in.h (_Restrict_arr_): Likewise.
25826         * lib/regex.h (_Restrict_arr_): Likewise.
25827         * lib/regex_internal.h (re_token_t): Likewise.
25828         * lib/regexec.c (check_node_accept_bytes): Likewise.
25829         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
25831 2011-10-18  Eric Blake  <eblake@redhat.com>
25833         posix_openpt: new module
25834         * modules/posix_openpt: New module.
25835         * m4/posix_openpt.m4: New file.
25836         * lib/posix_openpt.c: Likewise.
25837         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
25838         (gl_STDLIB_H_DEFAULTS): Set defaults.
25839         * modules/stdlib (Makefile.am): Substitute macros.
25840         * lib/stdlib.in.h (posix_openpt): Declare.
25841         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
25842         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
25843         * modules/posix_openpt-tests: New test module.
25844         * tests/test-posix_openpt.c: New test.
25846 2011-10-15  Bruno Haible  <bruno@clisp.org>
25848         xstrtoll: Fix compilation failure.
25849         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
25850         from lib/strtol.c.
25851         * doc/posix-headers/limits.texi: Mention missing numerical limits on
25852         some platforms.
25853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25855 2011-10-15  Bruno Haible  <bruno@clisp.org>
25857         vasnprintf: Optimize bit search operation.
25858         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
25859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
25860         gl_DOUBLE_EXPONENT_LOCATION.
25861         * modules/vasnprintf (Files): Add m4/exponentd.m4.
25862         * modules/unistdio/u8-vasnprintf (Files): Likewise.
25863         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
25864         * modules/unistdio/u16-vasnprintf (Files): Likewise.
25865         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
25866         * modules/unistdio/u32-vasnprintf (Files): Likewise.
25867         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
25868         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
25869         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
25871 2011-10-15  Bruno Haible  <bruno@clisp.org>
25873         vasnprintf: Fix comments.
25874         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
25876 2011-10-14  Bruno Haible  <bruno@clisp.org>
25878         Tests for module 'integer_length_ll'.
25879         * modules/integer_length_ll-tests: New file.
25880         * tests/test-integer_length_ll.c: New file.
25882         New module 'integer_length_ll'.
25883         * lib/integer_length_ll.c: New file.
25884         * modules/integer_length_ll: New file.
25886 2011-10-14  Bruno Haible  <bruno@clisp.org>
25888         Tests for module 'integer_length_l'.
25889         * modules/integer_length_l-tests: New file.
25890         * tests/test-integer_length_l.c: New file.
25892         New module 'integer_length_l'.
25893         * lib/integer_length_l.c: New file.
25894         * modules/integer_length_l: New file.
25896 2011-10-14  Bruno Haible  <bruno@clisp.org>
25898         Tests for module 'integer_length'.
25899         * modules/integer_length-tests: New file.
25900         * tests/test-integer_length.c: New file.
25902         New module 'integer_length'.
25903         * lib/integer_length.h: New file.
25904         * lib/integer_length.c: New file.
25905         * modules/integer_length: New file.
25907 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
25909         popen: Fix dependency conditions.
25910         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
25912 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
25914         perror: Fix autoconf test.
25915         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
25916         <stdlib.h> and <string.h>.
25918 2011-10-14  Bruno Haible  <bruno@clisp.org>
25920         ffsl: Optimize on 64-bit platforms.
25921         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
25922         unrolling.
25924 2011-10-13  Bruno Haible  <bruno@clisp.org>
25926         ffsl: Optimize on 32-bit platforms.
25927         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
25928         use ffs() without a loop.
25930         ffsl, ffsll: Optimize for GCC.
25931         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
25932         * lib/ffsl.c (GCC_BUILTIN): New macro.
25933         * lib/ffsll.c (GCC_BUILTIN): Likewise.
25935 2011-10-13  Bruno Haible  <bruno@clisp.org>
25937         ffs, bcopy, memset: Support symbol renaming via config.h.
25938         * lib/ffs.c: Include <config.h>.
25939         * lib/bcopy.c: Likewise.
25940         * lib/memset.c: Likewise.
25942 2011-10-10  Bruno Haible  <bruno@clisp.org>
25944         atanl: Simplify for platforms where 'long double' == 'double'.
25945         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25946         alternative implementation.
25947         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25948         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25949         * modules/atanl (Depends-on): Add atan. Update conditions.
25951 2011-10-10  Bruno Haible  <bruno@clisp.org>
25953         acosl: Simplify for platforms where 'long double' == 'double'.
25954         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25955         alternative implementation.
25956         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25957         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25958         * modules/acosl (Depends-on): Add acos. Update conditions.
25960 2011-10-10  Bruno Haible  <bruno@clisp.org>
25962         asinl: Simplify for platforms where 'long double' == 'double'.
25963         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25964         alternative implementation.
25965         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25966         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25967         * modules/asinl (Depends-on): Add asin. Update conditions.
25969 2011-10-10  Bruno Haible  <bruno@clisp.org>
25971         tanl: Simplify for platforms where 'long double' == 'double'.
25972         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25973         implementation.
25974         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25975         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25976         * modules/tanl (Depends-on): Add tan. Update conditions.
25977         (configure.ac): Don't compile trigl.c if
25978         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25980 2011-10-10  Bruno Haible  <bruno@clisp.org>
25982         cosl: Simplify for platforms where 'long double' == 'double'.
25983         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25984         implementation.
25985         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25986         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25987         * modules/cosl (Depends-on): Add cos. Update conditions.
25988         (configure.ac): Don't compile sincosl.c and trigl.c if
25989         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25991 2011-10-10  Bruno Haible  <bruno@clisp.org>
25993         sinl: Simplify for platforms where 'long double' == 'double'.
25994         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25995         implementation.
25996         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25997         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25998         * modules/sinl (Depends-on): Add sin. Update conditions.
25999         (configure.ac): Don't compile sincosl.c and trigl.c if
26000         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26002 2011-10-10  Bruno Haible  <bruno@clisp.org>
26004         logl: Simplify for platforms where 'long double' == 'double'.
26005         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26006         implementation.
26007         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26008         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26009         * modules/logl (Depends-on): Add log. Update conditions.
26011 2011-10-10  Bruno Haible  <bruno@clisp.org>
26013         expl: Simplify for platforms where 'long double' == 'double'.
26014         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
26015         implementation.
26016         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26017         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26018         * modules/expl (Depends-on): Add exp. Update conditions.
26020 2011-10-10  Bruno Haible  <bruno@clisp.org>
26022         sqrtl: Simplify for platforms where 'long double' == 'double'.
26023         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26024         alternative implementation.
26025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26026         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26027         * modules/sqrtl (Depends-on): Update conditions.
26029 2011-10-10  Bruno Haible  <bruno@clisp.org>
26031         ldexpl: Simplify for platforms where 'long double' == 'double'.
26032         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26033         alternative implementation.
26034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26035         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26036         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
26038 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
26040         ffsll: set correct witness
26041         * modules/ffsll (configure.ac): Fix typo.
26043 2011-10-10  Bruno Haible  <bruno@clisp.org>
26045         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
26046         * lib/printf-frexpl.c: Include <config.h>.
26047         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26048         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
26049         second time.
26050         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
26051         gl_LONG_DOUBLE_VS_DOUBLE.
26052         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
26053         conditions.
26055 2011-10-10  Bruno Haible  <bruno@clisp.org>
26057         frexpl: Simplify for platforms where 'long double' == 'double'.
26058         * lib/frexpl.c: Include <config.h>.
26059         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26060         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26061         time.
26062         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26063         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26064         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
26065         * modules/frexpl (Depends-on): Add frexp. Update conditions.
26066         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
26067         conditions.
26069 2011-10-10  Jim Meyering  <meyering@redhat.com>
26071         test-renameat: don't leave behind a temporary file
26072         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
26073           ERROR: files left in build directory after distclean:
26074           ./gltests/test-renameat.too
26075           make[1]: *** [distcleancheck] Error 1
26076         Reported by Tom G. Christensen.
26078 2011-10-09  Bruno Haible  <bruno@clisp.org>
26080         rint: Determine RINT_LIBM correctly on AIX 7.
26081         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
26082         directly, not only through a function pointer. Also accept an optional
26083         4th argument with extra code.
26084         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
26085         rintf() call by gcc when optimizing.
26087         mathfunc.m4: Refactor.
26088         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
26089         m4 variable.
26091 2011-10-09  Bruno Haible  <bruno@clisp.org>
26093         rintl: Simplify for platforms where 'long double' == 'double'.
26094         * lib/rintl.c: Include <config.h>.
26095         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26096         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26097         time.
26098         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26099         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26100         * modules/rintl (Depends-on): Add rint. Update conditions.
26102 2011-10-09  Bruno Haible  <bruno@clisp.org>
26104         roundl: Simplify for platforms where 'long double' == 'double'.
26105         * lib/roundl.c: Include <config.h>.
26106         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26107         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26108         time.
26109         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26110         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26111         * modules/roundl (Depends-on): Add round. Update conditions.
26113 2011-10-09  Bruno Haible  <bruno@clisp.org>
26115         truncl: Simplify for platforms where 'long double' == 'double'.
26116         * lib/truncl.c: Include <config.h>.
26117         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26118         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26119         time.
26120         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26121         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26122         * modules/truncl (Depends-on): Add trunc. Update conditions.
26124 2011-10-09  Bruno Haible  <bruno@clisp.org>
26126         ceill: Simplify for platforms where 'long double' == 'double'.
26127         * lib/ceill.c: Include <config.h>.
26128         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26129         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26130         time.
26131         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26132         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26133         * modules/ceill (Depends-on): Add ceil. Update conditions.
26135 2011-10-09  Bruno Haible  <bruno@clisp.org>
26137         floorl: Simplify for platforms where 'long double' == 'double'.
26138         * lib/floorl.c: Include <config.h>.
26139         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
26140         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
26141         time.
26142         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26143         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26144         * modules/floorl (Depends-on): Add floor. Update conditions.
26146 2011-10-09  Bruno Haible  <bruno@clisp.org>
26148         rint: Fix ordering constraints.
26149         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
26150         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
26151         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
26153 2011-10-09  Bruno Haible  <bruno@clisp.org>
26155         copysignl: Simplify for platforms where 'long double' == 'double'.
26156         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
26157         alternative.
26158         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26159         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
26160         * modules/copysignl (Depends-on): Add copysign. Update conditions.
26162 2011-10-09  Bruno Haible  <bruno@clisp.org>
26164         Tests for module 'rintl'.
26165         * modules/rintl-tests: New file.
26166         * tests/test-rintl.c: New file.
26168         New module 'rintl'.
26169         * lib/math.in.h (rintl): New declaration.
26170         * lib/rintl.c: New file.
26171         * m4/rintl.m4: New file.
26172         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
26173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
26174         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
26175         * modules/rintl: New file.
26176         * tests/test-math-c++.cc: Check the declaration of rintl.
26177         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26178         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
26179         * doc/posix-functions/rintl.texi: Mention the new module.
26181 2011-10-09  Bruno Haible  <bruno@clisp.org>
26183         Tests for module 'rintf'.
26184         * modules/rintf-tests: New file.
26185         * tests/test-rintf.c: New file.
26187         New module 'rintf'.
26188         * lib/math.in.h (rintf): New declaration.
26189         * lib/rintf.c: New file.
26190         * m4/rintf.m4: New file.
26191         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
26192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
26193         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
26194         * modules/rintf: New file.
26195         * tests/test-math-c++.cc: Check the declaration of rintf.
26196         * doc/posix-functions/rintf.texi: Mention the new module.
26198 2011-10-09  Bruno Haible  <bruno@clisp.org>
26200         rint: Support for MSVC.
26201         * lib/math.in.h (rint): New declaration.
26202         * lib/rint.c: New file.
26203         * m4/rint.m4: New file.
26204         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
26205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
26206         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
26207         * modules/rint (Description): Fix.
26208         (Files): Add lib/rint.c, m4/rint.m4.
26209         (Depends-on): Add math.
26210         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
26211         gl_MATH_MODULE_INDICATOR.
26212         * tests/test-math-c++.cc: Check the declaration of rint.
26213         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26214         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
26215         * doc/posix-functions/rint.texi: Mention the replacement provided by
26216         the module.
26218         rint tests: More tests.
26219         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
26220         minus-zero.h, infinity.h, nan.h.
26221         (main): Skip the test if the current rounding mode is not standard. Add
26222         tests for negative numbers, minus zero, infinity, NaN.
26223         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
26224         tests/nan.h.
26225         (Depends-on): Add isnand-nolibm.
26227 2011-10-09  Bruno Haible  <bruno@clisp.org>
26229         Tests for module 'copysignl'.
26230         * modules/copysignl-tests: New file.
26231         * tests/test-copysignl.c: New file.
26233         New module 'copysignl'.
26234         * lib/math.in.h (copysignl): New declaration.
26235         * lib/copysignl.c: New file.
26236         * m4/copysignl.m4: New file.
26237         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
26238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
26239         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
26240         HAVE_COPYSIGNL.
26241         * modules/copysignl: New file.
26242         * tests/test-math-c++.cc: Check the declaration of copysignl.
26243         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26244         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
26245         * doc/posix-functions/copysignl.texi: Mention the new module.
26247 2011-10-09  Bruno Haible  <bruno@clisp.org>
26249         Tests for module 'copysignf'.
26250         * modules/copysignf-tests: New file.
26251         * tests/test-copysignf.c: New file.
26253         New module 'copysignf'.
26254         * lib/math.in.h (copysignf): New declaration.
26255         * lib/copysignf.c: New file.
26256         * m4/copysignf.m4: New file.
26257         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
26258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
26259         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
26260         HAVE_COPYSIGNF.
26261         * modules/copysignf: New file.
26262         * tests/test-math-c++.cc: Check the declaration of copysignf.
26263         * doc/posix-functions/copysignf.texi: Mention the new module.
26265 2011-10-09  Bruno Haible  <bruno@clisp.org>
26267         Ensure that HAVE_* variables are set to 1 before they are set to 0.
26268         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
26269         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
26270         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26271         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
26272         gl_SIGNAL_H_DEFAULTS.
26274 2011-10-09  Bruno Haible  <bruno@clisp.org>
26276         poll: Make macro safer.
26277         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
26278         ac_cv_header_poll_h is not set.
26280 2011-10-09  Bruno Haible  <bruno@clisp.org>
26282         copysign: Provide replacement.
26283         * lib/math.in.h (copysign): New declaration.
26284         * lib/copysign.c: New file.
26285         * m4/copysign.m4: New file.
26286         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
26287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
26288         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
26289         HAVE_COPYSIGN.
26290         * modules/copysign (Description): Clarify.
26291         (Files): Add lib/copysign.c, m4/copysign.m4.
26292         (Depends-on): Add math, signbit.
26293         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
26294         gl_MATH_MODULE_INDICATOR.
26295         * tests/test-math-c++.cc: Check the declaration of copysign.
26296         * doc/posix-functions/copysign.texi: Mention the effects of the module
26297         on Minix and MSVC.
26299 2011-10-09  Bruno Haible  <bruno@clisp.org>
26301         isinf: Ensure macro on AIX 5.1.
26302         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
26303         macro.
26304         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
26306 2011-10-09  Bruno Haible  <bruno@clisp.org>
26308         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
26309         * modules/snprintf-posix-tests (configure.ac): Require
26310         gl_LONG_DOUBLE_VS_DOUBLE.
26311         * modules/sprintf-posix-tests (configure.ac): Likewise.
26312         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
26313         * modules/vasprintf-posix-tests (configure.ac): Likewise.
26314         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
26315         * modules/vsprintf-posix-tests (configure.ac): Likewise.
26316         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
26317         tests on platforms where 'long double' is the same as 'double'.
26318         * tests/test-sprintf-posix.h (test_function): Likewise.
26319         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26320         * tests/test-vasprintf-posix.c (test_function): Likewise.
26322         *printf: Fix for platforms where 'long double' == 'double'.
26323         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
26324         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
26325         * modules/dprintf-posix (Files): Add m4/math_h.m4.
26326         * modules/fprintf-posix (Files): Likewise.
26327         * modules/obstack-printf-posix (Files): Likewise.
26328         * modules/snprintf-posix (Files): Likewise.
26329         * modules/sprintf-posix (Files): Likewise.
26330         * modules/vasnprintf (Files): Likewise.
26331         * modules/vasnprintf-posix (Files): Likewise.
26332         * modules/vasprintf-posix (Files): Likewise.
26333         * modules/vdprintf-posix (Files): Likewise.
26334         * modules/vfprintf-posix (Files): Likewise.
26335         * modules/vsnprintf-posix (Files): Likewise.
26336         * modules/vsprintf-posix (Files): Likewise.
26337         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26338         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26339         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26340         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26341         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26342         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26343         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26345         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
26346         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
26347         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26348         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
26349         'long double'.
26350         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
26352         isinf: Fix for platforms where 'long double' == 'double'.
26353         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26354         Don't blindly assume 80-bit 'long double'.
26356         isfinite: Fix for platforms where 'long double' == 'double'.
26357         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26358         Don't blindly assume 80-bit 'long double'.
26360         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
26361         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
26362         * modules/isfinite-tests (configure.ac): Require
26363         gl_LONG_DOUBLE_VS_DOUBLE.
26364         * modules/isinf-tests (configure.ac): Likewise.
26365         * modules/isnan-tests (configure.ac): Likewise.
26366         * modules/isnanl-tests (configure.ac): Likewise.
26367         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
26368         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
26369         tests on platforms where 'long double' is the same as 'double'.
26370         * tests/test-isinf.c (test_isinfl): Likewise.
26371         * tests/test-isnan.c (test_long_double): Likewise.
26372         * tests/test-isnanl.h (main): Likewise.
26374 2011-10-08  Bruno Haible  <bruno@clisp.org>
26376         Tests for module 'tanhf'.
26377         * modules/tanhf-tests: New file.
26378         * tests/test-tanhf.c: New file.
26380         New module 'tanhf'.
26381         * lib/math.in.h (tanhf): New declaration.
26382         * lib/tanhf.c: New file.
26383         * m4/tanhf.m4: New file.
26384         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
26385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
26386         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
26387         * modules/tanhf: New file.
26388         * tests/test-math-c++.cc: Check the declaration of tanhf.
26389         * doc/posix-functions/tanhf.texi: Mention the new module.
26391         tanh: Use a .m4 file.
26392         * m4/tanh.m4: New file.
26393         * modules/tanh (Files): Add it.
26394         (configure.ac): Just invoke gl_FUNC_TANH.
26396 2011-10-08  Bruno Haible  <bruno@clisp.org>
26398         Tests for module 'coshf'.
26399         * modules/coshf-tests: New file.
26400         * tests/test-coshf.c: New file.
26402         New module 'coshf'.
26403         * lib/math.in.h (coshf): New declaration.
26404         * lib/coshf.c: New file.
26405         * m4/coshf.m4: New file.
26406         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
26407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
26408         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
26409         * modules/coshf: New file.
26410         * tests/test-math-c++.cc: Check the declaration of coshf.
26411         * doc/posix-functions/coshf.texi: Mention the new module.
26413         cosh: Use a .m4 file.
26414         * m4/cosh.m4: New file.
26415         * modules/cosh (Files): Add it.
26416         (configure.ac): Just invoke gl_FUNC_COSH.
26418 2011-10-08  Bruno Haible  <bruno@clisp.org>
26420         Tests for module 'sinhf'.
26421         * modules/sinhf-tests: New file.
26422         * tests/test-sinhf.c: New file.
26424         New module 'sinhf'.
26425         * lib/math.in.h (sinhf): New declaration.
26426         * lib/sinhf.c: New file.
26427         * m4/sinhf.m4: New file.
26428         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
26429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
26430         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
26431         * modules/sinhf: New file.
26432         * tests/test-math-c++.cc: Check the declaration of sinhf.
26433         * doc/posix-functions/sinhf.texi: Mention the new module.
26435         sinh: Use a .m4 file.
26436         * m4/sinh.m4: New file.
26437         * modules/sinh (Files): Add it.
26438         (configure.ac): Just invoke gl_FUNC_SINH.
26440 2011-10-08  Bruno Haible  <bruno@clisp.org>
26442         Tests for module 'atan2f'.
26443         * modules/atan2f-tests: New file.
26444         * tests/test-atan2f.c: New file.
26446         New module 'atan2f'.
26447         * lib/math.in.h (atan2f): New declaration.
26448         * lib/atan2f.c: New file.
26449         * m4/atan2f.m4: New file.
26450         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
26451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
26452         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
26453         * modules/atan2f: New file.
26454         * tests/test-math-c++.cc: Check the declaration of atan2f.
26455         * doc/posix-functions/atan2f.texi: Mention the new module.
26457         atan2: Use a .m4 file.
26458         * m4/atan2.m4: New file.
26459         * modules/atan2 (Files): Add it.
26460         (configure.ac): Just invoke gl_FUNC_ATAN2.
26462 2011-10-08  Bruno Haible  <bruno@clisp.org>
26464         Tests for module 'atanf'.
26465         * modules/atanf-tests: New file.
26466         * tests/test-atanf.c: New file.
26468         New module 'atanf'.
26469         * lib/math.in.h (atanf): New declaration.
26470         * lib/atanf.c: New file.
26471         * m4/atanf.m4: New file.
26472         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
26473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
26474         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
26475         * modules/atanf: New file.
26476         * tests/test-math-c++.cc: Check the declaration of atanf.
26477         * doc/posix-functions/atanf.texi: Mention the new module.
26479         atan: Use a .m4 file.
26480         * m4/atan.m4: New file.
26481         * modules/atan (Files): Add it.
26482         (configure.ac): Just invoke gl_FUNC_ATAN.
26484 2011-10-08  Bruno Haible  <bruno@clisp.org>
26486         Tests for module 'acosf'.
26487         * modules/acosf-tests: New file.
26488         * tests/test-acosf.c: New file.
26490         New module 'acosf'.
26491         * lib/math.in.h (acosf): New declaration.
26492         * lib/acosf.c: New file.
26493         * m4/acosf.m4: New file.
26494         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
26495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
26496         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
26497         * modules/acosf: New file.
26498         * tests/test-math-c++.cc: Check the declaration of acosf.
26499         * doc/posix-functions/acosf.texi: Mention the new module.
26501         acos: Use a .m4 file.
26502         * m4/acos.m4: New file.
26503         * modules/acos (Files): Add it.
26504         (configure.ac): Just invoke gl_FUNC_ACOS.
26506 2011-10-08  Bruno Haible  <bruno@clisp.org>
26508         Tests for module 'asinf'.
26509         * modules/asinf-tests: New file.
26510         * tests/test-asinf.c: New file.
26512         New module 'asinf'.
26513         * lib/math.in.h (asinf): New declaration.
26514         * lib/asinf.c: New file.
26515         * m4/asinf.m4: New file.
26516         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
26517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
26518         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
26519         * modules/asinf: New file.
26520         * tests/test-math-c++.cc: Check the declaration of asinf.
26521         * doc/posix-functions/asinf.texi: Mention the new module.
26523         asin: Use a .m4 file.
26524         * m4/asin.m4: New file.
26525         * modules/asin (Files): Add it.
26526         (configure.ac): Just invoke gl_FUNC_ASIN.
26528 2011-10-08  Bruno Haible  <bruno@clisp.org>
26530         Tests for module 'tanf'.
26531         * modules/tanf-tests: New file.
26532         * tests/test-tanf.c: New file.
26534         New module 'tanf'.
26535         * lib/math.in.h (tanf): New declaration.
26536         * lib/tanf.c: New file.
26537         * m4/tanf.m4: New file.
26538         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
26539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
26540         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
26541         * modules/tanf: New file.
26542         * tests/test-math-c++.cc: Check the declaration of tanf.
26543         * doc/posix-functions/tanf.texi: Mention the new module.
26545         tan: Use a .m4 file.
26546         * m4/tan.m4: New file.
26547         * modules/tan (Files): Add it.
26548         (configure.ac): Just invoke gl_FUNC_TAN.
26550 2011-10-08  Bruno Haible  <bruno@clisp.org>
26552         Tests for module 'cosf'.
26553         * modules/cosf-tests: New file.
26554         * tests/test-cosf.c: New file.
26556         New module 'cosf'.
26557         * lib/math.in.h (cosf): New declaration.
26558         * lib/cosf.c: New file.
26559         * m4/cosf.m4: New file.
26560         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
26561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
26562         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
26563         * modules/cosf: New file.
26564         * tests/test-math-c++.cc: Check the declaration of cosf.
26565         * doc/posix-functions/cosf.texi: Mention the new module.
26567         cos: Use a .m4 file.
26568         * m4/cos.m4: New file.
26569         * modules/cos (Files): Add it.
26570         (configure.ac): Just invoke gl_FUNC_COS.
26572 2011-10-08  Bruno Haible  <bruno@clisp.org>
26574         Tests for module 'sinf'.
26575         * modules/sinf-tests: New file.
26576         * tests/test-sinf.c: New file.
26578         New module 'sinf'.
26579         * lib/math.in.h (sinf): New declaration.
26580         * lib/sinf.c: New file.
26581         * m4/sinf.m4: New file.
26582         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
26583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
26584         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
26585         * modules/sinf: New file.
26586         * tests/test-math-c++.cc: Check the declaration of sinf.
26587         * doc/posix-functions/sinf.texi: Mention the new module.
26589         sin: Use a .m4 file.
26590         * m4/sin.m4: New file.
26591         * modules/sin (Files): Add it.
26592         (configure.ac): Just invoke gl_FUNC_SIN.
26594 2011-10-08  Bruno Haible  <bruno@clisp.org>
26596         Tests for module 'powf'.
26597         * modules/powf-tests: New file.
26598         * tests/test-powf.c: New file.
26600         New module 'powf'.
26601         * lib/math.in.h (powf): New declaration.
26602         * lib/powf.c: New file.
26603         * m4/powf.m4: New file.
26604         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
26605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
26606         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
26607         * modules/powf: New file.
26608         * tests/test-math-c++.cc: Check the declaration of powf.
26609         * doc/posix-functions/powf.texi: Mention the new module.
26611         pow: Use a .m4 file.
26612         * m4/pow.m4: New file.
26613         * modules/pow (Files): Add it.
26614         (configure.ac): Just invoke gl_FUNC_POW.
26616 2011-10-08  Bruno Haible  <bruno@clisp.org>
26618         Tests for module 'log10f'.
26619         * modules/log10f-tests: New file.
26620         * tests/test-log10f.c: New file.
26622         New module 'log10f'.
26623         * lib/math.in.h (log10f): New declaration.
26624         * lib/log10f.c: New file.
26625         * m4/log10f.m4: New file.
26626         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
26627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
26628         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
26629         * modules/log10f: New file.
26630         * tests/test-math-c++.cc: Check the declaration of log10f.
26631         * doc/posix-functions/log10f.texi: Mention the new module.
26633         log10: Use a .m4 file.
26634         * m4/log10.m4: New file.
26635         * modules/log10 (Files): Add it.
26636         (configure.ac): Just invoke gl_FUNC_LOG10.
26638 2011-10-08  Bruno Haible  <bruno@clisp.org>
26640         Tests for module 'logf'.
26641         * modules/logf-tests: New file.
26642         * tests/test-logf.c: New file.
26644         New module 'logf'.
26645         * lib/math.in.h (logf): New declaration.
26646         * lib/logf.c: New file.
26647         * m4/logf.m4: New file.
26648         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
26649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
26650         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
26651         * modules/logf: New file.
26652         * tests/test-math-c++.cc: Check the declaration of logf.
26653         * doc/posix-functions/logf.texi: Mention the new module.
26655         log: Use a .m4 file.
26656         * m4/log.m4: New file.
26657         * modules/log (Files): Add it.
26658         (configure.ac): Just invoke gl_FUNC_LOG.
26660 2011-10-08  Bruno Haible  <bruno@clisp.org>
26662         Tests for module 'expf'.
26663         * modules/expf-tests: New file.
26664         * tests/test-expf.c: New file.
26666         New module 'expf'.
26667         * lib/math.in.h (expf): New declaration.
26668         * lib/expf.c: New file.
26669         * m4/expf.m4: New file.
26670         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
26671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
26672         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
26673         * modules/expf: New file.
26674         * tests/test-math-c++.cc: Check the declaration of expf.
26675         * doc/posix-functions/expf.texi: Mention the new module.
26677         exp: Use a .m4 file.
26678         * m4/exp.m4: New file.
26679         * modules/exp (Files): Add it.
26680         (configure.ac): Just invoke gl_FUNC_EXP.
26682 2011-10-08  Bruno Haible  <bruno@clisp.org>
26684         Tests for module 'sqrtf'.
26685         * modules/sqrtf-tests: New file.
26686         * tests/test-sqrtf.c: New file.
26688         New module 'sqrtf'.
26689         * lib/math.in.h (sqrtf): New declaration.
26690         * lib/sqrtf.c: New file.
26691         * m4/sqrtf.m4: New file.
26692         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
26693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
26694         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
26695         * modules/sqrtf: New file.
26696         * tests/test-math-c++.cc: Check the declaration of sqrtf.
26697         * doc/posix-functions/sqrtf.texi: Mention the new module.
26699 2011-10-08  Bruno Haible  <bruno@clisp.org>
26701         Tests: Avoid link failures w.r.t. libintl.
26702         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
26703         $(LIBINTL).
26704         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
26705         $(LIBINTL).
26706         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
26707         against $(LIBINTL).
26708         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
26709         $(LIBINTL).
26710         * modules/openat-tests (Makefile.am): Link test-fchmodat against
26711         $(LIBINTL).
26712         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
26714 2011-10-08  Bruno Haible  <bruno@clisp.org>
26716         pow tests: Defeat compiler optimizations.
26717         * tests/test-pow.c (main): Assign arguments to x and y before use.
26719 2011-10-08  Bruno Haible  <bruno@clisp.org>
26721         gnulib-tool: Improve last commit.
26722         * gnulib-tool (func_modules_transitive_closure): Simplify code.
26723         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
26724         ignore dependencies that are not among the modules list.
26726 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
26728         gnulib-tool: don't follow dependencies to avoided modules
26729         This fixes a bug that is related to the previous one.
26730         * gnulib-tool (func_modules_transitive_closure)
26731         (func_emit_autoconf_snippets):
26732         Check whether a dependency is acceptable before using it.
26733         (--extract-dependencies): Report an error if --avoid is also used,
26734         since this combination of options is not yet supported.
26736         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
26737         Problem reported by Peter Dyballa in
26738         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
26739         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
26740         when echoing "$condition".
26742 2011-10-07  Bruno Haible  <bruno@clisp.org>
26744         Fix documentation about math functions on MacOS X.
26745         * doc/posix-functions/exp2.texi: Don't say the function is missing on
26746         MacOS X 10.5.
26747         * doc/posix-functions/fdim.texi: Likewise.
26748         * doc/posix-functions/feclearexcept.texi: Likewise.
26749         * doc/posix-functions/fegetenv.texi: Likewise.
26750         * doc/posix-functions/fegetround.texi: Likewise.
26751         * doc/posix-functions/feholdexcept.texi: Likewise.
26752         * doc/posix-functions/feraiseexcept.texi: Likewise.
26753         * doc/posix-functions/fesetenv.texi: Likewise.
26754         * doc/posix-functions/fesetround.texi: Likewise.
26755         * doc/posix-functions/fetestexcept.texi: Likewise.
26756         * doc/posix-functions/feupdateenv.texi: Likewise.
26757         * doc/posix-functions/fmax.texi: Likewise.
26758         * doc/posix-functions/fmin.texi: Likewise.
26759         * doc/posix-functions/log2.texi: Likewise.
26760         * doc/posix-functions/modff.texi: Likewise.
26761         * doc/posix-functions/nan.texi: Likewise.
26762         * doc/posix-functions/nanf.texi: Likewise.
26763         * doc/posix-functions/nextafterf.texi: Likewise.
26764         * doc/posix-functions/remquo.texi: Likewise.
26766 2011-10-07  Bruno Haible  <bruno@clisp.org>
26768         modff: Drop assumption about library that defines modff.
26769         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
26770         AC_CHECK_FUNCS.
26771         * modules/modff (Files): Add m4/mathfunc.m4.
26773 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
26775         raise tests: Avoid a GCC warning.
26776         * tests/test-raise.c (handler): Use _Noreturn.
26778 2011-10-07  Bruno Haible  <bruno@clisp.org>
26780         Tests for module 'ldexpf'.
26781         * modules/ldexpf-tests: New file.
26782         * tests/test-ldexpf.c: New file.
26784         New module 'ldexpf'.
26785         * lib/math.in.h (ldexpf): New declaration.
26786         * lib/ldexpf.c: New file.
26787         * m4/ldexpf.m4: New file.
26788         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
26789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
26790         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
26791         * modules/ldexpf: New file.
26792         * tests/test-math-c++.cc: Check the declaration of ldexpf.
26793         * doc/posix-functions/ldexpf.texi: Mention the new module.
26795 2011-10-06  Bruno Haible  <bruno@clisp.org>
26797         frexpf: Work around problems on IRIX and mingw.
26798         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
26799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
26800         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
26801         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
26802         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
26803         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
26804         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
26806 2011-10-06  Bruno Haible  <bruno@clisp.org>
26808         fabsf: Drop assumption about library that defines fabsf.
26809         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
26810         AC_CHECK_FUNCS.
26811         * modules/fabsf (Files): Add m4/mathfunc.m4.
26813 2011-10-06  Bruno Haible  <bruno@clisp.org>
26815         frexpf: Drop assumption about library that defines frexpf.
26816         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
26817         'int *', 'float *', 'long double *', 'float', 'long double'.
26818         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
26819         AC_CHECK_FUNCS.
26820         * modules/frexpf (Files): Add m4/mathfunc.m4.
26822         Tests for module 'frexpf'.
26823         * modules/frexpf-tests: New file.
26824         * tests/test-frexpf.c: New file.
26826         New module 'frexpf'.
26827         * lib/math.in.h (frexpf): New declaration.
26828         * lib/frexpf.c: New file.
26829         * m4/frexpf.m4: New file.
26830         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
26831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
26832         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
26833         * modules/frexpf: New file.
26834         * tests/test-math-c++.cc: Check the declaration of frexpf.
26835         * doc/posix-functions/frexpf.texi: Mention the new module.
26837 2011-10-06  Bruno Haible  <bruno@clisp.org>
26839         math: Sort function declarations of math.in.h.
26840         * lib/math.in.h (frexp, logb): Move declarations.
26842 2011-10-05  Bruno Haible  <bruno@clisp.org>
26844         Tests for module 'modff'.
26845         * modules/modff-tests: New file.
26846         * tests/test-modff.c: New file.
26848         New module 'modff'.
26849         * lib/math.in.h (modff): New declaration.
26850         * lib/modff.c: New file.
26851         * m4/modff.m4: New file.
26852         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
26853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
26854         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
26855         * modules/modff: New file.
26856         * tests/test-math-c++.cc: Check the declaration of modff.
26857         * doc/posix-functions/modff.texi: Mention the new module.
26859         modf tests: Make test sharper.
26860         * tests/test-modf.c (main): Strengthen upper bound.
26862         modf: Use a .m4 file.
26863         * m4/modf.m4: New file.
26864         * modules/modf (Files): Add it.
26865         (configure.ac): Just invoke gl_FUNC_MODF.
26867 2011-10-05  Bruno Haible  <bruno@clisp.org>
26869         Tests for module 'fmodf'.
26870         * modules/fmodf-tests: New file.
26871         * tests/test-fmodf.c: New file.
26873         New module 'fmodf'.
26874         * lib/math.in.h (fmodf): New declaration.
26875         * lib/fmodf.c: New file.
26876         * m4/fmodf.m4: New file.
26877         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
26878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
26879         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
26880         * modules/fmodf: New file.
26881         * tests/test-math-c++.cc: Check the declaration of fmodf.
26882         * doc/posix-functions/fmodf.texi: Mention the new module.
26884         fmod: Use a .m4 file.
26885         * m4/fmod.m4: New file.
26886         * modules/fmod (Files): Add it.
26887         (configure.ac): Just invoke gl_FUNC_FMOD.
26889 2011-10-05  Bruno Haible  <bruno@clisp.org>
26891         Tests for module 'fabsf'.
26892         * modules/fabsf-tests: New file.
26893         * tests/test-fabsf.c: New file.
26895         New module 'fabsf'.
26896         * lib/math.in.h (fabsf): New declaration.
26897         * lib/fabsf.c: New file.
26898         * m4/fabsf.m4: New file.
26899         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
26900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
26901         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
26902         * modules/fabsf: New file.
26903         * tests/test-math-c++.cc: Check the declaration of fabsf.
26904         * doc/posix-functions/fabsf.texi: Mention the new module.
26906         fabs: Use a .m4 file.
26907         * m4/fabs.m4: New file.
26908         * modules/fabs (Files): Add it.
26909         (configure.ac): Just invoke gl_FUNC_FABS.
26911 2011-10-05  Jim Meyering  <meyering@redhat.com>
26913         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
26914         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
26915         ls -lL regression introduced in coreutils-8.12, it does so at the
26916         cost of an additional stat call in the common case.  Besides, now
26917         that the kernel change that prompted commit 95f7c57f has been reverted
26918         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
26919         we have no use for commit 95f7c57f, "file-has-acl: use
26920         acl_extended_file_nofollow if available".
26922 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
26924         file-has-acl: revert unintended change in behavior of ls -L
26925         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
26926         derived from...
26927         (file_has_acl): ...code here.  Call it.
26928         This problem was introduced with 2011-07-22 commit 95f7c57f,
26929         "file-has-acl: use acl_extended_file_nofollow if available".
26930         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
26932 2011-10-03  Bruno Haible  <bruno@clisp.org>
26934         poll: Avoid link errors on MSVC.
26935         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
26936         * modules/poll (Depends-on): Add sockets.
26937         (Link): New section.
26938         * NEWS: Mention the change.
26939         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
26940         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
26941         $(LIB_POLL) instead of $(LIBSOCKET).
26943 2011-10-03  Bruno Haible  <bruno@clisp.org>
26945         sys_select tests: Fix link error on MSVC 9.
26946         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
26947         with $(LIB_SELECT) instead of $(LIBSOCKET).
26949 2011-10-03  Bruno Haible  <bruno@clisp.org>
26951         sys_select: Fix compilation error on mingw.
26952         * lib/sys_select.in.h: On native Windows, include <io.h>.
26954 2011-10-03  Bruno Haible  <bruno@clisp.org>
26956         wmemset: Support for MSVC.
26957         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
26958         whether wmemset() exists.
26960 2011-10-03  Bruno Haible  <bruno@clisp.org>
26962         wmemmove: Support for MSVC.
26963         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
26964         whether wmemmove() exists.
26966 2011-10-03  Bruno Haible  <bruno@clisp.org>
26968         wmemcpy: Support for MSVC.
26969         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
26970         whether wmemcpy() exists.
26972 2011-10-03  Bruno Haible  <bruno@clisp.org>
26974         wmemcmp: Support for MSVC.
26975         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
26976         whether wmemcmp() exists.
26978 2011-10-03  Bruno Haible  <bruno@clisp.org>
26980         wmemchr: Support for MSVC.
26981         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
26982         whether wmemchr() exists.
26984 2011-10-03  Bruno Haible  <bruno@clisp.org>
26986         glthread/*, strsignal: Support for MSVC.
26987         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
26988         including <winsock.h> on MSVC 9.
26989         * lib/glthread/lock.h: Likewise.
26990         * lib/glthread/thread.h: Likewise.
26991         * lib/glthread/tls.h: Likewise.
26992         * lib/glthread/yield.h: Likewise.
26993         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
26994         if HAVE_UNISTD_H is false.
26995         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
26997 2011-10-03  Bruno Haible  <bruno@clisp.org>
26999         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
27000         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
27001         Set to 100000.
27003 2011-10-03  Bruno Haible  <bruno@clisp.org>
27005         acl: Fix specification.
27006         * lib/file-has-acl.c (file_has_acl): Fix specification.
27008 2011-10-03  Bruno Haible  <bruno@clisp.org>
27010         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
27011         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
27012         (compute_curr_prefix, shared_library_fullname,
27013         find_shared_library_fullname, get_shared_library_fullname, relocate):
27014         Use it together with PIC && INSTALLDIR.
27015         Reported by <jojelino@gmail.com>
27016         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
27018 2011-10-01  Jim Meyering  <meyering@redhat.com>
27020         maint.mk: adjust a release-related rule not to require use of gzip
27021         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
27022         Instead, check each file in $(DIST_ARCHIVES).  This is better for
27023         projects that build only .tar.xz files.  Also fix an erroneous test.
27025         test-linkat: don't leave behind a temporary file
27026         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
27027         Otherwise, coreutils' "make distcheck" would fail with this:
27028           Only in /c/cu/tests/torture/coreutils/test/\
27029             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
27030           make[2]: *** [my-distcheck] Error 1
27032         float, math: add omitted file
27033         * lib/itold.c: Add file, required for yesterday's float change.
27035 2011-10-01  Bruno Haible  <bruno@clisp.org>
27037         isinf: Fix for OpenBSD/x86.
27038         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
27039         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
27040         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
27042 2011-10-01  Bruno Haible  <bruno@clisp.org>
27044         isfinite: Fix syntax error in configure test.
27045         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
27047         isfinite: Fix typo.
27048         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
27049         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
27051 2011-10-01  Bruno Haible  <bruno@clisp.org>
27053         nonblocking tests: Fix test failure on Linux/IA-64.
27054         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
27055         Set to 270000.
27057 2011-10-01  Bruno Haible  <bruno@clisp.org>
27059         mkfifoat tests: Fix a test failure on mingw.
27060         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
27061         with error ENOSYS.
27063 2011-09-30  Bruno Haible  <bruno@clisp.org>
27065         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
27066         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
27067         'long double'. Set REPLACE_ITOLD.
27068         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
27069         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
27070         * lib/itold.c: New file.
27071         * modules/float (Files): Add lib/itold.c.
27072         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
27073         (Makefile.am): Substitute REPLACE_ITOLD.
27074         * modules/math (Depends-on): Add float.
27075         (Makefile.am): Substitute REPLACE_ITOLD.
27076         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
27077         * doc/posix-headers/math.texi: Likewise.
27078         * doc/posix-functions/logl.texi: Likewise.
27080 2011-09-30  Bruno Haible  <bruno@clisp.org>
27082         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
27083         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
27084         Set to 140000.
27086 2011-09-30  Bruno Haible  <bruno@clisp.org>
27088         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
27089         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
27090         invocation, say "right after AC_PROG_CC_STDC", not "right after
27091         AC_PROG_CC".
27092         Reported by Gary V. Vaughan <gary@gnu.org>.
27094 2011-09-30  Bruno Haible  <bruno@clisp.org>
27096         Centralize C99 requirement.
27097         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
27098         * modules/stdarg (configure.ac-early): Invoke it instead of
27099         AC_PROG_CC_STDC.
27100         Reported by Gary V. Vaughan and Paul Eggert.
27102 2011-09-29  Bruno Haible  <bruno@clisp.org>
27104         float: Fix LDBL_MAX value on Linux/PowerPC.
27105         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
27106         on Linux/PowerPC.
27107         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
27108         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
27109         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
27110         platform.
27111         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
27113 2011-09-29  Bruno Haible  <bruno@clisp.org>
27115         doc: Improve doc about gl_EARLY.
27116         * doc/gnulib-tool.texi (Initial import): Mention where to place an
27117         AC_PROG_CC_STDC invocation.
27118         Reported by Gary V. Vaughan <gary@gnu.org>.
27120 2011-09-28  Bruno Haible  <bruno@clisp.org>
27122         fgetc, fputc, fread, fwrite tests: Fix link error.
27123         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
27124         on non-MSVC platforms.
27125         * tests/test-fputc.c (main): Likewise.
27126         * tests/test-fread.c (main): Likewise.
27127         * tests/test-fwrite.c (main): Likewise.
27128         Reported by Jim Meyering.
27130 2011-09-27  Bruno Haible  <bruno@clisp.org>
27132         fputc, fwrite tests: Avoid test failure on MSVC.
27133         * tests/test-fgetc.c: Include msvc-inval.h.
27134         (main): Invoke gl_msvc_inval_ensure_handler.
27135         * tests/test-fputc.c: Include msvc-inval.h.
27136         (main): Invoke gl_msvc_inval_ensure_handler.
27137         * tests/test-fread.c: Include msvc-inval.h.
27138         (main): Invoke gl_msvc_inval_ensure_handler.
27139         * tests/test-fwrite.c: Include msvc-inval.h.
27140         (main): Invoke gl_msvc_inval_ensure_handler.
27141         * modules/fgetc-tests (Depends-on): Add msvc-inval.
27142         * modules/fputc-tests (Depends-on): Likewise.
27143         * modules/fread-tests (Depends-on): Likewise.
27144         * modules/fwrite-tests (Depends-on): Likewise.
27146 2011-09-27  Bruno Haible  <bruno@clisp.org>
27148         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
27149         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
27150         (raise): Remove older, duplicated declaration.
27151         (_gl_raise_SIGPIPE): New declaration.
27152         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
27153         (rpl_raise): Remove function.
27154         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
27155         a gnulib-defined SIGPIPE here.
27156         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
27157         'sigprocmask' has detected missing signal-blocking and the module
27158         'sigpipe' is enabled.
27159         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27161 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
27163         base64-tests: avoid memory leak
27164         * tests/test-base64.c (main): Plug memory leak.
27166         base32: new module
27167         * modules/base32: New module.
27168         * lib/base32.c: New file.
27169         * lib/base32.h: Likewise.
27170         * m4/base32.m4: Likewise.
27171         * modules/base32-tests: New test.
27172         * tests/test-base32.c: Likewise.
27173         * MODULES.html.sh (Misc): Mention it.
27175 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27177         gnulib: use more-standard license notice wording
27178         * gnulib-tool (func_emit_copyright_notice): When emitting a
27179         license notice into a file, use the standard wording as suggested
27180         by the current information for GNU maintainers, except say "file"
27181         rather than "program".  The new wording gives a license version
27182         number, which addresses an issue raised by Glenn Morris in
27183         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
27184         * m4/onceonly.m4: Use that same wording here, too.
27186         dup2: minor simplification
27187         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
27188         as lib/dup2.c no longer uses 'inline'.
27190 2011-09-25  Bruno Haible  <bruno@clisp.org>
27192         strings: Fix compilation error on MSVC.
27193         * lib/strings.in.h: Include <stddef.h> for size_t.
27195 2011-09-25  Bruno Haible  <bruno@clisp.org>
27197         fflush et al.: Document limitation on MSVC.
27198         * doc/posix-functions/fflush.texi: Document possible crash in handling
27199         mode other than DEFAULT_HANDLING.
27200         * doc/posix-functions/fgetc.texi: Likewise.
27201         * doc/posix-functions/fputc.texi: Likewise.
27202         * doc/posix-functions/fread.texi: Likewise.
27203         * doc/posix-functions/fwrite.texi: Likewise.
27205 2011-09-25  Bruno Haible  <bruno@clisp.org>
27207         msvc-inval: Allow three invalid parameter handling modes.
27208         * lib/msvc-inval.h: Don't include <stdlib.h> here.
27209         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
27210         macros.
27211         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
27212         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
27213         SANE_LIBRARY_HANDLING as a no-op.
27214         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
27215         <stdlib.h>.
27216         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
27218 2011-09-25  Bruno Haible  <bruno@clisp.org>
27220         msvc-inval: Make handler multithread-safe.
27221         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
27222         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
27223         declarations.
27224         (gl_msvc_inval_current): New declaration.
27225         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27226         Operate on the structure returned by gl_msvc_inval_current().
27227         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
27228         Remove varaiables.
27229         (tls_index, tls_initialized): New variables.
27230         (not_per_thread): New variable.
27231         (gl_msvc_inval_current): New function.
27232         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
27233         returned by gl_msvc_inval_current().
27235 2011-09-25  Bruno Haible  <bruno@clisp.org>
27237         msvc-inval: Install handler globally.
27238         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
27239         !_MSC_VER.
27240         (gl_msvc_invalid_parameter_handler): Remove declaration.
27241         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
27242         declarations.
27243         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27244         Install the handler globally, don't uninstall it.
27245         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
27246         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
27247         currently valid, call RaiseException instead.
27248         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
27249         for !_MSC_VER.
27251 2011-09-25  Bruno Haible  <bruno@clisp.org>
27253         strerror_r-posix: Fix for MSVC 9.
27254         * lib/strerror_r.c (local_snprintf): New function.
27255         (snprintf): Define to local_snprintf, not to _snprintf.
27257 2011-09-25  Bruno Haible  <bruno@clisp.org>
27259         ftruncate: Support for MSVC 9.
27260         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
27261         (chsize_nothrow): New function.
27262         (chsize): Redefine as a macro.
27263         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
27264         * modules/ftruncate (Depends-on): Add msvc-inval.
27266 2011-09-25  Bruno Haible  <bruno@clisp.org>
27268         New module 'fstat'.
27269         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
27270         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
27271         * lib/fchdir.c (rpl_fstat): Remove function.
27272         * m4/fstat.m4: New file.
27273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
27274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
27275         declared.
27276         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
27277         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
27278         * modules/fstat: New file.
27279         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
27280         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
27281         is set.
27282         * doc/posix-functions/fstat.texi: Mention the new module and the
27283         problem on MSVC.
27284         * NEWS: Mention the change.
27285         * modules/acl (Depends-on): Add fstat.
27286         * modules/chdir-safer (Depends-on): Likewise.
27287         * modules/chown (Depends-on): Likewise.
27288         * modules/copy-file (Depends-on): Likewise.
27289         * modules/fchdir (Depends-on): Likewise.
27290         * modules/fdopendir (Depends-on): Likewise.
27291         * modules/fopen (Depends-on): Likewise.
27292         * modules/fts (Depends-on): Likewise.
27293         * modules/getcwd (Depends-on): Likewise.
27294         * modules/isapipe (Depends-on): Likewise.
27295         * modules/linkat (Depends-on): Likewise.
27296         * modules/lseek (Depends-on): Likewise.
27297         * modules/mkdir-p (Depends-on): Likewise.
27298         * modules/open (Depends-on): Likewise.
27299         * modules/openat (Depends-on): Likewise.
27300         * modules/read-file (Depends-on): Likewise.
27301         * modules/renameat (Depends-on): Likewise.
27302         * modules/utimens (Depends-on): Likewise.
27304 2011-09-25  Bruno Haible  <bruno@clisp.org>
27306         linkat: Fix compilation on MSVC 9.
27307         * lib/linkat.c: Don't include <stdint.h>.
27309 2011-09-25  Bruno Haible  <bruno@clisp.org>
27311         fclose: Support for MSVC 9.
27312         * lib/fclose.c: Include msvc-inval.h.
27313         (fclose_nothrow): New function.
27314         (rpl_fclose): Use it.
27315         * modules/fclose (Depends-on): Add msvc-inval.
27316         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
27318 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27320         dup2: minor simplifications
27321         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
27322         that it's a performance win.
27323         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
27324         ! defined __CYGWIN__)" to "ifdef F_GETFL".
27326 2011-09-24  Jim Meyering  <meyering@redhat.com>
27328         test-futimens: avoid a warning from gcc -Wshadow
27329         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
27330         to avoid a shadowing warning.
27332 2011-09-24  Bruno Haible  <bruno@clisp.org>
27334         fdopen: Support for MSVC 9.
27335         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
27336         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
27337         * lib/fdopen.c: Include msvc-inval.h.
27338         (fdopen_nothrow): New function.
27339         (rpl_fdopen): Use it.
27340         * modules/fdopen (Depends-on): Add msvc-inval.
27341         * modules/fclose-tests (Depends-on): Add fdopen.
27342         * modules/fflush-tests (Depends-on): Likewise.
27343         * modules/fgetc-tests (Depends-on): Likewise.
27344         * modules/fputc-tests (Depends-on): Likewise.
27345         * modules/fread-tests (Depends-on): Likewise.
27346         * modules/freopen-tests (Depends-on): Likewise.
27347         * modules/fseeko-tests (Depends-on): Likewise.
27348         * modules/ftello-tests (Depends-on): Likewise.
27349         * modules/fwrite-tests  (Depends-on): Likewise.
27350         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
27352 2011-09-24  Bruno Haible  <bruno@clisp.org>
27354         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
27355         * modules/fgetc-tests (Depends-on): Add unistd.
27356         * modules/fputc-tests (Depends-on): Likewise.
27357         * modules/fread-tests (Depends-on): Likewise.
27358         * modules/fwrite-tests (Depends-on): Likewise.
27360 2011-09-24  Bruno Haible  <bruno@clisp.org>
27362         dup: Simplify autoconf test.
27363         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
27364         on gl_MSVC_INVAL's result.
27366 2011-09-24  Bruno Haible  <bruno@clisp.org>
27368         Tests for function fwrite().
27369         * modules/fwrite-tests: New file.
27370         * tests/test-fwrite.c: New file.
27371         * modules/stdio-tests (Depends-on): Add fwrite-tests.
27373         Tests for function fread().
27374         * modules/fread-tests: New file.
27375         * tests/test-fread.c: New file.
27376         * modules/stdio-tests (Depends-on): Add fread-tests.
27378         Activate fputc tests.
27379         * modules/stdio-tests (Depends-on): Add fputc-tests.
27381         Enhance fgetc, fputc tests.
27382         * tests/test-fgetc.c (main): Also test the stream's error indicator.
27383         * tests/test-fputc.c (main): Likewise.
27385 2011-09-24  Bruno Haible  <bruno@clisp.org>
27387         write: Support for MSVC 9.
27388         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27389         is not 1.
27390         * lib/write.c (write_nothrow): New function.
27391         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
27392         not 1. Use write_nothrow.
27393         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
27394         invalid parameter handler.
27395         (gl_PREREQ_WRITE): New macro.
27396         * modules/write (Depends-on): Add msvc-inval.
27397         (configure.ac): Invoke gl_PREREQ_WRITE.
27398         * doc/posix-functions/write.texi: Mention the problem on MSVC.
27400 2011-09-24  Bruno Haible  <bruno@clisp.org>
27402         read: Fix last commit.
27403         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
27405 2011-09-24  Bruno Haible  <bruno@clisp.org>
27407         dup2: Fix last commit.
27408         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
27409         (rpl_dup2): Disable fcntl workaround on native Windows.
27411         sigprocmask: Make code safer.
27412         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
27413         section that changes macro definitions for this compilation unit.
27415 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27417         dup2: clarify by coalescing Windows-specific material
27418         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
27419         "msvc-nothrow.h"' to the Windows-specific section, so that the
27420         Emacs source need not contain these include files.
27421         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
27422         Windows-specific fixes into this function rather than just the
27423         nothrow fix, as this shortens and clarifies the code.  Always
27424         define as a function, as that's a bit cleaner than having it be
27425         sometimes a function and sometimes a macro.
27426         (rpl_dup2): Move the Windows-specific stuff out of here and into
27427         ms_windows_dup2.  Don't protect the Haiku-related fix with
27428         "#if !defined __linux__", as the same code also works around
27429         a Linux kernel bug, and it doesn't add any system calls on any
27430         platform.  Add comment about FreeBSD 6.1.
27432         sigprocmask: move #include directive
27433         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
27434         Windows-specific section, so that the Emacs source need not
27435         contain msvc-inval.h.
27437 2011-09-23  Bruno Haible  <bruno@clisp.org>
27439         read: Support for MSVC 9.
27440         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27441         is not 1.
27442         * lib/read.c (read_nothrow): New function.
27443         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
27444         read_nothrow.
27445         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
27446         invalid parameter handler.
27447         (gl_PREREQ_READ): New macro.
27448         * modules/read (Depends-on): Add msvc-inval.
27449         (configure.ac): Invoke gl_PREREQ_READ.
27450         * doc/posix-functions/read.texi: Mention the problem on MSVC.
27452 2011-09-23  Bruno Haible  <bruno@clisp.org>
27454         close: Support for MSVC 9.
27455         * lib/close.c: Include <errno.h>, msvc-inval.h.
27456         (close_nothrow): New function.
27457         (rpl_close): Use it.
27458         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
27459         invalid parameter handler.
27460         * modules/close (Depends-on): Add msvc-inval.
27461         * modules/dup2-tests (Depends-on): Add close.
27462         * modules/dup3-tests (Depends-on): Likewise.
27463         * modules/fcntl-tests (Depends-on): Likewise.
27464         * modules/spawn-pipe-tests (Depends-on): Likewise.
27465         * modules/unistd-safer-tests (Depends-on): Likewise.
27466         * doc/posix-functions/close.texi: Mention the problem on MSVC.
27468 2011-09-23  Bruno Haible  <bruno@clisp.org>
27470         New module 'dup'.
27471         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
27472         Allow replacement.
27473         * lib/dup.c: New file.
27474         * lib/fchdir.c (rpl_dup): Remove function.
27475         * m4/dup.m4: New file.
27476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
27477         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
27478         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
27479         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
27480         * modules/dup: New file.
27481         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
27482         'dup' module is in use.
27483         * modules/fdopendir (Depends-on): Add dup.
27484         * modules/fdutimensat-tests (Depends-on): Likewise.
27485         * modules/fts (Depends-on): Likewise.
27486         * modules/futimens-tests (Depends-on): Likewise.
27487         * modules/posix_spawnp-tests (Depends-on): Likewise.
27488         * modules/unistd-safer-tests (Depends-on): Likewise.
27489         * modules/utimens-tests (Depends-on): Likewise.
27490         * doc/posix-functions/dup.texi: Mention the new module and the problem
27491         on MSVC.
27493 2011-09-23  Bruno Haible  <bruno@clisp.org>
27495         getdtablesize: Support for MSVC 9.
27496         * lib/getdtablesize.c: Include msvc-inval.h.
27497         (_setmaxstdio_nothrow): New function.
27498         (_setmaxstdio): Redefine it.
27499         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
27500         * modules/getdtablesize (Depends-on): Add msvc-inval.
27501         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
27503 2011-09-23  Bruno Haible  <bruno@clisp.org>
27505         signal-h: Rename from signal.
27506         * modules/signal-h: Renamed from modules/signal.
27507         * modules/pthread_sigmask (Depends-on): Update.
27508         * modules/raise (Depends-on): Likewise.
27509         * modules/sigaction (Depends-on): Likewise.
27510         * modules/sigpipe (Depends-on): Likewise.
27511         * modules/sigprocmask (Depends-on): Likewise.
27512         * modules/sys_select (Depends-on): Likewise.
27513         * modules/signal-h-tests: Renamed from modules/signal-tests.
27514         (Files, Depends-on, Makefile.am): Update.
27515         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
27516         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
27517         (Files, Makefile.am): Update.
27518         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
27519         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
27520         * modules/signal: New placeholder file.
27521         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
27522         * doc/posix-headers/signal.texi: Update.
27523         * NEWS: Mention the change.
27525 2011-09-23  Bruno Haible  <bruno@clisp.org>
27527         sigprocmask: Avoid crashes through signal() on MSVC 9.
27528         * lib/sigprocmask.c: Include msvc-inval.h.
27529         (signal_nothrow): New function.
27530         (signal): Redefine it.
27531         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
27532         * modules/sigprocmask (Depends-on): Add msvc-inval.
27533         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
27535 2011-09-23  Bruno Haible  <bruno@clisp.org>
27537         Tests for module 'raise'.
27538         * modules/raise-tests: New file.
27539         * tests/test-raise.c: New file.
27541         raise: Support for MSVC.
27542         * lib/signal.in.h (raise): New declaration.
27543         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
27544         for native Windows platforms.
27545         * m4/raise.m4: New file.
27546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
27547         HAVE_RAISE, REPLACE_RAISE.
27548         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
27549         REPLACE_RAISE.
27550         * modules/raise (Status, Notice): Remove fields.
27551         (Files): Add m4/raise.m4.
27552         (Depends-on): Add signal, msvc-inval.
27553         (configure.ac): Use the common idioms.
27554         (Maintainer): Add me.
27555         * tests/test-signal-c++.cc: Check the signature of raise.
27556         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
27558 2011-09-23  Bruno Haible  <bruno@clisp.org>
27560         pipe2: Fix compilation on pre-C99 compilers.
27561         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
27563 2011-09-23  Bruno Haible  <bruno@clisp.org>
27565         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
27566         * lib/msvc-nothrow.h: New file.
27567         * lib/msvc-nothrow.c: New file.
27568         * m4/msvc-nothrow.m4: New file.
27569         * modules/msvc-nothrow: New file.
27570         * lib/dup2.c: Include msvc-nothrow.h.
27571         (rpl_dup2): No need to protect _get_osfhandle call here.
27572         * lib/accept4.c: Include msvc-nothrow.h.
27573         * lib/error.c: Likewise.
27574         * lib/fcntl.c: Likewise.
27575         * lib/lseek.c: Likewise.
27576         * lib/nonblocking.c: Likewise.
27577         * lib/poll.c: Likewise.
27578         * lib/read.c: Likewise.
27579         * lib/select.c: Likewise.
27580         * lib/sockets.h: Likewise.
27581         * lib/sockets.c: Likewise.
27582         * lib/stdio-read.c: Likewise.
27583         * lib/stdio-write.c: Likewise.
27584         * lib/write.c: Likewise.
27585         * lib/w32sock.h: Likewise.
27586         * lib/w32spawn.h: Likewise.
27587         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
27588         * lib/fsync.c: Likewise.
27589         * lib/isapipe.c: Likewise.
27590         * modules/dup2 (Depends-on): Add msvc-nothrow.
27591         * modules/accept4 (Depends-on): Likewise.
27592         * modules/error (Depends-on): Likewise.
27593         * modules/fcntl (Depends-on): Likewise.
27594         * modules/lseek (Depends-on): Likewise.
27595         * modules/nonblocking (Depends-on): Likewise.
27596         * modules/poll (Depends-on): Likewise.
27597         * modules/read (Depends-on): Likewise.
27598         * modules/select (Depends-on): Likewise.
27599         * modules/sockets (Depends-on): Likewise.
27600         * modules/sigpipe (Depends-on): Likewise.
27601         * modules/write (Depends-on): Likewise.
27602         * modules/accept (Depends-on): Likewise.
27603         * modules/bind (Depends-on): Likewise.
27604         * modules/connect (Depends-on): Likewise.
27605         * modules/gethostname (Depends-on): Likewise.
27606         * modules/getpeername (Depends-on): Likewise.
27607         * modules/getsockname (Depends-on): Likewise.
27608         * modules/getsockopt (Depends-on): Likewise.
27609         * modules/ioctl (Depends-on): Likewise.
27610         * modules/listen (Depends-on): Likewise.
27611         * modules/recv (Depends-on): Likewise.
27612         * modules/recvfrom (Depends-on): Likewise.
27613         * modules/send (Depends-on): Likewise.
27614         * modules/sendto (Depends-on): Likewise.
27615         * modules/setsockopt (Depends-on): Likewise.
27616         * modules/shutdown (Depends-on): Likewise.
27617         * modules/socket (Depends-on): Likewise.
27618         * modules/execute (Depends-on): Likewise.
27619         * modules/spawn-pipe (Depends-on): Likewise.
27620         * modules/flock (Depends-on): Likewise.
27621         * modules/fsync (Depends-on): Likewise.
27622         * modules/isapipe (Depends-on): Likewise.
27623         * tests/test-cloexec.c: Include msvc-nothrow.h.
27624         * tests/test-dup-safer.c: Likewise.
27625         * tests/test-dup2.c: Likewise.
27626         * tests/test-dup3.c: Likewise.
27627         * tests/test-fcntl.c: Likewise.
27628         * tests/test-pipe.c: Likewise.
27629         * tests/test-pipe2.c: Likewise.
27630         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
27631         * modules/unistd-safer-tests (Depends-on): Likewise.
27632         * modules/dup2-tests (Depends-on): Likewise.
27633         * modules/dup3-tests (Depends-on): Likewise.
27634         * modules/fcntl-tests (Depends-on): Likewise.
27635         * modules/pipe-posix-tests (Depends-on): Likewise.
27636         * modules/pipe2-tests (Depends-on): Likewise.
27638 2011-09-23  Bruno Haible  <bruno@clisp.org>
27640         dup2: Make code more maintainable.
27641         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
27642         (rpl_dup2): Use it.
27643         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
27644         * modules/dup2 (configure.ac): Invoke it.
27645         Reported by Paul Eggert.
27647 2011-09-23  Bruno Haible  <bruno@clisp.org>
27649         msvc-inval: Fix compilation error.
27650         * lib/msvc-inval.h: Include <excpt.h>.
27652 2011-09-23  Bruno Haible  <bruno@clisp.org>
27654         mkdir: Tweak for MSVC 9.
27655         * lib/sys_stat.in.h: Update comments.
27656         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
27658         Tests for module 'chdir'.
27659         * modules/chdir-tests: New file.
27660         * tests/test-chdir.c: New file.
27662         New module 'chdir'.
27663         * modules/chdir: New file.
27664         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
27665         (chdir): New declaration.
27666         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
27667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
27668         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
27669         * tests/test-unistd-c++.cc: Check signature of chdir.
27670         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
27671         * modules/chdir-long (Depends-on): Add chdir.
27672         * modules/fchdir (Depends-on): Likewise.
27673         * modules/rename (Depends-on): Likewise.
27674         * modules/savewd (Depends-on): Likewise.
27676         rmdir: Support for mingw, MSVC 9.
27677         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
27678         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
27680         getcwd: Tweak for MSVC 9.
27681         * lib/unistd.in.h: Update comments.
27682         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
27684 2011-09-22  Bruno Haible  <bruno@clisp.org>
27686         strerror_r-posix: Avoid a link error on MSVC.
27687         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
27688         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
27690 2011-09-22  Bruno Haible  <bruno@clisp.org>
27692         select: Avoid link errors on MSVC.
27693         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
27694         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
27695         * modules/pselect (Link): Likewise.
27696         * NEWS: Mention the change.
27697         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
27698         test-select-stdin against $(LIB_SELECT).
27699         * modules/pselect-tests (Makefile.am): Link test-pselect against
27700         $(LIB_SELECT).
27702 2011-09-22  Bruno Haible  <bruno@clisp.org>
27704         select: Avoid compilation error on MSVC.
27705         * lib/select.c: Don't include <stdbool.h>.
27707 2011-09-21  Bruno Haible  <bruno@clisp.org>
27709         Consolidate all uses of PATH_MAX in *.m4 files.
27710         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
27711         macros.
27712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
27713         and gl_PATHMAX_SNIPPET.
27714         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
27715         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27716         * modules/chdir-long (Files): Add m4/pathmax.m4.
27717         * modules/getcwd (Files): Likewise.
27719 2011-09-21  Bruno Haible  <bruno@clisp.org>
27721         ftruncate: Un-deprecate, concentrate on Win32 support.
27722         * modules/ftruncate (Status, Notice): Remove sections.
27723         (Depends-on): Add largefile.
27724         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
27725         non-mingw platforms.
27726         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
27727         include <io.h>.
27728         * modules/perror-tests (Depends-on): Add ftruncate.
27729         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
27730         'ftruncate' module.
27732 2011-09-21  Bruno Haible  <bruno@clisp.org>
27734         Add dependencies to new dirent related modules.
27735         * modules/opendir (Depends-on): Add closedir.
27736         * modules/getcwd (Depends-on): Add opendir, closedir.
27737         * modules/dirent-safer-tests (Depends-on): Likewise.
27738         * modules/fdopendir-tests (Depends-on): Likewise.
27739         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
27740         * modules/renameat-tests (Depends-on): Likewise.
27742 2011-09-21  Bruno Haible  <bruno@clisp.org>
27744         opendir: Avoid compilation error on mingw.
27745         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
27746         * modules/opendir (Depends-on): Add unistd.
27748 2011-09-21  Bruno Haible  <bruno@clisp.org>
27750         ftruncate tests: Avoid a test failure on mingw.
27751         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
27753 2011-09-21  Bruno Haible  <bruno@clisp.org>
27755         select tests: Avoid test failures on OSF/1 5.1 and mingw.
27756         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
27757         native Windows.
27759 2011-09-21  Bruno Haible  <bruno@clisp.org>
27761         New module 'fdopen'.
27762         * lib/stdio.in.h (fdopen): New declaration.
27763         * lib/fdopen.c: New file.
27764         * m4/fdopen.m4: New file.
27765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
27766         REPLACE_FDOPEN.
27767         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
27768         REPLACE_FDOPEN.
27769         * modules/fdopen: New file.
27770         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
27771         * tests/test-stdio-c++.cc: Check signature of fdopen.
27772         * doc/posix-functions/fdopen.texi: Mention the new module.
27774 2011-09-21  Bruno Haible  <bruno@clisp.org>
27776         unlockpt tests: Avoid test failure on NetBSD 5.1.
27777         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
27778         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
27780 2011-09-21  Bruno Haible  <bruno@clisp.org>
27782         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
27783         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
27784         * tests/test-getlogin_r.c (main): Likewise.
27786 2011-09-20  Bruno Haible  <bruno@clisp.org>
27788         time tests: Don't require pid_t.
27789         * doc/posix-headers/time.texi: Revert last change.
27790         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
27791         * tests/test-time.c: Comment out the check for pid_t.
27793 2011-09-20  Bruno Haible  <bruno@clisp.org>
27795         fsync tests: Avoid a test failure on mingw.
27796         * tests/test-fsync.c (main): Allow a failure with EIO.
27798 2011-09-20  Bruno Haible  <bruno@clisp.org>
27800         euidaccess: Update comments.
27801         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
27803 2011-09-20  Bruno Haible  <bruno@clisp.org>
27805         Ensure EBADF returns for socket functions on mingw.
27806         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
27807         descriptor is invalid.
27808         * lib/bind.c (rpl_bind): Likewise.
27809         * lib/connect.c (rpl_connect): Likewise.
27810         * lib/getpeername.c (rpl_getpeername): Likewise.
27811         * lib/getsockname.c (rpl_getsockname): Likewise.
27812         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27813         * lib/listen.c (rpl_listen): Likewise.
27814         * lib/recv.c (rpl_recv): Likewise.
27815         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27816         * lib/send.c (rpl_send): Likewise.
27817         * lib/sendto.c (rpl_sendto): Likewise.
27818         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27819         * lib/shutdown.c (rpl_shutdown): Likewise.
27821 2011-09-20  Bruno Haible  <bruno@clisp.org>
27823         select tests: EBADF tests.
27824         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
27825         test_bad_fd): New functions.
27826         (test_function): Invoke also test_bad_fd.
27828 2011-09-20  Bruno Haible  <bruno@clisp.org>
27830         Tests for module 'posix_spawn_file_actions_addopen.
27831         * modules/posix_spawn_file_actions_addopen-tests: New file.
27832         * tests/test-posix_spawn_file_actions_addopen.c: New file.
27834         Tests for module 'posix_spawn_file_actions_adddup2'.
27835         * modules/posix_spawn_file_actions_adddup2-tests: New file.
27836         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
27838         Tests for module 'posix_spawn_file_actions_addclose'.
27839         * modules/posix_spawn_file_actions_addclose-tests: New file.
27840         * tests/test-posix_spawn_file_actions_addclose.c: New file.
27842 2011-09-20  Bruno Haible  <bruno@clisp.org>
27844         Tests for module 'unlockpt'.
27845         * modules/unlockpt-tests: New file.
27846         * tests/test-unlockpt.c: New file.
27847         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
27849         Tests for module 'grantpt'.
27850         * modules/grantpt-tests: New file.
27851         * tests/test-grantpt.c: New file.
27852         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
27854 2011-09-20  Bruno Haible  <bruno@clisp.org>
27856         freopen tests: EBADF tests.
27857         * tests/test-freopen.c: Include errno.h, unistd.h.
27858         (main): Add tests for EBADF, commented out for the moment.
27860         fclose tests: EBADF tests.
27861         * tests/test-fclose.c (main): Add tests for EBADF.
27863         fflush tests: EBADF tests.
27864         * tests/test-fflush.c: Include errno.h, macros.h.
27865         (main): Add tests for EBADF.
27867         ftello tests: EBADF tests.
27868         * tests/test-ftello4.sh: New file.
27869         * tests/test-ftello4.c: New file.
27870         * modules/ftello-tests (Files): Add them.
27871         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
27873         fseeko tests: EBADF tests.
27874         * tests/test-fseeko4.sh: New file.
27875         * tests/test-fseeko4.c: New file.
27876         * modules/fseeko-tests (Files): Add them.
27877         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
27879         Tests for function fputc().
27880         * modules/fputc-tests: New file.
27881         * tests/test-fputc.c: New file.
27882         * modules/stdio-tests (Depends-on): Add fputc-tests.
27884         Tests for function fgetc().
27885         * modules/fgetc-tests: New file.
27886         * tests/test-fgetc.c: New file.
27887         * modules/stdio-tests (Depends-on): Add fgetc-tests.
27889         Tests for function fdopen().
27890         * modules/fdopen-tests: New file.
27891         * tests/test-fdopen.c: New file.
27892         * modules/stdio-tests (Depends-on): Add fdopen-tests.
27894         Tests for module 'vdprintf'.
27895         * modules/vdprintf-tests: New file.
27896         * tests/test-vdprintf.c: New file.
27898         Tests for module 'dprintf'.
27899         * modules/dprintf-tests: New file.
27900         * tests/test-dprintf.c: New file.
27902 2011-09-20  Bruno Haible  <bruno@clisp.org>
27904         Tests for module 'ioctl'.
27905         * modules/ioctl-tests: New file.
27906         * tests/test-ioctl.c: New file.
27908 2011-09-20  Bruno Haible  <bruno@clisp.org>
27910         fcntl tests: EBADF tests.
27911         * tests/test-fcntl.c (main): Add more tests for EBADF.
27913 2011-09-20  Bruno Haible  <bruno@clisp.org>
27915         utimensat tests: EBADF tests.
27916         * tests/test-utimensat.c (main): Add tests for EBADF.
27918         renameat tests: EBADF tests.
27919         * tests/test-renameat.c (main): Add tests for EBADF.
27921         mkfifoat tests: EBADF tests.
27922         * tests/test-mkfifoat.c (main): Add tests for EBADF.
27924         readlinkat tests: EBADF tests.
27925         * tests/test-readlinkat.c (main): Add tests for EBADF.
27927         symlinkat tests: EBADF tests.
27928         * tests/test-symlinkat.c (main): Add tests for EBADF.
27930         linkat tests: EBADF tests.
27931         * tests/test-linkat.c (main): Add tests for EBADF.
27933         Tests for module 'faccessat'.
27934         * modules/faccessat-tests: New file.
27935         * tests/test-faccessat.c: New file.
27937         fdopendir tests: EBADF tests.
27938         * tests/test-fdopendir.c (main): Add more tests for EBADF.
27940         openat tests: EBADF tests.
27941         * tests/test-fchownat.c (main): Add tests for EBADF.
27942         * tests/test-fstatat.c (main): Likewise.
27943         * tests/test-mkdirat.c (main): Likewise.
27944         * tests/test-openat.c (main): Likewise.
27945         * tests/test-unlinkat.c (main): Likewise.
27946         * tests/test-fchmodat.c: New file.
27947         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
27948         (Makefile.am): Also run 'test-fchmodat'.
27950 2011-09-20  Bruno Haible  <bruno@clisp.org>
27952         utimens, futimens, fdutimensat tests: EBADF tests.
27953         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
27955         Tests for function fstat().
27956         * modules/fstat-tests: New file.
27957         * tests/test-fstat.c: New file.
27958         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
27960 2011-09-20  Bruno Haible  <bruno@clisp.org>
27962         test-ttyname_r tests: EBADF tests.
27963         * tests/test-ttyname_r.c (main): Add tests for EBADF.
27965         Tests for module 'isatty'.
27966         * modules/isatty-tests: New file.
27967         * tests/test-isatty.c: New file.
27969         Tests for module 'write'.
27970         * modules/write-tests: New file.
27971         * tests/test-write.c: New file.
27973         Tests for module 'read'.
27974         * modules/read-tests: New file.
27975         * tests/test-read.c: New file.
27977         pwrite tests: EBADF tests.
27978         * tests/test-pwrite.c (main): Add tests for EBADF.
27980         pread tests: EBADF tests.
27981         * tests/test-pread.c (main): Add tests for EBADF.
27983         lseek tests: EBADF tests.
27984         * tests/test-lseek.c (main): Add more tests for EBADF.
27986         Tests for module 'ftruncate'.
27987         * modules/ftruncate-tests: New file.
27988         * tests/test-ftruncate.sh: New file.
27989         * tests/test-ftruncate.c: New file.
27991         fsync tests: EBADF tests.
27992         * tests/test-fsync.c (main): Add more tests for EBADF.
27994         fdatasync tests: EBADF tests.
27995         * tests/test-fdatasync.c (main): Add more tests for EBADF.
27997         Tests for module 'fchown'.
27998         * modules/fchown-tests: New file.
27999         * tests/test-fchown.c: New file.
28001         Tests for module 'fchmod'.
28002         * modules/fchmod-tests: New file.
28003         * tests/test-fchmod.c: New file.
28005         fchdir tests: EBADF tests.
28006         * tests/test-fchdir.c (main): Add more tests for EBADF.
28008         dup2 tests: EBADF tests.
28009         * tests/test-dup2.c (main): Add more tests for EBADF.
28011         Tests for module 'dup'.
28012         * modules/dup-tests: New file.
28013         * tests/test-dup.c: New file.
28015         Tests for module 'close'.
28016         * modules/close-tests: New file.
28017         * tests/test-close.c: New file.
28019 2011-09-20  Bruno Haible  <bruno@clisp.org>
28021         Tests for module 'shutdown'.
28022         * modules/shutdown-tests: New file.
28023         * tests/test-shutdown.c: New file.
28025         Tests for module 'setsockopt'.
28026         * modules/setsockopt-tests: New file.
28027         * tests/test-setsockopt.c: New file.
28029         Tests for module 'sendto'.
28030         * modules/sendto-tests: New file.
28031         * tests/test-sendto.c: New file.
28033         Tests for module 'send'.
28034         * modules/send-tests: New file.
28035         * tests/test-send.c: New file.
28037         Tests for module 'recvfrom'.
28038         * modules/recvfrom-tests: New file.
28039         * tests/test-recvfrom.c: New file.
28041         Tests for module 'recv'.
28042         * modules/recv-tests: New file.
28043         * tests/test-recv.c: New file.
28045         Tests for module 'listen'.
28046         * modules/listen-tests: New file.
28047         * tests/test-listen.c: New file.
28049         Tests for module 'getsockopt'.
28050         * modules/getsockopt-tests: New file.
28051         * tests/test-getsockopt.c: New file.
28053         Tests for module 'getsockname'.
28054         * modules/getsockname-tests: New file.
28055         * tests/test-getsockname.c: New file.
28057         Tests for module 'getpeername'.
28058         * modules/getpeername-tests: New file.
28059         * tests/test-getpeername.c: New file.
28061         Tests for module 'connect'.
28062         * modules/connect-tests: New file.
28063         * tests/test-connect.c: New file.
28065         Tests for module 'bind'.
28066         * modules/bind-tests: New file.
28067         * tests/test-bind.c: New file.
28069         accept4 tests: Fix for native Windows.
28070         * tests/test-accept4.c: Include sockets.h.
28071         (main): Invoke gl_sockets_startup.
28072         * modules/accept4-tests (Depends-on): Add sockets.
28074         accept tests: Fix for native Windows.
28075         * tests/test-accept.c: Include sockets.h.
28076         (main): Invoke gl_sockets_startup.
28077         * modules/accept-tests (Depends-on): Add sockets.
28079 2011-09-19  Bruno Haible  <bruno@clisp.org>
28081         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
28082         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
28083         do...while(0).
28084         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
28085         Suggested by Paul Eggert.
28087 2011-09-19  Bruno Haible  <bruno@clisp.org>
28089         sched: Ensure pid_t is defined.
28090         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
28091         not define pid_t.
28092         * lib/sched.in.h: Include <sys/types.h>.
28093         * doc/posix-headers/sched.texi: Mention the pid_t problem.
28094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28096 2011-09-19  Bruno Haible  <bruno@clisp.org>
28098         msvc-inval: Ensure the entire expansion is a single statement.
28099         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
28100         of braces.
28102 2011-09-19  Jim Meyering  <meyering@redhat.com>
28104         tests: use printf, not echo in init.sh's warn_ function
28105         * tests/init.sh (warn_): Use printf, not echo.  The latter would
28106         misbehave when given strings containing a backslash or starting
28107         with e.g., -n.  James Youngman suggested setting IFS.
28109 2011-09-19  Eric Blake  <eblake@redhat.com>
28111         futimens: enhance test
28112         * tests/test-futimens.h (test_futimens): Also check for EBADF on
28113         closed non-negative fd.
28115         date: accept 'hence' as opposite of 'ago'
28116         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
28117         * tests/test-parse-datetime.c (main): Enhance test.
28118         Suggested by Jesse Wilson.
28120 2011-09-19  Jim Meyering  <meyering@redhat.com>
28122         getcwd: don't fail in a deep directory on a system without openat
28123         Before this change, getcwd would fail when called from a directory
28124         of depth PATH_MAX / 3 or greater.  That was due to the fact that
28125         the non-openat implementation used "..", "../..", "../../..", etc.
28126         to access ancestor directories.  With too many, that string would
28127         be longer than PATH_MAX.
28128         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
28129         using gnulib's openat replacement.
28130         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
28131         we're using the replacement function.
28133 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
28135         maint.mk: avoid warnings from perl about missing files
28136         * top/maint.mk (def_sym_regex): Ignore files listed in
28137         $(gl_other_headers_) that do not exist, say because a project
28138         does not use a corresponding module.
28140 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28142         stat: use pathmax.h only if needed
28143         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
28144         This is better for Emacs, which does not have a mingw port and
28145         therefore can avoid the pathmax module.
28147         utimens: remove dependency on dup2
28148         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
28149         to work around the Linux kernel bug.
28150         * modules/utimens (Depends-on): Remove dup2.
28152 2011-09-18  Bruno Haible  <bruno@clisp.org>
28154         inet_ntop, inet_pton: Look for it also in libresolv.
28155         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
28156         libnsl, search for it in libresolv.
28157         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28158         Needed on Solaris 7.
28160 2011-09-18  Bruno Haible  <bruno@clisp.org>
28162         accept, accept4 tests: Avoid link error on Solaris.
28163         * modules/accept-tests (Makefile.am): Link test-accept against
28164         $(LIBSOCKET).
28165         * modules/accept4-tests (Makefile.am): Link test-accept4 against
28166         $(LIBSOCKET).
28168         accept4: Avoid link error on Solaris.
28169         * modules/accept4 (Link): New section.
28171         socket functions: Avoid link errors on Solaris.
28172         * modules/accept (Depends-on): Add socketlib.
28173         (Link): New section.
28174         * modules/bind (Depends-on): Add socketlib.
28175         (Link): New section.
28176         * modules/connect (Depends-on): Add socketlib.
28177         (Link): New section.
28178         * modules/getpeername (Depends-on): Add socketlib.
28179         (Link): New section.
28180         * modules/getsockname (Depends-on): Add socketlib.
28181         (Link): New section.
28182         * modules/getsockopt (Depends-on): Add socketlib.
28183         (Link): New section.
28184         * modules/listen (Depends-on): Add socketlib.
28185         (Link): New section.
28186         * modules/recv (Depends-on): Add socketlib.
28187         (Link): New section.
28188         * modules/recvfrom (Depends-on): Add socketlib.
28189         (Link): New section.
28190         * modules/send (Depends-on): Add socketlib.
28191         (Link): New section.
28192         * modules/sendto (Depends-on): Add socketlib.
28193         (Link): New section.
28194         * modules/setsockopt (Depends-on): Add socketlib.
28195         (Link): New section.
28196         * modules/shutdown (Depends-on): Add socketlib.
28197         (Link): New section.
28198         * modules/socket (Depends-on): Add socketlib.
28199         (Link): New section.
28201 2011-09-18  Bruno Haible  <bruno@clisp.org>
28203         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
28204         * tests/test-ptsname.c (main): Terminate the test if it takes longer
28205         than 5 seconds.
28206         * modules/ptsname-tests (configure.ac): Test for alarm.
28208 2011-09-18  Bruno Haible  <bruno@clisp.org>
28210         posix_spawn_file_actions_add*: Fix module dependencies.
28211         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
28212         posix_spawn_file_actions_init.
28213         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
28214         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
28216 2011-09-18  Bruno Haible  <bruno@clisp.org>
28218         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
28219         * tests/test-rename.h (test_rename): Allow error code EEXIST.
28220         * tests/test-renameat.c (main): Likewise.
28222 2011-09-18  Bruno Haible  <bruno@clisp.org>
28224         Tests for module 'accept4'.
28225         * modules/accept4-tests: New file.
28226         * tests/test-accept4.c: New file.
28228 2011-09-18  Bruno Haible  <bruno@clisp.org>
28230         Tests for module 'accept'.
28231         * modules/accept-tests: New file.
28232         * tests/test-accept.c: New file.
28234 2011-09-18  Bruno Haible  <bruno@clisp.org>
28236         dup2: Support for MSVC.
28237         * lib/dup2.c: Include msvc-inval.h.
28238         (rpl_dup2): Handle invalid parameter notifications during dup2 and
28239         _get_osfhandle calls.
28240         * modules/dup2 (Depends-on): Add msvc-inval.
28241         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
28243         New module 'msvc-inval'.
28244         * lib/msvc-inval.h: New file.
28245         * lib/msvc-inval.c: New file.
28246         * m4/msvc-inval.m4: New file.
28247         * modules/msvc-inval: New file.
28249 2011-09-17  Bruno Haible  <bruno@clisp.org>
28251         Tests for module 'pclose'.
28252         * modules/pclose-tests: New file.
28254         New module 'pclose'.
28255         * lib/stdio.in.h (pclose): New declaration.
28256         * lib/pclose.c: New file.
28257         * m4/pclose.m4: New file.
28258         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
28259         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
28260         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
28261         * modules/pclose: New file.
28262         * modules/popen-tests (Depends-on): Add pclose.
28263         * modules/popen-safer-tests (Depends-on): Likewise.
28264         * doc/posix-functions/pclose.texi: Mention the new module.
28266 2011-09-17  Bruno Haible  <bruno@clisp.org>
28268         popen: Support for MSVC.
28269         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
28270         * lib/popen.c (popen): Provide alternate definition for native Windows.
28271         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
28272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
28273         * modules/popen (Depends-on, configure.ac): Update condition.
28274         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
28275         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
28276         fixed.
28278 2011-09-17  Bruno Haible  <bruno@clisp.org>
28280         isnanl, isnand, isnanf: Work around MSVC bug.
28281         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
28283 2011-09-17  Bruno Haible  <bruno@clisp.org>
28285         sys_socket tests: Fix recent mistake.
28286         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
28288 2011-09-17  Bruno Haible  <bruno@clisp.org>
28290         putenv: Support for MSVC.
28291         * modules/putenv (Depends-on): Add environ.
28292         * lib/putenv.c (environ): Disable declaration.
28293         * lib/unistd.in.h: Update comment.
28295 2011-09-17  Bruno Haible  <bruno@clisp.org>
28297         math: Avoid macro redefinition warnings on MSVC.
28298         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
28299         Undefine before redefining.
28301 2011-09-17  Bruno Haible  <bruno@clisp.org>
28303         doc: Mention functions which are declared as macros.
28304         * doc/posix-functions/*[fl].texi: Mention that some functions are
28305         defined as macros with arguments only.
28307 2011-09-17  Bruno Haible  <bruno@clisp.org>
28309         Add dependencies to new dirent related modules.
28310         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
28311         * modules/fts (Depends-on): Likewise.
28312         * modules/glob (Depends-on): Likewise.
28313         * modules/savedir (Depends-on): Likewise.
28314         * modules/scandir (Depends-on): Likewise.
28315         * modules/dirent-safer (Depends-on): Add opendir, closedir.
28316         * modules/fdopendir (Depends-on): Add opendir.
28318 2011-09-17  Bruno Haible  <bruno@clisp.org>
28320         inet_pton: Support for MSVC on Windows Vista or newer.
28321         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
28322         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
28323         HAVE_DECL_INET_PTON is defined.
28324         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28325         On platforms with <winsock2.h>, test whether inet_pton is declared in
28326         <ws2tcpip.h>. If so, arrange to replace it.
28327         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28328         REPLACE_INET_PTON.
28329         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
28330         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
28331         (Depends-on, configure.ac): Update condition.
28332         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
28334 2011-09-17  Bruno Haible  <bruno@clisp.org>
28336         inet_ntop: Support for MSVC on Windows Vista or newer.
28337         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
28338         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
28339         HAVE_DECL_INET_NTOP is defined.
28340         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28341         On platforms with <winsock2.h>, test whether inet_ntop is declared in
28342         <ws2tcpip.h>. If so, arrange to replace it.
28343         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28344         REPLACE_INET_NTOP.
28345         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
28346         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
28347         (Depends-on, configure.ac): Update condition.
28348         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
28350 2011-09-16  Eric Blake  <eblake@redhat.com>
28352         test-fsync: yet another enhancement
28353         * tests/test-fsync.c (main): Also test behavior on read-only text
28354         file.
28356 2011-09-16  Bruno Haible  <bruno@clisp.org>
28358         Enhance fsync, fdatasync tests.
28359         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
28360         * tests/test-fdatasync.c (main): Likewise.
28362 2011-09-16  Bruno Haible  <bruno@clisp.org>
28364         Support for MSVC compiler: Ensure mode_t gets defined.
28365         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
28366         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28368         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
28369         * tests/test-fcntl-h.c: Check that mode_t is defined.
28370         * tests/test-sys_stat.c: Likewise.
28371         * tests/test-sys_types.c: Likewise.
28372         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
28373         * doc/posix-headers/sys_stat.texi: Likewise.
28374         * doc/posix-headers/sys_types.texi: Likewise.
28376 2011-09-16  Bruno Haible  <bruno@clisp.org>
28378         sys_stat: Support for MSVC.
28379         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
28380         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
28381         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
28382         MSVC.
28384 2011-09-16  Bruno Haible  <bruno@clisp.org>
28386         Support for MSVC compiler: Ensure off_t gets defined.
28387         * lib/unistd.in.h: Include <sys/types.h>.
28388         * tests/test-fcntl-h.c: Check that off_t is defined.
28389         * tests/test-sys_stat.c: Likewise.
28390         * tests/test-sys_types.c: Likewise.
28392 2011-09-16  Eric Blake  <eblake@redhat.com>
28394         fdatasync: port to Solaris
28395         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
28396         * modules/fdatasync (Link): Document it.
28397         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
28399         fdatasync: port to MacOS X 10.7
28400         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
28401         declared.
28402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
28403         * modules/unistd (Makefile.am): Substitute it.
28404         * lib/unistd.in.h (fdatasync): Declare on MacOS.
28405         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
28407         fdatasync: minor improvements
28408         * modules/fdatasync (Depends-on): Add condition for fsync.
28409         * lib/fdatasync.c (fdatasync): Add comment.
28410         * tests/test-unistd-c++.cc: Test fdatasync.
28412         unistd: update refs to newer POSIX
28413         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
28414         Suggested by Bruno Haible.
28416         fdatasync: new module
28417         * modules/fsync (Description): Document difference to fdatasync.
28418         * modules/fdatasync: New module.
28419         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
28420         * lib/fdatasync.c (fdatasync): Likewise.
28421         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
28422         defaults.
28423         * modules/unistd (Makefile.am): Set witnesses.
28424         * lib/unistd.in.h (fdatasync): Declare.
28425         * MODULES.html.sh: Document it.
28426         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
28427         * modules/fdatasync-tests: New test.
28428         * tests/test-fdatasync.c: Likewise.
28430 2011-09-16  Eric Blake  <eblake@redhat.com>
28432         test-fsync: enhance tests
28433         * modules/fsync-tests (Depends-on): Add errno, for mingw.
28434         * tests/test-fsync.c (main): Enhance test.
28436 2011-09-15  Bruno Haible  <bruno@clisp.org>
28438         Support for MSVC compiler: Ensure ssize_t gets defined.
28439         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
28440         * doc/posix-headers/stdio.texi: Likewise.
28441         * modules/stdio (Depends-on): Add ssize_t.
28442         * modules/sys_socket (Depends-on): Likewise.
28443         * modules/sys_types (Depends-on): Likewise.
28444         * modules/sys_uio (Depends-on): Likewise.
28445         * modules/unistd (Depends-on): Likewise.
28446         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
28447         * tests/test-sys_types.c: Check that ssize_t is defined.
28449 2011-09-14  Bruno Haible  <bruno@clisp.org>
28451         Avoid using #, the m4 comment starter character, near brackets.
28452         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
28453         delimiter character in sed expressions.
28454         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28455         Suggested by Eric Blake.
28457         Properly quote AC_CHECK_DECLS' 4th argument.
28458         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
28459         argument.
28460         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28461         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28462         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28463         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28464         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28465         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
28466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
28467         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
28468         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
28469         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
28470         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
28471         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28472         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28473         * m4/isinf.m4 (gl_ISINF): Likewise.
28474         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28475         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28476         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28477         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28478         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28479         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
28480         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28481         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28482         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
28483         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28484         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28485         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
28487         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28489         Reported by Eric Blake.
28491         Properly quote AC_CHECK_DECL's 4th argument.
28492         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
28493         argument.
28494         * m4/argp.m4 (gl_ARGP): Likewise.
28495         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28496         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28497         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28498         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28499         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
28500         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
28501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
28502         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28503         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28504         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28505         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28506         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28507         Reported by Eric Blake.
28509 2011-09-14  Eric Blake  <eblake@redhat.com>
28511         opendir: avoid compile warning
28512         * lib/opendir.c (includes): Always include errno.h.
28513         Reported by Tatsuro MATSUOKA.
28515 2011-09-14  Jim Meyering  <meyering@redhat.com>
28517         maint.mk: sc_tight_scope: propagate failure from sub-make
28518         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
28519         Reported by Martin von Gagern.
28521 2011-09-13  Bruno Haible  <bruno@clisp.org>
28523         tempname: Support for MSVC.
28524         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
28525         MSVC.
28526         * modules/tempname (Depends-on): Add fcntl-h.
28528 2011-09-13  Bruno Haible  <bruno@clisp.org>
28530         sys_time: Support for MSVC.
28531         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
28532         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
28533         include <winsock2.h>.
28534         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
28535         function declarations that collide with POSIX.
28536         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
28537         (Makefile.am): Substitute HAVE_WINSOCK2_H.
28539 2011-09-13  Bruno Haible  <bruno@clisp.org>
28541         stat: Support for MSVC.
28542         * lib/stat.c: Include pathmax.h.
28543         * modules/stat (Depends-on): Add pathmax.
28545         pathmax: Support for native Windows.
28546         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
28548 2011-09-12  Bruno Haible  <bruno@clisp.org>
28550         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
28551         * lib/dirent.in.h (struct dirent): New type.
28552         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
28553         DT_WHT): New macros.
28554         (DIR): New type.
28555         (opendir, closedir): Declare only if the module 'opendir' is enabled.
28556         (readdir, rewinddir): New declarations.
28557         * lib/dirent-private.h: New file.
28558         * lib/opendir.c: New file.
28559         * lib/readdir.c: New file.
28560         * lib/rewinddir.c: New file.
28561         * lib/closedir.c: New file.
28562         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
28563         * m4/opendir.m4: New file.
28564         * m4/readdir.m4: New file.
28565         * m4/rewinddir.m4: New file.
28566         * m4/closedir.m4: New file.
28567         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
28568         REPLACE_CLOSEDIR here.
28569         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
28570         readdir, rewinddir are declared.
28571         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
28572         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
28573         HAVE_REWINDDIR, HAVE_CLOSEDIR.
28574         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
28575         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
28576         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
28577         * modules/opendir: New file.
28578         * modules/readdir: New file.
28579         * modules/rewinddir: New file.
28580         * modules/closedir: New file.
28581         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
28582         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
28583         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
28584         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
28585         * NEWS: Mention the 'fchdir' change.
28587 2011-09-11  Bruno Haible  <bruno@clisp.org>
28589         asm-underscore.m4: Support for MSVC.
28590         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
28591         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
28593 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
28595         Doc about crypt functions.
28596         * doc/posix-functions/crypt.texi: Expand range of glibc versions
28597         needing for _GNU_SOURCE to get crypt.
28598         * doc/posix-functions/encrypt.texi: Likewise.
28599         * doc/posix-functions/setkey.texi: Likewise.
28601 2011-09-11  Bruno Haible  <bruno@clisp.org>
28603         doc: Update regarding MSVC 9.
28604         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
28605         tested".
28606         * doc/posix-functions/*.texi: Update with info about MSVC 9.
28607         * doc/posix-headers/*.texi: Likewise.
28608         * doc/pastposix-functions/*.texi: Likewise.
28609         * doc/glibc-functions/*.texi: Likewise.
28610         * doc/glibc-headers/*.texi: Likewise.
28612 2011-09-11  Bruno Haible  <bruno@clisp.org>
28614         unistd et al.: Don't assume <unistd.h> exists.
28615         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
28616         does not exist.
28617         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
28618         exist. But include <stdlib.h>.
28619         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
28620         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
28621         symlink() does not exist.
28622         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
28623         include <io.h> instead.
28624         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
28625         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
28626         include <direct.h> instead.
28627         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28629         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
28630         <io.h> instead.
28631         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
28632         correctly if the system does not have hard links.
28633         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
28634         <direct.h> instead.
28635         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
28636         it when looking for function declarations.
28637         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
28638         <direct.h> and <io.h> instead.
28639         * doc/posix-headers/unistd.texi: More details about MSVC problem.
28641 2011-09-11  Bruno Haible  <bruno@clisp.org>
28643         strcase: Support for MSVC.
28644         * modules/strcase (Status, Notice): Remove obsoletion mark.
28645         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
28646         * doc/posix-functions/strncasecmp.texi: Likewise.
28648         strings: Don't assume <strings.h> exists.
28649         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
28650         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
28651         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
28652         * doc/posix-headers/strings.texi: Mention the MSVC problem.
28654 2011-09-11  Bruno Haible  <bruno@clisp.org>
28656         dirent: Don't assume <dirent.h> exists.
28657         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
28658         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
28659         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
28660         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
28662 2011-09-11  Bruno Haible  <bruno@clisp.org>
28664         Fix wint_t on MSVC.
28665         * lib/wchar.in.h (wint_t): On MSVC, override it.
28666         * lib/wctype.in.h (wint_t): Likewise.
28667         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
28668         MSVC.
28669         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
28670         * doc/posix-headers/wctype.texi: Likewise.
28672 2011-09-11  Bruno Haible  <bruno@clisp.org>
28674         sys_types: Fix typo.
28675         * lib/sys_types.in.h: Fix typo in comment.
28676         Reported by Paul Eggert.
28678         Support for MSVC compiler: Ensure size_t gets defined.
28679         * modules/strings (Depends-on): Add 'sys_types'.
28680         * modules/sys_uio (Depends-on): Likewise.
28681         * lib/sys_uio.in.h: Update comment.
28683         C++ tests for module 'sys_types'.
28684         * modules/sys_types-c++-tests: New file.
28685         * tests/test-sys_types-c++.cc: New file.
28687         Tests for module 'sys_types'.
28688         * modules/sys_types-tests: New file.
28689         * tests/test-sys_types.c: New file.
28691         New module 'sys_types'.
28692         * lib/sys_types.in.h: New file.
28693         * m4/sys_types_h.m4: New file.
28694         * modules/sys_types: New file.
28695         * doc/posix-headers/sys_types.texi: Mention the new module and the
28696         size_t problem on MSVC 9.
28698 2011-09-11  Bruno Haible  <bruno@clisp.org>
28700         Support for MSVC compiler: Avoid division by a literal 0.
28701         * lib/math.in.h (NAN): Define through a function call also on MSVC.
28702         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
28703         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
28704         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
28705         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
28706         * tests/infinity.h: New file.
28707         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
28708         on MSVC.
28709         * tests/test-ceilf1.c: Include infinity.h.
28710         (main): Use Infinityf.
28711         * tests/test-ceil1.c: Include infinity.h.
28712         (main): Use Infinityd.
28713         * tests/test-ceill.c: Include infinity.h.
28714         (main): Use Infinityl.
28715         * tests/test-dprintf-posix.c: Include infinity.h.
28716         (test_function): Use Infinityd.
28717         * tests/test-floorf1.c: Include infinity.h.
28718         (main): Use Infinityf.
28719         * tests/test-floor1.c: Include infinity.h.
28720         (main): Use Infinityd.
28721         * tests/test-floorl.c: Include infinity.h.
28722         (main): Use Infinityl.
28723         * tests/test-fprintf-posix.c: Include infinity.h.
28724         (test_function): Use Infinityd.
28725         * tests/test-frexp.c: Include infinity.h.
28726         (main): Use Infinityd.
28727         * tests/test-frexpl.c: Include infinity.h.
28728         (main): Use Infinityl.
28729         * tests/test-isfinite.c: Include infinity.h.
28730         (test_isfinitef): Use Infinityf.
28731         (test_isfinited): Use Infinityd.
28732         (test_isfinitel): Use Infinityl.
28733         * tests/test-isinf.c: Include infinity.h.
28734         (test_isinff): Use Infinityf.
28735         (test_isinfd): Use Infinityd.
28736         (test_isinfl): Use Infinityl.
28737         * tests/test-isnan.c: Include infinity.h.
28738         (test_float): Use Infinityf.
28739         (test_double): Use Infinityd.
28740         (test_long_double): Use Infinityl.
28741         * tests/test-isnanf.h: Include infinity.h.
28742         (main): Use Infinityf.
28743         * tests/test-isnand.h: Include infinity.h.
28744         (main): Use Infinityd.
28745         * tests/test-isnanl.h: Include infinity.h.
28746         (main): Use Infinityl.
28747         * tests/test-ldexpl.c: Include infinity.h.
28748         (main): Use Infinityl.
28749         * tests/test-printf-posix.h: Include infinity.h.
28750         (test_function): Use Infinityd.
28751         * tests/test-roundf1.c: Include infinity.h.
28752         (main): Use Infinityf.
28753         * tests/test-round1.c: Include infinity.h.
28754         (main): Use Infinityd.
28755         * tests/test-roundl.c: Include infinity.h.
28756         (main): Use Infinityl.
28757         * tests/test-signbit.c: Include infinity.h.
28758         (test_signbitf): Use Infinityf.
28759         (test_signbitd): Use Infinityd.
28760         (test_signbitl): Use Infinityl.
28761         * tests/test-snprintf-posix.h: Include infinity.h.
28762         (test_function): Use Infinityd, Infinityl.
28763         * tests/test-sprintf-posix.h: Include infinity.h.
28764         (test_function): Use Infinityd, Infinityl.
28765         * tests/test-truncf1.c: Include infinity.h.
28766         (main): Use Infinityf.
28767         * tests/test-trunc1.c: Include infinity.h.
28768         (main): Use Infinityd.
28769         * tests/test-truncl.c: Include infinity.h.
28770         (main): Use Infinityl.
28771         * tests/test-vasnprintf-posix.c: Include infinity.h.
28772         (test_function): Use Infinityd, Infinityl.
28773         * tests/test-vasprintf-posix.c: Include infinity.h.
28774         (test_function): Use Infinityd, Infinityl.
28775         * modules/ceilf-tests (Files): Add tests/infinity.h.
28776         * modules/ceil-tests (Files): Likewise.
28777         * modules/ceill-tests (Files): Likewise.
28778         * modules/dprintf-posix-tests (Files): Likewise.
28779         * modules/floorf-tests (Files): Likewise.
28780         * modules/floor-tests (Files): Likewise.
28781         * modules/floorl-tests (Files): Likewise.
28782         * modules/fprintf-posix-tests (Files): Likewise.
28783         * modules/frexp-tests (Files): Likewise.
28784         * modules/frexp-nolibm-tests (Files): Likewise.
28785         * modules/frexpl-tests (Files): Likewise.
28786         * modules/frexpl-nolibm-tests (Files): Likewise.
28787         * modules/isfinite-tests (Files): Likewise.
28788         * modules/isinf-tests (Files): Likewise.
28789         * modules/isnan-tests (Files): Likewise.
28790         * modules/isnanf-tests (Files): Likewise.
28791         * modules/isnanf-nolibm-tests (Files): Likewise.
28792         * modules/isnand-tests (Files): Likewise.
28793         * modules/isnand-nolibm-tests (Files): Likewise.
28794         * modules/isnanl-tests (Files): Likewise.
28795         * modules/isnanl-nolibm-tests (Files): Likewise.
28796         * modules/ldexpl-tests (Files): Likewise.
28797         * modules/printf-posix-tests (Files): Likewise.
28798         * modules/roundf-tests (Files): Likewise.
28799         * modules/round-tests (Files): Likewise.
28800         * modules/roundl-tests (Files): Likewise.
28801         * modules/signbit-tests (Files): Likewise.
28802         * modules/snprintf-posix-tests (Files): Likewise.
28803         * modules/sprintf-posix-tests (Files): Likewise.
28804         * modules/truncf-tests (Files): Likewise.
28805         * modules/trunc-tests (Files): Likewise.
28806         * modules/truncl-tests (Files): Likewise.
28807         * modules/vasnprintf-posix-tests (Files): Likewise.
28808         * modules/vasprintf-posix-tests (Files): Likewise.
28809         * modules/vdprintf-posix-tests (Files): Likewise.
28810         * modules/vfprintf-posix-tests (Files): Likewise.
28811         * modules/vprintf-posix-tests (Files): Likewise.
28812         * modules/vsnprintf-posix-tests (Files): Likewise.
28813         * modules/vsprintf-posix-tests (Files): Likewise.
28814         * modules/xprintf-posix-tests (Files): Likewise.
28816 2011-09-11  Bruno Haible  <bruno@clisp.org>
28818         Ensure pid_t gets defined.
28819         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
28820         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
28821         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28822         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28823         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28824         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
28825         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
28826         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28827         * tests/test-fcntl-h.c: Check that pid_t is defined.
28828         * tests/test-sched.c: Likewise.
28829         * tests/test-termios.c: Likewise.
28830         * tests/test-time.c: Likewise.
28831         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
28832         * doc/posix-headers/signal.texi: Likewise.
28833         * doc/posix-headers/sys_types.texi: Likewise.
28834         * doc/posix-headers/time.texi: Likewise.
28836 2011-09-11  Bruno Haible  <bruno@clisp.org>
28838         acl: Fix compilation on Solaris 10 (older version).
28839         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
28840         of ACE_EVERYONE.
28841         * lib/set-mode-acl.c (qset_acl): Likewise.
28842         Reported by Christian Jullien <eligis@orange.fr>.
28844 2011-09-10  Bruno Haible  <bruno@clisp.org>
28846         iconv, unsetenv: Add support for MSVC compiler.
28847         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
28848         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
28850 2011-09-10  Bruno Haible  <bruno@clisp.org>
28852         *printf: Add support for MSVC compiler.
28853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
28854         handles the exception caused by the %n directive. When cross-compiling,
28855         guess no on native Windows.
28856         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28857         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
28858         emulate it through vsnprintf.
28859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
28860         * doc/posix-functions/dprintf.texi: Update documentation regarding
28861         MSVC 9.
28862         * doc/posix-functions/fprintf.texi: Likewise.
28863         * doc/posix-functions/printf.texi: Likewise.
28864         * doc/posix-functions/snprintf.texi: Likewise.
28865         * doc/posix-functions/sprintf.texi: Likewise.
28866         * doc/posix-functions/swprintf.texi: Likewise.
28867         * doc/posix-functions/vdprintf.texi: Likewise.
28868         * doc/posix-functions/vfprintf.texi: Likewise.
28869         * doc/posix-functions/vprintf.texi: Likewise.
28870         * doc/posix-functions/vsnprintf.texi: Likewise.
28871         * doc/posix-functions/vsprintf.texi: Likewise.
28872         * doc/glibc-functions/asprintf.texi: Likewise.
28873         * doc/glibc-functions/obstack_printf.texi: Likewise.
28874         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28875         * doc/glibc-functions/vasprintf.texi: Likewise.
28877 2011-09-10  Bruno Haible  <bruno@clisp.org>
28879         nocrash: Add support for native Windows.
28880         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
28882 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
28883             Bruno Haible  <bruno@clisp.org>
28885         absolute-header, include-next: Add support for MSVC compiler.
28886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
28887         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
28888         directory separator in #line directives.
28889         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
28890         recognize also backslash as directory separator in #line directives.
28892 2011-09-08  Jim Meyering  <meyering@redhat.com>
28894         maint.mk: mark the post-release commit log with "maint: " prefix
28895         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
28896         one-line commit-log summary.
28898 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
28899             Bruno Haible  <bruno@clisp.org>
28901         Doc about crypt functions.
28902         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
28903         systems.
28904         * doc/posix-functions/encrypt.texi: Likewise.
28905         * doc/posix-functions/setkey.texi: Likewise.
28907 2011-09-08  Simon Josefsson  <simon@josefsson.org>
28909         * lib/gc.h: Fix copyright header.
28911 2011-09-07  Bruno Haible  <bruno@clisp.org>
28913         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
28914         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
28915         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
28917 2011-09-07  Bruno Haible  <bruno@clisp.org>
28919         openat: Work around compilation error with OSF/1 5.1 DTK cc.
28920         * lib/fopen.c: Use different syntax for include of <stdio.h>.
28921         * lib/freopen.c: Likewise.
28922         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
28923         * lib/lstat.c: Likewise.
28924         * lib/stat.c: Likewise.
28925         * lib/open.c: Use different syntax for include of <fcntl.h>.
28926         * lib/openat.c: Include fcntl.h again, explicitly.
28928 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
28930         parse-datetime: document the newly accepted format
28931         * doc/parse-datetime.texi (Combined date and time of day items):
28932         New section.
28934 2011-09-06  Bruno Haible  <bruno@clisp.org>
28936         acl: Fix a test failure on newer Solaris 10 with ZFS.
28937         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
28938         ENOSYS as no ACL.
28939         Reported by Jim Meyering.
28941 2011-09-06  Bruno Haible  <bruno@clisp.org>
28943         acl: Update for AIX >= 5.3 with NFS.
28944         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
28945         ENOSYS as no ACL.
28947         acl: Fix a test failure on AIX >= 5.3 with NFS.
28948         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
28949         as no ACL.
28951 2011-09-06  Bruno Haible  <bruno@clisp.org>
28953         acl: Fix a test failure on IRIX 6.5 with NFS.
28954         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
28955         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
28956         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
28957         * lib/copy-acl.c (qcopy_acl): Likewise.
28959 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28961         openat: port to AIX 7.1 with large files
28962         AIX 7.1 does a "#define openat open64at" if large files are in use,
28963         so we can't simply #undef openat.  Use the orig_openat trick (similar
28964         to orig_open in lib/open.c) to work around the problem.  Problem
28965         reported by Kevin Brott for GNU tar, in the thread containing
28966         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
28967         * lib/openat.c (__need_system_fcntl_h): Define first.
28968         Include <fcntl.h> and <sys/types.h> before undefining.
28969         (orig_openat) [HAVE_OPENAT]: New inline function.
28970         (openat) [HAVE_OPENAT]: Do not undef.
28971         (rpl_openat): Use orig_openat, not openat.
28973 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28974             Bruno Haible  <bruno@clisp.org>
28976         acl: Avoid errors on NonStop Kernel.
28977         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
28978         ENOTSUP errors.
28980 2011-09-05  Bruno Haible  <bruno@clisp.org>
28982         acl: Clean up Solaris code.
28983         * lib/acl-internal.h: Remove no-op #if.
28984         * lib/file-has-acl.c: Likewise.
28985         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
28986         * lib/copy-acl.c (qcopy_acl): Likewise.
28988 2011-09-05  Bruno Haible  <bruno@clisp.org>
28990         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
28991         binaries built on the original Solaris 10.
28992         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
28993         trivial.
28995 2011-09-05  Bruno Haible  <bruno@clisp.org>
28997         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
28998         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
28999         10.
29000         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
29001         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
29002         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
29003         instead of acl_get, facl_get, acl_set, facl_set.
29005 2011-09-05  Bruno Haible  <bruno@clisp.org>
29007         copy-file: Try unit tests on more file systems.
29008         * tests/test-copy-file-1.sh: New file.
29009         * tests/test-copy-file-2.sh: New file.
29010         * modules/copy-file-tests (Files): Add them.
29011         (Makefile.am): Add them to TESTS.
29013         acl: Try unit tests on more file systems.
29014         * tests/test-file-has-acl-1.sh: New file.
29015         * tests/test-file-has-acl-2.sh: New file.
29016         * tests/test-set-mode-acl-1.sh: New file.
29017         * tests/test-set-mode-acl-2.sh: New file.
29018         * tests/test-copy-acl-1.sh: New file.
29019         * tests/test-copy-acl-2.sh: New file.
29020         * modules/acl-tests (Files): Add them.
29021         (Makefile.am): Add them to TESTS.
29023 2011-09-04  Bruno Haible  <bruno@clisp.org>
29025         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
29026         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
29027         10.
29028         (OLD_ALLOW, OLD_DENY): New macros.
29029         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
29030         ACE_ACCESS_ALLOWED_ACE_TYPE.
29031         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
29032         ACE_ACCESS_DENIED_ACE_TYPE.
29033         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
29034         (NEW_ACE_EXECUTE): Fix value.
29035         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
29036         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
29037         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
29038         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
29039         NEW_ACE_SYNCHRONIZE): New macros.
29040         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
29041         instead of acl_fromtext, acl_set, facl_set.
29042         Fixes a coreutils/tests/cp/perm failure.
29044 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
29046         openat: test for fstatat (..., 0) bug
29047         Further testing with tar suggests that fstatat (..., 0)
29048         does not work in general, on AIX 7.1; see
29049         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
29050         So, give up entirely on AIX 7.1's fstatat, and fall back on our
29051         replacement fstatat (which is what older AIX releases were using
29052         anyway).
29053         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
29054         use is now changed to orig_fstatat.  This was probably the right
29055         thing to do anyway.
29056         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
29057         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
29058         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
29059         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
29060         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
29061         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
29062         if the bug is found.
29064         openat: test for fstatat (AT_FDCWD, ..., 0) bug
29065         This tests for another fstatat bug on AIX 7.1:
29066         fstatat (AT_FDCWD, ..., 0) does not work.  See
29067         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
29068         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
29069         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
29070         (rpl_fstatat): Adjust so that it works around either (or both)
29071         bugs if present.
29072         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
29074 2011-09-03  Karl Berry  <karl@gnu.org>
29076         * doc/regex.texi (Character Class Operators): Avoid literal ":"
29077         in index entries.
29079 2011-09-02  Bruno Haible  <bruno@clisp.org>
29081         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
29082         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
29083         values of AR, ARFLAGS, RANLIB.
29084         Reported by John W. Eaton <jwe@gnu.org> for Octave.
29086 2011-09-02  Bruno Haible  <bruno@clisp.org>
29088         Find 'ar' program that fits with --host argument.
29089         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
29091 2011-09-02  Bruno Haible  <bruno@clisp.org>
29093         tests: init.sh: Support any non-GNU diff.
29094         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
29095         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
29096         Solaris 8.
29098 2011-09-02  Bruno Haible  <bruno@clisp.org>
29100         tests: init.sh: work also with any non-GNU diff that supports -u
29101         * tests/init.sh: Relax check for diff -u support.
29102         Rather than checking for GNU diff via --version, simply check
29103         for support for -u itself.  Useful at least on OpenBSD 4.9,
29104         AIX 7.1, IRIX 6.5, and Solaris 10.
29106 2011-09-01  Bruno Haible  <bruno@clisp.org>
29108         strtoimax, strtoumax: Document problem on HP-UX 11.
29109         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
29110         * doc/posix-functions/strtoumax.texi: Likewise.
29112 2011-09-01  Bruno Haible  <bruno@clisp.org>
29114         strtoumax: Avoid link error on OSF/1 with DTK cc.
29115         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
29116         defined as a function.
29117         * modules/strtoumax (Depends-on, configure.ac): Test only whether
29118         strtoumax is defined, not whether it is declared.
29120 2011-09-01  Bruno Haible  <bruno@clisp.org>
29122         strtoimax: Avoid link error on OSF/1 with DTK cc.
29123         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
29124         defined as a function.
29125         * modules/strtoimax (Depends-on, configure.ac): Test only whether
29126         strtoimax is defined, not whether it is declared.
29128 2011-09-01  Bruno Haible  <bruno@clisp.org>
29130         imaxdiv: Avoid link error on OSF/1 with DTK cc.
29131         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
29132         as a function.
29133         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
29134         whether it is declared.
29136 2011-09-01  Bruno Haible  <bruno@clisp.org>
29138         imaxabs: Avoid link error on OSF/1 with DTK cc.
29139         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
29140         as a function.
29141         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
29142         whether it is declared.
29144 2011-09-01  Bruno Haible  <bruno@clisp.org>
29146         Tests for module 'strtoumax'.
29147         * modules/strtoumax-tests: New file.
29148         * tests/test-strtoumax.c: New file.
29150         Tests for module 'strtoimax'.
29151         * modules/strtoimax-tests: New file.
29152         * tests/test-strtoimax.c: New file.
29154         Tests for module 'imaxdiv'.
29155         * modules/imaxdiv-tests: New file.
29156         * tests/test-imaxdiv.c: New file.
29158         Tests for module 'imaxabs'.
29159         * modules/imaxabs-tests: New file.
29160         * tests/test-imaxabs.c: New file.
29162 2011-09-01  Bruno Haible  <bruno@clisp.org>
29164         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
29165         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
29166         pthread_create.
29168 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29170         openat: work around AIX 7.1 fstatat issue
29171         This should fix the problem that was not properly fixed
29172         in the previous change, dated 2011-08-30.
29173         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
29174         __need_system_stat_h defined.
29175         (orig_fstatat) [HAVE_FSTATAT]: New function.
29176         (rpl_fstatat): Go back to the old way of doing things,
29177         except call orig_fstatat instead of fstatat.
29178         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
29179         Remove unnecessary check whether fstatat fills in st_size etc.
29181 2011-09-01  Bruno Haible  <bruno@clisp.org>
29183         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
29184         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
29185         just include the system's header.
29187 2011-08-31  Jim Meyering  <meyering@redhat.com>
29189         tests: avoid spurious assertion failure in test-float.c on ppc64
29190         * tests/test-float.c (test_long_double): Comment out an assertion,
29191         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
29192         with gcc-4.4.4.
29194         maint: indent with spaces, not TABs
29195         I need to get in the habit of running gnulib's "make check".
29196         Both of these would have been caught.
29197         * m4/largefile.m4: Indent with spaces, not TABs.
29198         * lib/parse-datetime.y (iso_8601_time): Likewise.
29199         Spotted by Pádraig Brady.
29201         test-parse-datetime.c: accommodate a relatively strict gcc warning
29202         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
29203         to avoid a warning from gcc's -Werror=missing-declarations.
29204         Insert a few spaces-before-funcall-parenthesis.
29206 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
29208         parse-datetime: accept ISO 8601 date and time rep with "T" separator
29209         The parser now accepts ISO 8601 date-time strings with "T" as the
29210         separator.  It has long parsed dates like "2004-02-29 16:21:42"
29211         with a space between the date and time strings.  Now it also parses
29212         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
29213         variants like "2004-02-29T16:21:42.333-07:00"
29214         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
29215         of day representation using the 'T' separator character.
29216         * doc/parse-datetime.texi (General date syntax): replace use of
29217         deprecated --iso-8601 option with --rfc-3339 in example of date
29218         command output formats that can be parsed.
29219         * tests/test-parse-datetime.c (tm_diff): New function, taken from
29220         lib/parse-datetime.y.
29221         (gmt_offset): New function.
29222         (main): Add additional test cases to validate ISO8601 extended
29223         date and time of day parsing.
29225 2011-08-31  Bruno Haible  <bruno@clisp.org>
29227         freopen: Documentation.
29228         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
29229         name.
29230         Reported by Claudio Bley <claudio.bley@gmail.com>.
29232 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
29234         freopen: Don't crash if the filename argument is NULL.
29235         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
29236         NULL.
29238 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29240         openat: work around AIX 7.1 fstatat bug
29241         Problem reported by Kevin Brott for GNU tar, in the thread containing
29242         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
29243         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
29244         FSTATAT_ST_SIZE_ETC_BROKEN.
29245         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
29246         rpl_fstatat.
29247         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
29248         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
29249         AC_CHECK_FUNCS_ONCE for fstatat.
29250         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
29251         fchmodat, mkdirat, openat and unlinkat.
29253 2011-08-30  Bruno Haible  <bruno@clisp.org>
29255         Avoid endless recursions if config.h includes some header files.
29256         * lib/fopen.c (__need_FILE): Define already before including config.h.
29257         * lib/freopen.c (__need_FILE): Likewise.
29258         * lib/open.c (__need_system_fcntl_h): Likewise.
29259         * lib/stat.c (__need_system_sys_stat_h): Likewise.
29260         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
29261         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29263 2011-08-25  Karl Berry  <karl@gnu.org>
29265         * config/srclist.txt (ylwrap): new try.
29266         * build-aux/ylwrap: new file.
29268 2011-08-23  Bruno Haible  <bruno@clisp.org>
29270         tmpdir: Use a good default directory on native Windows.
29271         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
29272         (P_tmpdir): Default to _P_tmpdir on native Windows.
29273         (path_search): On native Windows, try the value returned by GetTempPath
29274         before trying P_tmpdir.
29275         * modules/tmpdir (Depends-on): Add pathmax.
29276         Suggested by John Darrington <john@darrington.wattle.id.au>.
29278 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
29280         doc: fix typo in README-release
29281         * top/README-release: Capitalize first word of a sentence.
29283 2011-08-19  Jim Meyering  <meyering@redhat.com>
29285         fts: do not exhaust memory when processing million-entry directories
29286         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
29287         directory would require about 256*N bytes of memory.  Thus, it was
29288         easy to construct a directory too large to be processed by any of
29289         those tools.  With this change, fts' maximum memory utilization is
29290         now limited to around 30MB.
29291         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
29292         (fts_read): When we've processed the final entry (i.e., when
29293         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
29294         using the parent entry to read any remaining entries.  Dispatch
29295         depending on what fts_build returns:
29296         - NULL+stop, aka failure: stop
29297         - NULL otherwise: move up in the dir hierarchy
29298         - non-NULL: handle this new entry
29299         (fts_build): Declare and use new local, continue_readdir.
29300         Prepare to be called from fts_read, when the entries
29301         from a partially-read directory have just been exhausted.
29302         In that case, we'll skip the opendir and instead use the parent's
29303         fts_dirp and derive dir_fd from that.
29304         Finally, in the readdir loop, if we read max_entries entries,
29305         exit the loop ensuring *not* to call closedir.  This is required
29306         so that fts_dirp can be reused on a subsequent call.
29307         Prompted by Ben England's report of memory exhaustion in find
29308         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
29310         maint: fts: move decl of `dp' down into while loop; split a long line
29311         * lib/fts.c (fts_build): No semantic change.
29313         fts: add/use new struct member, fts_dirp
29314         We are about to use this to manage any directory with
29315         too many entries to read all of them into memory at once.
29316         To do that, we'll need to save the DIR* pointer in each
29317         affected FTSENT struct.
29318         * lib/fts_.h: Include <dirent.h>.
29319         (struct FTSENT) [fts_dirp]: New member.
29320         * lib/fts.c (closedir_and_clear): Define.
29321         Use it in place of closedir so that we are sure to
29322         clear the new fts_dirp member when done with it.
29323         (fts_alloc): Initialize the new member.
29324         (fts_lfree): Free, if needed.
29326         maint: fts: give __opendir2 a new parameter and rename
29327         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
29328         than surreptitiously using sole caller's "dir_fd".
29329         (fts_opendir): Rename from __opendir2.
29331         maint: fts.c: remove __opendir2's now-unused parameter, oflag
29332         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
29334         maint: fts.c: correct off-by-one indentation
29335         * lib/fts.c (fts_build): Correct indentation, change style
29336         of a couple of block comments, and bracing style.
29338         maint: fts.c: move __opendir2 #define "up" out of function body
29339         * lib/fts.c (__opendir2): Move "up".  No semantic change.
29341         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
29342         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
29343         out for a long time and besides was useful only on BSD systems.
29345 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29347         regex: port to Stratus OpenVOS
29348         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
29349         define to empty, rather than attempting nonportable optimizations.
29350         Problem reported by Paul Green in:
29351         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
29352         and fix suggested by Eric Blake in:
29353         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
29355 2011-08-17  Eric Blake  <eblake@redhat.com>
29357         getcwd: fix test failures on mingw
29358         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
29359         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
29360         test if long directory cannot be created, and allow mingw errno.
29362         getcwd-lgpl: fix m4 to match relaxed test for BSD
29363         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
29364         (gl_FUNC_GETCWD_SIGNATURE): New macro.
29365         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
29366         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
29367         signature problem.
29369         getcwd: fix compilation on mingw64
29370         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
29371         getcwd.
29372         Reported by Marc-André Lureau.
29374         pipe2: silence compiler warning
29375         * lib/pipe2.c (pipe2): Hide label if it is not used.
29377 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
29379         relocatable-prog: fix link error
29380         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
29381         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
29382         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
29383         into modules/relocatable-lib without noticing that
29384         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
29385         also needs to build relocatable.c.
29387 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29389         getaddrinfo: fix sh typo in gai_strerrorA decl checking
29390         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
29391         shell code: it contained a 'break' that was not in a loop.
29392         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
29393         via a shell-language loop; this may have been true in old Autoconf
29394         versions, but it's not true in Autoconf 2.68.  I found this bug
29395         when testing coreutils git on Solaris 8, whose shell complains
29396         about the syntax error.
29398 2011-08-12  Simon Josefsson  <simon@josefsson.org>
29400         * lib/base64.c: Fix comment to reference RFC 4648.
29401         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
29402         <gvtulder@gmail.com>.
29404 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29406         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
29408         po/Makefile.in.in: fix make -q problem
29409         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
29410         rule, since there's no file named 'check-macro-version' and its
29411         use as a file breaks make -q.
29412         (all): Don't depend on check-macro-version.
29413         (CHECK_MACRO_VERSION): New macro.
29414         (stamp-po): Use it.
29416         configmake: fix make -q problem
29417         * modules/configmake (configmake.h): Update configmake.h's time stamp
29418         even if the file does not change.  Otherwise, 'make -q' fails.
29419         Problem reported by Simon Josefsson in
29420         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
29422 2011-08-11  Jim Meyering  <meyering@redhat.com>
29424         git-version-gen: correct the advice in a comment
29425         * build-aux/git-version-gen: Correct comment.
29426         Don't recommend to list .tarball-version in .gitignore.
29428 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29430         base64: fix off-by-one buffer size bug
29431         Problem and (trivial) fix reported by Gijs van Tulder in
29432         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
29433         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
29434         * tests/test-base64.c (main): Catch the bug.
29436 2011-08-10  Eric Blake  <eblake@redhat.com>
29438         closein: correct comments
29439         * lib/closein.c (close_stdin): Improve comments.
29441 2011-08-09  Bruno Haible  <bruno@clisp.org>
29443         More tests for 'fseeko'.
29444         * tests/test-fseeko3.c: New file, from Eric Blake.
29445         * tests/test-fseeko3.sh: New file.
29446         * modules/fseeko-tests (Files): Add them.
29447         (TESTS): Add test-fseeko3.sh.
29448         (check_PROGRAMS): Add test-fseeko3.
29450 2011-08-09  Eric Blake  <eblake@redhat.com>
29452         fseeko: remove unneeded hack
29453         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
29455         fseeko: fix bug on glibc
29456         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
29457         Reported by John W. Eaton.
29459 2011-08-08  Bruno Haible  <bruno@clisp.org>
29461         unictype/base: Fix interoperability with preinstalled libunistring.
29462         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
29463         Reported by Simon Josefsson.
29465 2011-08-08  Bruno Haible  <bruno@clisp.org>
29467         iswblank: Detect declaration correctly.
29468         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
29469         AC_CHECK_DECLS invocation.
29471 2011-08-08  Bruno Haible  <bruno@clisp.org>
29473         tcgetsid: Detect declaration correctly.
29474         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
29475         AC_CHECK_DECLS invocation.
29476         Reported by Simon Josefsson.
29478 2011-08-08  Eric Blake  <eblake@redhat.com>
29480         largefile: fix typo that regressed large file support
29481         * modules/largefile (configure.ac-early): Fix section name.
29483 2011-08-06  Karl Berry  <karl@gnu.org>
29485         * MODULES.html.sh (func_all_files): _Noreturn is no longer
29486         a separate module.
29488 2011-08-05  Simon Josefsson  <simon@josefsson.org>
29490         openat: Fix warnings and commens when building unlinkat.c on Hurd.
29491         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
29492         get prototype for free.
29494 2011-08-04  Bruno Haible  <bruno@clisp.org>
29496         Tests for module 'pathmax'.
29497         * modules/pathmax-tests: New file.
29498         * tests/test-pathmax.c: New file.
29500         canonicalize-lgpl: Support larger filenames on the Hurd.
29501         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
29502         Reported by Paul Eggert.
29504         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
29505         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
29506         * lib/chdir-long.h: Include pathmax.h.
29507         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
29508         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
29509         (PATH_MAX): Remove code that is done by pathmax.h.
29510         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
29511         * lib/tmpfile.c: Add a comment.
29512         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
29513         * modules/chdir-long (Depends-on): Add pathmax.
29514         * modules/getcwd (Depends-on): Add pathmax.
29515         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
29516         is not defined.
29517         * doc/posix-headers/limits.texi: Mention the pathmax module.
29518         * NEWS: Mention the change.
29520 2011-08-02  Bruno Haible  <bruno@clisp.org>
29522         pthread_sigmask: Actually use results of gl_THREADLIB.
29523         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
29524         gl_THREADLIB, not gl_[]THREADLIB.
29525         Reported by Eric Blake.
29527 2011-08-02  Jim Meyering  <meyering@redhat.com>
29529         maint.mk: relax the default _gl_TS_function_match regexp
29530         * top/maint.mk (_gl_TS_function_match): Don't require at least one
29531         space between function name and "(" in an "extern" declaration.
29532         That would fail to match a decl with no space there: extern void foo();
29534 2011-07-31  Iain Nicol  <iain@thenicols.net>
29536         git-version-gen: document that EXTRA_DIST must include .version
29537         * build-aux/git-version-gen: In the how-to-use comment, document
29538         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
29539         will fail when run from an unpacked distribution tarball.
29541 2011-08-01  Bruno Haible  <bruno@clisp.org>
29543         wctype-h: Fix last change.
29544         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
29545         REPLACE_TOWLOWER to 0.
29546         Reported by Sam Steingold <sds@gnu.org>.
29548 2011-07-31  Bruno Haible  <bruno@clisp.org>
29550         frexpl: Update autoconf test.
29551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
29552         according to changes of 2011-06-20.
29554 2011-07-31  Bruno Haible  <bruno@clisp.org>
29556         sys_utsname: Add support for Minix.
29557         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
29558         <sys/utsname.h>.
29559         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29560         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
29562 2011-07-31  Bruno Haible  <bruno@clisp.org>
29564         strings: Add support for Minix.
29565         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
29566         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29567         * doc/posix-headers/strings.texi: Document the Minix problem.
29569 2011-07-31  Bruno Haible  <bruno@clisp.org>
29571         wctype-h: Add support for Minix.
29572         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
29573         REPLACE_TOWLOWER.
29574         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
29575         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
29576         REPLACE_ISWCNTRL.
29578 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
29580         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
29581         This is a performance improvement for 64-bit hosts: it causes the
29582         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
29584 2011-07-31  Bruno Haible  <bruno@clisp.org>
29586         stdioext: Add support for Minix.
29587         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
29588         * lib/fpurge.c (fpurge): Likewise.
29589         * lib/freadahead.c (freadahead): Likewise.
29590         * lib/freadable.c (freadable): Likewise.
29591         * lib/freading.c (freading): Likewise.
29592         * lib/freadptr.c (freadptr): Likewise.
29593         * lib/freadseek.c (freadptrinc): Likewise.
29594         * lib/fseeko.c (rpl_fseeko): Likewise.
29595         * lib/fseterr.c (fseterr): Likewise.
29596         * lib/fwritable.c (fwritable): Likewise.
29597         * lib/fwriting.c (fwriting): Likewise.
29598         * lib/fflush.c (clear_ungetc_buffer): Update comment.
29599         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
29601 2011-07-31  Bruno Haible  <bruno@clisp.org>
29603         errno: Port to Minix.
29604         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
29605         ECONNABORTED are defined.
29606         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
29607         GNULIB_defined_ECONNABORTED): New macros.
29608         * lib/strerror-override.h (strerror_override): Test also
29609         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
29610         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
29611         ECONNABORTED.
29612         * doc/posix-headers/errno.texi: Mention the Minix problem.
29614 2011-07-31  Bruno Haible  <bruno@clisp.org>
29616         Work around declaration collisions on Minix.
29617         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
29618         defined, set REPLACE_MBSINIT.
29619         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
29620         defined, set REPLACE_MBRTOWC.
29621         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
29622         set REPLACE_MBRLEN.
29623         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
29624         defined, set REPLACE_MBSRTOWCS.
29625         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
29626         defined, set REPLACE_WCRTOMB.
29627         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
29628         defined, set REPLACE_WCSRTOMBS.
29630 2011-07-31  Bruno Haible  <bruno@clisp.org>
29632         Add support for Minix with ACK compiler.
29633         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
29634         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
29635         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
29637 2011-07-31  Bruno Haible  <bruno@clisp.org>
29639         Documentation about Minix.
29640         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
29641         * doc/glibc-headers/*.texi: Likewise.
29642         * doc/posix-functions/*.texi: Likewise.
29643         * doc/glibc-functions/*.texi: Likewise.
29645 2011-07-31  Bruno Haible  <bruno@clisp.org>
29647         snippet/warn-on-use: Fix indentation.
29648         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
29650 2011-07-25  Jim Meyering  <meyering@redhat.com>
29652         tests: test-update-copyright.sh: remove unnecessary "rm" commands
29653         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
29654         commands.
29656 2011-07-27  Jim Meyering  <meyering@redhat.com>
29658         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
29659         * top/maint.mk (gl_extract_significant_defines_): Now that
29660         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
29661         gnulib/lib/signal.in.h, and now that we recommend to
29662         define-if-undefined those two symbols in application code,
29663         we must filter them out of the "significant" list.
29664         This avoids a "make syntax-check" failure in coreutils.
29666 2011-07-26  Eric Blake  <eblake@redhat.com>
29668         warnings: add comments about previous patch
29669         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
29670         * m4/include_next.m4: Likewise.
29671         * m4/warn-on-use.m4: Likewise.
29672         * m4/warnings.m4: Likewise, and simplify use.
29673         Suggested by Stefano Lattarini.
29675         include-next, warnings: support older autoconf
29676         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
29677         AS_VAR_PUSHDEF in a way that works with older autoconf.
29678         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
29679         Reported by Daniel P. Berrange.
29681 2011-07-25  Bruno Haible  <bruno@clisp.org>
29683         fseek, ftell: Fix doc.
29684         * doc/posix-functions/fseek.texi: Reword statement about
29685         AC_SYS_LARGEFILE.
29686         * doc/posix-functions/ftell.texi: Likewise.
29688 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29689             Bruno Haible  <bruno@clisp.org>
29691         Add dependencies to the 'largefile' module.
29692         * modules/fopen (Depends-on): Add 'largefile'.
29693         * modules/freopen (Depends-on): Likewise.
29694         * modules/fseeko (Depends-on): Likewise.
29695         * modules/ftello (Depends-on): Likewise.
29696         * modules/glob (Depends-on): Likewise.
29697         * modules/lseek (Depends-on): Likewise.
29698         * modules/lstat (Depends-on): Likewise.
29699         * modules/mkostemp (Depends-on): Likewise.
29700         * modules/mkostemps (Depends-on): Likewise.
29701         * modules/mkstemp (Depends-on): Likewise.
29702         * modules/mkstemps (Depends-on): Likewise.
29703         * modules/open (Depends-on): Likewise.
29704         * modules/openat (Depends-on): Likewise.
29705         * modules/pread (Depends-on): Likewise.
29706         * modules/pwrite (Depends-on): Likewise.
29707         * modules/scandir (Depends-on): Likewise.
29708         * modules/stat (Depends-on): Likewise.
29709         * modules/tmpfile (Depends-on): Likewise.
29710         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
29711         since the containing module now depends on the largefile module.
29712         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
29713         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
29714         off_t is fixed by gnulib.
29715         * doc/posix-functions/freopen.texi: Likewise.
29716         * doc/posix-functions/fseeko.texi: Likewise.
29717         * doc/posix-functions/fstatat.texi: Likewise.
29718         * doc/posix-functions/ftello.texi: Likewise.
29719         * doc/posix-functions/glob.texi: Likewise.
29720         * doc/posix-functions/lseek.texi: Likewise.
29721         * doc/posix-functions/lstat.texi: Likewise.
29722         * doc/posix-functions/mkstemp.texi: Likewise.
29723         * doc/posix-functions/open.texi: Likewise.
29724         * doc/posix-functions/openat.texi: Likewise.
29725         * doc/posix-functions/pread.texi: Likewise.
29726         * doc/posix-functions/pwrite.texi: Likewise.
29727         * doc/posix-functions/scandir.texi: Likewise.
29728         * doc/posix-functions/stat.texi: Likewise.
29729         * doc/posix-functions/tmpfile.texi: Likewise.
29730         * doc/glibc-functions/mkostemp.texi: Likewise.
29731         * doc/glibc-functions/mkostemps.texi: Likewise.
29732         * doc/glibc-functions/mkstemps.texi: Likewise.
29734 2011-07-25  Bruno Haible  <bruno@clisp.org>
29736         fcntl: Move AC_LIBOBJ invocation to module description.
29737         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
29738         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
29740         fcntl: Remove call-in from fchdir.m4.
29741         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
29742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
29744         dup3: Remove potential call-in from fchdir.m4.
29745         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
29746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
29748         dup2: Move AC_LIBOBJ invocation to module description.
29749         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
29750         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
29751         Don't invoke AC_LIBOBJ.
29752         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
29754         dup2: Remove call-in from fchdir.m4.
29755         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
29756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
29758         fclose: Move AC_LIBOBJ invocation to module description.
29759         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
29760         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
29761         to 1.
29762         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
29764         fclose: Remove call-in from close.m4.
29765         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
29766         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
29768         close: Move AC_LIBOBJ invocation to module description.
29769         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
29770         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
29771         1.
29772         * modules/close (configure.ac): Invoke AC_LIBOBJ.
29774         close: Remove call-in from fchdir.m4.
29775         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
29776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
29778         open: Move AC_LIBOBJ invocation to module description.
29779         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
29780         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
29781         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
29783         open: Remove call-in from fchdir.m4.
29784         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
29785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
29787         fchdir: Start to remove gl_REPLACE_* idiom.
29788         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
29789         (gl_FUNC_FCHDIR): Invoke it.
29791 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29793         * lib/ftell.c (ftell): Comment out cast.
29795         close: use gl_REPLACE_FCLOSE only if defined
29796         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
29797         is defined.  The close module doesn't depend on the fclose module
29798         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
29799         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
29800         I reproduced the problem with "./gnulib-tool --test close sys_socket".
29802 2011-07-24  Jim Meyering  <meyering@redhat.com>
29804         test-select.h: avoid warning when using gcc's -Wmissing-declarations
29805         * tests/test-select.h (test_function): Declare as "static".
29807 2011-07-24  Bruno Haible  <bruno@clisp.org>
29809         doc: Mention the effects of AC_SYS_LARGEFILE.
29810         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
29811         on this function.
29812         * doc/posix-functions/aio_error.texi: Likewise.
29813         * doc/posix-functions/aio_fsync.texi: Likewise.
29814         * doc/posix-functions/aio_read.texi: Likewise.
29815         * doc/posix-functions/aio_return.texi: Likewise.
29816         * doc/posix-functions/aio_suspend.texi: Likewise.
29817         * doc/posix-functions/aio_write.texi: Likewise.
29818         * doc/posix-functions/fgetpos.texi: Likewise.
29819         * doc/posix-functions/fopen.texi: Likewise.
29820         * doc/posix-functions/freopen.texi: Likewise.
29821         * doc/posix-functions/fsetpos.texi: Likewise.
29822         * doc/posix-functions/fstatvfs.texi: Likewise.
29823         * doc/posix-functions/ftruncate.texi: Likewise.
29824         * doc/posix-functions/ftw.texi: Likewise.
29825         * doc/posix-functions/getrlimit.texi: Likewise.
29826         * doc/posix-functions/glob.texi: Likewise.
29827         * doc/posix-functions/lio_listio.texi: Likewise.
29828         * doc/posix-functions/lockf.texi: Likewise.
29829         * doc/posix-functions/mkstemp.texi: Likewise.
29830         * doc/posix-functions/mmap.texi: Likewise.
29831         * doc/posix-functions/nftw.texi: Likewise.
29832         * doc/posix-functions/openat.texi: Likewise.
29833         * doc/posix-functions/opendir.texi: Likewise.
29834         * doc/posix-functions/posix_fadvise.texi: Likewise.
29835         * doc/posix-functions/posix_fallocate.texi: Likewise.
29836         * doc/posix-functions/pread.texi: Likewise.
29837         * doc/posix-functions/pwrite.texi: Likewise.
29838         * doc/posix-functions/readdir.texi: Likewise.
29839         * doc/posix-functions/readdir_r.texi: Likewise.
29840         * doc/posix-functions/rewinddir.texi: Likewise.
29841         * doc/posix-functions/scandir.texi: Likewise.
29842         * doc/posix-functions/seekdir.texi: Likewise.
29843         * doc/posix-functions/setrlimit.texi: Likewise.
29844         * doc/posix-functions/statvfs.texi: Likewise.
29845         * doc/posix-functions/telldir.texi: Likewise.
29846         * doc/posix-functions/tmpfile.texi: Likewise.
29847         * doc/posix-functions/truncate.texi: Likewise.
29848         * doc/glibc-functions/fallocate.texi: Likewise.
29849         * doc/glibc-functions/fstatfs.texi: Likewise.
29850         * doc/glibc-functions/fts_children.texi: Likewise.
29851         * doc/glibc-functions/fts_read.texi: Likewise.
29852         * doc/glibc-functions/getdirentries.texi: Likewise.
29853         * doc/glibc-functions/mkostemp.texi: Likewise.
29854         * doc/glibc-functions/mkostemps.texi: Likewise.
29855         * doc/glibc-functions/mkstemps.texi: Likewise.
29856         * doc/glibc-functions/preadv.texi: Likewise.
29857         * doc/glibc-functions/pwritev.texi: Likewise.
29858         * doc/glibc-functions/sendfile.texi: Likewise.
29859         * doc/glibc-functions/statfs.texi: Likewise.
29861 2011-07-24  Bruno Haible  <bruno@clisp.org>
29863         doc: Fix typo.
29864         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
29866 2011-07-24  Bruno Haible  <bruno@clisp.org>
29868         doc: Mention fsusage.
29869         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
29871 2011-07-24  Bruno Haible  <bruno@clisp.org>
29873         doc: Mention new glibc headers and functions.
29874         * doc/glibc-headers/gshadow.texi: New file.
29875         * doc/glibc-functions/endsgent.texi: New file.
29876         * doc/glibc-functions/fgetsgent.texi: New file.
29877         * doc/glibc-functions/fgetsgent_r.texi: New file.
29878         * doc/glibc-functions/getsgent.texi: New file.
29879         * doc/glibc-functions/getsgent_r.texi: New file.
29880         * doc/glibc-functions/getsgnam.texi: New file.
29881         * doc/glibc-functions/getsgnam_r.texi: New file.
29882         * doc/glibc-functions/putsgent.texi: New file.
29883         * doc/glibc-functions/setsgent.texi: New file.
29884         * doc/glibc-functions/sgetsgent.texi: New file.
29885         * doc/glibc-functions/sgetsgent_r.texi: New file.
29886         * doc/glibc-functions/malloc_info.texi: New file.
29887         * doc/glibc-functions/preadv.texi: New file.
29888         * doc/glibc-functions/pwritev.texi: New file.
29889         * doc/glibc-functions/register_printf_modifier.texi: New file.
29890         * doc/glibc-functions/register_printf_specifier.texi: New file.
29891         * doc/glibc-functions/register_printf_type.texi: New file.
29892         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
29893         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
29894         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
29895         * doc/glibc-functions/pthread_getname_np.texi: New file.
29896         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
29897         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
29898         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
29899         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
29900         * doc/glibc-functions/pthread_setname_np.texi: New file.
29901         * doc/glibc-functions/pthread_sigqueue.texi: New file.
29902         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
29903         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
29904         * doc/glibc-functions/qsort_r.texi: New file.
29905         * doc/glibc-functions/quick_exit.texi: New file.
29906         * doc/glibc-functions/syncfs.texi: New file.
29907         * doc/gnulib.texi: Include them.
29908         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
29909         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
29910         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
29911         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
29912         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
29913         * doc/glibc-functions/execvpe.texi: Likewise.
29915 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
29917         ftell: don't include <unistd.h>
29918         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
29919         guaranteed to define off_t, and the ftell module depends on the
29920         stdio module.
29922         ftell: do not assume wraparound signed arithmetic
29923         * lib/ftell.c: Include <limits.h>.
29924         (ftell): Don't assume wraparound signed arithmetic.
29926 2011-07-24  Bruno Haible  <bruno@clisp.org>
29928         close: No longer depend on module 'fclose'.
29929         * modules/close (Depends-on): Remove fclose.
29930         * NEWS: Mention the change.
29931         Suggested by Sam Steingold <sds@gnu.org>.
29933 2011-07-24  Bruno Haible  <bruno@clisp.org>
29935         fsusage: Enable large volume support on AIX >= 5.2.
29936         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
29937         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
29938         instead of STAT_STATVFS.
29939         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
29941         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
29942         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
29943         f_blocks field only on MacOS X.
29945         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
29946         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
29947         * modules/fsusage (Depends-on): Add largefile.
29949 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
29951         * README: Modernize discussion of signed integers.
29952         Assuming overflow wraparound is no longer safe.
29953         Mention ones' complement and signed magnitude.
29955 2011-07-22  Bruno Haible  <bruno@clisp.org>
29957         select tests, pselect tests: Refactor.
29958         * tests/test-select.h: New file, extracted from tests/test-select.c.
29959         (select_fn): New type.
29960         (test, do_select, do_select_nowait, do_select_wait, test_tty,
29961         test_connect_first, test_accept_first, test_pair, test_socket_pair,
29962         test_pipe): Add my_select argument.
29963         (test_function): Renamed from main. Add my_select argument.
29964         * tests/test-select.c: Move most code to tests/test-select.h. Include
29965         test-select.h.
29966         * modules/select-tests (Files): Add tests/test-select.h.
29967         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
29968         (my_select, main): New functions.
29969         * modules/pselect-tests (Files): Add tests/test-select.h,
29970         tests/macros.h, tests/signature.h.
29971         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
29972         (configure.ac): Check for <sys/wait.h>.
29974 2011-07-22  Bruno Haible  <bruno@clisp.org>
29976         sys_select tests: Check the signature of FD_*.
29977         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
29978         signature tests from here...
29979         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
29980         here.
29981         * modules/sys_select-tests (Files): Add tests/signature.h.
29983 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29985         largefile: new module, replacing large-inode
29986         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
29987         * MODULES.html.sh: Add largefile, remove large-inode.
29988         * modules/largefile, m4/largefile.m4: New files.
29989         * modules/large-inode, m4/large-inode.m4: Remove.
29991         fsusage: port to MacOS X 10.7 with 4 TiB file systems
29992         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
29993         implementations that use only 32 bits to count blocks.
29994         On typical hosts with 1024-byte blocks, this fails with file
29995         systems as small as 4 TiB.  Problem reported by Herb Wartens
29996         <http://debbugs.gnu.org/9140> and this should also fix a similar
29997         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
29999         large-inode: New module
30000         * MODULES.html.sh: Add it.
30001         * modules/large-inode, m4/large-inode.m4: New files.
30003         extensions: Enable extensions on MacOS X 10.5 and later.
30004         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
30006 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
30008         file-has-acl: use acl_extended_file_nofollow if available
30009         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
30010         (acl_extended_file): New macro.
30011         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
30012         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
30014 2011-07-21  Bruno Haible  <bruno@clisp.org>
30016         Declare system functions in a way that works with C++.
30017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
30018         declare fdopendir as extern "C".
30019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
30020         declare frexpl as extern "C".
30021         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
30022         declare gai_strerror as extern "C".
30023         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
30024         programs, declare gai_strerror as extern "C".
30025         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
30026         declare getlogin_r as extern "C".
30027         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
30028         as extern "C".
30029         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
30030         declare ldexpl as extern "C".
30031         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
30032         as extern "C".
30033         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
30034         program, declare getmntinfo as extern "C".
30035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
30036         stpncpy as extern "C".
30037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
30038         program, declare __xpg_strerror_r as extern "C".
30039         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
30040         strndup as extern "C".
30041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
30042         declare memset and bzero as extern "C".
30043         Reported by Sam Steingold <sds@gnu.org>.
30045 2011-07-12  Jim Meyering  <meyering@redhat.com>
30047         maint.mk: prohibit inclusion of "verify.h" without use
30048         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
30050 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30052         timer-time: A new module to check for timer_settime()
30053         * m4/timer_time.m4: Check for the posix function.
30054         * modules/timer-time: Add the new module.
30055         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
30056         Mention it.
30058 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
30059             Bruno Haible  <bruno@clisp.org>
30061         pthread_sigmask: assume POSIX threads if --avoid=threadlib
30062         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
30063         not defined, assume POSIX threads and look for pthread_sigmask in
30064         $LIBS, without changing $CPPFLAGS.
30066 2011-07-19  Bruno Haible  <bruno@clisp.org>
30068         strstr: Update cross-compilation guess.
30069         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
30070         CPUs, guess no, in view of glibc
30071         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
30072         Suggested by Eric Blake. Reported by Reuben Thomas.
30074 2011-07-19  Pádraig Brady  <P@draigBrady.com>
30076         getopt-gnu: suppress core dumps from detection code
30077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
30078         to suppress core dumps that may well occur on glibc systems.
30079         * modules/getopt-gnu: Depend on nocrash.
30081 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
30083         pthread_sigmask: ensure usleep is declared
30084         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
30085         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
30087 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30089         doc: Document NonStop portability issues.
30090         * doc/posix-functions/sigaction.texi (sigaction):
30091         * doc/posix-headers/signal.texi (signal.h):
30092         Document NonStop.  See Joachim Schmitz in
30093         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
30095 2011-07-15  Bruno Haible  <bruno@clisp.org>
30097         ffsl, ffsll: Avoid unportable behaviour.
30098         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
30100 2011-07-15  Bruno Haible  <bruno@clisp.org>
30102         ffs: More tests.
30103         * tests/test-ffs.c (NBITS): New macro.
30104         (main): Add more tests.
30105         * tests/test-ffsl.c (NBITS): New macro.
30106         (main): Add more tests.
30107         * tests/test-ffsll.c (NBITS): New macro.
30108         (main): Add more tests.
30110 2011-07-15  Eric Blake  <eblake@redhat.com>
30112         ffsl, ffsll: new modules
30113         * modules/ffsl: New file.
30114         * modules/ffsll: Likewise.
30115         * m4/ffsl.m4: Likewise.
30116         * m4/ffsll.m4: Likewise.
30117         * lib/ffsl.c: Likewise.
30118         * lib/ffsl.h: Likewise.
30119         * lib/ffsll.c: Likewise.
30120         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
30121         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
30122         * modules/string (Makefile.am): Substitute witnesses.
30123         * lib/strings.in.h (ffsl, ffsll): Declare.
30124         * modules/ffsl-tests: New test file.
30125         * modules/ffsll-tests: Likewise.
30126         * tests/test-ffsl.c: Likewise.
30127         * tests/test-ffsll.c: Likewise.
30128         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30129         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
30130         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
30132         ffs: fix m4 prerequisite
30133         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
30135         ffs: avoid undefined behavior
30136         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
30137         * tests/test-ffs.c (naive, main): Avoid signed shifts.
30138         Reported by Bruno Haible.
30140 2011-07-12  Bruno Haible  <bruno@clisp.org>
30142         pthread_sigmask: Rely on module 'threadlib'.
30143         * modules/pthread_sigmask (Depends-on): Add threadlib.
30144         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
30145         is defined.
30147 2011-07-12  Bruno Haible  <bruno@clisp.org>
30149         regex: Depend on module 'strcase'.
30150         * modules/regex (Depends-on): Add strcase, for strcasecmp().
30152 2011-07-12  Jim Meyering  <meyering@redhat.com>
30154         warn-on-use: fix typo in file name
30155         * modules/snippet/warn-on-use (Files): Correct file name:
30156         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
30158 2011-07-12  Bruno Haible  <bruno@clisp.org>
30160         strings: Document module.
30161         * doc/posix-headers/strings.texi: Mention module 'strings'.
30163 2011-07-12  Bruno Haible  <bruno@clisp.org>
30165         Rename module '_Noreturn' to 'snippet/_Noreturn'.
30166         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
30167         (Files, Makefile.am): Update.
30168         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
30169         * modules/stdlib (Depends-on): Update.
30171 2011-07-12  Bruno Haible  <bruno@clisp.org>
30173         * NEWS: Mention the changes.
30175         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
30176         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
30177         (Files, Makefile.am): Update.
30178         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
30179         * modules/arpa_inet (Depends-on): Update.
30180         * modules/ctype (Depends-on): Update.
30181         * modules/dirent (Depends-on): Update.
30182         * modules/fcntl-h (Depends-on): Update.
30183         * modules/glob (Depends-on): Update.
30184         * modules/iconv-h (Depends-on): Update.
30185         * modules/inttypes-incomplete (Depends-on): Update.
30186         * modules/langinfo (Depends-on): Update.
30187         * modules/locale (Depends-on): Update.
30188         * modules/math (Depends-on): Update.
30189         * modules/netdb (Depends-on): Update.
30190         * modules/poll-h (Depends-on): Update.
30191         * modules/pty (Depends-on): Update.
30192         * modules/search (Depends-on): Update.
30193         * modules/signal (Depends-on): Update.
30194         * modules/spawn (Depends-on): Update.
30195         * modules/stdio (Depends-on): Update.
30196         * modules/stdlib (Depends-on): Update.
30197         * modules/string (Depends-on): Update.
30198         * modules/strings (Depends-on): Update.
30199         * modules/sys_file (Depends-on): Update.
30200         * modules/sys_ioctl (Depends-on): Update.
30201         * modules/sys_select (Depends-on): Update.
30202         * modules/sys_socket (Depends-on): Update.
30203         * modules/sys_stat (Depends-on): Update.
30204         * modules/sys_time (Depends-on): Update.
30205         * modules/sys_times (Depends-on): Update.
30206         * modules/sys_utsname (Depends-on): Update.
30207         * modules/sys_wait (Depends-on): Update.
30208         * modules/termios (Depends-on): Update.
30209         * modules/time (Depends-on): Update.
30210         * modules/unistd (Depends-on): Update.
30211         * modules/wchar (Depends-on): Update.
30212         * modules/wctype-h (Depends-on): Update.
30213         * MODULES.html.sh (Support for building libraries and executables):
30214         Update.
30216         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
30217         * modules/snippet/unused-parameter: Renamed from
30218         modules/unused-parameter.
30219         (Files, Makefile.am): Update.
30220         * build-aux/snippet/unused-parameter.h: Renamed from
30221         build-aux/unused-parameter.h.
30222         * modules/selinux-h (Depends-on): Update.
30223         * modules/unistr/base (Depends-on): Update.
30224         * MODULES.html.sh (Core language properties): Update.
30226         Rename module 'link-warning' to 'snippet/link-warning'.
30227         * modules/snippet/link-warning: Renamed from modules/link-warning.
30228         (Files, Makefile.am): Update.
30229         * build-aux/snippet/link-warning.h: Renamed from
30230         build-aux/link-warning.h.
30231         * MODULES.html.sh (Support for building libraries and executables):
30232         Update.
30234         Rename module 'c++defs' to 'snippet/c++defs'.
30235         * modules/snippet/c++defs: Renamed from modules/c++defs.
30236         (Files, Makefile.am): Update.
30237         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
30238         * modules/arpa_inet (Depends-on): Update.
30239         * modules/ctype (Depends-on): Update.
30240         * modules/dirent (Depends-on): Update.
30241         * modules/fcntl-h (Depends-on): Update.
30242         * modules/glob (Depends-on): Update.
30243         * modules/iconv-h (Depends-on): Update.
30244         * modules/langinfo (Depends-on): Update.
30245         * modules/locale (Depends-on): Update.
30246         * modules/math (Depends-on): Update.
30247         * modules/netdb (Depends-on): Update.
30248         * modules/poll-h (Depends-on): Update.
30249         * modules/pty (Depends-on): Update.
30250         * modules/search (Depends-on): Update.
30251         * modules/signal (Depends-on): Update.
30252         * modules/spawn (Depends-on): Update.
30253         * modules/stdio (Depends-on): Update.
30254         * modules/stdlib (Depends-on): Update.
30255         * modules/string (Depends-on): Update.
30256         * modules/strings (Depends-on): Update.
30257         * modules/sys_ioctl (Depends-on): Update.
30258         * modules/sys_select (Depends-on): Update.
30259         * modules/sys_socket (Depends-on): Update.
30260         * modules/sys_stat (Depends-on): Update.
30261         * modules/sys_time (Depends-on): Update.
30262         * modules/sys_wait (Depends-on): Update.
30263         * modules/termios (Depends-on): Update.
30264         * modules/time (Depends-on): Update.
30265         * modules/unistd (Depends-on): Update.
30266         * modules/wchar (Depends-on): Update.
30267         * modules/wctype-h (Depends-on): Update.
30269         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
30270         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
30271         (Files, Makefile.am): Update.
30272         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
30273         * modules/argv-iter (Depends-on): Update.
30274         * modules/arpa_inet (Depends-on): Update.
30275         * modules/dirent (Depends-on): Update.
30276         * modules/fcntl-h (Depends-on): Update.
30277         * modules/fnmatch (Depends-on): Update.
30278         * modules/getopt-posix (Depends-on): Update.
30279         * modules/glob (Depends-on): Update.
30280         * modules/iconv-h (Depends-on): Update.
30281         * modules/inttypes-incomplete (Depends-on): Update.
30282         * modules/locale (Depends-on): Update.
30283         * modules/math (Depends-on): Update.
30284         * modules/netdb (Depends-on): Update.
30285         * modules/search (Depends-on): Update.
30286         * modules/signal (Depends-on): Update.
30287         * modules/spawn (Depends-on): Update.
30288         * modules/stdio (Depends-on): Update.
30289         * modules/stdlib (Depends-on): Update.
30290         * modules/string (Depends-on): Update.
30291         * modules/strings (Depends-on): Update.
30292         * modules/sys_socket (Depends-on): Update.
30293         * modules/sys_stat (Depends-on): Update.
30294         * modules/sys_time (Depends-on): Update.
30295         * modules/sys_times (Depends-on): Update.
30296         * modules/sys_utsname (Depends-on): Update.
30297         * modules/time (Depends-on): Update.
30298         * modules/unistd (Depends-on): Update.
30299         * modules/wchar (Depends-on): Update.
30300         * MODULES.html.sh (Support for building libraries and executables):
30301         Update.
30303 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30305         Improvements on _Noreturn and related modules.
30307         modules/_Exit-tests: test _Noreturn too
30308         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
30309         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
30310         (main): Use them.
30312         stdnoreturn, stdnoreturn-tests: remove modules
30313         They're not needed here and a bit premature for use elsewhere.  See
30314         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
30315         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
30316         * tests/test-stdnoreturn.c: Remove files.
30317         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
30318         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
30319         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
30320         and using noreturn.
30321         * modules/openat, modules/sigpipe-die, modules/xalloc:
30322         * modules/xmemdup0, modules/xstrtol:
30323         Remove dependency on stdnoreturn.
30325         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
30326         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
30327         Reparenthesize to avoid GCC warning.
30328         Support Microsoft's syntax.
30329         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
30331         _Noreturn-tests: remove module
30332         * modules/_Noreturn-tests: Remove.
30333         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
30334         * tests/test-_Noreturn.c: Remove.
30335         * tests/test-stdnoreturn.c: Merge from the old
30336         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
30338 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30340         _Noreturn, stdnoreturn, and related modules.
30342         * top/maint.mk: Adjust to new noreturn support.
30343         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
30344         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
30346         xalloc: use stdnoreturn.h
30347         * lib/xalloc.h: Include <stdnoreturn.h>.
30348         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30349         * modules/xalloc (Depends-on): Add stdnoreturn.
30351         xstrtol: use stdnoreturn.h
30352         * lib/xstrtol.h: Include <stdnoreturn.h>.
30353         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30354         * modules/xstrtol (Depends-on): Add stdnoreturn.
30356         xmemdup0: use stdnoreturn.h
30357         * lib/xmemdup0.h: Include <stdnoreturn.h>.
30358         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30359         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
30361         sigpipe-die: use stdnoreturn.h
30362         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
30363         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30364         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
30366         openat: use stdnoreturn.h
30367         * lib/openat.h: Include <stdnoreturn.h>.
30368         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30369         * modules/openat (Depends-on): Add stdnoreturn.
30371         * lib/openat-die.c (openat_save_fail): Modernize comment.
30373         * lib/xalloc-die.c (xalloc_die): Modernize comment.
30375         * lib/glthread/thread.h: Modernize comment.
30377         obstack: use _Noreturn
30378         * lib/obstack.c (__attribute__): Remove macro.
30379         (print_and_abort): Use _Noreturn.
30381         c-stack: use _Noreturn
30382         * lib/c-stack.c (die, overflow_handler, segv_handler):
30383         Use _Noreturn rather than __attribute__((noreturn)).
30385         argmatch-tests, exclude_tests: use _Noreturn
30386         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
30387         Remove.
30388         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
30390         stdlib: use _Noreturn
30391         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
30392         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
30393         * modules/stdlib (Depends-on): Add _Noreturn.
30394         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
30396         stdnoreturn-tests: new module
30397         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
30399         stdnoreturn: new module
30400         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
30401         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
30403         _Noreturn-tests: new module
30404         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
30406         _Noreturn: new module
30407         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
30408         New section, mentioning it.
30409         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
30411         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
30413 2011-07-11  Eric Blake  <eblake@redhat.com>
30415         ffs: new module
30416         * modules/ffs: New file.
30417         * m4/ffs.m4: Likewise.
30418         * lib/ffs.c: Likewise.
30419         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
30420         * modules/strings (Makefile.am): Substitute witness.
30421         (Depends-on): Add c++defs.
30422         * lib/strings.in.h (ffs): Declare.
30423         * modules/ffs-tests: New test file.
30424         * tests/test-ffs.c: Test new module.
30425         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30426         * doc/posix-functions/ffs.texi (ffs): Likewise.
30428         regex: avoid compiler warning
30429         * lib/regex.c (includes): Include <strings.h>, for use of
30430         strcasecmp in regcomp.c.
30431         Reported by Joachim Schmitz.
30433 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30435         stdint: respect system's intmax_t if INTMAX_MAX
30436         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
30437         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
30438         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
30439         long but int64_t is long long, and where we will clash with the
30440         system intmax_t if we override it.  See
30441         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
30442         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
30443         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
30444         similarly for UINTMAX_C.
30446 2011-07-08  Bruno Haible  <bruno@clisp.org>
30448         pthread_sigmask tests: Avoid a compiler warning.
30449         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
30450         non-zero.
30452         sigprocmask tests: A better way to avoid a compiler warning.
30453         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
30454         (main): Complain if system() returns non-zero.
30455         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
30457 2011-07-08  Bruno Haible  <bruno@clisp.org>
30459         pthread_sigmask: Work around IRIX bug.
30460         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
30461         bug.
30462         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
30463         there may be unblocked pending signals.
30464         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
30466 2011-07-08  Bruno Haible  <bruno@clisp.org>
30468         pthread_sigmask: Work around Cygwin bug.
30469         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
30470         bug.
30471         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
30472         the system's pthread_sigmask function.
30473         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
30475 2011-07-08  Bruno Haible  <bruno@clisp.org>
30477         pthread_sigmask: Work around bug in single-threaded implementation.
30478         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
30479         FreeBSD, HP-UX, Solaris bug.
30480         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
30481         * lib/pthread_sigmask.c: Include <stddef.h>.
30482         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
30483         the system's pthread_sigmask function.
30484         * modules/pthread_sigmask (configure.ac): Invoke
30485         gl_PREREQ_PTHREAD_SIGMASK.
30486         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
30487         HP-UX, Solaris.
30489 2011-07-08  Eric Blake  <eblake@redhat.com>
30491         test-sigprocmask: avoid compiler warning
30492         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
30493         * tests/test-sigprocmask.c (main): Use it to silence warning.
30494         Reported by Jim Meyering.
30496         test-snprintf: avoid compiler warning
30497         * tests/test-snprintf.c (main): Avoid shadowed declaration.
30498         * tests/test-vsnprintf.c (main): Likewise.
30499         Reported by Jim Meyering.
30501 2011-07-08  Bruno Haible  <bruno@clisp.org>
30503         Tests for module 'pthread_sigmask'.
30504         * modules/pthread_sigmask-tests: New file.
30505         * tests/test-pthread_sigmask1.c: New file, based on
30506         tests/test-sigprocmask.c.
30507         * tests/test-pthread_sigmask2.c: New file.
30509 2011-07-08  Jim Meyering  <meyering@redhat.com>
30511         test-getopt.h: avoid warning about an unused variable
30512         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
30514 2011-07-07  Jim Meyering  <meyering@redhat.com>
30516         maint: reduce list of files exempt from sc_prohibit_leading_TABs
30517         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
30518         now that it no longer contains leading TABs.
30519         Remove unused "url=FIXME" statement.
30521 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30523         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
30524         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30525         When gl_THREADLIB is not in use, assume that the POSIX sematics
30526         are desired.  This is better for Emacs, which uses POSIX semantics
30527         on GNUish and/or POSIXish platforms, and does not use threads at
30528         all otherwise.
30530         pthread_sigmask: fix typo when testing for libraries
30531         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30532         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
30534 2011-07-08  Eric Blake  <eblake@redhat.com>
30536         fts: introduce FTS_NOATIME
30537         * lib/fts_.h (FTS_NOATIME): New bit flag.
30538         (FTS_OPTIONMASK): Adjust.
30539         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
30540         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
30542 2011-07-08  Bruno Haible  <bruno@clisp.org>
30544         Tests for module 'thread'.
30545         * modules/thread-tests: New file.
30546         * tests/test-thread_self.c: New file.
30547         * tests/test-thread_create.cc: New file.
30549 2011-07-08  Bruno Haible  <bruno@clisp.org>
30551         thread: Avoid gcc warnings when using gl_thread_self().
30552         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
30553         'void *'.
30554         (gl_thread_self_pointer): Update.
30556 2011-07-07  Bruno Haible  <bruno@clisp.org>
30558         signal-c++-tests: Check declaration of pthread_sigmask.
30559         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
30560         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
30561         $(LIB_PTHREAD_SIGMASK).
30563 2011-07-07  Bruno Haible  <bruno@clisp.org>
30565         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
30566         * lib/signal.in.h (pthread_sigmask): Override if
30567         REPLACE_PTHREAD_SIGMASK is 1.
30568         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30569         REPLACE_PTHREAD_SIGMASK.
30570         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
30571         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
30572         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
30573         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
30574         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
30576 2011-07-07  Bruno Haible  <bruno@clisp.org>
30578         pthread_sigmask: Ensure declaration in <signal.h>.
30579         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
30580         include <pthread.h>.
30581         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
30582         problem.
30584 2011-07-07  Bruno Haible  <bruno@clisp.org>
30586         pthread_sigmask: Document the module.
30587         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
30589 2011-07-07  Bruno Haible  <bruno@clisp.org>
30591         pthread_sigmask: Follow gnulib conventions.
30592         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
30593         gl_PTHREAD_SIGMASK.
30594         * modules/pthread_sigmask (configure.ac): Update.
30596 2011-07-07  Bruno Haible  <bruno@clisp.org>
30598         pthread_sigmask: Make declaration C++ safe.
30599         * lib/signal.in.h: In two special conditions, just do an #include_next.
30600         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
30601         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
30602         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30603         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
30604         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
30605         not REPLACE_PTHREAD_MASK.
30606         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
30607         not REPLACE_PTHREAD_MASK.
30608         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
30610 2011-07-07  Bruno Haible  <bruno@clisp.org>
30612         pthread_sigmask: Fix return value.
30613         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
30614         * lib/pthread_sigmask.c: New file.
30615         * modules/pthread_sigmask (Files): Add it.
30616         (configure.ac): Invoke AC_LIBOBJ.
30618 2011-07-07  Eric Blake  <eblake@redhat.com>
30620         getopt: more portable argv creation
30621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
30622         const, use char arrays rather than strings.
30623         Suggested by Paul Eggert.
30625 2011-07-07  Bruno Haible  <bruno@clisp.org>
30627         Tests for module 'sigprocmask'.
30628         * modules/sigprocmask-tests: New file.
30629         * tests/test-sigprocmask.c: New file.
30631 2011-07-07  Bruno Haible  <bruno@clisp.org>
30633         float tests: Tweak.
30634         * tests/test-float.c (main): Tweak skip message.
30636 2011-07-07  Eric Blake  <eblake@redhat.com>
30638         getopt: avoid compiler warning during configure
30639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
30640         assigning string literals to non-const pointer.
30642         getopt-gnu: avoid crash in glibc getopt
30643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
30644         * tests/test-getopt.h (test_getopt): Enhance test.
30645         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30646         * doc/posix-functions/getopt.texi (getopt): Document it.
30647         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30648         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30649         Likewise.
30651 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30653         getopt: handle W; without long options in getopt [BZ #12922]
30654         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
30655         but no long options are defined, just return 'W'.
30657 2011-07-07  Bruno Haible  <bruno@clisp.org>
30659         Avoid literal tabs.
30660         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
30661         variable containing a tab instead of a literal tab.
30662         Reported by Jim Meyering.
30664 2011-07-07  Bruno Haible  <bruno@clisp.org>
30666         Comments.
30667         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
30669 2011-07-06  Bruno Haible  <bruno@clisp.org>
30671         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
30672         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
30673         <winsock2.h>.
30674         (rpl_fd_isset, FD_ISSET): New definitions, copied from
30675         lib/sys_socket.in.h.
30676         (close, gethostname): Hide declarations from <winsock2.h>.
30677         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30678         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
30679         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
30680         (select): Don't override if gnulib's <sys/select.h> was already
30681         included.
30682         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30683         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30684         setsockopt, shutdown, select): Tweak indentation.
30686 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30688         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
30689         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
30690         in an application that does not use the sys_select module.
30692 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
30694         poll: do not return 0 on timeout=-1
30695         * lib/poll.c: Loop with yield if no events occurred.
30697 2011-07-06  Eric Blake  <eblake@redhat.com>
30699         pthread_sigmask: always replace when not using pthread
30700         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
30701         replacement when using some threading other than pthread.  Fix
30702         logic bug.
30704 2011-07-06  Bruno Haible  <bruno@clisp.org>
30706         Comments.
30707         * m4/printf.m4: Update comments about mingw.
30709 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30711         sys_select: define sigset_t more portably
30712         * lib/sys_select.in.h: Always include <sys/types.h>, since
30713         we now need sigset_t and mingw defines it there.
30714         Include <signal.h> before split inclusion guard, to avoid
30715         mishaps on Solaris, whose <signal.h> eventually includes us.
30716         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
30717         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
30718         which come from ...
30719         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
30720         gl_CHECK_TYPE_SIGSET_T.
30721         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
30722         does the real work.
30723         * modules/sys_select (Depends-on): Add 'signal'.
30725         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
30726         Suggested by Bruno Haible.
30728         pselect: Use pthread_sigmask, not sigprocmask.
30729         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
30730         multithreaded apps better than sigprocmask does.
30731         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
30732         sigprocmask directly.
30734 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30736         * lib/pselect.c (pselect): Use plain name, without "rpl_".
30737         Don't #undef,  since we don't need any underlying pselect.
30738         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
30739         (Depends-on): Add select.
30740         (Link): Add $(LIBSOCKET).
30741         These changes suggested by Bruno Haible.
30743         pselect: document better
30744         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
30745         * doc/posix-functions/pselect.texi (pselect): Document new module.
30747         pthread_sigmask: new module
30748         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
30749         * doc/posix-functions/pthread_sigmask.texi: Document new module.
30750         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
30751         This is done only as a macro; I don't know how well that'll
30752         work for C++.  Move <sys/types.h> include before the include_next,
30753         to avoid mishap on Solaris.
30754         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
30755         * modules/signal (Makefile.am): Substitute the check's results.
30756         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
30758         test-pselect: new module
30759         * modules/pselect-tests, tests/test-pselect.c: New files.
30760         * tests/test-select.c, tests/test-sys_select-c++.cc:
30761         If TEST_PSELECT is defined, test pselect instead of testing select.
30763         * tests/test-sys_select.c (sigset_t): Test for it, too.
30764         Suggested by Bruno Haible.
30766 2011-07-05  Eric Blake  <eblake@redhat.com>
30768         snprintf: guarantee %1$d, for libintl
30769         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
30770         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30771         * doc/posix-functions/snprintf.texi (snprintf): Update.
30772         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30773         * tests/test-snprintf.c (main): Enhance test.
30774         * tests/test-vsnprintf.c (main): Likewise.
30776 2011-07-05  Jim Meyering  <meyering@redhat.com>
30778         maint: exempt stdio-read.c and stdio-write.c from the cppi check
30779         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
30780         per Bruno's request, to accommodate this idiom (no space after "#")
30781         even when the function is inside an #if block:
30782         char *
30783         gets (char *s)
30784         #undef gets
30785         {
30786           ...
30787         }
30789 2011-07-04  Jim Meyering  <meyering@redhat.com>
30791         maint: indent with spaces, not TABs, and add a rule to check this
30792         * tests/test-userspec.c: Indent with spaces, not TABs.
30793         * tests/test-argp.c: Likewise.
30794         * tests/test-c-stack2.sh: Likewise.
30795         * tests/test-parse-duration.sh: Likewise
30796         * m4/strtod.m4: Likewise.
30797         * m4/alloca.m4: Likewise.
30798         * m4/pselect.m4: Likewise.
30799         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
30801 2011-07-03  Jim Meyering  <meyering@redhat.com>
30803         maint.mk: correct omissions in prohibit_argmatch_without_use check
30804         This rule would mistakenly report that argmatch.h is included without
30805         use even when both the argmatch and invalid_arg macro were used.
30806         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
30807         of argmatch and invalid_arg.
30809 2011-07-03  Bruno Haible  <bruno@clisp.org>
30811         Comments about EINTR.
30812         * lib/safe-read.h: Explain the purpose of this module.
30813         * lib/safe-write.h: Likewise.
30814         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
30815         module.
30816         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
30817         module.
30818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30820 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30822         xnanosleep: Rewrite to use new dtotimespec module.
30823         It has the conversion code that used to be in xnanosleep.
30824         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
30825         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
30826         (TIME_T_MAX): Remove.
30827         (xnanosleep): Rewrite in terms of dtotimespec.
30828         * modules/xnanosleep (Depends-on): Add dtotimespec.
30829         Remove intprops, stdbool.
30831         timespec-add, timespec-sub: new modules
30832         * lib/timespec.h (timespec_add, timespec_sub): New decls.
30833         * lib/timespec-add.c, lib/timespec-sub.c:
30834         * modules/timespec-add, modules/timespec-sub: New files.
30836         dtotimespec: new module
30837         * lib/timespec.h (dtotimespec): New decl.
30838         * lib/dtotimespec.c, modules/dtotimespec: New files.
30840         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
30842         pselect: new module
30843         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
30844         (pselect): New decls.
30845         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
30846         since the standard pselect decl uses 'restrict'.
30847         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
30848         HAVE_PSELECT, REPLACE_PSELECT.
30849         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
30850         HAVE_PSELECT, REPLACE_PSELECT.
30851         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
30853         sys_select: don't depend on sys_socket
30854         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
30855         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
30856         This fix works on GNU and GNU-like platforms, but has not been tested
30857         on native Windows.
30858         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
30859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
30860         gl_HEADER_SYS_SOCKET.
30861         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
30862         gl_PREREQ_SYS_H_WINSOCK2.
30864 2011-06-29  Eric Blake  <eblake@redhat.com>
30866         pipe2: fix C89 compile problem
30867         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
30868         Reported by Bruno Haible.
30870         pipe, pipe2: don't corrupt fd on error
30871         * lib/pipe.c (pipe): Leave fd unchanged on error.
30872         * lib/pipe2.c (pipe2): Likewise.
30873         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
30874         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30876 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
30878         mmap-anon: do not use regular expressions inadvertently
30879         * m4/mmap-anon.m4: Remove trailing period from strings sought
30880         in the output.
30882 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
30884         nanosleep: fix integer overflow problem
30885         * lib/nanosleep.c (my_usleep): Don't assume signed integer
30886         arithmetic wraps around on overflow.
30888         nanosleep: simplify carrying
30889         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
30890         first call to the underyling nanosleep, not for the last one.
30891         This doesn't fix any bugs, but it simplifies the computation of
30892         the remaining delay.  Found while auditing integer overflow issues.
30894         dup2: remove test for existence of fcntl
30895         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
30896         "#if HAVE_FCNTL", in the configure-time test program.
30897         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
30898         and therefore speeds up "configure" a bit.  Found while
30899         adding the dup2 module to Emacs.
30901 2011-06-24  Eric Blake  <eblake@redhat.com>
30903         maint.mk: enhance useless header checks
30904         * top/maint.mk (_sc_header_without_use): Check both include
30905         styles.
30906         (sc_prohibit_assert_without_use)
30907         (sc_prohibit_close_stream_without_use)
30908         (sc_prohibit_getopt_without_use)
30909         (sc_prohibit_quotearg_without_use)
30910         (sc_prohibit_quote_without_use)
30911         (sc_prohibit_long_options_without_use)
30912         (sc_prohibit_inttostr_without_use)
30913         (sc_prohibit_ignore_value_without_use)
30914         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
30915         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
30916         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
30917         (sc_prohibit_hash_pjw_without_use)
30918         (sc_prohibit_safe_read_without_use)
30919         (sc_prohibit_argmatch_without_use)
30920         (sc_prohibit_canonicalize_without_use)
30921         (sc_prohibit_root_dev_ino_without_use)
30922         (sc_prohibit_openat_without_use)
30923         (sc_prohibit_c_ctype_without_use)
30924         (sc_prohibit_signal_without_use)
30925         (sc_prohibit_stdio--_without_use)
30926         (sc_prohibit_stdio-safer_without_use)
30927         (sc_prohibit_strings_without_use)
30928         (sc_prohibit_intprops_without_use)
30929         (sc_prohibit_stddef_without_use)
30930         (sc_prohibit_xfreopen_without_use): Update clients.
30932 2011-06-24  Jim Meyering  <meyering@redhat.com>
30934         syntax-check: keep one maint.mk rule in sync with its header
30935         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
30936         of the bug Eric has just fixed, with today's commit 25e4c2ec.
30937         I prefer to avoid temporary files here, so use <(...), but that
30938         is not supported by /bin/sh, so...
30939         (SHELL): Define to /bin/bash.
30941 2011-06-24  Eric Blake  <eblake@redhat.com>
30943         maint.mk: update sc_prohibit_intprops_without_use
30944         * top/maint.mk (_intprops_names): Match recent changes.
30946 2011-06-24  Bruno Haible  <bruno@clisp.org>
30948         strerror-override: No-op tweak.
30949         * lib/strerror-override.h (strerror_override): Reorder conditions,
30950         for consistency with lib/strerror-override.c.
30952 2011-06-23  Eric Blake  <eblake@redhat.com>
30954         maint.mk: test further PATH_MAX issues
30955         * top/maint.mk (sc_prohibit_path_max_array): Rename...
30956         (sc_prohibit_path_max_allocation): ...and also test alloca.
30957         Suggested by Jim Meyering.
30959 2011-06-22  Eric Blake  <eblake@redhat.com>
30961         maint.mk: add syntax-check to avoid char[PATH_MAX]
30962         * top/maint.mk (sc_prohibit_path_max_array): New rule.
30964         stat: be robust to PATH_MAX definition
30965         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
30966         * modules/stat (Depends-on): Add verify.
30968         link: work around IRIX bug
30969         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
30970         * lib/link.c (rpl_link): Work around it.
30971         * tests/test-link.h (test_link): Enhance test.
30972         * doc/posix-functions/link.texi (link): Document the bug.
30974         getopt: silence clang warning
30975         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
30976         dereference.
30977         Reported by Gustavo Martin Domato.
30979 2011-06-22  Jim Meyering  <meyering@redhat.com>
30981         bootstrap: do not insert a blank line into each .gitignore file
30982         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
30984 2011-06-21  Eric Blake  <eblake@redhat.com>
30986         perror: test for output mismatch
30987         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
30988         perror on IRIX.
30990         strerror_r: fix OpenBSD behavior on out-of-range
30991         * lib/strerror_r.c (strerror_r): Always use maximal string.
30992         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
30994         strerror_r: fix OpenBSD behavior on 0
30995         * lib/strerror-override.c (strerror_override): Also override 0
30996         when needed.
30997         * lib/strerror-override.h (strerror_override): Likewise.
30998         * lib/strerror.c (strerror): Simplify, now that 0 override is done
30999         earlier.
31000         * lib/strerror_r.c (strerror_r): Likewise.
31001         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
31002         behavior...
31003         (gl_FUNC_STRERROR_0): ...into new macro.
31004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
31005         is overridden.
31006         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
31007         * modules/strerror-override (Files): Add strerror.m4.
31008         (configure.ac): Also provide override for 0 when needed.
31009         * doc/posix-functions/strerror.texi (strerror): Document this.
31010         * doc/posix-functions/perror.texi (perror): Likewise.
31012         perror: adjust array size
31013         * modules/perror (Depends-on): Add strerror-override.
31014         * lib/perror.c (perror): Use it to avoid magic number.
31016         strerror-override: reduce size
31017         * lib/strerror-override.c (strerror_override): Use fewer lines.
31019 2011-06-20  Bruno Haible  <bruno@clisp.org>
31021         pathmax: Ensure correct value for PATH_MAX on HP-UX.
31022         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
31024 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31026         alloca: port to compilers that can optimize like GCC 4.6.0
31027         * lib/alloca.c (find_stack_direction): New signature, taken from
31028         Autoconf git.  This works with GCC 4.6.0.  This code should never
31029         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
31030         be used with other compilers that optimize as well as GCC 4.6.0 does.
31031         (alloca): Adjust to new signature.
31032         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
31033         New macro, which patches Autoconf in a similar way.
31035         c-stack: stop worrying about stack direction
31036         * lib/c-stack.c (find_stack_direction): Remove.
31037         (segv_handler): Don't worry about stack direction growth, as it's
31038         too much of a pain to configure this correctly, given how compilers
31039         are optimizing-away our stack-growth detection code.  Instead, assume
31040         that any access to just before or just after the stack is OK.
31041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
31042         Don't require AC_FUNC_ALLOCA; no longer needed.
31044 2011-06-20  Eric Blake  <eblake@redhat.com>
31046         test-stat: don't allocate PATH_MAX bytes
31047         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
31048         PATH_MAX-sized buffer.
31049         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
31050         * modules/stat-tests (Depends-on): Likewise.
31051         * tests/test-fstatat.c (includes): Drop pathmax.h.
31052         * tests/test-stat.c (includes): Likewise.
31053         Reported by Bruno Haible.
31055 2011-06-20  Bruno Haible  <bruno@clisp.org>
31057         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
31058         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
31059         * lib/float.c: New file.
31060         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
31061         REPLACE_FLOAT_LDBL.
31062         * modules/float (Files): Add lib/float.c.
31063         (configure.ac): Invoke AC_LIBOBJ.
31064         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
31066 2011-06-20  Bruno Haible  <bruno@clisp.org>
31068         Tests for module 'float'.
31069         * modules/float-tests: New file.
31070         * tests/test-float.c: New file.
31072 2011-06-19  Bruno Haible  <bruno@clisp.org>
31074         isinf: Coding style.
31075         * lib/isinf.c: Use GNU coding style.
31077 2011-06-19  Bruno Haible  <bruno@clisp.org>
31079         linkat test: Avoid test failure on AIX 7.1.
31080         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
31081         * tests/test-link.h (test_link): Likewise.
31083 2011-06-19  Bruno Haible  <bruno@clisp.org>
31085         pread test: Avoid test failure on OpenBSD 4.9.
31086         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
31088 2011-06-19  Bruno Haible  <bruno@clisp.org>
31090         sprintf-posix: Fix test failure on AIX 7.1.
31091         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
31092         * doc/posix-functions/dprintf.texi: Mention limited precision problem
31093         on AIX.
31094         * doc/posix-functions/fprintf.texi: Likewise.
31095         * doc/posix-functions/printf.texi: Likewise.
31096         * doc/posix-functions/snprintf.texi: Likewise.
31097         * doc/posix-functions/sprintf.texi: Likewise.
31098         * doc/posix-functions/vdprintf.texi: Likewise.
31099         * doc/posix-functions/vfprintf.texi: Likewise.
31100         * doc/posix-functions/vprintf.texi: Likewise.
31101         * doc/posix-functions/vsnprintf.texi: Likewise.
31102         * doc/posix-functions/vsprintf.texi: Likewise.
31104 2011-06-19  Bruno Haible  <bruno@clisp.org>
31106         roundl-ieee: Fix test failure on AIX 7.1.
31107         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
31108         * doc/posix-functions/roundl.texi: Mention problem with negative
31109         arguments.
31111 2011-06-19  Bruno Haible  <bruno@clisp.org>
31113         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
31114         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
31115         * doc/posix-functions/round.texi: Mention problem with negative
31116         arguments.
31117         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
31119 2011-06-19  Bruno Haible  <bruno@clisp.org>
31121         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
31122         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
31123         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
31124         * doc/posix-functions/roundf.texi: Mention problem with negative
31125         arguments.
31126         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
31128 2011-06-19  Bruno Haible  <bruno@clisp.org>
31130         ceilf-ieee: Work around bug on MacOS X 10.5.
31131         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
31133         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
31134         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
31135         IEEE compliant, avoid compiler optimizations.
31136         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
31137         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
31138         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
31139         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31140         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31141         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31142         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31144         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31145         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
31147 2011-06-19  Bruno Haible  <bruno@clisp.org>
31149         ceilf-ieee: Work around bug on AIX 7.1.
31150         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
31151         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
31153 2011-06-19  Bruno Haible  <bruno@clisp.org>
31155         ceil-ieee: Work around bug on AIX 7.1.
31156         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
31157         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
31159 2011-06-18  Bruno Haible  <bruno@clisp.org>
31161         fsync test: Avoid test failure on MacOS X and AIX.
31162         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
31163         EINVAL.
31165 2011-06-18  Bruno Haible  <bruno@clisp.org>
31167         openat, fdopendir tests: Fix link errors.
31168         * modules/openat-tests (Depends-on): Add progname.
31169         * modules/fdopendir-tests (Depends-on): Likewise.
31170         * tests/test-fchownat.c: Include progname.h.
31171         (main): Call set_program_name.
31172         * tests/test-fstatat.c: Include progname.h.
31173         (main): Call set_program_name.
31174         * tests/test-mkdirat.c: Include progname.h.
31175         (main): Call set_program_name.
31176         * tests/test-openat.c: Include progname.h.
31177         (main): Call set_program_name.
31178         * tests/test-unlinkat.c: Include progname.h.
31179         (main): Call set_program_name.
31180         * tests/test-fdopendir.c: Include progname.h.
31181         (main): Call set_program_name.
31183 2011-06-18  Bruno Haible  <bruno@clisp.org>
31185         Doc update.
31186         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
31187         HP-UX.
31188         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
31190 2011-06-18  Bruno Haible  <bruno@clisp.org>
31192         getcwd tests: Avoid compilation error on HP-UX 11.31.
31193         * modules/getcwd-tests (Depends-on): Add pathmax.
31194         * tests/test-getcwd.c: Include pathmax.h.
31196 2011-06-18  Bruno Haible  <bruno@clisp.org>
31198         isfinite, isinf: Fix link error on AIX 6 and 7.
31199         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
31200         needed, also test the macro with a 'float' argument.
31201         * m4/isinf.m4 (gl_ISINF): Likewise.
31203 2011-06-18  Bruno Haible  <bruno@clisp.org>
31205         getloadavg: Don't clobber LIBS. Regression from previous commit.
31206         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
31207         AC_CHECK_LIB from here...
31208         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
31209         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
31210         gl_func_getloadavg_done.
31211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31213 2011-06-18  Bruno Haible  <bruno@clisp.org>
31215         clean-temp: Improve documentation.
31216         * lib/clean-temp.h: Explain better how to use this module.
31217         Reported by John Darrington <john@darrington.wattle.id.au>.
31219 2011-06-17  Bruno Haible  <bruno@clisp.org>
31221         pread, pwrite: Avoid cc warning on AIX.
31222         * lib/unistd.in.h (pread): Undefine before defining as a macro.
31223         (pwrite): Likewise.
31225 2011-06-17  Bruno Haible  <bruno@clisp.org>
31227         spawn-pipe tests: Fix link error.
31228         * tests/test-spawn-pipe-child.c: Undefine fprintf.
31229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31231 2011-06-17  Bruno Haible  <bruno@clisp.org>
31233         Tests: Remove unnecessary dependency.
31234         * modules/canonicalize-tests (Depends-on): Remove progname.
31235         * modules/chown-tests (Depends-on): Likewise.
31236         * modules/dirname-tests (Depends-on): Likewise.
31237         * modules/fdopendir-tests (Depends-on): Likewise.
31238         * modules/fdutimensat-tests (Depends-on): Likewise.
31239         * modules/hash-tests (Depends-on): Likewise.
31240         * modules/lchown-tests (Depends-on): Likewise.
31241         * modules/linkat-tests (Depends-on): Likewise.
31242         * modules/renameat-tests (Depends-on): Likewise.
31243         * modules/spawn-pipe-tests (Depends-on): Likewise.
31244         * modules/utimensat-tests (Depends-on): Likewise.
31246 2011-06-17  Bruno Haible  <bruno@clisp.org>
31248         spawn-pipe tests: Fix link error.
31249         * tests/test-spawn-pipe-child.c: Undefine fflush.
31251 2011-06-17  Bruno Haible  <bruno@clisp.org>
31253         Fix tests link errors.
31254         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
31255         * modules/chown-tests (Makefile.am): Don't link test-chown with
31256         LIBINTL.
31257         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
31258         LIBINTL.
31259         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
31260         LIBINTL.
31261         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
31262         LIBINTL.
31264 2011-06-16  Bruno Haible  <bruno@clisp.org>
31266         crypto/gc-sha1: Fix recent regression.
31267         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
31268         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
31270         crypto/gc-md5: Fix recent regression.
31271         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
31273         crypto/gc-md4: Fix recent regression.
31274         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
31275         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
31277         crypto/gc-arctwo: Fix recent regression.
31278         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
31279         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
31281         crypto/gc-rijndael: Fix recent regression.
31282         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
31283         (configure.ac): Invoke AC_LIBOBJ here.
31284         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
31285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31287         crypto/gc-hmac-sha1: Fix recent regression.
31288         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
31289         (configure.ac): Invoke AC_LIBOBJ here.
31290         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
31291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31293         crypto/gc-hmac-md5: Fix recent regression.
31294         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
31295         (configure.ac): Invoke AC_LIBOBJ here.
31296         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
31297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31299         crypto/gc-des: Fix recent regression.
31300         * modules/crypto/gc-des (Files): Remove m4/des.m4.
31301         (configure.ac): Invoke AC_LIBOBJ here.
31302         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
31303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31305         crypto/gc-arcfour: Fix recent regression.
31306         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
31307         (configure.ac): Invoke AC_LIBOBJ here.
31308         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
31309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31311 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
31313         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
31314         After the 2011-05-21 change, this macro requires
31315         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
31316         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31318 2011-06-16  Bruno Haible  <bruno@clisp.org>
31320         fprintftime: Move AC_LIBOBJ invocations to module description.
31321         * m4/fprintftime.m4: Remove file.
31322         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
31323         (configure.ac): Remove gl_FPRINTFTIME call.
31324         (Makefile.am): Augment lib_SOURCES.
31325         Reported by Jim Meyering.
31327 2011-06-16  Bruno Haible  <bruno@clisp.org>
31329         tmpfile-safer: Finish 2011-05-23 commit.
31330         * m4/stdio-safer.m4: Really remove file.
31331         Reported by Jim Meyering.
31333 2011-06-16  Bruno Haible  <bruno@clisp.org>
31335         syntax-check: Fix typo.
31336         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
31337         printf-posix.m4.
31338         Reported by Jim Meyering.
31340 2011-06-13  Jim Meyering  <meyering@redhat.com>
31342         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
31343         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
31345 2011-05-23  Bruno Haible  <bruno@clisp.org>
31347         yesno: Move AC_LIBOBJ invocations to module description.
31348         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
31349         * modules/yesno (Makefile.am): Augment lib_SOURCES.
31351 2011-05-23  Bruno Haible  <bruno@clisp.org>
31353         xstrtol: Move AC_LIBOBJ invocations to module description.
31354         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
31355         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
31357 2011-05-23  Bruno Haible  <bruno@clisp.org>
31359         xstrtold: Move AC_LIBOBJ invocations to module description.
31360         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
31361         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
31363 2011-05-23  Bruno Haible  <bruno@clisp.org>
31365         xstrtod: Move AC_LIBOBJ invocations to module description.
31366         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
31367         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
31369 2011-05-23  Bruno Haible  <bruno@clisp.org>
31371         xnanosleep: Move AC_LIBOBJ invocations to module description.
31372         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
31373         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
31375 2011-05-23  Bruno Haible  <bruno@clisp.org>
31377         xgetcwd: Move AC_LIBOBJ invocations to module description.
31378         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
31379         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
31381 2011-05-23  Bruno Haible  <bruno@clisp.org>
31383         xalloc: Move AC_LIBOBJ invocations to module description.
31384         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
31385         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
31387 2011-05-23  Bruno Haible  <bruno@clisp.org>
31389         write-any-file: Move AC_LIBOBJ invocations to module description.
31390         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
31391         invocation.
31392         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
31394 2011-05-23  Bruno Haible  <bruno@clisp.org>
31396         utimens: Move AC_LIBOBJ invocations to module description.
31397         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
31398         * modules/utimens (Makefile.am): Augment lib_SOURCES.
31400 2011-05-23  Bruno Haible  <bruno@clisp.org>
31402         utimecmp: Move AC_LIBOBJ invocations to module description.
31403         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
31404         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
31406 2011-05-23  Bruno Haible  <bruno@clisp.org>
31408         userspec: Move AC_LIBOBJ invocations to module description.
31409         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
31410         * modules/userspec (Makefile.am): Augment lib_SOURCES.
31412 2011-05-23  Bruno Haible  <bruno@clisp.org>
31414         unlinkdir: Move AC_LIBOBJ invocations to module description.
31415         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
31416         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
31418 2011-05-23  Bruno Haible  <bruno@clisp.org>
31420         unistd-safer: Move AC_LIBOBJ invocations to module description.
31421         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
31422         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
31424 2011-05-23  Bruno Haible  <bruno@clisp.org>
31426         tempname: Move AC_LIBOBJ invocations to module description.
31427         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
31428         * modules/tempname (Makefile.am): Augment lib_SOURCES.
31430 2011-05-23  Bruno Haible  <bruno@clisp.org>
31432         strftime: Move AC_LIBOBJ invocations to module description.
31433         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
31434         * modules/strftime (Makefile.am): Augment lib_SOURCES.
31436 2011-05-23  Bruno Haible  <bruno@clisp.org>
31438         stdlib-safer: Move AC_LIBOBJ invocations to module description.
31439         * m4/stdlib-safer.m4: Remove file.
31440         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
31441         (configure.ac): Remove gl_STDLIB_SAFER call.
31442         (Makefile.am): Augment lib_SOURCES.
31444 2011-05-23  Bruno Haible  <bruno@clisp.org>
31446         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
31447         * m4/stdio-safer.m4: Remove file.
31448         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
31449         (configure.ac): Remove gl_TMPFILE_SAFER call.
31450         (Makefile.am): Augment lib_SOURCES.
31452 2011-05-23  Bruno Haible  <bruno@clisp.org>
31454         popen-safer: Move AC_LIBOBJ invocations to module description.
31455         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
31456         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
31457         (configure.ac): Remove gl_POPEN_SAFER call.
31458         (Makefile.am): Augment lib_SOURCES.
31460 2011-05-23  Bruno Haible  <bruno@clisp.org>
31462         freopen-safer: Move AC_LIBOBJ invocations to module description.
31463         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
31464         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
31465         (configure.ac): Remove gl_FREOPEN_SAFER call.
31466         (Makefile.am): Augment lib_SOURCES.
31468 2011-05-23  Bruno Haible  <bruno@clisp.org>
31470         fopen-safer: Move AC_LIBOBJ invocations to module description.
31471         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
31472         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
31473         (configure.ac): Remove gl_FOPEN_SAFER call.
31474         (Makefile.am): Augment lib_SOURCES.
31476 2011-05-23  Bruno Haible  <bruno@clisp.org>
31478         crypto/sha512: Move AC_LIBOBJ invocations to module description.
31479         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
31480         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
31482 2011-05-23  Bruno Haible  <bruno@clisp.org>
31484         crypto/sha256: Move AC_LIBOBJ invocations to module description.
31485         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
31486         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
31488 2011-05-23  Bruno Haible  <bruno@clisp.org>
31490         crypto/sha1: Move AC_LIBOBJ invocations to module description.
31491         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
31492         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
31494 2011-05-23  Bruno Haible  <bruno@clisp.org>
31496         settime: Move AC_LIBOBJ invocations to module description.
31497         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
31498         * modules/settime (Makefile.am): Augment lib_SOURCES.
31500 2011-05-23  Bruno Haible  <bruno@clisp.org>
31502         savedir: Move AC_LIBOBJ invocations to module description.
31503         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
31504         * modules/savedir (Makefile.am): Augment lib_SOURCES.
31506 2011-05-23  Bruno Haible  <bruno@clisp.org>
31508         save-cwd: Move AC_LIBOBJ invocations to module description.
31509         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
31510         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
31512 2011-05-23  Bruno Haible  <bruno@clisp.org>
31514         same: Move AC_LIBOBJ invocations to module description.
31515         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
31516         * modules/same (Makefile.am): Augment lib_SOURCES.
31518 2011-05-23  Bruno Haible  <bruno@clisp.org>
31520         safe-write: Move AC_LIBOBJ invocations to module description.
31521         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
31522         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
31523         instead of gl_SAFE_WRITE.
31524         (Makefile.am): Augment lib_SOURCES.
31526 2011-05-23  Bruno Haible  <bruno@clisp.org>
31528         safe-read: Move AC_LIBOBJ invocations to module description.
31529         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
31530         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
31531         of gl_SAFE_READ.
31532         (Makefile.am): Augment lib_SOURCES.
31534 2011-05-23  Bruno Haible  <bruno@clisp.org>
31536         safe-alloc: Move AC_LIBOBJ invocations to module description.
31537         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
31538         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
31540 2011-05-23  Bruno Haible  <bruno@clisp.org>
31542         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
31543         * m4/rijndael.m4: Remove file.
31544         * modules/crypto/rijndael (Files): Remove it.
31545         (configure.ac): Remove gl_RIJNDAEL call.
31546         (Makefile.am): Augment lib_SOURCES.
31548 2011-05-23  Bruno Haible  <bruno@clisp.org>
31550         readtokens: Move AC_LIBOBJ invocations to module description.
31551         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
31552         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
31554 2011-05-23  Bruno Haible  <bruno@clisp.org>
31556         read-file: Move AC_LIBOBJ invocations to module description.
31557         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
31558         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
31559         of gl_FUNC_READ_FILE.
31560         (Makefile.am): Augment lib_SOURCES.
31562 2011-05-23  Bruno Haible  <bruno@clisp.org>
31564         quotearg: Move AC_LIBOBJ invocations to module description.
31565         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
31566         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
31568 2011-05-23  Bruno Haible  <bruno@clisp.org>
31570         quote: Move AC_LIBOBJ invocations to module description.
31571         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
31572         * modules/quote (Makefile.am): Augment lib_SOURCES.
31574 2011-05-23  Bruno Haible  <bruno@clisp.org>
31576         posixver: Move AC_LIBOBJ invocations to module description.
31577         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
31578         * modules/posixver (Makefile.am): Augment lib_SOURCES.
31580 2011-05-23  Bruno Haible  <bruno@clisp.org>
31582         posixtm: Move AC_LIBOBJ invocations to module description.
31583         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
31584         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
31586 2011-05-23  Bruno Haible  <bruno@clisp.org>
31588         physmem: Move AC_LIBOBJ invocations to module description.
31589         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
31590         * modules/physmem (Makefile.am): Augment lib_SOURCES.
31592 2011-05-23  Bruno Haible  <bruno@clisp.org>
31594         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
31595         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
31596         invocation.
31597         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
31599 2011-05-23  Bruno Haible  <bruno@clisp.org>
31601         mpsort: Move AC_LIBOBJ invocations to module description.
31602         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
31603         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
31605 2011-05-23  Bruno Haible  <bruno@clisp.org>
31607         modechange: Move AC_LIBOBJ invocations to module description.
31608         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
31609         * modules/modechange (Makefile.am): Augment lib_SOURCES.
31611 2011-05-23  Bruno Haible  <bruno@clisp.org>
31613         mkdir-p: Move AC_LIBOBJ invocations to module description.
31614         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
31615         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
31617 2011-05-23  Bruno Haible  <bruno@clisp.org>
31619         mkancesdirs: Move AC_LIBOBJ invocations to module description.
31620         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
31621         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
31623 2011-05-23  Bruno Haible  <bruno@clisp.org>
31625         mgetgroups: Move AC_LIBOBJ invocations to module description.
31626         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
31627         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
31629 2011-05-23  Bruno Haible  <bruno@clisp.org>
31631         memxor: Move AC_LIBOBJ invocations to module description.
31632         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
31633         * modules/memxor (Makefile.am): Augment lib_SOURCES.
31635 2011-05-23  Bruno Haible  <bruno@clisp.org>
31637         memcoll: Move AC_LIBOBJ invocations to module description.
31638         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
31639         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
31641 2011-05-23  Bruno Haible  <bruno@clisp.org>
31643         memcasecmp: Move AC_LIBOBJ invocations to module description.
31644         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
31645         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
31647 2011-05-23  Bruno Haible  <bruno@clisp.org>
31649         crypto/md5: Move AC_LIBOBJ invocations to module description.
31650         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
31651         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
31653 2011-05-23  Bruno Haible  <bruno@clisp.org>
31655         crypto/md4: Move AC_LIBOBJ invocations to module description.
31656         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
31657         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
31659 2011-05-23  Bruno Haible  <bruno@clisp.org>
31661         crypto/md2: Move AC_LIBOBJ invocations to module description.
31662         * m4/md2.m4: Remove file.
31663         * modules/crypto/md2 (Files): Remove it.
31664         (configure.ac): Remove gl_MD2 call.
31665         (Makefile.am): Augment lib_SOURCES.
31667 2011-05-23  Bruno Haible  <bruno@clisp.org>
31669         long-options: Move AC_LIBOBJ invocations to module description.
31670         * m4/long-options.m4: Remove file.
31671         * modules/long-options (Files): Remove it.
31672         (configure.ac): Remove gl_LONG_OPTIONS call.
31673         (Makefile.am): Augment lib_SOURCES.
31675 2011-05-23  Bruno Haible  <bruno@clisp.org>
31677         i-ring: Move AC_LIBOBJ invocations to module description.
31678         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
31679         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
31681 2011-05-23  Bruno Haible  <bruno@clisp.org>
31683         idcache: Move AC_LIBOBJ invocations to module description.
31684         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
31685         * modules/idcache (Makefile.am): Augment lib_SOURCES.
31687 2011-05-23  Bruno Haible  <bruno@clisp.org>
31689         human: Move AC_LIBOBJ invocations to module description.
31690         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
31691         * modules/human (Makefile.am): Augment lib_SOURCES.
31693 2011-05-23  Bruno Haible  <bruno@clisp.org>
31695         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
31696         * m4/hmac-sha1.m4: Remove file.
31697         * modules/crypto/hmac-sha1 (Files): Remove it.
31698         (configure.ac): Remove gl_HMAC_SHA1 call.
31699         (Makefile.am): Augment lib_SOURCES.
31701 2011-05-23  Bruno Haible  <bruno@clisp.org>
31703         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
31704         * m4/hmac-md5.m4: Remove file.
31705         * modules/crypto/hmac-md5 (Files): Remove it.
31706         (configure.ac): Remove gl_HMAC_MD5 call.
31707         (Makefile.am): Augment lib_SOURCES.
31709 2011-05-23  Bruno Haible  <bruno@clisp.org>
31711         hash: Move AC_LIBOBJ invocations to module description.
31712         * m4/hash.m4: Remove file.
31713         * modules/hash (Files): Remove it.
31714         (configure.ac): Remove gl_HASH call.
31715         (Makefile.am): Augment lib_SOURCES.
31717 2011-05-23  Bruno Haible  <bruno@clisp.org>
31719         hard-locale: Move AC_LIBOBJ invocations to module description.
31720         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
31721         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
31723 2011-05-23  Bruno Haible  <bruno@clisp.org>
31725         getugroups: Move AC_LIBOBJ invocations to module description.
31726         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
31727         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
31729 2011-05-23  Bruno Haible  <bruno@clisp.org>
31731         gettime: Move AC_LIBOBJ invocations to module description.
31732         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
31733         * modules/gettime (Makefile.am): Augment lib_SOURCES.
31735 2011-05-23  Bruno Haible  <bruno@clisp.org>
31737         getndelim2: Move AC_LIBOBJ invocations to module description.
31738         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
31739         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
31741 2011-05-23  Bruno Haible  <bruno@clisp.org>
31743         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
31744         * m4/gc-pbkdf2-sha1.m4: Remove file.
31745         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
31746         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
31747         (Makefile.am): Augment lib_SOURCES.
31749 2011-05-23  Bruno Haible  <bruno@clisp.org>
31751         fts: Move AC_LIBOBJ invocations to module description.
31752         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
31753         * modules/fts (configure.ac): ... to here.
31755 2011-05-23  Bruno Haible  <bruno@clisp.org>
31757         file-type: Move AC_LIBOBJ invocations to module description.
31758         * m4/file-type.m4: Remove file.
31759         * modules/file-type (Files): Remove it.
31760         (configure.ac): Remove gl_FILE_TYPE call.
31761         (Makefile.am): Augment lib_SOURCES.
31763 2011-05-23  Bruno Haible  <bruno@clisp.org>
31765         filenamecat*: Respect rules for use of AC_LIBOBJ.
31766         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
31767         Remove AC_LIBOBJ invocation.
31768         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
31769         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
31771 2011-05-23  Bruno Haible  <bruno@clisp.org>
31773         filemode: Move AC_LIBOBJ invocations to module description.
31774         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
31775         * modules/filemode (Makefile.am): Augment lib_SOURCES.
31777 2011-05-23  Bruno Haible  <bruno@clisp.org>
31779         openat-safer: Move AC_LIBOBJ invocations to module description.
31780         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
31781         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
31783 2011-05-23  Bruno Haible  <bruno@clisp.org>
31785         fcntl-safer: Move AC_LIBOBJ invocations to module description.
31786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
31787         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
31789 2011-05-23  Bruno Haible  <bruno@clisp.org>
31791         exclude: Move AC_LIBOBJ invocations to module description.
31792         * m4/exclude.m4: Remove file.
31793         * modules/exclude (Files): Remove it.
31794         (configure.ac): Remove gl_EXCLUDE call.
31795         (Makefile.am): Augment lib_SOURCES.
31797 2011-05-23  Bruno Haible  <bruno@clisp.org>
31799         dirname*: Respect rules for use of AC_LIBOBJ.
31800         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
31801         invocations.
31802         * modules/dirname (Makefile.am): Augment lib_SOURCES.
31803         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
31805 2011-05-23  Bruno Haible  <bruno@clisp.org>
31807         dirent-safer: Move AC_LIBOBJ invocations to module description.
31808         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
31809         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
31811 2011-05-23  Bruno Haible  <bruno@clisp.org>
31813         crypto/des: Move AC_LIBOBJ invocations to module description.
31814         * m4/des.m4: Remove file.
31815         * modules/crypto/des (Files): Remove it.
31816         (configure.ac): Remove gl_DES call.
31817         (Makefile.am): Augment lib_SOURCES.
31819 2011-05-23  Bruno Haible  <bruno@clisp.org>
31821         cycle-check: Move AC_LIBOBJ invocations to module description.
31822         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
31823         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
31825 2011-05-23  Bruno Haible  <bruno@clisp.org>
31827         c-strtold: Move AC_LIBOBJ invocations to module description.
31828         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
31829         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
31831 2011-05-23  Bruno Haible  <bruno@clisp.org>
31833         c-strtod: Move AC_LIBOBJ invocations to module description.
31834         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
31835         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
31837 2011-05-23  Bruno Haible  <bruno@clisp.org>
31839         crc: Move AC_LIBOBJ invocations to module description.
31840         * m4/crc.m4: Remove file.
31841         * modules/crc (Files): Remove it.
31842         (configure.ac): Remove gl_CRC call.
31843         (Makefile.am): Augment lib_SOURCES.
31845 2011-05-23  Bruno Haible  <bruno@clisp.org>
31847         close-stream: Move AC_LIBOBJ invocations to module description.
31848         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
31849         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
31851 2011-05-23  Bruno Haible  <bruno@clisp.org>
31853         closeout: Move AC_LIBOBJ invocations to module description.
31854         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
31855         * modules/closeout (Makefile.am): Augment lib_SOURCES.
31857 2011-05-23  Bruno Haible  <bruno@clisp.org>
31859         closein: Move AC_LIBOBJ invocations to module description.
31860         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
31861         * modules/closein (Makefile.am): Augment lib_SOURCES.
31863 2011-05-23  Bruno Haible  <bruno@clisp.org>
31865         cloexec: Move AC_LIBOBJ invocations to module description.
31866         * m4/cloexec.m4: Remove file.
31867         * modules/cloexec (Files): Remove it.
31868         (configure.ac): Remove gl_CLOEXEC call.
31869         (Makefile.am): Augment lib_SOURCES.
31871 2011-05-23  Bruno Haible  <bruno@clisp.org>
31873         check-version: Move AC_LIBOBJ invocations to module description.
31874         * m4/check-version.m4: Remove file.
31875         * modules/check-version (Files): Remove it.
31876         (configure.ac): Remove gl_CHECK_VERSION call.
31877         (Makefile.am): Augment lib_SOURCES.
31879 2011-05-23  Bruno Haible  <bruno@clisp.org>
31881         chdir-safer: Move AC_LIBOBJ invocations to module description.
31882         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
31883         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
31885 2011-05-23  Bruno Haible  <bruno@clisp.org>
31887         canonicalize: Move AC_LIBOBJ invocations to module description.
31888         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
31889         AC_LIBOBJ invocation.
31890         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
31892 2011-05-23  Bruno Haible  <bruno@clisp.org>
31894         canon-host: Move AC_LIBOBJ invocations to module description.
31895         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
31896         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
31897         instead of gl_CANON_HOST.
31898         (Makefile.am): Augment lib_SOURCES.
31900 2011-05-23  Bruno Haible  <bruno@clisp.org>
31902         backupfile: Move AC_LIBOBJ invocations to module description.
31903         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
31904         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
31906 2011-05-23  Bruno Haible  <bruno@clisp.org>
31908         argmatch: Move AC_LIBOBJ invocations to module description.
31909         * m4/argmatch.m4: Remove file.
31910         * modules/argmatch (Files): Remove it.
31911         (configure.ac): Remove gl_ARGMATCH call.
31912         (Makefile.am): Augment lib_SOURCES.
31914 2011-05-23  Bruno Haible  <bruno@clisp.org>
31916         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
31917         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
31918         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
31920 2011-05-23  Bruno Haible  <bruno@clisp.org>
31922         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
31923         * m4/arcfour.m4: Remove file.
31924         * modules/crypto/arcfour (Files): Remove it.
31925         (configure.ac): Remove gl_ARCFOUR call.
31926         (Makefile.am): Augment lib_SOURCES.
31928 2011-05-22  Bruno Haible  <bruno@clisp.org>
31930         write: Move AC_LIBOBJ invocations to module description.
31931         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
31932         * modules/write (configure.ac): ... to here.
31934 2011-05-22  Bruno Haible  <bruno@clisp.org>
31936         wmemset: Move AC_LIBOBJ invocations to module description.
31937         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
31938         here...
31939         * modules/wmemset (configure.ac): ... to here.
31941 2011-05-22  Bruno Haible  <bruno@clisp.org>
31943         wmemmove: Move AC_LIBOBJ invocations to module description.
31944         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
31945         here...
31946         * modules/wmemmove (configure.ac): ... to here.
31948 2011-05-22  Bruno Haible  <bruno@clisp.org>
31950         wmemcpy: Move AC_LIBOBJ invocations to module description.
31951         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
31952         here...
31953         * modules/wmemcpy (configure.ac): ... to here.
31955 2011-05-22  Bruno Haible  <bruno@clisp.org>
31957         wmemcmp: Move AC_LIBOBJ invocations to module description.
31958         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
31959         here...
31960         * modules/wmemcmp (configure.ac): ... to here.
31962 2011-05-22  Bruno Haible  <bruno@clisp.org>
31964         wmemchr: Move AC_LIBOBJ invocations to module description.
31965         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
31966         here...
31967         * modules/wmemchr (configure.ac): ... to here.
31969 2011-05-22  Bruno Haible  <bruno@clisp.org>
31971         wcswidth: Move AC_LIBOBJ invocations to module description.
31972         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
31973         here...
31974         * modules/wcswidth (configure.ac): ... to here.
31976 2011-05-22  Bruno Haible  <bruno@clisp.org>
31978         wcwidth: Respect rules for use of AC_LIBOBJ.
31979         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
31980         invocation from here...
31981         * modules/wcwidth (configure.ac): ... to here.
31982         (Depends-on): Update conditions.
31984 2011-05-22  Bruno Haible  <bruno@clisp.org>
31986         wctype: Move AC_LIBOBJ invocations to module description.
31987         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
31988         invocation from here...
31989         * modules/wctype (configure.ac): ... to here.
31990         (Depends-on): Update conditions.
31992 2011-05-22  Bruno Haible  <bruno@clisp.org>
31994         wctrans: Move AC_LIBOBJ invocations to module description.
31995         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
31996         invocation from here...
31997         * modules/wctrans (configure.ac): ... to here.
31999 2011-05-22  Bruno Haible  <bruno@clisp.org>
32001         wctomb: Move AC_LIBOBJ invocations to module description.
32002         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
32003         invocations from here...
32004         * modules/wctomb (configure.ac): ... to here.
32006 2011-05-22  Bruno Haible  <bruno@clisp.org>
32008         wctob: Move AC_LIBOBJ invocations to module description.
32009         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
32010         gl_PREREQ_WCTOB invocations from here...
32011         * modules/wctob (configure.ac): ... to here.
32012         (Depends-on): Update conditions.
32014 2011-05-22  Bruno Haible  <bruno@clisp.org>
32016         wcsxfrm: Move AC_LIBOBJ invocations to module description.
32017         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
32018         here...
32019         * modules/wcsxfrm (configure.ac): ... to here.
32021 2011-05-22  Bruno Haible  <bruno@clisp.org>
32023         wcstok: Move AC_LIBOBJ invocations to module description.
32024         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
32025         * modules/wcstok (configure.ac): ... to here.
32027 2011-05-22  Bruno Haible  <bruno@clisp.org>
32029         wcsstr: Move AC_LIBOBJ invocations to module description.
32030         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
32031         * modules/wcsstr (configure.ac): ... to here.
32033 2011-05-22  Bruno Haible  <bruno@clisp.org>
32035         wcsspn: Move AC_LIBOBJ invocations to module description.
32036         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
32037         * modules/wcsspn (configure.ac): ... to here.
32039 2011-05-22  Bruno Haible  <bruno@clisp.org>
32041         wcsrtombs: Move AC_LIBOBJ invocations to module description.
32042         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
32043         gl_PREREQ_WCSRTOMBS invocations from here...
32044         * modules/wcsrtombs (configure.ac): ... to here.
32046 2011-05-22  Bruno Haible  <bruno@clisp.org>
32048         wcsrchr: Move AC_LIBOBJ invocations to module description.
32049         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
32050         here...
32051         * modules/wcsrchr (configure.ac): ... to here.
32053 2011-05-22  Bruno Haible  <bruno@clisp.org>
32055         wcspbrk: Move AC_LIBOBJ invocations to module description.
32056         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
32057         here...
32058         * modules/wcspbrk (configure.ac): ... to here.
32060 2011-05-22  Bruno Haible  <bruno@clisp.org>
32062         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
32063         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
32064         gl_PREREQ_WCSNRTOMBS invocations from here...
32065         * modules/wcsnrtombs (configure.ac): ... to here.
32067 2011-05-22  Bruno Haible  <bruno@clisp.org>
32069         wcsnlen: Move AC_LIBOBJ invocations to module description.
32070         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
32071         here...
32072         * modules/wcsnlen (configure.ac): ... to here.
32074 2011-05-22  Bruno Haible  <bruno@clisp.org>
32076         wcsncpy: Move AC_LIBOBJ invocations to module description.
32077         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
32078         here...
32079         * modules/wcsncpy (configure.ac): ... to here.
32081 2011-05-22  Bruno Haible  <bruno@clisp.org>
32083         wcsncmp: Move AC_LIBOBJ invocations to module description.
32084         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
32085         here...
32086         * modules/wcsncmp (configure.ac): ... to here.
32088 2011-05-22  Bruno Haible  <bruno@clisp.org>
32090         wcsncat: Move AC_LIBOBJ invocations to module description.
32091         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
32092         here...
32093         * modules/wcsncat (configure.ac): ... to here.
32095 2011-05-22  Bruno Haible  <bruno@clisp.org>
32097         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
32098         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
32099         from here...
32100         * modules/wcsncasecmp (configure.ac): ... to here.
32102 2011-05-22  Bruno Haible  <bruno@clisp.org>
32104         wcslen: Move AC_LIBOBJ invocations to module description.
32105         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
32106         * modules/wcslen (configure.ac): ... to here.
32108 2011-05-22  Bruno Haible  <bruno@clisp.org>
32110         wcsdup: Move AC_LIBOBJ invocations to module description.
32111         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
32112         * modules/wcsdup (configure.ac): ... to here.
32114 2011-05-22  Bruno Haible  <bruno@clisp.org>
32116         wcscspn: Move AC_LIBOBJ invocations to module description.
32117         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
32118         here...
32119         * modules/wcscspn (configure.ac): ... to here.
32121 2011-05-22  Bruno Haible  <bruno@clisp.org>
32123         wcscpy: Move AC_LIBOBJ invocations to module description.
32124         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
32125         * modules/wcscpy (configure.ac): ... to here.
32127 2011-05-22  Bruno Haible  <bruno@clisp.org>
32129         wcscoll: Move AC_LIBOBJ invocations to module description.
32130         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
32131         here...
32132         * modules/wcscoll (configure.ac): ... to here.
32134 2011-05-22  Bruno Haible  <bruno@clisp.org>
32136         wcscmp: Move AC_LIBOBJ invocations to module description.
32137         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
32138         * modules/wcscmp (configure.ac): ... to here.
32140 2011-05-22  Bruno Haible  <bruno@clisp.org>
32142         wcschr: Move AC_LIBOBJ invocations to module description.
32143         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
32144         * modules/wcschr (configure.ac): ... to here.
32146 2011-05-22  Bruno Haible  <bruno@clisp.org>
32148         wcscat: Move AC_LIBOBJ invocations to module description.
32149         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
32150         * modules/wcscat (configure.ac): ... to here.
32152 2011-05-22  Bruno Haible  <bruno@clisp.org>
32154         wcscasecmp: Move AC_LIBOBJ invocations to module description.
32155         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
32156         here...
32157         * modules/wcscasecmp (configure.ac): ... to here.
32159 2011-05-22  Bruno Haible  <bruno@clisp.org>
32161         wcrtomb: Move AC_LIBOBJ invocations to module description.
32162         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
32163         invocations from here...
32164         * modules/wcrtomb (configure.ac): ... to here.
32166 2011-05-22  Bruno Haible  <bruno@clisp.org>
32168         wcpncpy: Move AC_LIBOBJ invocations to module description.
32169         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
32170         here...
32171         * modules/wcpncpy (configure.ac): ... to here.
32173 2011-05-22  Bruno Haible  <bruno@clisp.org>
32175         wcpcpy: Move AC_LIBOBJ invocations to module description.
32176         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
32177         * modules/wcpcpy (configure.ac): ... to here.
32179 2011-05-22  Bruno Haible  <bruno@clisp.org>
32181         waitpid: Move AC_LIBOBJ invocations to module description.
32182         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
32183         invocation from here...
32184         * modules/waitpid (configure.ac): ... to here.
32186 2011-05-22  Bruno Haible  <bruno@clisp.org>
32188         utimensat: Move AC_LIBOBJ invocations to module description.
32189         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
32190         here...
32191         * modules/utimensat (configure.ac): ... to here.
32193 2011-05-22  Bruno Haible  <bruno@clisp.org>
32195         usleep: Move AC_LIBOBJ invocations to module description.
32196         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
32197         here...
32198         * modules/usleep (configure.ac): ... to here.
32200 2011-05-22  Bruno Haible  <bruno@clisp.org>
32202         unlockpt: Move AC_LIBOBJ invocations to module description.
32203         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
32204         gl_PREREQ_UNLOCKPT invocations from here...
32205         * modules/unlockpt (configure.ac): ... to here.
32207 2011-05-22  Bruno Haible  <bruno@clisp.org>
32209         unlink: Respect rules for use of AC_LIBOBJ.
32210         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
32211         * modules/unlink (configure.ac): ... to here.
32213 2011-05-22  Bruno Haible  <bruno@clisp.org>
32215         uname: Move AC_LIBOBJ invocations to module description.
32216         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
32217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
32218         here...
32219         * modules/uname (configure.ac): ... to here.
32221 2011-05-22  Bruno Haible  <bruno@clisp.org>
32223         ttyname_r: Move AC_LIBOBJ invocations to module description.
32224         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
32225         gl_PREREQ_TTYNAME_R invocations from here...
32226         * modules/ttyname_r (configure.ac): ... to here.
32228 2011-05-22  Bruno Haible  <bruno@clisp.org>
32230         tsearch: Move AC_LIBOBJ invocations to module description.
32231         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
32232         invocations from here...
32233         * modules/tsearch (configure.ac): ... to here.
32235 2011-05-22  Bruno Haible  <bruno@clisp.org>
32237         towctrans: Move AC_LIBOBJ invocations to module description.
32238         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
32239         AC_LIBOBJ invocation from here...
32240         * modules/towctrans (configure.ac): ... to here.
32242 2011-05-22  Bruno Haible  <bruno@clisp.org>
32244         tmpfile: Move AC_LIBOBJ invocations to module description.
32245         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
32246         invocations from here...
32247         * modules/tmpfile (configure.ac): ... to here.
32249 2011-05-22  Bruno Haible  <bruno@clisp.org>
32251         times: Move AC_LIBOBJ invocations to module description.
32252         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
32253         * modules/times (configure.ac): ... to here.
32255 2011-05-22  Bruno Haible  <bruno@clisp.org>
32257         time_r: Move AC_LIBOBJ invocations to module description.
32258         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
32259         invocations from here...
32260         * modules/time_r (configure.ac): ... to here.
32262 2011-05-22  Bruno Haible  <bruno@clisp.org>
32264         timegm: Move AC_LIBOBJ invocations to module description.
32265         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
32266         invocations from here...
32267         * modules/timegm (configure.ac): ... to here.
32269 2011-05-22  Bruno Haible  <bruno@clisp.org>
32271         tcgetsid: Move AC_LIBOBJ invocations to module description.
32272         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
32273         and gl_PREREQ_TCGETSID invocations from here...
32274         * modules/tcgetsid (configure.ac): ... to here.
32275         (Depends-on): Update conditions.
32277 2011-05-22  Bruno Haible  <bruno@clisp.org>
32279         symlinkat: Move AC_LIBOBJ invocations to module description.
32280         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
32281         here...
32282         * modules/symlinkat (configure.ac): ... to here.
32284 2011-05-22  Bruno Haible  <bruno@clisp.org>
32286         symlink: Move AC_LIBOBJ invocations to module description.
32287         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
32288         here...
32289         * modules/symlink (configure.ac): ... to here.
32291 2011-05-22  Bruno Haible  <bruno@clisp.org>
32293         strverscmp: Move AC_LIBOBJ invocations to module description.
32294         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
32295         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
32296         from here...
32297         * modules/strverscmp (configure.ac): ... to here.
32299 2011-05-22  Bruno Haible  <bruno@clisp.org>
32301         strtok_r: Move AC_LIBOBJ invocations to module description.
32302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
32303         and gl_PREREQ_STRTOK_R invocations from here...
32304         * modules/strtok_r (configure.ac): ... to here.
32305         (Depends-on): Update conditions.
32307 2011-05-22  Bruno Haible  <bruno@clisp.org>
32309         strtoumax: Move AC_LIBOBJ invocations to module description.
32310         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
32311         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
32312         from here...
32313         * modules/strtoumax (configure.ac): ... to here.
32315 2011-05-22  Bruno Haible  <bruno@clisp.org>
32317         strtoimax: Move AC_LIBOBJ invocations to module description.
32318         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
32319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
32320         from here...
32321         * modules/strtoimax (configure.ac): ... to here.
32323 2011-05-22  Bruno Haible  <bruno@clisp.org>
32325         strtoull: Move AC_LIBOBJ invocations to module description.
32326         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
32327         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
32328         from here...
32329         * modules/strtoull (configure.ac): ... to here.
32331 2011-05-22  Bruno Haible  <bruno@clisp.org>
32333         strtoll: Move AC_LIBOBJ invocations to module description.
32334         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
32335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
32336         here...
32337         * modules/strtoll (configure.ac): ... to here.
32339 2011-05-22  Bruno Haible  <bruno@clisp.org>
32341         strtoul: Move AC_LIBOBJ invocations to module description.
32342         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
32343         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32344         * modules/strtoul (configure.ac): ... to here.
32346 2011-05-22  Bruno Haible  <bruno@clisp.org>
32348         strtol: Move AC_LIBOBJ invocations to module description.
32349         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
32350         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32351         * modules/strtol (configure.ac): ... to here.
32353 2011-05-22  Bruno Haible  <bruno@clisp.org>
32355         strtod: Move AC_LIBOBJ invocations to module description.
32356         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
32357         invocations from here...
32358         * modules/strtod (configure.ac): ... to here.
32360 2011-05-22  Bruno Haible  <bruno@clisp.org>
32362         strstr*: Move AC_LIBOBJ invocations to module description.
32363         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
32364         invocations from here...
32365         * modules/strstr-simple (configure.ac): ... to here.
32366         * modules/strstr (configure.ac): ... and here.
32368 2011-05-22  Bruno Haible  <bruno@clisp.org>
32370         strsignal: Move AC_LIBOBJ invocations to module description.
32371         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
32372         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
32373         * modules/strsignal (configure.ac): ... to here.
32374         (Depends-on): Update conditions.
32376 2011-05-22  Bruno Haible  <bruno@clisp.org>
32378         strsep: Move AC_LIBOBJ invocations to module description.
32379         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
32380         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
32381         here...
32382         * modules/strsep (configure.ac): ... to here.
32384 2011-05-22  Bruno Haible  <bruno@clisp.org>
32386         strptime: Move AC_LIBOBJ invocations to module description.
32387         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
32388         gl_PREREQ_STRPTIME invocations from here...
32389         * modules/strptime (configure.ac): ... to here.
32391 2011-05-22  Bruno Haible  <bruno@clisp.org>
32393         strpbrk: Move AC_LIBOBJ invocations to module description.
32394         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
32395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
32396         here...
32397         * modules/strpbrk (configure.ac): ... to here.
32399 2011-05-22  Bruno Haible  <bruno@clisp.org>
32401         strnlen: Move AC_LIBOBJ invocations to module description.
32402         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
32403         invocations from here...
32404         * modules/strnlen (configure.ac): ... to here.
32406 2011-05-22  Bruno Haible  <bruno@clisp.org>
32408         strndup: Move AC_LIBOBJ invocations to module description.
32409         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
32410         invocations from here...
32411         * modules/strndup (configure.ac): ... to here.
32412         (Depends-on): Update conditions.
32414 2011-05-22  Bruno Haible  <bruno@clisp.org>
32416         strncat: Move AC_LIBOBJ invocations to module description.
32417         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
32418         invocations from here...
32419         * modules/strncat (configure.ac): ... to here.
32421 2011-05-22  Bruno Haible  <bruno@clisp.org>
32423         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
32424         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
32425         invocations from here...
32426         * modules/strdup (configure.ac): ... to here.
32427         * modules/strdup-posix (configure.ac): ... and here.
32429 2011-05-22  Bruno Haible  <bruno@clisp.org>
32431         strcspn: Move AC_LIBOBJ invocations to module description.
32432         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
32433         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
32434         here...
32435         * modules/strcspn (configure.ac): ... to here.
32437 2011-05-22  Bruno Haible  <bruno@clisp.org>
32439         strchrnul: Move AC_LIBOBJ invocations to module description.
32440         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
32441         gl_PREREQ_STRCHRNUL invocations from here...
32442         * modules/strchrnul (configure.ac): ... to here.
32444 2011-05-22  Bruno Haible  <bruno@clisp.org>
32446         strcasestr*: Move AC_LIBOBJ invocations to module description.
32447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
32448         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
32449         * modules/strcasestr-simple (configure.ac): ... to here.
32450         * modules/strcasestr (configure.ac): ... and here.
32452 2011-05-22  Bruno Haible  <bruno@clisp.org>
32454         strcase: Move AC_LIBOBJ invocations to module description.
32455         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
32456         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
32457         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
32458         gl_PREREQ_STRNCASECMP invocations from here...
32459         * modules/strcase (configure.ac): ... to here.
32461 2011-05-22  Bruno Haible  <bruno@clisp.org>
32463         stpncpy: Move AC_LIBOBJ invocations to module description.
32464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
32465         here...
32466         * modules/stpncpy (configure.ac): ... to here.
32468 2011-05-22  Bruno Haible  <bruno@clisp.org>
32470         stpcpy: Move AC_LIBOBJ invocations to module description.
32471         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
32472         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
32473         here...
32474         * modules/stpcpy (configure.ac): ... to here.
32476 2011-05-21  Bruno Haible  <bruno@clisp.org>
32478         stat: Move AC_LIBOBJ invocations to module description.
32479         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
32480         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
32481         here...
32482         * modules/stat (configure.ac): ... to here.
32484 2011-05-21  Bruno Haible  <bruno@clisp.org>
32486         sleep: Move AC_LIBOBJ invocations to module description.
32487         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
32488         * modules/sleep (configure.ac): ... to here.
32490 2011-05-21  Bruno Haible  <bruno@clisp.org>
32492         signbit: Move AC_LIBOBJ invocations to module description.
32493         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
32494         * modules/signbit (configure.ac): ... to here.
32496 2011-05-21  Bruno Haible  <bruno@clisp.org>
32498         sigprocmask: Move AC_LIBOBJ invocations to module description.
32499         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
32500         gl_PREREQ_SIGPROMASK invocations from here...
32501         * modules/sigprocmask (configure.ac): ... to here.
32503 2011-05-21  Bruno Haible  <bruno@clisp.org>
32505         sigaction: Move AC_LIBOBJ invocations to module description.
32506         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
32507         gl_PREREQ_SIGACTION invocations from here...
32508         * modules/sigaction (configure.ac): ... to here.
32510 2011-05-21  Bruno Haible  <bruno@clisp.org>
32512         sig2str: Move AC_LIBOBJ invocations to module description.
32513         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
32514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
32515         here...
32516         * modules/sig2str (configure.ac): ... to here.
32518 2011-05-21  Bruno Haible  <bruno@clisp.org>
32520         setlocale: Move AC_LIBOBJ invocations to module description.
32521         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
32522         gl_PREREQ_SETLOCALE invocations from here...
32523         * modules/setlocale (configure.ac): ... to here.
32525 2011-05-21  Bruno Haible  <bruno@clisp.org>
32527         unsetenv: Move AC_LIBOBJ invocations to module description.
32528         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
32529         and gl_PREREQ_UNSETENV invocations from here...
32530         * modules/unsetenv (configure.ac): ... to here.
32531         (Depends-on): Update.
32533 2011-05-21  Bruno Haible  <bruno@clisp.org>
32535         setenv: Move AC_LIBOBJ invocations to module description.
32536         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
32537         here...
32538         * modules/setenv (configure.ac): ... to here.
32540 2011-05-21  Bruno Haible  <bruno@clisp.org>
32542         selinux-h: Move AC_LIBOBJ invocations to module description.
32543         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
32544         AC_LIBOBJ invocation from here...
32545         * modules/selinux-h (configure.ac): ... to here.
32547 2011-05-21  Bruno Haible  <bruno@clisp.org>
32549         select: Respect rules for use of AC_LIBOBJ.
32550         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
32551         here...
32552         * modules/select (configure.ac): ... to here.
32554 2011-05-21  Bruno Haible  <bruno@clisp.org>
32556         scandir: Move AC_LIBOBJ invocations to module description.
32557         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
32558         invocations from here...
32559         * modules/scandir (configure.ac): ... to here.
32561 2011-05-21  Bruno Haible  <bruno@clisp.org>
32563         rpmatch: Move AC_LIBOBJ invocations to module description.
32564         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
32565         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
32566         here...
32567         * modules/rpmatch (configure.ac): ... to here.
32569 2011-05-21  Bruno Haible  <bruno@clisp.org>
32571         rmdir: Respect rules for use of AC_LIBOBJ.
32572         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
32573         * modules/rmdir (configure.ac): ... to here.
32575 2011-05-21  Bruno Haible  <bruno@clisp.org>
32577         renameat: Move AC_LIBOBJ invocations to module description.
32578         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
32579         here...
32580         * modules/renameat (configure.ac): ... to here.
32582 2011-05-21  Bruno Haible  <bruno@clisp.org>
32584         rename: Respect rules for use of AC_LIBOBJ.
32585         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
32586         here...
32587         * modules/rename (configure.ac): ... to here.
32589 2011-05-21  Bruno Haible  <bruno@clisp.org>
32591         remove: Move AC_LIBOBJ invocations to module description.
32592         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
32593         here...
32594         * modules/remove (configure.ac): ... to here.
32596 2011-05-21  Bruno Haible  <bruno@clisp.org>
32598         relocatable-lib: Move AC_LIBOBJ invocations to module description.
32599         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
32600         macro.
32601         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
32602         * modules/relocatable-lib (configure.ac): ... to here.
32603         * modules/relocatable-prog-wrapper (configure.ac): Invoke
32604         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
32606 2011-05-21  Bruno Haible  <bruno@clisp.org>
32608         relocatable-prog: Move AC_LIBOBJ invocations to module description.
32609         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
32610         here...
32611         * modules/relocatable-prog (configure.ac): ... to here.
32613 2011-05-21  Bruno Haible  <bruno@clisp.org>
32615         regex: Move AC_LIBOBJ invocations to module description.
32616         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
32617         invocations from here...
32618         * modules/regex (configure.ac): ... to here.
32620 2011-05-21  Bruno Haible  <bruno@clisp.org>
32622         realloc-*: Move AC_LIBOBJ invocations to module description.
32623         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
32624         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
32625         AC_LIBOBJ invocations from here...
32626         * modules/realloc-gnu (configure.ac): ... to here.
32627         * modules/realloc-posix (configure.ac): ... and here.
32629 2011-05-21  Bruno Haible  <bruno@clisp.org>
32631         readutmp: Move AC_LIBOBJ invocations to module description.
32632         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
32633         * modules/readutmp (configure.ac): ... to here.
32635 2011-05-21  Bruno Haible  <bruno@clisp.org>
32637         readlinkat: Move AC_LIBOBJ invocations to module description.
32638         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
32639         here...
32640         * modules/readlinkat (configure.ac): ... to here.
32642 2011-05-21  Bruno Haible  <bruno@clisp.org>
32644         readlink: Move AC_LIBOBJ invocations to module description.
32645         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
32646         gl_PREREQ_READLINK invocations from here...
32647         * modules/readlink (configure.ac): ... to here.
32649 2011-05-21  Bruno Haible  <bruno@clisp.org>
32651         readline: Move AC_LIBOBJ invocations to module description.
32652         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
32653         gl_PREREQ_READLINE invocations from here...
32654         * modules/readline (configure.ac): ... to here.
32656 2011-05-21  Bruno Haible  <bruno@clisp.org>
32658         read: Move AC_LIBOBJ invocations to module description.
32659         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
32660         * modules/read (configure.ac): ... to here.
32662 2011-05-21  Bruno Haible  <bruno@clisp.org>
32664         rawmemchr: Move AC_LIBOBJ invocations to module description.
32665         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
32666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
32667         from here...
32668         * modules/rawmemchr (configure.ac): ... to here.
32670 2011-05-21  Bruno Haible  <bruno@clisp.org>
32672         random_r: Move AC_LIBOBJ invocations to module description.
32673         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
32674         gl_PREREQ_RANDOM_R invocations from here...
32675         * modules/random_r (configure.ac): ... to here.
32677 2011-05-21  Bruno Haible  <bruno@clisp.org>
32679         pwrite: Move AC_LIBOBJ invocations to module description.
32680         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
32681         * modules/pwrite (configure.ac): ... to here.
32683 2011-05-21  Bruno Haible  <bruno@clisp.org>
32685         putenv: Move AC_LIBOBJ invocations to module description.
32686         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
32687         * modules/putenv (configure.ac): ... to here.
32689 2011-05-21  Bruno Haible  <bruno@clisp.org>
32691         login_tty: Move AC_LIBOBJ invocations to module description.
32692         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
32693         * modules/login_tty (configure.ac): ... to here.
32695 2011-05-21  Bruno Haible  <bruno@clisp.org>
32697         openpty: Move AC_LIBOBJ invocations to module description.
32698         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
32699         * modules/openpty (configure.ac): ... to here.
32701 2011-05-21  Bruno Haible  <bruno@clisp.org>
32703         forkpty: Move AC_LIBOBJ invocations to module description.
32704         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
32705         * modules/forkpty (configure.ac): ... to here.
32707 2011-05-21  Bruno Haible  <bruno@clisp.org>
32709         ptsname: Move AC_LIBOBJ invocations to module description.
32710         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
32711         invocations from here...
32712         * modules/ptsname (configure.ac): ... to here.
32714 2011-05-21  Bruno Haible  <bruno@clisp.org>
32716         pread: Move AC_LIBOBJ invocations to module description.
32717         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
32718         * modules/pread (configure.ac): ... to here.
32720 2011-05-21  Bruno Haible  <bruno@clisp.org>
32722         posix_spawn*: Move AC_LIBOBJ invocations to module description.
32723         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
32724         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
32725         * modules/posix_spawn (configure.ac): ... to here.
32726         * modules/posix_spawnp (configure.ac): ... and here.
32728 2011-05-21  Bruno Haible  <bruno@clisp.org>
32730         popen: Move AC_LIBOBJ invocations to module description.
32731         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
32732         invocations from here...
32733         * modules/popen (configure.ac): ... to here.
32735 2011-05-21  Bruno Haible  <bruno@clisp.org>
32737         poll: Move AC_LIBOBJ invocations to module description.
32738         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
32739         invocations from here...
32740         * modules/poll (configure.ac): ... to here.
32742 2011-05-21  Bruno Haible  <bruno@clisp.org>
32744         pipe-posix: Move AC_LIBOBJ invocations to module description.
32745         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
32746         * modules/pipe-posix (configure.ac): ... to here.
32748 2011-05-21  Bruno Haible  <bruno@clisp.org>
32750         openat: Respect rules for use of AC_LIBOBJ.
32751         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
32752         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
32753         * modules/openat (configure.ac): ... to here.
32755 2011-05-21  Bruno Haible  <bruno@clisp.org>
32757         obstack-printf*: Move AC_LIBOBJ invocations to module description.
32758         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
32759         invocation from here...
32760         * modules/obstack-printf (configure.ac): ... to here.
32761         * modules/obstack-printf-posix (configure.ac): ... and here.
32763 2011-05-21  Bruno Haible  <bruno@clisp.org>
32765         nl_langinfo: Move AC_LIBOBJ invocations to module description.
32766         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
32767         from here...
32768         * modules/nl_langinfo (configure.ac): ... to here.
32770 2011-05-21  Bruno Haible  <bruno@clisp.org>
32772         nanosleep: Move AC_LIBOBJ invocations to module description.
32773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
32774         gl_PREREQ_NANOSLEEP invocations from here...
32775         * modules/nanosleep (configure.ac): ... to here.
32777 2011-05-21  Bruno Haible  <bruno@clisp.org>
32779         mountlist: Move AC_LIBOBJ invocations to module description.
32780         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
32781         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
32782         * modules/mountlist (configure.ac): ... to here.
32784 2011-05-21  Bruno Haible  <bruno@clisp.org>
32786         mktime: Respect rules for use of AC_LIBOBJ.
32787         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
32788         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
32789         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
32790         (gl_FUNC_MKTIME_INTERNAL): ... and here...
32791         * modules/mktime (configure.ac): ... to here.
32792         * modules/mktime-internal (configure.ac): ... and here.
32793         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
32795 2011-05-21  Bruno Haible  <bruno@clisp.org>
32797         mkstemps: Move AC_LIBOBJ invocations to module description.
32798         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
32799         here...
32800         * modules/mkstemps (configure.ac): ... to here.
32802 2011-05-21  Bruno Haible  <bruno@clisp.org>
32804         mkstemp: Move AC_LIBOBJ invocations to module description.
32805         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
32806         gl_PREREQ_MKSTEMP invocations from here...
32807         * modules/mkstemp (configure.ac): ... to here.
32809 2011-05-21  Bruno Haible  <bruno@clisp.org>
32811         mkostemps: Move AC_LIBOBJ invocations to module description.
32812         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
32813         here...
32814         * modules/mkostemps (configure.ac): ... to here.
32816 2011-05-21  Bruno Haible  <bruno@clisp.org>
32818         mkostemp: Move AC_LIBOBJ invocations to module description.
32819         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
32820         gl_PREREQ_MKOSTEMP invocations from here...
32821         * modules/mkostemp (configure.ac): ... to here.
32823 2011-05-21  Bruno Haible  <bruno@clisp.org>
32825         mknod: Move AC_LIBOBJ invocations to module description.
32826         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
32827         * modules/mknod (configure.ac): ... to here.
32829 2011-05-21  Bruno Haible  <bruno@clisp.org>
32831         mkfifoat: Move AC_LIBOBJ invocations to module description.
32832         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
32833         here...
32834         * modules/mkfifoat (configure.ac): ... to here.
32836 2011-05-21  Bruno Haible  <bruno@clisp.org>
32838         mkfifo: Respect rules for use of AC_LIBOBJ.
32839         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
32840         here...
32841         * modules/mkfifo (configure.ac): ... to here.
32843 2011-05-21  Bruno Haible  <bruno@clisp.org>
32845         mkdtemp: Move AC_LIBOBJ invocations to module description.
32846         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
32847         invocations from here...
32848         * modules/mkdtemp (configure.ac): ... to here.
32850 2011-05-21  Bruno Haible  <bruno@clisp.org>
32852         mkdir: Move AC_LIBOBJ invocations to module description.
32853         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
32854         * modules/mkdir (configure.ac): ... to here.
32856 2011-05-21  Bruno Haible  <bruno@clisp.org>
32858         memset: Move AC_LIBOBJ invocations to module description.
32859         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
32860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
32861         here...
32862         * modules/memset (configure.ac): ... to here.
32864 2011-05-21  Bruno Haible  <bruno@clisp.org>
32866         memrchr: Move AC_LIBOBJ invocations to module description.
32867         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
32868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
32869         here...
32870         * modules/memrchr (configure.ac): ... to here.
32872 2011-05-21  Bruno Haible  <bruno@clisp.org>
32874         mempcpy: Move AC_LIBOBJ invocations to module description.
32875         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
32876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
32877         here...
32878         * modules/mempcpy (configure.ac): ... to here.
32880 2011-05-21  Bruno Haible  <bruno@clisp.org>
32882         memmove: Move AC_LIBOBJ invocations to module description.
32883         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
32884         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
32885         here...
32886         * modules/memmove (configure.ac): ... to here.
32888 2011-05-21  Bruno Haible  <bruno@clisp.org>
32890         memmem*: Move AC_LIBOBJ invocations to module description.
32891         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
32892         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
32893         here...
32894         (gl_FUNC_MEMMEM): ... and here...
32895         * modules/memmem-simple (configure.ac): ... to here.
32896         * modules/memmem (configure.ac): ... and here.
32898 2011-05-21  Bruno Haible  <bruno@clisp.org>
32900         memcpy: Move AC_LIBOBJ invocations to module description.
32901         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
32902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
32903         here...
32904         * modules/memcpy (configure.ac): ... to here.
32906 2011-05-21  Bruno Haible  <bruno@clisp.org>
32908         memcmp: Simplify autoconf macro.
32909         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
32910         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
32911         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
32913 2011-05-21  Bruno Haible  <bruno@clisp.org>
32915         memcmp: Move AC_LIBOBJ invocations to module description.
32916         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
32917         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
32918         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
32919         * modules/memcmp (configure.ac): ... to here.
32920         (Depends-on): Update conditions.
32922 2011-05-21  Bruno Haible  <bruno@clisp.org>
32924         memchr: Respect rules for use of AC_LIBOBJ.
32925         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
32926         invocations from here...
32927         * modules/memchr (configure.ac): ... to here.
32929 2011-05-21  Bruno Haible  <bruno@clisp.org>
32931         mbtowc: Move AC_LIBOBJ invocations to module description.
32932         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
32933         invocations from here...
32934         * modules/mbtowc (configure.ac): ... to here.
32936 2011-05-21  Bruno Haible  <bruno@clisp.org>
32938         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
32939         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
32940         gl_PREREQ_MBSRTOWCS invocations from here...
32941         * modules/mbsrtowcs (configure.ac): ... to here.
32943 2011-05-21  Bruno Haible  <bruno@clisp.org>
32945         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
32946         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
32947         gl_PREREQ_MBSNRTOWCS invocations from here...
32948         * modules/mbsnrtowcs (configure.ac): ... to here.
32950 2011-05-21  Bruno Haible  <bruno@clisp.org>
32952         mbsinit: Move AC_LIBOBJ invocations to module description.
32953         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
32954         invocations from here...
32955         * modules/mbsinit (configure.ac): ... to here.
32957 2011-05-21  Bruno Haible  <bruno@clisp.org>
32959         mbrlen: Move AC_LIBOBJ invocations to module description.
32960         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
32961         invocations from here...
32962         * modules/mbrlen (configure.ac): ... to here.
32964 2011-05-21  Bruno Haible  <bruno@clisp.org>
32966         mbrtowc: Respect rules for use of AC_LIBOBJ.
32967         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
32968         invocations from here...
32969         * modules/mbrtowc (configure.ac): ... to here.
32971 2011-05-21  Bruno Haible  <bruno@clisp.org>
32973         malloc-*: Move AC_LIBOBJ invocations to module description.
32974         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
32975         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
32976         AC_LIBOBJ invocations from here...
32977         * modules/malloc-gnu (configure.ac): ... to here.
32978         * modules/malloc-posix (configure.ac): ... and here.
32980 2011-05-21  Bruno Haible  <bruno@clisp.org>
32982         lstat, openat: Respect rules for use of AC_LIBOBJ.
32983         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
32984         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
32985         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
32986         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
32987         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
32988         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
32989         here.
32990         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
32992 2011-05-21  Bruno Haible  <bruno@clisp.org>
32994         lseek: Move AC_LIBOBJ invocations to module description.
32995         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
32996         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
32997         * modules/lseek (configure.ac): ... to here.
32999 2011-05-21  Bruno Haible  <bruno@clisp.org>
33001         linkat: Move AC_LIBOBJ invocations to module description.
33002         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
33003         here...
33004         * modules/linkat (configure.ac): ... to here.
33006 2011-05-21  Bruno Haible  <bruno@clisp.org>
33008         link: Respect rules for use of AC_LIBOBJ.
33009         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
33010         * modules/link (configure.ac): ... to here.
33012 2011-05-21  Bruno Haible  <bruno@clisp.org>
33014         lchown: Move AC_LIBOBJ invocations to module description.
33015         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
33016         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
33017         * modules/lchown (configure.ac): ... to here.
33019 2011-05-21  Bruno Haible  <bruno@clisp.org>
33021         iswctype: Move AC_LIBOBJ invocations to module description.
33022         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
33023         here...
33024         * modules/iswctype (configure.ac): ... to here.
33026 2011-05-21  Bruno Haible  <bruno@clisp.org>
33028         iswblank: Move AC_LIBOBJ invocations to module description.
33029         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
33030         here...
33031         * modules/iswblank (configure.ac): ... to here.
33033 2011-05-21  Bruno Haible  <bruno@clisp.org>
33035         atanl: Move AC_LIBOBJ invocations to module description.
33036         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
33037         * modules/atanl (configure.ac): ... to here.
33039 2011-05-21  Bruno Haible  <bruno@clisp.org>
33041         acosl: Move AC_LIBOBJ invocations to module description.
33042         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
33043         * modules/acosl (configure.ac): ... to here.
33045 2011-05-21  Bruno Haible  <bruno@clisp.org>
33047         asinl: Respect rules for use of AC_LIBOBJ.
33048         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
33049         * modules/asinl (configure.ac): ... to here.
33051 2011-05-21  Bruno Haible  <bruno@clisp.org>
33053         tanl: Move AC_LIBOBJ invocations to module description.
33054         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
33055         * modules/tanl (configure.ac): ... to here.
33057 2011-05-21  Bruno Haible  <bruno@clisp.org>
33059         cosl: Move AC_LIBOBJ invocations to module description.
33060         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
33061         * modules/cosl (configure.ac): ... to here.
33063 2011-05-21  Bruno Haible  <bruno@clisp.org>
33065         sinl: Move AC_LIBOBJ invocations to module description.
33066         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
33067         * modules/sinl (configure.ac): ... to here.
33069 2011-05-21  Bruno Haible  <bruno@clisp.org>
33071         logl: Move AC_LIBOBJ invocations to module description.
33072         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
33073         * modules/logl (configure.ac): ... to here.
33075 2011-05-21  Bruno Haible  <bruno@clisp.org>
33077         expl: Move AC_LIBOBJ invocations to module description.
33078         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
33079         * modules/expl (configure.ac): ... to here.
33081 2011-05-21  Bruno Haible  <bruno@clisp.org>
33083         roundl: Move AC_LIBOBJ invocations to module description.
33084         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
33085         * modules/roundl (configure.ac): ... to here.
33087 2011-05-21  Bruno Haible  <bruno@clisp.org>
33089         round: Move AC_LIBOBJ invocations to module description.
33090         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
33091         * modules/round (configure.ac): ... to here.
33093 2011-05-21  Bruno Haible  <bruno@clisp.org>
33095         roundf: Move AC_LIBOBJ invocations to module description.
33096         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
33097         * modules/roundf (configure.ac): ... to here.
33099 2011-05-21  Bruno Haible  <bruno@clisp.org>
33101         truncl: Move AC_LIBOBJ invocations to module description.
33102         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
33103         * modules/truncl (configure.ac): ... to here.
33105 2011-05-21  Bruno Haible  <bruno@clisp.org>
33107         trunc: Move AC_LIBOBJ invocations to module description.
33108         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
33109         * modules/trunc (configure.ac): ... to here.
33111 2011-05-21  Bruno Haible  <bruno@clisp.org>
33113         truncf: Move AC_LIBOBJ invocations to module description.
33114         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
33115         * modules/truncf (configure.ac): ... to here.
33117 2011-05-21  Bruno Haible  <bruno@clisp.org>
33119         ceill: Move AC_LIBOBJ invocations to module description.
33120         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
33121         * modules/ceill (configure.ac): ... to here.
33123 2011-05-21  Bruno Haible  <bruno@clisp.org>
33125         ceil: Move AC_LIBOBJ invocations to module description.
33126         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
33127         * modules/ceil (configure.ac): ... to here.
33129 2011-05-21  Bruno Haible  <bruno@clisp.org>
33131         ceilf: Move AC_LIBOBJ invocations to module description.
33132         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
33133         * modules/ceilf (configure.ac): ... to here.
33135 2011-05-21  Bruno Haible  <bruno@clisp.org>
33137         floorl: Respect rules for use of AC_LIBOBJ.
33138         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
33139         * modules/floorl (configure.ac): ... to here.
33141 2011-05-21  Bruno Haible  <bruno@clisp.org>
33143         floor: Respect rules for use of AC_LIBOBJ.
33144         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
33145         * modules/floor (configure.ac): ... to here.
33147 2011-05-21  Bruno Haible  <bruno@clisp.org>
33149         floorf: Move AC_LIBOBJ invocations to module description.
33150         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
33151         * modules/floorf (configure.ac): ... to here.
33153 2011-05-20  Bruno Haible  <bruno@clisp.org>
33155         sqrtl: Respect rules for use of AC_LIBOBJ.
33156         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
33157         * modules/sqrtl (configure.ac): ... to here.
33159 2011-05-20  Bruno Haible  <bruno@clisp.org>
33161         ldexpl: Respect rules for use of AC_LIBOBJ.
33162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
33163         * modules/ldexpl (configure.ac): ... to here.
33165 2011-05-20  Bruno Haible  <bruno@clisp.org>
33167         frexpl*: Respect rules for use of AC_LIBOBJ.
33168         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
33169         invocation from here...
33170         * modules/frexpl (configure.ac): ... to here.
33171         * modules/frexpl-nolibm (configure.ac): ... and here.
33173 2011-05-20  Bruno Haible  <bruno@clisp.org>
33175         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
33176         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
33177         invocation from here...
33178         * modules/frexp (configure.ac): ... to here.
33179         * modules/frexp-nolibm (configure.ac): ... and here.
33181 2011-05-20  Bruno Haible  <bruno@clisp.org>
33183         isnan: Respect rules for use of AC_LIBOBJ.
33184         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
33185         invocations here.
33186         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
33187         REPLACE_ISNAN.
33188         * modules/isnand (configure.ac): Likewise.
33189         * modules/isnanl (configure.ac): Likewise.
33191 2011-05-20  Bruno Haible  <bruno@clisp.org>
33193         isnanl*: Respect rules for use of AC_LIBOBJ.
33194         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
33195         invocation from here...
33196         * modules/isnanl (configure.ac): ... to here.
33197         * modules/isnanl-nolibm (configure.ac): ... and here.
33199 2011-05-20  Bruno Haible  <bruno@clisp.org>
33201         isnand*: Move AC_LIBOBJ invocations to module description.
33202         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
33203         invocation from here...
33204         * modules/isnand (configure.ac): ... to here.
33205         * modules/isnand-nolibm (configure.ac): ... and here.
33207 2011-05-20  Bruno Haible  <bruno@clisp.org>
33209         isnanf*: Move AC_LIBOBJ invocations to module description.
33210         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
33211         invocation from here...
33212         * modules/isnanf (configure.ac): ... to here.
33213         * modules/isnanf-nolibm (configure.ac): ... and here.
33215 2011-05-20  Bruno Haible  <bruno@clisp.org>
33217         isnan*: Separate the AC_LIBOBJ invocations.
33218         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
33219         AC_LIBOBJ invocation.
33220         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
33221         here.
33222         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
33223         AC_LIBOBJ invocation.
33224         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
33225         here.
33226         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
33227         AC_LIBOBJ invocation.
33228         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
33229         here.
33230         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
33232 2011-05-08  Bruno Haible  <bruno@clisp.org>
33234         isinf: Move AC_LIBOBJ invocations to module description.
33235         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
33236         * modules/isinf (configure.ac): ... to here.
33238 2011-05-08  Bruno Haible  <bruno@clisp.org>
33240         isfinite: Move AC_LIBOBJ invocations to module description.
33241         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
33242         * modules/isfinite (configure.ac): ... to here.
33244 2011-05-08  Bruno Haible  <bruno@clisp.org>
33246         isblank: Move AC_LIBOBJ invocations to module description.
33247         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
33248         here...
33249         * modules/isblank (configure.ac): ... to here.
33251 2011-05-08  Bruno Haible  <bruno@clisp.org>
33253         isapipe: Move AC_LIBOBJ invocations to module description.
33254         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
33255         gl_PREREQ_ISAPIPE invocations from here...
33256         * modules/isapipe (configure.ac): ... to here.
33257         (Depends-on): Update condition.
33259 2011-05-08  Bruno Haible  <bruno@clisp.org>
33261         ioctl: Move AC_LIBOBJ invocations to module description.
33262         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
33263         invocations from here...
33264         * modules/ioctl (configure.ac): ... to here.
33265         (Depends-on): Update condition.
33267 2011-05-08  Bruno Haible  <bruno@clisp.org>
33269         imaxdiv: Move AC_LIBOBJ invocations to module description.
33270         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
33271         invocations from here...
33272         * modules/imaxdiv (configure.ac): ... to here.
33274 2011-05-08  Bruno Haible  <bruno@clisp.org>
33276         imaxabs: Move AC_LIBOBJ invocations to module description.
33277         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
33278         invocations from here...
33279         * modules/imaxabs (configure.ac): ... to here.
33281 2011-05-08  Bruno Haible  <bruno@clisp.org>
33283         getaddrinfo: Move AC_LIBOBJ invocations to module description.
33284         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
33285         AC_LIBOBJ invocations from here...
33286         * modules/getaddrinfo (configure.ac): ... to here.
33287         (Depends-on): Add conditions.
33289 2011-05-08  Bruno Haible  <bruno@clisp.org>
33291         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33292         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
33293         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33294         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
33295         (gl_PREREQ_INET_PTON): ... from here.
33296         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
33297         gl_PREREQ_INET_PTON here.
33298         (Depends-on): Update condition.
33300 2011-05-08  Bruno Haible  <bruno@clisp.org>
33302         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33303         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
33304         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33305         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
33306         (gl_PREREQ_INET_NTOP): ... from here.
33307         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
33308         gl_PREREQ_INET_NTOP here.
33309         (Depends-on): Update condition.
33311 2011-05-08  Bruno Haible  <bruno@clisp.org>
33313         iconv_open: Move AC_LIBOBJ invocations to module description.
33314         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
33315         AC_LIBOBJ invocations from here...
33316         * modules/iconv_open (configure.ac): ... to here.
33318 2011-05-08  Bruno Haible  <bruno@clisp.org>
33320         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
33321         If module 'iconv_open' is among the main modules and module
33322         'iconv_open-utf' is among the tests dependencies, then
33323         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
33324         return the special iconv_t values. Therefore iconv() and iconv_close()
33325         must support these special iconv_t values, already in lib, not only in
33326         tests.
33327         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
33328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
33329         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
33330         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
33331         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
33332         (Depends-on): Add the dependencies of iconv_open-utf.
33333         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
33334         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
33335         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
33337 2011-05-08  Bruno Haible  <bruno@clisp.org>
33339         group-member: Move AC_LIBOBJ invocations to module description.
33340         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
33341         gl_PREREQ_GROUP_MEMBER invocations from here...
33342         * modules/group-member (configure.ac): ... to here.
33344 2011-05-08  Bruno Haible  <bruno@clisp.org>
33346         grantpt: Move AC_LIBOBJ invocations to module description.
33347         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
33348         invocations from here...
33349         * modules/grantpt (configure.ac): ... to here.
33351 2011-05-08  Bruno Haible  <bruno@clisp.org>
33353         glob: Move AC_LIBOBJ invocations to module description.
33354         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
33355         from here...
33356         * modules/glob (configure.ac): ... to here.
33358 2011-05-08  Bruno Haible  <bruno@clisp.org>
33360         getusershell: Move AC_LIBOBJ invocations to module description.
33361         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
33362         Move AC_LIBOBJ invocation from here...
33363         * modules/getusershell (configure.ac): ... to here.
33364         (Depends-on): Update condition.
33366 2011-05-08  Bruno Haible  <bruno@clisp.org>
33368         gettimeofday: Move AC_LIBOBJ invocations to module description.
33369         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33370         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
33371         gl_PREREQ_GETTIMEOFDAY invocations from here...
33372         * modules/gettimeofday (configure.ac): ... to here.
33374 2011-05-08  Bruno Haible  <bruno@clisp.org>
33376         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
33377         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
33378         just gl_FUNC_TZSET.
33379         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
33380         (gl_FUNC_TZSET_CLOBBER): Remove actions.
33381         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
33382         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
33384 2011-05-08  Bruno Haible  <bruno@clisp.org>
33386         getsubopt: Move AC_LIBOBJ invocations to module description.
33387         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
33388         gl_PREREQ_GETSUBOPT invocations from here...
33389         * modules/getsubopt (configure.ac): ... to here.
33391 2011-05-08  Bruno Haible  <bruno@clisp.org>
33393         getpass-gnu: Move AC_LIBOBJ invocations to module description.
33394         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
33395         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
33396         * modules/getpass-gnu (configure.ac): ... to here.
33398 2011-05-08  Bruno Haible  <bruno@clisp.org>
33400         getpass: Move AC_LIBOBJ invocations to module description.
33401         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
33402         gl_PREREQ_GETPASS invocations from here...
33403         * modules/getpass (configure.ac): ... to here.
33405 2011-05-08  Bruno Haible  <bruno@clisp.org>
33407         getpagesize: Move AC_LIBOBJ invocations to module description.
33408         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
33409         from here...
33410         * modules/getpagesize (configure.ac): ... to here.
33412 2011-05-08  Bruno Haible  <bruno@clisp.org>
33414         getopt: Move AC_LIBOBJ invocations to module description.
33415         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
33416         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
33417         invocations from here...
33418         * modules/getopt-gnu (configure.ac): ... to here.
33419         * modules/getopt-posix (configure.ac): ... and here.
33420         (Depends-on): Update condition.
33422 2011-05-08  Bruno Haible  <bruno@clisp.org>
33424         getopt, argp: Respect rules for use of AC_LIBOBJ.
33425         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
33426         (gl_REPLACE_GETOPT_ALWAYS): New macro.
33427         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
33428         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
33430 2011-05-08  Bruno Haible  <bruno@clisp.org>
33432         getlogin_r: Move AC_LIBOBJ invocations to module description.
33433         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
33434         gl_PREREQ_GETLOGIN_R invocations from here...
33435         * modules/getlogin_r (configure.ac): ... to here.
33437 2011-05-08  Bruno Haible  <bruno@clisp.org>
33439         getlogin: Move AC_LIBOBJ invocations to module description.
33440         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
33441         here...
33442         * modules/getlogin (configure.ac): ... to here.
33444 2011-05-08  Bruno Haible  <bruno@clisp.org>
33446         getloadavg: Move AC_LIBOBJ invocations to module description.
33447         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
33448         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
33449         * modules/getloadavg (configure.ac): ... to here.
33451 2011-05-08  Bruno Haible  <bruno@clisp.org>
33453         gethrxtime: Move AC_LIBOBJ invocations to module description.
33454         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
33455         LIB_GETHRXTIME from here...
33456         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
33457         invocations from here...
33458         * modules/gethrxtime (configure.ac): ... to here.
33460 2011-05-08  Bruno Haible  <bruno@clisp.org>
33462         gethostname: Move AC_LIBOBJ invocations to module description.
33463         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
33464         gl_PREREQ_GETHOSTNAME invocations from here...
33465         * modules/gethostname (configure.ac): ... to here.
33467 2011-05-08  Bruno Haible  <bruno@clisp.org>
33469         getgroups: Move AC_LIBOBJ invocations to module description.
33470         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
33471         here...
33472         * modules/getgroups (configure.ac): ... to here.
33474 2011-05-08  Bruno Haible  <bruno@clisp.org>
33476         getdtablesize: Move AC_LIBOBJ invocations to module description.
33477         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
33478         invocation from here...
33479         * modules/getdtablesize (configure.ac): ... to here.
33481 2011-05-08  Bruno Haible  <bruno@clisp.org>
33483         getdomainname: Move AC_LIBOBJ invocations to module description.
33484         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
33485         gl_PREREQ_GETDOMAINNAME invocations from here...
33486         * modules/getdomainname (configure.ac): ... to here.
33488 2011-05-08  Bruno Haible  <bruno@clisp.org>
33490         getline: Move AC_LIBOBJ invocations to module description.
33491         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
33492         invocations from here...
33493         * modules/getline (configure.ac): ... to here.
33495 2011-05-08  Bruno Haible  <bruno@clisp.org>
33497         getline: Simplify.
33498         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
33499         It's already handled through the module dependency.
33501 2011-05-08  Bruno Haible  <bruno@clisp.org>
33503         getdelim: Move AC_LIBOBJ invocations to module description.
33504         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
33505         and gl_PREREQ_GETDELIM invocations from here...
33506         * modules/getdelim (configure.ac): ... to here.
33507         (Depends-on): Fix condition.
33509 2011-05-08  Bruno Haible  <bruno@clisp.org>
33511         getcwd: Move AC_LIBOBJ invocations to module description.
33512         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
33513         invocations from here...
33514         * modules/getcwd (configure.ac): ... to here.
33516 2011-05-08  Bruno Haible  <bruno@clisp.org>
33518         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
33519         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
33520         here...
33521         * modules/getcwd-lgpl (configure.ac): ... to here.
33523 2011-05-07  Bruno Haible  <bruno@clisp.org>
33525         crypto/gc: Move AC_LIBOBJ invocations to module description.
33526         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
33527         * modules/crypto/gc (configure.ac): ... to here.
33529 2011-05-07  Bruno Haible  <bruno@clisp.org>
33531         fwriting: Move AC_LIBOBJ invocations to module description.
33532         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
33533         here...
33534         * modules/fwriting (configure.ac): ... to here.
33536 2011-05-07  Bruno Haible  <bruno@clisp.org>
33538         fwritable: Move AC_LIBOBJ invocations to module description.
33539         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
33540         here...
33541         * modules/fwritable (configure.ac): ... to here.
33543 2011-05-07  Bruno Haible  <bruno@clisp.org>
33545         futimens: Move AC_LIBOBJ invocations to module description.
33546         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
33547         here...
33548         * modules/futimens (configure.ac): ... to here.
33550 2011-05-07  Bruno Haible  <bruno@clisp.org>
33552         ftruncate: Move AC_LIBOBJ invocations to module description.
33553         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
33554         gl_PREREQ_FTRUNCATE invocations from here...
33555         * modules/ftruncate (configure.ac): ... to here.
33557 2011-05-07  Bruno Haible  <bruno@clisp.org>
33559         fsync: Move AC_LIBOBJ invocations to module description.
33560         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
33561         invocations from here...
33562         * modules/fsync (configure.ac): ... to here.
33564 2011-05-07  Bruno Haible  <bruno@clisp.org>
33566         fsusage: Move AC_LIBOBJ invocations to module description.
33567         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
33568         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
33569         * modules/fsusage (configure.ac): ... to here.
33571 2011-05-07  Bruno Haible  <bruno@clisp.org>
33573         freopen: Move AC_LIBOBJ invocations to module description.
33574         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
33575         invocations from here...
33576         * modules/freopen (configure.ac): ... to here.
33578 2011-05-07  Bruno Haible  <bruno@clisp.org>
33580         free: Move AC_LIBOBJ invocations to module description.
33581         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
33582         invocations from here...
33583         * modules/free (configure.ac): ... to here.
33585 2011-05-07  Bruno Haible  <bruno@clisp.org>
33587         freadable: Move AC_LIBOBJ invocations to module description.
33588         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
33589         here...
33590         * modules/freadable (configure.ac): ... to here.
33592 2011-05-07  Bruno Haible  <bruno@clisp.org>
33594         fpurge: Move AC_LIBOBJ invocations to module description.
33595         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
33596         invocations from here...
33597         * modules/fpurge (configure.ac): ... to here.
33599 2011-05-07  Bruno Haible  <bruno@clisp.org>
33601         fpending: Move AC_LIBOBJ invocations to module description.
33602         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
33603         gl_FUNC_FPENDING.
33604         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
33605         invocations from here...
33606         * modules/fpending (configure.ac): ... to here.
33608 2011-05-07  Bruno Haible  <bruno@clisp.org>
33610         fopen: Move AC_LIBOBJ invocations to module description.
33611         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
33612         invocations from here...
33613         * modules/fopen (configure.ac): ... to here.
33615 2011-05-07  Bruno Haible  <bruno@clisp.org>
33617         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
33618         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
33619         gl_FUNC_FNMATCH_POSIX.
33620         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
33621         invocations from here...
33622         * modules/fnmatch (configure.ac): ... to here.
33623         * modules/fnmatch-gnu (configure.ac): ... and here.
33625 2011-05-07  Bruno Haible  <bruno@clisp.org>
33627         flock: Move AC_LIBOBJ invocations to module description.
33628         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
33629         invocations from here...
33630         * modules/flock (configure.ac): ... to here.
33632 2011-05-07  Bruno Haible  <bruno@clisp.org>
33634         fileblocks: Move AC_LIBOBJ invocations to module description.
33635         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
33636         gl_PREREQ_FILEBLOCKS invocations from here...
33637         * modules/fileblocks (configure.ac): ... to here.
33639 2011-05-06  Bruno Haible  <bruno@clisp.org>
33641         fflush: Move AC_LIBOBJ invocations to module description.
33642         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
33643         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
33644         invocations from here...
33645         * modules/fflush (configure.ac): ... to here.
33647 2011-05-06  Bruno Haible  <bruno@clisp.org>
33649         fdopendir: Move AC_LIBOBJ invocations to module description.
33650         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
33651         here...
33652         * modules/fdopendir (configure.ac): ... to here.
33653         (Depends-on): Improve conditions.
33655 2011-05-06  Bruno Haible  <bruno@clisp.org>
33657         _Exit: Move AC_LIBOBJ invocations to module description.
33658         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
33659         invocations from here...
33660         * modules/_Exit (configure.ac): ... to here.
33662 2011-05-21  Bruno Haible  <bruno@clisp.org>
33664         euidaccess: Respect rules for use of AC_LIBOBJ.
33665         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
33666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
33667         from here...
33668         * modules/euidaccess (configure.ac): ... to here.
33670 2011-05-06  Bruno Haible  <bruno@clisp.org>
33672         error: Move AC_LIBOBJ invocations to module description.
33673         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
33674         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
33675         invocations from here...
33676         * modules/error (configure.ac): ... to here.
33678 2011-05-06  Bruno Haible  <bruno@clisp.org>
33680         duplocale: Move AC_LIBOBJ invocations to module description.
33681         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
33682         gl_PREREQ_DUPLOCALE invocations from here...
33683         * modules/duplocale (configure.ac): ... to here.
33685 2011-05-05  Bruno Haible  <bruno@clisp.org>
33687         dirfd: Move AC_LIBOBJ invocations to module description.
33688         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
33689         gl_FUNC_DIRFD.
33690         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
33691         here...
33692         * modules/dirfd (configure.ac): ... to here.
33693         (Depends-on): Fix condition.
33695 2011-05-05  Bruno Haible  <bruno@clisp.org>
33697         chown: Respect rules for use of AC_LIBOBJ.
33698         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
33699         * modules/chown (configure.ac): ... to here.
33701 2011-05-05  Bruno Haible  <bruno@clisp.org>
33703         chdir-long: Move AC_LIBOBJ invocations to module description.
33704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
33705         gl_PREREQ_CHDIR_LONG invocations from here...
33706         * modules/chdir-long (configure.ac): ... to here.
33708 2011-05-05  Bruno Haible  <bruno@clisp.org>
33710         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
33711         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
33712         from here...
33713         * modules/canonicalize-lgpl (configure.ac): ... to here.
33715 2011-05-05  Bruno Haible  <bruno@clisp.org>
33717         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
33718         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
33719         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
33720         REPLACE_CALLOC.
33721         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
33722         * modules/calloc-gnu (configure.ac): Likewise.
33724 2011-05-05  Bruno Haible  <bruno@clisp.org>
33726         btowc: Move AC_LIBOBJ invocations to module description.
33727         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
33728         invocations from here...
33729         * modules/btowc (configure.ac): ... to here.
33731 2011-05-21  Bruno Haible  <bruno@clisp.org>
33733         atexit: Move AC_LIBOBJ invocations to module description.
33734         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
33735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
33736         here...
33737         * modules/atexit (configure.ac): ... to here.
33739 2011-05-05  Bruno Haible  <bruno@clisp.org>
33741         atoll: Move AC_LIBOBJ invocations to module description.
33742         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
33743         invocations from here...
33744         * modules/atoll (configure.ac): ... to here.
33746 2011-05-05  Bruno Haible  <bruno@clisp.org>
33748         argz: Move AC_LIBOBJ invocations to module description.
33749         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
33750         * modules/argz (configure.ac): ... to here.
33752 2011-05-05  Bruno Haible  <bruno@clisp.org>
33754         alphasort: Move AC_LIBOBJ invocations to module description.
33755         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
33756         gl_PREREQ_ALPHASORT invocations from here...
33757         * modules/alphasort (configure.ac): ... to here.
33759 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33761         verify: new macro verify_expr; verify_true deprecated
33762         * NEWS: Mention this.
33763         * doc/verify.texi (Compile-time Assertions): Document this.
33764         * lib/verify.h (verify_true): Deprecate.
33765         (verify_expr): New macro.
33766         * tests/test-verify.c (function): Test verify_expr.
33768 2011-06-14  Jim Meyering  <meyering@redhat.com>
33770         init.sh: give more portable redirection-related advice in a comment
33771         * tests/init.sh (stderr_fileno_): Update the advice in comments.
33772         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
33773         for lots of discussion.  Stefano Lattarini suggested the solution
33774         of putting "9>&2" after the command.  Reported by Bruno Haible.
33776 2011-06-13  Bruno Haible  <bruno@clisp.org>
33778         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
33779         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
33780         'none'.
33782 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33784         ftoastr: use strtof only if HAVE_STRTOF
33785         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
33786         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
33787         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
33788         * modules/ftoastr (configure.ac): Check for strtof.
33790 2011-06-13  Bruno Haible  <bruno@clisp.org>
33792         gnulib-tool: Addendum to 2011-06-08 commit.
33793         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
33794         and --witness-c-macro have been given, augment AM_CPPFLAGS.
33796 2011-06-13  Bruno Haible  <bruno@clisp.org>
33798         fseeko: Provide a non-inline replacement of fseek().
33799         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
33800         * modules/fseeko (Depends-on): Add fseek.
33801         * modules/fseek (License): Change to LGPLv2+.
33803 2011-06-13  Bruno Haible  <bruno@clisp.org>
33805         ftello: Provide a non-inline replacement of ftell().
33806         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
33807         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
33808         not have ftello() (such as on mingw).
33809         * modules/ftello (Depends-on): Add ftell.
33810         * modules/ftell (License): Change to LGPLv2+.
33812 2011-05-07  Bruno Haible  <bruno@clisp.org>
33814         ftell: Move AC_LIBOBJ invocations to module description.
33815         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
33816         * modules/ftell (configure.ac): ... to here.
33818 2011-05-07  Bruno Haible  <bruno@clisp.org>
33820         ftello: Respect rules for use of AC_LIBOBJ.
33821         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
33822         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
33823         here...
33824         * modules/ftello (configure.ac): ... to here.
33826 2011-05-07  Bruno Haible  <bruno@clisp.org>
33828         fseeko: Simplify.
33829         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
33830         (gl_FUNC_FSEEKO): Inline it here.
33832 2011-05-07  Bruno Haible  <bruno@clisp.org>
33834         fseek: Move AC_LIBOBJ invocations to module description.
33835         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
33836         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
33837         * modules/fseek (configure.ac): ... to here.
33839 2011-05-07  Bruno Haible  <bruno@clisp.org>
33841         fseek: Respect rules for use of AC_LIBOBJ.
33842         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
33843         here...
33844         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
33846 2011-05-07  Bruno Haible  <bruno@clisp.org>
33848         fseeko: Respect rules for use of AC_LIBOBJ.
33849         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
33850         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
33851         here...
33852         * modules/fseeko (configure.ac): ... to here.
33854 2011-06-13  Bruno Haible  <bruno@clisp.org>
33856         gnulib-tool: Allow comments in the 'Depends-on' section.
33857         * doc/gnulib.texi (Module description): Mention comment syntax in the
33858         Depends-on section.
33859         * gnulib-tool (func_get_dependencies): Filter out comment lines.
33861 2011-06-13  Bruno Haible  <bruno@clisp.org>
33863         file-set.h: guard __attibute__ use, now that it's not always defined
33864         * lib/file-set.h (record_file): Use __attribute__ only with compiler
33865         versions that support it.  This fixes a coreutils build failure with
33866         the vendor cc on HP-UX 11.31.
33868 2011-06-12  Bruno Haible  <bruno@clisp.org>
33870         acl: Add support for HP-UX >= 11.11 JFS ACLs.
33871         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
33872         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
33873         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
33874         (acl, aclsort): New declarations.
33875         (aclv_nontrivial): New declaration.
33876         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
33877         (file_has_acl): Read also the second kind of HP-UX ACLs.
33878         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
33879         kind of HP-UX ACLs if the first kind fails.
33880         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
33881         second kind of HP-UX ACLs.
33882         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
33883         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
33884         agree.
33885         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
33886         hpuxjfs.
33887         Handle hpuxjfs.
33888         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
33889         hpuxjfs.
33890         Handle hpuxjfs.
33891         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
33892         (func_test_same_acls): Use both lsacl and getacl.
33893         Handle hpuxjfs.
33894         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
33895         (func_test_same_acls): Use both lsacl and getacl.
33896         Handle hpuxjfs.
33898 2011-06-12  Bruno Haible  <bruno@clisp.org>
33900         acl: Complete the 2010-08-10 fix.
33901         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
33902         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
33903         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
33904         explicitly.
33905         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
33906         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
33908 2011-06-12  Bruno Haible  <bruno@clisp.org>
33910         spawn-pipe tests: Comments.
33911         * tests/test-spawn-pipe-child.c (main): Update comment.
33912         Reported by James Youngman <jay@gnu.org>.
33914 2011-06-11  James Youngman  <jay@gnu.org>
33916         New module 'stat-size'.
33917         * modules/stat-size: New module.  Provides macros for accessing
33918         file size information in instances of struct stat.  Depends on the
33919         fileblocks module because it calls st_blocks.
33920         * lib/stat-size.h: New file, adapted from coreutils' system.h.
33921         * doc/gnulib.texi: Include stat-size.texi.
33922         * doc/stat-size.texi: Documentation for this module.
33923         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
33924         * m4/fileblocks.m4: Mention that stat-size depends on the call to
33925         AC_STRUCT_ST_BLOCKS.
33927 2011-06-09  Bruno Haible  <bruno@clisp.org>
33929         thread: Support pthreads-win32.
33930         * lib/glthread/thread.h (gl_thread_self): Define differently on
33931         pthreads-win32.
33932         (gl_null_thread): New declaration.
33933         (gl_thread_self_pointer): New macro.
33934         * lib/glthread/thread.c (gl_null_thread): New constant.
33935         * tests/test-lock.c: Use gl_thread_self_pointer instead of
33936         gl_thread_self.
33937         * tests/test-tls.c: Likewise.
33938         Suggested by Paul Eggert. Reported by Eric Blake.
33940 2011-06-09  Bruno Haible  <bruno@clisp.org>
33942         thread: Fix confusion between NULL and 0.
33943         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
33944         Reported by Paul Eggert.
33946 2011-06-09  Bruno Haible  <bruno@clisp.org>
33948         spawn-pipe tests: Avoid test failure on HP-UX 11.
33949         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
33950         is closed.
33952 2011-06-09  Bruno Haible  <bruno@clisp.org>
33954         acl tests: Fix compilation error on HP-UX 11.
33955         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
33957 2011-06-09  Bruno Haible  <bruno@clisp.org>
33959         rmdir: Avoid test failure on HP-UX 10.20.
33960         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
33961         EEXIST.
33963 2011-06-08  Eric Blake  <eblake@redhat.com>
33965         perror: fix test on mingw
33966         * modules/perror-tests (Depends-on): Add dup2.
33968         strerror_r-posix: fix on MacOS
33969         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
33970         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
33971         logic bug.
33972         * lib/strerror_r.c (strerror_r): Fix the bug.
33973         * lib/strerror.c (strerror): Likewise.
33974         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
33975         problem.
33976         * doc/posix-functions/strerror.texi (strerror): Likewise.
33977         * doc/posix-functions/perror.texi (perror): Likewise.
33978         * tests/test-strerror.c (main): Enhance test.
33979         * tests/test-strerror_r.c (main): Likewise.
33981 2011-06-08  Bruno Haible  <bruno@clisp.org>
33983         gnulib-tool: Better isolation between different gnulib-tool invocations.
33984         * gnulib-tool: New option --witness-c-macro.
33985         (witness_c_macro): New variable.
33986         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
33987         AM_CPPFLAGS define it as a C macro.
33988         (func_emit_tests_Makefile_am): Likewise.
33989         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
33990         read it from there.
33991         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
33992         m4_define, not AC_DEFUN.
33993         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
33994         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
33995         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
33996         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
33997         s|...|...|, to substitute the values of the GNULIB_* module indicator
33998         variables.
33999         * modules/dirent (Makefile.am): Likewise.
34000         * modules/fcntl-h (Makefile.am): Likewise.
34001         * modules/iconv-h (Makefile.am): Likewise.
34002         * modules/langinfo (Makefile.am): Likewise.
34003         * modules/locale (Makefile.am): Likewise.
34004         * modules/math (Makefile.am): Likewise.
34005         * modules/netdb (Makefile.am): Likewise.
34006         * modules/poll-h (Makefile.am): Likewise.
34007         * modules/pty (Makefile.am): Likewise.
34008         * modules/search (Makefile.am): Likewise.
34009         * modules/signal (Makefile.am): Likewise.
34010         * modules/spawn (Makefile.am): Likewise.
34011         * modules/stdio (Makefile.am): Likewise.
34012         * modules/stdlib (Makefile.am): Likewise.
34013         * modules/string (Makefile.am): Likewise.
34014         * modules/sys_ioctl (Makefile.am): Likewise.
34015         * modules/sys_select (Makefile.am): Likewise.
34016         * modules/sys_socket (Makefile.am): Likewise.
34017         * modules/sys_stat (Makefile.am): Likewise.
34018         * modules/sys_times (Makefile.am): Likewise.
34019         * modules/sys_utsname (Makefile.am): Likewise.
34020         * modules/sys_wait (Makefile.am): Likewise.
34021         * modules/termios (Makefile.am): Likewise.
34022         * modules/time (Makefile.am): Likewise.
34023         * modules/unistd (Makefile.am): Likewise.
34024         * modules/wchar (Makefile.am): Likewise.
34026 2011-06-08  Eric Blake  <eblake@redhat.com>
34028         strerror: simplify replacement
34029         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
34030         * modules/strerror (configure.ac): No prereqs needed here...
34031         * modules/strerror-override (configure.ac): ...but this needs it.
34032         (Files): Add file for needed prereq macro.
34034 2011-06-08  Bruno Haible  <bruno@clisp.org>
34036         strerror_r-posix: Tweaks.
34037         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
34038         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
34039         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
34040         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
34041         (gl_FUNC_STRERROR_R): ... to here.
34042         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
34044 2011-06-07  Eric Blake  <eblake@redhat.com>
34046         perror: document fixed bugs
34047         * doc/posix-functions/perror.texi (perror): Document recent
34048         patches.
34050 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
34052         stat-time: get_stat_birthtime failure is better-defined
34053         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
34054         return a timestamp whose tv_sec and tv_nsec values are both -1.
34055         Previously, the spec said only that the tv_nsec value was negative.
34056         This upward-compatible change simplifies GNU tar a bit.
34058 2011-06-07  Eric Blake  <eblake@redhat.com>
34060         strerror_r-posix: work around cygwin 1.7.9
34061         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
34062         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
34063         bug without replacing strerror_r.
34064         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
34065         strerror_r is buggy, but without requiring strerror_r compilation.
34066         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
34068         test-perror: relax test to ignore cygwin bug
34069         * tests/test-perror2.c (main): Relax test on requiring detection
34070         of stream errors, and use unbuffered stream.
34071         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
34072         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
34073         * doc/posix-functions/fputc.texi (fputc): Likewise.
34074         * doc/posix-functions/fputs.texi (fputs): Likewise.
34075         * doc/posix-functions/fputws.texi (fputws): Likewise.
34076         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
34077         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
34078         * doc/posix-functions/getopt.texi (getopt): Likewise.
34079         * doc/posix-functions/perror.texi (perror): Likewise.
34080         * doc/posix-functions/printf.texi (printf): Likewise.
34081         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
34082         * doc/posix-functions/psignal.texi (psignal): Likewise.
34083         * doc/posix-functions/putc.texi (putc): Likewise.
34084         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
34085         Likewise.
34086         * doc/posix-functions/putchar.texi (putchar): Likewise.
34087         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
34088         Likewise.
34089         * doc/posix-functions/puts.texi (puts): Likewise.
34090         * doc/posix-functions/putwc.texi (putwc): Likewise.
34091         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34092         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34093         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34094         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
34095         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34096         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34097         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34098         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
34100 2011-05-22  Bruno Haible  <bruno@clisp.org>
34102         strerror: Move AC_LIBOBJ invocations to module description.
34103         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
34104         gl_PREREQ_STRERROR invocations from here...
34105         * modules/strerror (configure.ac): ... to here.
34107 2011-05-21  Bruno Haible  <bruno@clisp.org>
34109         perror: Use common idiom.
34110         * modules/perror (configure.ac): Reorder statements.
34112 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
34114         tests: fix usage message in 'mktempd_'
34115         * tests/init.sh (mktempd_): In the usage message, use literal
34116         'mktempd_', not '$ME' (which is even undefined), as the name of
34117         the subroutine.
34119 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
34121         tests init: new function 'fatal_', for hard errors
34122         Before this patch, the only way offered by tests/init.sh to
34123         properly signal a hard error was the `framework_failure_'
34124         function.  But the error message issued by that function,
34125         as its name would suggest, refers to a set-up failure in the
34126         testsuite, while hard errors can obviously also be due to
34127         other reasons.  The best way to fix this inconsistency is to
34128         introduce a new function with a more general error message.
34129         * tests/init.sh (fatal_): New function.
34131 2011-06-06  Eric Blake  <eblake@redhat.com>
34133         canonicalize-lgpl: use common idiom
34134         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
34135         over newer POSIX -Rf.
34136         Reported by Bruno Haible.
34138         canonicalize-lgpl: work around AIX realpath bug
34139         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
34140         * doc/posix-functions/realpath.texi (realpath): Document it.
34141         Reported by Bruno Haible.
34143         strerror: work around FreeBSD bug
34144         * lib/strerror.c (strerror): Special case 0.
34145         Reported by Bruno Haible.
34147         strerror-override: avoid bloating errno module
34148         * modules/errno (Files, configure.ac): Move replacement strings...
34149         * modules/strerror-override: ...to new module.
34150         * modules/strerror (Depends-on): Add strerror-override.
34151         * modules/strerror_r-posix (Depends-on): Likewise.
34152         * MODULES.html.sh: Document new module.
34153         Reported by Bruno Haible.
34155 2011-06-06  Bruno Haible  <bruno@clisp.org>
34157         spawn-pipe tests: Rename program.
34158         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
34159         * tests/test-spawn-pipe-child.c: Update comment.
34160         * tests/test-spawn-pipe.sh: Update.
34161         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
34163         spawn-pipe tests: Link the child program only against libc.
34164         * tests/test-spawn-pipe-child.c: New file, extracted from
34165         tests/test-spawn-pipe.c.
34166         (main): Expect only one argument.
34167         (is_open): New function, copied from tests/test-pipe.c.
34168         * tests/test-spawn-pipe.c: Don't include <errno.h>.
34169         (child_main): Remove function.
34170         (test_pipe): Pass only one argument to the child program.
34171         (main): Remove child process code. Expect the child program's name as
34172         first argument.
34173         * tests/test-spawn-pipe.sh: Pass the child program's name as first
34174         argument.
34175         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
34176         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
34177         test-spawn-pipe-child against no libraries.
34179 2011-06-06  Bruno Haible  <bruno@clisp.org>
34181         careadlinkat: Avoid mismatch between ssize_t and int.
34182         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
34183         * lib/careadlinkat.c (careadlinkatcwd): Define always.
34185 2011-06-06  Jim Meyering  <meyering@redhat.com>
34187         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
34188         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
34189         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
34191 2011-06-05  Bruno Haible  <bruno@clisp.org>
34193         ansi-c++-opt: Interoperability with libtool.
34194         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
34195         set the variable to "no", not to ":".
34196         * NEWS: Mention the change.
34198 2011-06-05  Bruno Haible  <bruno@clisp.org>
34200         acl: Fix test failure on AIX 7.
34201         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
34202         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
34204 2011-06-05  Bruno Haible  <bruno@clisp.org>
34206         pipe-filter-ii: Fix test failure on AIX and IRIX.
34207         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
34208         with EAGAIN, retry with a smaller buffer size.
34210 2011-06-05  Bruno Haible  <bruno@clisp.org>
34212         localename: Fix link dependencies.
34213         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
34214         * modules/localename-tests (Makefile.am): Link test-localename with
34215         $(LIBTHREAD).
34217 2011-06-05  Bruno Haible  <bruno@clisp.org>
34219         error: Avoid gcc warning.
34220         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
34222 2011-06-05  Bruno Haible  <bruno@clisp.org>
34224         unsetenv: Avoid gcc warning.
34225         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
34227 2011-06-05  Bruno Haible  <bruno@clisp.org>
34229         setenv: Avoid gcc warning.
34230         * lib/setenv.c (setenv): Provide declaration if system lacks it.
34232 2011-06-05  Bruno Haible  <bruno@clisp.org>
34234         sys_select: Ensure memset is declared also on AIX 7.
34235         * lib/sys_select.in.h: Include <string.h> also on AIX.
34236         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
34237         self-contained also on AIX 7.1.
34239 2011-06-04  Jim Meyering  <meyering@redhat.com>
34241         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
34242         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
34243         function name, "error".
34244         (_gl_translatable_diag_func_re): New configurable variable.
34246 2011-06-04  Bruno Haible  <bruno@clisp.org>
34248         getopt: Avoid gcc warning.
34249         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
34251 2011-06-04  Bruno Haible  <bruno@clisp.org>
34253         strerror_r: Fix comments.
34254         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
34255         commit.
34257 2011-06-04  Bruno Haible  <bruno@clisp.org>
34259         perror: Fix compilation error.
34260         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
34261         Undefine fprintf, not sprintf.
34262         * modules/perror (Depends-on): Remove intprops, verify.
34264 2011-06-04  Bruno Haible  <bruno@clisp.org>
34266         setlocale: Enable replacement on Cygwin 1.5.
34267         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
34268         Cygwin 1.5.x.
34269         * doc/posix-functions/setlocale.texi: Mention that the problem with the
34270         LC_CTYPE category also exists on Cygwin 1.5.x.
34272 2011-06-04  Bruno Haible  <bruno@clisp.org>
34274         strerror-override: Don't disable symbol renamings.
34275         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
34276         * lib/strerror-override.c: Include config.h.
34277         (strerror_override): Don't undefine.
34279 2011-06-03  Bruno Haible  <bruno@clisp.org>
34281         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
34282         * lib/localename.h: Update copyright header.
34283         * lib/localename.c: Likewise.
34284         * lib/relocatable.h: Likewise.
34285         * lib/relocatable.c: Likewise.
34287 2011-06-02  Bruno Haible  <bruno@clisp.org>
34289         doc: Fix a module name.
34290         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
34292 2011-06-02  Bruno Haible  <bruno@clisp.org>
34294         pipe2: Remove dependency on 'nonblocking' module.
34295         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
34296         O_NONBLOCK is defined by gnulib.
34297         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
34298         is zero.
34299         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
34300         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
34301         defined by gnulib.
34302         (get_nonblocking_flag): New function.
34303         (main): Test O_NONBLOCK flag only if it is nonzero.
34304         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
34306 2011-06-03  Jim Meyering  <meyering@redhat.com>
34308         maint: three new prohibit-header-without-use rules
34309         Prohibit use of cloexec.h, posixver.h, same.h without use.
34310         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
34311         (sc_prohibit_posixver_without_use): Likewise.
34312         (sc_prohibit_same_without_use): Likewise.
34314 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34316         allocator: 'die' routine is now given requested size
34317         * lib/allocator.h (struct allocator.die): New size arg.
34318         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
34319         If the actual problem is an ssize_t limitation, not a size_t or
34320         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
34322 2011-06-01  Eric Blake  <eblake@redhat.com>
34324         strerror: drop strerror_r dependency
34325         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
34326         * lib/strerror-override.c (strerror_override): ...to new file.
34327         * lib/strerror-override.h: Add prototype.
34328         * lib/strerror-impl.h: Delete.
34329         * lib/strerror.c (strerror): New implementation.
34330         * modules/errno (Files): Add new files.
34331         (configure.ac): Compile new file as appropriate.
34332         * modules/strerror (Files): Drop unused file.
34333         (Depends-on): Drop strerror_r-posix.
34334         * MODULES.html.sh: Document strerror_r-posix.
34335         Requested by Sam Steingold.
34337         perror: call strerror_r directly
34338         * modules/perror (Files): Drop strerror-impl.h.
34339         * lib/perror.c (perror): Use our own stack buffer, rather than
34340         calling a wrapper that uses static storage.
34341         * doc/posix-functions/perror.texi (perror): Document a limitation
34342         of our replacement.
34344         strerror_r: fix includes for FreeBSD
34345         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
34346         since we use abort on some platforms.
34347         Reported by Matthias Bolte.
34349 2011-05-31  Bruno Haible  <bruno@clisp.org>
34351         Fix link errors in tests: openat-die uses gettext-h.
34352         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
34353         against $(LIBINTL).
34354         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
34355         against $(LIBINTL).
34356         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
34357         $(LIBINTL).
34358         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
34359         against $(LIBINTL).
34360         * modules/linkat-tests (Makefile.am): Link test-linkat against
34361         $(LIBINTL).
34362         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
34363         $(LIBINTL).
34364         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
34365         against $(LIBINTL).
34366         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
34367         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
34368         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
34369         $(LIBINTL).
34370         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
34371         $(LIBINTL).
34372         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
34373         $(LIBINTL).
34374         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34376 2011-05-31  Bruno Haible  <bruno@clisp.org>
34378         Fix link errors in tests: wait-process uses gettext-h.
34379         * modules/nonblocking-pipe-tests (Makefile.am): Set
34380         test_nonblocking_pipe_main_LDADD.
34381         * modules/nonblocking-socket-tests (Makefile.am): Link
34382         test-nonblocking-socket-main against $(LIBINTL).
34383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34385 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34387         assert-h: work around 'verify' incompatibility
34388         * lib/verify.h: Use @...@ directives, not ifdef.
34389         * modules/assert-h (assert.h): Implement the directives.
34390         (assert.h): Substitute the symbol-prefix more consistently.
34392 2011-05-29  Jim Meyering  <meyering@redhat.com>
34394         trim: remove three superfluous assignments
34395         * lib/trim.c (trim2): Remove three superfluous assignments
34396         and correct brace positioning.
34398 2011-05-29  Bruno Haible  <bruno@clisp.org>
34400         wctype-h: Avoid namespace pollution on Solaris 2.6.
34401         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
34402         identifiers.
34403         * doc/posix-headers/wctype.texi: Mention the problem.
34404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34406 2011-05-28  Jim Meyering  <meyering@redhat.com>
34408         parse-datetime.y: accommodate -Wstrict-overflow
34409         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
34410         placate -Wstrict-overflow.
34412         trim: avoid a warning from -O2 -Wstrict-overflow
34413         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
34415 2011-05-29  Bruno Haible  <bruno@clisp.org>
34417         gnulib-tool: Fix bug in yesterday's commit.
34418         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
34419         twice.
34421 2011-05-29  Bruno Haible  <bruno@clisp.org>
34423         Allow multiple gnulib generated include files to be combined.
34424         * gnulib-tool (func_compute_include_guard_prefix): New function.
34425         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
34426         ${gl_include_guard_prefix} references.
34427         (func_import, func_create_testdir): Invoke
34428         func_compute_include_guard_prefix.
34429         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
34430         * lib/ctype.in.h: Likewise.
34431         * lib/dirent.in.h: Likewise.
34432         * lib/errno.in.h: Likewise.
34433         * lib/fcntl.in.h: Likewise.
34434         * lib/float.in.h: Likewise.
34435         * lib/getopt.in.h: Likewise.
34436         * lib/iconv.in.h: Likewise.
34437         * lib/langinfo.in.h: Likewise.
34438         * lib/locale.in.h: Likewise.
34439         * lib/math.in.h: Likewise.
34440         * lib/netdb.in.h: Likewise.
34441         * lib/netinet_in.in.h: Likewise.
34442         * lib/poll.in.h: Likewise.
34443         * lib/pthread.in.h: Likewise.
34444         * lib/pty.in.h: Likewise.
34445         * lib/sched.in.h: Likewise.
34446         * lib/se-selinux.in.h: Likewise.
34447         * lib/search.in.h: Likewise.
34448         * lib/signal.in.h: Likewise.
34449         * lib/spawn.in.h: Likewise.
34450         * lib/stdarg.in.h: Likewise.
34451         * lib/stddef.in.h: Likewise.
34452         * lib/stdint.in.h: Likewise.
34453         * lib/stdio.in.h: Likewise.
34454         * lib/stdlib.in.h: Likewise.
34455         * lib/string.in.h: Likewise.
34456         * lib/strings.in.h: Likewise.
34457         * lib/sys_file.in.h: Likewise.
34458         * lib/sys_ioctl.in.h: Likewise.
34459         * lib/sys_select.in.h: Likewise.
34460         * lib/sys_socket.in.h: Likewise.
34461         * lib/sys_stat.in.h: Likewise.
34462         * lib/sys_time.in.h: Likewise.
34463         * lib/sys_times.in.h: Likewise.
34464         * lib/sys_uio.in.h: Likewise.
34465         * lib/sys_utsname.in.h: Likewise.
34466         * lib/sys_wait.in.h: Likewise.
34467         * lib/sysexits.in.h: Likewise.
34468         * lib/termios.in.h: Likewise.
34469         * lib/time.in.h: Likewise.
34470         * lib/unistd.in.h: Likewise.
34471         * lib/wchar.in.h: Likewise.
34472         * lib/wctype.in.h: Likewise.
34473         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
34474         * modules/ctype (Makefile.am): Likewise.
34475         * modules/dirent (Makefile.am): Likewise.
34476         * modules/errno (Makefile.am): Likewise.
34477         * modules/fcntl-h (Makefile.am): Likewise.
34478         * modules/float (Makefile.am): Likewise.
34479         * modules/getopt-posix (Makefile.am): Likewise.
34480         * modules/iconv-h (Makefile.am): Likewise.
34481         * modules/langinfo (Makefile.am): Likewise.
34482         * modules/locale (Makefile.am): Likewise.
34483         * modules/math (Makefile.am): Likewise.
34484         * modules/netdb (Makefile.am): Likewise.
34485         * modules/netinet_in (Makefile.am): Likewise.
34486         * modules/poll-h (Makefile.am): Likewise.
34487         * modules/pthread (Makefile.am): Likewise.
34488         * modules/pty (Makefile.am): Likewise.
34489         * modules/sched (Makefile.am): Likewise.
34490         * modules/search (Makefile.am): Likewise.
34491         * modules/selinux-h (Makefile.am): Likewise.
34492         * modules/signal (Makefile.am): Likewise.
34493         * modules/spawn (Makefile.am): Likewise.
34494         * modules/stdarg (Makefile.am): Likewise.
34495         * modules/stddef (Makefile.am): Likewise.
34496         * modules/stdint (Makefile.am): Likewise.
34497         * modules/stdio (Makefile.am): Likewise.
34498         * modules/stdlib (Makefile.am): Likewise.
34499         * modules/string (Makefile.am): Likewise.
34500         * modules/strings (Makefile.am): Likewise.
34501         * modules/sys_file (Makefile.am): Likewise.
34502         * modules/sys_ioctl (Makefile.am): Likewise.
34503         * modules/sys_select (Makefile.am): Likewise.
34504         * modules/sys_socket (Makefile.am): Likewise.
34505         * modules/sys_stat (Makefile.am): Likewise.
34506         * modules/sys_time (Makefile.am): Likewise.
34507         * modules/sys_times (Makefile.am): Likewise.
34508         * modules/sys_uio (Makefile.am): Likewise.
34509         * modules/sys_utsname (Makefile.am): Likewise.
34510         * modules/sys_wait (Makefile.am): Likewise.
34511         * modules/sysexits (Makefile.am): Likewise.
34512         * modules/termios (Makefile.am): Likewise.
34513         * modules/time (Makefile.am): Likewise.
34514         * modules/unistd (Makefile.am): Likewise.
34515         * modules/wchar (Makefile.am): Likewise.
34516         * modules/wctype-h (Makefile.am): Likewise.
34517         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
34519 2011-05-29  Bruno Haible  <bruno@clisp.org>
34521         assert-h: Allow multiple gnulib generated replacements to coexist.
34522         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
34524 2011-05-29  Bruno Haible  <bruno@clisp.org>
34526         argp: Allow coexistence with strerror_r-posix module.
34527         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
34528         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
34529         by gnulib's <string.h> replacement), assume it has the POSIX signature,
34530         not the glibc signature.
34532 2011-05-28  Bruno Haible  <bruno@clisp.org>
34534         gnulib-tool: Alternative structure of testdirs, similar to --import.
34535         * gnulib-tool: New option --single-configure.
34536         (func_usage): Document it.
34537         (single_configure): New variable.
34538         (func_modules_transitive_closure_separately,
34539         func_modules_transitive_closure_separately,
34540         func_determine_use_libtests, func_modules_add_dummy_separately,
34541         func_modules_to_filelist_separately): New functions, extracted from
34542         func_import.
34543         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
34544         (func_import): Use the new functions.
34545         (func_create_testdir): Set final_modules. Handle $single_configure =
34546         true case.
34548 2011-05-28  Bruno Haible  <bruno@clisp.org>
34550         getloadavg: Remove an unreliable safety check.
34551         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
34552         getloadavg.c is in place.
34553         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
34554         Reported by Sam Steingold <sds@gnu.org>.
34556 2011-05-28  Bruno Haible  <bruno@clisp.org>
34558         doc: Cleanup yet another file produced by texinfo.tex.
34559         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
34561 2011-05-28  Bruno Haible  <bruno@clisp.org>
34563         Finish the conditional dependencies mechanism.
34564         * gnulib-tool: New option --no-conditional-dependencies.
34565         (func_usage): Document it. Don't mark --conditional-dependencies as
34566         experimental.
34567         (cond_dependencies): The possible values can now be true, false, empty.
34568         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
34569         (func_import): Store setting in gnulib-cache.m4 and read it from there.
34570         * doc/gnulib-tool.texi (Conditional dependencies): New section.
34572 2011-05-28  Bruno Haible  <bruno@clisp.org>
34574         doc: Use a recent texinfo.tex.
34575         * doc/Makefile (tex_opts): New variable.
34576         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
34578 2011-05-28  Jim Meyering  <meyering@redhat.com>
34580         intprops.h: adjust comment to match code change
34581         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
34582         only once, it *may* have side effects.  Also fix an unrelated typo.
34583         (_GL_INT_SIGNED): Likewise.
34585 2011-05-26  Simon Josefsson  <simon@josefsson.org>
34587         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
34589 2011-05-26  Bruno Haible  <bruno@clisp.org>
34591         mbsrchr: Avoid collision with system function on Interix.
34592         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
34593         Reported by Markus Duft <mduft@gentoo.org>.
34595 2011-05-15  James Youngman  <jay@gnu.org>
34597         getopt: for ambiguous options, enumerate the possibilities.
34598         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
34599         the ambiguous options when an ambiguous prefix is given. This was
34600         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
34601         glibc change was
34602         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
34604 2011-05-25  Eric Blake  <eblake@redhat.com>
34606         getcwd: work around mingw bug
34607         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
34608         * doc/posix-functions/getcwd.texi (getcwd): Document it.
34609         Reported by Matthias Bolte.
34611 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
34613         test-intprops: disable -Wtype-limits diagnostics
34614         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
34615         diagnostics.  Otherwise, the integer overflow macros generate many
34616         diagnostics.  Reported by Jim Meyering in
34617         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
34619         intprops: shorten, to pacify gcc -Woverlength-strings
34620         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
34621         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
34622         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
34623         likely to run afoul of C compiler limits for string constant lengths.
34624         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
34626 2011-05-24  Eric Blake  <eblake@redhat.com>
34628         docs: document recently fixed glibc printf bug
34629         * doc/posix-functions/fprintf.texi (fprintf): Document it.
34630         * doc/posix-functions/printf.texi (printf): Likewise.
34631         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34632         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34634         closein-tests: convert to init.sh
34635         * modules/closein-tests (Files): Add init.sh
34636         * tests/test-closein.sh Use it.
34638         yesno-tests: convert to init.sh
34639         * modules/yesno-tests (Files): Add init.sh.
34640         * tests/test-yesno.sh: Use it.
34642         atexit-tests: ensure reliable exit status
34643         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
34644         Reported by Bruno Haible.
34646 2011-05-24  Bruno Haible  <bruno@clisp.org>
34648         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
34649         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
34650         gl_PREREQ_STRERROR_R invocations from here...
34651         * modules/strerror_r-posix (configure.ac): ... to here.
34653 2011-05-24  Eric Blake  <eblake@redhat.com>
34655         strerror_r: fix missing header
34656         * lib/strerror_r.c: Avoid compiler warning about snprintf.
34658         strerror_r: fix AIX test failures
34659         * lib/strerror_r.c (strerror_r): Convert silent truncation to
34660         ERANGE failure.
34662         strerror_r: fix Solaris test failures
34663         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
34664         failures.
34665         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
34667         strerror_r: enforce POSIX recommendations
34668         * lib/strerror_r.c (safe_copy): New helper method.
34669         (strerror_r): Guarantee a non-empty string.
34670         * tests/test-strerror_r.c (main): Enhance tests to incorporate
34671         recent POSIX rulings and to match our strerror guarantees.
34672         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
34674 2011-05-24  Jim Meyering  <meyering@redhat.com>
34676         test-perror2.c: avoid warning about unused variable
34677         * tests/test-perror2.c (main): Remove declaration of unused "fp".
34679 2011-05-24  Eric Blake  <eblake@redhat.com>
34681         perror: avoid spurious test failure on HP-UX
34682         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
34684         tests: fix logic bug in init.sh
34685         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
34686         shell.
34688 2011-05-24  Jim Meyering  <meyering@redhat.com>
34690         utimensat: do not reference an out-of-scope buffer
34691         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
34692         declared in an inner scope, yet "times" would be dereferenced outside
34693         the scope in which "ts" was valid.
34694         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
34695         of ts[2] "out/up", so that the use of aliased "times" (via
34696         "times = ts;") does not end up referencing an out-of-scope "ts"
34698         opendir-safer.c: don't clobber errno; don't close negative FD
34699         * lib/opendir-safer.c (opendir_safer):
34700         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
34701         file descriptor, and more importantly, don't clobber the
34702         offending errno value with EINVAL.  Before, upon failure
34703         of dup_safer, we would pass the negative file descriptor to
34704         fdopendir, which would clobber errno.
34706 2011-05-23  Bruno Haible  <bruno@clisp.org>
34708         idcache: Fix module description.
34709         * modules/idcache (Include): Set to "idcache.h".
34711 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34713         gnulib-tool: fix portability problem with MacOS sed
34714         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
34715         before the "}".  Problem reported by Leo in
34716         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
34717         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
34718         sed_extract_condition1, sed_extract_condition2.
34720 2011-05-23  Bruno Haible  <bruno@clisp.org>
34722         hash: Simplify autoconf macro.
34723         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
34725 2011-05-23  Bruno Haible  <bruno@clisp.org>
34727         getugroups: Fix module description.
34728         * modules/getugroups (Include): Set to "getugroups.h".
34730 2011-05-23  Bruno Haible  <bruno@clisp.org>
34732         linkat: Simplify autoconf macro.
34733         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
34735 2011-05-23  Bruno Haible  <bruno@clisp.org>
34736             Eric Blake  <eblake@redhat.com>
34738         linkat, renameat: Update dependencies.
34739         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
34740         * modules/linkat (Depends-on): Likewise. Remove also readlink,
34741         symlinkat.
34743 2011-05-23  Jim Meyering  <meyering@redhat.com>
34745         maint.mk: more tight_scope improvements
34746         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
34747         (_gl_TS_headers): Define only in if-0'd block.
34748         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
34749         sometimes we must *not* use it.  Adjust uses accordingly.
34750         (sc_tight_scope): Use much simpler grep-based test to determine
34751         whether we skip this rule.
34753         maint.mk: generalize/improve the tight-scope rule
34754         * top/maint.mk: Emit a warning when the test is skipped.
34755         (_gl_TS_dir): Add $(srcdir)/ prefix.
34756         (_gl_TS_function_match): Simplify, rather than trying
34757         to enumerate common types.  Otherwise, it would fail to match an
34758         "extern unsigned char const *" declaration in idutils.
34759         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
34760         a way to support use of that type of macro.
34761         (_gl_TS_var_match): Simplify regexp.
34762         (_gl_TS_obj_files): New configurable variable.
34763         (_gl_TS_headers): Likewise.
34765 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34767         verify: fix bug when gnulib <assert.h> is also included
34768         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
34769         is defined, not if _GL_STATIC_ASSERT_H is not defined.
34770         Perhaps there's a better way, but this fixes the immediate problem.
34771         Problem reported by Bruno Haible in
34772         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
34774 2011-05-22  Bruno Haible  <bruno@clisp.org>
34776         xgetcwd: Simplify autoconf macro.
34777         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
34779 2011-05-22  Bruno Haible  <bruno@clisp.org>
34781         New module 'mktime-internal'.
34782         * modules/mktime-internal: New file.
34783         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
34784         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
34785         mktime_internal as a C macro if libc has __mktime_internal.
34786         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
34787         conditions.
34788         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
34790 2011-05-22  Bruno Haible  <bruno@clisp.org>
34792         timegm: Correct mktime replacement statements.
34793         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
34794         defining mktime as a C macro. This completes a 2009-07-28 commit.
34796 2011-05-22  Bruno Haible  <bruno@clisp.org>
34798         timegm: Simplify autoconf macro.
34799         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
34801 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
34803         clock-time: change to LGPLv2+.
34804         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
34805         BSD-like but we have no mark for that; this is good enough for now.
34807 2011-05-21  Bruno Haible  <bruno@clisp.org>
34809         strerror_r: Fix comments.
34810         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
34812 2011-05-21  Bruno Haible  <bruno@clisp.org>
34814         relocatable-prog-wrapper: Fix possible link error.
34815         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
34816         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
34817         (gl_FUNC_SETENV): ... to here.
34818         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
34819         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
34821 2011-05-21  Bruno Haible  <bruno@clisp.org>
34823         relocatable-prog-wrapper: Assume strerror() exists.
34824         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
34825         m4/strerror.m4.
34826         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
34827         * lib/relocwrapper.c: Remove mention of strerror module.
34828         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
34829         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
34830         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
34831         C macro.
34833 2011-05-21  Bruno Haible  <bruno@clisp.org>
34835         select: Simplify replacement idiom.
34836         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
34837         Win32 platforms.
34838         * lib/sys_select.in.h (select): Simplify accordingly.
34839         * modules/select (Depends-on): Likewise.
34841 2011-05-21  Bruno Haible  <bruno@clisp.org>
34843         mkdir-p: Simplify autoconf macro.
34844         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
34845         gl_FUNC_LCHOWN.
34847 2011-05-21  Eric Blake  <eblake@redhat.com>
34849         strerror_r: avoid clobbering strerror on cygwin
34850         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
34851         fall back instead to sys_errlist.
34852         * modules/strerror (configure.ac): Add witness.
34853         * tests/test-strerror_r.c (main): Enhance test.
34854         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
34855         * tests/test-perror2.c (main): Free memory before exit.
34857 2011-05-21  Bruno Haible  <bruno@clisp.org>
34859         mkdtemp: Use gnulib naming conventions.
34860         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
34861         * modules/mkdtemp (configure.ac): Update.
34863 2011-05-20  Eric Blake  <eblake@redhat.com>
34865         strerror_r: avoid corrupting errno on Solaris
34866         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
34867         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
34869         strerror_r: avoid compiler warning
34870         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
34872         strerror_r: simplify AIX code
34873         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
34875         test-perror: avoid spurious failure on FreeBSD
34876         * modules/perror-tests (Depends-on): Add strerror, now that
34877         strerror_r no longer pulls it in.
34879 2011-05-20  Bruno Haible  <bruno@clisp.org>
34881         strerror_r-posix: Remove unused dependencies.
34882         * modules/strerror_r-posix (Depends-on): Remove strerror.
34883         Reported by Eric Blake.
34885 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34887         intprops: remove assumption about A|B representation
34888         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
34889         is a valid integer if both A and B are.  Although this is true for
34890         all known practical hosts, the C standard doesn't guarantee it,
34891         and the code need not assume it.  Also, this change may work around
34892         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
34893         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
34895 2011-05-20  Eric Blake  <eblake@redhat.com>
34897         perror: work around FreeBSD bug
34898         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
34899         is broken.  Move AC_LIBOBJ...
34900         * modules/perror (configure.ac): Here.
34901         * doc/posix-functions/perror.texi (perror): Document this.
34902         * tests/test-perror2.c (main): Enhance test.
34904         test-perror: check for strerror interactions
34905         * tests/macros.h (STREQ): Add macro.
34906         * modules/perror-tests (Files): Add second test.
34907         * tests/test-perror2.c (main): New file.
34908         * doc/posix-functions/perror.texi (perror): Document glibc bug.
34910         test-perror: rewrite to use init script
34911         * modules/perror-tests (Files): Add init.sh.
34912         * tests/test-perror.sh: Use temporary directory.
34914 2011-05-20  Jim Meyering  <meyering@redhat.com>
34916         maint: replace misused "a" with "an"
34917         * doc/intprops.texi: "a integer"
34918         * doc/regex.texi: "a explanation"
34919         * lib/alignof.h: "a object"
34920         * lib/argmatch.h: "a explanation"
34921         * lib/argp-help.c: "a option" and "a OPTION_DOC"
34922         * lib/stdint.in.h: "a integer"
34923         * lib/userspec.c: "a owner"
34924         * doc/gnulib.texi: Fix "a idea", and reword.
34926 2011-05-19  Jim Meyering  <meyering@redhat.com>
34928         maint: correct misuse of "a" and "an"
34929         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
34930         * lib/argp-help.c: "an docum...": s/an/a/
34931         * lib/argp-parse.c: "An vector": s/An/A/
34932         * lib/execute.c: "an native": s/an/a/
34933         * lib/spawn-pipe.c: Likewise.
34934         * lib/gc.h: "an Gc_rc": s/an/a/
34935         * lib/unigbrk.in.h: "an grapheme": s/an/a/
34936         * lib/fts.c: "an stat.st_dev": s/an/a/
34938 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34940         intprops-tests: work around HP-UX 11.23 cc bug with constants
34941         * tests/test-intprops.c (VERIFY): New macro.
34942         (main): Use it, instead of verify, to work around the compiler bug; see
34943         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
34945         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
34946         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
34947         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
34948         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
34949         (_GL_REMAINDER_OVERFLOW): Use it.
34951         intprops-tests: revert unsigned part of previous change
34952         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
34953         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
34954         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
34955         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
34957 2011-05-19  Bruno Haible  <bruno@clisp.org>
34959         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
34960         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
34961         strerror_r() returned without filling the buffer.
34962         Reported by Eric Blake.
34964 2011-05-19  Eric Blake  <eblake@redhat.com>
34966         strerror_r: guarantee unchanged errno
34967         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
34968         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
34969         failure.
34970         * tests/test-strerror_r.c (main): Enhance test.
34972 2011-05-19  Bruno Haible  <bruno@clisp.org>
34974         strerror_r: Reorder #if blocks.
34975         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
34976         for consistency with the previous commit.
34978 2011-05-19  Bruno Haible  <bruno@clisp.org>
34980         perror: Avoid clobbering the strerror buffer when possible.
34981         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
34982         * lib/strerror.c: Include it.
34983         * modules/strerror (Files): Add lib/strerror-impl.h.
34984         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
34985         (my_strerror): New function, defined through lib/strerror-impl.h.
34986         (perror): Use it instead of strerror.
34987         * modules/perror (Files): Add lib/strerror-impl.h.
34988         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
34990 2011-05-19  Eric Blake  <eblake@redhat.com>
34992         strerror_r: fix on newer cygwin
34993         * lib/strerror_r.c (strerror_r): Cygwin now has
34994         __xpg_strerror_r, use it.
34996 2011-05-19  Bruno Haible  <bruno@clisp.org>
34998         strerror_r: Avoid clobbering the strerror buffer when possible.
34999         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
35000         (sys_nerr, sys_errlist): New declarations.
35001         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
35002         HP-UX, native Win32, IRIX, and 32-bit Solaris.
35003         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
35005 2011-05-19  Bruno Haible  <bruno@clisp.org>
35007         strerror_r: Fix test failure on mingw.
35008         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
35009         EXTEND_STRERROR_R.
35010         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
35011         macros from errno.in.h instead.
35013 2011-05-19  Eric Blake  <eblake@redhat.com>
35015         strerror: relax test for Solaris
35016         * tests/test-strerror.c (main): Permit Solaris behavior.
35017         * tests/test-strerror_r.c (main): Likewise.
35019         strerror: enforce POSIX ruling on strerror(0)
35020         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
35021         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
35022         * lib/strerror_r.c (rpl_strerror_r): Work around it.
35023         * doc/posix-functions/strerror.texi (strerror): Document it.
35024         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
35025         * tests/test-strerror.c (main): Strengthen test.
35026         * tests/test-strerror_r.c (main): Likewise.
35028 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35030         intprop-tests: port to older and more-pedantic compilers
35031         * modules/intprops-tests (Files): Add tests/macros.h.
35032         * tests/test-intprops.c: Include macros.h.
35033         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
35034         it's no longer documented to expand to an integer constant expression.
35035         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
35036         argument is floating point, as it's no longer documented to expand
35037         to an integer constant expression in that case.
35038         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
35039         compiler bugs reported by Bruno Haible.  See
35040         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35041         (U0, U1): New constants, to work around the same bugs.  Also,
35042         in tests, use e.g., "(unsigned int) 39" rather than "39u".
35044         intprops: work around C compiler bugs
35045         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
35046         bug in Sun C 5.11 2010/08/13 and other compilers; see
35047         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
35049         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
35050         * doc/intprops.texi (Integer Type Determination): Fix
35051         documentation for TYPE_IS_INTEGER: it returns an constant
35052         expression, not an integer constant expression.  Fix doc for
35053         TYPE_SIGNED: it returns an integer constant expression only if its
35054         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
35055         hardly worth documented that way....)
35057 2011-05-18  Bruno Haible  <bruno@clisp.org>
35059         strerror_r: Avoid clobbering the strerror buffer when possible.
35060         * lib/strerror_r.c (strerror_r): Merge the three implementations.
35061         Handle gnulib defined errno values here. When strerror() returns NULL
35062         or an empty string, return EINVAL.
35063         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
35064         gnulib defined errno values here.
35065         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
35067 2011-05-18  Eric Blake  <eblake@redhat.com>
35069         fnmatch: avoid compiler warning
35070         * lib/fnmatch_loop.c (FCT): Use correct type.
35071         Reported by Matthias Bolte.
35073 2011-05-13  Jim Meyering  <meyering@redhat.com>
35075         maint.mk: three new prohibit_<HDR>_without_use rules
35076         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
35077         (sc_prohibit_stdio-safer_without_use): Likewise.
35078         (sc_prohibit_xfreopen_without_use): Likewise.
35080 2011-05-17  Jim Meyering  <meyering@redhat.com>
35082         announce-gen: fail if the NEWS delta is empty
35083         If there's nothing noteworthy in NEWS, then either you forgot
35084         or you shouldn't be releasing.
35085         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
35087 2011-05-17  Pádraig Brady  <P@draigBrady.com>
35089         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
35090         reserved symbols starting with double underscore from the check.
35092 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35094         intprops: add doc
35095         * doc/intprops.texi: New file, documenting intprops.
35096         * doc/gnulib.texi (Particular Modules): Include it.
35098         verify: add doc to gnulib manual and fix example
35099         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
35100         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
35101         (Compile-time Assertions): Fix example so it can't overflow.
35103 2011-05-17  Jim Meyering  <meyering@redhat.com>
35105         warnings.m4: don't usurp save_CPPFLAGS variable name
35106         * m4/warnings.m4: Prefix local temporary variable name with gl_.
35108         doc: fix typo
35109         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
35111 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35112             Bruno Haible  <bruno@clisp.org>
35114         doc: Tweak recent change.
35115         * README (Portability guidelines): Tweak new text.
35116         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
35117         Interix 6.1.
35119 2011-05-16  Eric Blake  <eblake@redhat.com>
35121         inttypes: avoid autoconf warning
35122         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
35123         * m4/stdint.m4 (gl_STDINT_H): Likewise.
35125 2011-05-16  Sam Steingold  <sds@gnu.org>
35126         and Eric Blake  <eblake@redhat.com>
35128         vc-list-files: accept multiple directory operands
35129         * build-aux/vc-list-files: Iterate over all remaining operands.
35131 2011-05-16  Bruno Haible  <bruno@clisp.org>
35133         Fix confusion regarding deprecated modules.
35134         * modules/calloc (Status, Notice): Mark module as deprecated, not
35135         obsolete.
35136         * modules/fnmatch-posix (Status, Notice): Likewise.
35137         * modules/getdate (Status, Notice): Likewise.
35138         * modules/getopt (Status, Notice): Likewise.
35139         * modules/malloc (Status, Notice): Likewise.
35140         * modules/pipe (Status, Notice): Likewise.
35141         * modules/realloc (Status, Notice): Likewise.
35142         * modules/rename-dest-slash (Status, Notice): Likewise.
35143         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
35144         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
35145         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
35146         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
35147         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
35149 2011-05-16  Bruno Haible  <bruno@clisp.org>
35151         doc: List the target platforms.
35152         * doc/gnulib-intro.texi (Target Platforms): New section.
35153         * doc/gnulib.texi (Introduction): Update menu.
35154         * README (Portability guidelines): Refer to the new section. Update
35155         statement about oldest supported environment. Remove rationale why
35156         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
35157         unportable C89 function.
35158         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
35159         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
35161 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35163         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
35165 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
35167         intprops-tests: new module
35168         * modules/intprops-tests, tests/test-intprops.c: New files.
35170         intprops: add safe, portable integer overflow checking
35171         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
35172         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
35173         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
35174         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
35175         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
35176         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
35177         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
35178         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
35179         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
35180         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
35181         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
35183 2011-05-12  James Youngman  <jay@gnu.org>
35185         Add a test for glibc's Bugzilla bug #12378.
35186         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
35187         doesn't allow the literal matching of a lone "[" (which is
35188         required by POSIX).
35189         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
35191 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
35193         Sync glibc change fixing Bugzilla bug #12378.
35194         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
35195         beginning and fall back to matching as normal character if the
35196         string ends before the matching ']' is found.  This is what POSIX
35197         requires.
35199 2011-05-13  Eric Blake  <eblake@redhat.com>
35201         getcwd-lgpl: relax test for FreeBSD
35202         * doc/posix-functions/getcwd.texi (getcwd): Document portability
35203         issue.
35204         * tests/test-getcwd-lgpl.c (main): Relax test.
35205         Reported by Matthias Bolte.
35207 2011-05-11  Eric Blake  <eblake@redhat.com>
35209         test-fflush: silence compiler warning
35210         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
35212 2011-05-11  Bruno Haible  <bruno@clisp.org>
35214         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
35215         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
35216         * modules/canonicalize (Depends-on): Add 'nocrash'.
35217         * modules/canonicalize-lgpl (Depends-on): Likewise.
35218         * doc/posix-functions/realpath.texi: Update platforms list.
35219         Reported by Ryan Schmidt <ryandesign@macports.org>.
35221 2011-05-11  Bruno Haible  <bruno@clisp.org>
35223         group-member: Declare function in <unistd.h>.
35224         * lib/unistd.in.h (group_member): New declaration.
35225         * lib/group-member.h: Remove file.
35226         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
35227         * tests/test-unistd-c++.cc: Check signature of group_member.
35228         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
35229         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
35230         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
35231         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
35232         HAVE_GROUP_MEMBER.
35233         * modules/group-member (Files): Remove lib/group-member.h.
35234         (Depends-on): Add unistd. Specify conditions.
35235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35236         (Include): Change to <unistd.h>.
35237         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
35238         HAVE_GROUP_MEMBER.
35239         * NEWS: Mention the change.
35240         * lib/euidaccess.c: Don't include group-member.h.
35242 2011-05-11  Bruno Haible  <bruno@clisp.org>
35244         group-member: Document module.
35245         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
35246         module.
35248 2011-05-11  Bruno Haible  <bruno@clisp.org>
35250         fclose: Fix mistake earlier today.
35251         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
35253 2011-05-11  Eric Blake  <eblake@redhat.com>
35255         fclose: preserve fflush errors
35256         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
35257         Reported by Jim Meyering.
35259         bootstrap: support a prereq of 'rpcgen -' on RHEL5
35260         * build-aux/bootstrap (check_versions): When no specific version
35261         is required, merely check that the app produces an exit status
35262         that indicates its existence.
35264         maint.mk: drop redundant check
35265         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
35266         the same but better.
35268 2011-05-11  Bruno Haible  <bruno@clisp.org>
35270         fclose: Fix possible link error.
35271         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
35272         unregister_shadow_fd. Improve comments.
35273         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
35274         Eric Blake.
35276 2011-05-11  Jim Meyering  <meyering@redhat.com>
35278         maint.mk: improve "can not" detection and generalize rule name
35279         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
35280         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
35281         Use the same technique as in sc_prohibit_doubled_word, so that
35282         we recognize "can not" also when the words are separated by a newline.
35283         Suggested by Eric Blake.
35284         (perl_filename_lineno_text_): Define.  Factored out of...
35285         (prohibit_doubled_word_): ...here.  Use the new definition.
35286         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
35287         (prohibit_undesirable_word_seq_RE_): New overridable variable.
35288         (ignore_undesirable_word_sequence_RE_): New overridable variable.
35290 2011-05-10  Eric Blake  <eblake@redhat.com>
35292         fclose: avoid double close race when possible
35293         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
35294         all but WINDOWS_SOCKETS.
35296 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
35298         openat: correct new comment
35299         * lib/openat-proc.c (openat_proc_name): Correct the comment.
35301 2011-05-10  Jim Meyering  <meyering@redhat.com>
35303         openat: add comments
35304         * lib/openat-proc.c (openat_proc_name): Add comments,
35305         mostly from Eric Blake.
35307 2011-05-09  Eric Blake  <eblake@redhat.com>
35309         openat: reduce syscalls in first probe of /proc
35310         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
35311         be a directory.  Simplify the probe for .. bugs.
35312         * modules/openat (Depends-on): Drop same-inode.
35313         Reported by Bastien ROUCARIES.
35315 2011-05-09  Jim Meyering  <meyering@redhat.com>
35317         maint.mk: change semantics/name of tight_scope variables
35318         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
35319         Rename variables to align with semantics that make them more useful.
35321         maint.mk: tweak new rule's name not to impinge
35322         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
35323         (sc_tight_scope): Use new rule name rather than $@-0.
35325         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
35326         * top/maint.mk (sc_tight_scope): New rule.
35327         (sc_tight_scope-0): New rule, ifdef'd out.
35328         (_gl_TS_dir): Default.
35329         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
35330         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
35332 2011-05-09  Simon Josefsson  <simon@josefsson.org>
35334         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
35335         Haible <bruno@clisp.org>.
35337 2011-05-08  Bruno Haible  <bruno@clisp.org>
35339         Comments.
35340         * m4/isnanf.m4: Add comment.
35341         * m4/isnanl.m4: Likewise.
35343 2011-05-08  Bruno Haible  <bruno@clisp.org>
35345         glob: Remove obsolete macro.
35346         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
35348 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
35350         intprops: Sun C 5.11 supports __typeof__
35351         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
35352         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
35353         which is new.
35354         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
35356         intprops: switch to usual gnulib indenting and naming
35357         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
35358         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
35360         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
35362 2011-05-08  Jim Meyering  <meyering@redhat.com>
35364         maint.mk: suppress "Entering/Leaving directory" diag in announcement
35365         * top/maint.mk (release-prep): Use make's --no-print-directory
35366         option when generating the announcement.  This eliminates the
35367         pesky "make[2]: Entering/Leaving directory" diagnostics in the
35368         generated announcement template.
35370 2011-05-08  Bruno Haible  <bruno@clisp.org>
35372         tzset: Fix gettimeofday wrapper on Solaris 2.6.
35373         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
35374         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
35376 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35378         ignore-value, verify: Omit include files from lib_SOURCES.
35379         * modules/ignore-value, modules/verify (Makefile.am):
35380         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
35381         that leads Automake to duplicate use of am__objects_... variables
35382         in Makefile.in.  See
35383         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
35385 2011-05-07  Bruno Haible  <bruno@clisp.org>
35387         fclose: Simplify autoconf macro.
35388         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
35389         defined.
35391 2011-05-07  Bruno Haible  <bruno@clisp.org>
35393         canonicalize-lgpl: Fix autoconf macro ordering bug.
35394         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
35395         gl_STDLIB_H_DEFAULTS.
35397 2011-05-06  Eric Blake  <eblake@redhat.com>
35399         maintainer-makefile: make sc_po_check easier to tune
35400         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
35401         to probe for strings, such as an alternate location for gnulib.
35403         fclose: guarantee behavior on seekable stdin
35404         * modules/fclose (Depends-on): Add fflush.
35405         * doc/posix-functions/fclose.texi (fclose): Document this.
35406         * tests/test-fclose.c (main): Make test for this unconditional.
35408 2011-05-06  Bruno Haible  <bruno@clisp.org>
35410         fflush, fpurge: Relicense under LGPLv2+.
35411         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
35412         * modules/fpurge (License): Likewise.
35413         With permission from Eric Blake and Jim Meyering.
35414         Suggested by Eric Blake.
35416 2011-05-06  Karl Berry  <karl@gnu.org>
35418         * MODULES.html.sh (func_all_modules): remove exit.
35420 2011-05-06  Jim Meyering  <meyering@redhat.com>
35422         maint.mk: use info-gnu@ as the default only for a stable release
35423         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
35424         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
35425         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
35426         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
35428 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
35430         assert-h: new module, which supports C1X-style static_assert
35431         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
35432         * lib/verify.h: Revamp so that this can be copied into assert.h,
35433         while retaining the ability to use it standalone as before.
35434         Rename private identifiers so as not to encroach on the
35435         standard C namespace, since this is now used by assert.h.
35436         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
35437         the old verify_true.
35438         (_GL_VERIFY_TRUE): New macro, with much of the contents of
35439         the old verify_true.  Use _GL_VERIFY_TYPE.
35440         (_GL_VERIFY): New macro, with much of the contents of the old verify.
35441         (static_assert): New macro, if _GL_STATIC_ASSERT_H
35442         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
35443         defined when this file is copied into the replacement assert.h.
35444         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
35445         and _Static_assert is not built in.
35446         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
35447         defined, and use the new macros mentioned above.
35448         * doc/posix-headers/assert.texi: Document this.
35450 2011-05-05  Bruno Haible  <bruno@clisp.org>
35452         fclose, fflush: Respect rules for use of AC_LIBOBJ.
35453         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
35454         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
35455         gl_REPLACE_FCLOSE here.
35456         * modules/fflush (Depends-on): Remove fclose.
35457         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
35458         combination with module 'fclose'.
35460 2011-05-05  Bruno Haible  <bruno@clisp.org>
35462         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
35463         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
35464         gl_FUNC_FFLUSH.
35465         (gl_FUNC_FFLUSH): Use it.
35466         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
35467         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
35468         gl_REPLACE_FSEEKO here.
35470 2011-05-05  Bruno Haible  <bruno@clisp.org>
35472         tzset: Relicense under LGPL.
35473         * modules/tzset (License): Change to LGPL.
35474         No agreement needed; it's a no-op.
35476         strtoimax, strtoumax: Relicense under LGPL.
35477         * modules/strtoimax (License): Change to LGPL.
35478         * modules/strtoumax (License): Likewise.
35479         With permission from Jim Meyering, Paul Eggert:
35480         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
35481         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
35483         getgroups: Relicense under LGPL.
35484         * modules/getgroups (License): Change to LGPL.
35485         With permission from Jim Meyering, Paul Eggert, Eric Blake:
35486         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
35487         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
35488         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35490         nanosleep: Relicense under LGPL.
35491         * modules/nanosleep (License): Change to LGPL.
35492         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
35493         Haible:
35494         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
35495         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
35496         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35497         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
35499         futimens: Relicense under LGPL.
35500         * modules/futimens (License): Change to LGPL.
35501         With permission from Eric Blake:
35502         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35504         fflush: Relicense under LGPL.
35505         * modules/fflush (License): Change to LGPL.
35506         With permission from Eric Blake, Bruno Haible, Jim Meyering:
35507         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35508         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
35509         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
35511         tmpfile: Relicense under LGPL.
35512         * modules/tmpfile (License): Change to LGPL.
35513         With permission from Ben Pfaff:
35514         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
35516         isfinite: Relicense under LGPL.
35517         * modules/isfinite (License): Change to LGPL.
35518         With permission from Ben Pfaff, Bruno Haible:
35519         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
35520         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
35522         acosl..tanl: Relicense under LGPL.
35523         * modules/acosl (License): Change to LGPL.
35524         * modules/asinl (License): Likewise.
35525         * modules/atanl (License): Likewise.
35526         * modules/cosl (License): Likewise.
35527         * modules/expl (License): Likewise.
35528         * modules/logl (License): Likewise.
35529         * modules/sinl (License): Likewise.
35530         * modules/sqrtl (License): Likewise.
35531         * modules/tanl (License): Likewise.
35532         Source code originally from glibc and Paolo Bonzini. Agreements:
35533         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
35534         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
35536 2011-05-05  Bruno Haible  <bruno@clisp.org>
35538         signal: Define sighandler_t.
35539         * lib/signal.in.h (sighandler_t): New type.
35540         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
35541         whether sighandler_t is defined.
35542         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
35543         * modules/signal (Depends-on): Add extensions.
35544         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
35545         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
35546         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
35548 2011-05-05  Eric Blake  <eblake@redhat.com>
35550         maint: remove useless REPLACE_*_H macros
35551         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
35552         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35553         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35554         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
35555         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35556         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35557         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
35558         * m4/btowc.m4: Update callers.
35559         * m4/dirfd.m4: Likewise.
35560         * m4/duplocale.m4: Likewise.
35561         * m4/fchdir.m4: Likewise.
35562         * m4/fdopendir.m4: Likewise.
35563         * m4/inet_ntop.m4: Likewise.
35564         * m4/inet_pton.m4: Likewise.
35565         * m4/ioctl.m4: Likewise.
35566         * m4/mbrlen.m4: Likewise.
35567         * m4/mbrtowc.m4: Likewise.
35568         * m4/mbsinit.m4: Likewise.
35569         * m4/mbsnrtowcs.m4: Likewise.
35570         * m4/mbsrtowcs.m4: Likewise.
35571         * m4/poll.m4: Likewise.
35572         * m4/setlocale.m4: Likewise.
35573         * m4/wcrtomb.m4: Likewise.
35574         * m4/wcsnrtombs.m4: Likewise.
35575         * m4/wcsrtombs.m4: Likewise.
35576         * m4/wctob.m4: Likewise.
35577         * m4/wcwidth.m4: Likewise.
35578         * modules/posix_spawn: Likewise.
35579         * modules/posix_spawn_file_actions_addclose: Likewise.
35580         * modules/posix_spawn_file_actions_adddup2: Likewise.
35581         * modules/posix_spawn_file_actions_addopen: Likewise.
35582         * modules/posix_spawn_file_actions_destroy: Likewise.
35583         * modules/posix_spawn_file_actions_init: Likewise.
35584         * modules/posix_spawnattr_destroy: Likewise.
35585         * modules/posix_spawnattr_getflags: Likewise.
35586         * modules/posix_spawnattr_getpgroup: Likewise.
35587         * modules/posix_spawnattr_getschedparam: Likewise.
35588         * modules/posix_spawnattr_getschedpolicy: Likewise.
35589         * modules/posix_spawnattr_getsigdefault: Likewise.
35590         * modules/posix_spawnattr_getsigmask: Likewise.
35591         * modules/posix_spawnattr_init: Likewise.
35592         * modules/posix_spawnattr_setflags: Likewise.
35593         * modules/posix_spawnattr_setpgroup: Likewise.
35594         * modules/posix_spawnattr_setschedparam: Likewise.
35595         * modules/posix_spawnattr_setschedpolicy: Likewise.
35596         * modules/posix_spawnattr_setsigdefault: Likewise.
35597         * modules/posix_spawnattr_setsigmask: Likewise.
35598         * modules/posix_spawnp: Likewise.
35600 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
35602         Add option to do-release-commit-and-tag to specify branch.
35603         * build-aux/do-release-commit-and-tag: Add --branch.
35605 2011-05-03  Bruno Haible  <bruno@clisp.org>
35607         Avoid unnecessary compilation units, through conditional dependencies.
35608         * modules/accept (Depends-on): Add conditions to the dependencies.
35609         * modules/acosl (Depends-on): Likewise.
35610         * modules/argz (Depends-on): Likewise.
35611         * modules/asinl (Depends-on): Likewise.
35612         * modules/atanl (Depends-on): Likewise.
35613         * modules/atoll (Depends-on): Likewise.
35614         * modules/bind (Depends-on): Likewise.
35615         * modules/btowc (Depends-on): Likewise.
35616         * modules/canonicalize-lgpl (Depends-on): Likewise.
35617         * modules/ceil (Depends-on): Likewise.
35618         * modules/ceilf (Depends-on): Likewise.
35619         * modules/ceill (Depends-on): Likewise.
35620         * modules/chdir-long (Depends-on): Likewise.
35621         * modules/chown (Depends-on): Likewise.
35622         * modules/close (Depends-on): Likewise.
35623         * modules/connect (Depends-on): Likewise.
35624         * modules/cosl (Depends-on): Likewise.
35625         * modules/dirfd (Depends-on): Likewise.
35626         * modules/dprintf (Depends-on): Likewise.
35627         * modules/dprintf-posix (Depends-on): Likewise.
35628         * modules/error (Depends-on): Likewise.
35629         * modules/euidaccess (Depends-on): Likewise.
35630         * modules/expl (Depends-on): Likewise.
35631         * modules/faccessat (Depends-on): Likewise.
35632         * modules/fchdir (Depends-on): Likewise.
35633         * modules/fclose (Depends-on): Likewise.
35634         * modules/fcntl (Depends-on): Likewise.
35635         * modules/fdopendir (Depends-on): Likewise.
35636         * modules/fflush (Depends-on): Likewise.
35637         * modules/floor (Depends-on): Likewise.
35638         * modules/floorf (Depends-on): Likewise.
35639         * modules/floorl (Depends-on): Likewise.
35640         * modules/fnmatch (Depends-on): Likewise.
35641         * modules/fopen (Depends-on): Likewise.
35642         * modules/fprintf-posix (Depends-on): Likewise.
35643         * modules/frexp (Depends-on): Likewise.
35644         * modules/frexp-nolibm (Depends-on): Likewise.
35645         * modules/frexpl (Depends-on): Likewise.
35646         * modules/frexpl-nolibm (Depends-on): Likewise.
35647         * modules/fseek (Depends-on): Likewise.
35648         * modules/fsusage (Depends-on): Likewise.
35649         * modules/ftell (Depends-on): Likewise.
35650         * modules/ftello (Depends-on): Likewise.
35651         * modules/futimens (Depends-on): Likewise.
35652         * modules/getcwd (Depends-on): Likewise.
35653         * modules/getcwd-lgpl (Depends-on): Likewise.
35654         * modules/getdelim (Depends-on): Likewise.
35655         * modules/getdomainname (Depends-on): Likewise.
35656         * modules/getgroups (Depends-on): Likewise.
35657         * modules/gethostname (Depends-on): Likewise.
35658         * modules/getline (Depends-on): Likewise.
35659         * modules/getlogin_r (Depends-on): Likewise.
35660         * modules/getopt-posix (Depends-on): Likewise.
35661         * modules/getpeername (Depends-on): Likewise.
35662         * modules/getsockname (Depends-on): Likewise.
35663         * modules/getsockopt (Depends-on): Likewise.
35664         * modules/getsubopt (Depends-on): Likewise.
35665         * modules/getusershell (Depends-on): Likewise.
35666         * modules/glob (Depends-on): Likewise.
35667         * modules/grantpt (Depends-on): Likewise.
35668         * modules/iconv_open (Depends-on): Likewise.
35669         * modules/iconv_open-utf (Depends-on): Likewise.
35670         * modules/inet_ntop (Depends-on): Likewise.
35671         * modules/inet_pton (Depends-on): Likewise.
35672         * modules/ioctl (Depends-on): Likewise.
35673         * modules/isapipe (Depends-on): Likewise.
35674         * modules/isfinite (Depends-on): Likewise.
35675         * modules/isinf (Depends-on): Likewise.
35676         * modules/lchown (Depends-on): Likewise.
35677         * modules/ldexpl (Depends-on): Likewise.
35678         * modules/link (Depends-on): Likewise.
35679         * modules/linkat (Depends-on): Likewise.
35680         * modules/listen (Depends-on): Likewise.
35681         * modules/logl (Depends-on): Likewise.
35682         * modules/lstat (Depends-on): Likewise.
35683         * modules/mbrlen (Depends-on): Likewise.
35684         * modules/mbrtowc (Depends-on): Likewise.
35685         * modules/mbsinit (Depends-on): Likewise.
35686         * modules/mbsnrtowcs (Depends-on): Likewise.
35687         * modules/mbsrtowcs (Depends-on): Likewise.
35688         * modules/mbtowc (Depends-on): Likewise.
35689         * modules/memcmp (Depends-on): Likewise.
35690         * modules/mkdir (Depends-on): Likewise.
35691         * modules/mkdtemp (Depends-on): Likewise.
35692         * modules/mkfifo (Depends-on): Likewise.
35693         * modules/mkfifoat (Depends-on): Likewise.
35694         * modules/mknod (Depends-on): Likewise.
35695         * modules/mkostemp (Depends-on): Likewise.
35696         * modules/mkostemps (Depends-on): Likewise.
35697         * modules/mkstemp (Depends-on): Likewise.
35698         * modules/mkstemps (Depends-on): Likewise.
35699         * modules/mktime (Depends-on): Likewise.
35700         * modules/nanosleep (Depends-on): Likewise.
35701         * modules/open (Depends-on): Likewise.
35702         * modules/openat (Depends-on): Likewise.
35703         * modules/perror (Depends-on): Likewise.
35704         * modules/poll (Depends-on): Likewise.
35705         * modules/popen (Depends-on): Likewise.
35706         * modules/posix_spawn (Depends-on): Likewise.
35707         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
35708         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35709         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35710         * modules/posix_spawnp (Depends-on): Likewise.
35711         * modules/pread (Depends-on): Likewise.
35712         * modules/printf-posix (Depends-on): Likewise.
35713         * modules/ptsname (Depends-on): Likewise.
35714         * modules/putenv (Depends-on): Likewise.
35715         * modules/pwrite (Depends-on): Likewise.
35716         * modules/readline (Depends-on): Likewise.
35717         * modules/readlink (Depends-on): Likewise.
35718         * modules/readlinkat (Depends-on): Likewise.
35719         * modules/recv (Depends-on): Likewise.
35720         * modules/recvfrom (Depends-on): Likewise.
35721         * modules/regex (Depends-on): Likewise.
35722         * modules/remove (Depends-on): Likewise.
35723         * modules/rename (Depends-on): Likewise.
35724         * modules/renameat (Depends-on): Likewise.
35725         * modules/rmdir (Depends-on): Likewise.
35726         * modules/round (Depends-on): Likewise.
35727         * modules/roundf (Depends-on): Likewise.
35728         * modules/roundl (Depends-on): Likewise.
35729         * modules/rpmatch (Depends-on): Likewise.
35730         * modules/select (Depends-on): Likewise.
35731         * modules/send (Depends-on): Likewise.
35732         * modules/sendto (Depends-on): Likewise.
35733         * modules/setenv (Depends-on): Likewise.
35734         * modules/setlocale (Depends-on): Likewise.
35735         * modules/setsockopt (Depends-on): Likewise.
35736         * modules/shutdown (Depends-on): Likewise.
35737         * modules/sigaction (Depends-on): Likewise.
35738         * modules/signbit (Depends-on): Likewise.
35739         * modules/sigprocmask (Depends-on): Likewise.
35740         * modules/sinl (Depends-on): Likewise.
35741         * modules/sleep (Depends-on): Likewise.
35742         * modules/snprintf (Depends-on): Likewise.
35743         * modules/snprintf-posix (Depends-on): Likewise.
35744         * modules/socket (Depends-on): Likewise.
35745         * modules/sprintf-posix (Depends-on): Likewise.
35746         * modules/sqrtl (Depends-on): Likewise.
35747         * modules/stat (Depends-on): Likewise.
35748         * modules/strchrnul (Depends-on): Likewise.
35749         * modules/strdup-posix (Depends-on): Likewise.
35750         * modules/strerror (Depends-on): Likewise.
35751         * modules/strerror_r-posix (Depends-on): Likewise.
35752         * modules/strndup (Depends-on): Likewise.
35753         * modules/strnlen (Depends-on): Likewise.
35754         * modules/strptime (Depends-on): Likewise.
35755         * modules/strsep (Depends-on): Likewise.
35756         * modules/strsignal (Depends-on): Likewise.
35757         * modules/strstr-simple (Depends-on): Likewise.
35758         * modules/strtod (Depends-on): Likewise.
35759         * modules/strtoimax (Depends-on): Likewise.
35760         * modules/strtok_r (Depends-on): Likewise.
35761         * modules/strtoumax (Depends-on): Likewise.
35762         * modules/symlink (Depends-on): Likewise.
35763         * modules/symlinkat (Depends-on): Likewise.
35764         * modules/tanl (Depends-on): Likewise.
35765         * modules/tcgetsid (Depends-on): Likewise.
35766         * modules/tmpfile (Depends-on): Likewise.
35767         * modules/trunc (Depends-on): Likewise.
35768         * modules/truncf (Depends-on): Likewise.
35769         * modules/truncl (Depends-on): Likewise.
35770         * modules/uname (Depends-on): Likewise.
35771         * modules/unlink (Depends-on): Likewise.
35772         * modules/unlockpt (Depends-on): Likewise.
35773         * modules/unsetenv (Depends-on): Likewise.
35774         * modules/usleep (Depends-on): Likewise.
35775         * modules/utimensat (Depends-on): Likewise.
35776         * modules/vasprintf (Depends-on): Likewise.
35777         * modules/vdprintf (Depends-on): Likewise.
35778         * modules/vdprintf-posix (Depends-on): Likewise.
35779         * modules/vfprintf-posix (Depends-on): Likewise.
35780         * modules/vprintf-posix (Depends-on): Likewise.
35781         * modules/vsnprintf (Depends-on): Likewise.
35782         * modules/vsnprintf-posix (Depends-on): Likewise.
35783         * modules/vsprintf-posix (Depends-on): Likewise.
35784         * modules/wcrtomb (Depends-on): Likewise.
35785         * modules/wcscasecmp (Depends-on): Likewise.
35786         * modules/wcscspn (Depends-on): Likewise.
35787         * modules/wcsdup (Depends-on): Likewise.
35788         * modules/wcsncasecmp (Depends-on): Likewise.
35789         * modules/wcsnrtombs (Depends-on): Likewise.
35790         * modules/wcspbrk (Depends-on): Likewise.
35791         * modules/wcsrtombs (Depends-on): Likewise.
35792         * modules/wcsspn (Depends-on): Likewise.
35793         * modules/wcsstr (Depends-on): Likewise.
35794         * modules/wcstok (Depends-on): Likewise.
35795         * modules/wcswidth (Depends-on): Likewise.
35796         * modules/wctob (Depends-on): Likewise.
35797         * modules/wctomb (Depends-on): Likewise.
35798         * modules/wctype (Depends-on): Likewise.
35799         * modules/wcwidth (Depends-on): Likewise.
35800         * modules/write (Depends-on): Likewise.
35802 2011-05-03  Bruno Haible  <bruno@clisp.org>
35804         Support for conditional dependencies.
35805         * doc/gnulib.texi (Module description): Document the syntax of
35806         conditional dependencies.
35807         * gnulib-tool: New option --conditional-dependencies.
35808         (func_usage): Document it.
35809         (cond_dependencies): New variable.
35810         (func_get_automake_snippet_conditional,
35811         func_get_automake_snippet_unconditional): New functions, extracted from
35812         func_get_automake_snippet.
35813         (func_get_automake_snippet): Use them.
35814         (sed_first_32_chars): New variable.
35815         (func_module_shellfunc_name): New function.
35816         (func_module_shellvar_name): New function.
35817         (func_module_conditional_name): New function.
35818         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
35819         func_cond_module_condition): New functions.
35820         (func_modules_transitive_closure): Add support for conditional
35821         dependencies.
35822         (func_emit_lib_Makefile_am): For a conditional module, enclose the
35823         conditional automake snippet in an automake conditional.
35824         (func_emit_autoconf_snippets): Emit shell functions that contain the
35825         code for conditional modules.
35826         (func_import, func_create_testdir): Update specification.
35828 2011-05-03  Eric Blake  <eblake@redhat.com>
35830         test-getaddrinfo: report error information
35831         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
35833 2011-05-03  Jim Meyering  <meyering@redhat.com>
35835         bootstrap: avoid build failure when $GZIP is set
35836         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
35837         program name.  If defined at all, it is supposed to list gzip options.
35838         Reported by Alan Curry in http://debbugs.gnu.org/8609
35840 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
35842         readme-release: new module with release instructions
35843         * modules/readme-release: New module.
35844         * top/README-release: New file, from coreutils, grep, diffutils.
35845         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35847 2011-05-02  Eric Blake  <eblake@redhat.com>
35849         fflush: also replace fclose when fixing fflush
35850         * modules/fflush (Depends-on): Add fclose.
35851         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
35852         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
35853         memstreams with no backing fd.
35854         * doc/posix-functions/fclose.texi (fclose): Document the use of
35855         fflush module to fix the bug.
35856         * tests/test-fclose.c (main): Relax test when fclose is used in
35857         isolation.
35859         fclose: add some tests
35860         * modules/fclose-tests: New test module.
35861         * tests/test-fclose.c: New file.
35862         * doc/posix-functions/fclose.texi (fclose): Document the bug.
35864         fclose: reduced dependencies
35865         * modules/fclose (Depends-on): Switch from fflush/fseeko to
35866         simpler lseek.
35867         * lib/fclose.c (rpl_fclose): Likewise.
35868         Reported by Simon Josefsson.
35870         exit: drop remaining clients
35871         * modules/argmatch (Depends-on): Replace exit with stdlib.
35872         * modules/copy-file (Depends-on): Likewise.
35873         * modules/execute (Depends-on): Likewise.
35874         * modules/exitfail (Depends-on): Likewise.
35875         * modules/obstack (Depends-on): Likewise.
35876         * modules/pagealign_alloc (Depends-on): Likewise.
35877         * modules/pipe-filter-gi (Depends-on): Likewise.
35878         * modules/pipe-filter-ii (Depends-on): Likewise.
35879         * modules/savewd (Depends-on): Likewise.
35880         * modules/spawn-pipe (Depends-on): Likewise.
35881         * modules/wait-process (Depends-on): Likewise.
35882         * modules/xsetenv (Depends-on): Likewise.
35883         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
35884         * modules/git-merge-changelog (Depends-on): Likewise.
35885         * modules/long-options (Depends-on): Likewise.
35886         * modules/pt_chown (Depends-on): Likewise.
35887         * modules/sysexits (Depends-on): Likewise.
35889         freading: relax license from LGPLv3+ to LGPLv2+
35890         * modules/freading (License): Relax LGPL version.
35892 2011-05-02  Bruno Haible  <bruno@clisp.org>
35894         fchdir: Remove unused dependencies.
35895         * modules/fchdir (Depends-on): Remove include_next.
35897 2011-05-02  Bruno Haible  <bruno@clisp.org>
35899         gnulib-tool: Refactor.
35900         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
35901         from func_emit_autoconf_snippets.
35902         (func_emit_autoconf_snippets): Use it.
35904 2011-05-02  Simon Josefsson  <simon@josefsson.org>
35906         * NEWS: Document removal of 'exit'.
35907         * modules/exit: Remove file.
35909 2011-05-01  Bruno Haible  <bruno@clisp.org>
35911         Update DEPENDENCIES.
35912         * DEPENDENCIES (gettext): Recommend the newest release.
35913         Reported by Simon Josefsson.
35915 2011-05-01  Bruno Haible  <bruno@clisp.org>
35917         gnulib-tool: Reduce code duplication.
35918         * gnulib-tool (func_emit_autoconf_snippets): New function.
35919         (func_import, func_create_testdir): Use it.
35921 2011-04-30  Eric Blake  <eblake@redhat.com>
35923         fclose: don't fail on non-seekable input stream
35924         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
35925         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
35926         since fflush is allowed to fail in that case.
35928 2011-04-30  Bruno Haible  <bruno@clisp.org>
35930         dup3: cleanup
35931         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
35933 2011-04-30  Bruno Haible  <bruno@clisp.org>
35935         netdb: Make it work in C++ mode.
35936         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
35937         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
35938         module.
35939         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
35940         gl_MODULE_INDICATOR_FOR_TESTS.
35941         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
35942         * modules/netdb-c++-tests: New file.
35943         * tests/test-netdb-c++.cc: New file.
35945 2011-04-30  Bruno Haible  <bruno@clisp.org>
35947         New modules 'vfscanf', 'vscanf'.
35948         * modules/vfscanf: New file.
35949         * modules/vscanf: New file.
35950         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
35951         here.
35952         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
35953         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
35955 2011-04-30  Bruno Haible  <bruno@clisp.org>
35957         passfd: Add comments.
35958         * lib/passfd.c: Add comments about platforms.
35960 2011-04-30  Bruno Haible  <bruno@clisp.org>
35962         sys_uio: Make <sys/uio.h> self-contained.
35963         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
35964         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
35966 2011-04-30  Bruno Haible  <bruno@clisp.org>
35968         sys_socket: Ensure 'struct iovec' definition.
35969         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
35970         <sys/socket.h>.
35971         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
35973 2011-04-30  Bruno Haible  <bruno@clisp.org>
35975         sys_uio: Protect definition of 'struct iovec'.
35976         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
35977         it as a C struct.
35979 2011-04-30  Bruno Haible  <bruno@clisp.org>
35981         manywarnings: fix indentation
35982         * m4/manywarnings.m4: Indent by 2 spaces consistently.
35984 2011-04-30  Pádraig Brady  <P@draigBrady.com>
35986         manywarnings: add -Wno-missing-field-initializers if needed.
35987         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
35988         option if it's needed to allow initialization with { 0, }
35990 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
35992         announce-gen: cosmetic improvement
35993         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
35995 2011-04-29  Jim Meyering  <meyering@redhat.com>
35997         vc-list-files: indent with spaces, not TABs
35998         * build-aux/vc-list-files: Convert leading TABs to spaces,
35999         to match the style of most other files in gnulib.
36001         announce-gen: indent with spaces, not TABs
36002         * build-aux/announce-gen: Convert all TABs to spaces, to match
36003         the style of most other files in gnulib.
36005 2011-04-29  Eric Blake  <eblake@redhat.com>
36007         quotearg: avoid uninitialized variable use
36008         * lib/quotearg.c (quoting_options_from_style): Initialize
36009         remaining fields, and ensure that custom styles are only used via
36010         quoting_options rather than quoting_style.
36012 2011-04-29  Jim Meyering  <meyering@redhat.com>
36014         maint.mk: remove unused VC-tag variable
36015         * top/maint.mk (VC-tag): Remove unused variable.
36017 2011-04-29  Bruno Haible  <bruno@clisp.org>
36019         netdb: fix gai_strerror replacements
36020         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
36021         * modules/netdb: Substitute it.
36023 2011-04-29  Jim Meyering  <meyering@redhat.com>
36025         test-getcwd.c: avoid new set-but-not-used warning
36026         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
36027         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
36028         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
36029         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
36031         test-hash.c: avoid a new shadowing warning
36032         * tests/test-hash.c (main): Don't shadow "dup".
36034 2011-04-28  Eric Blake  <eblake@redhat.com>
36036         getaddrinfo: fix gai_strerror signature
36037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
36038         and work around mingw with UNICODE defined.
36039         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
36040         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
36041         * modules/netdb (Makefile.am): Substitute it.
36042         * lib/netdb.in.h (gai_strerror): Declare replacement.
36043         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
36044         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
36045         the fix.
36047         getsockopt: avoid compiler warning
36048         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
36049         Reported by Matthias Bolte.
36051         tests: drop unused link dependency
36052         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
36053         * modules/dirent-safer-tests (Makefile.am): Likewise.
36054         * modules/fdopendir-tests (Makefile.am): Likewise.
36055         * modules/mkfifoat-tests (Makefile.am): Likewise.
36056         * modules/openat-safer-tests (Makefile.am): Likewise.
36057         * modules/openat-tests (Makefile.am): Likewise.
36058         * modules/readlinkat-tests (Makefile.am): Likewise.
36059         * modules/symlinkat-tests (Makefile.am): Likewise.
36060         * modules/linkat-tests (Makefile.am): Likewise.
36061         (Depends-on): Switch to filenamecat-lgpl.
36062         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
36063         LIBINTL.
36064         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
36065         * tests/test-linkat.c (main): Don't require xalloc.
36067         hash, mgetgroups: drop xalloc dependency
36068         * lib/hash.c (includes): Adjust includes.
36069         * lib/mgetgroups.c (includes): Likewise.
36070         (xgetgroups): Move...
36071         * lib/xgetgroups.c: ...to new file.
36072         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
36073         * modules/xgetgroups: New file, split from...
36074         * modules/mgetgroups: ...here.
36075         (Depends-on): Add xalloc-oversized.
36076         * modules/hash (Depends-on): Likewise.
36077         * modules/hash-tests (Depends-on): Drop xalloc.
36078         (test_hash_LDADD): Drop unused library.
36079         * tests/test-hash.c (main): Break xalloc dependency.
36080         (includes): Drop unused include.
36082         xalloc-oversized: new module
36083         * modules/xalloc-oversized: New module.
36084         * modules/xalloc (Depends-on): Add it.
36085         * lib/xalloc.h (xalloc_oversized): Move...
36086         * lib/xalloc-oversized.h: ...into new file.
36088         utimecmp: drop dependency on xmalloc
36089         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
36090         due to memory pressure.
36091         * modules/utimecmp (Depends-on): Drop xalloc.
36093 2011-04-27  Eric Blake  <eblake@redhat.com>
36095         getcwd: fix mingw bugs
36096         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
36097         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
36098         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
36100 2011-04-27  Bruno Haible  <bruno@clisp.org>
36102         mkstemps: Ensure declaration on MacOS X 10.5.
36103         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
36104         * doc/glibc-functions/mkstemps.texi: Document header file problem on
36105         MacOS X.
36107 2011-04-27  Bruno Haible  <bruno@clisp.org>
36109         mkstemp: More documentation.
36110         * doc/posix-functions/mkstemp.texi: Document header file problem on
36111         MacOS X.
36113 2011-04-27  Bruno Haible  <bruno@clisp.org>
36115         mkstemp: Tweak configure message when cross-compiling.
36116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
36117         result as a guess.
36119 2011-04-27  Bruno Haible  <bruno@clisp.org>
36121         clean-temp: Clarify what it does.
36122         * lib/clean-temp.h: Add more comments.
36123         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
36124         module.
36125         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
36126         * doc/glibc-functions/mkstemps.texi: Likewise.
36127         * doc/glibc-functions/mkostemps.texi: Likewise.
36129 2011-04-27  Eric Blake  <eblake@redhat.com>
36131         fchdir: avoid extra chdir and fix test
36132         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
36133         getcwd-lgpl.
36134         * lib/fchdir.c (get_name): Any absolute name will do; it does not
36135         have to be canonical.
36136         (canonicalize_file_name): Drop unused macro.
36137         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
36139         filenamecat-lgpl: fix licence
36140         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
36141         when it was first created.
36143         linkat, renameat: add missing dependency
36144         * modules/linkat (Depends-on): Require getcwd-lgpl.
36145         * modules/renameat (Depends-on): Likewise.
36147         tests: reduce dependencies
36148         * tests/test-linkat.c (main): Use lighter-weight getcwd.
36149         * tests/test-renameat.c (main): Likewise.
36150         * modules/linkat-tests (Depends-on): Relax dependency.
36151         * modules/renameat-tests (Depends-on): Likewise.
36152         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
36153         dependency explicit.
36155         save-cwd: reduce default dependency
36156         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
36157         * lib/save-cwd.c: Update comments.
36158         * NEWS: Document the semantic change.
36160         getcwd: enhance tests
36161         * tests/test-getcwd-lgpl.c: New file, taken from...
36162         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
36163         repeat long path stress tests from m4 probe.
36164         * modules/getcwd-lgpl-tests: New module.
36165         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
36166         * m4/getcwd-abort-bug.m4: Update comment.
36167         * m4/getcwd-path-max.m4: Likewise.
36169         getcwd-lgpl: new module
36170         * modules/getcwd-lgpl: New module.
36171         * lib/getcwd-lgpl.c: New file.
36172         * doc/posix-functions/getcwd.texi (getcwd): Document it.
36173         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36174         * modules/getcwd (configure.ac): Set C witness.
36175         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
36177         getcwd: tweak comments
36178         * m4/getcwd-abort-bug.m4: Fix comments.
36179         * m4/getcwd-path-max.m4: Likewise.
36180         * m4/getcwd.m4: Likewise.
36182 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
36183         and Eric Blake  <eblake@redhat.com>
36185         mkstemp: replace if system version uses wrong permissions
36186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
36187         read/write mode bits set in file created by mkstemp.
36188         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
36190 2011-04-27  Eric Blake  <eblake@redhat.com>
36192         passfd: avoid compiler warning
36193         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
36194         Reported by Laine Stump.
36196 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
36198         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
36199         required by the NetBSD (and perhaps other 4.4BSD derived) join.
36201 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
36202         and Eric Blake  <eblake@redhat.com>
36204         mkstemp: mention clean-temp module
36205         * lib/mkstemp.c: Add comment.
36206         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
36208 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
36210         inttypes: also provide default values for 32-bit tests
36211         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
36212         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
36214 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
36216         strtoumax: remove dependency on strtoimax
36217         This is like the strtoull change of yesterday.
36218         * modules/strtoumax (Files): Add lib/strtoimax.c.
36219         (Depends-on): Remove strtoimax and add verify.
36221         inttypes-incomplete: new module
36222         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
36223         all but the PRI* and SCN* parts of gl_INTTYPES_H.
36224         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
36225         of gl_INTTYPES_H.
36226         (gl_INTTYPES_H): Rewrite in terms of these new macros.
36227         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
36228         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
36229         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
36230         * modules/strtoumax, modules/xstrtol (Depends-on):
36231         Depend on inttypes-incomplete, not inttypes.
36232         * modules/inttypes-incomplete: New module, containing the contents
36233         of the old modules/inttypes module, except that the Files: section
36234         omits m4/inttypes-pri.m4, and the configure.ac section invokes
36235         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
36236         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
36237         (Depends-on): Depend only on inttypes-incomplete.
36238         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
36240         inttypes: omit now-redundant strtoimax and strtoumax work
36241         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
36242         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
36244         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
36245         This supports apps that need pointers to strtoimax and strtoumax,
36246         and ports to HP-UX 11.00 64.bit, which has macros that expand to
36247         nonexistent functions.  See
36248         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
36249         et seq.
36250         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
36251         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
36252         a macro.
36253         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36255 2011-04-25  Simon Josefsson  <simon@josefsson.org>
36257         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
36259 2011-04-25  Bruno Haible  <bruno@clisp.org>
36261         strtol, strtoul: Mark modules as obsolete.
36262         * modules/strtol (Status, Notice): New sections.
36263         * modules/strtoul (Status, Notice): New sections.
36265 2011-04-25  Bruno Haible  <bruno@clisp.org>
36267         strtod: Remove check for strtod, unless supporting old platforms.
36268         * modules/strtod-obsolete: New file.
36269         * m4/strtod-obsolete.m4: New file.
36270         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
36271         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
36272         * modules/strtod (Depends-on): Add strtod-obsolete.
36273         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
36275 2011-04-25  Bruno Haible  <bruno@clisp.org>
36277         strcase: Make module obsolete.
36278         * modules/strcase (Status, Notice): New sections.
36280 2011-04-25  Bruno Haible  <bruno@clisp.org>
36282         dup2: Remove check for dup2, unless supporting old obsolete platforms.
36283         * modules/dup2-obsolete: New file.
36284         * m4/dup2-obsolete.m4: New file.
36285         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
36286         gl_FUNC_DUP2_OBSOLETE is not also defined.
36287         * modules/dup2 (Depends-on): Add dup2-obsolete.
36288         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
36290 2011-04-25  Bruno Haible  <bruno@clisp.org>
36292         strnlen: Avoid memchr related link error on old obsolete platforms.
36293         * modules/memchr-obsolete: New file.
36294         * m4/memchr-obsolete.m4: New file.
36295         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
36296         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
36297         * modules/memchr (Depends-on): Add memchr-obsolete.
36298         * modules/strnlen (Depends-on): Likewise.
36299         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
36301 2011-04-25  Jim Meyering  <meyering@redhat.com>
36303         maint.mk: makefile_at_at_check extend and clean up
36304         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
36305         in addition to */Makefile.am.
36306         Exempt legitimate uses of @VAR@ notation, e.g.,
36307         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
36308         Remove obsolete coreutils-specific comment.
36309         Prompted by discussion here:
36310         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
36312 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36314         strtoul: remove dependency on strtol
36315         This is so that 'configure' need not check for strtol merely because
36316         the application needs strtoul.
36317         * modules/strtoul (Files): Add lib/strtol.c.
36318         (Depends-on): Remove strtol.
36320         strtoull: remove dependency on strtoul
36321         This is like the strtoll change.
36322         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
36323         (Depends-on): Remove strtoul.
36325         strtoll: remove dependency on strtol
36326         This is so that 'configure' need not check for strtol merely because
36327         the application needs strtoll.
36328         * modules/strtoll (Files): Add lib/strtol.c.
36329         (Depends-on): Remove strtol.
36331 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36333         inttypes: Move some configure check to module 'imaxdiv'.
36334         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
36335         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
36336         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
36338 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36340         inttypes: Move some configure check to module 'imaxabs'.
36341         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
36342         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
36343         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
36345 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36347         inttypes: Remove configure tests that are not needed since 2009-12-31.
36348         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
36349         gl_cv_header_working_inttypes_h.
36351 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36353         * modules/strnlen (Depends-on): Remove memchr.
36354         The strnlen implementation doesn't need the memchr module's fixes; see
36355         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
36357         strtol: remove dependency on wchar
36358         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
36359         * modules/strtol (Depends-on): Remove wchar.
36361 2011-04-21  Eric Blake  <eblake@redhat.com>
36363         passfd: fix test regression on Linux
36364         * modules/passfd-tests (configure.ac): Correct socketpair check.
36366         passfd: speed up configure and drop unused code
36367         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
36368         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
36369         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
36370         Instead of probing at configure for unix_scm_rights_bsd44_way,
36371         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
36372         check to a struct member probe.
36373         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
36374         (sendfd, recvfd): Update preprocessor checks.
36375         * modules/passfd (Files): Reflect rename, and drop unused file.
36376         (Depends-on): Drop unused dependency.
36378         passfd: allow compilation on mingw
36379         * modules/sys_socket (Depends-on): Add sys_uio.
36380         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
36381         iovec and a minimal struct msghdr.
36382         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
36383         * tests/test-sys_socket.c (main): Enhance test.
36384         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
36385         guaranteed to provide what we need.
36386         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
36387         * modules/passfd-tests (Depends-on): Add sys_wait.
36388         * tests/test-passfd.c (main): Skip test on mingw, for now.
36389         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
36390         partial 'struct msghdr' implementation.
36392         sys_uio: new module
36393         * modules/sys_uio: New module.
36394         * modules/sys_uio-tests: Likewise.
36395         * lib/sys_uio.in.h: New file.
36396         * m4/sys_uio_h.m4: Likewise.
36397         * tests/test-sys_uio.c: Likewise.
36398         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
36399         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
36401 2011-04-20  Jim Meyering  <meyering@redhat.com>
36403         useless-if-before-free: avoid false-positive
36404         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
36405         disjunct so that it too requires a terminating ";".  Without that,
36406         this script would identify as useless one statement from gcc that
36407         was not:
36408           if (aligned_ptr)
36409             free (((void **) aligned_ptr) [-1]);
36411 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
36413         doc: update users.txt.
36414         * users.txt: Add barcode.
36416 2011-04-19  Bruno Haible  <bruno@clisp.org>
36418         ioctl: Remove link dependency on native Windows.
36419         * lib/fd-hook.h: Renamed from lib/close-hook.h.
36420         (gl_close_fn, gl_ioctl_fn): New types.
36421         (struct fd_hook): Renamed from struct close_hook. Change type of
36422         private_close_fn field. Add private_ioctl_fn field.
36423         (close_hook_fn): Add parameter for primary close method.
36424         (execute_close_hooks, execute_all_close_hooks): Likewise.
36425         (ioctl_hook_fn): New type.
36426         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
36427         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36428         argument.
36429         (unregister_fd_hook): Renamed from unregister_close_hook.
36430         * lib/fd-hook.c: Renamed from lib/close-hook.c.
36431         Don't include <unistd.h>.
36432         (close): Remove undef.
36433         (anchor): Update.
36434         (execute_close_hooks): Add argument for primary close method.
36435         (execute_all_close_hooks): Likewise.
36436         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
36437         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36438         argument. Allow each argument to be NULL.
36439         (unregister_fd_hook): Renamed from unregister_close_hook.
36440         * lib/close.c (rpl_close): Pass 'close' function pointer to
36441         execute_all_close_hooks.
36442         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
36443         (primary_ioctl): New function.
36444         (ioctl): Don't call ioctlsocket here. Instead, call
36445         execute_all_ioctl_hooks.
36446         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
36447         close method.
36448         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
36449         (fd_sockets_hook): Renamed from close_sockets_hook.
36450         (gl_sockets_startup, gl_sockets_cleanup): Update.
36451         * modules/fd-hook: Renamed from modules/close-hook. Update.
36452         * modules/close (Depends-on): Add fd-hook, remove close-hook.
36453         * modules/sockets (Depends-on): Likewise.
36454         * modules/ioctl (Depends-on): Add fd-hook.
36455         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
36456         GNULIB_SOCKET.
36458 2011-04-19  Bruno Haible  <bruno@clisp.org>
36460         Move the support of O_NONBLOCK in open() to the 'open' module.
36461         * modules/nonblocking (Depends-on): Remove 'open'.
36462         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
36463         gl_cv_have_open_O_NONBLOCK.
36464         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
36465         O_NONBLOCK support.
36466         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
36468 2011-04-17  Bruno Haible  <bruno@clisp.org>
36470         pipe2: Simplify code.
36471         * lib/pipe2.c (pipe2): Reduce code duplication.
36473 2011-04-17  Bruno Haible  <bruno@clisp.org>
36475         nonblocking: Add comment.
36476         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
36478 2011-04-17  Bruno Haible  <bruno@clisp.org>
36480         nonblocking: Add tests for sockets.
36481         * tests/test-nonblocking-socket.sh: New file.
36482         * tests/test-nonblocking-socket-main.c: New file.
36483         * tests/test-nonblocking-socket-child.c: New file.
36484         * tests/test-nonblocking-socket.h: New file.
36485         * tests/socket-server.h: New file.
36486         * tests/socket-client.h: New file.
36487         * modules/nonblocking-socket-tests: New file.
36488         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
36490 2011-04-17  Bruno Haible  <bruno@clisp.org>
36492         nonblocking: Add tests for pipes.
36493         * tests/test-nonblocking-pipe.sh: New file.
36494         * tests/test-nonblocking-pipe-main.c: New file.
36495         * tests/test-nonblocking-pipe-child.c: New file.
36496         * tests/test-nonblocking-pipe.h: New file.
36497         * tests/test-nonblocking-writer.h: New file.
36498         * tests/test-nonblocking-reader.h: New file.
36499         * tests/test-nonblocking-misc.h: New file.
36500         * modules/nonblocking-pipe-tests: New file.
36501         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
36503 2011-04-16  Bruno Haible  <bruno@clisp.org>
36505         gettext: Clarify the needed programmer actions.
36506         * modules/gettext (Notice): New field.
36507         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36509 2011-04-16  Bruno Haible  <bruno@clisp.org>
36511         strchrnul: Tweak last commit.
36512         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
36513         bug.
36514         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
36515         as in _GL_FUNCDECL_SYS.
36516         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
36517         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
36519 2011-04-15  Eric Blake  <eblake@redhat.com>
36521         strchrnul: work around cygwin bug
36522         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
36523         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
36524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
36525         * modules/string (Makefile.am): Substitute it.
36526         * lib/string.in.h (strchrnul): Use it.
36528 2011-04-15  Bruno Haible  <bruno@clisp.org>
36530         Don't require lib/stdio-write.c when only module 'stdio' is used.
36531         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
36532         invocation.
36533         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
36535 2011-04-14  Bruno Haible  <bruno@clisp.org>
36537         Support non-blocking pipe I/O in read() on native Windows.
36538         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
36539         (read): New declaration.
36540         * lib/read.c: New file.
36541         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
36542         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
36543         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
36544         vscanf): New declarations.
36545         * lib/stdio-read.c: New file.
36546         * m4/read.m4: New file.
36547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
36548         REPLACE_READ.
36549         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
36550         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36551         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
36552         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
36553         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
36554         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36555         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
36556         * modules/read: New file.
36557         * modules/nonblocking (Files): Add lib/stdio-read.c.
36558         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
36559         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
36560         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36561         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
36562         * modules/pread (Depends-on): Add read.
36563         * modules/safe-read (Depends-on): Likewise.
36564         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
36565         gets, scanf, vfscanf, vscanf): Verify signatures.
36566         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
36567         problem with non-blocking pipes.
36568         * doc/posix-functions/fgetc.texi: Likewise.
36569         * doc/posix-functions/fgets.texi: Likewise.
36570         * doc/posix-functions/fread.texi: Likewise.
36571         * doc/posix-functions/fscanf.texi: Likewise.
36572         * doc/posix-functions/getc.texi: Likewise.
36573         * doc/posix-functions/getchar.texi: Likewise.
36574         * doc/posix-functions/gets.texi: Likewise.
36575         * doc/posix-functions/scanf.texi: Likewise.
36576         * doc/posix-functions/vfscanf.texi: Likewise.
36577         * doc/posix-functions/vscanf.texi: Likewise.
36579 2011-04-14  Bruno Haible  <bruno@clisp.org>
36581         Support non-blocking pipe I/O in write() on native Windows.
36582         * lib/write.c (rpl_write): Split a write request that failed merely
36583         because the byte count was larger than the pipe buffer's size.
36584         * doc/posix-functions/write.texi: Mention the problem with large byte
36585         counts.
36587 2011-04-14  Bruno Haible  <bruno@clisp.org>
36589         wchar: Ensure that wchar_t gets defined on uClibc.
36590         * lib/wchar.in.h: On uClibc, include <stddef.h>.
36591         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
36593 2011-04-13  Bruno Haible  <bruno@clisp.org>
36595         safe-write, full-read: Avoid unnecessary compilation units.
36596         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
36597         (Depends-on): Remove safe-read. Add ssize_t.
36598         * modules/full-read (Files): Add lib/full-write.c.
36599         (Depends-on): Add full-write.
36601 2011-04-13  Bruno Haible  <bruno@clisp.org>
36603         Support non-blocking pipe I/O and SIGPIPE in pwrite().
36604         * modules/pwrite (Depends-on): Add 'write'.
36606 2011-04-13  Bruno Haible  <bruno@clisp.org>
36608         Support non-blocking pipe I/O in write() on native Windows.
36609         * lib/unistd.in.h (write): Enable replacement also if
36610         GNULIB_UNISTD_H_NONBLOCKING is 1.
36611         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
36612         (rpl_write): When failing to write on a non-blocking pipe, change
36613         errno from ENOSPC to EAGAIN.
36614         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
36615         putchar, puts, vfprintf, vprintf): Enable replacement also if
36616         GNULIB_STDIO_H_NONBLOCKING is 1.
36617         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
36618         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
36619         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
36620         CALL_WITH_SIGPIPE_EMULATION.
36621         (CALL_WITH_SIGPIPE_EMULATION): Use them.
36622         * m4/nonblocking.m4: New file.
36623         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
36624         for non-blocking I/O support.
36625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36626         GNULIB_UNISTD_H_NONBLOCKING.
36627         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
36628         required for non-blocking I/O support.
36629         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
36630         * modules/nonblocking (Files): Add m4/nonblocking.m4,
36631         lib/stdio-write.c, m4/asm-underscore.m4.
36632         (Depends-on): Add stdio, unistd.
36633         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
36634         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
36635         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
36636         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
36637         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
36638         problem with non-blocking pipes.
36639         * doc/posix-functions/fputc.texi: Likewise.
36640         * doc/posix-functions/fputs.texi: Likewise.
36641         * doc/posix-functions/fwrite.texi: Likewise.
36642         * doc/posix-functions/printf.texi: Likewise.
36643         * doc/posix-functions/putc.texi: Likewise.
36644         * doc/posix-functions/putchar.texi: Likewise.
36645         * doc/posix-functions/puts.texi: Likewise.
36646         * doc/posix-functions/vfprintf.texi: Likewise.
36647         * doc/posix-functions/vprintf.texi: Likewise.
36648         * doc/posix-functions/write.texi: Likewise.
36650 2011-04-10  Jim Meyering  <meyering@redhat.com>
36652         maint.mk: prohibit doubled words
36653         Detect them also when they're separated by a newline.
36654         There are 3 ways to customize it:
36655           - disable the test on a per file basis, as usual with rules using
36656             $(VC_LIST_EXCEPT)
36657           - replace the default doubled-word-selecting regexp (affects all files)
36658           - ignore a particular file-vs-doubled-word match
36659         I nearly used that last one to ignore the "is is" match in
36660         coreutils' NEWS file, since the text was "ls -is is ..."
36661         To do that, I would have added this line to cfg.mk:
36662           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
36663         but it would have ignored any "is is" match in NEWS.
36664         Low probability, but still...
36665         Instead, I changed the text, slightly:
36666           -  ls -is is now consistent with ls -lis in ignoring values returned
36667           +  "ls -is" is now consistent with ls -lis in ignoring values returned
36668         * top/maint.mk (prohibit_double_word_RE_): Provide default.
36669         (prohibit_doubled_word_): Define.
36670         (sc_prohibit_doubled_word): New rule.
36671         (sc_prohibit_the_the): Remove.  Subsumed by the above.
36673 2011-04-10  Jim Meyering  <meyering@redhat.com>
36675         maint: fix doubled-word typo in comment
36676         * m4/gethostname.m4: s/is is/it is/
36677         * m4/getdomainname.m4: Likewise.
36679 2011-04-10  Jim Meyering  <meyering@redhat.com>
36681         maint: remove doubled word: s/it it/it/
36682         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
36684 2011-04-10  Jim Meyering  <meyering@redhat.com>
36686         maint.mk: remove useless semicolon and backslash
36687         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
36688         semicolon and backslash.
36690 2011-04-10  Bruno Haible  <bruno@clisp.org>
36692         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
36693         * modules/stdint-tests (Depends-on): Add wchar.
36695 2011-04-10  Jim Meyering  <meyering@redhat.com>
36697         maint: remove doubled words in comments, e.g., s/a a/a/
36698         * lib/strptime.c (day_of_the_week): s/the the/the/
36699         * tests/test-chown.h (test_chown): s/a a/a/
36701         test-chown.h: correct a cast
36702         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
36703         when the destination is a stat.st_gid.
36705 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
36707         getaddrinfo: Fix test for sa_len member.
36708         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
36709         include <sys/types.h> before <sys/socket.h>.
36711 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36713         maint: change "can not" to "cannot"
36714         * doc/posix-functions/iconv.texi (iconv): This one crossed line
36715         boundaries.
36717 2011-04-09  Jim Meyering  <meyering@redhat.com>
36719         maint: change "a a" to "a"
36720         * tests/test-lchown.h (test_lchown): s/a a/a/
36722         maint.mk: prohibit \<the the\>
36723         * top/maint.mk (sc_prohibit_the_the): New rule.
36725         maint: fix "the the" in comment
36726         * lib/count-one-bits.h: s/the the/the/
36728         maint: change "can not" to "cannot"
36729         But do not change the occurrences in maintain.texi or in
36730         build-aux/po/Makefile.in.in, which I presume comes from gettext.
36731         * doc/gnulib-tool.texi: s/can not/cannot/
36732         * doc/posix-functions/accept.texi (accept): Likewise.
36733         * doc/posix-functions/socket.texi (socket): Likewise.
36734         * lib/mbrtowc.c: Likewise.
36736         maint.mk: prohibit use of "can not"
36737         * top/maint.mk (sc_prohibit_can_not): New rule.
36738         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
36740 2011-04-09  Bruno Haible  <bruno@clisp.org>
36742         careadlinkat: Guard against misuse of careadlinkatcwd.
36743         * lib/careadlinkat.c: Include <stdlib.h>.
36744         (careadlinkatcwd): Check that the fd argument is as expected.
36746 2011-04-09  Bruno Haible  <bruno@clisp.org>
36748         careadlinkat: Use common coding style.
36749         * lib/careadlinkat.c: Move gnulib includes after system includes.
36751 2011-04-09  Bruno Haible  <bruno@clisp.org>
36753         careadlinkat: Clarify specification.
36754         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
36755         (careadlinkatcwd): Add comment.
36756         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
36758 2011-04-09  Bruno Haible  <bruno@clisp.org>
36760         areadlinkat: Avoid link error on many platforms.
36761         * modules/areadlinkat (Depends-on): Add areadlink.
36763 2011-04-09  Bruno Haible  <bruno@clisp.org>
36765         allocator, careadlinkat: Fix double-inclusion guard.
36766         * lib/allocator.h: Fix double-inclusion guard.
36767         * lib/careadlinkat.h: Likewise.
36769 2011-04-09  Bruno Haible  <bruno@clisp.org>
36771         relocatable-prog-wrapper: Update after module 'areadlink' changed.
36772         * lib/relocwrapper.c: Update dependencies hierarchy.
36773         * build-aux/install-reloc: Update list of files to be compiled.
36774         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
36775         lib/allocator.[hc].
36777 2011-04-08  Eric Blake  <eblake@redhat.com>
36779         strftime: silence gnulib-tool warning
36780         * modules/strftime-tests (Depends-on): Drop automatic dependency.
36782 2011-04-08  Bruno Haible  <bruno@clisp.org>
36784         verify: Fix syntax error with GCC 4.6 in C++ mode.
36785         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
36786         (HAVE_STATIC_ASSERT): New macro.
36787         (verify_true, verify): Use 'static_assert' if it is supported and
36788         '_Static_assert' is not supported.
36790 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
36792         allocator: New module.
36793         * modules/allocator, lib/allocator.c: New files.
36794         * lib/allocator.h (stdlib_allocator): New decl.
36795         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
36796         Remove.  Do not include <stdlib.h>.
36797         (careadlinkat): Use stdlib_allocator instead of rolling our own.
36798         * modules/careadlinkat (Files): Remove lib/allocator.h.
36799         (Depends-on): Add allocator.
36801         stdlib: let modules use system malloc, realloc
36802         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
36803         if !_GL_USE_STDLIB_ALLOC.
36804         (malloc, realloc): Limit this change to a smaller scope.
36806         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
36807         (malloc, realloc): Don't #undef; no longer needed.
36808         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36809         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36810         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
36811         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36812         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36813         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36814         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36815         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
36817         careadlinkat: rename members to avoid problem
36818         * lib/allocator.h (struct allocator): Rename members from
36819         malloc/realloc to allocate/reallocate, to avoid problems if malloc
36820         and realloc are #define'd.  Reported by Eric Blake in
36821         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
36822         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
36824 2011-04-08  Eric Blake  <eblake@redhat.com>
36826         nonblocking: reduce dependency
36827         * tests/test-nonblocking.c: Only test sockets when in use.
36828         * modules/nonblocking-tests (Depends-on): Drop socket.
36829         (Makefile.am): Link even if sockets are not present.
36830         * modules/pipe2-tests (Makefile.am): Likewise.
36831         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
36833         pipe2: fix O_NONBLOCK support on mingw
36834         * modules/pipe2 (Depends-on): Add nonblocking.
36835         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
36836         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
36837         * tests/test-nonblocking.c (main): Likewise.
36838         * modules/pipe2-tests (Makefile.am): Avoid link failure.
36840         fcntl-h: fix O_ACCMODE on cygwin
36841         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
36842         * lib/fcntl.in.h (O_ACCMODE): Fix it.
36844         pipe-filter: drop O_NONBLOCK workarounds
36845         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
36846         * modules/pipe-filter-ii (Depends-on): Likewise.
36847         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
36849         nonblocking: provide O_NONBLOCK for mingw
36850         * modules/nonblocking (Depends-on): Add open.
36851         (configure.ac): Set new witness macro.
36852         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
36853         * modules/fcntl-h (Makefile.am): Substitute it.
36854         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
36855         nonblocking module is in use.
36856         * lib/nonblocking.c: Adjust portability test.
36857         * lib/open.c (open): Don't let native open see gnulib flag.
36858         * tests/test-fcntl-h.c (main): Enhance test.
36859         * tests/test-open.h (test_open): Likewise.
36860         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
36862         careadlinkat: fix compilation error on mingw
36863         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
36864         within struct allocator.
36866 2011-04-06  Eric Blake  <eblake@redhat.com>
36868         binary-io: relicense under LGPLv2+
36869         * modules/binary-io (License): Relax to LGPLv2+.
36870         Requested for libvirt, and required by pipe2.
36872 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
36874         verify: use _Static_assert if available
36875         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
36876         (verify_true, verify): Use it if available.  This generates better
36877         diagnostics with GCC 4.6.0 and later.
36879 2011-04-05  Bruno Haible  <bruno@clisp.org>
36881         Remove leftover generated .h files after config.status changed.
36883         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
36884         GL_GENERATE_ALLOCA_H.
36885         * modules/alloca-opt (Makefile.am): Remove alloca.h if
36886         GL_GENERATE_ALLOCA_H evaluates to false.
36888         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
36889         GL_GENERATE_ARGZ_H.
36890         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
36891         evaluates to false.
36893         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
36894         GL_GENERATE_BYTESWAP_H.
36895         * modules/byteswap (Makefile.am): Remove byteswap.h if
36896         GL_GENERATE_BYTESWAP_H evaluates to false.
36898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
36899         GL_GENERATE_ERRNO_H.
36900         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
36901         evaluates to false.
36903         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
36904         GL_GENERATE_FLOAT_H.
36905         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
36906         evaluates to false.
36908         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
36909         GL_GENERATE_FNMATCH_H.
36910         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
36911         GL_GENERATE_FNMATCH_H evaluates to false.
36913         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
36914         GL_GENERATE_GLOB_H.
36915         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
36916         evaluates to false.
36918         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
36919         automake conditional GL_GENERATE_ICONV_H.
36920         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
36921         evaluates to false.
36923         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
36924         GL_GENERATE_NETINET_IN_H.
36925         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
36926         GL_GENERATE_NETINET_IN_H evaluates to false.
36928         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
36929         conditional GL_GENERATE_PTHREAD_H.
36930         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
36931         * modules/pthread (Makefile.am): Remove pthread.h if
36932         GL_GENERATE_PTHREAD_H evaluates to false.
36934         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
36935         GL_GENERATE_SCHED_H.
36936         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
36937         evaluates to false.
36939         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
36940         conditional GL_GENERATE_SELINUX_CONTEXT_H.
36941         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
36942         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
36944         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
36945         GL_GENERATE_STDARG_H.
36946         * modules/stdarg (Makefile.am): Remove stdarg.h if
36947         GL_GENERATE_STDARG_H evaluates to false.
36949         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
36950         GL_GENERATE_STDBOOL_H.
36951         * modules/stdbool (Makefile.am): Remove stdbool.h if
36952         GL_GENERATE_STDBOOL_H evaluates to false.
36954         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
36955         conditional GL_GENERATE_STDDEF_H.
36956         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
36957         * modules/stddef (Makefile.am): Remove stddef.h if
36958         GL_GENERATE_STDDEF_H evaluates to false.
36960         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
36961         GL_GENERATE_STDINT_H.
36962         * modules/stdint (Makefile.am): Remove stdint.h if
36963         GL_GENERATE_STDINT_H evaluates to false.
36965         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
36966         GL_GENERATE_SYSEXITS_H.
36967         * modules/sysexits (Makefile.am): Remove sysexits.h if
36968         GL_GENERATE_SYSEXITS_H evaluates to false.
36970         Reported by Karl Berry and Ralf Wildenhues.
36972 2011-04-05  Bruno Haible  <bruno@clisp.org>
36974         Ensure to rebuild generated .h files when config.status has changed.
36975         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
36976         config.status.
36977         * modules/ctype (Makefile.am): Likewise.
36978         * modules/dirent (Makefile.am): Likewise.
36979         * modules/errno (Makefile.am): Likewise.
36980         * modules/fcntl-h (Makefile.am): Likewise.
36981         * modules/float (Makefile.am): Likewise.
36982         * modules/getopt-posix (Makefile.am): Likewise.
36983         * modules/glob (Makefile.am): Likewise.
36984         * modules/iconv-h (Makefile.am): Likewise.
36985         * modules/inttypes (Makefile.am): Likewise.
36986         * modules/langinfo (Makefile.am): Likewise.
36987         * modules/locale (Makefile.am): Likewise.
36988         * modules/math (Makefile.am): Likewise.
36989         * modules/netdb (Makefile.am): Likewise.
36990         * modules/netinet_in (Makefile.am): Likewise.
36991         * modules/poll-h (Makefile.am): Likewise.
36992         * modules/pthread (Makefile.am): Likewise.
36993         * modules/pty (Makefile.am): Likewise.
36994         * modules/sched (Makefile.am): Likewise.
36995         * modules/search (Makefile.am): Likewise.
36996         * modules/selinux-h (Makefile.am): Likewise.
36997         * modules/signal (Makefile.am): Likewise.
36998         * modules/spawn (Makefile.am): Likewise.
36999         * modules/stdarg (Makefile.am): Likewise.
37000         * modules/stdbool (Makefile.am): Likewise.
37001         * modules/stddef (Makefile.am): Likewise.
37002         * modules/stdint (Makefile.am): Likewise.
37003         * modules/stdio (Makefile.am): Likewise.
37004         * modules/stdlib (Makefile.am): Likewise.
37005         * modules/string (Makefile.am): Likewise.
37006         * modules/strings (Makefile.am): Likewise.
37007         * modules/sys_file (Makefile.am): Likewise.
37008         * modules/sys_ioctl (Makefile.am): Likewise.
37009         * modules/sys_select (Makefile.am): Likewise.
37010         * modules/sys_socket (Makefile.am): Likewise.
37011         * modules/sys_stat (Makefile.am): Likewise.
37012         * modules/sys_time (Makefile.am): Likewise.
37013         * modules/sys_times (Makefile.am): Likewise.
37014         * modules/sys_utsname (Makefile.am): Likewise.
37015         * modules/sys_wait (Makefile.am): Likewise.
37016         * modules/sysexits (Makefile.am): Likewise.
37017         * modules/termios (Makefile.am): Likewise.
37018         * modules/time (Makefile.am): Likewise.
37019         * modules/unistd (Makefile.am): Likewise.
37020         * modules/wchar (Makefile.am): Likewise.
37021         * modules/wctype-h (Makefile.am): Likewise.
37022         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
37024 2011-04-05  Bruno Haible  <bruno@clisp.org>
37026         pipe2: Relicense under LGPLv2+.
37027         * modules/pipe2 (License): Change to LGPLv2+.
37028         Requested by Eric Blake, for libvirt.
37030 2011-04-05  Bruce Korb  <bkorb@gnu.org>
37032         bootstrap: compute gnulib_extra_files after updating build_aux
37033         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
37034         change build_aux or also supply gnulib_extra_files.  Handle correctly.
37036 2011-04-05  Eric Blake  <eblake@redhat.com>
37038         bootstrap: preserve git whitelist item sorting
37039         * build-aux/bootstrap (sort_patterns): New function.
37040         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
37042 2011-04-05  Simon Josefsson  <simon@josefsson.org>
37044         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
37045         sc_space_tab check.
37047 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
37049         areadlink, areadlinkat: rewrite in terms of careadlinkat
37050         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
37051         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
37052         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
37053         (malloc, realloc): Remove #undefs.
37054         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
37055         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
37056         readlink, ssize_t, stdint, unistd.
37057         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
37058         areadlink, stdint.
37060         careadlinkat: new module
37061         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
37062         * modules/careadlinkat: New files, written by me with
37063         a review and feedback from Ben Pfaff in
37064         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
37066 2011-04-01  Bruno Haible  <bruno@clisp.org>
37068         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
37069         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
37070         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
37071         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
37072         Reported by Bruce Korb <bruce.korb@gmail.com>.
37074 2011-04-01  Bruno Haible  <bruno@clisp.org>
37076         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
37077         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
37078         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
37079         * modules/wcpcpy (Depends-on): Add extensions.
37080         * modules/wcpncpy (Depends-on): Likewise.
37081         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
37082         systems.
37083         * doc/posix-functions/wcpncpy.texi: Likewise.
37084         * doc/posix-functions/wcwidth.texi: Likewise.
37086 2011-03-31  Eric Blake  <eblake@redhat.com>
37088         nonblocking: fix mingw test failures
37089         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
37090         non-blocking flag on regular file.
37091         (get_nonblocking_flag): Set errno on invalid fd.
37092         * tests/test-nonblocking.c (main): Avoid test failure on
37093         directories if fchdir is not active.
37094         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
37096 2011-03-31  Bruno Haible  <bruno@clisp.org>
37098         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
37099         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
37100         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
37101         Reported by Simon Josefsson <simon@josefsson.org>.
37103 2011-03-31  Bruno Haible  <bruno@clisp.org>
37104         and Eric Blake  <eblake@redhat.com>
37106         nonblocking: new module
37107         * modules/nonblocking: New module.
37108         * modules/nonblocking-tests: Likewise.
37109         * lib/nonblocking.h: New file.
37110         * lib/nonblocking.c: Likewise.
37111         * tests/test-nonblocking.c: New test.
37112         * lib/ioctl.c (ioctl) [mingw]: Update comment.
37114 2011-03-30  Bruno Haible  <bruno@clisp.org>
37116         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
37117         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
37118         instead of 'printf' format for GCC >= 4.4.
37119         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
37120         (fprintf, printf, vfprintf, vprintf): Declare with
37121         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
37122         the system's vfprintf() function.
37123         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
37125 2011-03-30  Eric Blake  <eblake@redhat.com>
37127         passfd: fix scoping bug
37128         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
37129         before sendmsg/recvmsg.
37131         passfd: standardize coding conventions
37132         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
37133         can be learned at compile time.
37134         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
37135         ifdefs.
37136         (sendfd, recvfd): Follow gnulib code conventions.
37138         passfd: fix incorrect sendmsg arguments
37139         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
37140         incorrect msg_controllen value.
37141         * modules/passfd-tests (Depends-on): Check for alarm.
37142         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
37143         Reported by Bastien ROUCARIES.
37145 2011-03-30  Bruno Haible  <bruno@clisp.org>
37147         c-strcasestr: Relicense under LGPLv2+.
37148         * modules/c-strcasestr (License): Change to LGPLv2+.
37149         Requested by Eric Blake, for libvirt.
37151 2011-03-30  Simon Josefsson  <simon@josefsson.org>
37153         * users.txt: Add libidn2.  Fix libtasn1 link.
37155 2011-03-30  Jim Meyering  <meyering@redhat.com>
37157         tests: readlink* ("",... fails with EINVAL on newer kernels
37158         readlink and readlinkat have typically failed with ENOENT for
37159         the invalid, empty file name,  "".  However, with the advent
37160         of linux-2.6.39, they fail with EINVAL.
37161         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
37162         when operating on the empty file name.
37163         * tests/test-readlink.h (test_readlink): Likewise.
37165 2011-03-29  Bruno Haible  <bruno@clisp.org>
37167         Relicense some modules under LGPLv2+, for libidn2.
37168         * modules/array-mergesort (License): Change to LGPLv2+.
37169         * modules/c-strcaseeq (License): Likewise.
37170         * modules/striconveh (License): Likewise.
37171         * modules/striconveha (License): Likewise.
37172         * modules/uniconv/base (License): Likewise.
37173         * modules/uniconv/u8-conv-from-enc (License): Likewise.
37174         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
37175         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
37176         * modules/unictype/base (License): Likewise.
37177         * modules/unictype/bidiclass-of (License): Likewise.
37178         * modules/unictype/category-M (License): Likewise.
37179         * modules/unictype/category-none (License): Likewise.
37180         * modules/unictype/category-of (License): Likewise.
37181         * modules/unictype/category-test (License): Likewise.
37182         * modules/unictype/category-test-withtable (License): Likewise.
37183         * modules/unictype/combining-class (License): Likewise.
37184         * modules/unictype/joiningtype-of (License): Likewise.
37185         * modules/unictype/scripts (License): Likewise.
37186         * modules/uninorm/base (License): Likewise.
37187         * modules/uninorm/canonical-decomposition (License): Likewise.
37188         * modules/uninorm/composition (License): Likewise.
37189         * modules/uninorm/decompose-internal (License): Likewise.
37190         * modules/uninorm/decomposition-table (License): Likewise.
37191         * modules/uninorm/nfc (License): Likewise.
37192         * modules/uninorm/nfd (License): Likewise.
37193         * modules/uninorm/u32-normalize (License): Likewise.
37194         * modules/unistr/base (License): Likewise.
37195         * modules/unistr/u32-cpy (License): Likewise.
37196         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
37197         * modules/unistr/u32-to-u8 (License): Likewise.
37198         * modules/unistr/u32-uctomb (License): Likewise.
37199         * modules/unistr/u8-check (License): Likewise.
37200         * modules/unistr/u8-mblen (License): Likewise.
37201         * modules/unistr/u8-mbtouc (License): Likewise.
37202         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
37203         * modules/unistr/u8-mbtoucr (License): Likewise.
37204         * modules/unistr/u8-prev (License): Likewise.
37205         * modules/unistr/u8-strlen (License): Likewise.
37206         * modules/unistr/u8-to-u32 (License): Likewise.
37207         * modules/unistr/u8-uctomb (License): Likewise.
37208         * modules/unitypes (License): Likewise.
37209         Requested by Simon Josefsson.
37211 2011-03-29  Simon Josefsson  <simon@josefsson.org>
37213         lib-symbol-visibility: Add a notice.
37214         * modules/lib-symbol-visibility (Notice): New field.
37216 2011-03-29  Bruno Haible  <bruno@clisp.org>
37218         getaddrinfo: Doc fix.
37219         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
37220         section "fixed in Gnulib".
37222 2011-03-28  Simon Josefsson  <simon@josefsson.org>
37224         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
37225         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
37227 2011-03-26  Bruno Haible  <bruno@clisp.org>
37229         unictype/property-byname: Reduce the number of load-time relocations.
37230         * lib/unictype/pr_byname.c: Include <stdlib.h>.
37231         (UC_PROPERTY_INDEX_*): New enumeration values.
37232         (uc_property_byname): Convert an index from the lookup table to an
37233         uc_property_t.
37234         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
37235         values.
37237 2011-03-26  Bruno Haible  <bruno@clisp.org>
37239         unictype/property-byname: Allow omitted word separators and aliases.
37240         * lib/unictype/pr_byname.gperf: Add property names without word
37241         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
37242         for 'space'.
37244 2011-03-26  Bruno Haible  <bruno@clisp.org>
37246         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
37247         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
37248         also hyphens to space.
37249         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
37250         without spaces.
37251         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
37253 2011-03-26  Bruno Haible  <bruno@clisp.org>
37255         unictype/joiningtype-byname: Recognize long names as well.
37256         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
37257         a long name.
37258         * lib/unictype/joiningtype_byname.c: Include <string.h>,
37259         unictype/joiningtype_byname.h.
37260         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
37261         * lib/unictype/joiningtype_byname.gperf: New file.
37262         * modules/unictype/joiningtype-byname (Files): Add
37263         lib/unictype/joiningtype_byname.gperf.
37264         (Depends-on): Add gperf.
37265         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
37266         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
37267         long names.
37269         Tests for module 'unictype/joiningtype-longname'.
37270         * modules/unictype/joiningtype-longname-tests: New file.
37271         * tests/unictype/test-joiningtype_longname.c: New file.
37273         New module 'unictype/joiningtype-longname'.
37274         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
37275         * lib/unictype/joiningtype_longname.c: New file.
37276         * modules/unictype/joiningtype-longname: New file.
37277         * modules/unictype/joiningtype-all (Depends-on): Add
37278         unictype/joiningtype-longname.
37280 2011-03-26  Bruno Haible  <bruno@clisp.org>
37282         unictype/bidiclass-byname: Recognize long names as well.
37283         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
37284         name.
37285         * lib/unictype/bidi_byname.c: Include <string.h>,
37286         unictype/bidi_byname.h.
37287         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
37288         * lib/unictype/bidi_byname.gperf: New file.
37289         * modules/unictype/bidiclass-byname (Files): Add
37290         lib/unictype/bidi_byname.gperf.
37291         (Depends-on): Add gperf.
37292         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
37293         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
37294         long names.
37296         Tests for module 'unictype/bidiclass-longname'.
37297         * modules/unictype/bidiclass-longname-tests: New file.
37298         * tests/unictype/test-bidi_longname.c: New file.
37300         New module 'unictype/bidiclass-longname'.
37301         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
37302         * lib/unictype/bidi_longname.c: New file.
37303         * modules/unictype/bidiclass-longname: New file.
37304         * modules/unictype/bidiclass-all (Depends-on): Add
37305         unictype/bidiclass-longname.
37307 2011-03-26  Bruno Haible  <bruno@clisp.org>
37309         unictype/bidi*: Rename modules.
37310         * modules/unictype/bidiclass-all: Renamed from
37311         modules/unictype/bidicategory-all.
37312         * modules/unictype/bidiclass-name: Renamed from
37313         modules/unictype/bidiclass-name.
37314         (Description): Update.
37315         * modules/unictype/bidiclass-name-tests: Renamed from
37316         modules/unictype/bidicategory-name-tests.
37317         * modules/unictype/bidiclass-byname: Renamed from
37318         modules/unictype/bidicategory-byname.
37319         (Description): Update.
37320         * modules/unictype/bidiclass-byname-tests: Renamed from
37321         modules/unictype/bidicategory-byname-tests.
37322         * modules/unictype/bidiclass-of: Renamed from
37323         modules/unictype/bidicategory-of.
37324         (Description): Update.
37325         * modules/unictype/bidiclass-of-tests: Renamed from
37326         modules/unictype/bidicategory-of-tests.
37327         * modules/unictype/bidiclass-test: Renamed from
37328         modules/unictype/bidicategory-test.
37329         (Description): Update.
37330         * modules/unictype/bidiclass-test-tests: Renamed from
37331         modules/unictype/bidicategory-test-tests.
37332         * modules/unictype/bidicategory-all: New file, a simple redirection.
37333         * modules/unictype/bidicategory-name: Likewise.
37334         * modules/unictype/bidicategory-byname: Likewise.
37335         * modules/unictype/bidicategory-of: Likewise.
37336         * modules/unictype/bidicategory-test: Likewise.
37337         * modules/unictype/property-bidi-* (Dependencies): Update.
37338         * lib/unictype/bidi_*.c: Update comment.
37340 2011-03-26  Bruno Haible  <bruno@clisp.org>
37342         unictype/bidi*: Rename functions, part 2.
37343         * modules/unictype/bidicategory-name (configure.ac): Update required
37344         libunistring version.
37345         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
37347 2011-03-25  Bruno Haible  <bruno@clisp.org>
37349         New module 'unictype/combining-class-all'.
37350         * modules/unictype/combining-class-all: New file.
37352         Tests for module 'unictype/combining-class-byname'.
37353         * modules/unictype/combining-class-byname-tests: New file.
37354         * tests/unictype/test-combiningclass_byname.c: New file.
37356         New module 'unictype/combining-class-byname'.
37357         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
37358         * lib/unictype/combiningclass_byname.c: New file.
37359         * lib/unictype/combiningclass_byname.gperf: New file.
37360         * modules/unictype/combining-class-byname: New file.
37362         Tests for module 'unictype/combining-class-longname'.
37363         * modules/unictype/combining-class-longname-tests: New file.
37364         * tests/unictype/test-combiningclass_longname.c: New file.
37366         New module 'unictype/combining-class-longname'.
37367         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
37368         * lib/unictype/combiningclass_longname.c: New file.
37369         * modules/unictype/combining-class-longname: New file.
37371         Tests for module 'unictype/combining-class-name'.
37372         * modules/unictype/combining-class-name-tests: New file.
37373         * tests/unictype/test-combiningclass_name.c: New file.
37375         New module 'unictype/combining-class-name'.
37376         * lib/unictype.in.h (uc_combining_class_name): New declaration.
37377         * lib/unictype/combiningclass_name.c: New file.
37378         * modules/unictype/combining-class-name: New file.
37380 2011-03-25  Bruno Haible  <bruno@clisp.org>
37382         unictype/combining-class: Rename source files.
37383         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
37384         of unictype/combining.h.
37385         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
37386         Update.
37387         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
37388         * modules/unictype/combining-class (Description): Fix.
37389         (Files, Makefile.am): Update.
37390         * tests/unictype/test-combiningclass.c: Renamed from
37391         tests/unictype/test-combining.c.
37392         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
37394 2011-03-25  Bruno Haible  <bruno@clisp.org>
37396         unictype: Update list of canonical combining classes.
37397         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
37399 2011-03-25  Bruno Haible  <bruno@clisp.org>
37401         unictype/category-byname: Recognize long names as well.
37402         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
37403         a long name.
37404         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
37405         unictype/categ_byname.h.
37406         (UC_CATEGORY_INDEX_*): New enumeration values.
37407         (uc_general_category_byname): Use uc_general_category_lookup and
37408         convert from index to value.
37409         * lib/unictype/categ_byname.gperf: New file.
37410         * modules/unictype/category-byname (Files): Add
37411         lib/unictype/categ_byname.gperf.
37412         (Depends-on): Add gperf.
37413         (Makefile.am): Add rule for generating unictype/categ_byname.h.
37414         * tests/unictype/test-categ_byname.c (main): Test the recognition of
37415         long names.
37417         Tests for module 'unictype/category-longname'.
37418         * modules/unictype/category-longname-tests: New file.
37419         * tests/unictype/test-categ_longname.c: New file.
37421         New module 'unictype/category-longname'.
37422         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
37423         * lib/unictype/categ_longname.c: New file.
37424         * modules/unictype/category-longname: New file.
37425         * modules/unictype/category-all (Depends-on): Add it.
37427 2011-03-25  Bruno Haible  <bruno@clisp.org>
37429         Tests for module 'unictype/category-LC'.
37430         * modules/unictype/category-LC-tests: New file.
37431         * tests/unictype/test-categ_LC.c: New file, automatically generated.
37433         New module 'unictype/category-LC'.
37434         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
37435         (UC_CATEGORY_LC): New declaration.
37436         (UC_CASED_LETTER): New macro.
37437         * lib/gen-uni-tables.c (is_category_LC): New function.
37438         (output_categories): Also handle category LC.
37439         (UC_CATEGORY_MASK_LC): New enumeration value.
37440         (general_category_byname): Also handle category LC.
37441         * lib/unictype/categ_LC.c: New file.
37442         * lib/unictype/categ_LC.h: New file, automatically generated.
37443         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
37444         category LC.
37445         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
37446         * modules/unictype/category-LC: New file.
37447         * modules/unictype/category-byname (Depends-on): Add
37448         unictype/category-LC.
37449         * modules/unictype/category-all (Depends-on): Likewise.
37451 2011-03-25  Eric Blake  <eblake@redhat.com>
37453         xmalloc: revert yesterday's regression
37454         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
37455         realloc's underlying behavior (allowing allocation of zero-size
37456         objects, especially if malloc-gnu is also in use).
37458 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
37460         maint.mk: add missing version to VC-tag
37461         * top/maint.mk: git tag was missing actual tag name; add it.
37463         valgrind: do leak checking, and exit with code 1 on error (not 0)
37464         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
37465         to VALGRIND.
37467 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
37469         posix-modules: say what it does.
37470         * posix-modules: Add a line to the --help output saying what it does.
37472 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
37474         xmalloc: Do not leak if underlying realloc is C99 compatible.
37475         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
37476         This avoids a leak on C99-based systems.  See
37477         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
37479 2011-03-24  Eric Blake  <eblake@redhat.com>
37481         realloc: document portability problem
37482         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
37483         passing 0 size to realloc.
37485 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
37487         doc: update users.txt
37488         * users.txt: Add cvsps, tmpwatch
37490 2011-03-23  Matt Rice  <ratmice@gmail.com>
37492         doc: update users.txt
37493         * users.txt: Add gdb.
37495 2011-03-23  Jim Meyering  <meyering@redhat.com>
37497         doc: update users.txt
37498         Looking through matches up to the following URL (there are still
37499         several more pages), I found several projects that use gnulib:
37500         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
37501         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
37502         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
37504 2011-03-22  Bruno Haible  <bruno@clisp.org>
37506         unictype/bidi*: Rename functions.
37507         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
37508         uc_bidi_class, uc_is_bidi_class): New declarations.
37509         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
37510         uc_bidi_category_byname.
37511         (uc_bidi_category_byname): New function.
37512         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
37513         u_bidi_category_name.
37514         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
37515         (uc_bidi_category_name): New function.
37516         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
37517         uc_bidi_category.
37518         (uc_bidi_category): New function.
37519         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
37520         uc_is_bidi_category. Invoke uc_bidi_class.
37521         (uc_is_bidi_category): New function.
37522         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
37523         instead of uc_bidi_category_byname.
37524         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
37525         instead of uc_bidi_category_name.
37526         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
37527         uc_bidi_category.
37528         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
37529         instead of uc_is_bidi_category.
37531 2011-03-21  Bruno Haible  <bruno@clisp.org>
37533         New module 'unictype/joininggroup-all'.
37534         * modules/unictype/joininggroup-all: New file.
37536         Tests for module 'unictype/joininggroup-of'.
37537         * modules/unictype/joininggroup-of-tests: New file.
37538         * tests/unictype/test-joininggroup_of.c: New file.
37539         * tests/unictype/test-joininggroup_of.h: New file, automatically
37540         generated by gen-uni-tables.
37542         New module 'unictype/joininggroup-of'.
37543         * modules/unictype/joininggroup-of: New file.
37544         * lib/unictype/joininggroup_of.c: New file.
37545         * lib/unictype/joininggroup_of.h: New file, automatically generated by
37546         gen-uni-tables.
37548         Tests for module 'unictype/joininggroup-byname'.
37549         * modules/unictype/joininggroup-byname-tests: New file.
37550         * tests/unictype/test-joininggroup_byname.c: New file.
37552         New module 'unictype/joininggroup-byname'.
37553         * modules/unictype/joininggroup-byname: New file.
37554         * lib/unictype/joininggroup_byname.c: New file.
37555         * lib/unictype/joininggroup_byname.gperf: New file.
37557         Tests for module 'unictype/joininggroup-name'.
37558         * modules/unictype/joininggroup-name-tests: New file.
37559         * tests/unictype/test-joininggroup_name.c: New file.
37561         New module 'unictype/joininggroup-name'.
37562         * modules/unictype/joininggroup-name: New file.
37563         * lib/unictype/joininggroup_name.c: New file.
37564         * lib/unictype/joininggroup_name.h: New file.
37566         New module 'unictype/joiningtype-all'.
37567         * modules/unictype/joiningtype-all: New file.
37569         Tests for module 'unictype/joiningtype-of'.
37570         * modules/unictype/joiningtype-of-tests: New file.
37571         * tests/unictype/test-joiningtype_of.c: New file.
37572         * tests/unictype/test-joiningtype_of.h: New file, automatically
37573         generated by gen-uni-tables.
37575         New module 'unictype/joiningtype-of'.
37576         * modules/unictype/joiningtype-of: New file.
37577         * lib/unictype/joiningtype_of.c: New file.
37578         * lib/unictype/joiningtype_of.h: New file, automatically generated by
37579         gen-uni-tables.
37581         Tests for module 'unictype/joiningtype-byname'.
37582         * modules/unictype/joiningtype-byname-tests: New file.
37583         * tests/unictype/test-joiningtype_byname.c: New file.
37585         New module 'unictype/joiningtype-byname'.
37586         * modules/unictype/joiningtype-byname: New file.
37587         * lib/unictype/joiningtype_byname.c: New file.
37589         Tests for module 'unictype/joiningtype-name'.
37590         * modules/unictype/joiningtype-name-tests: New file.
37591         * tests/unictype/test-joiningtype_name.c: New file.
37593         New module 'unictype/joiningtype-name'.
37594         * modules/unictype/joiningtype-name: New file.
37595         * lib/unictype/joiningtype_name.c: New file.
37597         unictype: Add support for Arabic shaping properties.
37598         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
37599         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
37600         declarations.
37601         (UC_JOINING_GROUP_*): New enumeration values.
37602         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
37603         declarations.
37604         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
37605         (unicode_joining_type): New variable.
37606         (UC_JOINING_GROUP_*): New enumeration values.
37607         (unicode_joining_group): New variable.
37608         (fill_arabicshaping, joining_type_as_c_identifier,
37609         output_joining_type_test, output_joining_type,
37610         joining_group_as_c_identifier, output_joining_group_test,
37611         output_joining_group): New functions.
37612         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
37613         fill_arabicshaping and output_joining_type_test, output_joining_type,
37614         output_joining_group_test, output_joining_group.
37615         Reported by Simon Josefsson.
37617 2011-03-21  Jim Meyering  <meyering@redhat.com>
37619         strftime: fix a bug in yesterday's change
37620         * lib/strftime.c (add): Accommodate width's initial value of -1.
37621         Otherwise, nstrftime would copy uninitialized data into
37622         the result buffer.
37624 2011-03-21  Jim Meyering  <meyering@redhat.com>
37626         tests: add strftime-tests module
37627         * tests/test-strftime.c: New file.
37628         * modules/strftime-tests: New module.
37630 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37632         strftime: don't assume a byte count fits in 'int'
37633         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
37634         found this problem by static analysis, using gcc -Wstrict-overflow
37635         (GCC 4.5.2, x86-64).  This reported an optimization that depended
37636         on an integer overflow having undefined behavior, but it turns out
37637         that the argument is a size, which might not fit in 'int' anyway,
37639 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37641         stdio: don't require ignore_value around fwrite
37643         This patch works around libc bug 11959
37644         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
37645         Without this patch, applications must often write
37646         ignore_value (fwrite (...)) even though the ignore_value is
37647         not helpful here.  It's common to write many objects, using
37648         fwrite/printf/etc., and then use ferror to detect output error.
37650         I considered making this patch optional, but decided against it,
37651         because libc is obviously being inconsistent here: there is no
37652         reason libc should insist that user code must inspect fwrite
37653         return's value without also insisting that it inspect printf's,
37654         putchar's, etc.  If user code wants to have a strict style where
37655         all these functions' values are checked (so that ferror need not
37656         be checked), we could add support for that style in a new gnulib
37657         module, but in the meantime it's better to be consistent and to
37658         support common usage.
37660         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
37661         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
37662         that we are compiling in checking mode, and if not C++, and
37663         if not already wrapping fwrite for some other reason.
37664         (fwrite): #define to rpl_fwrite if the latter is defined.
37666 2011-03-20  Bruno Haible  <bruno@clisp.org>
37668         verror: Fix compilation error introduced on 2011-02-13.
37669         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
37670         instead of __attribute__.
37671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37673 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37674             Bruno Haible  <bruno@clisp.org>
37676         socklen: do not depend on sys_socket
37677         While trying to modify Emacs to use gnulib's socklen module,
37678         I discovered a circular dependency: socklen depends on sys_socket
37679         and vice versa.  Emacs can use socklen, but it does not need
37680         sys_socket because it has its own substitute for sys/socket.h.
37681         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
37682         gl_TYPE_SOCKLEN_T.
37683         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
37684         gl_PREREQ_SYS_H_SOCKET.
37685         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
37686         gl_PREREQ_SYS_H_SOCKET.
37687         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
37688         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
37689         * modules/socklen (Depends-on): Do not depend on sys_socket.
37690         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
37692 2011-03-20  Jim Meyering  <meyering@redhat.com>
37694         maint.mk: sort file names *after* new transformation
37695         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
37696         prefix would have led to an unwarranted failure in GNU parted.
37697         Sort after that transformation.
37699 2011-03-19  Jim Meyering  <meyering@redhat.com>
37701         maint.mk: fix po-file syntax-check rule
37702         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
37703         Patch by Bruno Haible.
37705 2011-03-19  Bruno Haible  <bruno@clisp.org>
37707         socklen: Update comment.
37708         * m4/socklen.m4: Update comment about platforms.
37710 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37711             Bruno Haible  <bruno@clisp.org>
37713         inet_ntop, inet_pton: Simplify.
37714         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
37715         documented to provide socklen_t and we already depend on sys_socket.
37716         * modules/inet_pton (Depends-on): Likewise.
37717         * lib/arpa_inet.in.h: Adjust comment.
37719 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37720             Bruno Haible  <bruno@clisp.org>
37722         netdb: Simplify.
37723         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
37724         documented to provide socklen_t and we already depend on sys_socket.
37725         * lib/netdb.in.h: Adjust comment.
37727 2011-03-19  Bruno Haible  <bruno@clisp.org>
37729         sys_socket, netdb: Document problem with socklen_t.
37730         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
37731         platforms.
37732         * doc/posix-headers/netdb.texi: Likewise.
37734 2011-03-18  Eric Blake  <eblake@redhat.com>
37736         maint.mk: let po check work in VPATH build
37737         * top/maint.mk (po_file): Allow cfg.mk override.
37738         (sc_po_check): Allow VPATH use.
37739         Reported by Jiri Denemark.
37741 2011-03-16  Jim Meyering  <meyering@redhat.com>
37743         maint.mk: allow fine-grained syntax-check exclusion via Make variables
37744         Before, you would have had to create one .x-sc_ file per rule in order
37745         to exempt offending files.  Now, you may instead use a Make variable --
37746         usually defined in cfg.mk -- whose name identifies the affected rule.
37747         * top/maint.mk (_sc_excl): Define.
37748         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
37749         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
37751 2011-03-13  Bruno Haible  <bruno@clisp.org>
37753         ignore-value tests: Avoid warnings.
37754         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
37755         empty for gcc < 3.4.
37757 2011-03-13  Bruno Haible  <bruno@clisp.org>
37759         passfd: Fix link error on Solaris.
37760         * modules/passfd (Description): Correct.
37761         (Depends-on): Add socketlib.
37762         (Link): New section.
37763         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
37765 2011-03-13  Bruno Haible  <bruno@clisp.org>
37767         passfd: Fix link error on AIX 5.2.
37768         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
37770 2011-03-13  Bruno Haible  <bruno@clisp.org>
37772         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
37773         * lib/sys_socket.in.h: Include <stddef.h>.
37774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
37775         CMSG_FIRSTHDR. Remove unused variable.
37777 2011-03-13  Bruno Haible  <bruno@clisp.org>
37779         passfd: Fix compilation error on OpenBSD.
37780         * lib/passfd.c: Include <sys/uio.h>.
37782 2011-03-13  Bruno Haible  <bruno@clisp.org>
37784         passfd test: Fix warnings.
37785         * tests/test-passfd.c: Include <sys/wait.h>.
37786         (main): Fix typo.
37788 2011-03-13  Bruno Haible  <bruno@clisp.org>
37790         passfd module, part 4, tweaks.
37791         * tests/test-passfd.c: Reorder includes.
37792         (main): Fix perror and printf calls.
37794 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
37796         passfd module, part 4.
37797         * modules/passfd-tests: New file.
37798         * tests/test-passfd.c: New file.
37800 2011-03-13  Jim Meyering  <meyering@redhat.com>
37802         Makefile: rely on GNU make; derive syntax-check rule names
37803         Rather than requiring that each sc_ rule be listed as a dependent
37804         of "check", use features of GNU make to derive the list.
37805         * Makefile (syntax-check-rules): Define.
37806         (check): Depend on the new variable, not the hard-coded list.
37808 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
37809             Bruno Haible  <bruno@clisp.org>
37811         passfd module, part 3.
37812         * lib/passfd.h (recvfd): Add a flags argument.
37813         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
37814         (recvfd): Add a flags argument.
37815         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
37816         exists.
37817         * modules/passfd (Depends-on): Add cloexec.
37818         Suggested by Eric Blake.
37820 2011-03-13  Bruno Haible  <bruno@clisp.org>
37822         passfd module, part 2, tweaks.
37823         * modules/passfd (Files): Reorder.
37824         (Depends-on): Remove errno.
37825         (Include): Remove <sys/socket.h>, <sys/un.h>.
37826         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
37827         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
37828         specification header. Include <sys/socket.h> always. Don't include
37829         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
37830         (sendfd): Clarify that it sets errno when it fails.
37831         (recvfd): Fix specification.
37833 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
37835         passfd module, part 2.
37836         * modules/passfd: New file.
37837         * lib/passfd.h: New file.
37838         * lib/passfd.c: New file.
37840 2011-03-12  Bruno Haible  <bruno@clisp.org>
37842         wcswidth, mbswidth: Avoid integer overflow.
37843         * lib/wcswidth.c: Include <limits.h>.
37844         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
37845         * lib/mbswidth.c: Include <limits.h>.
37846         (mbsnwidth): Avoid 'int' overflow.
37847         Reported by Jim Meyering.
37849 2011-03-12  Bruno Haible  <bruno@clisp.org>
37851         futimens, utimensat: Avoid endless recursion on Solaris 10.
37852         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
37853         Solaris.
37854         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
37855         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
37857 2011-03-11  Jim Meyering  <meyering@redhat.com>
37859         maint.mk: relax a regexp to accommodate other formatting styles
37860         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
37861         between "ngettext" and the following "(".
37863 2011-03-11  Pádraig Brady  <P@draigBrady.com>
37865         maint.mk: suppress a false positive warning
37866         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
37867         diagnostics are marked with ngettext.
37869 2011-03-10  Eric Blake  <eblake@redhat.com>
37871         wchar: add explicit dependencies, for Tru64
37872         * modules/mbmemcasecoll (Depends-on): Add wchar.
37873         * modules/mbtowc (Depends-on): Likewise.
37874         * modules/vasnprintf (Depends-on): Likewise.
37875         * modules/unistdio/u-printf-args (Depends-on): Likewise.
37876         * modules/wctomb (Depends-on): Likewise.
37877         Reported by Peter O'Gorman.
37879 2011-03-08  Bruno Haible  <bruno@clisp.org>
37881         passfd module, part 1, tweaks.
37882         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
37883         Improve indentation. Improve AC_MSG_CHECKING messages.
37884         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
37885         gl_SOCKET_FAMILIES.
37887 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
37889         passfd module, part 1.
37890         * m4/afunix.m4: New file.
37891         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
37892         sockets.
37894 2011-03-08  Bruno Haible  <bruno@clisp.org>
37896         regex-quote: New API.
37897         * lib/regex-quote.h: Include <stdbool.h>.
37898         (struct regex_quote_spec): New type.
37899         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
37900         New declarations.
37901         (regex_quote_length, regex_quote_copy, regex_quote): Take a
37902         'const struct regex_quote_spec *' argument.
37903         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
37904         (pcre_special): New constant.
37905         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
37906         New functions.
37907         (regex_quote_length, regex_quote_copy, regex_quote): Take a
37908         'const struct regex_quote_spec *' argument.
37909         * modules/regex-quote (Depends-on): Add stdbool.
37910         * tests/test-regex-quote.c (check): Update for new API. Add test for
37911         anchored results.
37912         * NEWS: Mention the API change.
37913         Reported by Reuben Thomas and Eric Blake.
37915 2011-03-06  Bruno Haible  <bruno@clisp.org>
37917         regex-quote: Fix creation of POSIX extended regular expressions.
37918         * lib/regex-quote.c (ere_special): Add grouping and alternation
37919         operators.
37921 2011-03-05  Bruno Haible  <bruno@clisp.org>
37923         doc: Improve doc regarding autopoint vs. gnulib.
37924         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
37925         disable autopoint while running autoreconf.
37926         Suggested by Ralf Wildenhues.
37928 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37930         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
37931         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
37933 2011-03-03  Bruce Korb  <bkorb@gnu.org>
37935         parse-duration: remove xalloc.h dependency
37936         * lib/parse-duration.c (parse_period): handle NULL return from
37937         strdup instead of calling xstrdup().
37938         * modules/parse-duration: remove "xalloc" dependency
37940 2011-03-03  Matthew Booth  <mbooth@redhat.com>
37942         bootstrap: honor m4_base when running aclocal
37943         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
37945 2011-03-02  Jim Meyering  <meyering@redhat.com>
37947         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
37948         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
37949         on request from Matt Booth.
37951 2011-03-01  Eric Blake  <eblake@redhat.com>
37953         test-link: work on Hurd
37954         * tests/test-link.h (test_link): Hurd rejects linking directories
37955         with EISDIR instead of the POSIX-mandated EPERM.
37957 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
37959         stdio: simplify by moving files to printf-posix, sigpipe
37960         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
37961         since this symbol is needed only if printf is replaced.
37962         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
37963         Require gl_ASM_SYMBOL_PREFIX.
37964         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
37965         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
37966         (Depends-on): Add 'raise'.
37967         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
37968         * modules/stdio (Files): Remove lib/stdio-write.c,
37969         m4/asm-underscore.m4.
37970         (Depends-on): Remove 'raise'.
37972         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
37973         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
37974         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
37975         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
37977 2011-02-28  Bruno Haible  <bruno@clisp.org>
37979         localcharset: Assume ANSI C behaviour of free().
37980         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
37981         calling free().
37982         Suggested by Simon Josefsson <simon@josefsson.org>.
37984 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
37985             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
37986             Bruno Haible  <bruno@clisp.org>  (tiny change)
37988         On Cygwin, use /proc file system instead of win32 API.
37989         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
37990         Win32 file names.
37991         (DllMain): Simplify by removing Cygwin specific code.
37992         (find_shared_library_fullname): Use Linux specific implementation also
37993         for Cygwin.
37994         (get_shared_library_fullname): Update accordingly.
37995         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
37996         Win32 file names.
37997         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
37998         Cygwin specific code.
38000 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
38001             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
38003         Fix OpenMP flag detection for various Fortran compilers.
38004         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
38005         OpenMP-conditional compilation construct, to force compile
38006         failure with missing OpenMP flag.
38007         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
38009 2011-02-25  Eric Blake  <eblake@redhat.com>
38011         strstr: expand test coverage
38012         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
38013         compilation.
38014         * tests/test-memmem.c (main): Duplicate tests.
38015         * tests/test-strcasestr.c (main): Likewise.
38016         * tests/test-c-strcasestr.c (main): Likewise.
38018 2011-02-25  Jim Meyering  <meyering@redhat.com>
38020         maint.mk: detect missing-NL-at-EOF, too
38021         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
38022         it also detects when a file lacks a newline at EOF.
38023         (require_exactly_one_NL_at_EOF_): Renamed from
38024         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
38025         since people may well have .x-sc_... file names tied to the
38026         existing name.  Suggested by Eric Blake.
38028 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38030         dirname: move m4/dos.m4 functionality into lib/dosname.h
38032         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
38033         extracts symbols from it, puts them into config.h; but it's much
38034         easier to use the symbols directly.  filename.h already does this,
38035         but it disagrees with dos.m4 in some respects.  This patch
38036         introduces a different include file dosname.h that packages up
38037         dos.m4, and then later we can work on merging filename.h and
38038         dosname.h.  Applications that need only the easy-to-configure
38039         symbols should consider including dosname.h rather than dirname.h.
38040         * NEWS: Mention incompatible changes.
38041         * m4/dos.m4: Remove.
38042         * lib/dosname.h, modules/dosname: New files.
38043         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
38044         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
38045         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
38046         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
38047         Include dosname.h, not dirname.h.
38048         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
38049         Include dosname.h, for definitions of symbols like ISSLASH
38050         that used to be in config.h.
38051         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
38052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
38053         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38054         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
38055         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
38056         * modules/rmdir (Files): Likewise.
38057         * modules/stat (Files): Likewise.
38058         * modules/unlink (Files): Likewise.
38059         * modules/dirname-lgpl (Depends-on): Add dosname.
38060         * modules/lstat (Depends-on): Likewise.
38061         * modules/openat (Depends-on): Likewise.
38062         * modules/rmdir (Depends-on): Likewise.
38063         * modules/savewd (Depends-on): Likewise.
38064         * modules/stat (Depends-on): Likewise.
38065         * modules/unlink (Depends-on): Likewise.
38066         * modules/openat (Depends-on): Remove dirname-lgpl.
38067         * modules/savewd (Depends-on): Likewise.
38068         * tests/test-dirname.c: Do not use removed symbols like
38069         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
38070         the remaining symbols, e.g., ISSLASH ('\\').
38072 2011-02-25  Eric Blake  <eblake@redhat.com>
38074         strstr: revert patches that introduced bug and pessimization
38075         * lib/str-two-way.h: Add another reference.
38076         (two_way_short_needle, two_way_long_needle): Revert changes from
38077         2011-02-24; they pessimize search speed.
38078         (critical_factorization): Partially revert changes from
38079         2010-06-22; they violate the requirement that the left half of the
38080         needle be smaller than the period of the needle.
38082 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38084         filenamecat: remove unnecessary dependency on dirname-lgpl
38085         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
38086         is no direct dependency, just an indirect one via filenamecat-lgpl.
38088         remove: remove unnecessary use of m4/dos.m4
38089         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
38090         * modules/remove (FILES): Remove m4/dos.m4.
38092         * lib/openat-proc.c: Don't include dirname.h; not needed.
38094         backupfile: remove unnecessary use of m4/dos.m4
38095         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
38096         of its symbols are used by the backupfile code.  backupfile.c does
38097         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
38098         for the rare case of programs that want all their backup file
38099         names to live within 8+3 limits, and dos.m4 doesn't address that.
38100         * modules/backupfile (Files): Remove m4/dos.m4.
38102 2011-02-24  Jim Meyering  <meyering@redhat.com>
38104         strstr: fix a bug whereby strstr would mistakenly return NULL
38105         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
38106         in period calculation.
38107         (two_way_long_needle): Likewise.
38108         The original problem was reported by Mike Stump in
38109         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
38110         Ralf Wildenhues provided the short needle and haystack.
38111         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
38112         Add a more involved test to trigger the bug in two_way_long_needle.
38114 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38116         gnulib-tool: remove use of bold display in help screen
38117         * gnulib-tool (func_usage): Do not use bold display anymore in the
38118         help screen.  That was just meant to be a temporary emphasis for a
38119         backward-incompatible change.
38121 2011-02-23  Bruno Haible  <bruno@clisp.org>
38123         Fix misindentation of preprocessor directives.
38124         * lib/argp-namefrob.h: Reindent preprocessor directives.
38125         * lib/getopt_int.h (struct _getopt_data): Likewise.
38126         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
38127         * lib/vasnprintf.c (decode_long_double): Likewise.
38128         * tests/test-argmatch.c: Insert blank lines, for clarity.
38129         * tests/test-exclude.c: Likewise.
38131 2011-02-22  Bruno Haible  <bruno@clisp.org>
38133         ioctl: Fix for MacOS X in 64-bit mode.
38134         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
38135         value.
38136         Suggested by Eric Blake.
38137         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
38139 2011-02-22  Jim Meyering  <meyering@redhat.com>
38141         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
38142         * Makefile (sc_cpp_indent_check): Don't limit the check to files
38143         in lib/.
38145 2011-02-22  Eric Blake  <eblake@redhat.com>
38147         maint: avoid any CDPATH issue
38148         * Makefile (sc_cpp_indent_check): Anchor cd argument.
38150         maint: adjust cpp indentation for my modules, as well
38151         * Makefile (sc_cpp_indent_check): Add my name.
38152         * lib/fbufmode.c: Filter through cppi.
38153         * lib/fpurge.c: Likewise.
38154         * lib/freadable.c: Likewise.
38155         * lib/freading.c: Likewise.
38156         * lib/fwritable.c: Likewise.
38157         * lib/fwriting.c: Likewise.
38158         * lib/sigaction.c: Likewise.
38160 2011-02-22  Jim Meyering  <meyering@redhat.com>
38162         maint: adjust cpp indentation to reflect nesting depth
38163         I.e., in a block of code that begins with an unnested "#if",
38164         put one space between the "#" in column 1 and following token.
38165         For example,
38166         -#include <sys/vfs.h>
38167         +# include <sys/vfs.h>
38168         Do this only in .c files that are part of a module I maintain.
38169         * lib/linkat.c: Filter through cppi.
38170         * lib/nanosleep.c: Likewise.
38171         * lib/openat.c: Likewise.
38172         * lib/openat-die.c: Likewise.
38173         * lib/dup3.c: Likewise.
38174         * lib/fchownat.c: Likewise.
38175         * lib/flock.c: Likewise.
38176         * lib/fsync.c: Likewise.
38177         * lib/fts.c: Likewise.
38178         * lib/getpass.c: Likewise.
38179         * lib/gettimeofday.c: Likewise.
38180         * lib/userspec.c: Likewise.
38181         * Makefile (sc_cpp_indent_check): New rule, to check this.
38183 2011-02-22  Bruno Haible  <bruno@clisp.org>
38185         New module 'wctomb'.
38186         * lib/stdlib.in.h (wctomb): New declaration.
38187         * lib/wctomb.c: New file.
38188         * lib/wctomb-impl.h: New file.
38189         * m4/wctomb.m4: New file.
38190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
38191         REPLACE_WCTOMB.
38192         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
38193         REPLACE_WCTOMB.
38194         * modules/wctomb: New file.
38195         * tests/test-stdlib-c++.cc: Test signature of wctomb.
38196         * doc/posix-functions/wctomb.texi: Mention the new module.
38197         * modules/wctob (Depends-on): Add wctomb.
38199 2011-02-22  Bruno Haible  <bruno@clisp.org>
38201         New module 'mbtowc'.
38202         * lib/stdlib.in.h (mbtowc): New declaration.
38203         * lib/mbtowc.c: New file.
38204         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
38205         * m4/mbtowc.m4: New file.
38206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
38207         REPLACE_MBTOWC.
38208         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
38209         REPLACE_MBTOWC.
38210         * modules/mbtowc: New file.
38211         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
38212         * doc/posix-functions/mbtowc.texi: Mention the new module.
38213         * modules/btowc (Depends-on): Add mbtowc.
38215 2011-02-22  Bruno Haible  <bruno@clisp.org>
38217         wcrtomb: Add more tests for native Windows platforms.
38218         * tests/test-wcrtomb-w32-1.sh: New file.
38219         * tests/test-wcrtomb-w32-2.sh: New file.
38220         * tests/test-wcrtomb-w32-3.sh: New file.
38221         * tests/test-wcrtomb-w32-4.sh: New file.
38222         * tests/test-wcrtomb-w32-5.sh: New file.
38223         * tests/test-wcrtomb-w32.c: New file.
38224         * modules/wcrtomb-tests (Files): Add them.
38225         (Makefile.am): Arrange to run these tests.
38226         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
38227         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
38229 2011-02-20  Bruno Haible  <bruno@clisp.org>
38231         wcrtomb: Enhance test.
38232         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
38234 2011-02-20  Bruno Haible  <bruno@clisp.org>
38236         mbrtowc: Tiny optimization.
38237         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
38239 2011-02-20  Jim Meyering  <meyering@redhat.com>
38241         test-exclude.c: remove unmatched #endif
38242         * tests/test-exclude.c: Remove stray #endif, left over from
38243         the change of a week ago.
38245 2011-02-19  Jim Meyering  <meyering@redhat.com>
38247         git-version-gen: skip "-dirty" check when appropriate
38248         * build-aux/git-version-gen: Don't run any git commands when the
38249         version string comes from .tarball-version.  Prior to this, we
38250         would run git update-index --refresh even from a just-unpacked
38251         tarball directory, and that could affect a .git/ directory in a
38252         parent of the build directory.  Reported by Mike Frysinger.
38254 2011-02-19  Bruno Haible  <bruno@clisp.org>
38256         unictype/property-byname: Reduce the size of the 'data' segment.
38257         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
38259 2011-02-19  Bruno Haible  <bruno@clisp.org>
38261         unictype/scripts: Reduce the size of the 'data' segment.
38262         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
38263         '%pic'.
38264         * lib/unictype/scripts_byname.gperf: Regenerated.
38266 2011-02-19  Bruno Haible  <bruno@clisp.org>
38268         stdint: Update documentation.
38269         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
38271 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
38273         stdint: omit redundant check for wchar.h
38274         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
38275         always tests whether wchar.h exists, so remove the now-redundant test.
38277 2011-02-18  Bruno Haible  <bruno@clisp.org>
38279         stdint: Cut dependency to module 'wchar'.
38280         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
38281         include the necessary prerequisites.
38282         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
38283         * modules/stdint (Depends-on): Remove wchar.
38284         (Makefile.am): Substitute HAVE_WCHAR_H.
38285         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
38287 2011-02-18  Eric Blake  <eblake@redhat.com>
38289         longlong: skip, rather than fail, on cross-compilation
38290         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
38291         when cross-compiling; regression from 2011-02-16.
38293 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38295         * NEWS: Mention 2011-02-08 change to stdlib.
38297 2011-02-17  Bruno Haible  <bruno@clisp.org>
38299         getloadavg: Add comments about platforms.
38300         * m4/getloadavg.m4: Add comment.
38301         * lib/getloadavg.c: Likewise.
38303 2011-02-17  Bruno Haible  <bruno@clisp.org>
38305         getloadavg: Fix link error on Solaris 2.6.
38306         * modules/getloadavg (Link): New section.
38307         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
38308         linking test-getloadavg.
38309         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
38310         getloadavg.
38312 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38314         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
38315         It was 'int', but this doesn't match the IRIX 6.5 manual.
38316         Suggested by Bruno Haible in
38317         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
38319 2011-02-17  Bruno Haible  <bruno@clisp.org>
38321         havelib: Fix comments.
38322         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
38323         change.
38325 2011-02-17  Bruno Haible  <bruno@clisp.org>
38327         havelib: Update config.rpath.
38328         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
38330 2011-02-17  Bruno Haible  <bruno@clisp.org>
38332         getloadavg test: Add some plausibility checks.
38333         * tests/test-getloadavg.c (check_avg): Print a warning when the value
38334         is improbable.
38336 2011-02-16  Eric Blake  <eblake@redhat.com>
38338         maintainer-makefile: make syntax-check a no-op from tarballs
38339         * top/maint.mk (no-vc-detected): New rule.
38340         (local-checks-available): Use it to avoid hanging if someone tries
38341         'make syntax-check' from a tarball.  Also append to any non-syntax
38342         checks already defined in cfg.mk.
38344 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
38346         longlong: tune, particularly for common case of c99
38348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
38349         or running anything if c99, or if unsigned long long int does not
38350         work.  In either case, we know the answer without further tests.
38351         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
38352         it at most once, and use its results for both long long int and
38353         unsigned long long int.  This is more likely to be efficient in
38354         the common case where the program wants to check for both long
38355         long int and unsigned long long int.
38356         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
38357         since the answer is already known.
38359 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
38361         getloadavg: set errno
38362         * lib/getloadavg.c: Set errno when returning -1.  If no other
38363         error number looks appropriate, set it to ENOSYS if the getloadavg
38364         looks like it can't possibly ever work, ENOTSUP otherwise.
38365         Suggested by Bruno Haible in
38366         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
38368         getloadavg: trim unused parts and speed up 'configure'
38369         * NEWS: Document this.
38370         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
38371         always compiled if getloadavg is absent.
38372         Move test code to ...
38373         * tests/test-getloadavg.c: New file, containing previous
38374         contents of test from lib/getloadavg.c.  It also contains
38375         suggestions by Bruno Haible in
38376         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
38377         * modules/getloadavg-tests: New file.
38378         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
38379         Do tests in the same order as they're needed for getloadavg.c.
38380         Omit setgid-related tests that generate symbols KMEM_GROUP,
38381         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
38382         Do only the tests that are needed to see whether the system has
38383         getloadavg, moving the other tests into ...
38384         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
38385         NLIST_NAME_UNION; nobody should be using it.  Do not define
38386         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
38387         relevant, as the user of this module shouldn't care how getloadavg
38388         is implemented.
38390         getloadavg: omit unused var
38391         * lib/getloadavg.c (getloadavg): Omit unused local variable.
38393 2011-02-15  Jim Meyering  <meyering@redhat.com>
38395         doc: update users.txt
38396         * users.txt: Update iwhd's URL.
38398 2011-02-13  Bruno Haible  <bruno@clisp.org>
38400         Consistent macro naming for macros that use GCC __attribute__.
38401         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
38402         _ATTRIBUTE_NONNULL_.
38403         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
38404         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
38405         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
38406         ATTRIBUTE_DEPRECATED.
38407         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
38408         ATTRIBUTE_NORETURN.
38409         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38410         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38411         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38412         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38413         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
38414         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
38415         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
38416         ATTRIBUTE_SENTINEL.
38417         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
38418         ATTRIBUTE_RETURN_CHECK.
38419         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
38420         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
38421         ATTRIBUTE_NORETURN.
38422         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
38423         Reported by Paul Eggert.
38425 2011-02-13  Bruno Haible  <bruno@clisp.org>
38427         Don't interfere with a program's definition of __attribute__.
38428         * lib/argp.h (__attribute__): Remove definition.
38429         (_GL_ATTRIBUTE_FORMAT): New macro.
38430         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
38431         * lib/argp-fmtstream.h (__attribute__): Remove definition.
38432         (_GL_ATTRIBUTE_FORMAT): New macro.
38433         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
38434         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
38435         GCC 3 or newer.
38436         * lib/error.h (__attribute__): Remove definition.
38437         (_GL_ATTRIBUTE_FORMAT): New macro.
38438         (error, error_at_line): Use it.
38439         * lib/hash.h (__attribute__): Remove definition.
38440         (ATTRIBUTE_WUR): Update definition. Define always.
38441         * lib/openat.h (__attribute__): Remove definition.
38442         (ATTRIBUTE_NORETURN): Update definition. Define always.
38443         * lib/sigpipe-die.h (__attribute__): Remove definition.
38444         (ATTRIBUTE_NORETURN): Update definition. Define always.
38445         * lib/vasnprintf.h (__attribute__): Remove definition.
38446         (_GL_ATTRIBUTE_FORMAT): New macro.
38447         (asnprintf, vasnprintf): Use it.
38448         * lib/xalloc.h (__attribute__): Remove definition.
38449         (ATTRIBUTE_NORETURN): Update definition. Define always.
38450         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
38451         * lib/xmemdup0.h (__attribute__): Remove definition.
38452         (ATTRIBUTE_NORETURN): Update definition. Define always.
38453         * lib/xprintf.h (__attribute__): Remove definition.
38454         (_GL_ATTRIBUTE_FORMAT): New macro.
38455         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
38456         * lib/xstrtol.h (__attribute__): Remove definition.
38457         (ATTRIBUTE_NORETURN): Update definition. Define always.
38458         * lib/xvasprintf.h (__attribute__): Remove definition.
38459         (_GL_ATTRIBUTE_FORMAT): New macro.
38460         (xasprintf, xvasprintf): Use it.
38461         * tests/test-argmatch.c (__attribute__): Remove definition.
38462         (ATTRIBUTE_NORETURN): Update definition. Define always.
38463         * tests/test-exclude.c (__attribute__): Remove definition.
38464         (ATTRIBUTE_NORETURN): Update definition. Define always.
38465         Reported by Paul Eggert.
38467 2011-02-13  Bruno Haible  <bruno@clisp.org>
38469         mbrtowc: Add more tests for native Windows platforms.
38470         * tests/test-mbrtowc-w32-1.sh: New file.
38471         * tests/test-mbrtowc-w32-2.sh: New file.
38472         * tests/test-mbrtowc-w32-3.sh: New file.
38473         * tests/test-mbrtowc-w32-4.sh: New file.
38474         * tests/test-mbrtowc-w32-5.sh: New file.
38475         * tests/test-mbrtowc-w32.c: New file.
38476         * modules/mbrtowc-tests (Files): Add them.
38477         (Makefile.am): Arrange to run these tests.
38478         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
38479         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
38481 2011-02-13  Bruno Haible  <bruno@clisp.org>
38483         mbrtowc: Work around native Windows bug.
38484         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
38485         guess when no suitable locale for testing was found.
38486         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
38488 2011-02-13  Bruno Haible  <bruno@clisp.org>
38490         mbsinit: Work around mingw bug.
38491         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
38492         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
38493         Windows.
38494         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
38496 2011-02-13  Bruno Haible  <bruno@clisp.org>
38498         mbsinit: Don't crash for a NULL argument.
38499         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
38500         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
38502 2011-02-13  Bruno Haible  <bruno@clisp.org>
38504         Don't interfere with a program's definition of __attribute__.
38505         * lib/stdio.in.h (__attribute__): Remove definition.
38506         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
38507         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
38508         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
38509         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
38510         * lib/string.in.h (__attribute__): Remove definition.
38511         Reported by Paul Eggert.
38513 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38515         stdlib: don't get in the way of non-GCC __attribute__
38516         See thread starting at
38517         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
38518         Revert previous stdlib change, installing the following instead:
38519         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
38520         to get in the way of a non-GCC compiler that supports __attribute__.
38521         (_GL_ATTRIBUTE_RETURN): New macro.
38522         (_Exit): Use it instead of __attribute__.
38524 2011-02-12  Bruno Haible  <bruno@clisp.org>
38526         quotearg test: Avoid test failure on mingw.
38527         * tests/test-quotearg.sh: Convert the locale identifier from native
38528         Windows syntax to Unix syntax.
38530 2011-02-12  Bruno Haible  <bruno@clisp.org>
38532         setlocale: Prefer gnulib's override over libintl's override.
38533         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
38534         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
38535         GNULIB_defined_setlocale is set.
38537 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38539         stdlib: support non-GCC __attribute__
38541         Fix a serious and tricky problem encountered when attempting to
38542         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
38543         5.5, but it crashed due to memory corruption on Solaris 10 with
38544         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
38545         bits that are otherwise zero.  This tagging is optional inside
38546         Emacs but is preferred and is used when __attribute__ ((__aligned
38547         (8))) works, as it does with both recent-enough GCC and with Sun C
38548         5.11.  However, Sun C 5.11 is not GCC and does not #define
38549         __GNUC__ and __GNUC_MINOR__.
38551         When I added the getloadavg module to Emacs, it brought in
38552         stdlib.in.h, which contained this fragment:
38554            #ifndef __attribute__
38555            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
38556            #  define __attribute__(Spec)   /* empty */
38557            # endif
38558            #endif
38560         When files that include <stdlib.h> were compiled with Sun C 5.11,
38561         the above code disabled __attribute__ ((__aligned (8))), which
38562         caused variables to not be properly aligned, which eventually led
38563         to the pointer corruption mentioned above.  (This was a bit hard
38564         to diagnose, unfortunately.)
38566         Several "#define __attribute__(X) /* empty */" code snippets need
38567         to be eradicated from Gnulib to work with non-GCC compilers that
38568         support __attribute__.  The Autoconf way to do this is to test for
38569         each kind of attribute that we want support for, and selectively
38570         enable that in source code.
38572         Fix this problem just for stdlib.h, by adding a test for the
38573         __noreturn__ attribute, and change stdlib.in.h to use that test
38574         when needed.  This technique can be easily generalized to the
38575         other *.in.h files and attributes, and a similar technique can be
38576         used for *.h and *.c files.  This patch is enough to solve the
38577         problem for Emacs + getloadavg, and I thought I'd publish it for
38578         feedback before undertaking further, similar fixes in other
38579         modules.
38581         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
38582         because it's not needed for stdlib.h.  It merely substitutes the
38583         value directly into stdlib.h.  We may well need to #define it, or
38584         similar symbols, for other modules, but it's nice to also have an
38585         option to not #define it for applications like Emacs that do not
38586         need it.
38588         * lib/stdlib.in.h (__attribute__): Do not #define.
38589         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
38590         be defined only if the _Exit module is also used.
38591         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
38592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
38593         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
38594         platforms.
38595         * modules/_Exit (Files): Add m4/attribute.m4.
38596         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
38597         * m4/attribute.m4: New file.
38599 2011-02-12  Bruno Haible  <bruno@clisp.org>
38601         wcsrtombs: Work around bug on native Windows.
38602         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
38603         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
38604         instead of len.
38605         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
38607 2011-02-12  Bruno Haible  <bruno@clisp.org>
38609         mbsrtowcs: Work around bug on native Windows.
38610         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
38611         against mingw bug.
38612         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
38614 2011-02-12  Bruno Haible  <bruno@clisp.org>
38616         Avoid setlocale bugs in tests.
38617         * modules/btowc (Dependencies): Add setlocale.
38618         * modules/c-strcase (Dependencies): Likewise.
38619         * modules/mbmemcasecmp (Dependencies): Likewise.
38620         * modules/mbmemcasecoll (Dependencies): Likewise.
38621         * modules/mbrtowc (Dependencies): Likewise.
38622         * modules/mbscasecmp (Dependencies): Likewise.
38623         * modules/mbscasestr (Dependencies): Likewise.
38624         * modules/mbschr (Dependencies): Likewise.
38625         * modules/mbscspn (Dependencies): Likewise.
38626         * modules/mbsinit (Dependencies): Likewise.
38627         * modules/mbsncasecmp (Dependencies): Likewise.
38628         * modules/mbsnrtowcs (Dependencies): Likewise.
38629         * modules/mbspbrk (Dependencies): Likewise.
38630         * modules/mbspcasecmp (Dependencies): Likewise.
38631         * modules/mbsrchr (Dependencies): Likewise.
38632         * modules/mbsrtowcs (Dependencies): Likewise.
38633         * modules/mbsspn (Dependencies): Likewise.
38634         * modules/mbsstr (Dependencies): Likewise.
38635         * modules/nl_langinfo (Dependencies): Likewise.
38636         * modules/quotearg (Dependencies): Likewise.
38637         * modules/unicase/locale-language (Dependencies): Likewise.
38638         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
38639         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
38640         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
38641         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
38642         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
38643         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
38644         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
38645         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
38646         * modules/vasnprintf-posix (Dependencies): Likewise.
38647         * modules/wcrtomb (Dependencies): Likewise.
38648         * modules/wcsnrtombs (Dependencies): Likewise.
38649         * modules/wcsrtombs (Dependencies): Likewise.
38651 2011-02-12  Bruno Haible  <bruno@clisp.org>
38653         setlocale: Workaround native Windows bug.
38654         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
38655         succeeds but sets LC_CTYPE to "C", report a failure.
38656         * tests/test-setlocale2.sh: New file.
38657         * tests/test-setlocale2.c: New file.
38658         * modules/setlocale-tests (Files): Add the new files.
38659         (Makefile.am): Enable test-setlocale2.sh test.
38660         * doc/posix-functions/setlocale.texi: Mention workaround.
38662 2011-02-11  Bruno Haible  <bruno@clisp.org>
38664         Tests for module 'setlocale'.
38665         * modules/setlocale-tests: New file.
38666         * tests/test-setlocale1.sh: New file.
38667         * tests/test-setlocale1.c: New file.
38669         New module 'setlocale'.
38670         * lib/locale.in.h (setlocale): New declaration.
38671         * lib/setlocale.c: New file, based on
38672         gettext/gettext-runtime/intl/setlocale.c.
38673         * m4/setlocale.m4: New file.
38674         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
38675         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
38676         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
38677         REPLACE_SETLOCALE.
38678         * modules/setlocale: New file.
38679         * tests/test-locale-c++.cc: Test the declaration of setlocale.
38680         * doc/posix-functions/setlocale.texi: Mention the new module.
38682 2011-02-11  Bruno Haible  <bruno@clisp.org>
38684         Prepare for locale dependent tests on mingw.
38685         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
38686         because it has the wrong locale encoding.
38687         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
38688         French_France.1252 instead of "fr".
38689         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
38690         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
38691         because it has the wrong locale encoding.
38692         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
38693         native Windows, try Turkish_Turkey.65001.
38694         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
38695         Chinese_China.54936.
38697         Prepare for locale dependent tests on mingw.
38698         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
38699         differently.
38700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
38701         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
38702         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38703         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38705 2011-02-11  Eric Blake  <eblake@redhat.com>
38707         strptime: avoid compiler warnings
38708         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
38709         compiler warnings about dead code.
38710         Reported by Daniel P. Berrange.
38712 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
38714         doc: update users.txt
38715         * users.txt: Add rcs.
38717 2011-02-10  John W. Eaton  <jwe@gnu.org>
38719         doc: update users.txt
38720         * users.txt: Add octave.
38722 2011-02-10  Jim Meyering  <meyering@redhat.com>
38724         doc: update users.txt
38725         * users.txt: Add iwhd.
38727 2011-02-09  Bruno Haible  <bruno@clisp.org>
38729         gnulib-tool: Make copyright notice adjustment more robust.
38730         * gnulib-tool (func_import): In sed_transform_main_lib_file,
38731         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
38732         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
38733         License".
38734         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
38736 2011-02-06  Bruno Haible  <bruno@clisp.org>
38738         New module 'towctrans'.
38739         * modules/towctrans: New file.
38740         * lib/wctype.in.h (towctrans): New declaration.
38741         * lib/towctrans.c: New file.
38742         * lib/towctrans-impl.h: New file.
38743         * m4/towctrans.m4: New file.
38744         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
38745         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
38746         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
38747         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
38748         * doc/posix-functions/towctrans.texi: Mention the new module.
38750 2011-02-06  Bruno Haible  <bruno@clisp.org>
38752         New module 'wctrans'.
38753         * modules/wctrans: New file.
38754         * lib/wctype.in.h (wctrans): New declaration.
38755         * lib/wctrans.c: New file.
38756         * lib/wctrans-impl.h: New file.
38757         * m4/wctrans.m4: New file.
38758         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
38759         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
38760         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
38761         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
38762         * doc/posix-functions/wctrans.texi: Mention the new module.
38764 2011-02-06  Bruno Haible  <bruno@clisp.org>
38766         New module 'iswctype'.
38767         * modules/iswctype: New file.
38768         * lib/wctype.in.h (iswctype): New declaration.
38769         * lib/iswctype.c: New file.
38770         * lib/iswctype-impl.h: New file.
38771         * m4/iswctype.m4: New file.
38772         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
38773         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
38774         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
38775         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
38776         * doc/posix-functions/iswctype.texi: Mention the new module and the
38777         HP-UX 11.00 problem.
38779 2011-02-06  Bruno Haible  <bruno@clisp.org>
38781         New module 'wctype'.
38782         * modules/wctype: Change to represent the wctype() substitute.
38783         * lib/wctype.in.h (wctype): New declaration.
38784         * lib/wctype.c: New file.
38785         * lib/wctype-impl.h: New file.
38786         * m4/wctype.m4: New file.
38787         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
38788         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
38789         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
38790         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
38791         * doc/posix-functions/wctype.texi: Mention the new module and the
38792         HP-UX 11.00 problem.
38794 2011-02-06  Bruno Haible  <bruno@clisp.org>
38796         wctype-h: Ensure wctype_t and wctrans_t are defined.
38797         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
38798         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
38799         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
38800         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
38801         HAVE_WCTRANS_T.
38802         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
38804 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38806         flock: fix license typo
38808         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
38809         omitted.
38811 2011-02-08  Bruno Haible  <bruno@clisp.org>
38813         Split large sed scripts, for HP-UX sed.
38814         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
38815         to avoid HP-UX limit of 99 commands, in the near future.
38816         * modules/stdlib (Makefile.am): Likewise.
38817         * modules/unistd (Makefile.am): Likewise.
38818         * modules/wchar (Makefile.am): Likewise.
38819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38820         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
38821         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
38823 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
38824             Bruno Haible  <bruno@clisp.org>
38826         stdlib: improve random_r modularization
38827         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
38828         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
38829         you also need the random_r module to get this material right.
38830         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
38831         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
38832         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
38834 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
38836         stdlib: don't depend on stdint
38837         * lib/stdlib.in.h: Don't include <stdint.h> merely because
38838         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
38839         be independent of whether stdint.h is needed.
38840         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
38841         here, instead of ...
38842         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
38843         struct random_data should be using the random_r module, not just
38844         the stdlib module (which wouldn't make sense: what package needs
38845         just struct random_data without also needing random_r?).
38846         * modules/stdlib (Depends-on): Remove stdint.
38848         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
38849         See the thread rooted at
38850         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
38851         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
38852         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
38853         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
38854         __VMS)); previously it was always included (via fcntl--.h).
38855         (getloadavg): Do not use c_strtod.  Instead, approximate it by
38856         hand; this is good enough for load averages.  Also, do not use
38857         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
38858         flags directly if available and don't bother otherwise.  (Packages
38859         that need the extra reliability should use the modules that define
38860         these flags on older platforms that lack them.)
38861         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
38862         fcntl-safer.
38864 2011-02-08  Jim Meyering  <meyering@redhat.com>
38866         di-set.h, ino-map.h: add multiple-inclusion guard
38867         Technically, the guard is required only for ino-map.h, due to its
38868         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
38869         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
38870         * lib/ino-map.h: Likewise.
38872 2011-02-06  Bruno Haible  <bruno@clisp.org>
38874         iswblank: Ensure declaration on glibc systems.
38875         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
38876         * modules/iswblank (Dependencies): Add 'extensions'.
38877         * doc/posix-functions/iswblank.texi: Document the glibc problem.
38879 2011-02-06  Bruno Haible  <bruno@clisp.org>
38881         New module 'iswblank'.
38882         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
38883         * modules/iswblank: New file.
38884         * modules/wctype-h (Files): Remove lib/iswblank.c.
38885         (Makefile.am): Substitute GNULIB_ISWBLANK.
38886         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
38887         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
38888         (gl_WCTYPE_H_DEFAULTS): New macro.
38889         (gl_WCTYPE_H): Require it. Remove iswblank related code.
38890         * modules/iswblank-tests: New file.
38891         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
38892         * tests/test-wctype-h.c (main): Remove iswblank tests.
38893         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
38894         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
38895         of 'wctype-h'.
38896         * NEWS: Mention the change.
38897         * modules/mbchar (Depends-on): Add iswblank.
38899 2011-02-08  Bruno Haible  <bruno@clisp.org>
38901         di-set tests: Refactor.
38902         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
38903         unnecessary includes.
38904         (ASSERT): Remove macro.
38905         (main): Make C90 compliant by avoiding variable declaration after
38906         statement.
38907         * modules/di-set-tests (Files): Add tests/macros.h.
38909 2011-02-08  Bruno Haible  <bruno@clisp.org>
38911         ino-map tests: Refactor.
38912         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
38913         unnecessary includes.
38914         (ASSERT): Remove macro.
38915         (main): Make C90 compliant by avoiding variable declaration after
38916         statement.
38917         * modules/ino-map-tests (Files): Add tests/macros.h.
38919 2011-02-08  Jim Meyering  <meyering@redhat.com>
38921         di-set: add "const" to a cast
38922         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
38923         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
38925 2011-02-06  Bruno Haible  <bruno@clisp.org>
38927         Rename module 'wctype' to 'wctype-h'.
38928         * modules/wctype-h: Renamed from modules/wctype.
38929         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
38930         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
38931         (Files, Depends-on, Makefile.am): Update.
38932         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
38933         (Files, Makefile.am): Update.
38934         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
38935         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
38936         * doc/posix-headers/wctype.texi: Update.
38937         * doc/posix-functions/iswalnum.texi: Update.
38938         * doc/posix-functions/iswalpha.texi: Update.
38939         * doc/posix-functions/iswblank.texi: Update.
38940         * doc/posix-functions/iswcntrl.texi: Update.
38941         * doc/posix-functions/iswdigit.texi: Update.
38942         * doc/posix-functions/iswgraph.texi: Update.
38943         * doc/posix-functions/iswlower.texi: Update.
38944         * doc/posix-functions/iswprint.texi: Update.
38945         * doc/posix-functions/iswpunct.texi: Update.
38946         * doc/posix-functions/iswspace.texi: Update.
38947         * doc/posix-functions/iswupper.texi: Update.
38948         * doc/posix-functions/iswxdigit.texi: Update.
38949         * doc/posix-functions/towlower.texi: Update.
38950         * doc/posix-functions/towupper.texi: Update.
38951         * NEWS: Mention the change.
38952         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
38953         * modules/mbchar (Dependencies): Likewise.
38954         * modules/mbswidth (Dependencies): Likewise.
38955         * modules/quotearg (Dependencies): Likewise.
38956         * modules/regex (Dependencies): Likewise.
38957         * modules/wcscasecmp (Dependencies): Likewise.
38958         * modules/wcsncasecmp (Dependencies): Likewise.
38959         * modules/wcwidth (Dependencies): Likewise.
38961 2011-02-06  Bruno Haible  <bruno@clisp.org>
38963         New module 'wcswidth'.
38964         * modules/wcswidth: New file.
38965         * lib/wchar.in.h (wcswidth): New declaration.
38966         * lib/wcswidth.c: New file.
38967         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
38968         * m4/wcswidth.m4: New file.
38969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
38970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
38971         REPLACE_WCSWIDTH.
38972         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
38973         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
38974         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
38975         * doc/posix-functions/wcswidth.texi: Mention the new module.
38977 2011-02-06  Bruno Haible  <bruno@clisp.org>
38979         New module 'wcstok'.
38980         * modules/wcstok: New file.
38981         * lib/wchar.in.h (wcstok): New declaration.
38982         * lib/wcstok.c: New file.
38983         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
38984         * m4/wcstok.m4: New file.
38985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
38986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
38987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
38988         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
38989         * doc/posix-functions/wcstok.texi: Mention the new module.
38991 2011-02-06  Bruno Haible  <bruno@clisp.org>
38993         New module 'wcsstr'.
38994         * modules/wcsstr: New file.
38995         * lib/wchar.in.h (wcsstr): New declaration.
38996         * lib/wcsstr.c: New file.
38997         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
38998         * m4/wcsstr.m4: New file.
38999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
39000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
39001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
39002         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
39003         * doc/posix-functions/wcsstr.texi: Mention the new module.
39005 2011-02-06  Bruno Haible  <bruno@clisp.org>
39007         New module 'wcspbrk'.
39008         * modules/wcspbrk: New file.
39009         * lib/wchar.in.h (wcspbrk): New declaration.
39010         * lib/wcspbrk.c: New file.
39011         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
39012         * m4/wcspbrk.m4: New file.
39013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
39014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
39015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
39016         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
39017         * doc/posix-functions/wcspbrk.texi: Mention the new module.
39019 2011-02-06  Bruno Haible  <bruno@clisp.org>
39021         New module 'wcsspn'.
39022         * modules/wcsspn: New file.
39023         * lib/wchar.in.h (wcsspn): New declaration.
39024         * lib/wcsspn.c: New file.
39025         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
39026         * m4/wcsspn.m4: New file.
39027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
39028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
39029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
39030         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
39031         * doc/posix-functions/wcsspn.texi: Mention the new module.
39033 2011-02-06  Bruno Haible  <bruno@clisp.org>
39035         New module 'wcscspn'.
39036         * modules/wcscspn: New file.
39037         * lib/wchar.in.h (wcscspn): New declaration.
39038         * lib/wcscspn.c: New file.
39039         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
39040         * m4/wcscspn.m4: New file.
39041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
39042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
39043         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
39044         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
39045         * doc/posix-functions/wcscspn.texi: Mention the new module.
39047 2011-02-06  Bruno Haible  <bruno@clisp.org>
39049         New module 'wcsrchr'.
39050         * modules/wcsrchr: New file.
39051         * lib/wchar.in.h (wcsrchr): New declaration.
39052         * lib/wcsrchr.c: New file.
39053         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
39054         * m4/wcsrchr.m4: New file.
39055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
39056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
39057         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
39058         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
39059         * doc/posix-functions/wcsrchr.texi: Mention the new module.
39061 2011-02-06  Bruno Haible  <bruno@clisp.org>
39063         New module 'wcschr'.
39064         * modules/wcschr: New file.
39065         * lib/wchar.in.h (wcschr): New declaration.
39066         * lib/wcschr.c: New file.
39067         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
39068         * m4/wcschr.m4: New file.
39069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
39070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
39071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
39072         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
39073         * doc/posix-functions/wcschr.texi: Mention the new module.
39075 2011-02-06  Bruno Haible  <bruno@clisp.org>
39077         New module 'wcsdup'.
39078         * modules/wcsdup: New file.
39079         * lib/wchar.in.h (wcsdup): New declaration.
39080         * lib/wcsdup.c: New file.
39081         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
39082         * m4/wcsdup.m4: New file.
39083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
39084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
39085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
39086         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
39087         * doc/posix-functions/wcsdup.texi: Mention the new module.
39089 2011-02-06  Bruno Haible  <bruno@clisp.org>
39091         New module 'wcsxfrm'.
39092         * modules/wcsxfrm: New file.
39093         * lib/wchar.in.h (wcsxfrm): New declaration.
39094         * lib/wcsxfrm.c: New file.
39095         * lib/wcsxfrm-impl.h: New file.
39096         * m4/wcsxfrm.m4: New file.
39097         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
39098         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
39099         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
39100         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
39101         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
39103 2011-02-06  Bruno Haible  <bruno@clisp.org>
39105         New module 'wcscoll'.
39106         * modules/wcscoll: New file.
39107         * lib/wchar.in.h (wcscoll): New declaration.
39108         * lib/wcscoll.c: New file.
39109         * lib/wcscoll-impl.h: New file.
39110         * m4/wcscoll.m4: New file.
39111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
39112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
39113         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
39114         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
39115         * doc/posix-functions/wcscoll.texi: Mention the new module.
39117 2011-02-06  Bruno Haible  <bruno@clisp.org>
39119         New module 'wcsncasecmp'.
39120         * modules/wcsncasecmp: New file.
39121         * lib/wchar.in.h (wcsncasecmp): New declaration.
39122         * lib/wcsncasecmp.c: New file.
39123         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
39124         * m4/wcsncasecmp.m4: New file.
39125         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
39126         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
39127         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
39128         HAVE_WCSNCASECMP.
39129         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
39130         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
39132 2011-02-06  Bruno Haible  <bruno@clisp.org>
39134         New module 'wcscasecmp'.
39135         * modules/wcscasecmp: New file.
39136         * lib/wchar.in.h (wcscasecmp): New declaration.
39137         * lib/wcscasecmp.c: New file.
39138         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
39139         * m4/wcscasecmp.m4: New file.
39140         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
39141         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
39142         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
39143         HAVE_WCSCASECMP.
39144         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
39145         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
39147 2011-02-05  Bruno Haible  <bruno@clisp.org>
39149         New module 'wcsncmp'.
39150         * modules/wcsncmp: New file.
39151         * lib/wchar.in.h (wcsncmp): New declaration.
39152         * lib/wcsncmp.c: New file.
39153         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
39154         * m4/wcsncmp.m4: New file.
39155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
39156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
39157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
39158         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
39159         * doc/posix-functions/wcsncmp.texi: Mention the new module.
39161 2011-02-05  Bruno Haible  <bruno@clisp.org>
39163         New module 'wcscmp'.
39164         * modules/wcscmp: New file.
39165         * lib/wchar.in.h (wcscmp): New declaration.
39166         * lib/wcscmp.c: New file.
39167         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
39168         * m4/wcscmp.m4: New file.
39169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
39170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
39171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
39172         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
39173         * doc/posix-functions/wcscmp.texi: Mention the new module.
39175 2011-02-05  Bruno Haible  <bruno@clisp.org>
39177         New module 'wcsncat'.
39178         * modules/wcsncat: New file.
39179         * lib/wchar.in.h (wcsncat): New declaration.
39180         * lib/wcsncat.c: New file.
39181         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
39182         * m4/wcsncat.m4: New file.
39183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
39184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
39185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
39186         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
39187         * doc/posix-functions/wcsncat.texi: Mention the new module.
39189 2011-02-05  Bruno Haible  <bruno@clisp.org>
39191         New module 'wcscat'.
39192         * modules/wcscat: New file.
39193         * lib/wchar.in.h (wcscat): New declaration.
39194         * lib/wcscat.c: New file.
39195         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
39196         * m4/wcscat.m4: New file.
39197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
39198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
39199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
39200         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
39201         * doc/posix-functions/wcscat.texi: Mention the new module.
39203 2011-02-05  Bruno Haible  <bruno@clisp.org>
39205         New module 'wcpncpy'.
39206         * modules/wcpncpy: New file.
39207         * lib/wchar.in.h (wcpncpy): New declaration.
39208         * lib/wcpncpy.c: New file.
39209         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
39210         * m4/wcpncpy.m4: New file.
39211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
39212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
39213         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
39214         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
39215         * doc/posix-functions/wcpncpy.texi: Mention the new module.
39217 2011-02-05  Bruno Haible  <bruno@clisp.org>
39219         New module 'wcsncpy'.
39220         * modules/wcsncpy: New file.
39221         * lib/wchar.in.h (wcsncpy): New declaration.
39222         * lib/wcsncpy.c: New file.
39223         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
39224         * m4/wcsncpy.m4: New file.
39225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
39226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
39227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
39228         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
39229         * doc/posix-functions/wcsncpy.texi: Mention the new module.
39231 2011-02-05  Bruno Haible  <bruno@clisp.org>
39233         New module 'wcpcpy'.
39234         * modules/wcpcpy: New file.
39235         * lib/wchar.in.h (wcpcpy): New declaration.
39236         * lib/wcpcpy.c: New file.
39237         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
39238         * m4/wcpcpy.m4: New file.
39239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
39240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
39241         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
39242         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
39243         * doc/posix-functions/wcpcpy.texi: Mention the new module.
39245 2011-02-05  Bruno Haible  <bruno@clisp.org>
39247         New module 'wcscpy'.
39248         * modules/wcscpy: New file.
39249         * lib/wchar.in.h (wcscpy): New declaration.
39250         * lib/wcscpy.c: New file.
39251         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
39252         * m4/wcscpy.m4: New file.
39253         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
39254         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
39255         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
39256         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
39257         * doc/posix-functions/wcscpy.texi: Mention the new module.
39259 2011-02-05  Bruno Haible  <bruno@clisp.org>
39261         New module 'wcsnlen'.
39262         * modules/wcsnlen: New file.
39263         * lib/wchar.in.h (wcsnlen): New declaration.
39264         * lib/wcsnlen.c: New file.
39265         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
39266         * m4/wcsnlen.m4: New file.
39267         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
39268         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
39269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
39270         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
39271         * doc/posix-functions/wcsnlen.texi: Mention the new module.
39273 2011-02-05  Bruno Haible  <bruno@clisp.org>
39275         New module 'wcslen'.
39276         * modules/wcslen: New file.
39277         * lib/wchar.in.h (wcslen): New declaration.
39278         * lib/wcslen.c: New file.
39279         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
39280         * m4/wcslen.m4: New file.
39281         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
39282         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
39283         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
39284         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
39285         * doc/posix-functions/wcslen.texi: Mention the new module.
39287 2011-02-05  Bruno Haible  <bruno@clisp.org>
39289         New module 'wmemset'.
39290         * modules/wmemset: New file.
39291         * lib/wchar.in.h (wmemset): New declaration.
39292         * lib/wmemset.c: New file.
39293         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
39294         * m4/wmemset.m4: New file.
39295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
39296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
39297         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
39298         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
39299         * doc/posix-functions/wmemset.texi: Mention the new module.
39301 2011-02-05  Bruno Haible  <bruno@clisp.org>
39303         New module 'wmemmove'.
39304         * modules/wmemmove: New file.
39305         * lib/wchar.in.h (wmemmove): New declaration.
39306         * lib/wmemmove.c: New file.
39307         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
39308         * m4/wmemmove.m4: New file.
39309         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
39310         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
39311         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
39312         HAVE_WMEMMOVE.
39313         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
39314         * doc/posix-functions/wmemmove.texi: Mention the new module.
39316 2011-02-05  Bruno Haible  <bruno@clisp.org>
39318         New module 'wmemcpy'.
39319         * modules/wmemcpy: New file.
39320         * lib/wchar.in.h (wmemcpy): New declaration.
39321         * lib/wmemcpy.c: New file.
39322         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
39323         * m4/wmemcpy.m4: New file.
39324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
39325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
39326         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
39327         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
39328         * doc/posix-functions/wmemcpy.texi: Mention the new module.
39330 2011-02-05  Bruno Haible  <bruno@clisp.org>
39332         New module 'wmemcmp'.
39333         * modules/wmemcmp: New file.
39334         * lib/wchar.in.h (wmemcmp): New declaration.
39335         * lib/wmemcmp.c: New file.
39336         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
39337         * m4/wmemcmp.m4: New file.
39338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
39339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
39340         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
39341         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
39342         * doc/posix-functions/wmemcmp.texi: Mention the new module.
39344 2011-02-07  Jim Meyering  <meyering@redhat.com>
39346         di-set, ino-map: new modules, from coreutils
39347         * lib/di-set.c: New file.
39348         * lib/di-set.h: Likewise.
39349         * lib/ino-map.c: Likewise.
39350         * lib/ino-map.h: Likewise.
39351         * modules/di-set: Likewise.
39352         * modules/di-set-tests: Likewise.
39353         * modules/ino-map: Likewise.
39354         * modules/ino-map-tests: Likewise.
39355         * tests/test-di-set.c: Likewise.
39356         * tests/test-ino-map.c: Likewise.
39358 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
39360         getloadavg: merge minor changes from Emacs
39362         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
39363         (getloadavg): Use memset, not bzero.
39365         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
39366         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
39367         clash (bug#86).
39369 2010-11-14  Bruno Haible  <bruno@clisp.org>
39371         Allow multiple gnulib generated replacements to coexist.
39372         * lib/getopt.in.h (struct option): Avoid identical redefinition.
39373         * lib/inttypes.in.h (imaxdiv_t): Likewise.
39374         * lib/langinfo.in.h (nl_item): Likewise.
39375         * lib/math.in.h (_NaN, NAN): Likewise.
39376         * lib/netdb.in.h (struct addrinfo): Likewise.
39377         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
39378         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
39379         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
39380         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
39381         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
39382         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
39383         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
39384         pthread_mutexattr_init, pthread_mutexattr_settype,
39385         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
39386         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
39387         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
39388         pthread_spin_trylock, pthread_spin_unlock): Likewise.
39389         * lib/sched.in.h (struct sched_param): Likewise.
39390         * lib/se-selinux.in.h (security_class_t, security_context_t,
39391         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
39392         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
39393         lsetfilecon, fsetfilecon, security_check_context,
39394         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
39395         Likewise.
39396         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
39397         Likewise.
39398         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
39399         _gl_function_taking_int_returning_void_t, union sigval,
39400         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
39401         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
39402         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
39403         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
39404         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
39405         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
39406         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
39407         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
39408         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
39409         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
39410         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
39411         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
39412         socklen_t, rpl_fd_isset): Likewise.
39413         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
39414         * lib/sys_time.in.h (struct timeval): Likewise.
39415         * lib/sys_times.in.h (struct tms): Likewise.
39416         * lib/sys_utsname.in.h (struct utsname):
39417         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
39418         * lib/unistd.in.h (getpagesize): Likewise.
39419         * lib/wchar.in.h (mbstate_t): Likewise.
39420         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39421         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
39422         towlower, towupper): Likewise.
39423         Reported by Sam Steingold <sds@gnu.org>.
39425 2011-02-05  Eric Blake  <eblake@redhat.com>
39427         unsetenv: work around Haiku issues
39428         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
39429         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
39431 2010-12-30  Bruce Korb  <bkorb@gnu.org>
39433         libposix: avoid calling error() within libposix
39434         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
39435         is defined.
39437 2011-02-05  Eric Blake  <eblake@redhat.com>
39439         strerror_r-posix: port to cygwin
39440         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
39441         implementation.
39442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
39443         * tests/test-strerror_r.c (main): Fix test.
39444         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
39445         issue.
39447 2011-02-05  Bruno Haible  <bruno@clisp.org>
39449         New module 'wmemchr'.
39450         * modules/wmemchr: New file.
39451         * lib/wchar.in.h (wmemchr): New declaration.
39452         * lib/wmemchr.c: New file.
39453         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
39454         * m4/wmemchr.m4: New file.
39455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
39456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
39457         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
39458         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
39459         * doc/posix-functions/wmemchr.texi: Mention the new module.
39461 2011-02-04  Eric Blake  <eblake@redhat.com>
39463         fdopendir: detect FreeBSD bug
39464         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
39465         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
39467 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39469         stdbool: do not define HAVE_STDBOOL_H
39470         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
39471         AC_HEADER_STDBOOL.  All uses changed.  Do not define
39472         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
39473         imported from the latest Autoconf git.  It was motivated by Emacs,
39474         which uses gnulib but does not need HAVE_STDBOOL_H.
39476 2011-02-04  Bruno Haible  <bruno@clisp.org>
39478         wcsnrtombs: Prepare for new module wwcsnrtombs.
39479         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
39480         * lib/wcsnrtombs.c: Include it.
39481         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
39483         wcsrtombs: Prepare for new module wwcsrtombs.
39484         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
39485         * lib/wcsrtombs.c: Include it.
39486         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
39488         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
39489         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
39490         * lib/mbsnrtowcs.c: Include it.
39491         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
39493         mbsrtowcs: Prepare for new module mbsrtowwcs.
39494         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
39495         * lib/mbsrtowcs.c: Include it.
39496         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
39498 2011-02-04  Bruno Haible  <bruno@clisp.org>
39500         vasnprintf: Reduce use of malloc for small format strings.
39501         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
39502         (arguments): Add room for the first 7 arguments.
39503         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
39504         (char_directives, u8_directives, u16_directives, u32_directives): Add
39505         room for the first 7 directives.
39506         * lib/printf-parse.c: Include <string.h>.
39507         (PRINTF_PARSE): Change memory handling code so that it uses the first
39508         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
39509         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
39510         Reported by Pádraig Brady <P@draigbrady.com>.
39512 2011-01-31  Eric Blake  <eblake@redhat.com>
39514         dup2: work around Haiku bug
39515         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
39516         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
39517         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39518         * tests/test-dup2.c (main): Enhance test.
39520 2011-01-31  Simon Josefsson  <simon@josefsson.org>
39522         doc: off_t is not available in eglibc 2.11.2 stdio.h.
39523         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
39524         declared by eglibc 2.11.2.
39525         * lib/stdio.in.h: Likewise.
39527 2011-01-31  Eric Blake  <eblake@redhat.com>
39529         ignore-value: add missing test dependency
39530         * tests/test-ignore-value.c: Revert previous change; stdio.h
39531         provides off_t.
39532         * modules/ignore-value-tests (Depends-on): Add missing dependency.
39534 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
39536         mktime: clarify long_int width checking
39537         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
39538         the top level, to make it clearer that the assumption about
39539         long_int width is being checked.  See
39540         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
39542 2011-01-30  Simon Josefsson  <simon@josefsson.org>
39544         ignore-value: Fix self-test.
39545         * tests/test-ignore-value.c: Include sys/types.h for off_t.
39547 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39549         TYPE_MAXIMUM: avoid theoretically undefined behavior
39550         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
39551         negative number, which the C Standard says has undefined behavior.
39552         In practice this is not a problem, but might as well do it by the book.
39553         Reported by Rich Felker and Eric Blake; see
39554         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
39555         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
39556         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39558         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
39559         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39560         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
39562         mktime: #undef mktime before #defining it
39563         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
39565         mktime: systematically normalize tm_isdst comparisons
39566         * lib/mktime.c (isdst_differ): New function.
39567         (__mktime_internal): Use it systematically for all isdst comparisons.
39568         This completes the fix for libc BZ #6723, and removes the need for
39569         normalizing tm_isdst.  See
39570         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
39571         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
39573         mktime: fix some integer overflow issues and sidestep the rest
39575         This was prompted by a bug report by Benjamin Lindner for MinGW
39576         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
39577         His bug is due to signed integer overflow (0 - INT_MIN), and I
39578         I scanned through mktime.c looking for other integer overflow
39579         problems, fixing all the bugs I found.
39581         Although the C Standard says the resulting code is still not safe
39582         in the presence of integer overflow, in practice it should be good
39583         enough for all real-world two's-complement implementations, except
39584         for debugging environments that deliberately trap on integer
39585         overflow (e.g., gcc -ftrapv).
39587         * lib/mktime.c (WRAPV): New macro.
39588         (SHR): Also check that long_int and time_t shift right in the
39589         usual way, before using the fast-but-unportable method.
39590         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
39591         used.  The code already assumed two's complement, so there's
39592         no need to test for alternatives.  All uses removed.
39593         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
39594         the C standard.  Problem reported by Rich Felker in
39595         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
39596         (twos_complement_arithmetic): Also check long_int and time_t.
39597         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
39598         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
39599         (__mktime_internal): Avoid integer overflow with unary subtraction
39600         in two instances where -1 - X is an adequate replacement for -X,
39601         since the calculations are approximate.
39603 2011-01-29  Eric Blake  <eblake@redhat.com>
39605         mktime: avoid infinite loop
39606         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
39607         type; behavior is still undefined but portable to all known targets.
39608         Reported by Rich Felker.
39610 2011-01-29  Simon Josefsson  <simon@josefsson.org>
39612         rename, unlink, same-inode: Relicense.
39613         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
39614         * modules/unlink (License): Likewise.
39615         * modules/same-inode (License): Likewise.
39617 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39619         mktime: avoid problems on NetBSD 5 / i386
39620         * lib/mktime.c (long_int): New type.  This works around a problem
39621         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
39622         but time_t is 64 bits, and where I expect the existing code is
39623         wrong in some cases.
39624         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
39625         (ydhms_diff): Bring back the compile-time check for wide-enough
39626         year and yday.
39628         mktime: fix misspelling in comment
39629         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
39630         This merges all recent glibc changes of importance.
39632 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39634         move-if-change: cope with concurrent mv of identical file.
39635         * build-aux/move-if-change (CMPPROG): Accept environment
39636         variable as an override for `cmp'.
39637         (usage): Document CMPPROG.
39638         Adjust comparison to drop stdout.  Cope with failure of mv if
39639         the target file exists and is identical to the source, for
39640         parallel builds.
39641         Report from H.J. Lu against binutils in PR binutils/12283.
39643 2011-01-28  Bruce Korb  <bkorb@gnu.org>
39645         * users.txt: Mention sharutils.
39647 2011-01-28  Simon Josefsson  <simon@josefsson.org>
39649         * users.txt: Mention OATH Toolkit.
39651 2011-01-27  Bruno Haible  <bruno@clisp.org>
39653         Prepare for supporting FreeBSD 10.
39654         * build-aux/config.libpath: Remove handling of freebsd1*.
39656 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
39658         Prepare for supporting FreeBSD 10.
39659         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
39660         match FreeBSD 10.0.
39662 2011-01-27  Bruno Haible  <bruno@clisp.org>
39664         vma-iter, get-rusage-as: Add OpenBSD support.
39665         * modules/vma-iter (configure.ac): Test for mquery.
39666         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
39667         * lib/vma-iter.c: Include <sys/mman.h>.
39668         (vma_iterate): Add an implementation based on mquery().
39669         * lib/resource-ext.h (get_rusage_as): Update comments.
39670         * lib/get-rusage-as.c: Likewise.
39671         * lib/get-rusage-data.c: Likewise.
39673 2011-01-26  Karl Berry  <karl@gnu.org>
39675         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
39676         variables to make it easier to override the makeinfo program used.
39678 2011-01-26  Eric Blake  <eblake@redhat.com>
39680         fcntl: work around Haiku F_DUPFD bugs
39681         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
39682         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
39683         cloexec bit on duplication.
39684         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
39686 2011-01-26  Bruno Haible  <bruno@clisp.org>
39688         Enable memory leak tests on AIX.
39689         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
39690         * tests/test-fprintf-posix3.c (main): Likewise.
39692 2011-01-26  Bruno Haible  <bruno@clisp.org>
39694         Tests for module 'get-rusage-data'.
39695         * modules/get-rusage-data-tests: New file.
39696         * tests/test-get-rusage-data.c: New file.
39698         New module 'get-rusage-data'.
39699         * lib/resource-ext.h (get_rusage_data): New declaration.
39700         * lib/get-rusage-data.c: New file.
39701         * modules/get-rusage-data: New file.
39703 2011-01-25  Bruno Haible  <bruno@clisp.org>
39705         get-rusage-as: Allow for easier testing.
39706         * lib/resource-ext.h (get_rusage_as): Add comment.
39707         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
39708         (main): New function for interactive testing.
39710 2011-01-25  Bruno Haible  <bruno@clisp.org>
39712         vma-iter: Treat Haiku like BeOS.
39713         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
39714         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
39716 2011-01-25  Eric Blake  <eblake@redhat.com>
39718         c-stack: fix regression on cygwin when libsigsegv is present
39719         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
39721 2011-01-24  Bruno Haible  <bruno@clisp.org>
39723         vma-iter: Avoid empty intervals.
39724         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
39725         on an empty interval.
39727 2011-01-24  Jim Meyering  <meyering@redhat.com>
39729         u64: remove unnecessary #include
39730         * lib/u64.h: Don't include <stddef.h>.  It was not used.
39732 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39734         Allow the user to avoid the HAVE_RAW_DECL_* macros.
39735         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
39737 2011-01-23  Bruno Haible  <bruno@clisp.org>
39739         New module 'vma-iter'.
39740         * lib/vma-iter.h: New file.
39741         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
39742         * modules/vma-iter: New file.
39743         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
39744         for get_rusage_as_via_iterator.
39745         (vma_iterate_callback): New function.
39746         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
39747         * modules/get-rusage-as (Depends-on): Add vma-iter.
39749 2011-01-23  Bruno Haible  <bruno@clisp.org>
39751         uninorm: Tweak includes.
39752         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
39753         Reported by Jim Meyering.
39755 2011-01-23  Bruno Haible  <bruno@clisp.org>
39757         get-rusage-as: Improve on NetBSD.
39758         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
39759         /proc, like on FreeBSD.
39761 2011-01-23  Jim Meyering  <meyering@redhat.com>
39763         xreadlink.h: remove unnecessary #include
39764         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
39766         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
39767         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
39769 2011-01-23  Bruno Haible  <bruno@clisp.org>
39771         get-rusage-as: Fix bug.
39772         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
39773         original limit when aborting the first loop.
39775 2011-01-23  Bruno Haible  <bruno@clisp.org>
39777         wctype: Ensure valid C syntax.
39778         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
39779         unconditionally, instead of gl_NEXT_HEADERS conditionally.
39781 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
39783         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
39784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
39785         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
39786         as they are needed only for configure's test case.
39787         This removes two unnecessary symbols from config.h.
39789         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
39790         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
39791         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
39792         AC_CHECK_HEADERS_ONCE on a header that we also invoke
39793         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
39794         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
39795         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
39796         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
39797         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39798         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39799         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39801         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39802         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39803         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
39804         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39805         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
39806         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
39808 2011-01-21  Eric Blake  <eblake@redhat.com>
39810         maintainer-makefile: work with older git for submodule check
39811         * top/maint.mk (public-submodule-commit): Rewrite to avoid
39812         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
39813         Reported by Matthias Bolte.
39815         bootstrap: minor portability fixes
39816         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
39817         (usage): Omit leading capital and trailing . on help phrases, per
39818         GNU Coding Standards.
39819         (check_versions, top level): Prefix messages with script name.
39821 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
39823         bootstrap: support --no-git option
39824         * build-aux/bootstrap: Add --no-git option, to be used when
39825         --gnulib-srcdir points to the exact desired checkout.
39827 2011-01-21  Eric Blake  <eblake@redhat.com>
39829         strerror_r-posix: work with glibc 2.13
39830         * lib/strerror_r.c (strerror_r): Fix return type.
39832 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39833             Bruno Haible  <bruno@clisp.org>
39835         uN_strstr: New unit tests.
39836         * modules/unistr/u8-strstr-tests: New file.
39837         * modules/unistr/u16-strstr-tests: New file.
39838         * modules/unistr/u32-strstr-tests: New file.
39839         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
39840         * tests/unistr/test-u8-strstr.c: New file.
39841         * tests/unistr/test-u16-strstr.c: New file.
39842         * tests/unistr/test-u32-strstr.c: New file.
39844 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39845             Bruno Haible  <bruno@clisp.org>
39847         Make uN_strstr functions O(n) worst-case.
39848         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
39849         16-bit and 32-bit unit cases, use the unibyte algorithm from
39850         lib/mbsstr.c.
39851         * lib/unistr/u8-strstr.c: Include <string.h>.
39852         (UNIT_IS_UINT8_T): New macro.
39853         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
39854         (U_STRLEN, U_STRNLEN): New macros.
39855         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
39856         (U_STRLEN, U_STRNLEN): New macros.
39857         * modules/unistr/u8-strstr (Depends-on): Add strstr.
39858         (configure.ac): Update required libunistring version.
39859         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
39860         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
39861         malloca.
39862         (configure.ac): Update required libunistring version.
39863         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
39864         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
39865         malloca.
39866         (configure.ac): Update required libunistring version.
39868 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39869             Bruno Haible  <bruno@clisp.org>
39871         Prepare for faster uN_strstr functions.
39872         * lib/str-kmp.h: Support definable UNITs.
39873         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
39874         needle_len argument.
39875         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
39876         * lib/mbscasestr.c (mbscasestr): Likewise.
39878 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39880         malloca-tests: make faster by unsetting MALLOC_PERTURB_
39881         * tests/test-malloca.c (main): Unset the environment variable
39882         to greatly speed up the test.
39883         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
39884         * modules/malloca-tests: Depend on unsetenv.
39886 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39888         ignore-value: remove stdint dependency
39889         * lib/ignore-value.h: Remove <stdint.h>
39890         * modules/ignore-value: Remove stdint dependency.
39892 2011-01-21  Jim Meyering  <meyering@redhat.com>
39894         maint.mk: adjust variable name to be consistent with other gl_ vars
39895         * top/maint.mk (gl_public_submodule_commit): Rename the variable
39896         to be lower case.
39898 2011-01-20  Jim Meyering  <meyering@redhat.com>
39900         maint.mk: make "check" depend on public-submodule-commit by default
39901         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
39903 2011-01-20  Bruno Haible  <bruno@clisp.org>
39905         mbfile, mbiter: Complete change from 2008-12-21.
39906         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
39907         * m4/mbiter.m4 (gl_MBITER): Likewise.
39909 2011-01-20  Jim Meyering  <meyering@redhat.com>
39911         init.sh: insert space between each function name and "()"
39912         * tests/init.sh: Make it a little easier to see that a function's
39913         name is "warn_", and not "warn" when looking at the first part of
39914         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
39916 2011-01-20  Jim Meyering  <meyering@redhat.com>
39918         mountlist: clean up code formatting
39919         * lib/mountlist.c (read_file_system_list): Split a long line,
39920         correct bracing style, use NULL in place of "(struct statfs *)0",
39921         don't parenthesize return value, add spaces around "=" and after
39922         ";-in-for-stmt".
39924 2011-01-14  Markus Duft  <mduft@gentoo.org>
39926         mountlist: add support for Interix
39927         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
39928         Apply statvfs to all entries of /dev/fs.
39929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
39930         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
39932 2011-01-20  Jim Meyering  <meyering@redhat.com>
39934         maint.mk: improve the public-submodule-commit rule
39935         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
39936         to suppress printing of its commands... unless V=1.
39937         Add git submodule's --quiet option to suppress printing of e.g.,
39938         "Entering gnulib" output.
39939         "cd" into $(srcdir) before running git submodule.
39941 2011-01-20  Bruno Haible  <bruno@clisp.org>
39943         include_next: Fix bug introduced on 2011-01-18.
39944         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
39945         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
39946         ac_cv_header_... variable if the second argument is not 'check'.
39947         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
39948         gl_NEXT_HEADERS_INTERNAL.
39950 2011-01-20  Bruno Haible  <bruno@clisp.org>
39952         Allow the user to avoid the GNULIB_TEST_* macros.
39953         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
39954         Suggested by Paul Eggert.
39956 2011-01-14  Jim Meyering  <meyering@redhat.com>
39958         bootstrap: avoid failure when there is no .gitmodules file
39959         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
39960         has been assigned to, even when its value is the empty string.
39961         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
39962         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
39963         Reported by John W. Eaton <jwe@gnu.org>.
39965 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39967         assume <ctype.h>, ..., <time.h> exist
39968         For years gnulib has been assuming the existence of the headers
39969         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
39970         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
39971         them, since they don't appear to be needed.
39972         * README (Portability guidelines): Document this.
39973         * lib/flock.c: Assume <fcntl.h> exists.
39974         * lib/regex_internal.h: Assume <locale.h> exists.
39975         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
39976         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
39977         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
39978         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
39979         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
39980         * m4/regex.m4 (gl_REGEX): Likewise.
39981         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
39982         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
39983         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
39984         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
39985         * tests/test-argp.c: Likewise.
39986         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
39988         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
39989         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
39990         AA_APPLE_UNIVERSAL_BUILD.  See
39991         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
39992         * NEWS: Document this.
39994 2011-01-19  Eric Blake  <eblake@redhat.com>
39996         c-stack: assume stack overflow if SA_SIGINFO unsupported
39997         * lib/c-stack.c (SIGACTION_WORKS): Rename...
39998         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
39999         sigaction will work.
40000         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
40001         behavior match Linux.
40002         * tests/test-c-stack.c (main): Prefer NULL for pointers.
40004         stdbool-tests: accommodate Haiku
40005         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
40007         binary-io: fix O_TEXT on Haiku
40008         * modules/binary-io (Depends-on): Add fcntl-h.
40009         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
40010         than blindly undefining O_TEXT.
40011         Reported by Scott McCreary.
40013 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40015         include_next: do not check for standard headers like stddef.h
40017         I found this problem when modifying Emacs to use gnulib.
40018         I noticed that it added HAVE_STDDEF_H to config.h, even though
40019         gnulib always assumes <stddef.h> exists as per README and this
40020         symbol is unnecessary.
40021         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
40022         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
40023         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
40024         faster for headers like stddef.h that are known to exist.
40025         (gl_CHECK_NEXT_HEADERS): Use it.
40026         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
40027         rather than gl_CHECK_NEXT_HEADERS.
40028         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
40029         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
40031 2011-01-18  Eric Blake  <eblake@redhat.com>
40033         ansi-c++-opt: skip C++ dependency style if C++ is unused
40034         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
40035         tests when we know C++ compilation is not desired.
40036         Reported by Scott McCreary.
40038 2011-01-18  Bruno Haible  <bruno@clisp.org>
40040         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
40041         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
40042         (main): Perform test also when getrlimit and setrlimit don't exist or
40043         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
40044         limiting the address space size using setrlimit, compare the address
40045         space size before and after the test.
40046         * tests/test-dprintf-posix2.c: Likewise.
40047         * tests/test-fprintf-posix3.sh: Update skip messages.
40048         * tests/test-dprintf-posix2.sh: Likewise.
40049         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
40050         * modules/dprintf-posix-tests (Depends-on): Likewise.
40051         Reported by Bruce Korb <bkorb@gnu.org> and
40052         Gary V. Vaughan <gary@gnu.org>.
40054 2011-01-18  Bruno Haible  <bruno@clisp.org>
40056         get-rusage-as: Improvement for Cygwin.
40057         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
40058         areas that are merely reserved.
40060 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
40062         strftime: remove dependencies on multibyte modules
40064         strftime depended on mbrlen, mbsinit, and wchar, but these modules
40065         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
40066         only if __osf__ is defined, and I suspect OSF doesn't need these
40067         other modules.  If my guess is wrong, we'll need to come up with a
40068         variant of strftime that doesn't need the multibyte modules.
40070         I discovered this problem when attempting modify Emacs to use the
40071         strftime module.  With the previous gnulib, this caused Emacs to
40072         need 31 new files, ranging from lib/config.charset to
40073         m4/wint_t.m4.  This was overkill and I expect would be offputting
40074         to the Emacs maintainers.  After this change, only 6 new files are
40075         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
40076         stdbool.m4, and tm_gmtoff.m4.
40078         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
40079         Suggested by Bruno Haible in
40080         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
40081         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
40082         and do not check for wchar.h.
40083         * modules/strftime (Files): Remove m4/mbstate_t.m4.
40084         (Depends-on): Remove mbrlen, mbsinit, wchar.
40086 2011-01-18  Bruno Haible  <bruno@clisp.org>
40088         Tests for module 'get-rusage-as'.
40089         * modules/get-rusage-as-tests: New file.
40090         * tests/test-get-rusage-as.c: New file.
40092         New module 'get-rusage-as'.
40093         * modules/get-rusage-as: New file.
40094         * lib/resource-ext.h: New file.
40095         * lib/get-rusage-as.c: New file.
40097 2011-01-17  Eric Blake  <eblake@redhat.com>
40099         sigaction: relax license from LGPLv3+ to LGPLv2+
40100         * modules/sigaction (License): Relax to LGPLv2+.
40102 2011-01-14  Bruno Haible  <bruno@clisp.org>
40104         filemode: Make function declarations usable in C++ mode.
40105         * lib/filemode.h: Enclose function declarations in extern "C" block.
40106         Reported by John W. Eaton <jwe@gnu.org>.
40108 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
40110         save-cwd: no longer include "xgetcwd.h"
40111         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
40112         This avoids a compilation failure in projects that use save-cwd
40113         without also using the xgetcwd module.
40115 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40117         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
40118         This is so that a program like Emacs, which needs only dtoastr,
40119         does not have to bother with distributing and compiling ftoastr
40120         and ldtoastr.
40121         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
40122         * modules/dtoastr, modules/ldtoastr: New files.
40123         * modules/ftoastr: Now works just for 'float'.
40124         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
40125         (Makefile.am): Remove ftoastr.h (not needed and no effect),
40126         dtoastr.c, ldtoastr.c.
40128 2011-01-11  Jim Meyering  <meyering@redhat.com>
40130         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
40131         There is no need to work around the lack of the fchdir function,
40132         since gnulib can now provide a replacement when required.
40133         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
40134         * modules/save-cwd (Depends-on): Add fchdir.
40136 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
40138         openat, save-cwd: avoid xmalloc
40140         This removes a direct (but undocumented) dependency of openat on
40141         xalloc, along with an indirect dependency via save-cwd.  It also
40142         removes a dependency of save-cwd on xgetcwd, and thereby
40143         indirectly on xalloc.  This change causes the openat substitute
40144         to fall back on save_cwd when memory is tight, and for save_cwd to
40145         fail instead of dying when memory is tight, but that's good enough.
40146         Problem and initial idea for fix reported by Bastien Roucaries in
40147         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
40149         * lib/openat-proc.c: Include stdlib.h (for malloc), not
40150         xalloc.h (for xmalloc).
40151         (openat_proc_name): Use malloc, not xmalloc.
40152         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
40153         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
40155         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
40156         This avoids heap allocation for file names whose lengths are in
40157         the range 512..1023, with the upper bound increasing to at most
40158         4031 depending on the platform's PATH_MAX.  (We do not want
40159         pathmax.h here as it might supply a non-constant PATH_MAX.)
40160         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
40161         Perhaps they should be moved to malloca.h?
40162         (OPENAT_BUFFER_SIZE): Use them.
40164 2011-01-10  Bruno Haible  <bruno@clisp.org>
40166         doc: Update users.txt.
40167         * users.txt: Add recutils.
40169 2011-01-09  Karl Berry  <karl@gnu.org>
40171         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
40173         * doc/configmake.texi: New file.
40174         * doc/gnulib.texi: Include it.
40175         * modules/configmake: Move documentation from here.
40177 2011-01-09  Bruno Haible  <bruno@clisp.org>
40179         Update to Unicode 6.0.0.
40180         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
40181         (get_lbp): Update for Unicode 6.0.0.
40182         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
40183         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
40184         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
40185         U+11001, U+11038..U+11046. Remove U+06DE.
40186         (uc_width): Fix bounds of planes.
40187         * tests/uniwidth/test-uc_width2.sh: Same updates as in
40188         lib/uniwidth/width.c.
40189         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
40190         trailing whitespace removed.
40191         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
40192         without comments, but with the original copyright notice.
40193         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
40194         * lib/unicase/ignorable.h: Likewise.
40195         * lib/unicase/tocasefold.h: Likewise.
40196         * lib/unicase/tolower.h: Likewise.
40197         * lib/unicase/totitle.h: Likewise.
40198         * lib/unicase/toupper.h: Likewise.
40199         * lib/unictype/bidi_of.h: Likewise.
40200         * lib/unictype/blocks.h: Likewise.
40201         * lib/unictype/categ_C.h: Likewise.
40202         * lib/unictype/categ_Cn.h: Likewise.
40203         * lib/unictype/categ_L.h: Likewise.
40204         * lib/unictype/categ_Ll.h: Likewise.
40205         * lib/unictype/categ_Lm.h: Likewise.
40206         * lib/unictype/categ_Lo.h: Likewise.
40207         * lib/unictype/categ_Lu.h: Likewise.
40208         * lib/unictype/categ_M.h: Likewise.
40209         * lib/unictype/categ_Mc.h: Likewise.
40210         * lib/unictype/categ_Me.h: Likewise.
40211         * lib/unictype/categ_Mn.h: Likewise.
40212         * lib/unictype/categ_N.h: Likewise.
40213         * lib/unictype/categ_Nd.h: Likewise.
40214         * lib/unictype/categ_No.h: Likewise.
40215         * lib/unictype/categ_P.h: Likewise.
40216         * lib/unictype/categ_Po.h: Likewise.
40217         * lib/unictype/categ_S.h: Likewise.
40218         * lib/unictype/categ_Sc.h: Likewise.
40219         * lib/unictype/categ_Sk.h: Likewise.
40220         * lib/unictype/categ_Sm.h: Likewise.
40221         * lib/unictype/categ_So.h: Likewise.
40222         * lib/unictype/categ_of.h: Likewise.
40223         * lib/unictype/combining.h: Likewise.
40224         * lib/unictype/ctype_alnum.h: Likewise.
40225         * lib/unictype/ctype_alpha.h: Likewise.
40226         * lib/unictype/ctype_graph.h: Likewise.
40227         * lib/unictype/ctype_lower.h: Likewise.
40228         * lib/unictype/ctype_print.h: Likewise.
40229         * lib/unictype/ctype_punct.h: Likewise.
40230         * lib/unictype/ctype_upper.h: Likewise.
40231         * lib/unictype/decdigit.h: Likewise.
40232         * lib/unictype/digit.h: Likewise.
40233         * lib/unictype/numeric.h: Likewise.
40234         * lib/unictype/pr_alphabetic.h: Likewise.
40235         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40236         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40237         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40238         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40239         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40240         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40241         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40242         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40243         * lib/unictype/pr_case_ignorable.h: Likewise.
40244         * lib/unictype/pr_cased.h: Likewise.
40245         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
40246         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
40247         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
40248         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
40249         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
40250         * lib/unictype/pr_combining.h: Likewise.
40251         * lib/unictype/pr_composite.h: Likewise.
40252         * lib/unictype/pr_currency_symbol.h: Likewise.
40253         * lib/unictype/pr_decimal_digit.h: Likewise.
40254         * lib/unictype/pr_deprecated.h: Likewise.
40255         * lib/unictype/pr_format_control.h: Likewise.
40256         * lib/unictype/pr_grapheme_base.h: Likewise.
40257         * lib/unictype/pr_grapheme_extend.h: Likewise.
40258         * lib/unictype/pr_grapheme_link.h: Likewise.
40259         * lib/unictype/pr_id_continue.h: Likewise.
40260         * lib/unictype/pr_id_start.h: Likewise.
40261         * lib/unictype/pr_ideographic.h: Likewise.
40262         * lib/unictype/pr_lowercase.h: Likewise.
40263         * lib/unictype/pr_math.h: Likewise.
40264         * lib/unictype/pr_numeric.h: Likewise.
40265         * lib/unictype/pr_other_alphabetic.h: Likewise.
40266         * lib/unictype/pr_other_id_continue.h: Likewise.
40267         * lib/unictype/pr_other_math.h: Likewise.
40268         * lib/unictype/pr_punctuation.h: Likewise.
40269         * lib/unictype/pr_sentence_terminal.h: Likewise.
40270         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40271         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40272         * lib/unictype/pr_unified_ideograph.h: Likewise.
40273         * lib/unictype/pr_uppercase.h: Likewise.
40274         * lib/unictype/pr_xid_continue.h: Likewise.
40275         * lib/unictype/pr_xid_start.h: Likewise.
40276         * lib/unictype/scripts.h: Likewise.
40277         * lib/unictype/scripts_byname.gperf: Likewise.
40278         * lib/unictype/sy_java_ident.h: Likewise.
40279         * lib/unigbrk/gbrkprop.h: Likewise.
40280         * lib/unilbrk/lbrkprop1.h: Likewise.
40281         * lib/unilbrk/lbrkprop2.h: Likewise.
40282         * lib/uninorm/decomposition-table2.h: Likewise.
40283         * lib/uniwbrk/wbrkprop.h: Likewise.
40284         * tests/unicase/test-cased.c: Likewise.
40285         * tests/unicase/test-ignorable.c: Likewise.
40286         * tests/unicase/test-uc_tolower.c: Likewise.
40287         * tests/unicase/test-uc_totitle.c: Likewise.
40288         * tests/unicase/test-uc_toupper.c: Likewise.
40289         * tests/unictype/test-categ_C.c: Likewise.
40290         * tests/unictype/test-categ_Cn.c: Likewise.
40291         * tests/unictype/test-categ_L.c: Likewise.
40292         * tests/unictype/test-categ_Ll.c: Likewise.
40293         * tests/unictype/test-categ_Lm.c: Likewise.
40294         * tests/unictype/test-categ_Lo.c: Likewise.
40295         * tests/unictype/test-categ_Lu.c: Likewise.
40296         * tests/unictype/test-categ_M.c: Likewise.
40297         * tests/unictype/test-categ_Mc.c: Likewise.
40298         * tests/unictype/test-categ_Me.c: Likewise.
40299         * tests/unictype/test-categ_Mn.c: Likewise.
40300         * tests/unictype/test-categ_N.c: Likewise.
40301         * tests/unictype/test-categ_Nd.c: Likewise.
40302         * tests/unictype/test-categ_No.c: Likewise.
40303         * tests/unictype/test-categ_P.c: Likewise.
40304         * tests/unictype/test-categ_Po.c: Likewise.
40305         * tests/unictype/test-categ_S.c: Likewise.
40306         * tests/unictype/test-categ_Sc.c: Likewise.
40307         * tests/unictype/test-categ_Sk.c: Likewise.
40308         * tests/unictype/test-categ_Sm.c: Likewise.
40309         * tests/unictype/test-categ_So.c: Likewise.
40310         * tests/unictype/test-ctype_alnum.c: Likewise.
40311         * tests/unictype/test-ctype_alpha.c: Likewise.
40312         * tests/unictype/test-ctype_graph.c: Likewise.
40313         * tests/unictype/test-ctype_lower.c: Likewise.
40314         * tests/unictype/test-ctype_print.c: Likewise.
40315         * tests/unictype/test-ctype_punct.c: Likewise.
40316         * tests/unictype/test-ctype_upper.c: Likewise.
40317         * tests/unictype/test-decdigit.h: Likewise.
40318         * tests/unictype/test-digit.h: Likewise.
40319         * tests/unictype/test-numeric.h: Likewise.
40320         * tests/unictype/test-pr_alphabetic.c: Likewise.
40321         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40322         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40323         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40324         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40325         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40326         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40327         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40328         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40329         * tests/unictype/test-pr_case_ignorable.c: Likewise.
40330         * tests/unictype/test-pr_cased.c: Likewise.
40331         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
40332         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
40333         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
40334         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
40335         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
40336         * tests/unictype/test-pr_combining.c: Likewise.
40337         * tests/unictype/test-pr_composite.c: Likewise.
40338         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40339         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40340         * tests/unictype/test-pr_deprecated.c: Likewise.
40341         * tests/unictype/test-pr_format_control.c: Likewise.
40342         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40343         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40344         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40345         * tests/unictype/test-pr_id_continue.c: Likewise.
40346         * tests/unictype/test-pr_id_start.c: Likewise.
40347         * tests/unictype/test-pr_ideographic.c: Likewise.
40348         * tests/unictype/test-pr_lowercase.c: Likewise.
40349         * tests/unictype/test-pr_math.c: Likewise.
40350         * tests/unictype/test-pr_numeric.c: Likewise.
40351         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40352         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40353         * tests/unictype/test-pr_other_math.c: Likewise.
40354         * tests/unictype/test-pr_punctuation.c: Likewise.
40355         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40356         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40357         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40358         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40359         * tests/unictype/test-pr_uppercase.c: Likewise.
40360         * tests/unictype/test-pr_xid_continue.c: Likewise.
40361         * tests/unictype/test-pr_xid_start.c: Likewise.
40362         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
40363         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
40364         changes.
40365         * lib/unictype/categ_Cc.h: Likewise.
40366         * lib/unictype/categ_Cf.h: Likewise.
40367         * lib/unictype/categ_Co.h: Likewise.
40368         * lib/unictype/categ_Cs.h: Likewise.
40369         * lib/unictype/categ_Lt.h: Likewise.
40370         * lib/unictype/categ_Nl.h: Likewise.
40371         * lib/unictype/categ_Pc.h: Likewise.
40372         * lib/unictype/categ_Pd.h: Likewise.
40373         * lib/unictype/categ_Pe.h: Likewise.
40374         * lib/unictype/categ_Pf.h: Likewise.
40375         * lib/unictype/categ_Pi.h: Likewise.
40376         * lib/unictype/categ_Ps.h: Likewise.
40377         * lib/unictype/categ_Z.h: Likewise.
40378         * lib/unictype/categ_Zl.h: Likewise.
40379         * lib/unictype/categ_Zp.h: Likewise.
40380         * lib/unictype/categ_Zs.h: Likewise.
40381         * lib/unictype/ctype_blank.h: Likewise.
40382         * lib/unictype/ctype_cntrl.h: Likewise.
40383         * lib/unictype/ctype_digit.h: Likewise.
40384         * lib/unictype/ctype_space.h: Likewise.
40385         * lib/unictype/ctype_xdigit.h: Likewise.
40386         * lib/unictype/mirror.h: Likewise.
40387         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40388         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40389         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40390         * lib/unictype/pr_bidi_control.h: Likewise.
40391         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40392         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40393         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40394         * lib/unictype/pr_bidi_pdf.h: Likewise.
40395         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40396         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40397         * lib/unictype/pr_dash.h: Likewise.
40398         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40399         * lib/unictype/pr_diacritic.h: Likewise.
40400         * lib/unictype/pr_extender.h: Likewise.
40401         * lib/unictype/pr_hex_digit.h: Likewise.
40402         * lib/unictype/pr_hyphen.h: Likewise.
40403         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40404         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40405         * lib/unictype/pr_ignorable_control.h: Likewise.
40406         * lib/unictype/pr_iso_control.h: Likewise.
40407         * lib/unictype/pr_join_control.h: Likewise.
40408         * lib/unictype/pr_left_of_pair.h: Likewise.
40409         * lib/unictype/pr_line_separator.h: Likewise.
40410         * lib/unictype/pr_logical_order_exception.h: Likewise.
40411         * lib/unictype/pr_non_break.h: Likewise.
40412         * lib/unictype/pr_not_a_character.h: Likewise.
40413         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40414         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40415         * lib/unictype/pr_other_id_start.h: Likewise.
40416         * lib/unictype/pr_other_lowercase.h: Likewise.
40417         * lib/unictype/pr_other_uppercase.h: Likewise.
40418         * lib/unictype/pr_paired_punctuation.h: Likewise.
40419         * lib/unictype/pr_paragraph_separator.h: Likewise.
40420         * lib/unictype/pr_pattern_syntax.h: Likewise.
40421         * lib/unictype/pr_pattern_white_space.h: Likewise.
40422         * lib/unictype/pr_private_use.h: Likewise.
40423         * lib/unictype/pr_quotation_mark.h: Likewise.
40424         * lib/unictype/pr_radical.h: Likewise.
40425         * lib/unictype/pr_soft_dotted.h: Likewise.
40426         * lib/unictype/pr_space.h: Likewise.
40427         * lib/unictype/pr_titlecase.h: Likewise.
40428         * lib/unictype/pr_variation_selector.h: Likewise.
40429         * lib/unictype/pr_white_space.h: Likewise.
40430         * lib/unictype/pr_zero_width.h: Likewise.
40431         * lib/unictype/sy_c_ident.h: Likewise.
40432         * lib/unictype/sy_c_whitespace.h: Likewise.
40433         * lib/unictype/sy_java_whitespace.h: Likewise.
40434         * lib/uninorm/composition-table.gperf: Likewise.
40435         * lib/uninorm/decomposition-table1.h: Likewise.
40436         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
40437         LB8.
40438         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40439         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40440         * modules/unictype/*: Bump version number of expected libunistring
40441         version.
40443 2011-01-09  Bruno Haible  <bruno@clisp.org>
40445         Update to Unicode 5.2.0.
40446         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
40447         trailing whitespace removed.
40449 2011-01-09  Bruno Haible  <bruno@clisp.org>
40451         New Unicode character properties, from Unicode 5.2.0.
40452         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
40453         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
40454         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
40455         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
40456         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
40457         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
40458         uc_is_property_cased, uc_is_property_case_ignorable,
40459         uc_is_property_changes_when_lowercased,
40460         uc_is_property_changes_when_uppercased,
40461         uc_is_property_changes_when_titlecased,
40462         uc_is_property_changes_when_casefolded,
40463         uc_is_property_changes_when_casemapped): New declarations.
40464         * lib/unictype/pr_byname.gperf: Add the new properties.
40465         * modules/unictype/property-byname (Depends-on): Depend on the new
40466         properties modules.
40467         * modules/unictype/property-all (Depends-on): Likewise.
40468         * MODULES.html.sh (Unicode string functions): Add
40469         unictype/property-case-ignorable, unictype/property-cased,
40470         unictype/property-changes-when-casefolded,
40471         unictype/property-changes-when-casemapped,
40472         unictype/property-changes-when-lowercased,
40473         unictype/property-changes-when-titlecased,
40474         unictype/property-changes-when-uppercased.
40476         New module 'unictype/property-changes-when-casemapped'.
40477         * modules/unictype/property-changes-when-casemapped: New file.
40478         * lib/unictype/pr_changes_when_casemapped.c: New file.
40479         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
40480         generated by gen-uni-tables.
40481         * modules/unictype/property-changes-when-casemapped-tests: New file.
40482         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
40483         automatically generated by gen-uni-tables.
40485         New module 'unictype/property-changes-when-casefolded'.
40486         * modules/unictype/property-changes-when-casefolded: New file.
40487         * lib/unictype/pr_changes_when_casefolded.c: New file.
40488         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
40489         generated by gen-uni-tables.
40490         * modules/unictype/property-changes-when-casefolded-tests: New file.
40491         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
40492         automatically generated by gen-uni-tables.
40494         New module 'unictype/property-changes-when-titlecased'.
40495         * modules/unictype/property-changes-when-titlecased: New file.
40496         * lib/unictype/pr_changes_when_titlecased.c: New file.
40497         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
40498         generated by gen-uni-tables.
40499         * modules/unictype/property-changes-when-titlecased-tests: New file.
40500         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
40501         automatically generated by gen-uni-tables.
40503         New module 'unictype/property-changes-when-uppercased'.
40504         * modules/unictype/property-changes-when-uppercased: New file.
40505         * lib/unictype/pr_changes_when_uppercased.c: New file.
40506         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
40507         generated by gen-uni-tables.
40508         * modules/unictype/property-changes-when-uppercased-tests: New file.
40509         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
40510         automatically generated by gen-uni-tables.
40512         New module 'unictype/property-changes-when-lowercased'.
40513         * modules/unictype/property-changes-when-lowercased: New file.
40514         * lib/unictype/pr_changes_when_lowercased.c: New file.
40515         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
40516         generated by gen-uni-tables.
40517         * modules/unictype/property-changes-when-lowercased-tests: New file.
40518         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
40519         automatically generated by gen-uni-tables.
40521         New module 'unictype/property-case-ignorable'.
40522         * modules/unictype/property-case-ignorable: New file.
40523         * lib/unictype/pr_case_ignorable.c: New file.
40524         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
40525         by gen-uni-tables.
40526         * modules/unictype/property-case-ignorable-tests: New file.
40527         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
40528         generated by gen-uni-tables.
40530         New module 'unictype/property-cased'.
40531         * modules/unictype/property-cased: New file.
40532         * lib/unictype/pr_cased.c: New file.
40533         * lib/unictype/pr_cased.h: New file, automatically generated by
40534         gen-uni-tables.
40535         * modules/unictype/property-cased-tests: New file.
40536         * tests/unictype/test-pr_cased.c: New file, automatically generated by
40537         gen-uni-tables.
40539 2011-01-09  Bruno Haible  <bruno@clisp.org>
40541         Update to Unicode 5.2.0.
40542         * lib/gen-uni-tables.c (output_predicate, output_category,
40543         output_combclass, output_bidi_category, output_decimal_digit_test,
40544         output_decimal_digit, output_digit_test, output_digit,
40545         output_numeric_test, output_numeric, output_mirror, output_scripts,
40546         output_scripts_byname, output_blocks, output_ident_category): Fix
40547         comment header.
40548         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
40549         get_wbp.
40550         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
40551         items.
40552         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
40553         Changes_When_Lowercased, Changes_When_Uppercased,
40554         Changes_When_Titlecased, Changes_When_Casefolded,
40555         Changes_When_Casemapped.
40556         (is_property_alphabetic, is_property_default_ignorable_code_point):
40557         Update for Unicode 5.2.0.
40558         (is_property_cased, is_property_case_ignorable,
40559         is_property_changes_when_lowercased,
40560         is_property_changes_when_uppercased,
40561         is_property_changes_when_titlecased,
40562         is_property_changes_when_casefolded,
40563         is_property_changes_when_casemapped): New functions.
40564         (output_properties): Output also the properties cased, case_ignorable,
40565         changes_when_lowercased, changes_when_uppercased,
40566         changes_when_titlecased, changes_when_casefolded,
40567         changes_when_casemapped.
40568         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
40569         Unicode TR#11 revision 17 -> 19.
40570         (LBP_CP): New enumeration value.
40571         (LBP_*): Adjust values accordingly.
40572         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
40573         TR#14 revision 22 -> 24.
40574         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
40575         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
40576         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
40577         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
40578         is_WBP_MIDLETTER.
40579         (output_composition_tables): Allow for 24 bits instead of 16 bits in
40580         the code1 and code2 of each composition rule.
40581         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
40582         * lib/unicase/ignorable.h: Likewise.
40583         * lib/unicase/tocasefold.h: Likewise.
40584         * lib/unicase/tolower.h: Likewise.
40585         * lib/unicase/totitle.h: Likewise.
40586         * lib/unicase/toupper.h: Likewise.
40587         * lib/unictype/bidi_of.h: Likewise.
40588         * lib/unictype/blocks.h: Likewise.
40589         * lib/unictype/categ_C.h: Likewise.
40590         * lib/unictype/categ_Cf.h: Likewise.
40591         * lib/unictype/categ_Cn.h: Likewise.
40592         * lib/unictype/categ_L.h: Likewise.
40593         * lib/unictype/categ_Ll.h: Likewise.
40594         * lib/unictype/categ_Lm.h: Likewise.
40595         * lib/unictype/categ_Lo.h: Likewise.
40596         * lib/unictype/categ_Lu.h: Likewise.
40597         * lib/unictype/categ_M.h: Likewise.
40598         * lib/unictype/categ_Mc.h: Likewise.
40599         * lib/unictype/categ_Mn.h: Likewise.
40600         * lib/unictype/categ_N.h: Likewise.
40601         * lib/unictype/categ_Nd.h: Likewise.
40602         * lib/unictype/categ_Nl.h: Likewise.
40603         * lib/unictype/categ_No.h: Likewise.
40604         * lib/unictype/categ_P.h: Likewise.
40605         * lib/unictype/categ_Pd.h: Likewise.
40606         * lib/unictype/categ_Po.h: Likewise.
40607         * lib/unictype/categ_S.h: Likewise.
40608         * lib/unictype/categ_Sc.h: Likewise.
40609         * lib/unictype/categ_So.h: Likewise.
40610         * lib/unictype/categ_of.h: Likewise.
40611         * lib/unictype/combining.h: Likewise.
40612         * lib/unictype/ctype_alnum.h: Likewise.
40613         * lib/unictype/ctype_alpha.h: Likewise.
40614         * lib/unictype/ctype_graph.h: Likewise.
40615         * lib/unictype/ctype_lower.h: Likewise.
40616         * lib/unictype/ctype_print.h: Likewise.
40617         * lib/unictype/ctype_punct.h: Likewise.
40618         * lib/unictype/ctype_upper.h: Likewise.
40619         * lib/unictype/decdigit.h: Likewise.
40620         * lib/unictype/digit.h: Likewise.
40621         * lib/unictype/numeric.h: Likewise.
40622         * lib/unictype/pr_alphabetic.h: Likewise.
40623         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40624         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40625         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40626         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40627         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40628         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40629         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40630         * lib/unictype/pr_combining.h: Likewise.
40631         * lib/unictype/pr_composite.h: Likewise.
40632         * lib/unictype/pr_currency_symbol.h: Likewise.
40633         * lib/unictype/pr_dash.h: Likewise.
40634         * lib/unictype/pr_decimal_digit.h: Likewise.
40635         * lib/unictype/pr_deprecated.h: Likewise.
40636         * lib/unictype/pr_diacritic.h: Likewise.
40637         * lib/unictype/pr_extender.h: Likewise.
40638         * lib/unictype/pr_grapheme_base.h: Likewise.
40639         * lib/unictype/pr_grapheme_extend.h: Likewise.
40640         * lib/unictype/pr_grapheme_link.h: Likewise.
40641         * lib/unictype/pr_id_continue.h: Likewise.
40642         * lib/unictype/pr_id_start.h: Likewise.
40643         * lib/unictype/pr_ideographic.h: Likewise.
40644         * lib/unictype/pr_ignorable_control.h: Likewise.
40645         * lib/unictype/pr_logical_order_exception.h: Likewise.
40646         * lib/unictype/pr_lowercase.h: Likewise.
40647         * lib/unictype/pr_numeric.h: Likewise.
40648         * lib/unictype/pr_other_alphabetic.h: Likewise.
40649         * lib/unictype/pr_punctuation.h: Likewise.
40650         * lib/unictype/pr_sentence_terminal.h: Likewise.
40651         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40652         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40653         * lib/unictype/pr_unified_ideograph.h: Likewise.
40654         * lib/unictype/pr_uppercase.h: Likewise.
40655         * lib/unictype/pr_xid_continue.h: Likewise.
40656         * lib/unictype/pr_xid_start.h: Likewise.
40657         * lib/unictype/pr_zero_width.h: Likewise.
40658         * lib/unictype/scripts.h: Likewise.
40659         * lib/unictype/scripts_byname.gperf: Likewise.
40660         * lib/unictype/sy_java_ident.h: Likewise.
40661         * lib/unigbrk/gbrkprop.h: Likewise.
40662         * lib/unilbrk/lbrkprop1.h: Likewise.
40663         * lib/unilbrk/lbrkprop2.h: Likewise.
40664         * lib/unilbrk/lbrktables.h: Likewise.
40665         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
40666         LBP_CP. Implement rule LB30.
40667         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
40668         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
40669         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
40670         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
40671         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
40672         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
40673         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
40674         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
40675         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
40676         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
40677         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
40678         bits instead of 16 bits in the code1 and code2 of each composition
40679         rule.
40680         (uc_composition): Update for Unicode 5.2.0.
40681         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
40682         * lib/uninorm/decomposition-table2.h: Likewise.
40683         * lib/uniwbrk/wbrkprop.h: Likewise.
40684         * tests/unicase/test-cased.c: Likewise.
40685         * tests/unicase/test-ignorable.c: Likewise.
40686         * tests/unicase/test-uc_tolower.c: Likewise.
40687         * tests/unicase/test-uc_totitle.c: Likewise.
40688         * tests/unicase/test-uc_toupper.c: Likewise.
40689         * tests/unictype/test-categ_C.c: Likewise.
40690         * tests/unictype/test-categ_Cf.c: Likewise.
40691         * tests/unictype/test-categ_Cn.c: Likewise.
40692         * tests/unictype/test-categ_L.c: Likewise.
40693         * tests/unictype/test-categ_Ll.c: Likewise.
40694         * tests/unictype/test-categ_Lm.c: Likewise.
40695         * tests/unictype/test-categ_Lo.c: Likewise.
40696         * tests/unictype/test-categ_Lu.c: Likewise.
40697         * tests/unictype/test-categ_M.c: Likewise.
40698         * tests/unictype/test-categ_Mc.c: Likewise.
40699         * tests/unictype/test-categ_Mn.c: Likewise.
40700         * tests/unictype/test-categ_N.c: Likewise.
40701         * tests/unictype/test-categ_Nd.c: Likewise.
40702         * tests/unictype/test-categ_Nl.c: Likewise.
40703         * tests/unictype/test-categ_No.c: Likewise.
40704         * tests/unictype/test-categ_P.c: Likewise.
40705         * tests/unictype/test-categ_Pd.c: Likewise.
40706         * tests/unictype/test-categ_Po.c: Likewise.
40707         * tests/unictype/test-categ_S.c: Likewise.
40708         * tests/unictype/test-categ_Sc.c: Likewise.
40709         * tests/unictype/test-categ_So.c: Likewise.
40710         * tests/unictype/test-ctype_alnum.c: Likewise.
40711         * tests/unictype/test-ctype_alpha.c: Likewise.
40712         * tests/unictype/test-ctype_graph.c: Likewise.
40713         * tests/unictype/test-ctype_lower.c: Likewise.
40714         * tests/unictype/test-ctype_print.c: Likewise.
40715         * tests/unictype/test-ctype_punct.c: Likewise.
40716         * tests/unictype/test-ctype_upper.c: Likewise.
40717         * tests/unictype/test-decdigit.h: Likewise.
40718         * tests/unictype/test-digit.h: Likewise.
40719         * tests/unictype/test-numeric.h: Likewise.
40720         * tests/unictype/test-pr_alphabetic.c: Likewise.
40721         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40722         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40723         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
40724         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40725         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40726         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40727         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40728         * tests/unictype/test-pr_combining.c: Likewise.
40729         * tests/unictype/test-pr_composite.c: Likewise.
40730         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40731         * tests/unictype/test-pr_dash.c: Likewise.
40732         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40733         * tests/unictype/test-pr_deprecated.c: Likewise.
40734         * tests/unictype/test-pr_diacritic.c: Likewise.
40735         * tests/unictype/test-pr_extender.c: Likewise.
40736         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40737         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40738         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40739         * tests/unictype/test-pr_id_continue.c: Likewise.
40740         * tests/unictype/test-pr_id_start.c: Likewise.
40741         * tests/unictype/test-pr_ideographic.c: Likewise.
40742         * tests/unictype/test-pr_ignorable_control.c: Likewise.
40743         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
40744         * tests/unictype/test-pr_lowercase.c: Likewise.
40745         * tests/unictype/test-pr_numeric.c: Likewise.
40746         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40747         * tests/unictype/test-pr_punctuation.c: Likewise.
40748         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40749         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40750         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40751         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40752         * tests/unictype/test-pr_uppercase.c: Likewise.
40753         * tests/unictype/test-pr_xid_continue.c: Likewise.
40754         * tests/unictype/test-pr_xid_start.c: Likewise.
40755         * tests/unictype/test-pr_zero_width.c: Likewise.
40756         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
40757         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
40758         changed behaviour: line breaking is now disallowed between a letter
40759         or '=' and '('.
40760         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40761         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40762         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40763         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
40764         * tests/uniwidth/test-uc_width2.sh: Same updates as in
40765         lib/uniwidth/width.c.
40766         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
40767         without comments, but with the original copyright notice.
40768         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
40769         changes.
40770         * lib/unictype/categ_Cc.h: Likewise.
40771         * lib/unictype/categ_Co.h: Likewise.
40772         * lib/unictype/categ_Cs.h: Likewise.
40773         * lib/unictype/categ_Lt.h: Likewise.
40774         * lib/unictype/categ_Me.h: Likewise.
40775         * lib/unictype/categ_Pc.h: Likewise.
40776         * lib/unictype/categ_Pe.h: Likewise.
40777         * lib/unictype/categ_Pf.h: Likewise.
40778         * lib/unictype/categ_Pi.h: Likewise.
40779         * lib/unictype/categ_Ps.h: Likewise.
40780         * lib/unictype/categ_Sk.h: Likewise.
40781         * lib/unictype/categ_Sm.h: Likewise.
40782         * lib/unictype/categ_Z.h: Likewise.
40783         * lib/unictype/categ_Zl.h: Likewise.
40784         * lib/unictype/categ_Zp.h: Likewise.
40785         * lib/unictype/categ_Zs.h: Likewise.
40786         * lib/unictype/ctype_blank.h: Likewise.
40787         * lib/unictype/ctype_cntrl.h: Likewise.
40788         * lib/unictype/ctype_digit.h: Likewise.
40789         * lib/unictype/ctype_space.h: Likewise.
40790         * lib/unictype/ctype_xdigit.h: Likewise.
40791         * lib/unictype/mirror.h: Likewise.
40792         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40793         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40794         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40795         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40796         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40797         * lib/unictype/pr_bidi_control.h: Likewise.
40798         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40799         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40800         * lib/unictype/pr_bidi_pdf.h: Likewise.
40801         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40802         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40803         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40804         * lib/unictype/pr_format_control.h: Likewise.
40805         * lib/unictype/pr_hex_digit.h: Likewise.
40806         * lib/unictype/pr_hyphen.h: Likewise.
40807         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40808         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40809         * lib/unictype/pr_iso_control.h: Likewise.
40810         * lib/unictype/pr_join_control.h: Likewise.
40811         * lib/unictype/pr_left_of_pair.h: Likewise.
40812         * lib/unictype/pr_line_separator.h: Likewise.
40813         * lib/unictype/pr_math.h: Likewise.
40814         * lib/unictype/pr_non_break.h: Likewise.
40815         * lib/unictype/pr_not_a_character.h: Likewise.
40816         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40817         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40818         * lib/unictype/pr_other_id_continue.h: Likewise.
40819         * lib/unictype/pr_other_id_start.h: Likewise.
40820         * lib/unictype/pr_other_lowercase.h: Likewise.
40821         * lib/unictype/pr_other_math.h: Likewise.
40822         * lib/unictype/pr_other_uppercase.h: Likewise.
40823         * lib/unictype/pr_paired_punctuation.h: Likewise.
40824         * lib/unictype/pr_paragraph_separator.h: Likewise.
40825         * lib/unictype/pr_pattern_syntax.h: Likewise.
40826         * lib/unictype/pr_pattern_white_space.h: Likewise.
40827         * lib/unictype/pr_private_use.h: Likewise.
40828         * lib/unictype/pr_quotation_mark.h: Likewise.
40829         * lib/unictype/pr_radical.h: Likewise.
40830         * lib/unictype/pr_soft_dotted.h: Likewise.
40831         * lib/unictype/pr_space.h: Likewise.
40832         * lib/unictype/pr_titlecase.h: Likewise.
40833         * lib/unictype/pr_variation_selector.h: Likewise.
40834         * lib/unictype/pr_white_space.h: Likewise.
40835         * lib/unictype/sy_c_ident.h: Likewise.
40836         * lib/unictype/sy_c_whitespace.h: Likewise.
40837         * lib/unictype/sy_java_whitespace.h: Likewise.
40838         * modules/uni*/*: Bump version number of expected libunistring version.
40839         Reported by Simon Josefsson.
40841 2011-01-09  Karl Heuer  <kwzh@gnu.org>
40843         useless-if-before-free: fix typo in --help and make the internal,
40844         automatic version date update process work once again.
40845         --help output contained a NUL character instead of the
40846         backslash-zero that was intended.  Also, the "must lie within
40847         the first 8 lines" line is on line 9, and hence not getting
40848         automatically updated.
40849         * build-aux/useless-if-before-free: Fix the former by adding a
40850         backslash, and the latter by condensing the three lines of what-it-does
40851         to a single line, leaving one line of slack for the future.
40853 2011-01-09  Bruno Haible  <bruno@clisp.org>
40855         uniwidth/width: Fix width of U+1D173..U+1D17A.
40856         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
40857         symbolic_width, output_width_property_test): New functions.
40858         (main): Invoke output_nonspacing_property, output_width_property_test.
40859         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
40860         U+1D173..U+1D17A.
40861         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
40862         1.
40863         * modules/uniwidth/*: Bump version number of expected libunistring
40864         version.
40865         * modules/unilbrk/*: Likewise.
40867 2011-01-08  Bruno Haible  <bruno@clisp.org>
40869         uninorm tests: Preserve copyright of Unicode data file.
40870         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
40871         Mention modifications.
40873 2011-01-08  Bruno Haible  <bruno@clisp.org>
40875         gen-uni-tables: Prepare for Unicode 5.2.0.
40876         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
40877         (debug_output_lbp, output_lbp): Update.
40879 2011-01-08  Bruno Haible  <bruno@clisp.org>
40881         unilbrk: Clarify gen-uni-tables.c code.
40882         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
40883         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
40884         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
40886 2011-01-07  Bruno Haible  <bruno@clisp.org>
40888         strtod: Restore errno when successfully parsing Infinity or NaN.
40889         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
40890         restore the original errno.
40892 2011-01-07  Bruno Haible  <bruno@clisp.org>
40894         remove test: Avoid failure on HP-UX 11.
40895         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
40897 2011-01-07  Bruno Haible  <bruno@clisp.org>
40899         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
40900         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
40901         error code.
40903 2011-01-07  Pádraig Brady  <P@draigBrady.com>
40905         ignore-value: fixup comments, and add Eric Blake
40906         as an author since he rewrote the macros.
40907         * lib/ignore-value.h (ignore_value):  State that
40908         we now support aggregates.  Also specify exactly
40909         when the GCC warn_unused_result feature was added.
40911 2011-01-06  Eric Blake  <eblake@redhat.com>
40913         ignore-value: support aggregate types
40914         * lib/ignore-value.h (ignore_value): Provide separate gcc
40915         definition.
40916         * modules/ignore-value-tests: New test module.
40917         * tests/test-ignore-value.c: New test.
40919         maint.mk: improve sc_prohibit_strcmp regex
40920         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
40921         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
40922         definition of STRNEQ.
40924         signal: work around Haiku issue with SIGBUS
40925         * lib/siglist.h: Add comment.
40926         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
40927         strsignal's favoring of SIGSEGV.
40928         * tests/test-signal.c (main): Avoid test failure.
40929         * doc/posix-headers/signal.texi (signal.h): Document the issue.
40930         Reported by Scott McCreary.
40932         maint.mk: add pre-release check to ensure submodule commits are public
40933         * top/maint.mk (public-submodule-commit): New rule.
40934         (submodule-checks): New variable.
40935         (alpha beta stable): Depend on the variable.
40937 2011-01-05  Pádraig Brady  <P@draigBrady.com>
40938         and Jim Meyering  <meyering@redhat.com>
40940         ignore-value: make ignore_value more generic; deprecate ignore_ptr
40941         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
40942         (ATTRIBUTE_DEPRECATED): Define.
40943         (_ignore_case): New function.
40944         (ignore_value): New macro, to replace the old function.
40945         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
40946         * modules/ignore-value (Depends-on): Add stdint.
40948 2011-01-04  Eric Blake  <eblake@redhat.com>
40950         doc: regenerate INSTALL
40951         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
40952         @firstparagraphindent support, now that autoconf dropped it.
40953         (INSTALL_PRELUDE): Reinstate old macro.
40954         * doc/install.texi: Resync from autoconf.
40955         * doc/INSTALL: Reflect recent autoconf update.
40956         * doc/INSTALL.ISO: Likewise.
40957         * doc/INSTALL.UTF-8: Likewise.
40958         Reported by Karl Berry.
40960 2011-01-04  Bruce Korb  <address@hidden>
40962         git-version-gen: avoid a sub-shell
40963         * build-aux/git-version-gen: Redirect stderr in `...` via
40964         "exec 2>...", rather than via an added sub-shell.
40966 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
40968         git-version-gen: use (...) rather than sh -c '...'
40969         * build-aux/git-version-gen: Rather than hard-coding a shell's name
40970         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
40972 2011-01-03  Jim Meyering  <meyering@redhat.com>
40974         git-version-gen: convert leading TABs to spaces
40975         * build-aux/git-version-gen: Expand leading TABs.
40977         git-version-gen: handle failed "git rev-list"
40978         * build-aux/git-version-gen: Rather than leaking a "fatal" error
40979         from git and proceeding as if it had succeeded but printed no SHA1
40980         checksums, suppress the diagnostic and handle the failure.
40981         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
40983         git-version-gen: include command name in one more diagnostic
40984         * build-aux/git-version-gen: When the required .tarball-version file
40985         was missing or unreadable, you might see the diagnostic from "cat",
40986         but no trace of the name of the invoking script.  Now, you still see
40987         the diagnostic from cat, but also get one from "git-version-gen: ".
40988         Inspired by a patch from Bruce Korb.
40990         update-copyright: adjust test to match changed code
40991         * tests/test-update-copyright.sh: Change test's expected output
40992         to match new actual output.
40994 2011-01-02  Bruno Haible  <bruno@clisp.org>
40996         getlogin_r: Avoid test failure on HP-UX 11.
40997         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
40998         ERANGE when the second argument is zero.
40999         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
41000         portability problem.
41002 2011-01-02  Bruce Korb  <bkorb@gnu.org>
41004         * build-aux/update-copyright: doc Simon's changes
41006 2011-01-02  Simon Josefsson  <simon@josefsson.org>
41008         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
41009         environment variable.
41011 2011-01-02  Bruno Haible  <bruno@clisp.org>
41013         unigbrk: Avoid gcc warnings.
41014         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
41015         unused variable.
41016         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
41017         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
41018         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
41019         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
41020         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
41021         Change type of first argument to 'const char *'.
41022         (main): Remove unused variable.
41023         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
41024         type of first argument to 'const char *'.
41025         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
41026         Likewise.
41027         (main): Change type of variable 's'.
41028         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
41029         to 'int'.
41031 2011-01-02  Bruno Haible  <bruno@clisp.org>
41033         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
41034         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
41035         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
41036         bug.
41037         * lib/pwrite.c: Undo 2010-12-31 patch.
41038         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
41040 2011-01-02  Bruno Haible  <bruno@clisp.org>
41042         pread: Fix test whether it works.
41043         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
41045 2011-01-02  Bruno Haible  <bruno@clisp.org>
41047         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
41048         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
41049         ends in "6". Don't require a specific month name. Try also the locale
41050         names found on HP-UX 11 and Solaris 7.
41052 2011-01-02  Bruno Haible  <bruno@clisp.org>
41054         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
41055         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
41056         C linkage.
41057         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
41059 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41061         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
41062         for consistency, since the "cluster" term is not used elsewhere.
41063         * lib/unigbrk.in.h: Update name.
41064         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
41065         * lib/unigbrk/u16-grapheme-next.c: Update name.
41066         * lib/unigbrk/u16-grapheme-prev.c: Update name.
41067         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
41068         * lib/unigbrk/u32-grapheme-next.c: Update name.
41069         * lib/unigbrk/u32-grapheme-prev.c: Update name.
41070         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
41071         * lib/unigbrk/u8-grapheme-next.c: Update name.
41072         * lib/unigbrk/u8-grapheme-prev.c: Update name.
41073         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
41074         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
41075         Suggested by Bruno Haible.
41077 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41079         Remove module 'u8-grapheme-len' as too redundant with
41080         'u8-grapheme-next'.
41081         * modules/unigbrk/u8-grapheme-len: Delete file.
41082         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
41083         * lib/unigbrk.in.h: Remove prototype for deleted function.
41084         * lib/unigbrk/u8-grapheme-len.c: Delete file.
41085         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
41087         Remove module 'u16-grapheme-len' as too redundant with
41088         'u16-grapheme-next'.
41089         * modules/unigbrk/u16-grapheme-len: Delete file.
41090         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
41091         * lib/unigbrk.in.h: Remove prototype for deleted function.
41092         * lib/unigbrk/u16-grapheme-len.c: Delete file.
41093         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
41095         Remove module 'u32-grapheme-len' as too redundant with
41096         'u32-grapheme-next'.
41097         * modules/unigbrk/u32-grapheme-len: Delete file.
41098         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
41099         * lib/unigbrk.in.h: Remove prototype for deleted function.
41100         * lib/unigbrk/u32-grapheme-len.c: Delete file.
41101         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
41103         Suggested by Bruno Haible.
41105 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
41107         * unigbrk.in.h: Fix typo: "ben" => "been".
41108         Reported by Bruno Haible.
41110 2011-01-01  Jim Meyering  <meyering@redhat.com>
41112         maint: update almost all copyright ranges to include 2011
41113         Run the new "make update-copyright" rule.
41115 2011-01-01  Jim Meyering  <meyering@redhat.com>
41117         maint: update-copyright: exempt doc/INSTALL*
41118         * Makefile (update-copyright): Also exclude doc/INSTALL*,
41119         since they are generated.  Suggested by Bruno Haible.
41121 2011-01-01  Jim Meyering  <meyering@redhat.com>
41123         maint: refine the update-copyright rule
41124         * Makefile (update-copyright): Also exclude any file that includes
41125         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
41126         code that merely generates the comment.
41128 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41130         New module 'u8-grapheme-len'.
41131         * modules/unigbrk/u8-grapheme-len: New file.
41132         * modules/unigbrk/u8-grapheme-len-tests: New file.
41133         * lib/unigbrk.in.h: Add prototype for new function.
41134         * lib/unigbrk/u8-grapheme-len.c: New file.
41135         * tests/unigbrk/test-u8-grapheme-len.c: New file.
41137         New module 'u16-grapheme-len'.
41138         * modules/unigbrk/u16-grapheme-len: New file.
41139         * modules/unigbrk/u16-grapheme-len-tests: New file.
41140         * lib/unigbrk.in.h: Add prototype for new function.
41141         * lib/unigbrk/u16-grapheme-len.c: New file.
41142         * tests/unigbrk/test-u16-grapheme-len.c: New file.
41144         New module 'u32-grapheme-len'.
41145         * modules/unigbrk/u32-grapheme-len: New file.
41146         * modules/unigbrk/u32-grapheme-len-tests: New file.
41147         * lib/unigbrk.in.h: Add prototype for new function.
41148         * lib/unigbrk/u32-grapheme-len.c: New file.
41149         * tests/unigbrk/test-u32-grapheme-len.c: New file.
41151         New module 'u8-grapheme-next'.
41152         * modules/unigbrk/u8-grapheme-next: New file.
41153         * modules/unigbrk/u8-grapheme-next-tests: New file.
41154         * lib/unigbrk.in.h: Add prototype for new function.
41155         * lib/unigbrk/u8-grapheme-next.c: New file.
41156         * tests/unigbrk/test-u8-grapheme-next.c: New file.
41158         New module 'u16-grapheme-next'.
41159         * modules/unigbrk/u16-grapheme-next: New file.
41160         * modules/unigbrk/u16-grapheme-next-tests: New file.
41161         * lib/unigbrk.in.h: Add prototype for new function.
41162         * lib/unigbrk/u16-grapheme-next.c: New file.
41163         * tests/unigbrk/test-u16-grapheme-next.c: New file.
41165         New module 'u32-grapheme-next'.
41166         * modules/unigbrk/u32-grapheme-next: New file.
41167         * modules/unigbrk/u32-grapheme-next-tests: New file.
41168         * lib/unigbrk.in.h: Add prototype for new function.
41169         * lib/unigbrk/u32-grapheme-next.c: New file.
41170         * tests/unigbrk/test-u32-grapheme-next.c: New file.
41172         New module 'u8-grapheme-prev'.
41173         * modules/unigbrk/u8-grapheme-prev: New file.
41174         * modules/unigbrk/u8-grapheme-prev-tests: New file.
41175         * lib/unigbrk.in.h: Add prototype for new function.
41176         * lib/unigbrk/u8-grapheme-prev.c: New file.
41177         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
41179         New module 'u16-grapheme-prev'.
41180         * modules/unigbrk/u16-grapheme-prev: New file.
41181         * modules/unigbrk/u16-grapheme-prev-tests: New file.
41182         * lib/unigbrk.in.h: Add prototype for new function.
41183         * lib/unigbrk/u16-grapheme-prev.c: New file.
41184         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
41186         New module 'u32-grapheme-prev'.
41187         * modules/unigbrk/u32-grapheme-prev: New file.
41188         * modules/unigbrk/u32-grapheme-prev-tests: New file.
41189         * lib/unigbrk.in.h: Add prototype for new function.
41190         * lib/unigbrk/u32-grapheme-prev.c: New file.
41191         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
41193         New module 'u8-grapheme-breaks'.
41194         * modules/unigbrk/u8-grapheme-breaks: New file.
41195         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
41196         * lib/unigbrk.in.h: Add prototype for new function.
41197         * lib/unigbrk/u8-grapheme-breaks.c: New file.
41198         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
41200         New module 'u16-grapheme-breaks'.
41201         * modules/unigbrk/u16-grapheme-breaks: New file.
41202         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
41203         * lib/unigbrk.in.h: Add prototype for new function.
41204         * lib/unigbrk/u16-grapheme-breaks.c: New file.
41205         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
41207         New module 'u32-grapheme-breaks'.
41208         * modules/unigbrk/u32-grapheme-breaks: New file.
41209         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
41210         * lib/unigbrk.in.h: Add prototype for new function.
41211         * lib/unigbrk/u32-grapheme-breaks.c: New file.
41212         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
41214         New module 'ulc-grapheme-breaks'.
41215         * modules/unigbrk/ulc-grapheme-breaks: New file.
41216         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
41217         * m4/locale-ar.m4: New file.
41218         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
41219         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
41220         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
41222 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41224         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
41225         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
41226         modified how this file was generated before I initially submitted
41227         the module, but failed to regenerate it.  This meant that several
41228         of the level2 entries were wrong.
41229         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
41230         Remove the division-by-2 that is folded into the table now that
41231         gbrkprop.h has been regenerated properly.  Now -1 entries are
41232         handled correctly.
41234         New module 'unigbrk/uc-gbrk-prop-tests'.
41235         * modules/unigbrk/uc-gbrk-prop-tests: New file.
41236         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
41237         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
41238         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
41240 2011-01-01  Bruno Haible  <bruno@clisp.org>
41242         Avoid use of hexadecimal escapes.
41243         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
41244         instead of hexadecimal escapes.
41246 2011-01-01  Jim Meyering  <meyering@redhat.com>
41248         maint: new rule to update copyright year ranges
41249         * Makefile (update-copyright): New rule.
41251         maint: indent with TABs in Makefile
41252         * Makefile: Expand leading sequences of spaces to TABs
41254         version-etc: update the copyright year it reports
41255         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
41257 2010-12-31  Bruno Haible  <bruno@clisp.org>
41259         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
41260         * lib/isfinite.c (zerof, zerod, zerol): New variables.
41261         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
41262         zero.
41264 2010-12-31  Bruno Haible  <bruno@clisp.org>
41266         pwrite: Work around HP-UX 11.11 bug.
41267         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
41268         works and set REPLACE_PWRITE if not.
41269         * lib/pwrite.c (pwrite): Add an implementation that uses the system
41270         function.
41271         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
41273 2010-12-31  Bruno Haible  <bruno@clisp.org>
41275         pread: Work around HP-UX 11 bugs.
41276         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
41277         and set REPLACE_PREAD if not.
41278         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
41280 2010-12-31  Eric Blake  <eblake@redhat.com>
41282         nl_langinfo: fix YESEXPR on Irix 6.5
41283         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
41284         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
41285         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
41286         it.
41288 2010-12-31  Bruno Haible  <bruno@clisp.org>
41290         iconv: Document HP-UX 11 bug.
41291         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
41293 2010-12-31  Bruno Haible  <bruno@clisp.org>
41295         ldexpl: Fix link error on HP-UX 11.
41296         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
41297         LDEXPL_LIBM, using $ISNANL_LIBM.
41299 2010-12-31  Eric Blake  <eblake@redhat.com>
41301         ftello: avoid compilation failure with SunStudio c89
41302         * lib/ftello.c (ftello): Use lseek, not llseek.
41304         tests: avoid failing coreutils tests on cygwin
41305         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
41306         (create_exe_shims_): Return 0 when skipping.
41308 2010-12-31  Bruno Haible  <bruno@clisp.org>
41310         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
41311         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
41313 2010-12-31  Bruno Haible  <bruno@clisp.org>
41315         waitpid: Fix link error in C++ mode.
41316         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
41318 2010-12-31  Bruno Haible  <bruno@clisp.org>
41320         isnan: Use GCC built-ins when possible.
41321         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
41322         __builtin_isnan.
41323         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
41324         (isnan): Define using GCC built-ins for GCC >= 4.0.
41326 2010-12-31  Bruno Haible  <bruno@clisp.org>
41328         isnand: Fix mistake.
41329         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
41330         __builtin_isnand.
41332 2010-12-31  Bruno Haible  <bruno@clisp.org>
41334         open: Avoid C++ error on HP-UX 11.
41335         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
41337 2010-12-31  Bruno Haible  <bruno@clisp.org>
41339         time_r: Add missing declarations on HP-UX 11.
41340         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
41341         instead of HAVE_LOCALTIME_R.
41342         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
41343         HAVE_LOCALTIME_R always.
41344         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
41345         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
41346         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
41347         HAVE_LOCALTIME_R.
41348         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
41349         * doc/posix-functions/localtime_r.texi: Likewise.
41351 2010-12-29  Eric Blake  <eblake@redhat.com>
41353         mountlist: tweak previous commit
41354         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
41355         Reported by Paul Eggert.
41357         mountlist: fix local drive detection on cygwin
41358         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
41359         that works for cygwin.
41361 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41363         ftoastr, snprintf: ftoastr + snprintf module
41364         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
41365         since the snprintf module now should be good enough here.
41366         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
41367         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
41368         and gl_MODULE_INDICATOR([snprintf]), but the former enables
41369         GNULIB_SNPRINTF only for the test directory, and the latter
41370         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
41371         seems to suffice by itself.
41373 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41375         alloca: one step towards thread-safety
41376         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
41377         need for a static variable.  All callers changed.  This does not
41378         make the alloca replacement thread-safe, but it's one step.
41380         tests: minor indenting change
41381         * tests/init.sh: Sync from coreutils housekeeping patch
41382         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
41383         to keep lines within 80 columns.
41385 2010-12-28  Jim Meyering  <meyering@redhat.com>
41387         regex: don't infloop on persistent failing calloc
41388         * lib/regexec.c (build_trtable): Return failure indication upon
41389         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
41390         In glibc, this was fixed for version 2.13:
41391         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
41393 2010-12-28  Bruno Haible  <bruno@clisp.org>
41394             Paul Eggert <eggert@cs.ucla.edu>
41396         linkat: Make implementation robust against system behaviour variations.
41397         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
41398         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
41399         way, and to -2 if it needs a generic runtime test.
41400         * lib/linkat.c (solaris_optimized_link_immediate,
41401         solaris_optimized_link_follow): New functions.
41402         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
41403         (check_same_link): Use it.
41405 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
41407         New module 'unigbrk/base'.
41408         * modules/unigbrk/base: New file.
41409         * lib/unigbrk.in.h: New file.
41411         New module 'unigbrk/uc-gbrk-prop'.
41412         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
41413         * modules/unigbrk/uc-gbrk-prop: New file.
41414         * lib/unigbrk/gbrkprop.h: New file.
41415         * lib/unigbrk/uc-gbrk-prop.c: New file.
41417         New module 'unigbrk/uc-is-grapheme-break'.
41418         * modules/unigbrk/uc-is-grapheme-break: New file.
41419         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
41420         * lib/unigbrk/uc-is-grapheme-break.c: New file.
41421         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
41422         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
41423         * tests/unigbrk/GraphemeBreakTest.txt: New file.
41425         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
41427 2010-12-27  Bruno Haible  <bruno@clisp.org>
41429         linkat test: Avoid failure on Solaris 11 2010-11.
41430         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
41432 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41434         utimens: work around glibc rounding bug on more platforms
41435         * lib/utimens.c (fdutimens): Work around rounding bug even if
41436         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
41437         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
41439 2010-12-27  Bruno Haible  <bruno@clisp.org>
41441         select tests: Improve comments.
41442         * tests/test-select.c (do_select): Add comments.
41444 2010-12-27  Bruno Haible  <bruno@clisp.org>
41446         select tests: Safer way of handling timeout.
41447         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
41448         at every invocation.
41450 2010-12-27  Bruno Haible  <bruno@clisp.org>
41452         select tests: Use 'bool' where appropriate.
41453         * tests/test-select.c (connect_to_socket): Change argument type to
41454         'bool'.
41456 2010-12-27  Bruno Haible  <bruno@clisp.org>
41458         select tests: Use existing modules.
41459         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
41460         (configure.ac): Don't test for unistd.h.
41461         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
41462         declared in <unistd.h>.
41464 2010-12-27  Bruno Haible  <bruno@clisp.org>
41466         mbrtowc: Work around a Solaris 7 bug.
41467         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
41468         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
41469         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
41470         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
41471         MBRTOWC_NULL_ARG1_BUG.
41472         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
41473         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
41474         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
41475         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
41477 2010-12-27  Jim Meyering  <meyering@redhat.com>
41479         read-file.c: tweak syntax
41480         * lib/read-file.c (fread_file): Remove space after "*" in function
41481         definitions.
41483 2010-12-27  Bruno Haible  <bruno@clisp.org>
41485         times test: Avoid gcc warnings on OSF/1.
41486         * tests/test-times.c (main): Cast printf arguments from clock_t to
41487         'long int'.
41489 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41491         utimens: work around glibc rounding bug on older Linux kernels
41492         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
41493         on Linux with a glibc whose utimes might not work, then work
41494         around a longstanding glibc bug involving rounding rather than
41495         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
41496         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
41498 2010-12-26  Bruno Haible  <bruno@clisp.org>
41500         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
41501         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
41502         _GL_CXXALIAS_SYS.
41503         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41505 2010-12-26  Bruno Haible  <bruno@clisp.org>
41507         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
41508         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
41509         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
41510         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
41511         looking for the declaration.
41512         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41513         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
41514         problem.
41515         * doc/posix-functions/inet_pton.texi: Likewise.
41517 2010-12-26  Bruno Haible  <bruno@clisp.org>
41519         arpa_inet: Use the common idioms with C++ support.
41520         * lib/arpa_inet.in.h: Include c++defs.h.
41521         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
41522         support.
41523         * modules/arpa_inet (Depends-on): Add c++defs.
41524         (Makefile.am): Substitute the contents of c++defs.h.
41525         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
41526         * modules/arpa_inet-c++-tests: New file.
41527         * tests/test-arpa_inet-c++.cc: New file.
41529 2010-12-25  Bruno Haible  <bruno@clisp.org>
41531         Fix more C++ link errors on Solaris 8.
41532         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
41533         $(LIB_EACCESS).
41534         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
41535         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
41536         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
41537         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
41538         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
41540 2010-12-25  Bruno Haible  <bruno@clisp.org>
41542         printf-posix: Fix link error when a non-GCC compiler is used.
41543         * lib/stdio.in.h (printf): When not using GCC, override printf
41544         correctly.
41545         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41547 2010-12-25  Bruno Haible  <bruno@clisp.org>
41549         strerror_r-posix: Update doc.
41550         * doc/posix-functions/strerror_r.texi: Update doc about the return
41551         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
41553 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41555         utimens: simplify the logic of the previous change
41556         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
41557         This should not affect whether the test succeeds or fails.
41559         utimens: configure better on hosts with NFS clock skew
41560         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
41561         uses the clock of the local host.  It might use the clock of the
41562         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
41563         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
41565 2010-12-25  Bruno Haible  <bruno@clisp.org>
41567         ptsname test: Avoid failure on Solaris.
41568         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
41569         open a pseudo-terminal; don't use BSD-style ptys.
41570         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
41572 2010-12-25  Bruno Haible  <bruno@clisp.org>
41574         ptsname: Avoid ERANGE failure on some systems.
41575         * lib/ptsname.c (buffer): Increase size.
41577 2010-12-25  Bruno Haible  <bruno@clisp.org>
41579         rename, renameat: Avoid test failures at NFS mounted locations.
41580         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
41581         so that subsequent mkdir calls succeed.
41583 2010-12-25  Bruno Haible  <bruno@clisp.org>
41585         iswblank: Fix C++ link error on Solaris 8.
41586         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
41587         _GL_FUNCDECL_SYS.
41589 2010-12-25  Bruno Haible  <bruno@clisp.org>
41591         unistd: Fix C++ link error on Solaris 8.
41592         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
41594 2010-12-25  Bruno Haible  <bruno@clisp.org>
41596         readlink doc: Mention an old glibc bug.
41597         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
41599 2010-12-25  Bruno Haible  <bruno@clisp.org>
41601         fcntl-h: Fix for use of C++ on glibc systems.
41602         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41603         also on glibc systems in C++ mode.
41604         Reported by Gary V. Vaughan <gary@gnu.org>.
41606 2010-12-25  Bruno Haible  <bruno@clisp.org>
41608         roundl-ieee: Make it work on OSF/1 5.1 with cc.
41609         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
41611 2010-12-25  Bruno Haible  <bruno@clisp.org>
41613         truncl-ieee: Make it work on OSF/1 5.1 with cc.
41614         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
41615         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
41616         test whether truncl works according to ISO C 99 with IEC 60559.
41617         * m4/truncl-ieee.m4: New file.
41618         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
41619         m4/signbit.m4.
41620         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
41622 2010-12-25  Bruno Haible  <bruno@clisp.org>
41624         ceill-ieee: Make it work on OSF/1 5.1 with cc.
41625         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
41626         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
41627         test whether ceill works according to ISO C 99 with IEC 60559.
41628         * m4/ceill-ieee.m4: New file.
41629         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
41630         m4/signbit.m4.
41631         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
41633 2010-12-25  Bruno Haible  <bruno@clisp.org>
41635         Ensure all prerequisites of <wchar.h> are included.
41636         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
41637         before <wchar.h>.
41638         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
41639         gl_MBRLEN_NUL_RETVAL): Likewise.
41640         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41641         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
41642         AC_FUNC_MBRTOWC): Likewise.
41643         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41644         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41645         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41646         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41647         Likewise.
41648         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41649         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
41650         (gl_WCHAR_H): Improve comments.
41651         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41653 2010-12-25  Bruno Haible  <bruno@clisp.org>
41655         strtok_r: Fix C syntax error in autoconf macro.
41656         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
41657         characters in test program.
41659 2010-12-24  Bruno Haible  <bruno@clisp.org>
41661         ceil, trunc, round: Fix gcc warnings.
41662         * lib/ceil.c (MIN): Undefine before redefining.
41663         * lib/trunc.c (MIN): Likewise.
41664         * lib/round.c (MIN): Likewise.
41665         Include <math.h> first.
41667 2010-12-24  Bruno Haible  <bruno@clisp.org>
41669         select tests: Avoid failures on OSF/1 5.1.
41670         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
41671         failure of closing the last socket; it may fail with ECONNRESET.
41673 2010-12-24  Eric Blake  <eblake@redhat.com>
41675         stdint: avoid HP-UX 10.20 preprocessor bug
41676         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
41677         than #if.
41678         * tests/test-floor2.c (main): Likewise.
41679         Reported by Peter O'Gorman.
41681         pipe: make obsoletion transition easier
41682         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
41683         * modules/pipe (Files): Include revived file.
41684         (Include): Drop reference, to mirror getdate's behavior.
41686 2010-12-24  Bruno Haible  <bruno@clisp.org>
41688         sys_socket: Hide mismatch of declarations on NonStop Kernel.
41689         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
41690         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
41691         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41693 2010-12-24  Bruno Haible  <bruno@clisp.org>
41695         gethostname: Ensure declaration on NonStop Kernel.
41696         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
41697         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41699 2010-12-24  Bruno Haible  <bruno@clisp.org>
41701         sys_select: Ensure all necessary types on NonStop Kernel.
41702         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
41703         include <sys/time.h>.
41704         * doc/posix-headers/sys_select.texi: Mention that it's missing on
41705         NonStop Kernel.
41706         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41708 2010-12-24  Bruno Haible  <bruno@clisp.org>
41710         sys_select: Remove unneeded include.
41711         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
41712         have <sys/select.h>.
41714 2010-12-24  Bruno Haible  <bruno@clisp.org>
41716         gethostname: Provide a fallback for HOST_NAME_MAX.
41717         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
41718         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
41719         instead.
41720         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41722 2010-12-24  Bruno Haible  <bruno@clisp.org>
41724         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
41725         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
41726         (SA_RESTART): Likewise.
41727         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41729 2010-12-24  Bruno Haible  <bruno@clisp.org>
41731         signal: Define NSIG.
41732         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
41733         * tests/test-signal.c (nsig): New variable.
41734         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41736 2010-12-24  Bruno Haible  <bruno@clisp.org>
41738         rename, renameat: Avoid test failures on OSF/1 5.1.
41739         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
41740         alternative error codes.
41741         * tests/test-renameat.c (main): Likewise.
41743 2010-12-24  Bruno Haible  <bruno@clisp.org>
41745         *printf: Detect large precisions bug on Solaris 10/SPARC.
41746         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
41747         by Paul Eggert.
41748         * tests/test-snprintf-posix.h (test_function): Add this test code here
41749         too.
41750         * tests/test-sprintf-posix.h (test_function): Likewise.
41751         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41752         * tests/test-vasprintf-posix.c (test_function): Likewise.
41753         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
41754         around by gnulib.
41755         * doc/posix-functions/printf.texi: Likewise.
41756         * doc/posix-functions/snprintf.texi: Likewise.
41757         * doc/posix-functions/sprintf.texi: Likewise.
41758         * doc/posix-functions/vfprintf.texi: Likewise.
41759         * doc/posix-functions/vprintf.texi: Likewise.
41760         * doc/posix-functions/vsnprintf.texi: Likewise.
41761         * doc/posix-functions/vsprintf.texi: Likewise.
41762         * doc/posix-functions/dprintf.texi: Undo last commit.
41763         * doc/posix-functions/vdprintf.texi: Likewise.
41765 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41767         tests: port test-fdutimensat.c to Solaris 8
41768         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
41769         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
41770         On Solaris 8, it fails with errno == ENOSYS, because there is no
41771         futimens (so it can't use the fd), and there is no lutimens (so it
41772         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
41774         vsnprintf: make more consistent with snprintf; doc fixes
41776         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
41777         the byte count return problem was promoted from the snprintf-posix
41778         to the snprintf module.
41779         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41780         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
41781         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
41782         * tests/test-snprintf.c (main): Check the byte count returned.
41783         * tests/test-vsnprintf.c (main): Likewise.
41785 2010-12-23  Eric Blake  <eblake@redhat.com>
41787         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
41788         * modules/sigpipe (License): Relax license.
41790 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41792         doc: document Solaris printf bug with large float precisions
41793         * doc/posix-functions/dprintf.texi (dprintf):
41794         * doc/posix-functions/fprintf.texi (fprintf):
41795         * doc/posix-functions/printf.texi (printf):
41796         * doc/posix-functions/snprintf.texi (snprintf):
41797         * doc/posix-functions/sprintf.texi (sprintf):
41798         * doc/posix-functions/vdprintf.texi (vdprintf):
41799         * doc/posix-functions/vfprintf.texi (vfprintf):
41800         * doc/posix-functions/vprintf.texi (vprintf):
41801         * doc/posix-functions/vsnprintf.texi (vsnprintf):
41802         * doc/posix-functions/vsprintf.texi (vsprintf):
41803         Mention that these functions mishandle large floating point
41804         precisions on Solaris 10.  The same bug is also present in Solaris
41805         8, and I assume earlier.  This causes "cd gnulib-tests; make
41806         check" to fail on Solaris 8 (and I assume, later) when building
41807         the latest coreutils, in test-vasprintf-posix's call to
41808         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
41809         the wide flavors (e.g., wprintf) so this patch just updates the
41810         documentation for the narrow ones.
41812         test-posixtm.c: add two tests
41813         * tests/test-posixtm.c: Add two tests, to highlight the
41814         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
41815         around this bug; this is merely to document it.
41817 2010-12-22  Bruno Haible  <bruno@clisp.org>
41819         getlogin_r: Work around portability problem on OSF/1.
41820         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
41821         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
41822         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
41823         test for a truncated result.
41824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
41825         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
41826         * modules/getlogin_r (Depends-on): Add memchr.
41827         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
41829 2010-12-22  Bruno Haible  <bruno@clisp.org>
41831         ptsname: Avoid test failure on OSF/1 5.1.
41832         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
41833         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
41834         (same_slave): New function.
41835         (main): Use it to compare ptsname's result with the expected file name.
41837 2010-12-22  Bruno Haible  <bruno@clisp.org>
41839         Port extended stdio modules to HP NonStop Kernel.
41840         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
41841         macros.
41842         * lib/fbufmode.c: Update comments.
41843         * lib/fflush.c: Likewise.
41844         * lib/fpurge.c: Likewise.
41845         * lib/freadable.c: Likewise.
41846         * lib/freadahead.c: Likewise.
41847         * lib/freading.c: Likewise.
41848         * lib/freadptr.c: Likewise.
41849         * lib/freadseek.c: Likewise.
41850         * lib/fseeko.c: Likewise.
41851         * lib/fseterr.c: Likewise.
41852         * lib/fwritable.c: Likewise.
41853         * lib/fwriting.c: Likewise.
41854         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41856 2010-12-22  Bruno Haible  <bruno@clisp.org>
41858         ttyname_r: Work around bug on OSF/1 5.1.
41859         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
41860         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
41861         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
41862         present.
41863         * lib/ttyname_r.c (ttyname_r): Update comments.
41865 2010-12-22  Bruno Haible  <bruno@clisp.org>
41867         round: Implement result sign according to IEEE 754.
41868         * lib/round.c (MIN, MINUS_ZERO): New macros.
41869         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
41870         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
41871         * tests/test-round-ieee.c (main): Likewise.
41872         * tests/test-roundl-ieee.c (main): Likewise.
41874         trunc: Implement result sign according to IEEE 754.
41875         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
41876         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
41877         * tests/test-trunc2.c: Include minus-zero.h.
41878         (MINUS_ZERO): New macro.
41879         (trunc_reference): Keep in sync with lib/trunc.c.
41880         * tests/test-truncf2.c: Include minus-zero.h.
41881         (MINUS_ZERO): New macro.
41882         (truncf_reference): Keep in sync with lib/trunc.c.
41883         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
41884         * tests/test-trunc-ieee.c (main): Likewise.
41885         * tests/test-truncl-ieee.c (main): Likewise.
41887         ceil: Implement result sign according to IEEE 754.
41888         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
41889         (FUNC): Return -0.0 for -1 < x < 0.
41890         * tests/test-ceil2.c: Include minus-zero.h.
41891         (MINUS_ZERO): New macro.
41892         (ceil_reference): Keep in sync with lib/ceil.c.
41893         * tests/test-ceilf2.c: Include minus-zero.h.
41894         (MINUS_ZERO): New macro.
41895         (ceilf_reference): Keep in sync with lib/ceil.c.
41896         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
41897         * tests/test-ceil-ieee.c (main): Likewise.
41898         * tests/test-ceill-ieee.c (main): Likewise.
41900         floor: Implement result sign according to IEEE 754.
41901         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
41902         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
41903         * tests/test-floorf2.c (floorf_reference): Likewise.
41904         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
41905         * tests/test-floor-ieee.c (main): Likewise.
41906         * tests/test-floorl-ieee.c (main): Likewise.
41908 2010-12-22  Bruno Haible  <bruno@clisp.org>
41910         getaddrinfo: Update doc.
41911         * doc/posix-functions/gai_strerror.texi: Return type is also different
41912         on AIX and HP-UX.
41914 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41916         getaddrinfo, inet_ntop: Update doc for Solaris.
41917         * doc/posix-functions/gai_strerror.texi: Return type is also an
41918         issue on Solaris 9 and earlier.
41919         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
41920         on Solaris 10 and earlier.
41922 2010-12-21  Bruno Haible  <bruno@clisp.org>
41924         New module 'roundl-ieee'.
41925         * modules/roundl-ieee: New file.
41926         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
41927         test whether roundl works according to ISO C 99 with IEC 60559.
41928         * m4/roundl-ieee.m4: New file.
41929         * modules/roundl-ieee-tests: New file.
41930         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
41931         * tests/test-roundl.c (main): Remove signbit tests.
41932         * modules/roundl-tests (Depends-on): Remove signbit.
41933         * doc/posix-functions/roundl.texi: Mention the new module.
41935 2010-12-21  Bruno Haible  <bruno@clisp.org>
41937         New module 'truncl-ieee'.
41938         * modules/truncl-ieee: New file.
41939         * modules/truncl-ieee-tests: New file.
41940         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
41941         * tests/test-truncl.c (main): Remove signbit tests.
41942         * modules/truncl-tests (Depends-on): Remove signbit.
41943         * doc/posix-functions/truncl.texi: Mention the new module.
41945 2010-12-21  Bruno Haible  <bruno@clisp.org>
41947         New module 'ceill-ieee'.
41948         * modules/ceill-ieee: New file.
41949         * modules/ceill-ieee-tests: New file.
41950         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
41951         * tests/test-ceill.c (main): Remove signbit tests.
41952         * modules/ceill-tests (Depends-on): Remove signbit.
41953         * doc/posix-functions/ceill.texi: Mention the new module.
41955 2010-12-21  Bruno Haible  <bruno@clisp.org>
41957         New module 'floorl-ieee'.
41958         * modules/floorl-ieee: New file.
41959         * modules/floorl-ieee-tests: New file.
41960         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
41961         * tests/test-floorl.c (main): Remove signbit tests.
41962         * modules/floorl-tests (Depends-on): Remove signbit.
41963         * doc/posix-functions/floorl.texi: Mention the new module.
41965 2010-12-21  Bruno Haible  <bruno@clisp.org>
41967         New module 'round-ieee'.
41968         * modules/round-ieee: New file.
41969         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
41970         whether round works according to ISO C 99 with IEC 60559.
41971         * m4/round-ieee.m4: New file.
41972         * modules/round-ieee-tests: New file.
41973         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
41974         * tests/test-round1.c (main): Remove signbit tests.
41975         * modules/round-tests (Depends-on): Remove 'signbit'.
41976         * doc/posix-functions/round.texi: Mention the new module.
41978 2010-12-21  Bruno Haible  <bruno@clisp.org>
41980         New module 'trunc-ieee'.
41981         * modules/trunc-ieee: New file.
41982         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
41983         whether trunc works according to ISO C 99 with IEC 60559.
41984         * m4/trunc-ieee.m4: New file.
41985         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
41986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
41987         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
41988         * modules/trunc-ieee-tests: New file.
41989         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
41990         * tests/test-trunc1.c (main): Remove signbit tests.
41991         * modules/trunc-tests (Depends-on): Remove 'signbit'.
41992         * doc/posix-functions/trunc.texi: Mention the new module.
41994 2010-12-21  Bruno Haible  <bruno@clisp.org>
41996         New module 'ceil-ieee'.
41997         * modules/ceil-ieee: New file.
41998         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
41999         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
42000         ISO C 99 with IEC 60559.
42001         * m4/ceil-ieee.m4: New file.
42002         * modules/ceil (Files): Add lib/ceil.c.
42003         (Depends-on): Add 'float'.
42004         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42005         * lib/math.in.h (ceil): New declaration.
42006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
42007         REPLACE_CEIL.
42008         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
42009         * modules/ceil-ieee-tests: New file.
42010         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
42011         * tests/test-math-c++.cc: Check the signature of 'ceil'.
42012         * doc/posix-functions/ceil.texi: Mention the new module.
42014 2010-12-21  Bruno Haible  <bruno@clisp.org>
42016         New module 'floor-ieee'.
42017         * modules/floor-ieee: New file.
42018         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
42019         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
42020         ISO C 99 with IEC 60559.
42021         * m4/floor-ieee.m4: New file.
42022         * modules/floor (Files): Add lib/floor.c.
42023         (Depends-on): Add 'float'.
42024         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
42025         * lib/math.in.h (floor): New declaration.
42026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
42027         REPLACE_FLOOR.
42028         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
42029         * modules/floor-ieee-tests: New file.
42030         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
42031         * tests/test-math-c++.cc: Check the signature of 'floor'.
42032         * doc/posix-functions/floor.texi: Mention the new module.
42034 2010-12-21  Bruno Haible  <bruno@clisp.org>
42036         New module 'roundf-ieee'.
42037         * modules/roundf-ieee: New file.
42038         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
42039         test whether roundf works according to ISO C 99 with IEC 60559.
42040         * m4/roundf-ieee.m4: New file.
42041         * modules/roundf-ieee-tests: New file.
42042         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
42043         * tests/test-roundf1.c (main): Remove signbit tests.
42044         * modules/roundf-tests (Depends-on): Remove 'signbit'.
42045         * doc/posix-functions/roundf.texi: Mention the new module.
42047 2010-12-21  Bruno Haible  <bruno@clisp.org>
42049         New module 'truncf-ieee'.
42050         * modules/truncf-ieee: New file.
42051         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
42052         test whether truncf works according to ISO C 99 with IEC 60559.
42053         * m4/truncf-ieee.m4: New file.
42054         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
42055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
42056         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
42057         * modules/truncf-ieee-tests: New file.
42058         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
42059         * tests/test-truncf1.c (main): Remove signbit tests.
42060         * modules/truncf-tests (Depends-on): Remove 'signbit'.
42061         * doc/posix-functions/truncf.texi: Mention the new module.
42063 2010-12-21  Bruno Haible  <bruno@clisp.org>
42065         New module 'ceilf-ieee'.
42066         * modules/ceilf-ieee: New file.
42067         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
42068         test whether ceilf works according to ISO C 99 with IEC 60559.
42069         * m4/ceilf-ieee.m4: New file.
42070         * modules/ceilf-ieee-tests: New file.
42071         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
42072         * tests/test-ceilf1.c (main): Remove signbit tests.
42073         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
42074         * doc/posix-functions/ceilf.texi: Mention the new module.
42076 2010-12-21  Bruno Haible  <bruno@clisp.org>
42078         New module 'floorf-ieee'.
42079         * modules/floorf-ieee: New file.
42080         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
42081         test whether floorf works according to ISO C 99 with IEC 60559.
42082         * m4/floorf-ieee.m4: New file.
42083         * modules/floorf-ieee-tests: New file.
42084         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
42085         * tests/test-floorf1.c (main): Remove signbit tests.
42086         * modules/floorf-tests (Depends-on): Remove 'signbit'.
42087         * doc/posix-functions/floorf.texi: Mention the new module.
42089 2010-12-21  Bruno Haible  <bruno@clisp.org>
42091         Support for minus zero in autoconf macros.
42092         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
42093         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
42094         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
42095         * tests/minus-zero.h: Update comments.
42097 2010-12-21  Bruno Haible  <bruno@clisp.org>
42099         Tests for module 'ceil'.
42100         * modules/ceil-tests: New file.
42101         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
42102         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
42104 2010-12-21  Bruno Haible  <bruno@clisp.org>
42106         Tests for module 'floor'.
42107         * modules/floor-tests: New file.
42108         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
42109         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
42111 2010-12-21  Bruno Haible  <bruno@clisp.org>
42113         math: Fix indentation.
42114         * lib/math.in.h (floorf): Fix indentation.
42116 2010-12-21  Bruno Haible  <bruno@clisp.org>
42118         Fix cross-compilation guesses on Solaris.
42119         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
42120         not match "solaris2.10".
42121         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42122         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
42123         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
42125 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
42127         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
42128         This fixes a problem observed with the latest coreutils snapshot
42129         that caused a test to fail on Solaris 8.  src/csplit.c's call
42130         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
42131         earlier, instead of returning the number of bytes that would have
42132         been generated; this causes csplit to incorrectly report memory
42133         exhaustion.
42134         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
42135         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
42136         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
42137         comments to match.
42138         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
42139         Fix typo in matching older versions of Solaris: "solaris2.10"
42140         is matched by the shell pattern "solaris2.[0-9]*".  This matters
42141         only for guessing while cross-compiling.
42142         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
42144 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
42146         ftoastr: fix comment again
42147         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
42148         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
42149         Also, simplify example a bit by using flags = 0.
42151 2010-12-20  Bruno Haible  <bruno@clisp.org>
42153         round*, trunc*: Update documentation regarding glibc.
42154         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
42155         * doc/posix-functions/round.texi: Likewise.
42156         * doc/posix-functions/roundl.texi: Likewise.
42157         * doc/posix-functions/truncf.texi: Likewise.
42158         * doc/posix-functions/trunc.texi: Likewise.
42159         * doc/posix-functions/truncl.texi: Likewise.
42161 2010-12-20  Bruno Haible  <bruno@clisp.org>
42163         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
42164         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
42165         * doc/posix-functions/round.texi: Likewise.
42166         * doc/posix-functions/roundl.texi: Likewise.
42168 2010-12-20  Bruno Haible  <bruno@clisp.org>
42170         ttyname_r: Add missing declaration on HP-UX 11.
42171         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
42172         HAVE_TTYNAME_R.
42173         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
42174         declared. Set HAVE_TTYNAME_R always.
42175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42176         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
42177         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
42178         HAVE_TTYNAME_R.
42179         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
42181 2010-12-20  Bruno Haible  <bruno@clisp.org>
42183         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
42184         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
42185         * doc/posix-functions/getlogin_r.texi: Likewise.
42186         * tests/test-getlogin.c: Include <errno.h>.
42187         (main): Avoid test failure on HP-UX 11.11.
42188         * tests/test-getlogin_r.c (main): Likewise.
42190 2010-12-20  Bruno Haible  <bruno@clisp.org>
42192         getlogin_r: Add missing declaration on HP-UX 11.
42193         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
42194         declared also when it exists as a function.
42195         * doc/posix-functions/getlogin_r.texi: Document this workaround.
42197 2010-12-20  Bruno Haible  <bruno@clisp.org>
42199         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
42200         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
42201         through wcrtomb.
42203 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42205         ftoastr: fix comment
42206         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
42207         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
42209 2010-12-19  Bruno Haible  <bruno@clisp.org>
42211         isnan: Ensure it is a macro.
42212         * lib/math.in.h (isnan): Define as a macro if not already a macro.
42213         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
42214         Solaris.
42216 2010-12-19  Bruno Haible  <bruno@clisp.org>
42218         ldexpl test: Fix link error on OSF/1 5.1.
42219         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
42221 2010-12-19  Bruno Haible  <bruno@clisp.org>
42223         wctype: Make it work in C++ mode on OSF/1 5.1.
42224         * lib/wctype.in.h (iswblank): Declare but not define here.
42225         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
42226         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
42227         * modules/wctype (Files): Add lib/iswblank.c.
42229 2010-12-19  Bruno Haible  <bruno@clisp.org>
42231         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
42232         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
42233         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
42235 2010-12-19  Bruno Haible  <bruno@clisp.org>
42237         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
42238         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
42239         _POSIX_PII_SOCKET.
42240         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
42241         * doc/posix-functions/recvfrom.texi: Likewise.
42242         * doc/posix-functions/send.texi: Likewise.
42243         * doc/posix-functions/sendto.texi: Likewise.
42245 2010-12-19  Bruno Haible  <bruno@clisp.org>
42247         tcgetsid: Add missing declaration on OSF/1 5.1.
42248         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
42249         HAVE_TCGETSID.
42250         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
42251         Don't set HAVE_TCGETSID.
42252         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
42253         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
42254         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
42255         HAVE_TCGETSID.
42256         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
42258 2010-12-19  Bruno Haible  <bruno@clisp.org>
42260         stdio: Fix problem with popen() declaration on OSF/1 5.1.
42261         * lib/stdio.in.h: During the include_next statement, let recursive
42262         includes of this file include only the system header file.
42264 2010-12-19  Bruno Haible  <bruno@clisp.org>
42266         iconv_open: Fix regression from 2010-12-04.
42267         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
42268         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
42270 2010-12-19  Bruno Haible  <bruno@clisp.org>
42272         stdbool test: Avoid a gcc warning.
42273         * tests/test-stdbool.c (main): Fail if e1 is false.
42274         Reported by Jim Meyering.
42276 2010-12-19  Jim Meyering  <meyering@redhat.com>
42278         setenv: restore to working order
42279         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
42280         mistakenly removed.
42281         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
42282         HAVE_SETENV.
42283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
42284         HAVE_SETENV.
42286 2010-12-19  Bruno Haible  <bruno@clisp.org>
42288         Document some different function declarations on OSF/1 5.1.
42289         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
42290         * doc/posix-functions/inet_ntop.texi: Likewise.
42291         * doc/posix-functions/gethostname.texi: Likewise.
42292         * lib/unistd.in.h (gethostname): Update comment.
42294 2010-12-19  Bruno Haible  <bruno@clisp.org>
42296         doc: Mention vasprintf-posix module.
42297         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
42298         the 'vasprintf-posix' module.
42299         * doc/glibc-functions/vasprintf.texi: Likewise.
42301 2010-12-19  Bruno Haible  <bruno@clisp.org>
42303         unsetenv: Add missing declaration on OSF/1 5.1.
42304         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
42305         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
42306         Don't set HAVE_UNSETENV. In the test program, set _BSD.
42307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
42308         not HAVE_UNSETENV.
42309         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
42310         HAVE_UNSETENV.
42311         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
42313 2010-12-19  Bruno Haible  <bruno@clisp.org>
42315         setenv: Add missing declaration on OSF/1 5.1.
42316         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
42317         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
42318         declared. Don't set HAVE_SETENV.
42319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
42320         not HAVE_SETENV.
42321         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
42322         HAVE_SETENV.
42323         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
42325 2010-12-19  Bruno Haible  <bruno@clisp.org>
42327         nl_langinfo tests: Avoid gcc warning.
42328         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
42330 2010-12-19  Bruno Haible  <bruno@clisp.org>
42332         mknod: Avoid error in C++ mode on OSF/1 with GCC.
42333         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
42334         _GL_CXXALIAS_SYS.
42336 2010-12-19  Bruno Haible  <bruno@clisp.org>
42338         stdbool: Relax test.
42339         * tests/test-stdbool.c (e): Don't require that casts from a variable's
42340         address to 'bool' work in static initializer, for compilers other than
42341         GCC.
42343 2010-12-19  Bruno Haible  <bruno@clisp.org>
42345         ftello: Add missing declaration on OSF/1 5.1.
42346         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
42347         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
42348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
42349         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
42350         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
42352 2010-12-19  Bruno Haible  <bruno@clisp.org>
42354         fseeko: Add missing declaration on OSF/1 5.1.
42355         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
42356         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
42357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
42358         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
42359         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
42361 2010-12-19  Bruno Haible  <bruno@clisp.org>
42363         fchdir: Add missing declaration on OSF/1 5.1.
42364         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
42365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
42366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
42367         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
42368         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
42370 2010-12-19  Bruno Haible  <bruno@clisp.org>
42372         relocatable-prog-wrapper: Separate from relocatable-prog.
42373         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
42374         uninstall-relocwrapper rule here.
42375         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
42376         Reported by Ian Beckwith <ianb@erislabs.net>.
42378 2010-12-19  Bruno Haible  <bruno@clisp.org>
42380         unistr/u8-mbsnlen: Add missing dependency.
42381         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
42382         Reported by Ian Beckwith <ianb@erislabs.net>.
42384 2010-12-19  Bruno Haible  <bruno@clisp.org>
42386         iconv: Make it possible again to use this module without 'iconv-h'.
42387         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
42388         if it is not defined.
42389         Reported by Ian Beckwith <ianb@erislabs.net>.
42391 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42393         acl: port to Solaris 8 when copying from tmpfs to ufs
42394         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
42395         error number.  Problem observed on Solaris 8 with latest
42396         coreutils, with "mv A B", where A is on a tmpfs file system and B
42397         is on a ufs file system.  This caused coreutils' mv/part-symlink
42398         test to fail.
42400         tests: set fail=0 at start
42401         * tests/init.sh (setup_): Move fail=0 initialization here ...
42402         (mktempd_): ... from here, so that tests can rely on fail being
42403         set to 0 initially.  This fixes a problem in coreutils; see:
42404         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
42406 2010-12-18  Bruno Haible  <bruno@clisp.org>
42408         memmem-simple: Stylistic changes.
42409         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
42410         Fix preprocessor directive indentation.
42412 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42414         memmem, memmem-simple: reorganize and expand empty needle check
42415         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
42416         functional checks to memmem-simple so that one has a fully functional
42417         memmem by using just this module.
42418         Restrict the performance only check to the memmem module.
42419         Also expand the empty needle check to ensure the correct
42420         pointer is returned, not just a non NULL pointer.
42421         * doc/glibc-functions/memmem.texi: Rearrange the portability
42422         documentation to correlate with the rearranged checks.
42423         Clarify exactly how the memmem and memmem-simple modules
42424         relate to each other.
42426 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42427             Bruno Haible  <bruno@clisp.org>
42429         Improve cross-compilation guesses for uClibc.
42430         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
42431         that uClibc does not have the glibc bug.
42432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
42433         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
42435 2010-12-14  Eric Blake  <eblake@redhat.com>
42437         configmake: provide fallbacks for oldest supported autotools
42438         * m4/configmake.m4: New file.
42439         * modules/configmake (Files): Ship it.
42440         (configure.ac): Use it to guarantee fallbacks.
42442 2010-12-13  Pádraig Brady  <P@draigBrady.com>
42444         read-file: Improve handling of large files
42445         * lib/read-file.c (fread_file): Minimize realloc()s
42446         for regular files, and better manage sizes around SIZE_MAX.
42448 2010-12-13  Eric Blake  <eblake@redhat.com>
42450         cloexec, fcntl: relax license
42451         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
42452         consent from all contributors.
42453         * modules/fcntl (License): Likewise.
42455 2010-12-10  Bruno Haible  <bruno@clisp.org>
42457         Tests for module 'pipe-posix'.
42458         * modules/pipe-posix-tests: New file.
42459         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
42461 2010-12-10  Bruno Haible  <bruno@clisp.org>
42463         pipe-posix: Make it work in C++ mode.
42464         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
42465         (pipe): Use common idiom, not a macro definition.
42466         * lib/pipe.c: New file.
42467         * m4/pipe.m4: New file.
42468         * modules/pipe-posix (Description): Enhance.
42469         (Files): Add lib/pipe.c, m4/pipe.m4.
42470         (configure.ac): Invoke gl_FUNC_PIPE.
42471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
42472         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
42473         * tests/test-unistd-c++.cc: Check the signature of pipe.
42475 2010-12-10  Bruno Haible  <bruno@clisp.org>
42477         Rename module 'pipe' to 'spawn-pipe'.
42478         * modules/spawn-pipe: New file, renamed from modules/pipe.
42479         (Files, configure.ac, Makefile.am): Update.
42480         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
42481         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
42482         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
42483         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
42484         "spawn-pipe.h" instead of "pipe.h".
42485         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
42486         to gl_SPAWN_PIPE.
42487         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
42488         (Files, Makefile.am): Update.
42489         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
42490         Update.
42491         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
42492         Include "spawn-pipe.h" instead of "pipe.h".
42493         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
42494         * lib/javacomp.c: Likewise.
42495         * lib/javaversion.c: Likewise.
42496         * lib/pipe-filter-gi.c: Likewise.
42497         * lib/pipe-filter-ii.c: Likewise.
42498         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
42499         * modules/javacomp (Depends-on): Likewise.
42500         * modules/javaversion (Depends-on): Likewise.
42501         * modules/pipe-filter-gi (Depends-on): Likewise.
42502         * modules/pipe-filter-ii (Depends-on): Likewise.
42503         * MODULES.html.sh (Executing programs): Update.
42504         * NEWS: Mention the change.
42506 2010-12-10  Eric Blake  <eblake@redhat.com>
42508         pipe-posix: new module
42509         * modules/pipe-posix: New file.
42510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
42511         (gl_UNISTD_H): Check for declaration.
42512         * modules/unistd (Makefile.am): Substitute it.
42513         * lib/unistd.in.h (pipe): Provide it for mingw.
42514         * doc/posix-functions/pipe.texi (pipe): Update documentation.
42515         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
42517 2010-12-07  Bruno Haible  <bruno@clisp.org>
42519         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
42520         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
42521         u8_strcmp_gnu.
42522         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
42524 2010-12-06  Bruno Haible  <bruno@clisp.org>
42526         Update internal documentation.
42527         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
42529 2010-12-04  Bruno Haible  <bruno@clisp.org>
42531         Put more information about failed tests into the test return codes.
42532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
42533         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
42534         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42535         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42536         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
42537         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42538         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42539         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42540         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
42541         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
42543         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42544         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
42545         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42546         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
42547         returns a bit mask.
42548         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
42549         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
42550         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
42551         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
42552         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42553         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
42554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42556         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42557         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
42558         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42559         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
42560         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42561         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
42562         * m4/link.m4 (gl_FUNC_LINK): Likewise.
42563         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42564         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
42565         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
42566         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42567         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
42568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42569         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
42571         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42572         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42573         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42574         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
42575         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
42576         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
42577         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
42578         gl_PRINTF_PRECISION): Likewise.
42579         * m4/regex.m4 (gl_REGEX): Likewise.
42580         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42582         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
42583         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42584         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42586         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
42587         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
42588         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42589         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42590         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42591         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
42593         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42594         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42595         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42596         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
42597         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42598         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42599         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
42600         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
42601         enumerated value.
42602         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
42604 2010-12-04  Bruno Haible  <bruno@clisp.org>
42606         Update for Solaris 11 2010-11.
42607         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
42608         Express, released in November 2010.
42610 2010-12-04  Bruno Haible  <bruno@clisp.org>
42612         nproc: Relax license.
42613         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
42614         and Paul Eggert.
42615         Requested by Ludovic Courtès <ludo@gnu.org>.
42617 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
42619         utimecmp: fine-grained src to nearby coarse-grained dest
42621         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
42622         and the source is on a file system with higher-resolution time
42623         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
42624         not work, and the time stamps are close together, the algorithm to
42625         determine the exact resolution from the read-back mtime was buggy:
42626         it had a "!=" where it should have had an "==".  This bug has been
42627         in the code ever since it was introduced to gnulib.
42628         Problem reported by Dan Jacobson in
42629         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
42631 2010-11-30  Bruno Haible  <bruno@clisp.org>
42633         strerror_r-posix: Fix autoconf test.
42634         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
42636 2010-11-28  Bruno Haible  <bruno@clisp.org>
42637             Paul Eggert  <eggert@cs.ucla.edu>
42639         Tests for module 'getdomainname'.
42640         * modules/getdomainname-tests: New file.
42641         * tests/test-getdomainname.c: New file, based on
42642         tests/test-gethostname.c.
42644 2010-11-28  Bruno Haible  <bruno@clisp.org>
42645             Paul Eggert  <eggert@cs.ucla.edu>
42647         getdomainname: Use the system function when possible.
42648         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
42649         (getdomainname): Replace if needed. Provide the declaration if it is
42650         missing. Don't use _GL_CXXALIAS_SYS_CAST.
42651         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
42652         (getdomainname): When the system has getdomainname, call the system
42653         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
42654         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42655         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
42656         found in libnsl. Look for the declaration also in <netdb.h>. Replace
42657         the function if its second argument is of type 'int' or if it is found
42658         in libnsl.
42659         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
42660         <sys/systeminfo.h> and sysinfo().
42661         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
42662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42663         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
42664         HAVE_GETDOMAINNAME.
42665         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
42666         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
42667         * doc/glibc-functions/getdomainname.texi: Document the problems with
42668         the getdomainname declaration.
42670 2010-11-28  Bruno Haible  <bruno@clisp.org>
42672         sys_socket: Ensure ss_family field on AIX.
42673         * lib/sys_socket.in.h (ss_family): New macro definition.
42674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
42675         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
42676         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42677         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
42678         * modules/sys_socket (Makefile.am): Substitute
42679         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
42680         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
42682 2010-11-27  Bruno Haible  <bruno@clisp.org>
42684         readline: Improve configure output.
42685         * m4/readline.m4 (gl_FUNC_READLINE): Make the
42686         "checking for readline..." result understandable.
42688 2010-11-27  Bruno Haible  <bruno@clisp.org>
42690         *printf-posix: Detect a bug on Solaris 10/x86.
42691         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
42692         for floating-point output.
42693         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
42694         directive.
42695         * tests/test-snprintf-posix.h (test_function): Likewise.
42696         * tests/test-sprintf-posix.h (test_function): Likewise.
42697         * tests/test-vasprintf-posix.c (test_function): Likewise.
42698         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
42699         * doc/posix-functions/printf.texi: Likewise.
42700         * doc/posix-functions/snprintf.texi: Likewise.
42701         * doc/posix-functions/sprintf.texi: Likewise.
42702         * doc/posix-functions/vfprintf.texi: Likewise.
42703         * doc/posix-functions/vprintf.texi: Likewise.
42704         * doc/posix-functions/vsnprintf.texi: Likewise.
42705         * doc/posix-functions/vsprintf.texi: Likewise.
42706         * doc/glibc-functions/obstack_printf.texi: Likewise.
42707         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42709 2010-11-27  Bruno Haible  <bruno@clisp.org>
42711         Fix link error when module libunistring-optional is in use.
42712         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
42713         * modules/striconveha-tests (Makefile.am): Likewise.
42715 2010-11-27  Bruno Haible  <bruno@clisp.org>
42717         regex: Mention link dependencies.
42718         * modules/regex (Link): New section.
42719         * modules/rpmatch (Link): Likewise.
42720         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
42722 2010-11-27  Bruno Haible  <bruno@clisp.org>
42724         ftoastr: Fix compilation error on Solaris.
42725         * lib/ftoastr.c: Include <config.h>.
42727 2010-11-27  Bruno Haible  <bruno@clisp.org>
42729         getloadavg: Update documentation.
42730         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
42732 2010-11-27  Bruno Haible  <bruno@clisp.org>
42734         sys_socket: Fix test whether the functions are declared.
42735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
42736         not <sys/select.h>.
42738 2010-11-27  Bruno Haible  <bruno@clisp.org>
42740         getpass: Make sure to get system declaration on some platforms.
42741         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
42742         gl_USE_SYSTEM_EXTENSIONS.
42743         * modules/getpass (Depends-on): Add extensions.
42745 2010-11-26  Bruno Haible  <bruno@clisp.org>
42747         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
42748         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
42749         'iconv' module is present.
42750         (ICONV_CONST): New macro.
42751         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
42752         ICONV_CONST.
42753         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
42754         set ICONV_CONST.
42755         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
42756         here.
42757         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
42758         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
42759         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
42760         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
42761         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
42762         present.
42764 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42766         ftoastr: comment fix
42767         * lib/ftoastr.c: "little" -> "little or no" in comment
42769 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
42771         stdint: port to GCC 4.3 + OSX + Octave
42772         On this platform, stdint.h is buggy and defines int64_t to long
42773         long int.  The replacement defined it to long int, causing
42774         problems with C++ style name mangling.  Instead, trust the system
42775         definition if INT64_MAX is defined, and likewise for the unsigned
42776         variant.   Problem reported by Jarno Rajahalme in
42777         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
42778         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
42779         and don't mess with int64_t and INT64_MAX in this case.
42780         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
42782 2010-11-24  Bruno Haible  <bruno@clisp.org>
42784         doc: Corrections regarding MacOS X 10.4 and 10.5.
42785         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
42786         MacOS X.
42787         Reported by Simon Josefsson.
42789 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
42791         Uninstall ".bin" files installed by relocwrapper.
42792         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
42793         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
42794         unless it is already there.
42796 2010-11-21  Bruno Haible  <bruno@clisp.org>
42798         Update for NetBSD 5.0.
42799         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
42800         NetBSD; the test fails on NetBSD 5.0.
42801         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
42802         about NetBSD.
42804 2010-11-21  Bruno Haible  <bruno@clisp.org>
42806         Update for HP-UX 11.23 and HP-UX 11.31.
42807         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
42808         HP-UX.
42810 2010-11-21  Bruno Haible  <bruno@clisp.org>
42812         Update for MacOS X 10.5.
42813         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
42814         MacOS X; the test fails on MacOS X 10.5.8.
42815         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
42816         about MacOS X.
42818 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
42820         bootstrap: add bootstrap_sync option.
42821         See discussion at
42822         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
42823         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
42824         * build-aux/bootstrap: Accept --bootstrap-sync to update
42825         bootstrap if it is not identical to the local gnulib's
42826         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
42827         enable this by default.  Accept --no-bootstrap-sync to disable
42828         it.
42830 2010-11-20  Bruno Haible  <bruno@clisp.org>
42832         Ensure that <features.h> is included before __GLIBC__ is tested.
42833         * lib/printf-parse.h: Include <features.h>.
42834         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
42835         Reported by Mike Frysinger <vapier@gentoo.org>.
42837         Ensure that <features.h> is included before __GLIBC__ is tested.
42838         * lib/wchar.in.h: Include <features.h>.
42839         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
42840         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
42841         Reported by Mike Frysinger <vapier@gentoo.org>.
42843         Ensure that <features.h> is included before __GLIBC__ is tested.
42844         * lib/arpa_inet.in.h: Include <features.h>.
42845         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
42846         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
42847         Reported by Mike Frysinger <vapier@gentoo.org>.
42849         Ensure that <features.h> is included before __GLIBC__ is tested.
42850         * build-aux/link-warning.h: Include <features.h>.
42851         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
42852         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
42853         Reported by Mike Frysinger <vapier@gentoo.org>.
42855         Ensure that <features.h> is included before __GLIBC__ is tested.
42856         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
42857         Reported by Mike Frysinger <vapier@gentoo.org>.
42859 2010-11-20  Bruno Haible  <bruno@clisp.org>
42861         memmem: Fix autoconf test.
42862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
42864 2010-11-20  Bruno Haible  <bruno@clisp.org>
42866         Port to uClibc.
42867         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
42868         * lib/fcntl.in.h: Likewise.
42869         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
42870         * lib/mbrtowc.c (mbrtowc): Likewise.
42871         * lib/relocatable.c (find_shared_library_fullname): Likewise.
42872         * lib/strerror_r.c: Likewise.
42873         * lib/unistr/u8-strnlen.c: Likewise.
42874         * lib/vasnprintf.c (decimal_point_char): Likewise.
42875         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
42876         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
42877         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42878         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42879         * tests/test-sigaction.c (handler, main): Likewise.
42880         * lib/freading.h: Treat uClibc like a non-glibc platform.
42881         * lib/freading.c: Likewise.
42882         * lib/gettext.h: Likewise.
42883         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
42884         Likewise.
42885         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
42886         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42887         * lib/propername.c (proper_name_utf8): Likewise.
42888         * lib/spawn.in.h: Likewise.
42889         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
42890         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
42891         mem_cd_iconveh_internal): Likewise.
42892         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
42893         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
42894         strstr, strcasestr): Likewise.
42895         * lib/unicodeio.c (unicode_to_mb): Likewise.
42896         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
42897         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
42898         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
42899         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
42900         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
42901         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
42902         * lib/unistr/u8-stpncpy.c: Likewise.
42903         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42904         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
42905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42906         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42907         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42908         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
42909         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
42910         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
42911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
42912         Likewise.
42913         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42914         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
42916         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42917         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42918         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
42919         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42920         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
42921         * tests/test-getopt.h (OPTIND_MIN): Likewise.
42922         * tests/test-striconveha.c (main): Likewise.
42923         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42924         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
42925         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
42926         * doc/posix-functions/getline.texi: Likewise.
42927         Reported by Mike Frysinger <vapier@gentoo.org>.
42929 2010-11-20  Bruno Haible  <bruno@clisp.org>
42931         nproc: Fix condition.
42932         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
42933         HAVE_PTHREAD_AFFINITY_NP.
42935 2010-11-20  Bruno Haible  <bruno@clisp.org>
42937         Fix a comment.
42938         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
42940 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
42942         ftoastr: don't assume snprintf
42943         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
42944         Implement a subset of snprintf here, by using sprintf safely.
42945         * modules/ftoastr (Depends-on): Remove snprintf.
42947 2010-11-19  Jim Meyering  <meyering@redhat.com>
42949         test-rename.h: fix compilation failure
42950         * tests/test-rename.h (test_rename): Add omitted "}".
42952 2010-11-17  Jim Meyering  <meyering@redhat.com>
42954         maint.mk: add a URL discussing the no-@acronym policy
42955         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
42957 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
42959         ftoastr: depend on snprintf, improve comments
42960         * lib/ftoastr.c: Also mention Loitsch's draft.
42961         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
42962         needed in the current implementation, but it might simplify
42963         speeding up the code later.
42964         * modules/ftoastr: Depend on snprintf; this improves portability.
42965         Suggested by Bruno Haible in the same email.
42967         ftoastr: port to hosts lacking strtof and strtold
42968         Problem reported by Bruno Haible in
42969         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
42970         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
42971         environment and strtold (and presumably strtof) are not available.
42972         * modules/ftoastr (Files): Add m4/c-strtod.m4.
42973         (configure.ac): Require gl_C99_STRTOLD.
42975 2010-11-18  Bruno Haible  <bruno@clisp.org>
42977         c-strtold: Avoid link error on AIX 7.
42978         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
42979         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
42980         (gl_C_STRTOLD): Test whether strtold_l exists.
42981         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42983 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42985         intprops: new macro INT_BITS_STRLEN_BOUND
42986         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
42987         ftoastr.h.  This exposes an internal of intprops.h that was formerly
42988         not exposed.  Also, it uses a slightly tighter bound than before;
42989         though this makes no practical difference, we might as well be as
42990         tight as we easily can.
42992         ftoastr: new module, for lossless conversion of floats to short strings
42993         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
42994         * modules/ftoastr: New files.
42996 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42998         bootstrap: port to Solaris sed
42999         * build-aux/bootstrap (get_version): Port to Solaris sed.
43000         See Ralf Wildenhues's note in
43001         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
43003 2010-11-14  Jim Meyering  <meyering@redhat.com>
43005         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
43006         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
43007         and move definition closer to sole use.
43009 2010-11-13  Jim Meyering  <meyering@redhat.com>
43011         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
43012         Now we require at least autoconf-2.59, which means the work-around
43013         is no longer needed.
43014         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
43015         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43016         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
43017         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
43018         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
43020 2010-11-13  Bruno Haible  <bruno@clisp.org>
43022         rename, renameat: Avoid test failures at NFS mounted locations.
43023         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
43024         functions.
43025         (test_rename): Use assert_nonexistent.
43026         * tests/test-rename.c: Include <dirent.h>.
43027         * tests/test-renameat.c: Likewise.
43028         Reported by Gary V. Vaughan <gary@gnu.org>.
43030         rename, renameat: Document Linux bug with NFS
43031         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
43032         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
43033         * doc/posix-functions/renameat.texi: Likewise.
43034         Suggested by Eric Blake.
43036 2010-11-13  Bruno Haible  <bruno@clisp.org>
43038         rename test: Add comments.
43039         * tests/test-rename.h (test_rename): Add structure and comments.
43041 2010-11-13  Eric Blake  <eblake@redhat.com>
43043         maintainer-makefile: cover a few more files
43044         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
43045         scripts generated within C files, for libvirt.
43047 2010-11-13  Bruno Haible  <bruno@clisp.org>
43049         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
43050         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
43051         character, return the number of bytes that belong together, not always
43052         1.
43053         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
43054         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
43055         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
43056         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
43057         number of bytes of an invalid character.
43058         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
43059         (main): Invoke it.
43060         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
43061         results.
43062         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
43063         malformed byte sequences.
43064         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
43065         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
43066         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
43067         Reported by Ben Pfaff and Paolo Bonzini.
43069 2010-11-13  Bruno Haible  <bruno@clisp.org>
43071         openat: Work around glibc bug with fchownat() and empty file names.
43072         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
43073         (gl_FUNC_FCHOWNAT): Invoke it.
43074         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
43075         * doc/posix-functions/fchownat.texi: Document the glibc bug.
43076         Reported by Gary V. Vaughan <gary@gnu.org>.
43078 2010-11-13  Bruno Haible  <bruno@clisp.org>
43080         openat: Ensure autoconf macro ordering.
43081         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
43082         gl_USE_SYSTEM_EXTENSIONS.
43083         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
43085 2010-11-13  Bruno Haible  <bruno@clisp.org>
43087         Update comments.
43088         * lib/unistr/u8-check.c: Update file name in comments.
43089         * lib/unistr/u8-mblen.c: Likewise.
43090         * lib/unistr/u8-prev.c: Likewise.
43091         * lib/unistr/u8-strmblen.c: Likewise.
43092         * lib/unistr/u8-strmbtouc.c: Likewise.
43094 2010-11-13  Jim Meyering  <meyering@redhat.com>
43096         tests: avoid test failure on Solaris 10 due to lack of PATH export
43097         * tests/test-update-copyright.sh: Don't forget to export PATH.
43099         init.sh: ensure that IFS is defined, just in case...
43100         * tests/init.sh (setup_): Ensure that IFS is defined,
43101         so that saving and restoring it works as expected.  This
43102         appears to be useful at least for an old version of dash
43103         from a long time ago (RH 6).  See here for details:
43104         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
43106         maint.mk: tighten "test a == b" check
43107         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
43108         test to files that contain something like #!/bin/sh.
43109         Without this, coreutils would get two false positives in
43110         the comments of C source files.
43112 2010-11-12  Eric Blake  <eblake@redhat.com>
43114         bootstrap: fix typo in previous attempt
43115         * build-aux/bootstrap (buildreq): Correct the grouping.
43116         Reported by Paul Eggert.
43118         maintainer-makefile: prohibit test x == x
43119         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
43120         Based on a report by Matthias Bolte.
43122         bootstrap: allow FreeBSD gzip
43123         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
43124         which has no '.' and goes to stderr.
43125         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
43126         Reported by Matthias Bolte.
43128         maintainer-makefile: check for i18n setup
43129         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
43130         will likely work.
43132 2010-11-12  Bruno Haible  <bruno@clisp.org>
43134         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
43135         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
43136         * lib/nanosleep.c (nanosleep): Likewise.
43138 2010-11-11  Bruno Haible  <bruno@clisp.org>
43140         fcntl-h: Fix for use of C++ on glibc systems.
43141         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
43142         also on glibc systems in C++ mode.
43143         Reported by Gary V. Vaughan <gary@gnu.org>.
43145 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43147         mknod: avoid false failure with dash
43148         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
43150 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
43152         unlink: Fix "is it should" typo in diagnostic.
43153         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
43154         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
43156 2010-11-11  Bruno Haible  <bruno@clisp.org>
43158         Tests for module 'strerror_r-posix'.
43159         * modules/strerror_r-posix-tests: New file.
43160         * tests/test-strerror_r.c: New file.
43161         * tests/test-string-c++.cc: Check the signature of strerror_r.
43163         New module 'strerror_r-posix'.
43164         * lib/string.in.h (strerror_r): New declaration.
43165         * lib/strerror_r.c: New file.
43166         * m4/strerror_r.m4: New file.
43167         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
43168         of strerror_r.
43169         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
43170         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
43171         * modules/strerror_r-posix: New file.
43172         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
43173         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
43174         * doc/posix-functions/strerror_r.texi: Mention the new module and the
43175         portability problems.
43177 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
43179         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
43180         line is also considered for output. Quoted function name in shell
43181         command, so temporary files for functions like MyClass::operator()
43182         are removed correctly without errors.
43184 2010-11-09  Bruno Haible  <bruno@clisp.org>
43186         * doc/posix-functions/strerror.texi: List more failing platforms.
43188         * doc/posix-functions/strerror.texi: Add a comment.
43190 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
43192         fdopendir: fix bug on MacOS X when low on file descriptors
43194         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
43195         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
43196         All callers changed.
43197         (fdopendir): Invoke save_cwd at the top level, not after using
43198         multiple dup() calls to use up file descriptors.  Then retry
43199         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
43200         less than the maximum number of open file descriptors, because
43201         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
43202         on Mac OS X 10.6.4 for tar 1.24
43203         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
43204         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
43205         and for tar 1.25
43206         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
43208 2010-11-07  Bruno Haible  <bruno@clisp.org>
43210         vasnprintf: Support I flag on glibc systems.
43211         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
43212         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
43213         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
43214         snprintf function.
43215         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
43216         glibc systems.
43217         * tests/test-vasnprintf-posix3.c: New file.
43218         * modules/vasnprintf-posix-tests (Files): Add it.
43219         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
43221 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43223         [html] Fix copy/paste bug: Use unique name for compiler warnings.
43224         * MODULES.html.sh: For compiler warnings, use name
43225         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
43227 2010-11-05  Eric Blake  <eblake@redhat.com>
43229         ceil, floor: avoid spurious failure with icc
43230         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
43231         [denormals-as-zero] when optimizing without -mieee-fp option.
43232         * tests/test-floorf2.c (floorf_reference): Likewise.
43233         * tests/test-ceilf1.c (dummy): New function.
43234         (main): Use it to outsmart icc's optimization.
43235         * tests/test-floorf1.c (dummy, main): Likewise.
43237         tests: require working signbit
43238         * modules/ceilf-tests (Depends-on): Add signbit.
43239         * modules/ceill-tests (Depends-on): Likewise.
43240         * modules/floorf-tests (Depends-on): Likewise.
43241         * modules/floorl-tests (Depends-on): Likewise.
43242         * modules/round-tests (Depends-on): Likewise.
43243         * modules/roundf-tests (Depends-on): Likewise.
43244         * modules/roundl-tests (Depends-on): Likewise.
43245         * modules/trunc-tests (Depends-on): Likewise.
43246         * modules/truncf-tests (Depends-on): Likewise.
43247         * modules/truncl-tests (Depends-on): Likewise.
43249         strtod: work around icc bug
43250         * lib/strtod.c (minus_zero): Define to working value.
43251         (strtod): Use it to avoid icc bug.
43253         copysign: enhance tests
43254         * modules/copysign-tests (Files): Add minus-zero.h.
43255         * tests/test-copysign.c (main): Also test zeros.
43257 2010-11-04  Eric Blake  <eblake@redhat.com>
43259         ceil, floor, round, trunc: enhance tests of -0
43260         * tests/test-ceilf1.c (main): Ensure correct sign of result.
43261         * tests/test-ceill.c (main): Likewise.
43262         * tests/test-floorf1.c (main): Likewise.
43263         * tests/test-floorl.c (main): Likewise.
43264         * tests/test-round1.c (main): Likewise.
43265         * tests/test-roundf1.c (main): Likewise.
43266         * tests/test-roundl.c (main): Likewise.
43267         * tests/test-trunc1.c (main): Likewise.
43268         * tests/test-truncf1.c (main): Likewise.
43269         * tests/test-truncl.c (main): Likewise.
43271 2010-11-04  Eric Blake  <eblake@redhat.com>
43273         frexp, tests: work around ICC bug with -zero
43274         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
43275         works with more compilers.
43276         * tests/minus-zero.h: New file.
43277         * modules/ceilf-tests (Files): Include it.
43278         * modules/ceill-tests (Files): Likewise.
43279         * modules/floorf-tests (Files): Likewise.
43280         * modules/floorl-tests (Files): Likewise.
43281         * modules/frexp-nolibm-tests (Files): Likewise.
43282         * modules/frexp-tests (Files): Likewise.
43283         * modules/frexpl-nolibm-tests (Files): Likewise.
43284         * modules/frexpl-tests (Files): Likewise.
43285         * modules/isnan-tests (Files): Likewise.
43286         * modules/isnand-nolibm-tests (Files): Likewise.
43287         * modules/isnand-tests (Files): Likewise.
43288         * modules/isnanf-nolibm-tests (Files): Likewise.
43289         * modules/isnanf-tests (Files): Likewise.
43290         * modules/isnanl-nolibm-tests (Files): Likewise.
43291         * modules/isnanl-tests (Files): Likewise.
43292         * modules/round-tests (Files): Likewise.
43293         * modules/roundf-tests (Files): Likewise.
43294         * modules/roundl-tests (Files): Likewise.
43295         * modules/ldexpl-tests (Files): Likewise.
43296         * modules/signbit-tests (Files): Likewise.
43297         * modules/snprintf-posix-tests (Files): Likewise.
43298         * modules/sprintf-posix-tests (Files): Likewise.
43299         * modules/strtod-tests (Files): Likewise.
43300         * modules/trunc-tests (Files): Likewise.
43301         * modules/truncf-tests (Files): Likewise.
43302         * modules/truncl-tests (Files): Likewise.
43303         * modules/vsnprintf-posix-tests (Files): Likewise.
43304         * modules/vsprintf-posix-tests (Files): Likewise.
43305         * modules/vasnprintf-posix-tests (Files): Likewise.
43306         * modules/vasprintf-posix-tests (Files): Likewise.
43307         * tests/test-ceilf1.c (main): Use it.
43308         * tests/test-ceill.c (main): Likewise.
43309         * tests/test-floorf1.c (main): Likewise.
43310         * tests/test-floorl.c (main): Likewise.
43311         * tests/test-frexp.c (main): Likewise.
43312         * tests/test-frexpl.c (main): Likewise.
43313         * tests/test-isnan.c (main): Likewise.
43314         * tests/test-isnand.h (main): Likewise.
43315         * tests/test-isnanf.h (main): Likewise.
43316         * tests/test-isnanl.h (main): Likewise.
43317         * tests/test-ldexpl.c (main): Likewise.
43318         * tests/test-round.c (main): Likewise.
43319         * tests/test-roundf.c (main): Likewise.
43320         * tests/test-roundl.c (main): Likewise.
43321         * tests/test-signbit.c (test_signbitf, test_signbitd)
43322         (test_signbitl): Likewise.
43323         * tests/test-snprintf-posix.h (test_function): Likewise.
43324         * tests/test-sprintf-posix.h (test_function): Likewise.
43325         * tests/test-strtod.c (main): Likewise.
43326         * tests/test-trunc1.c (main): Likewise.
43327         * tests/test-truncf1.c (main): Likewise.
43328         * tests/test-truncl.c (main): Likewise.
43330         isnanl: work around icc bug
43331         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
43333 2010-11-03  Eric Blake  <eblake@redhat.com>
43335         tests: fix compiler warnings
43336         * tests/test-getopt.h (test_getopt): Fix condition.
43337         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43338         * tests/test-pipe2.c (main): Likewise.
43339         * tests/test-quotearg-simple.c (main): Avoid icc warning.
43341         utimens: fix broken m4 test
43342         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
43344 2010-10-28  Bruno Haible  <bruno@clisp.org>
43346         posix_spawn*, getdtablesize: Relax license.
43347         * modules/posix_spawn (License): Change to LGPLv2+.
43348         * modules/posix_spawnp (License): Likewise.
43349         * modules/posix_spawn-internal (License): Likewise.
43350         * modules/posix_spawnattr_init (License): Likewise.
43351         * modules/posix_spawnattr_getflags (License): Likewise.
43352         * modules/posix_spawnattr_setflags (License): Likewise.
43353         * modules/posix_spawnattr_getpgroup (License): Likewise.
43354         * modules/posix_spawnattr_setpgroup (License): Likewise.
43355         * modules/posix_spawnattr_getschedparam (License): Likewise.
43356         * modules/posix_spawnattr_setschedparam (License): Likewise.
43357         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
43358         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
43359         * modules/posix_spawnattr_getsigdefault (License): Likewise.
43360         * modules/posix_spawnattr_setsigdefault (License): Likewise.
43361         * modules/posix_spawnattr_getsigmask (License): Likewise.
43362         * modules/posix_spawnattr_setsigmask (License): Likewise.
43363         * modules/posix_spawnattr_destroy (License): Likewise.
43364         * modules/posix_spawn_file_actions_init (License): Likewise.
43365         * modules/posix_spawn_file_actions_addclose (License): Likewise.
43366         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
43367         * modules/posix_spawn_file_actions_addopen (License): Likewise.
43368         * modules/posix_spawn_file_actions_destroy (License): Likewise.
43369         * modules/getdtablesize (License): Likewise.
43370         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
43372 2010-10-26  Bruno Haible  <bruno@clisp.org>
43374         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
43375         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
43376         Cygwin and mingw.
43377         Suggested by Eric Blake.
43379 2010-10-26  Bruno Haible  <bruno@clisp.org>
43381         stdio: Work around compilation error due to renameat() on Solaris 10.
43382         * lib/stdio.in.h: Include <unistd.h> on Solaris.
43383         * lib/renameat.c: Don't include <unistd.h> here.
43384         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
43385         Reported by Paul Eggert and Eric Blake.
43387 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
43389         renameat: port to Solaris 10, which declares renameat in unistd.h
43391         * lib/renameat.c: Include unistd.h before stdio.h, because
43392         Solaris 10 declares renameat in unistd.h.  Problem encountered
43393         when building GNU tar 1.24 on Solaris 10.
43395 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43397         fdopendir: fix C89 compilation
43398         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
43399         compilers.
43401 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
43403         inttostr: simplify by removing unnecessary redundancy
43404         * lib/anytostr.c: Don't include verify.h.
43405         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
43406         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
43407         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
43408         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
43409         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
43410         Likewise.
43411         * modules/inttostr (Depends-on): Remove 'verify'.
43413 2010-10-23  Bruno Haible  <bruno@clisp.org>
43415         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
43416         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
43417         Reported by Eric Blake.
43419 2010-10-23  Bruno Haible  <bruno@clisp.org>
43421         Tests: Fix LOCALE_JA on MirBSD 10.
43422         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
43423         to an UTF-8 locale.
43424         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
43425         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43426         Reported by Eric Blake.
43428 2010-10-21  Bruno Haible  <bruno@clisp.org>
43430         nl_langinfo test: Avoid test failure on NetBSD 5.
43431         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
43432         Reported by Eric Blake.
43434 2010-10-21  Eric Blake  <eblake@redhat.com>
43436         c-stack: work around libsigsegv 2.8 bug
43437         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
43438         overflow on at least PowerPC64.
43440 2010-10-17  Bruno Haible  <bruno@clisp.org>
43442         userspec: Drop redundant file.
43443         * modules/userspec (Files): Remove lib/inttostr.h.
43445 2010-10-17  Bruno Haible  <bruno@clisp.org>
43447         nl_langinfo tests: Silence some warnings.
43448         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
43449         Reported by Jim Meyering.
43451 2010-10-17  Bruno Haible  <bruno@clisp.org>
43453         Make use of GCC's attribute __alloc_size__.
43454         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
43455         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
43456         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
43457         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
43458         __alloc_size__.
43459         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43460         Suggested by Jim Meyering.
43462 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
43464         bootstrap: anchor .gitignore entries.
43465         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
43466         with...
43467         (insert_vc_ignore): ... this new function, which prepends `/' to
43468         all .gitignore entries before passing them to
43469         insert_sorted_if_absent.
43471 2010-10-16  Bruno Haible  <bruno@clisp.org>
43473         nextafter: Fix configure check.
43474         * modules/nextafter (configure.ac): Correct expected prototype.
43476 2010-10-16  Bruno Haible  <bruno@clisp.org>
43478         termios: Update documentation.
43479         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
43481 2010-10-16  Bruno Haible  <bruno@clisp.org>
43483         tests: Make them compile with TinyCC.
43484         * tests/test-strstr.c (main): Remove parentheses around array
43485         initializer.
43487 2010-10-15  Eric Blake  <eblake@redhat.com>
43489         ignore-value: make header idempotent
43490         * lib/ignore-value.h: Add double-inclusion guards.
43491         Reported by Stefan Berger.
43493 2010-10-15  Jim Meyering  <meyering@redhat.com>
43495         GNUmakefile: handle "stable" target, not "major"
43496         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
43497         lists in maint.mk and announce-gen.  Without this, "make stable"
43498         would fail to ensure that $(VERSION) is up to date.
43500 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
43502         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
43503         & co.
43505 2010-10-14  Bruno Haible  <bruno@clisp.org>
43507         vasnprintf: Don't set errno to 0.
43508         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
43509         block that sets it to 0.
43510         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
43512 2010-10-14  Bruno Haible  <bruno@clisp.org>
43514         socketlib: Fix.
43515         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
43516         gl_PREREQ_SYS_H_WINSOCK2.
43517         Reported by Ian Beckwith <ianb@erislabs.net>.
43519 2010-10-13  Jim Meyering  <meyering@redhat.com>
43521         test-select-stdin.c: avoid warn_unused_result warnings
43522         * tests/test-select-stdin.c: Include "macros.h".
43523         ASSERT that read and fflush succeed.
43525 2010-10-13  Jim Meyering  <meyering@redhat.com>
43527         git-version-gen: do require git-VC'd files in cwd
43528         * build-aux/git-version-gen: Reject a git version string
43529         if there are no commits associated with the current directory.
43530         This avoids an unlikely false-positive (unrelated dir whose parent
43531         repository also contains a tag matching v*), as pointed out
43532         by Giuseppe Scrivano in
43533         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
43535 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
43537         argv-iter: omit nonconforming declaration
43538         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
43539         enum arg_iter_err declaration, which doesn't conform to C99.
43540         Solaris 10 cc warns about this.
43542 2010-10-13  Eric Blake  <eblake@redhat.com>
43544         termios: fix compilation on mingw
43545         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
43546         (gl_TERMIOS_H): Adjust it on mingw.
43547         * modules/termios (Makefile.am): Substitute new key.
43548         * lib/termios.in.h (includes): Make include_next conditional.
43549         * doc/posix-headers/termios.texi (termios.h): Update
43550         documentation.
43551         Reported by Daniel P. Berrange.
43553 2010-10-13  Jim Meyering  <meyering@redhat.com>
43555         git-version-gen: don't require that .git/ be in the current dir
43556         * build-aux/git-version-gen: Adjust this script so that it works
43557         when run from any working directory beneath the top-level .git/-
43558         containing directory.  Inspired by a patch from Giuseppe Scrivano,
43559         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
43561         test-select: avoid warn_unused_result warnings
43562         * tests/test-select.c: Include "macros.h".
43563         ASSERT that each call to read, write, and pipe succeeds.
43564         While not technically required, also check each "close".
43565         * modules/select-tests (Files): Add tests/macros.h.
43567         test-symlinkat: remove declaration of unused local
43568         * tests/test-symlinkat.c (main): Remove unused local, "buf".
43570         test-inttostr: avoid shadowing warnings
43571         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
43572         and use malloc rather than the stack for the same reason as
43573         mentioned in the comment justifying the other allocation.
43575 2010-10-11  Bruno Haible  <bruno@clisp.org>
43577         stdlib: Allow multiple gnulib generated replacements to coexist.
43578         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
43579         Reported by Sam Steingold <sds@gnu.org>.
43581 2010-10-11  Jim Meyering  <meyering@redhat.com>
43583         fix a documentation typo
43584         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
43586 2010-10-11  Eric Blake  <eblake@redhat.com>
43588         futimens: work around Solaris 11 bug
43589         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
43590         * tests/test-futimens.h (test_futimens): Enhance, rather than
43591         weaken test.
43592         * doc/posix-functions/futimens.texi (futimens): Document the bug.
43594 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43596         Indentation.
43597         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
43598         higher-level operators more to the left.
43600 2010-10-11  Jim Meyering  <meyering@redhat.com>
43602         test-futimens: avoid unwarranted test failure on Solaris 5.11
43603         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
43604         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
43605         because it tries to dereference the NULL name argument.
43607 2010-10-11  Bruno Haible  <bruno@clisp.org>
43609         Indentation.
43610         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
43611         indentation.
43613 2010-10-11  Jim Meyering  <meyering@redhat.com>
43615         spawn.in.h: make indentation consistent with parentheses
43616         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
43617         Make indentation consistent with parentheses.
43619 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
43621         Fix mismatched parens in previous commit
43622         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
43623         parens.
43625 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43627         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
43629         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
43630         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
43631         * lib/malloca.c: Include "verify.h".
43632         (verify1): Remove, replacing with a verify call.
43633         * lib/relocwrapper.c (verify1): Likewise.
43634         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
43635         Likewise.
43636         * modules/malloca (Depends-on): Add 'verify'.
43637         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
43638         * modules/vasnprintf (Depends-on): Add 'verify'.
43639         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43640         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43641         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43642         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43643         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43644         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43645         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43647         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
43649         Formerly the style was sometimes 2*X - 1, because the C standard
43650         was wrongly thought to disallow ?: in integral constant expressions.
43651         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
43652         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
43653         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43654         * lib/stdint.in.h (_verify_intmax_size): Likewise.
43655         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
43656         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
43657         verify that time_t cannot be floating.
43659 2010-10-08  Eric Blake  <eblake@redhat.com>
43661         time: enforce recent POSIX ruling that time_t is integral
43662         * lib/time.in.h (__time_t_must_be_integral): Detect any
43663         problematic systems, allowing the rest of gnulib to assume POSIX.
43665 2010-10-08  Jim Meyering  <meyering@redhat.com>
43667         fdopendir: fix a bug on systems lacking openat and /proc support
43668         OpenBSD 4.7 is one such system.  The most noticeable effect was
43669         failure of any application making nontrivial use of fts: rm, du,
43670         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
43671           ./rm: traversal failed: `a': Bad file descriptor
43672         Debugging that, you see that even though FD 6 was closed just
43673         prior to the opendir call in fd_clone_opendir, its resulting
43674         dir->dd_fd was 8, rather than the expected value of 6:
43676         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
43677         93                close (fd);
43678         (gdb) n
43679         94                dir = fd_clone_opendir (dupfd);
43680         (gdb) n
43681         95                saved_errno = errno;
43682         (gdb) p dir->dd_fd
43683         $11 = 8
43685         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
43686         The problem is that on OpenBSD, fd_clone_opendir has to resort
43687         to using the old-style save/restore CWD mechanism, due to its
43688         lack of openat/proc support, and *that* would steal the FD (6)
43689         that opendir was supposed to use.
43691         The fix is to squirrel away the desired FD so that save_cwd uses a
43692         different one, and then free the dest FD right before calling opendir.
43693         That guarantees opendir will use the required file descriptor.
43695         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
43697 2010-10-08  Bruno Haible  <bruno@clisp.org>
43699         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
43700         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
43702 2010-10-08  Bruno Haible  <bruno@clisp.org>
43704         nanosleep: Make replacement POSIX compliant.
43705         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
43706         is out of range.
43707         Reported by Jim Meyering.
43709 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43711         bootstrap: add hook for altering gnulib.mk, for Bison
43712         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
43713         the Bison bootstrapping process can rewrite file names and variables
43714         in this file before later parts of 'bootstrap' use the file.
43715         Bison wants to include lib/gnulib.mk from the top-level makefile,
43716         so it needs the file names in this file to be relative to the top
43717         level, not relative to lib; plus it needs variable names to be
43718         rewritten.
43719         (slurp): Use the new function.
43721         bootstrap: reformat for readability
43722         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
43724 2010-10-08  Eric Blake  <eblake@redhat.com>
43726         docs: update cygwin progress
43727         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
43728         1.7.7.
43729         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
43730         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
43731         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
43732         * doc/posix-functions/carg.texi (carg): Likewise.
43733         * doc/posix-functions/cargf.texi (cargf): Likewise.
43734         * doc/posix-functions/casin.texi (casin): Likewise.
43735         * doc/posix-functions/casinf.texi (casinf): Likewise.
43736         * doc/posix-functions/casinh.texi (casinh): Likewise.
43737         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
43738         * doc/posix-functions/catan.texi (catan): Likewise.
43739         * doc/posix-functions/catanf.texi (catanf): Likewise.
43740         * doc/posix-functions/catanh.texi (catanh): Likewise.
43741         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
43742         * doc/posix-functions/ccos.texi (ccos): Likewise.
43743         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
43744         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
43745         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
43746         * doc/posix-functions/cexp.texi (cexp): Likewise.
43747         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
43748         * doc/posix-functions/cimag.texi (cimag): Likewise.
43749         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
43750         * doc/posix-functions/clog.texi (clog): Likewise.
43751         * doc/posix-functions/clogf.texi (clogf): Likewise.
43752         * doc/posix-functions/conj.texi (conj): Likewise.
43753         * doc/posix-functions/conjf.texi (conjf): Likewise.
43754         * doc/posix-functions/cpow.texi (cpow): Likewise.
43755         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
43756         * doc/posix-functions/cproj.texi (cproj): Likewise.
43757         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
43758         * doc/posix-functions/creal.texi (creal): Likewise.
43759         * doc/posix-functions/crealf.texi (crealf): Likewise.
43760         * doc/posix-functions/csin.texi (csin): Likewise.
43761         * doc/posix-functions/csinf.texi (csinf): Likewise.
43762         * doc/posix-functions/csinh.texi (csinh): Likewise.
43763         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
43764         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
43765         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
43766         * doc/posix-functions/ctan.texi (ctan): Likewise.
43767         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
43768         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
43769         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
43770         * doc/posix-headers/complex.texi (complex.h): Likewise.
43772 2010-10-07  Jim Meyering  <meyering@redhat.com>
43774         parse-datetime: avoid compilation failure on OpenBSD 4.7
43775         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
43776         This works around a compilation failure on OpenBSD 4.7:
43777         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
43779 2010-10-07  Eric Blake  <eblake@redhat.com>
43781         docs: update cygwin progress
43782         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
43783         1.7.6.
43784         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43785         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
43786         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
43787         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
43788         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
43789         Likewise.
43790         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
43791         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
43792         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
43793         Likewise.
43794         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
43795         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
43796         Likewise.
43797         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
43798         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
43799         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
43800         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
43801         Likewise.
43802         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
43803         Likewise.
43804         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
43806         docs: update parse-datetime history
43807         * doc/parse-datetime.texi (Authors of parse_datetime): Better
43808         documentation of this function's history and alternatives.
43810         cygwin: use more robust version check
43811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
43812         exclude an eventual cygwin 1.9.1.
43813         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
43815         (gl_FUNC_STRCASESTR): Likewise.
43816         Reported by Bruno Haible.
43818 2010-10-06  Bruno Haible  <bruno@clisp.org>
43820         string, sys_select: Avoid #including large headers unless necessary.
43821         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
43822         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
43823         OSF/1, BeOS, Haiku.
43824         Reported by Jim Meyering.
43826 2010-10-05  Eric Blake  <eblake@redhat.com>
43828         memmem, strstr, strcasestr: fix bug with long periodic needle
43829         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
43830         periodic needle having false positive.
43831         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
43832         and cygwin 1.7.7.
43833         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
43834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
43835         (gl_FUNC_STRCASESTR): Likewise.
43836         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43837         * tests/test-memmem.c (main): Expose the bug.
43838         * tests/test-strcasestr.c (main): Likewise.
43839         * tests/test-strstr.c (main): Likewise.
43840         * tests/test-c-strcasestr.c (main): Likewise.
43841         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
43842         * doc/posix-functions/strstr.texi (strstr): Likewise.
43843         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43844         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
43846 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43848         parse-datetime: do some more renaming
43849         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
43850         parse_datetime, not get_date.  Mention the renaming.
43851         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
43852         in comments.
43853         * m4/bison.m4: Likewise.
43855 2010-10-05  Eric Blake  <eblake@redhat.com>
43857         parse-datetime: better name than get_date
43858         * NEWS: Reword the deprecation notice.
43859         * modules/get_date: Rename to modules/parse-datetime.
43860         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
43861         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
43862         * lib/get_date.y: Rename to lib/parse-datetime.y.
43863         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
43864         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
43865         * doc/getdate.texi: Provide fallback wrapper.
43866         * lib/getdate.h: Move guts, and wrap...
43867         * lib/parse-datetime.h: ...new file.
43868         * lib/parse-datetime.y (get_date): Rename...
43869         (parse_datetime): ...to this.
43870         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
43871         (gl_PARSE_DATETIME): ...to this.
43872         * doc/posix-functions/getdate.texi (get_date): Provide fallback
43873         documentation.
43874         * modules/getdate (Files): Provide fallback docs and header.
43875         (Notice, Depends-on): Update references.
43876         * tests/test-parse-datetime.c: Likewise.
43877         * DEPENDENCIES: Likewise.
43878         * MODULES.html.sh (Date and time <time.h>): Likewise.
43879         * doc/parse-datetime.texi (Date input formats)
43880         (Authors of parse_datetime): Likewise.
43881         * modules/parse-datetime (Files, configure.ac, Makefile.am)
43882         (Include): Likewise.
43883         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
43884         * gnulib-tool: Likewise.
43885         * m4/bison.m4 (gl_BISON): Likewise.
43886         Suggested by Bruno Haible.
43888 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43890         more ports to Solaris tr, which needs [] around ranges
43891         * gnulib-tool: Solaris tr needs [] around ranges.
43892         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43893         * tests/test-pipe-filter-gi1.c (main): Likewise.
43894         * tests/test-pipe-filter-ii1.c (main): Likewise.
43896 2010-10-05  Eric Blake  <eblake@redhat.com>
43898         bootstrap: fix Solaris regression
43899         * build-aux/bootstrap (check_versions): Solaris tr still needs []
43900         around ranges.
43901         Reported by Pádraig Brady.
43903         bootstrap: work with pkg-config
43904         * build-aux/bootstrap (check_versions): Also transliterate - in
43905         prerequisite name.
43906         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
43907         prerequisites that were already found, to avoid confusion.
43908         Reported by Justin Clift.
43910         faccessat: remove unused wrappers
43911         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
43912         presence of these wrappers dragged in -lgen on Solaris.
43913         Reported by Clemens Brogi; fix suggested by Paul Eggert.
43915 2010-10-05  Jim Meyering  <meyering@redhat.com>
43917         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
43918         * Makefile (sc_pragma_columns): New syntax-check rule.
43920 2010-10-04  Bruno Haible  <bruno@clisp.org>
43922         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
43923         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
43924         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
43925         Reported by Bruce Korb and Eric Blake.
43927 2010-10-04  Bruno Haible  <bruno@clisp.org>
43929         threadlib: Make option --with-libpth-prefix work.
43930         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
43931         use $LIBPTH, not just -lpth.
43933 2010-10-04  Bruno Haible  <bruno@clisp.org>
43935         Avoid line length limitation from HP NonStop system header files.
43936         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
43937         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
43938         * lib/ctype.in.h: Likewise.
43939         * lib/dirent.in.h: Likewise.
43940         * lib/errno.in.h: Likewise.
43941         * lib/fcntl.in.h: Likewise.
43942         * lib/float.in.h: Likewise.
43943         * lib/getopt.in.h: Likewise.
43944         * lib/iconv.in.h: Likewise.
43945         * lib/inttypes.in.h: Likewise.
43946         * lib/langinfo.in.h: Likewise.
43947         * lib/locale.in.h: Likewise.
43948         * lib/math.in.h: Likewise.
43949         * lib/netdb.in.h: Likewise.
43950         * lib/netinet_in.in.h: Likewise.
43951         * lib/poll.in.h: Likewise.
43952         * lib/pthread.in.h: Likewise.
43953         * lib/pty.in.h: Likewise.
43954         * lib/sched.in.h: Likewise.
43955         * lib/se-selinux.in.h: Likewise.
43956         * lib/search.in.h: Likewise.
43957         * lib/signal.in.h: Likewise.
43958         * lib/spawn.in.h: Likewise.
43959         * lib/stdarg.in.h: Likewise.
43960         * lib/stddef.in.h: Likewise.
43961         * lib/stdint.in.h: Likewise.
43962         * lib/stdio.in.h: Likewise.
43963         * lib/stdlib.in.h: Likewise.
43964         * lib/string.in.h: Likewise.
43965         * lib/strings.in.h: Likewise.
43966         * lib/sys_file.in.h: Likewise.
43967         * lib/sys_ioctl.in.h: Likewise.
43968         * lib/sys_select.in.h: Likewise.
43969         * lib/sys_socket.in.h: Likewise.
43970         * lib/sys_stat.in.h: Likewise.
43971         * lib/sys_time.in.h: Likewise.
43972         * lib/sys_times.in.h: Likewise.
43973         * lib/sys_utsname.in.h: Likewise.
43974         * lib/sys_wait.in.h: Likewise.
43975         * lib/sysexits.in.h: Likewise.
43976         * lib/termios.in.h: Likewise.
43977         * lib/time.in.h: Likewise.
43978         * lib/unistd.in.h: Likewise.
43979         * lib/wchar.in.h: Likewise.
43980         * lib/wctype.in.h: Likewise.
43981         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
43982         * modules/ctype (Makefile.am): Likewise.
43983         * modules/dirent (Makefile.am): Likewise.
43984         * modules/errno (Makefile.am): Likewise.
43985         * modules/fcntl-h (Makefile.am): Likewise.
43986         * modules/float (Makefile.am): Likewise.
43987         * modules/getopt-posix (Makefile.am): Likewise.
43988         * modules/iconv-h (Makefile.am): Likewise.
43989         * modules/inttypes (Makefile.am): Likewise.
43990         * modules/langinfo (Makefile.am): Likewise.
43991         * modules/locale (Makefile.am): Likewise.
43992         * modules/math (Makefile.am): Likewise.
43993         * modules/netdb (Makefile.am): Likewise.
43994         * modules/netinet_in (Makefile.am): Likewise.
43995         * modules/poll-h (Makefile.am): Likewise.
43996         * modules/pthread (Makefile.am): Likewise.
43997         * modules/pty (Makefile.am): Likewise.
43998         * modules/sched (Makefile.am): Likewise.
43999         * modules/search (Makefile.am): Likewise.
44000         * modules/selinux-h (Makefile.am): Likewise.
44001         * modules/signal (Makefile.am): Likewise.
44002         * modules/spawn (Makefile.am): Likewise.
44003         * modules/stdarg (Makefile.am): Likewise.
44004         * modules/stddef (Makefile.am): Likewise.
44005         * modules/stdint (Makefile.am): Likewise.
44006         * modules/stdio (Makefile.am): Likewise.
44007         * modules/stdlib (Makefile.am): Likewise.
44008         * modules/string (Makefile.am): Likewise.
44009         * modules/strings (Makefile.am): Likewise.
44010         * modules/sys_file (Makefile.am): Likewise.
44011         * modules/sys_ioctl (Makefile.am): Likewise.
44012         * modules/sys_select (Makefile.am): Likewise.
44013         * modules/sys_socket (Makefile.am): Likewise.
44014         * modules/sys_stat (Makefile.am): Likewise.
44015         * modules/sys_time (Makefile.am): Likewise.
44016         * modules/sys_times (Makefile.am): Likewise.
44017         * modules/sys_utsname (Makefile.am): Likewise.
44018         * modules/sys_wait (Makefile.am): Likewise.
44019         * modules/sysexits (Makefile.am): Likewise.
44020         * modules/termios (Makefile.am): Likewise.
44021         * modules/time (Makefile.am): Likewise.
44022         * modules/unistd (Makefile.am): Likewise.
44023         * modules/wchar (Makefile.am): Likewise.
44024         * modules/wctype (Makefile.am): Likewise.
44026 2010-10-04  Bruno Haible  <bruno@clisp.org>
44028         read-file tests: Avoid a test failure on NonStop Kernel.
44029         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
44030         a regular file.
44031         Reported by Joachim Schmitz <schmitz@hp.com>.
44033 2010-10-03  Bruno Haible  <bruno@clisp.org>
44035         gnulib-tool: Fixes for --create-testdir with --libtool.
44036         * gnulib-tool (func_get_automake_snippet): Don't augment
44037         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
44038         an executable.
44039         (func_create_testdir): Handle module 'alloca' like func_import.
44040         Reported by Bruce Korb <bruce.korb@gmail.com>.
44042 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
44044         Avoid some lines longer than 80 characters.
44045         * lib/stdint.in.h: Break long comment lines.
44046         * lib/math.in.h: Likewise.
44047         (_GL_NUM_UINT_WORDS): New macro, for readability.
44048         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
44049         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
44050         * lib/stdlib.in.h: Likewise.
44051         * lib/spawn.in.h: Likewise.
44052         * lib/sys_socket.in.h: Update an URL.
44053         * lib/sys_stat.in.h: Break long line.
44055 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
44057         Improve pmccabe2html.
44058         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
44059         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
44060         when the sources change. Remove the line in the HTML about "Used
44061         ranges" (which implied that there might be other unused ranges),
44062         rename "Resume" to "Summary" (easier to understand for more users).
44063         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
44064         styles, and some unnecessary blank lines.
44066 2010-10-03  Bruno Haible  <bruno@clisp.org>
44067             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
44069         acl: Add support for ACLs on NonStop Kernel.
44070         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
44071         Check whether the function aclsort() exists.
44072         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
44073         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
44074         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44075         (acl_nontrivial [HAVE_ACLSORT]: New function.
44076         (file_has_acl): Implement for NonStop Kernel.
44077         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44078         (qset_acl): Implement for NonStop Kernel.
44079         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
44080         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
44081         (main): Implement for NonStop Kernel.
44082         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
44083         Kernel. Handle this flavor.
44084         * tests/test-set-mode-acl.sh: Likewise.
44085         * tests/test-copy-acl.sh: Likewise.
44086         * tests/test-copy-file.sh: Likewise.
44088 2010-10-03  Bruno Haible  <bruno@clisp.org>
44090         Info about ACLs on NonStop Kernel.
44091         * doc/acl-resources.txt: Add info about NonStop Kernel.
44092         References by Joachim Schmitz <schmitz@hp.com>.
44094 2010-10-02  Bruno Haible  <bruno@clisp.org>
44096         Define missing EDQUOT on NonStop Kernel.
44097         * lib/errno.in.h (EDQUOT): Assign a value if missing.
44098         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
44099         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
44100         missing.
44101         * doc/posix-headers/errno.texi: Mention the NSK bug.
44102         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
44103         Reported by Joachim Schmitz <schmitz@hp.com>.
44105 2010-10-02  Bruno Haible  <bruno@clisp.org>
44107         Update doc for POSIX:2008.
44108         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
44109         Update URL of POSIX specification.
44111 2010-10-02  Bruno Haible  <bruno@clisp.org>
44113         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
44114         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
44115         from gnulib, not from Automake.
44117 2010-10-02  Bruno Haible  <bruno@clisp.org>
44119         New module 'system-posix'.
44120         * modules/system-posix: New file.
44121         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
44122         module is present.
44123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
44124         GNULIB_SYSTEM_POSIX.
44125         * modules/stdlib (Depends-on): Remove sys_wait.
44126         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
44127         * doc/posix-functions/system.texi: Mention the new module.
44128         * doc/posix-headers/stdlib.texi: Likewise.
44129         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
44130         define test_sys_wait_macros to a no-op.
44131         Reported by Sam Steingold <sds@gnu.org>.
44133 2010-09-30  Bruno Haible  <bruno@clisp.org>
44135         More renaming from 'getdate' to 'get_date'.
44136         * doc/get_date.texi: Renamed from doc/getdate.texi.
44137         * modules/get_date (Files): Update.
44138         * MODULES.html.sh (Date and time <time.h>): Update.
44139         * DEPENDENCIES: Update.
44140         * gnulib-tool: Update comment.
44141         * m4/bison.m4 (gl_BISON): Likewise.
44142         * m4/get_date.m4 (gl_GET_DATE): Likewise.
44144 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
44146         bootstrap: support ACLOCAL_FLAGS during aclocal
44147         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
44148         can add additional -I dir for third-party .m4 files.
44150 2010-09-30  Eric Blake  <eblake@redhat.com>
44152         bootstrap: use glibtoolize on MacOS
44153         * build-aux/bootstrap (check_versions): Convert libtool into
44154         libtoolize.
44155         (tool search): Move libtool check earlier, and look for
44156         glibtoolize for MacOS.
44157         (gnulib_tool_options): Auto-add --libtool when appropriate.
44158         Reported by Justin Clift.
44160         poll: fix typo that broke test on MacOS
44161         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
44162         Reported by Justin Clift.
44164         getdate: rename to get_date
44165         Note: getdate.h is not renamed, to minimize client impact.
44166         * modules/getdate: Mark obsolete.  Move old contents...
44167         * modules/get_date: ...to new module name.
44168         * modules/getdate-tests: Move...
44169         * modules/get_date-tests: ...here.
44170         * m4/getdate.m4: Move...
44171         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
44172         * lib/getdate.y: Move...
44173         * lib/get_date.y: ...here.
44174         * tests/test-getdate.c: Move...
44175         * tests/test-get_date.c: ...here.
44176         * doc/posix-functions/getdate.texi (getdate): Update name.
44177         * NEWS: Mention the change.
44179 2010-09-29  Bruno Haible  <bruno@clisp.org>
44181         Separate the module 'waitpid' from the module 'sys_wait'.
44182         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
44183         present.
44184         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
44185         gl_MODULE_INDICATOR_FOR_TESTS.
44186         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
44187         * modules/sys_wait (Depends-on): Remove waitpid.
44188         (Makefile.am): Substitute GNULIB_WAITPID.
44189         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
44190         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
44191         signature only if the 'waitpid' module is present.
44192         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
44193         * NEWS: Mention the change.
44194         * modules/grantpt (Depends-on): Add waitpid.
44195         * modules/wait-process (Depends-on): Likewise.
44197 2010-09-29  Bruno Haible  <bruno@clisp.org>
44199         More tests for module 'sys_wait'.
44200         * modules/sys_wait-c++-tests: New file.
44201         * tests/test-sys_wait-c++.cc: New file.
44202         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
44203         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44205 2010-09-29  Bruno Haible  <bruno@clisp.org>
44207         New module 'waitpid'.
44208         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
44209         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
44210         Don't include <process.h>.
44211         (waitpid): Declare only, using modern idiom.
44212         * m4/waitpid.m4: New file.
44213         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
44214         * modules/waitpid: New file.
44215         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
44216         (Makefile.am): Update.
44217         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44219 2010-09-28  Bruno Haible  <bruno@clisp.org>
44221         poll: Assume ANSI C.
44222         * lib/poll.c (poll): Use an ANSI C declaration.
44224 2010-09-28  Bruno Haible  <bruno@clisp.org>
44226         poll-h: Create poll.h on all platforms.
44227         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
44228         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
44229         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
44230         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
44231         (gl_REPLACE_POLL_H): Don't set POLL_H.
44232         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
44233         * modules/poll-h (Depends-on): Add include_next.
44234         (Makefile.am): Create poll.h unconditionally. Substitute also
44235         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
44237 2010-09-28  Bruno Haible  <bruno@clisp.org>
44239         Tests for module 'poll-h'.
44240         * modules/poll-h-c++-tests: New file.
44241         * tests/test-poll-h-c++.cc: New file.
44243         Tests for module 'poll-h'.
44244         * modules/poll-h-tests: New file.
44245         * tests/test-poll-h.c: New file.
44247 2010-09-28  Bruno Haible  <bruno@clisp.org>
44249         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
44250         * modules/poll-h (Depends-on): Add 'extensions'.
44252 2010-09-28  Bruno Haible  <bruno@clisp.org>
44254         New module 'poll-h'.
44255         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
44256         (poll): Use modern idiom.
44257         * modules/poll-h: New file.
44258         * modules/poll (Files): Remove lib/poll.in.h.
44259         (Depends-on): Add poll-h.
44260         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
44261         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
44262         * m4/poll_h.m4: New file.
44263         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
44264         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
44265         and invoke gl_REPLACE_POLL_H.
44266         * lib/poll.c: Use common idiom.
44267         * tests/test-poll.c: Likewise.
44268         * doc/posix-headers/poll.texi: Mention the poll-h module.
44269         Suggested by Eric Blake.
44271 2010-09-26  Bruno Haible  <bruno@clisp.org>
44273         sys_wait: Implement WSTOPSIG.
44274         * lib/sys_wait.in.h (WSTOPSIG): New macro.
44275         Reported by Simon Josefsson.
44277 2010-09-26  Simon Josefsson  <simon@josefsson.org>
44279         stdlib, sys_wait: Avoid compilation error on mingw.
44280         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
44282 2010-09-26  Bruno Haible  <bruno@clisp.org>
44284         stdlib tests: Avoid code duplication.
44285         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
44286         * modules/sys_wait-tests (Files): Likewise.
44287         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
44288         * tests/test-stdlib.c: Include test-sys_wait.h.
44289         (main): Invoke test_sys_wait_macros.
44290         * tests/test-sys_wait.c: Include test-sys_wait.h.
44291         (main): Invoke test_sys_wait_macros.
44293 2010-09-25  Simon Josefsson  <simon@josefsson.org>
44295         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
44296         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
44297         sure Windows sockets are working before calling getaddrinfo.
44298         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
44299         * doc/gnulib.texi (Windows sockets): Fix typo.
44301 2010-09-25  Bruno Haible  <bruno@clisp.org>
44303         Tests for module 'regex-quote'.
44304         * modules/regex-quote-tests: New file.
44305         * tests/test-regex-quote.c: New file.
44307         New module 'regex-quote'.
44308         * lib/regex-quote.h: New file.
44309         * lib/regex-quote.c: New file.
44310         * modules/regex-quote: New file.
44311         Suggested by Reuben Thomas <rrt@sc3d.org>.
44313 2010-09-24  Bruno Haible  <bruno@clisp.org>
44315         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
44316         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
44318 2010-09-23  Bruno Haible  <bruno@clisp.org>
44320         setenv: Relax license.
44321         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
44322         Blake.
44323         Requested by Eric Blake.
44325 2010-09-22  Bruno Haible  <bruno@clisp.org>
44327         termios: Relax license.
44328         * modules/termios (License): Change to LGPLv2+.
44329         Requested by Eric Blake.
44331 2010-09-22  Bruno Haible  <bruno@clisp.org>
44333         threadlib: Allow the package to change the default to 'no'.
44334         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
44335         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
44336         Reported by Paul Eggert.
44338 2010-09-22  Pádraig Brady  <P@draigbrady.com>
44339             Bruno Haible  <bruno@clisp.org>
44341         Fix endless loop in mbmemcasecoll.
44342         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
44343         byte.
44344         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
44346 2010-09-22  Bruno Haible  <bruno@clisp.org>
44348         Tests for module 'memcoll'.
44349         * modules/memcoll-tests: New file.
44350         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
44352         memcoll, xmemcoll: Clarify size vs. length.
44353         * modules/memcoll.c (memcoll0): Clarify specification.
44354         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
44355         passed to collate_error.
44357 2010-09-22  Bruno Haible  <bruno@clisp.org>
44359         Tests for module 'memcasecmp'.
44360         * modules/memcasecmp-tests: New file.
44361         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
44363 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
44365         * lib/pthread.in.h: Add split double-inclusion guard, and include
44366         system <pthread.h> if there is one.  Use @@-style as in other
44367         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
44368         pthread.h doesn't.
44369         (pthread_mutexattr_destroy, pthread_mutexattr_init):
44370         (pthread_mutexattr_settype, pthread_mutex_trylock):
44371         New static inline functions, if there's no system <pthread.h>.
44372         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
44373         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
44374         Approximate with mutexes if the system lacks spinlocks, as in
44375         MacOS.
44376         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
44377         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
44378         @@-style.  Check for spinlocks separately.
44379         (gl_PTHREAD_DEFAULTS): New macro.
44380         * modules/pthread: Redo to use a more typical style for in.h files.
44382 2010-09-21  Eric Blake  <eblake@redhat.com>
44384         net_if: enhance tests
44385         * tests/test-net_if.c (main): Move signature checks earlier.
44386         Print failures to stderr.
44387         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
44388         Document the bug that we do not yet fix.
44390 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44392         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
44393         about gnulib, not GSS.
44395 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44397         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
44398         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
44399         for Emacs.
44400         * build-aux/pmccabe2html: Make Makefile.am example code more
44401         cut-and-paste friendly.
44403 2010-09-21  Simon Josefsson  <simon@josefsson.org>
44405         * tests/test-net_if.c: New file.
44406         * modules/net_if-tests: New file.
44408 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44410         pthread: add pthread_spin_destroy
44411         * lib/pthread.in.h (pthread_spin_destroy): New function.
44413 2010-09-19  Bruno Haible  <bruno@clisp.org>
44415         gnulib-tool: Fix --help output.
44416         * gnulib-tool (func_usage): Fix help message.
44417         Reported by Reuben Thomas <rrt@sc3d.org>.
44419 2010-09-18  Jim Meyering  <meyering@redhat.com>
44421         maint.mk: avoid unexpanded \n in two diagnostics
44422         * top/maint.mk (sc_prohibit_always_true_header_tests):
44423         Don't use a literal \n in a halt=... assignment.  It would not be
44424         expanded, and the two \n bytes would appear in the diagnostic output
44425         rather than the desired newline.  Use halt=$$(printf ... instead.
44426         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
44428 2010-09-18  Bruno Haible  <bruno@clisp.org>
44430         netinet_in: Doc tweak.
44431         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
44432         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44434 2010-09-18  Jim Meyering  <meyering@redhat.com>
44436         init.sh: correct an outdated comment
44437         * tests/init.sh (create_exe_shims_):  s/function/alias/
44439         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
44440         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
44441         a file named "*.exe" is removed between the glob expansion and the
44442         processing of that oddly named file.
44444 2010-09-17  Eric Blake  <eblake@redhat.com>
44446         mirbsd: add some more support
44447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
44448         in BSD family.
44449         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
44450         devices as OpenBSD.
44451         * m4/host-os.m4 (mirbsd): Add MirBSD.
44453         tests: fix unportable assumption on sys/wait.h
44454         * tests/test-sys_wait.c (main): Relax test.
44455         * tests/test-stdlib.c (main): Likewise.
44457         init.sh: accommodate directory with no .exes
44458         * tests/init.sh: Accomodate directory containing only scripts.
44460         tests: avoid compiler warning
44461         * tests/test-stdlib.c (main): Use the variable.
44463         fdutimens, fdutimensat: update signature, again
44464         * lib/utimens.h (gl_futimens): Delete, and move signature...
44465         (fdutimens): ...here.
44466         (fdutimensat): Rearrange signature.
44467         (lutimensat): Rename variable for clarity.
44468         * lib/fdutimensat.c (fdutimensat): Update signature.
44469         * lib/utimens.c (fdutimens): Likewise.
44470         (gl_futimens): Delete.
44471         (utimens, lutimens): Update callers.
44472         * lib/futimens.c (futimens): Likewise.
44473         * tests/test-fdutimensat.c: Likewise.
44474         * tests/test-utimens.c: Likewise.
44475         * tests/test-futimens.h: Update comment.
44476         * NEWS: Mention this.
44477         Suggested by Paul Eggert.
44479 2010-09-17  Bruno Haible  <bruno@clisp.org>
44481         Take over the maintenance of some older macros from Autoconf.
44482         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
44483         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
44484         GNU Autoconf.
44485         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
44486         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
44488 2010-09-17  Eric Blake  <eblake@redhat.com>
44490         fdutimensat: drop atflag validation
44491         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
44492         with valid fd, to close a race scenario where futimens is
44493         unsupported and FILE was replaced by a symlink.
44494         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
44495         accordingly.
44496         Suggested by Paul Eggert.
44498 2010-09-16  Bruno Haible  <bruno@clisp.org>
44500         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
44501         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
44503 2010-09-16  Bruno Haible  <bruno@clisp.org>
44505         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
44506         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
44507         login_tty exists.
44508         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44510 2010-09-16  Bruno Haible  <bruno@clisp.org>
44512         login_tty: Make the replacement code work on BSD systems.
44513         * lib/login_tty.c: Include <sys/ioctl.h>.
44514         (login_tty): Use ioctl TIOCSCTTY when available.
44515         * modules/login_tty (Depends-on): Add sys_ioctl.
44516         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44518 2010-09-16  Bruno Haible  <bruno@clisp.org>
44520         login_tty: Stricter unit test.
44521         * modules/login_tty-tests (Depends-on): Add tcgetsid.
44522         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
44523         and tcgetsid() after login_tty.
44524         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44526 2010-09-16  Bruno Haible  <bruno@clisp.org>
44528         New module 'tcgetsid'.
44529         * lib/tcgetsid.c: New file.
44530         * m4/tcgetsid.m4: New file.
44531         * modules/tcgetsid: New file.
44532         * modules/termios (Depends-on): Add c++defs, warn-on-use.
44533         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
44534         GNULIB_TCGETSID, HAVE_TCGETSID.
44535         * lib/termios.in.h: Include <sys/types.h>.
44536         (tcgetsid): New declaration.
44537         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
44538         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
44539         * doc/posix-functions/tcgetsid.texi: Mention the new module.
44540         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
44542 2010-09-16  Bruno Haible  <bruno@clisp.org>
44544         Tests for module 'termios'.
44545         * modules/termios-c++-tests: New file.
44546         * modules/termios-tests: New file.
44547         * tests/test-termios-c++.cc: New file.
44548         * tests/test-termios.c: New file.
44550         New module 'termios'.
44551         * modules/termios: New file.
44552         * lib/termios.in.h: New file.
44553         * m4/termios_h.m4: New file.
44554         * doc/posix-headers/termios.texi: Mention the new module.
44556 2010-09-16  Eric Blake  <eblake@redhat.com>
44558         fdutimensat: add an atflag parameter
44559         * lib/fdutimensat.c (fdutimensat): Add new parameter.
44560         * lib/utimens.h (fdutimensat): Update prototype.
44561         * tests/test-fdutimensat.c: Adjust test to match.
44562         * NEWS: Document the change.
44563         Suggested by Paul Eggert.
44565 2010-09-16  Bruno Haible  <bruno@clisp.org>
44567         Fix typos in comments.
44568         * lib/striconveh.h: Fix typo in comment.
44569         * lib/login_tty.c (login_tty): Likewise.
44571 2010-09-15  Bruno Haible  <bruno@clisp.org>
44573         stdlib: clarify MirBSD WEXITSTATUS bug
44574         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
44575         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44577 2010-09-15  Eric Blake  <eblake@redhat.com>
44579         stdlib: work around MirBSD WEXITSTATUS bug
44580         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
44581         * modules/stdlib (Depends-on): Add sys_wait.
44582         * tests/test-sys_wait.c (main): Enhance test.
44583         * tests/test-stdlib.c (main): Likewise.
44584         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
44586         docs: mention MacOS issue with WEXITSTATUS(constant)
44587         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
44588         issue.
44589         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44591         strnlen: add tests
44592         * modules/strnlen-tests: New file.
44593         * tests/test-strnlen.c: Likewise.
44595 2010-09-14  Bruno Haible  <bruno@clisp.org>
44597         unistr/base: Avoid link errors when module 'libunistring' is also used.
44598         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
44599         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
44600         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
44601         Declare also when HAVE_LIBUNISTRING is set.
44602         Reported by Pádraig Brady <P@draigbrady.com>.
44604 2010-09-14  Eric Blake  <eblake@redhat.com>
44606         test-rawmemchr: make more robust
44607         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
44608         (Depends-on, configure.ac): Add needed prerequisites to use it.
44609         * modules/memchr-tests (Files, Depends-on, configure.ac):
44610         Likewise, to avoid implicit reliance on memchr module prereqs.
44611         * tests/test-memchr.c (main): Ensure proper masking.
44612         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
44613         reads.
44615         memchr: detect glibc Alpha bug
44616         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
44617         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
44618         Alpha.
44619         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
44620         * tests/test-memchr.c (main): Enhance test.
44621         Reported by Nelson H. F. Beebe.
44623 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44625         fts, getcwd, glob: audit for dirfd returning -1
44626         * lib/fts.c (opendir): Remove #define; no longer used.
44627         (opendirat): New arg PDIR_FD.  All callers changed.
44628         (fts_build, _opendir2): Use new opendirat to avoid the need for
44629         dirfd, or for checking whether dirfd returns a negative value.
44630         Don't use opendir; always use openat followed by fdopendir.
44631         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
44632         it.
44633         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
44634         returns -1 here.
44635         * modules/fts (Depends-on): Remove dirfd.
44636         * modules/getcwd (Depends-on): Likewise.
44638 2010-09-13  Eric Blake  <eblake@redhat.com>
44640         float: fix broken MirBSD header
44641         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
44642         * doc/posix-headers/float.texi (float.h): Document it.
44644 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44646         fts: use O_NOFOLLOW to avoid race condition when opening a directory
44647         * lib/fts.c (opendirat): New arg extra_flags.
44648         (__opendir2): Use it to avoid following symlinks when opening
44649         a directory, if symlinks are not supposed to be followed.  See
44650         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
44652         fdopendir: preserve argument fd before returning
44653         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
44654         (fdopendir_with_dup, fd_clone_opendir): New static functions.
44655         (fdopendir): Use them, arranging for FD to be open to the same
44656         directory that it was when it started.  (It might be temporarily
44657         closed while fdopendir is running, so this not thread- or
44658         signal-safe.)  Be careful to do the right thing even when file
44659         descriptors are scarce and dup fails with errno == EMFILE.  See
44660         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
44662 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
44664         regex: Pass the system regex if its only problem is 32-bit regoff_t.
44665         * NEWS: Document change.
44666         * m4/regex.m4: Disable test for regoff_t size.
44668 2010-09-13  Jim Meyering  <meyering@redhat.com>
44670         fts: don't operate on an invalid file descriptor after failed dup
44671         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
44672         negative file descriptor.
44674 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
44676         savedir: add streamsavedir, deprecate fdsavedir
44677         * NEWS: Mention deprecation of fdsavedir.
44678         * lib/savedir.c (streamsavedir): New extern function, whose name
44679         ends in "savedir" to be consistent with the others.  This differs
44680         from savedirstream in that it doesn't close its argument.  The
44681         next version of GNU tar will use this instead of fdsavedir, to
44682         avoid some race conditions and conserve file descriptors.
44683         (savedirstream): Reimplement as a wrapper around streamsavedir.
44684         (fdsavedir): Add a comment deprecating this function.  As far as
44685         I know, only GNU tar used it, and GNU tar doesn't need it any more.
44686         * lib/savedir.h (streamsavedir): New decl.
44687         (fdsavedir): Add a comment deprecating this.
44689 2010-09-10  Bruno Haible  <bruno@clisp.org>
44691         langinfo: Fix last commit.
44692         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
44693         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
44694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44696 2010-09-10  Bruno Haible  <bruno@clisp.org>
44698         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
44699         * lib/progreloc.c (O_EXEC): Define fallback.
44701 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
44703         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
44704         * NEWS: Document recent changes to fcntl-h.
44705         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
44706         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
44707         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
44708         Similarly for O_SEARCH; this last was already true, but not documented.
44709         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
44710         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
44711         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
44712         Likewise.
44713         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
44714         is zero, not whether it is defined.
44715         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
44716         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
44717         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
44719 2010-09-10  Bruno Haible  <bruno@clisp.org>
44721         langinfo, nl_langinfo: Fix for IRIX 5.3.
44722         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
44723         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
44724         HAVE_LANGINFO_YESEXPR.
44725         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
44726         HAVE_LANGINFO_YESEXPR.
44727         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
44728         HAVE_LANGINFO_T_FMT_AMPM is 0.
44729         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
44730         HAVE_LANGINFO_YESEXPR is 0.
44731         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
44732         NOEXPR.
44733         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
44734         * doc/posix-functions/nl_langinfo.texi: Likewise.
44735         Reported by Eric Blake.
44737 2010-09-10  Bruno Haible  <bruno@clisp.org>
44739         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
44740         * doc/glibc-functions/login_tty.texi: Mention the include file problem
44741         on FreeBSD 8.0 and OpenBSD 4.6.
44742         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
44743         * m4/pty_h.m4 (gl_PTY_H): Likewise.
44744         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
44745         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
44746         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
44747         ac_includes_default.
44748         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44750 2010-09-09  Eric Blake  <eblake@redhat.com>
44752         strsignal: work around NetBSD bug
44753         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
44754         * lib/string.in.h (includes): Likewise.
44755         * doc/posix-functions/strsignal.texi (strsignal): Document the
44756         bug.
44757         Reported by Nelson H. F. Beebe.
44759         gnulib-tool: work with NetBSD /bin/sh
44760         * gnulib-tool (func_cache_var, func_cache_lookup_module)
44761         (func_get_description, func_get_comment, func_get_status)
44762         (func_get_notice, func_get_applicability, func_get_filelist)
44763         (func_get_dependencies, func_get_autoconf_early_snippet)
44764         (func_get_autoconf_snippet, func_get_automake_snippet)
44765         (func_get_include_directive, func_get_link_directive)
44766         (func_get_license, func_get_maintainer, func_import): Avoid
44767         shell syntax errors from parsing syntax extensions.
44769 2010-09-09  Bruno Haible  <bruno@clisp.org>
44771         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
44772         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
44773         a reliable way to determine whether the 'alias' command works.
44775 2010-09-08  Jim Meyering  <meyering@redhat.com>
44777         init.sh: penalize a set-x-impaired shell; don't disqualify it
44778         * tests/init.sh: Too many shells corrupt application stderr when
44779         you set -x, so we can't afford to disqualify them, since at least
44780         on Irix-6.5, that would disqualify all bourne shells.
44781         Instead, use a two-pass approach.
44782         On the first pass, try to find a shell that meets the stricter
44783         condition that set -x does not corrupt stderr.
44784         If no shell meets the stricter condition, retest each candidate
44785         shell, but without that extra condition.  Finally, when
44786         VERBOSE=yes is requested and set -x might cause trouble, simply
44787         issue a warning and refrain from enabling debug output.
44789 2010-09-08  Eric Blake  <eblake@redhat.com>
44791         unsetenv: fix OpenBSD bug
44792         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
44793         * doc/posix-functions/unsetenv.texi (unsetenv): Update
44794         documentation.
44795         Reported by Jim Meyering.
44797         strtod: work around IRIX 6.5 bug
44798         * lib/strtod.c (strtod): Reparse number on shorter string if
44799         exponent parse was invalid.
44800         * tests/test-strtod.c (main): Add check for "0x1p 2".
44801         Reported by Tom G. Christensen.
44803         getopt: optimize previous patch
44804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
44805         empty variable.  Speed up awk script.
44806         Reported by Paolo Bonzini.
44808 2010-09-08  Jim Meyering  <meyering@redhat.com>
44810         test.sh: disqualify shells for which set -x corrupts stderr
44811         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
44812         and OpenBSD 4.7.  They make it so with "set -x", environment settings
44813         appear in stderr output.  For example, this command:
44814             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
44815         prints "P=1" on those two systems:
44817 2010-09-08  Bruno Haible  <bruno@clisp.org>
44819         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
44820         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
44821         commands, because some shells ignore redirections when there is an
44822         error in the command lookup.
44823         Reported by Eric Blake.
44825 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
44827         * lib/regex.h: Fix a mention of `regex_compile' (should be
44828         `re_compile_pattern').
44829         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
44830         (re_set_registers): Correct name of parameter in comment.
44832         * doc/regex.texi: Add documentation for missing syntax flags.
44833         Remove commented-out documentation of defunct syntax option
44834         RE_NO_EMPTY_ALTS.
44835         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
44836         Add documentation of re_set_registers.
44837         Document trick to re-use a pattern buffer by setting fastmap manually.
44838         Update documentation of struct re_pattern_buffer per public members.
44839         Uncomment documentation of equivalence class operators and
44840         collating symbol operators, since they are now implemented,
44841         Explain leftmost-longest matching in relation to alternatives.
44842         Tidy documentation of substring matching.
44843         Remove POSIX documentation, which is done better in
44844         glibc, and refer the reader there. Keep BSD API documentation, as
44845         that is not readily available elsewhere.
44847 2010-09-07  Eric Blake  <eblake@redhat.com>
44849         getopt: handle POSIXLY_CORRECT set but not exported
44850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
44851         export state of POSIXLY_CORRECT, due to bash set -o posix.
44852         Reported by Dustin J. Mitchell.
44854 2010-09-05  Bruno Haible  <bruno@clisp.org>
44856         gnulib-tool: Highlight the changed options.
44857         * gnulib-tool (func_usage): Display the --import, --add-import,
44858         --remove-import explanations in bold font.
44860 2010-09-06  Karl Berry  <karl@gnu.org>
44862         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
44864 2010-09-05  Bruno Haible  <bruno@clisp.org>
44866         uniwidth/width: Update comment.
44867         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
44868         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
44870 2010-09-05  Bruno Haible  <bruno@clisp.org>
44872         isinf, isnan: Relax license.
44873         * modules/isinf (License): Change from GPL to LGPL, with consent from
44874         Ben Pfaff.
44875         * modules/isnan (License): Likewise.
44876         Requested by Ludovic Courtès.
44878 2010-09-04  Bruno Haible  <bruno@clisp.org>
44880         gnulib-tool: Help migration from --import to --add-import or --update.
44881         * gnulib-tool: Emit a verbose error message when --import is used
44882         without any module name.
44884 2010-09-04  Bruno Haible  <bruno@clisp.org>
44886         Update doc about gnulib-tool.
44887         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
44888         'gnulib-tool --update' in more detail.
44889         Reported by Eric Blake.
44891 2010-09-04  Bruno Haible  <bruno@clisp.org>
44893         gnulib-tool: Change --import. New options --add/remove-import.
44894         * gnulib-tool: New options --add-import, --remove-import.
44895         (func_usage): Document them.
44896         (have_associative): Define always.
44897         (func_import): In import mode, don't merge the specified settings with
44898         the cached settings. Implement remove-import mode.
44899         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
44900         Explain when to use them versus --import.
44901         (Simple update): Use --add-import instead of --import.
44902         * NEWS: Mention the change.
44904 2010-09-04  Bruno Haible  <bruno@clisp.org>
44906         * doc/gnulib-tool.texi (Initial import): Update paragraph about
44907         separate gnulib.mk.
44909 2010-09-04  Bruno Haible  <bruno@clisp.org>
44911         gnulib-tool: Don't talk about CVS any more.
44912         * gnulib-tool (func_usage, func_import): Write "version control"
44913         instead of CVS.
44915 2010-09-04  Jim Meyering  <meyering@redhat.com>
44917         maint.mk: avoid obscure sc_copyright_check failure in coreutils
44918         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
44919         false positives (whose names may be ill-chosen) when searching
44920         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
44921         would cause a false-positive.
44923         avoid coreutils "make distcheck" failure
44924         Coreutils tests with an absolute build directory name that contains
44925         a space.  Not quoting this directory name caused a failure.
44926         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
44927         * tests/test-vc-list-files-cvs.sh: Likewise.
44929 2010-09-04  Bruno Haible  <bruno@clisp.org>
44931         gnulib-tool: Avoid error when run in a package without Makefile.am.
44932         * gnulib-tool: When collecting the m4dirs in a package that does not
44933         have a Makefile.am, eliminate those directories that contain no
44934         gnulib-cache.m4. Fix expression that counts these directories.
44936 2010-09-04  Bruno Haible  <bruno@clisp.org>
44938         update-copyright test: Improve output when perl is missing or too old.
44939         * tests/test-update-copyright.sh: Move test of Perl version down after
44940         the test whether Perl exists. Provide an explanation relating Perl's
44941         error message to Automake's SKIP: message.
44943 2010-09-04  Bruno Haible  <bruno@clisp.org>
44945         Don't augment PATH in TESTS_ENVIRONMENT.
44946         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
44947         set abs_aux_dir instead of augmenting PATH.
44948         * modules/vc-list-files-tests (Makefile.am): Likewise.
44949         * tests/test-update-copyright.sh: Augment PATH here.
44950         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
44951         path_prepend_.
44952         * tests/test-vc-list-files-git.sh: Likewise.
44954 2010-09-04  Jim Meyering  <meyering@redhat.com>
44956         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
44957         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
44959 2010-09-04  Bruno Haible  <bruno@clisp.org>
44961         strdup: Fix compilation error in C++ mode.
44962         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
44963         the macro.
44965 2010-09-04  Bruno Haible  <bruno@clisp.org>
44967         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
44968         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
44969         macro into a function.
44970         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44972 2010-09-04  Bruno Haible  <bruno@clisp.org>
44974         Set PATH_SEPARATOR the same way autoconf does.
44975         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
44976         the value of PATH_SEPARATOR the same way autoconf-generated configure
44977         scripts do.
44978         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
44979         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44981 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44983         Set PATH_SEPARATOR the same way autoconf does.
44984         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
44985         the same way autoconf-generated configure scripts do.
44986         * posix-modules: Likewise.
44988 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
44990         hash: fix safe_hasher const typo
44991         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
44992         const; otherwise, there is a type error later.
44994 2010-09-02  Jim Meyering  <meyering@redhat.com>
44996         test-update-copyright.sh: require perl 5.8.0
44997         * tests/test-update-copyright.sh: Require 5.8.0,
44998         which Tom G. Christensen has confirmed is adequate,
44999         while 5.6.1 is not.
45001 2010-09-02  Eric Blake  <eblake@redhat.com>
45003         tests: init.sh improvements for re-exec'ing with zsh
45004         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
45005         -vx through shell re-exec.
45006         Reported by Tom G. Christensen.
45008         wctype: fix typo in previous commit
45009         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
45010         Reported by Ludovic Courtès.
45012 2010-09-02  Jim Meyering  <meyering@redhat.com>
45014         test-update-copyright.sh: skip test if Perl is too old
45015         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
45016         Reported by Tom G. Christensen.
45018 2010-09-02  Bruno Haible  <bruno@clisp.org>
45020         wctype: Avoid compilation error on IRIX 6.5.30.
45021         * lib/wctype.in.h (iswblank): Declare with a replacement if
45022         REPLACE_ISWBLANK is set.
45023         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
45024         declared. Set REPLACE_ISWBLANK.
45025         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
45026         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
45027         * doc/posix-headers/wctype.texi: Likewise.
45028         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45030 2010-09-01  Bruno Haible  <bruno@clisp.org>
45032         New module 'socketlib'.
45033         * modules/socketlib: New file.
45034         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
45035         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
45036         * modules/sockets (Depends-on): Add socketlib.
45037         Suggested by Sam Steingold <sds@gnu.org>.
45039 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45041         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
45043         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
45044         when one needs search access to a directory but not read access.
45045         On systems where it is available, it works in some cases where
45046         O_RDONLY does not, namely on directories that are searchable but
45047         not readable, and which need only to be searchable.  If O_SEARCH
45048         is not available, fall back to the traditional method of using
45049         O_RDONLY.
45051         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
45052         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
45053         when opening a directory that needs only to be searchable.
45054         * lib/chdir-safer.c (chdir_no_follow): Likewise.
45055         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
45056         * lib/openat-proc.c (openat_proc_name): Likewise.
45057         * lib/openat.c (openat_needs_fchdir): Likewise.
45058         * lib/save-cwd.c (save_cwd): Likewise.
45059         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
45061 2010-08-28  Bruno Haible  <bruno@clisp.org>
45063         New module 'host-cpu-c-abi'.
45064         * modules/host-cpu-c-abi: New file.
45065         * m4/host-cpu-c-abi.m4: New file, based on part of
45066         clisp/src/m4/general.m4.
45067         Requested by Sam Steingold <sds@gnu.org>.
45069 2010-08-31  Eric Blake  <eblake@redhat.com>
45070         and Jim Meyering  <meyering@redhat.com>
45072         hash: factor, and guard against misbehaving hasher function
45073         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
45074         of table->hasher's return value.  Also protect against a hash value
45075         so large that adding it to table->bucket results in a NULL pointer.
45076         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
45077         Use it in place of open-coded check-and-abort.
45079 2010-08-30  Bruno Haible  <bruno@clisp.org>
45081         hash: silence spurious clang warning
45082         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
45083         Reported by Eric Blake.
45085 2010-08-30  Eric Blake  <eblake@redhat.com>
45087         strstr, memmem, strcasestr: avoid leaked shell message
45088         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
45089         FreeBSD.
45090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45091         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45093         tests: silence clang warning
45094         * tests/test-malloca.c (do_allocation): Avoid dead store.
45096 2010-08-29  Bruno Haible  <bruno@clisp.org>
45098         gettext: Fix recent mistake.
45099         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
45101 2010-08-29  Bruno Haible  <bruno@clisp.org>
45103         selinux-h: Offer a --without-selinux option.
45104         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
45105         --without-selinux was specified, skip all tests and define
45106         HAVE_SELINUX_SELINUX_H to 0.
45107         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
45108         set LIB_SELINUX to empty.
45109         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
45110         gl_LIBSELINUX. If --without-selinux was specified, replace
45111         selinux/context.h.
45112         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
45114 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45115             Bruno Haible  <bruno@clisp.org>
45117         Make the module 'realloc-gnu' work again on AIX and OSF/1.
45118         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
45119         of HAVE_REALLOC.
45120         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
45121         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
45122         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
45123         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
45125 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45126             Bruno Haible  <bruno@clisp.org>
45128         Make the module 'calloc-gnu' work again on AIX and OSF/1.
45129         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
45130         HAVE_CALLOC.
45131         * lib/xmalloc.c: Update accordingly.
45132         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
45133         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
45134         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
45136 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45137             Bruno Haible  <bruno@clisp.org>
45139         Make the module 'malloc-gnu' work again on AIX and OSF/1.
45140         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
45141         HAVE_MALLOC.
45142         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
45143         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
45144         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
45146 2010-08-29  Bruno Haible  <bruno@clisp.org>
45148         Update modules list.
45149         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45150         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
45151         (String handling <string.h>): Add astrxfrm.
45152         (File system functions): Add readlinkat.
45154 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45156         Tests for module 'realloc-gnu'.
45157         * modules/realloc-gnu-tests: New file.
45158         * tests/test-realloc-gnu.c: New file.
45160         Tests for module 'calloc-gnu'.
45161         * modules/calloc-gnu-tests: New file.
45162         * tests/test-calloc-gnu.c: New file.
45164         Tests for module 'malloc-gnu'.
45165         * modules/malloc-gnu-tests: New file.
45166         * tests/test-malloc-gnu.c: New file.
45168 2010-08-28  Bruno Haible  <bruno@clisp.org>
45170         Rename module 'realloc' -> 'realloc-gnu'.
45171         * modules/realloc-gnu: New file, copied from modules/realloc.
45172         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
45173         obsolete.
45174         * modules/mgetgroups (Depends-on): Update.
45175         * doc/posix-functions/realloc.texi: Update.
45176         * NEWS: Mention the change.
45178         Rename module 'calloc' -> 'calloc-gnu'.
45179         * modules/calloc-gnu: New file, copied from modules/calloc.
45180         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
45181         obsolete.
45182         * doc/posix-functions/calloc.texi: Update.
45183         * NEWS: Mention the change.
45185         Rename module 'malloc' -> 'malloc-gnu'.
45186         * modules/malloc-gnu: New file, copied from modules/malloc.
45187         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
45188         obsolete.
45189         * modules/argp (Depends-on): Update.
45190         * modules/regex (Depends-on): Update.
45191         * doc/posix-functions/malloc.texi: Update.
45192         * NEWS: Mention the change.
45194 2010-08-28  Eric Blake  <eblake@redhat.com>
45196         pread, pwrite: add missing dependency
45197         * modules/pread (Depends-on): Add extensions.
45198         * modules/pwrite (Depends-on): Likewise.
45200 2010-08-28  Bruno Haible  <bruno@clisp.org>
45202         unistr/u*-strchr: Fix tests dependencies.
45203         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
45204         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
45205         Reported by Ian Beckwith <ianb@erislabs.net>.
45207 2010-08-28  Bruno Haible  <bruno@clisp.org>
45209         read-file: Don't occupy too much unused memory.
45210         * lib/read-file.c (fread_file): Shrink the buffer at the end.
45212 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
45213             Eric Blake  <eblake@redhat.com>
45214             Bruno Haible  <bruno@clisp.org>
45216         read-file: Avoid memory reallocations with regular files.
45217         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
45218         (fread_file): With regular files, use the remaining length as the
45219         initial buffer size.  Check against overflow.
45220         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
45221         sys_stat.
45223 2010-08-28  Bruno Haible  <bruno@clisp.org>
45225         ftello: Relax license.
45226         * modules/ftello (License): Relax to LGPLv2+.
45227         Reported by Eric Blake.
45229 2010-08-28  Bruno Haible  <bruno@clisp.org>
45231         Avoid relocwrapper link errors due to gnulib replacement functions.
45232         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
45233         function.
45234         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45236 2010-08-28  Bruno Haible  <bruno@clisp.org>
45238         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
45239         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
45240         defined.
45241         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
45242         Suggested by Eric Blake.
45244 2010-08-28  Bruno Haible  <bruno@clisp.org>
45246         sys_socket, netdb: Ensure socklen_t gets defined.
45247         * modules/sys_socket (Depends-on): Add socklen.
45248         * modules/netdb (Depends-on): Likewise.
45249         * modules/getaddrinfo (Depends-on): Remove socklen.
45250         * modules/getsockopt (Depends-on): Likewise.
45251         * modules/setsockopt (Depends-on): Likewise.
45252         * tests/test-sys_socket.c: Check that socklen_t is defined.
45253         * tests/test-netdb.c: Likewise.
45254         * m4/socklen.m4: Update comments.
45255         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45257 2010-08-27  Eric Blake  <eblake@redhat.com>
45259         login_tty: add missing dependency
45260         * modules/login_tty (Depends-on): Add pty.
45262 2010-08-26  Eric Blake  <eblake@redhat.com>
45264         lib-symbol-versions: fix m4 quoting
45265         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
45266         format for AC_LINK_IFELSE.
45268         glob: fix compile test
45269         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
45271         btowc: fix missing file
45272         * modules/btowc (Files): Also ship locale-fr.m4.
45274         lseek: fix link test
45275         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
45276         AC_LINK_IFELSE.
45278         include_next: silence autoconf 2.68 warning
45279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
45280         AC_COMPILE_IFELSE as special.
45281         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
45282         autoconf < 2.68.
45284         acl: fix compilation test
45285         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
45286         AC_COMPILE_IFELSE.
45288 2010-08-26  Bruno Haible  <bruno@clisp.org>
45290         Modernize AC_TRY_RUN invocations.
45291         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
45292         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45293         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
45294         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
45295         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
45296         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
45297         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
45298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45299         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45300         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45301         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
45302         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45303         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
45304         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
45306         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45307         gl_MBRLEN_NUL_RETVAL): Likewise.
45308         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45309         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45310         Likewise.
45311         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45312         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45313         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
45314         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
45315         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
45316         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
45317         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
45318         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45319         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
45320         Likewise.
45321         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45322         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
45323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45324         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45325         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45326         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
45327         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45328         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
45329         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45332 2010-08-26  Bruno Haible  <bruno@clisp.org>
45334         Modernize AC_TRY_LINK invocations.
45335         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
45336         AC_TRY_LINK.
45337         * m4/argp.m4 (gl_ARGP): Likewise.
45338         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45339         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45340         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45341         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45342         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45343         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
45344         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45345         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45346         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45347         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45348         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45349         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
45350         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
45351         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45352         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45353         * m4/hostent.m4 (gl_HOSTENT): Likewise.
45354         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45355         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
45356         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45357         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
45358         Likewise.
45359         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
45360         Likewise.
45361         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
45362         Likewise.
45363         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45364         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
45365         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
45366         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45367         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45368         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
45369         * m4/servent.m4 (gl_SERVENT): Likewise.
45370         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45371         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45372         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45373         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45374         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45375         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45376         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45378         * modules/tsearch-tests (configure.ac): Likewise.
45380 2010-08-26  Bruno Haible  <bruno@clisp.org>
45382         Modernize AC_TRY_COMPILE invocations.
45383         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
45384         AC_TRY_COMPILE.
45385         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
45386         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
45387         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45388         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45389         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45390         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45391         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45392         * m4/lock.m4 (gl_LOCK): Likewise.
45393         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
45394         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45395         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
45396         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
45397         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45398         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
45399         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45400         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
45401         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45402         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45403         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45404         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45405         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
45406         extraneous semicolon.
45408 2010-08-26  Jim Meyering  <meyering@redhat.com>
45410         stat-time: relax license LGPL
45411         * modules/stat-time (License): Change from GPL to LGPL,
45412         with consent from all contributors, for use in libguile.
45413         Requested by Ludovic Courtès.
45415 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
45417         poll: return immediately on POLLHUP.
45418         * lib/poll.c (poll): Always set timeout before wait_timeout is
45419         computed.
45421 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45423         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
45424         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
45425         rmdir ("dir/.//"), unlinkat.
45427 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45429         stdbool: avoid spurious failure with modern xlc
45430         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45432 2010-08-24  Bruno Haible  <bruno@clisp.org>
45434         getloadavg: simplify code
45435         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
45436         gl_have_func. Update comments.
45438 2010-08-24  Eric Blake  <eblake@redhat.com>
45440         getloadavg: don't define SVR4 on cygwin
45441         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
45442         only define SVR4 when -lkvm is required.
45443         Reported by Yaakov Selkowitz.
45445 2010-08-24  Bruno Haible  <bruno@clisp.org>
45447         priv-set: fix comment
45448         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
45450 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45452         priv-set: fix comments
45453         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
45454         to match code, as suggested by David Bartley in:
45455         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
45457 2010-08-23  Eric Blake  <eblake@redhat.com>
45459         stdbool: avoid rejecting clang
45460         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45461         * tests/test-stdbool.c: Enable more tests if using the system
45462         <stdbool.h> instead of the gnulib replacement.
45463         (main): Move xlc bug test to a runtime test for all compilers.
45464         Reported by Anders Kaseorg.
45466         argz: fix shell quoting issue
45467         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
45468         Reported by Charles Wilson.
45470 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
45471             Erik Faye-Lund <kusmabite@gmail.com>
45473         poll, select: handle ERROR_BROKEN_PIPE.
45474         * lib/poll.c (win32_compute_revents): Return POLLHUP when
45475         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
45476         * lib/select.c (win32_compute_revents): Do not mark a pipe
45477         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
45479 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
45481         fts: allow compilation with C++
45482         * lib/fts_.h: Specify extern "C" linkage with C++.
45484 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45486         Fix gnulib-tool sed script de-commentation for AIX sed.
45487         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
45488         sed.
45490 2010-08-17  Eric Blake  <eblake@redhat.com>
45492         test-stddef: test for (some) offsetof bugs
45493         * tests/test-stddef.c: Enhance test to ensure correct type of
45494         offsetof.
45495         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
45496         that we are not fixing at this time.
45498 2010-08-15  Bruno Haible  <bruno@clisp.org>
45500         stpncpy: Allow stpncpy to be defined as a macro.
45501         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
45502         if it's already correctly declared.
45503         * lib/string.in.h (stpncpy): Undefine before redefining.
45504         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
45506 2010-08-14  Bruno Haible  <bruno@clisp.org>
45508         Rename module 'memxfrm' to 'amemxfrm'.
45509         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
45510         (amemxfrm): Renamed from memxfrm.
45511         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
45512         (amemxfrm): Renamed from memxfrm.
45513         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
45514         * NEWS: Mention the change.
45515         * MODULES.html.sh (String handling <string.h>): Update.
45516         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
45517         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
45518         * lib/unicase/u16-casexfrm.c: Likewise.
45519         * lib/unicase/u32-casexfrm.c: Likewise.
45520         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
45521         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
45522         * lib/uninorm/u16-normxfrm.c: Likewise.
45523         * lib/uninorm/u32-normxfrm.c: Likewise.
45524         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
45525         memxfrm.
45526         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
45527         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
45528         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
45529         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
45530         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
45531         Suggested by Paul Eggert.
45533 2010-08-14  Bruno Haible  <bruno@clisp.org>
45535         Tests for module 'astrxfrm'.
45536         * modules/astrxfrm-tests: New file.
45537         * tests/test-astrxfrm.c: New file.
45539         New module 'astrxfrm'.
45540         * lib/astrxfrm.h: New file.
45541         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
45542         * modules/astrxfrm: New file.
45544 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
45546         regex: Tweak doc.
45547         * doc/regex.texi (Overview): Don't mention regex.c.
45548         (GNU Regular Expression Compiling): Likewise.
45549         (Match-end-of-line Operator): Mention 'not_eol'.
45551 2010-08-14  Brian Gough  <bjg@gnu.org>
45552             Bruno Haible  <bruno@clisp.org>
45554         git-merge-changelog: add doc relating to use with bzr and hg.
45555         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
45557 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
45559         pthread: fix pthread.h creation for srcdir != builddir
45560         * modules/pthread (Makefile.am): Fix the rule to work also in a
45561         non-srcdir build.
45563 2010-08-13  Karl Berry  <karl@gnu.org>
45565         * doc/regex.texi (Predefined Syntaxes): @smallexample.
45566         * doc/posix-*/*: force line break before @url of POSIX
45567         specifications.
45568         Suggested by Werner Lemberg.
45570 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45572         strtod: fix const diagnostic
45573         * lib/strtod.c (strtod): Don't assign const char * to char *,
45574         as this elicits a warning from GCC when warnings are enabled.
45576 2010-08-10  Pádraig Brady  <P@draigbrady.com>
45577         and Eric Blake  <eblake@redhat.com>
45579         copy-acl: ignore ENOTSUP on HP-UX
45580         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
45581         so that it is available for HP-UX.
45582         * lib/copy-acl.c (qcopy_acl): Use it.
45583         Reported by Patrick M. Callahan.
45585 2010-08-10  Eric Blake  <eblake@redhat.com>
45587         open, chown: relax license
45588         * modules/open (License): Change to LGPLv2+, with consent by all
45589         authors, for use in augeas.
45590         * modules/chown (License): Likewise.
45591         * modules/lchown (Likewise): Likewise.
45592         Requested by Adam Stokes.
45594 2010-08-09  Karl Berry  <karl@gnu.org>
45596         * build-aux/ar-lib: new file, import from Automake.
45597         * config/srclist.txt: autocheck for updates.
45599 2010-08-09  Eric Blake  <eblake@redhat.com>
45601         readlinkat: adjust client modules
45602         * modules/areadlinkat (Depends-on): Use readlinkat, not
45603         symlinkat.
45604         * modules/areadlinkat-with-size (Depends-on): Likewise.
45606         mknod: be more vocal about danger of running tests as root
45607         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
45608         root, since that is just asking for problems.
45609         Suggested by Bruno Haible, based on a report by Rainer Tammer.
45611         readlinkat: split into its own module
45612         * modules/symlinkat: Split readlinkat...
45613         * modules/readlinkat: ...into separate module.
45614         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
45615         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
45616         * lib/symlinkat.c (readlinkat): Move...
45617         * lib/readlinkat.c: ...into new file.
45618         * modules/symlinkat-tests: Split readlinkat test...
45619         * modules/readlinkat-tests: ...into separate module.
45620         * tests/test-symlinkat.c: Split...
45621         * tests/test-readlinkat.c: ...into new file.
45622         * NEWS: Document the split.
45623         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45624         * lib/unistd.in.h (readlinkat): Likewise.
45625         Suggested by Bruno Haible.
45627 2010-08-08  Bruno Haible  <bruno@clisp.org>
45629         memxfrm: Speed up.
45630         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
45631         that usually only one call to strxfrm is necessary for each string
45632         part.
45633         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45635 2010-08-07  Karl Berry  <karl@gnu.org>
45637         * doc/posix-headers/limits.texi,
45638         * doc/posix-functions/malloc.texi,
45639         * doc/posix-functions/strsignal.texi: missing @item.
45640         * doc/ld-version-script.texi: spurious leading i.
45641         * doc/regex.texi (Interval Operators): no commas inside @var.
45643 2010-08-01  Bruno Haible  <bruno@clisp.org>
45645         Integrate the regex documentation.
45646         * doc/gnulib.texi: Define 'cn' index.
45647         (Regular expressions): New a chapter that includes regex.texi and
45648         regexprops-generic.texi.
45649         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
45650         syntax.
45652         Whitespace cleanup.
45653         * doc/regex.texi: Remove trailing spaces.
45655         Add regex documentation.
45656         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
45657         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
45658         Written by Kathy A. Hargreaves and Karl Berry.
45660 2010-08-01  Bruno Haible  <bruno@clisp.org>
45662         link: Update documentation.
45663         * doc/posix-functions/link.texi: Update regarding Solaris.
45665 2010-07-31  Bruno Haible  <bruno@clisp.org>
45667         Update modules list.
45668         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
45669         (String handling <string.h>): Add memcmp2, memxfrm.
45670         (Container data structures): Add xlist, xsublist, xoset.
45671         (Core language properties): Add alignof, unused-parameter.
45672         (Process control, Numeric conversion functions <stdlib.h>): Renamed
45673         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
45674         (Unibyte characters <ctype.h>): New section.
45675         (String handling <string.h>): New section.
45676         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
45677         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
45678         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
45679         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
45680         tan, tanh, tanl, y0, y1, yn.
45681         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
45682         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
45683         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
45684         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
45685         unlockpt, vdprintf, vdprintf-posix.
45686         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
45687         (File system functions): Add concat-filename, sys_file, sys_ioctl,
45688         xconcat-filename.
45689         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
45690         getdtablesize, pipe2, pipe2-safer.
45691         (Security): New section.
45692         (Networking functions): Add accept4.
45693         (Signal handling): Add sigpipe.
45694         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
45695         mbmemcasecoll.
45696         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
45697         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
45698         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
45699         pipe-filter-ii.
45700         (Misc): Add argp-version-etc, login_tty, parse-duration.
45702 2010-07-31  Bruno Haible  <bruno@clisp.org>
45704         Improve doc in MODULES.html.
45705         * modules/linkat (Description): Add the word "function".
45706         * modules/mkfifo (Description): Likewise.
45707         * modules/mknod (Description): Likewise.
45708         * modules/remove (Description): Likewise.
45709         * modules/renameat (Description): Likewise.
45710         * modules/stat (Description): Likewise.
45711         * modules/symlink (Description): Likewise.
45712         * modules/unlink (Description): Likewise.
45714 2010-07-31  Bruno Haible  <bruno@clisp.org>
45716         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
45717         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
45718         option --enable/disable-c++ instead of --enable/disable-cxx.
45719         * NEWS: Mention the change.
45721 2010-07-31  Bruno Haible  <bruno@clisp.org>
45723         readlink, areadlink: Relax test a bit.
45724         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
45725         alternative to ENOTDIR.
45726         * tests/test-areadlink.h (test_areadlink): Likewise.
45727         Reported by Rainer Tammer.
45729 2010-07-31  Bruno Haible  <bruno@clisp.org>
45731         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
45732         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
45733         character, perform the search using U_STRCHR.
45734         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
45735         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
45736         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
45737         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
45738         Suggested by Paolo Bonzini.
45740 2010-07-31  Bruno Haible  <bruno@clisp.org>
45742         unistr/u*-strstr: Fix dependencies.
45743         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
45744         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
45745         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
45747 2010-07-31  Bruno Haible  <bruno@clisp.org>
45749         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
45750         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
45751         the beginning of the loop.
45752         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
45753         cases in 'switch' statement.
45755         unistr/u8-strchr: Fix several bugs.
45756         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
45757         the string. When not found, return NULL, not a pointer near the end.
45759         More tests for unistr/u8-strchr.
45760         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
45761         that the function does not read past the first occurrence of the byte
45762         being searched.
45763         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
45764         * tests/unistr/test-u16-strchr.c (main): New function.
45765         * tests/unistr/test-u32-strchr.c (main): New function.
45767 2010-07-31  Bruno Haible  <bruno@clisp.org>
45769         posix-modules: Ignore backup files of documentation files.
45770         * posix-modules: grep only through files named *.texi.
45772 2010-07-31  Bruno Haible  <bruno@clisp.org>
45774         symlinkat: Fix documentation.
45775         * doc/posix-functions/readlinkat.texi: Fix module name.
45777 2010-07-31  Bruno Haible  <bruno@clisp.org>
45779         fchownat: Replace also when chown has the trailing slash bug.
45780         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
45781         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
45782         introduced on 2010-04-10.
45783         Reported by Rainer Tammer.
45785 2010-07-31  Bruno Haible  <bruno@clisp.org>
45787         linkat: Work around AIX 7.1 bug.
45788         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
45789         whether linkat handles trailing slash correctly. If not, replace linkat
45790         and define LINKAT_TRAILING_SLASH_BUG.
45791         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
45792         check whether (fd1,file1) points to a directory if file1 or file2 ends
45793         in a slash. Code taken from lib/link.c.
45794         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
45795         Reported by Rainer Tammer.
45797 2010-07-31  Bruno Haible  <bruno@clisp.org>
45799         Correctly determine whether pow is available in libc on AIX 7 with xlc.
45800         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
45801         This disables an xlc optimization that was causing wrong test results.
45802         Reported by Rainer Tammer.
45804 2010-07-31  Bruno Haible  <bruno@clisp.org>
45806         iconv: Work around AIX 6.1..7.1 bug.
45807         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
45808         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
45809         cross-compiling, guess no on all versions of AIX.
45810         Reported by Rainer Tammer.
45812 2010-07-31  Bruno Haible  <bruno@clisp.org>
45814         readlink: Relax test a bit.
45815         * tests/test-readlink.h (test_readlink): Allow different errno value
45816         when readlink is called with a file name that ends in / and refers to
45817         a file.
45818         Suggested by Eric Blake.
45819         Reported by Rainer Tammer.
45821 2010-07-31  Bruno Haible  <bruno@clisp.org>
45823         copysign: Does not require -lm on glibc systems.
45824         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
45825         gl_COMMON_DOUBLE_MATHFUNC.
45826         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
45828 2010-07-31  Bruno Haible  <bruno@clisp.org>
45830         duplocale: Work around AIX 7.1 bug.
45831         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
45832         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
45833         * lib/duplocale.c (rpl_duplocale): Update comment.
45834         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
45835         Reported by Rainer Tammer.
45837 2010-07-30  Bruno Haible  <bruno@clisp.org>
45839         dirfd: Avoid link error on AIX 7.1.
45840         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
45841         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
45842         exist, set REPLACE_DIRFD.
45843         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
45844         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
45845         * doc/posix-functions/dirfd.texi: Update.
45846         Reported by Rainer Tammer.
45848 2010-07-30  Eric Blake  <eblake@redhat.com>
45850         strtod: next round of AIX fixes
45851         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
45852         exponent.
45853         * tests/test-strtod.c (main): Enhance tests.
45854         * doc/posix-functions/strtod.texi (strtod): Document next bug.
45855         Reported by Rainer Tammer.
45857         futimens: fix configure check
45858         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
45859         Reported by Bruno Haible.
45861 2010-07-30  Bruno Haible  <bruno@clisp.org>
45863         getline: Update regarding AIX.
45864         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
45865         Reported by Rainer Tammer.
45867 2010-07-30  Bruno Haible  <bruno@clisp.org>
45869         wcwidth: Drop replacement on AIX 7.
45870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
45871         AIX 7.
45872         Reported by Rainer Tammer.
45874 2010-07-30  Bruno Haible  <bruno@clisp.org>
45876         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
45877         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
45878         a 'char *'.
45879         Reported by Rainer Tammer.
45881 2010-07-30  Bruno Haible  <bruno@clisp.org>
45883         unlink: Update regarding AIX.
45884         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
45885         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
45886         Reported by Rainer Tammer.
45888 2010-07-30  Bruno Haible  <bruno@clisp.org>
45890         symlink: Update regarding AIX.
45891         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
45892         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
45893         Reported by Rainer Tammer.
45895 2010-07-30  Bruno Haible  <bruno@clisp.org>
45897         strndup: Update regarding AIX.
45898         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
45899         AIX 7.
45900         Reported by Rainer Tammer.
45902 2010-07-30  Bruno Haible  <bruno@clisp.org>
45904         stat: Update regarding AIX.
45905         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
45906         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
45907         Reported by Rainer Tammer.
45909 2010-07-30  Bruno Haible  <bruno@clisp.org>
45911         truncl: Fix autoconf test.
45912         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
45913         whether truncl works.
45914         Reported by Rainer Tammer.
45916 2010-07-30  Bruno Haible  <bruno@clisp.org>
45918         round: Update regarding AIX.
45919         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
45920         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
45921         Reported by Rainer Tammer.
45923 2010-07-30  Bruno Haible  <bruno@clisp.org>
45925         rename: Update regarding AIX.
45926         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
45927         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
45928         Reported by Rainer Tammer.
45930 2010-07-30  Bruno Haible  <bruno@clisp.org>
45932         printf.m4: Update regarding AIX.
45933         * m4/printf.m4: Update comments regarding AIX.
45934         Reported by Rainer Tammer.
45936 2010-07-30  Bruno Haible  <bruno@clisp.org>
45938         iconv: Update regarding AIX.
45939         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
45940         AIX 7.
45941         Reported by Rainer Tammer.
45943 2010-07-30  Bruno Haible  <bruno@clisp.org>
45945         getopt: Update regarding AIX.
45946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
45947         no on AIX.
45948         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
45949         Reported by Rainer Tammer.
45951 2010-07-30  Bruno Haible  <bruno@clisp.org>
45953         ldexpl; Update regarding AIX.
45954         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
45955         on AIX 7.
45956         Reported by Rainer Tammer.
45958 2010-07-30  Bruno Haible  <bruno@clisp.org>
45960         frexpl: Update regarding AIX.
45961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
45962         on AIX 7.
45963         Reported by Rainer Tammer.
45965 2010-07-30  Bruno Haible  <bruno@clisp.org>
45967         open, fopen: Update regarding AIX.
45968         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
45969         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
45970         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
45971         * doc/posix-functions/fopen.texi: Likewise.
45972         Reported by Rainer Tammer.
45974 2010-07-30  Bruno Haible  <bruno@clisp.org>
45976         chown: Update doc regarding AIX.
45977         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
45978         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
45979         Reported by Rainer Tammer.
45981 2010-07-30  Eric Blake  <eblake@redhat.com>
45983         strtod: fix bug in replacement function on AIX
45984         * lib/strtod.c (strtod): Special case broken "0x" parse in
45985         underlying strtod.
45986         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
45987         * doc/posix-functions/strtod.texi (strtod): Likewise.
45988         Reported by Rainer Tammer.
45990 2010-07-30  Bruno Haible  <bruno@clisp.org>
45992         mbrlen: Fix cross-compilation guess for AIX.
45993         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
45994         guess. Leftover from 2008-12-22.
45996 2010-07-30  Bruno Haible  <bruno@clisp.org>
45998         mbrtowc: Fix cross-compilation guess for AIX.
45999         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
46000         guess. Leftover from 2008-12-21.
46002 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
46004         init.sh: work around trap limitation of some shells
46005         * tests/init.sh (setup_): Move exit trap outside of shell function.
46007 2010-07-29  Eric Blake  <eblake@redhat.com>
46009         strtod: aid debugging
46010         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
46011         understanding why strtod is rejected.
46013 2010-07-28  Bruno Haible  <bruno@clisp.org>
46015         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
46016         * lib/unistr/u8-chr.c: Include <string.h>.
46017         * tests/unistr/test-u8-chr.c: Likewise.
46018         * tests/unistr/test-u16-chr.c: Likewise.
46019         * tests/unistr/test-u32-chr.c: Likewise.
46020         * tests/unistr/test-u8-strchr.c: Likewise.
46021         * tests/unistr/test-u16-strchr.c: Likewise.
46022         * tests/unistr/test-u32-strchr.c: Likewise.
46023         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
46024         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
46025         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
46026         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
46028 2010-07-28  Bruno Haible  <bruno@clisp.org>
46030         Use spaces for indentation, not tabs.
46031         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
46033 2010-07-27  Bruno Haible  <bruno@clisp.org>
46035         mbspcasecmp: Fix function specification.
46036         * lib/string.in.h (mbspcasecmp): Fix specification comment.
46037         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
46038         Reported by Eric Blake <eblake@redhat.com>.
46040 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
46042         timespec: use cast and not conditional, as truncation isn't possible
46043         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
46044         instead of a conditional.  Comment about the situation in more detail.
46045         This undoes most of the 2009-10-29 patch.
46047 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
46049         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
46050         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
46051         * lib/unistr/u8-strchr.c: Likewise.
46052         * modules/unistr/u8-chr: Depend on memchr.
46054         unistr/u*-strchr: add tests
46055         * modules/unistr/u8-strchr-tests: New file.
46056         * modules/unistr/u16-strchr-tests: New file.
46057         * modules/unistr/u32-strchr-tests: New file.
46058         * tests/unistr/test-strchr.h: New file.
46059         * tests/unistr/test-u8-strchr.c: New file.
46060         * tests/unistr/test-u16-strchr.c: New file.
46061         * tests/unistr/test-u32-strchr.c: New file.
46063         unistr/u*-chr: test multibyte sequences more
46064         * tests/unistr/test-chr.h: Do complete testing of the characters in the
46065         test vector.
46066         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
46067         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
46068         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
46070         unistr/u*-chr: test multibyte sequences
46071         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
46073         unistr/u*-chr: prepare for multibyte tests
46074         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
46075         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
46076         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
46077         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
46078         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
46079         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
46081 2010-07-18  Bruno Haible  <bruno@clisp.org>
46083         unistr/u8-strchr: Optimize non-ASCII argument case.
46084         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
46085         because the first byte often matches anyway.
46086         Reported by Pádraig Brady <P@draigbrady.com>.
46088 2010-07-15  Karl Berry  <karl@gnu.org>
46090         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
46092 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
46094         getcwd: on Solaris, work better if ancestors are inaccessible
46095         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
46096         buffer and size, try again with a large buffer.  This works better
46097         on Solaris, since its getcwd succeeds even if the path to the root
46098         is inaccessible, and this is helpful in common cases such as .zfs
46099         hidden directories.  Problem reported by J Chapman Flack in
46100         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
46101         Use system getcwd if it's declared, not merely if it's partly
46102         working; use the partly-working test only to avoid needless effort
46103         if the system getcwd fails.
46104         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
46105         comment that was already obsolete and is now even more obsolete.
46106         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
46107         now might call strdup.
46109 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
46111         pthread: Add enough so that coreutils/src/sort.c compiles.
46112         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
46113         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
46114         gnulib. Include <sched.h> and <time.h>, as per POSIX.
46115         Include <sys/types.h>, in case it defines pthread_t.
46116         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
46117         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
46118         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
46119         (pthread_rwlockattr_t, pthread_spinlock_t):
46120         New typedefs, if HAVE_PTHREAD_T is not defined.
46121         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
46122         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
46123         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
46124         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
46125         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
46126         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
46127         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
46128         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
46129         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
46130         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
46131         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
46132         New macros.
46133         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
46134         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
46135         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
46136         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
46137         (pthread_spin_unlock): New dummy functions.
46138         (pthread_create): Return EAGAIN; don't set errno.
46139         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
46140         require AC_C_INLINE.
46141         * modules/pthread (Depends-on): Add sched, time.
46142         (pthread.h): Use AM_V_GEN.
46144 2010-07-13  Bruno Haible  <bruno@clisp.org>
46146         striconveh: Don't malloc memory if the result buffer is sufficient.
46147         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
46148         buffer if its size is sufficient.
46149         Reported by Ludovic Courtès <ludo@gnu.org>.
46151 2010-07-13  Bruno Haible  <bruno@clisp.org>
46153         strtod: Add safety check.
46154         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
46156 2010-07-12  Bruno Haible  <bruno@clisp.org>
46158         Unify tests that set gl_cv_func_ldexpl_no_libm.
46159         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
46160         gl_FUNC_LDEXPL.
46161         (gl_FUNC_LDEXPL): Invoke it.
46162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46164 2010-07-12  Bruno Haible  <bruno@clisp.org>
46166         Unify tests that set gl_cv_func_ldexp_no_libm.
46167         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
46168         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
46169         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
46170         (configure.ac): Simply invoke gl_FUNC_LDEXP.
46171         * modules/strtod (Files): Add m4/ldexp.m4.
46173 2010-07-12  Bruno Haible  <bruno@clisp.org>
46175         Unify tests that set gl_cv_func_frexpl_no_libm.
46176         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
46177         gl_FUNC_FREXPL_NO_LIBM.
46178         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
46179         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
46181 2010-07-12  Bruno Haible  <bruno@clisp.org>
46183         Unify tests that set gl_cv_func_frexp_no_libm.
46184         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
46185         gl_FUNC_FREXP_NO_LIBM.
46186         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
46187         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
46189 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46191         memcoll: clarify sizes versus lengths, document better, and tweak perf
46192         * lib/memcoll.c (strcoll_loop, memcoll0):
46193         Improve quality of descriptive comments.  Name variables
46194         consistently as to whether they are lengths (which do not include
46195         terminating null) versus sizes (which do).
46196         * lib/xmemcoll.c (xmemcoll0): Likewise.
46197         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
46198         returned when s1size == 0; this is easier to compile and saves
46199         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
46201 2010-07-12  Bruno Haible  <bruno@clisp.org>
46203         Tests for module '_Exit'.
46204         * modules/_Exit-tests: New file.
46205         * tests/test-_Exit.sh: New file.
46206         * tests/test-_Exit.c: New file.
46208         New module '_Exit'.
46209         * lib/stdlib.in.h (__attribute__): New macro.
46210         (_Exit): New declaration.
46211         * lib/_Exit.c: New file.
46212         * m4/_Exit.m4: New file.
46213         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
46214         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
46215         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
46216         * modules/_Exit: New file.
46217         * tests/test-stdlib-c++.cc (_Exit): Check signature.
46218         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
46220 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46222         strtod: make it more-accurate typically, and don't require libm
46223         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
46224         Include limits.h.  Don't include string.h.
46225         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
46226         (locale_isspace): New function, so that no casts are needed to
46227         check whether *s is a space.
46228         (ldexp): Provide an unused dummy if not available.
46229         (scale_radix_exp, parse_number, underlying_strtod): New functions.
46230         (strtod): Use them.  This implementation prefers to use the
46231         underlying strtod if available, falling back on our own code
46232         only to fix known bugs.  This is more likely to produce an
46233         accurate result.  Also, it avoids the use of libm functions.
46234         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
46235         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
46236         was absent, but it caused a test failure with coreutils.
46237         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
46238         with libm.
46239         * modules/strtod (Makefile.am, Link): libm is no longer needed.
46240         * modules/strtod-tests (Makefile.am): Likewise.
46242 2010-07-11  Pádraig Brady  <P@draigBrady.com>
46243             Bruno Haible  <bruno@clisp.org>
46245         unistr/u8-strchr: Optimize ASCII argument case.
46246         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
46248 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46250         (x)memcoll: minor tweaks
46251         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
46252         is after the type that it qualifies.
46253         (memcoll0): Likewise.
46254         * lib/memcoll.h (memcoll0): Likewise.
46255         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
46256         * lib/xmemcoll.h (xmemcoll0): Likewise.
46257         * lib/memcoll.c (memcoll0): Correct the comment.  This function
46258         differs from memcoll in that the NUL byte is part of the argument.
46259         Omit the abort-checks, as performance is a real issue here.  Plus,
46260         the checks were wrong anyway (an off-by-one error).  Omit local
46261         variable 'diff', as it's a bit clearer that way.
46262         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
46263         no longer needed.
46265 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
46267         (x)memcoll: speedup when input is known to be NUL delimited
46268         * lib/memcoll.c: Include stdlib.
46269         (memcoll0): New function.
46270         (strcoll_loop): New function, refactored for use in both memcoll
46271         and memcoll0.
46272         * lib/memcoll.h (memcoll0): Add prototype.
46273         * lib/xmemcoll.c (xmemcoll0): New function.
46274         (collate_error): New function, refactored for use in both xmemcoll
46275         and xmemcoll0.
46276         * lib/xmemcoll.h (xmemcoll0): Add prototype.
46277         * m4/memcoll.m4: add inline invocation.
46279 2010-07-06  Pádraig Brady  <P@draigBrady.com>
46281         * build-aux/bootstrap: Remove any local translations
46282         from the translation project synchronization directory,
46283         so that local only translations are not distributed.
46285 2010-07-04  Bruno Haible  <bruno@clisp.org>
46287         fsusage: Clarify which code applies to which platforms.
46288         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
46289         platform.
46290         * lib/fsusage.c (get_fs_usage): Likewise.
46292 2010-07-04  Bruno Haible  <bruno@clisp.org>
46294         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
46295         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
46296         Reported by Martin Lambers <marlam@marlam.de>.
46298 2010-07-04  Jim Meyering  <meyering@redhat.com>
46300         hash: once again explicitly disallow insertion of NULL
46301         * lib/hash.c (hash_insert0): Reinstate just-removed test:
46302         inserting a NULL pointer cannot work with these functions.
46303         Add a comment with details.
46304         This reverts part of the 2010-07-01 commit, 5bef1a35
46305         "hash: extend module to deal with non-pointer keys".
46307 2010-07-01  Bruno Haible  <bruno@clisp.org>
46309         stdbool: Update doc.
46310         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
46311         Info from Christian Weisgerber <naddy@mips.inka.de>.
46313 2010-07-01  Jim Meyering  <meyering@redhat.com>
46315         hash: extend module to deal with non-pointer keys
46316         * lib/hash.c (hash_insert0): New interface, much like hash_insert
46317         but that allows insertion of non-pointer entries.
46318         Do not disallow an ENTRY value of NULL.
46319         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
46320         * lib/hash.h (hash_insert0): Declare.
46322 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
46324         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
46325         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
46326         not present (i.e. with autoconf 2.59 and when using gettextize, not
46327         gnulib), require AC_GNU_SOURCE instead.
46329 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
46331         idpriv-drop: Fix tests.
46332         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
46333         not to the test-idpriv-droptemp program.
46335 2010-06-29  Bruno Haible  <bruno@clisp.org>
46337         string: Fix syntax error with g++ 2.96.
46338         * lib/string.in.h (__pure__): Remove definition.
46339         (_GL_ATTRIBUTE_PURE): New macro.
46340         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
46341         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
46342         Reported by Christian Weisgerber <naddy@mips.inka.de>.
46344 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
46346         unitypes: Fix bug introduced on 2010-05-18.
46347         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
46349 2010-06-22  Eric Blake  <eblake@redhat.com>
46351         memmem: slight optimization
46352         * lib/str-two-way.h (critical_factorization): Update comments.
46353         Reduce work during factorization phase.
46354         Reported by Carlos Bueno <carlos@bueno.org>.
46356 2010-06-21  Bruno Haible  <bruno@clisp.org>
46358         Fix HAVE_CALLOC_POSIX misnomer.
46359         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
46360         !HAVE_CALLOC_POSIX.
46361         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
46362         HAVE_CALLOC_POSIX.
46363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
46364         instead of HAVE_CALLOC_POSIX.
46365         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
46366         HAVE_CALLOC_POSIX.
46368         Use modern idiom for calloc() replacement.
46369         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
46370         AC_FUNC_CALLOC.
46371         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
46372         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
46373         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46374         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
46375         (gl_REPLACE_CALLOC): New macro.
46377 2010-06-21  Bruno Haible  <bruno@clisp.org>
46379         Fix HAVE_REALLOC_POSIX misnomer.
46380         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
46381         !HAVE_REALLOC_POSIX.
46382         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
46383         HAVE_REALLOC_POSIX.
46384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
46385         instead of HAVE_REALLOC_POSIX.
46386         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
46387         HAVE_REALLOC_POSIX.
46389         Use modern idiom for realloc() replacement.
46390         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
46391         AC_FUNC_REALLOC.
46392         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
46393         Autoconf's AC_FUNC_REALLOC.
46394         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46395         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
46396         (gl_REPLACE_REALLOC): New macro.
46397         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46399 2010-06-21  Bruno Haible  <bruno@clisp.org>
46401         Fix HAVE_MALLOC_POSIX misnomer.
46402         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
46403         !HAVE_MALLOC_POSIX.
46404         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
46405         HAVE_MALLOC_POSIX.
46406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
46407         instead of HAVE_MALLOC_POSIX.
46408         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
46409         HAVE_MALLOC_POSIX.
46411         Use modern idiom for malloc() replacement.
46412         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
46413         AC_FUNC_MALLOC.
46414         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
46415         Autoconf's AC_FUNC_MALLOC.
46416         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46417         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
46418         (gl_REPLACE_MALLOC): New macro.
46419         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46421 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
46423         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
46424         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
46425         This macro takes 3 arguments, not 4.
46427 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
46429         ipv6: fix detection under mingw
46430         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
46431         in6_addr.
46433 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
46435         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
46436         that strtod() works when cross-compiling to a glibc version known
46437         to work.
46439 2010-06-15  Bruno Haible  <bruno@clisp.org>
46441         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
46443 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
46445         select: Correct timeout.
46446         * lib/select.c (rpl_select): Compute wait_timeout correctly.
46448 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46450         git-version-gen: init shell var to avoid env var influence
46451         * build-aux/git-version-gen (v): Init shell var to empty.
46453 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
46455         priv-set: Don't assume that priv.h exists merely because getppriv does.
46456         See Jan Andersen's bug report about AIX 5L in
46457         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
46458         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
46459         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
46460         * lib/priv-set.h: Likewise.
46461         * tests/test-priv-set.c: Likewise.
46463 2010-06-13  Bruno Haible  <bruno@clisp.org>
46465         relocatable: Make it easier to test whether to install wrappers.
46466         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
46467         RELOCATABLE_VIA_WRAPPER.
46469 2010-06-13  Bruno Haible  <bruno@clisp.org>
46471         gnulib-tool: Display specified modules and dependencies differently.
46472         * gnulib-tool (func_show_module_list): New function.
46473         (func_import, func_create_testdir): Invoke it.
46474         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46476 2010-06-13  Bruno Haible  <bruno@clisp.org>
46478         gnulib-tool: Align code of func_import and func_create_testdir.
46479         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
46480         specified_modules.
46482 2010-06-12  Jim Meyering  <meyering@redhat.com>
46484         test-inttostr: avoid spurious failure on Solaris 9
46485         * tests/test-inttostr.c (main): Skip the test when snprintf fails
46486         to accept "%ju".  Reported by Bruno Haible.
46488 2010-06-11  Jim Meyering  <meyering@redhat.com>
46490         test-sys_socket: mark variables as used more readably
46491         * tests/test-sys_socket.c (main): Mark otherwise unused variables
46492         as "used" explicitly via (void) statement casts.  This is more
46493         readable than using them in an artificial return expression.
46494         Suggestion from Bruno Haible.
46496 2010-06-11  Bruno Haible  <bruno@clisp.org>
46498         Avoid some more warnings from "gcc -Wwrite-strings".
46499         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
46500         to 'const char *'.
46501         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
46502         * tests/test-c-strcasestr.c (main): Likewise.
46503         * tests/test-mbscasestr1.c (main): Likewise.
46504         * tests/test-mbscasestr2.c (main): Likewise.
46505         * tests/test-memmem.c (main): Likewise.
46506         * tests/test-strstr.c (main): Likewise.
46507         * tests/test-strcasestr.c (main): Likewise.
46509 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46511         init.sh: change framework_failure_ to fail with status 99, not 1
46512         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
46513         automake's parallel-tests rule that this is an unexpected failure,
46514         even if the test is listed in XFAIL_TESTS.
46516 2010-06-11  Jim Meyering  <meyering@redhat.com>
46518         test-inttostr: avoid warnings about 4-6KB literal strings
46519         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
46520         Include "macros.h", for its definition of ASSERT.
46521         (CK): s/assert/ASSERT/
46522         * modules/inttostr-tests (Files): Add macros.h.
46524         init.sh: don't use $ME_ or skip_ before they are defined
46525         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
46526         their first uses.  Also hoist their companions: warn_, fail_,
46527         framework_failure_, $stderr_fileno.  Prompted by a patch from
46528         Stefano Lattarini.
46530         test-sys_socket: avoid set-but-not-used warnings from gcc
46531         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
46532         avoid warning about set-but-not-used variables.
46534         test-xvasprintf: avoid 'const' discard warnings
46535         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
46536         "const" when assigning from literal strings.
46537         (test_xasprintf): Add "void" in function argument list to placate
46538         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
46540         tests: avoid compilation warnings in argmatch and exclude tests...
46541         in packages that define ARGMATCH_DIE_DECL, like coreutils.
46542         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
46543         Since it always exits, declare with the "noreturn" attribute.
46544         * tests/test-argmatch.c: Likewise.
46546         tests: avoid 'const' discard warnings in mbsstr tests
46547         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
46548         * tests/test-mbsstr2.c (main): Likewise.
46550         test-verify: avoid warning from gcc's -Wmissing-declarations
46551         * tests/test-verify.c (function): Declare to be static.
46553         test-inttostr.c: include <string.h> for use of strcmp
46554         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
46556         test-linkat: avoid failed assertion on "other" architectures
46557         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
46558         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
46559         sparc: https://bugs.launchpad.net/bugs/591968
46561 2010-06-11  Jim Meyering  <meyering@redhat.com>
46563         printf.m4: avoid autoconf's "Expanded Before Required" warning
46564         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
46565         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
46566         autoconf warning.
46568 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
46570         Replacement header templates are now named with ".in", not "_".
46571         * doc/gnulib-intro.texi: Correct.
46573 2010-06-10  Jim Meyering  <meyering@redhat.com>
46575         inttostr-tests: depend on snprintf, not snprintf-posix
46576         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
46577         snprintf-posix, to avoid this aclocal failure:
46578           missing file gnulib-tests/vasnprintf.c
46579           configure.ac:45: error: expected source file, required through \
46580           AC_LIBSOURCES, not found
46582 2010-06-10  Jim Meyering  <meyering@redhat.com>
46584         inttostr: add a new function, inttostr, and tests
46585         The namesake function was not available.  The existence of the
46586         template file, inttostr.c makes its addition nontrivial.
46587         * lib/anytostr.c: Rename from inttostr.c.
46588         (anytostr): Rename from inttostr.
46589         * lib/inttostr.c: New file.
46590         * modules/inttostr (Files): Add anytostr.c.
46591         (Makefile.am): Set lib_SOURCES instead of ...
46592         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
46593         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
46594         * lib/offtostr.c: Likewise.
46595         * lib/uinttostr.c: Likewise.
46596         * lib/umaxtostr.c: Likewise.
46597         * modules/inttostr-tests: New file.
46598         * tests/test-inttostr.c: New file.  Test these functions.
46600 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
46601             Bruno Haible  <bruno@clisp.org>
46603         Add "Extending Gnulib" chapter to manual.
46604         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
46605         chapter.
46606         (Extending Gnulib): New chapter.
46607         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
46608         chapter.
46610 2010-06-09  Bruno Haible  <bruno@clisp.org>
46612         Avoid relocwrapper link errors due to gnulib replacement functions.
46613         * lib/areadlink.c: Use the system's malloc, realloc functions.
46614         (areadlink): Set errno to ENOMEM explicitly.
46615         * modules/areadlink (Depends-on): Remove malloc-posix.
46616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46618 2010-06-09  Bruno Haible  <bruno@clisp.org>
46620         Avoid relocwrapper link errors due to gnulib replacement functions.
46621         * lib/canonicalize-lgpl.c: Use the system's malloc function.
46622         * lib/malloca.c: Likewise.
46623         * lib/relocatable.c: Likewise.
46624         * lib/progreloc.c: Use the system's malloc, sprintf functions.
46625         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
46626         * lib/setenv.c: Use the system's malloc, realloc functions.
46627         * lib/strerror.c: Use the system's sprintf function.
46628         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46630 2010-06-04  Bruno Haible  <bruno@clisp.org>
46632         Prefer documented low-level autoconf macro names.
46633         * m4/lib-link.m4: Use m4_translit instead of translit.
46634         * m4/environ.m4: Likewise.
46635         * m4/mathfunc.m4: Likewise.
46636         * m4/onceonly.m4: Likewise.
46637         * m4/stdint.m4: Likewise.
46638         Suggested by Eric Blake.
46640 2010-06-04  Martin Lambers  <marlam@marlam.de>
46641             Bruno Haible  <bruno@clisp.org>
46643         havelib: Allow library names with '+' characters.
46644         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46645         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
46647 2010-06-09  Bruno Haible  <bruno@clisp.org>
46649         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
46650         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
46651         realloc failed.
46653 2010-06-08  Peter Simons  <simons@cryp.to>
46655         maint.mk: make the news-check rule more configurable
46656         * top/maint.mk (news-check-lines-spec): New variable.
46657         (news-check): Use "sed -n 1,10p" in place of "head".
46659 2010-06-07  Jim Meyering  <meyering@redhat.com>
46661         do-release-commit-and-tag: fix typo in --help
46662         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
46664         regex: avoid new dead-code warning with gcc-4.6.0
46665         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
46666         if-block containing a while-loop.  It's been unused for at least
46667         5 years.
46669 2010-06-05  Bruno Haible  <bruno@clisp.org>
46671         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
46672         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
46674 2010-06-04  Bruno Haible  <bruno@clisp.org>
46676         Update to GNU gettext 0.18.1.
46677         * modules/gettext (configure.ac): Require gettext infrastructure from
46678         version 0.18.1.
46680 2010-06-03  Bruno Haible  <bruno@clisp.org>
46682         Don't use AC_LIBOBJ with file names in subdirectories.
46683         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
46684         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
46685         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
46686         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
46687         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
46688         gl_LIBUNISTRING_LIBSOURCE.
46689         (Makefile.am): Augment lib_SOURCES here, conditionally.
46690         * NEWS: Drop requirement for Automake option 'subdir-objects'.
46692 2010-06-03  Bruno Haible  <bruno@clisp.org>
46694         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
46695         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
46696         expansion does not end with a newline.
46697         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
46698         unnecessary newline.
46700 2010-06-03  Bruno Haible  <bruno@clisp.org>
46702         Reduce dependencies.
46703         * tests/test-quotearg.h: New file, extracted from
46704         tests/test-quotearg.c.
46705         * tests/test-quotearg-simple.c: New file, extracted from
46706         tests/test-quotearg.c.
46707         * tests/test-quotearg.c: Don't include <ctype.h>.
46708         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
46709         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
46710         use_quote_double_quotes, use_quotearg_colon): Moved to
46711         tests/test-quotearg.h.
46712         (results_g, flag_results, custom_quotes, custom_results): Moved
46713         to tests/test-quotearg-simple.c.
46714         (main): Moved the part that does not depend on gettext to
46715         tests/test-quotearg-simple.c. Return 77 if the test cannot be
46716         performed.
46717         * modules/quotearg-simple: New file.
46718         * modules/quotearg-simple-tests: New file.
46719         * modules/quotearg (Depends-on): Add quotearg-simple.
46720         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
46721         (Files): Add tests/test-quotearg.h.
46722         Reported by Paolo Bonzini.
46724 2010-06-03  Bruno Haible  <bruno@clisp.org>
46726         Reduce dependencies.
46727         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
46729 2010-06-03  Bruno Haible  <bruno@clisp.org>
46731         time: Undefine more broken macros.
46732         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
46733         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
46734         Reported by Eric Blake.
46736 2010-06-03  Bruno Haible  <bruno@clisp.org>
46738         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
46739         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
46740         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
46741         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
46742         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
46743         Reported by Ludovic Courtès <ludo@gnu.org>.
46745 2010-06-02  Eric Blake  <eblake@redhat.com>
46747         time: work with mingw + pthreads-win32 library
46748         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
46749         if timespec is defined only in pthread.h.
46750         * modules/time (Makefile.am): Substitute it.
46751         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
46752         <pthread.h>, when needed.
46753         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
46754         from the library.
46756 2010-05-31  Bruno Haible  <bruno@clisp.org>
46758         Avoid expanding two macros in the wrong order.
46759         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
46760         gl_LIBUNISTRING if it is defined.
46761         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
46762         autoconf >= 2.64.
46763         Reported by Ludovic Courtès <ludo@gnu.org>.
46765 2010-05-27  Jim Meyering  <meyering@redhat.com>
46767         maint.mk: also prohibit "#undef" of always-defined symbols
46768         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
46769         Allow more than one space before the symbol name.
46770         (sc_prohibit_always-defined_macros): Use grep's -E, now that
46771         the regexp uses alternation.
46773 2010-05-26  Eric Blake  <eblake@redhat.com>
46775         maint.mk: avoid echo -e
46776         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
46777         Convert all uses of echo -* to printf.
46778         Reported by Matthias Bolte.
46780 2010-05-25  Bruno Haible  <bruno@clisp.org>
46782         Update to GNU gettext 0.18, part 2.
46783         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
46784         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
46786 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46788         Add missing include in test-pwrite.c.
46789         * tests/test-pwrite.c: Include string.h, for strcmp.
46791 2010-05-24  Bruno Haible  <bruno@clisp.org>
46793         * NEWS: Mention requirement for Automake option 'subdir-objects'.
46795 2010-05-24  Bruno Haible  <bruno@clisp.org>
46797         Don't use conversion with transliteration in u{8,16,32}_strcoll.
46798         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
46799         iconveh_error argument.
46800         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
46801         U_STRCONV_TO_LOCALE.
46802         * lib/unistr/u16-strcoll.c: Likewise.
46803         * lib/unistr/u32-strcoll.c: Likewise.
46804         * modules/unistr/u8-strcoll (Depends-on): Add
46805         uniconv/u8-strconv-to-enc, localcharset. Remove
46806         uniconv/u8-strconv-to-locale.
46807         (configure.ac): Bump version number.
46808         * modules/unistr/u16-strcoll (Depends-on): Add
46809         uniconv/u16-strconv-to-enc, localcharset. Remove
46810         uniconv/u16-strconv-to-locale.
46811         (configure.ac): Bump version number.
46812         * modules/unistr/u32-strcoll (Depends-on): Add
46813         uniconv/u32-strconv-to-enc, localcharset. Remove
46814         uniconv/u32-strconv-to-locale.
46815         (configure.ac): Bump version number.
46817 2010-05-24  Bruno Haible  <bruno@clisp.org>
46819         Avoid a test failure on NetBSD 5.0.
46820         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
46821         an iconv() bug.
46823 2010-05-24  Bruno Haible  <bruno@clisp.org>
46825         Adjust #include directive style.
46826         * modules/regex (Includes): Recommend to write <regex.h>.
46828 2010-05-24  Bruno Haible  <bruno@clisp.org>
46830         regex: Don't require alloca.
46831         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
46832         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
46833         only inside if (0).
46835 2010-05-23  Jim Meyering  <meyering@redhat.com>
46837         test-renameat.c: include <sys/stat.h>
46838         * tests/test-renameat.c: Include <sys/stat.h>; required for
46839         definition of S_IS* macros.
46841 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
46843         Update maintainer documentation for 'relocatable-prog' module.
46844         * doc/relocatable-maint.texi: Update.
46845         Comments by Bruno Haible.
46847 2010-05-23  Bruno Haible  <bruno@clisp.org>
46849         git-merge-changelog: Enable --split-merged-entry by default.
46850         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
46851         (usage): Don't mention this option any more.
46852         Reported by Ralf Wildenhues.
46854 2010-05-23  Jim Meyering  <meyering@redhat.com>
46856         test-pwrite: do not leave behind a test file named "out"
46857         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
46858         The trivial-looking use of init.sh is really necessary.
46859         It ensures that the temporary file, "out", is created in
46860         a temporary directory, and removed upon termination.
46861         * tests/test-pwrite.sh: Re-add file.
46862         * modules/pwrite-tests: Reference it.
46864 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46866         Fix output redirection buglet in init.sh.
46867         * tests/init.sh: Fix redirection of stderr.
46869 2010-05-20  Simon Josefsson  <simon@josefsson.org>
46871         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
46873 2010-05-17  Simon Josefsson  <simon@josefsson.org>
46875         * modules/valgrind-tests: New file.
46876         * m4/valgrind-tests.m4: New file.
46877         * doc/valgrind-tests.texi: New file.
46878         * doc/gnulib.texi (Running self-tests under valgrind): New
46879         section.
46881 2010-05-19  Bruno Haible  <bruno@clisp.org>
46883         Clean up dead code in recent commit.
46884         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
46885         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
46886         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
46887         Suggested by Paolo Bonzini.
46889 2010-05-19  Bruno Haible  <bruno@clisp.org>
46891         Avoid valgrind error reports from libunistring.
46892         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
46893         * modules/libunistring (Files): Add it.
46894         * modules/libunistring-optional (Files): Likewise.
46896 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
46897             Bruno Haible  <bruno@clisp.org>
46899         New module 'libunistring-optional'.
46900         * modules/libunistring-optional: New file.
46901         * m4/libunistring-base.m4: New file.
46902         * m4/libunistring-optional.m4: New file.
46903         * lib/unicase.in.h: Renamed from lib/unicase.h.
46904         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
46905         * lib/unictype.in.h: Renamed from lib/unictype.h.
46906         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
46907         * lib/uniname.in.h: Renamed from lib/uniname.h.
46908         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
46909         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
46910         * lib/unistr.in.h: Renamed from lib/unistr.h.
46911         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
46912         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
46913         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
46914         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
46915         gl_LIBUNISTRING. If the library was found, determine the installed
46916         version and set LIBUNISTRING_VERSION.
46917         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
46918         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
46919         handle a configuration option --with-included-libunistring.
46920         * modules/libunistring (Files): Add m4/absolute-header.m4.
46921         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
46922         Add m4/libunistring-base.m4.
46923         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46924         (Makefile.am): Build unicase.h from unicase.in.h.
46925         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
46926         Add m4/libunistring-base.m4.
46927         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46928         (Makefile.am): Build uniconv.h from uniconv.in.h.
46929         * modules/unictype/base (Files): Use unictype.in.h instead of
46930         unictype.h. Add m4/libunistring-base.m4.
46931         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46932         (Makefile.am): Build unictype.h from unictype.in.h.
46933         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
46934         Add m4/libunistring-base.m4.
46935         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46936         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
46937         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
46938         Add m4/libunistring-base.m4.
46939         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46940         (Makefile.am): Build uniname.h from uniname.in.h.
46941         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
46942         Add m4/libunistring-base.m4.
46943         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46944         (Makefile.am): Build uninorm.h from uninorm.in.h.
46945         * modules/unistdio/base (Files): Use unistdio.in.h instead of
46946         unistdio.h. Add m4/libunistring-base.m4.
46947         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46948         (Makefile.am): Build unistdio.h from unistdio.in.h.
46949         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
46950         Add m4/libunistring-base.m4.
46951         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46952         (Makefile.am): Build unistr.h from unistr.in.h.
46953         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
46954         Add m4/libunistring-base.m4.
46955         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46956         (Makefile.am): Build unitypes.h from unitypes.in.h.
46957         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
46958         Add m4/libunistring-base.m4.
46959         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46960         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
46961         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
46962         uniwidth.h. Add m4/libunistring-base.m4.
46963         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46964         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
46965         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
46966         instead of augmenting lib_SOURCES.
46967         * modules/unicase/empty-suffix-context: Likewise.
46968         * modules/unicase/locale-language: Likewise.
46969         * modules/unicase/tolower: Likewise.
46970         * modules/unicase/totitle: Likewise.
46971         * modules/unicase/toupper: Likewise.
46972         * modules/unicase/u8-casecmp: Likewise.
46973         * modules/unicase/u8-casecoll: Likewise.
46974         * modules/unicase/u8-casefold: Likewise.
46975         * modules/unicase/u8-casexfrm: Likewise.
46976         * modules/unicase/u8-ct-casefold: Likewise.
46977         * modules/unicase/u8-ct-tolower: Likewise.
46978         * modules/unicase/u8-ct-totitle: Likewise.
46979         * modules/unicase/u8-ct-toupper: Likewise.
46980         * modules/unicase/u8-is-cased: Likewise.
46981         * modules/unicase/u8-is-casefolded: Likewise.
46982         * modules/unicase/u8-is-lowercase: Likewise.
46983         * modules/unicase/u8-is-titlecase: Likewise.
46984         * modules/unicase/u8-is-uppercase: Likewise.
46985         * modules/unicase/u8-prefix-context: Likewise.
46986         * modules/unicase/u8-suffix-context: Likewise.
46987         * modules/unicase/u8-tolower: Likewise.
46988         * modules/unicase/u8-totitle: Likewise.
46989         * modules/unicase/u8-toupper: Likewise.
46990         * modules/unicase/u16-casecmp: Likewise.
46991         * modules/unicase/u16-casecoll: Likewise.
46992         * modules/unicase/u16-casefold: Likewise.
46993         * modules/unicase/u16-casexfrm: Likewise.
46994         * modules/unicase/u16-ct-casefold: Likewise.
46995         * modules/unicase/u16-ct-tolower: Likewise.
46996         * modules/unicase/u16-ct-totitle: Likewise.
46997         * modules/unicase/u16-ct-toupper: Likewise.
46998         * modules/unicase/u16-is-cased: Likewise.
46999         * modules/unicase/u16-is-casefolded: Likewise.
47000         * modules/unicase/u16-is-lowercase: Likewise.
47001         * modules/unicase/u16-is-titlecase: Likewise.
47002         * modules/unicase/u16-is-uppercase: Likewise.
47003         * modules/unicase/u16-prefix-context: Likewise.
47004         * modules/unicase/u16-suffix-context: Likewise.
47005         * modules/unicase/u16-tolower: Likewise.
47006         * modules/unicase/u16-totitle: Likewise.
47007         * modules/unicase/u16-toupper: Likewise.
47008         * modules/unicase/u32-casecmp: Likewise.
47009         * modules/unicase/u32-casecoll: Likewise.
47010         * modules/unicase/u32-casefold: Likewise.
47011         * modules/unicase/u32-casexfrm: Likewise.
47012         * modules/unicase/u32-ct-casefold: Likewise.
47013         * modules/unicase/u32-ct-tolower: Likewise.
47014         * modules/unicase/u32-ct-totitle: Likewise.
47015         * modules/unicase/u32-ct-toupper: Likewise.
47016         * modules/unicase/u32-is-cased: Likewise.
47017         * modules/unicase/u32-is-casefolded: Likewise.
47018         * modules/unicase/u32-is-lowercase: Likewise.
47019         * modules/unicase/u32-is-titlecase: Likewise.
47020         * modules/unicase/u32-is-uppercase: Likewise.
47021         * modules/unicase/u32-prefix-context: Likewise.
47022         * modules/unicase/u32-suffix-context: Likewise.
47023         * modules/unicase/u32-tolower: Likewise.
47024         * modules/unicase/u32-totitle: Likewise.
47025         * modules/unicase/u32-toupper: Likewise.
47026         * modules/unicase/ulc-casecmp: Likewise.
47027         * modules/unicase/ulc-casecoll: Likewise.
47028         * modules/unicase/ulc-casexfrm: Likewise.
47029         * modules/uniconv/u8-conv-from-enc: Likewise.
47030         * modules/uniconv/u8-conv-to-enc: Likewise.
47031         * modules/uniconv/u8-strconv-from-enc: Likewise.
47032         * modules/uniconv/u8-strconv-from-locale: Likewise.
47033         * modules/uniconv/u8-strconv-to-enc: Likewise.
47034         * modules/uniconv/u8-strconv-to-locale: Likewise.
47035         * modules/uniconv/u16-conv-from-enc: Likewise.
47036         * modules/uniconv/u16-conv-to-enc: Likewise.
47037         * modules/uniconv/u16-strconv-from-enc: Likewise.
47038         * modules/uniconv/u16-strconv-from-locale: Likewise.
47039         * modules/uniconv/u16-strconv-to-enc: Likewise.
47040         * modules/uniconv/u16-strconv-to-locale: Likewise.
47041         * modules/uniconv/u32-conv-from-enc: Likewise.
47042         * modules/uniconv/u32-conv-to-enc: Likewise.
47043         * modules/uniconv/u32-strconv-from-enc: Likewise.
47044         * modules/uniconv/u32-strconv-from-locale: Likewise.
47045         * modules/uniconv/u32-strconv-to-enc: Likewise.
47046         * modules/uniconv/u32-strconv-to-locale: Likewise.
47047         * modules/unictype/bidicategory-byname: Likewise.
47048         * modules/unictype/bidicategory-name: Likewise.
47049         * modules/unictype/bidicategory-of: Likewise.
47050         * modules/unictype/bidicategory-test: Likewise.
47051         * modules/unictype/block-list: Likewise.
47052         * modules/unictype/block-test: Likewise.
47053         * modules/unictype/category-C: Likewise.
47054         * modules/unictype/category-Cc: Likewise.
47055         * modules/unictype/category-Cf: Likewise.
47056         * modules/unictype/category-Cn: Likewise.
47057         * modules/unictype/category-Co: Likewise.
47058         * modules/unictype/category-Cs: Likewise.
47059         * modules/unictype/category-L: Likewise.
47060         * modules/unictype/category-Ll: Likewise.
47061         * modules/unictype/category-Lm: Likewise.
47062         * modules/unictype/category-Lo: Likewise.
47063         * modules/unictype/category-Lt: Likewise.
47064         * modules/unictype/category-Lu: Likewise.
47065         * modules/unictype/category-M: Likewise.
47066         * modules/unictype/category-Mc: Likewise.
47067         * modules/unictype/category-Me: Likewise.
47068         * modules/unictype/category-Mn: Likewise.
47069         * modules/unictype/category-N: Likewise.
47070         * modules/unictype/category-Nd: Likewise.
47071         * modules/unictype/category-Nl: Likewise.
47072         * modules/unictype/category-No: Likewise.
47073         * modules/unictype/category-P: Likewise.
47074         * modules/unictype/category-Pc: Likewise.
47075         * modules/unictype/category-Pd: Likewise.
47076         * modules/unictype/category-Pe: Likewise.
47077         * modules/unictype/category-Pf: Likewise.
47078         * modules/unictype/category-Pi: Likewise.
47079         * modules/unictype/category-Po: Likewise.
47080         * modules/unictype/category-Ps: Likewise.
47081         * modules/unictype/category-S: Likewise.
47082         * modules/unictype/category-Sc: Likewise.
47083         * modules/unictype/category-Sk: Likewise.
47084         * modules/unictype/category-Sm: Likewise.
47085         * modules/unictype/category-So: Likewise.
47086         * modules/unictype/category-Z: Likewise.
47087         * modules/unictype/category-Zl: Likewise.
47088         * modules/unictype/category-Zp: Likewise.
47089         * modules/unictype/category-Zs: Likewise.
47090         * modules/unictype/category-and: Likewise.
47091         * modules/unictype/category-and-not: Likewise.
47092         * modules/unictype/category-byname: Likewise.
47093         * modules/unictype/category-name: Likewise.
47094         * modules/unictype/category-none: Likewise.
47095         * modules/unictype/category-of: Likewise.
47096         * modules/unictype/category-or: Likewise.
47097         * modules/unictype/category-test: Likewise.
47098         * modules/unictype/combining-class: Likewise.
47099         * modules/unictype/ctype-alnum: Likewise.
47100         * modules/unictype/ctype-alpha: Likewise.
47101         * modules/unictype/ctype-blank: Likewise.
47102         * modules/unictype/ctype-cntrl: Likewise.
47103         * modules/unictype/ctype-digit: Likewise.
47104         * modules/unictype/ctype-graph: Likewise.
47105         * modules/unictype/ctype-lower: Likewise.
47106         * modules/unictype/ctype-print: Likewise.
47107         * modules/unictype/ctype-punct: Likewise.
47108         * modules/unictype/ctype-space: Likewise.
47109         * modules/unictype/ctype-upper: Likewise.
47110         * modules/unictype/ctype-xdigit: Likewise.
47111         * modules/unictype/decimal-digit: Likewise.
47112         * modules/unictype/digit: Likewise.
47113         * modules/unictype/mirror: Likewise.
47114         * modules/unictype/numeric: Likewise.
47115         * modules/unictype/property-alphabetic: Likewise.
47116         * modules/unictype/property-ascii-hex-digit: Likewise.
47117         * modules/unictype/property-bidi-arabic-digit: Likewise.
47118         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
47119         * modules/unictype/property-bidi-block-separator: Likewise.
47120         * modules/unictype/property-bidi-boundary-neutral: Likewise.
47121         * modules/unictype/property-bidi-common-separator: Likewise.
47122         * modules/unictype/property-bidi-control: Likewise.
47123         * modules/unictype/property-bidi-embedding-or-override: Likewise.
47124         * modules/unictype/property-bidi-eur-num-separator: Likewise.
47125         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
47126         * modules/unictype/property-bidi-european-digit: Likewise.
47127         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
47128         * modules/unictype/property-bidi-left-to-right: Likewise.
47129         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
47130         * modules/unictype/property-bidi-other-neutral: Likewise.
47131         * modules/unictype/property-bidi-pdf: Likewise.
47132         * modules/unictype/property-bidi-segment-separator: Likewise.
47133         * modules/unictype/property-bidi-whitespace: Likewise.
47134         * modules/unictype/property-byname: Likewise.
47135         * modules/unictype/property-combining: Likewise.
47136         * modules/unictype/property-composite: Likewise.
47137         * modules/unictype/property-currency-symbol: Likewise.
47138         * modules/unictype/property-dash: Likewise.
47139         * modules/unictype/property-decimal-digit: Likewise.
47140         * modules/unictype/property-default-ignorable-code-point: Likewise.
47141         * modules/unictype/property-deprecated: Likewise.
47142         * modules/unictype/property-diacritic: Likewise.
47143         * modules/unictype/property-extender: Likewise.
47144         * modules/unictype/property-format-control: Likewise.
47145         * modules/unictype/property-grapheme-base: Likewise.
47146         * modules/unictype/property-grapheme-extend: Likewise.
47147         * modules/unictype/property-grapheme-link: Likewise.
47148         * modules/unictype/property-hex-digit: Likewise.
47149         * modules/unictype/property-hyphen: Likewise.
47150         * modules/unictype/property-id-continue: Likewise.
47151         * modules/unictype/property-id-start: Likewise.
47152         * modules/unictype/property-ideographic: Likewise.
47153         * modules/unictype/property-ids-binary-operator: Likewise.
47154         * modules/unictype/property-ids-trinary-operator: Likewise.
47155         * modules/unictype/property-ignorable-control: Likewise.
47156         * modules/unictype/property-iso-control: Likewise.
47157         * modules/unictype/property-join-control: Likewise.
47158         * modules/unictype/property-left-of-pair: Likewise.
47159         * modules/unictype/property-line-separator: Likewise.
47160         * modules/unictype/property-logical-order-exception: Likewise.
47161         * modules/unictype/property-lowercase: Likewise.
47162         * modules/unictype/property-math: Likewise.
47163         * modules/unictype/property-non-break: Likewise.
47164         * modules/unictype/property-not-a-character: Likewise.
47165         * modules/unictype/property-numeric: Likewise.
47166         * modules/unictype/property-other-alphabetic: Likewise.
47167         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
47168         * modules/unictype/property-other-grapheme-extend: Likewise.
47169         * modules/unictype/property-other-id-continue: Likewise.
47170         * modules/unictype/property-other-id-start: Likewise.
47171         * modules/unictype/property-other-lowercase: Likewise.
47172         * modules/unictype/property-other-math: Likewise.
47173         * modules/unictype/property-other-uppercase: Likewise.
47174         * modules/unictype/property-paired-punctuation: Likewise.
47175         * modules/unictype/property-paragraph-separator: Likewise.
47176         * modules/unictype/property-pattern-syntax: Likewise.
47177         * modules/unictype/property-pattern-white-space: Likewise.
47178         * modules/unictype/property-private-use: Likewise.
47179         * modules/unictype/property-punctuation: Likewise.
47180         * modules/unictype/property-quotation-mark: Likewise.
47181         * modules/unictype/property-radical: Likewise.
47182         * modules/unictype/property-sentence-terminal: Likewise.
47183         * modules/unictype/property-soft-dotted: Likewise.
47184         * modules/unictype/property-space: Likewise.
47185         * modules/unictype/property-terminal-punctuation: Likewise.
47186         * modules/unictype/property-test: Likewise.
47187         * modules/unictype/property-titlecase: Likewise.
47188         * modules/unictype/property-unassigned-code-value: Likewise.
47189         * modules/unictype/property-unified-ideograph: Likewise.
47190         * modules/unictype/property-uppercase: Likewise.
47191         * modules/unictype/property-variation-selector: Likewise.
47192         * modules/unictype/property-white-space: Likewise.
47193         * modules/unictype/property-xid-continue: Likewise.
47194         * modules/unictype/property-xid-start: Likewise.
47195         * modules/unictype/property-zero-width: Likewise.
47196         * modules/unictype/scripts: Likewise.
47197         * modules/unictype/syntax-c-ident: Likewise.
47198         * modules/unictype/syntax-c-whitespace: Likewise.
47199         * modules/unictype/syntax-java-ident: Likewise.
47200         * modules/unictype/syntax-java-whitespace: Likewise.
47201         * modules/unilbrk/u8-possible-linebreaks: Likewise.
47202         * modules/unilbrk/u8-width-linebreaks: Likewise.
47203         * modules/unilbrk/u16-possible-linebreaks: Likewise.
47204         * modules/unilbrk/u16-width-linebreaks: Likewise.
47205         * modules/unilbrk/u32-possible-linebreaks: Likewise.
47206         * modules/unilbrk/u32-width-linebreaks: Likewise.
47207         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
47208         * modules/unilbrk/ulc-width-linebreaks: Likewise.
47209         * modules/uniname/uniname: Likewise.
47210         * modules/uninorm/canonical-decomposition: Likewise.
47211         * modules/uninorm/composition: Likewise.
47212         * modules/uninorm/decomposing-form: Likewise.
47213         * modules/uninorm/decomposition: Likewise.
47214         * modules/uninorm/filter: Likewise.
47215         * modules/uninorm/nfc: Likewise.
47216         * modules/uninorm/nfd: Likewise.
47217         * modules/uninorm/nfkc: Likewise.
47218         * modules/uninorm/nfkd: Likewise.
47219         * modules/uninorm/u8-normalize: Likewise.
47220         * modules/uninorm/u8-normcmp: Likewise.
47221         * modules/uninorm/u8-normcoll: Likewise.
47222         * modules/uninorm/u8-normxfrm: Likewise.
47223         * modules/uninorm/u16-normalize: Likewise.
47224         * modules/uninorm/u16-normcmp: Likewise.
47225         * modules/uninorm/u16-normcoll: Likewise.
47226         * modules/uninorm/u16-normxfrm: Likewise.
47227         * modules/uninorm/u32-normalize: Likewise.
47228         * modules/uninorm/u32-normcmp: Likewise.
47229         * modules/uninorm/u32-normcoll: Likewise.
47230         * modules/uninorm/u32-normxfrm: Likewise.
47231         * modules/unistdio/u8-asnprintf: Likewise.
47232         * modules/unistdio/u8-asprintf: Likewise.
47233         * modules/unistdio/u8-snprintf: Likewise.
47234         * modules/unistdio/u8-sprintf: Likewise.
47235         * modules/unistdio/u8-u8-asnprintf: Likewise.
47236         * modules/unistdio/u8-u8-asprintf: Likewise.
47237         * modules/unistdio/u8-u8-snprintf: Likewise.
47238         * modules/unistdio/u8-u8-sprintf: Likewise.
47239         * modules/unistdio/u8-u8-vasnprintf: Likewise.
47240         * modules/unistdio/u8-u8-vasprintf: Likewise.
47241         * modules/unistdio/u8-u8-vsnprintf: Likewise.
47242         * modules/unistdio/u8-u8-vsprintf: Likewise.
47243         * modules/unistdio/u8-vasnprintf: Likewise.
47244         * modules/unistdio/u8-vasprintf: Likewise.
47245         * modules/unistdio/u8-vsnprintf: Likewise.
47246         * modules/unistdio/u8-vsprintf: Likewise.
47247         * modules/unistdio/u16-asnprintf: Likewise.
47248         * modules/unistdio/u16-asprintf: Likewise.
47249         * modules/unistdio/u16-snprintf: Likewise.
47250         * modules/unistdio/u16-sprintf: Likewise.
47251         * modules/unistdio/u16-u16-asnprintf: Likewise.
47252         * modules/unistdio/u16-u16-asprintf: Likewise.
47253         * modules/unistdio/u16-u16-snprintf: Likewise.
47254         * modules/unistdio/u16-u16-sprintf: Likewise.
47255         * modules/unistdio/u16-u16-vasnprintf: Likewise.
47256         * modules/unistdio/u16-u16-vasprintf: Likewise.
47257         * modules/unistdio/u16-u16-vsnprintf: Likewise.
47258         * modules/unistdio/u16-u16-vsprintf: Likewise.
47259         * modules/unistdio/u16-vasnprintf: Likewise.
47260         * modules/unistdio/u16-vasprintf: Likewise.
47261         * modules/unistdio/u16-vsnprintf: Likewise.
47262         * modules/unistdio/u16-vsprintf: Likewise.
47263         * modules/unistdio/u32-asnprintf: Likewise.
47264         * modules/unistdio/u32-asprintf: Likewise.
47265         * modules/unistdio/u32-snprintf: Likewise.
47266         * modules/unistdio/u32-sprintf: Likewise.
47267         * modules/unistdio/u32-u32-asnprintf: Likewise.
47268         * modules/unistdio/u32-u32-asprintf: Likewise.
47269         * modules/unistdio/u32-u32-snprintf: Likewise.
47270         * modules/unistdio/u32-u32-sprintf: Likewise.
47271         * modules/unistdio/u32-u32-vasnprintf: Likewise.
47272         * modules/unistdio/u32-u32-vasprintf: Likewise.
47273         * modules/unistdio/u32-u32-vsnprintf: Likewise.
47274         * modules/unistdio/u32-u32-vsprintf: Likewise.
47275         * modules/unistdio/u32-vasnprintf: Likewise.
47276         * modules/unistdio/u32-vasprintf: Likewise.
47277         * modules/unistdio/u32-vsnprintf: Likewise.
47278         * modules/unistdio/u32-vsprintf: Likewise.
47279         * modules/unistdio/ulc-asnprintf: Likewise.
47280         * modules/unistdio/ulc-asprintf: Likewise.
47281         * modules/unistdio/ulc-fprintf: Likewise.
47282         * modules/unistdio/ulc-snprintf: Likewise.
47283         * modules/unistdio/ulc-sprintf: Likewise.
47284         * modules/unistdio/ulc-vasnprintf: Likewise.
47285         * modules/unistdio/ulc-vasprintf: Likewise.
47286         * modules/unistdio/ulc-vfprintf: Likewise.
47287         * modules/unistdio/ulc-vsnprintf: Likewise.
47288         * modules/unistdio/ulc-vsprintf: Likewise.
47289         * modules/unistr/u8-check: Likewise.
47290         * modules/unistr/u8-chr: Likewise.
47291         * modules/unistr/u8-cmp: Likewise.
47292         * modules/unistr/u8-cmp2: Likewise.
47293         * modules/unistr/u8-cpy: Likewise.
47294         * modules/unistr/u8-cpy-alloc: Likewise.
47295         * modules/unistr/u8-endswith: Likewise.
47296         * modules/unistr/u8-mblen: Likewise.
47297         * modules/unistr/u8-mbsnlen: Likewise.
47298         * modules/unistr/u8-mbtouc: Likewise.
47299         * modules/unistr/u8-mbtouc-unsafe: Likewise.
47300         * modules/unistr/u8-mbtoucr: Likewise.
47301         * modules/unistr/u8-move: Likewise.
47302         * modules/unistr/u8-next: Likewise.
47303         * modules/unistr/u8-prev: Likewise.
47304         * modules/unistr/u8-set: Likewise.
47305         * modules/unistr/u8-startswith: Likewise.
47306         * modules/unistr/u8-stpcpy: Likewise.
47307         * modules/unistr/u8-stpncpy: Likewise.
47308         * modules/unistr/u8-strcat: Likewise.
47309         * modules/unistr/u8-strchr: Likewise.
47310         * modules/unistr/u8-strcmp: Likewise.
47311         * modules/unistr/u8-strcoll: Likewise.
47312         * modules/unistr/u8-strcpy: Likewise.
47313         * modules/unistr/u8-strcspn: Likewise.
47314         * modules/unistr/u8-strdup: Likewise.
47315         * modules/unistr/u8-strlen: Likewise.
47316         * modules/unistr/u8-strmblen: Likewise.
47317         * modules/unistr/u8-strmbtouc: Likewise.
47318         * modules/unistr/u8-strncat: Likewise.
47319         * modules/unistr/u8-strncmp: Likewise.
47320         * modules/unistr/u8-strncpy: Likewise.
47321         * modules/unistr/u8-strnlen: Likewise.
47322         * modules/unistr/u8-strpbrk: Likewise.
47323         * modules/unistr/u8-strrchr: Likewise.
47324         * modules/unistr/u8-strspn: Likewise.
47325         * modules/unistr/u8-strstr: Likewise.
47326         * modules/unistr/u8-strtok: Likewise.
47327         * modules/unistr/u8-to-u16: Likewise.
47328         * modules/unistr/u8-to-u32: Likewise.
47329         * modules/unistr/u8-uctomb: Likewise.
47330         * modules/unistr/u16-check: Likewise.
47331         * modules/unistr/u16-chr: Likewise.
47332         * modules/unistr/u16-cmp: Likewise.
47333         * modules/unistr/u16-cmp2: Likewise.
47334         * modules/unistr/u16-cpy: Likewise.
47335         * modules/unistr/u16-cpy-alloc: Likewise.
47336         * modules/unistr/u16-endswith: Likewise.
47337         * modules/unistr/u16-mblen: Likewise.
47338         * modules/unistr/u16-mbsnlen: Likewise.
47339         * modules/unistr/u16-mbtouc: Likewise.
47340         * modules/unistr/u16-mbtouc-unsafe: Likewise.
47341         * modules/unistr/u16-mbtoucr: Likewise.
47342         * modules/unistr/u16-move: Likewise.
47343         * modules/unistr/u16-next: Likewise.
47344         * modules/unistr/u16-prev: Likewise.
47345         * modules/unistr/u16-set: Likewise.
47346         * modules/unistr/u16-startswith: Likewise.
47347         * modules/unistr/u16-stpcpy: Likewise.
47348         * modules/unistr/u16-stpncpy: Likewise.
47349         * modules/unistr/u16-strcat: Likewise.
47350         * modules/unistr/u16-strchr: Likewise.
47351         * modules/unistr/u16-strcmp: Likewise.
47352         * modules/unistr/u16-strcoll: Likewise.
47353         * modules/unistr/u16-strcpy: Likewise.
47354         * modules/unistr/u16-strcspn: Likewise.
47355         * modules/unistr/u16-strdup: Likewise.
47356         * modules/unistr/u16-strlen: Likewise.
47357         * modules/unistr/u16-strmblen: Likewise.
47358         * modules/unistr/u16-strmbtouc: Likewise.
47359         * modules/unistr/u16-strncat: Likewise.
47360         * modules/unistr/u16-strncmp: Likewise.
47361         * modules/unistr/u16-strncpy: Likewise.
47362         * modules/unistr/u16-strnlen: Likewise.
47363         * modules/unistr/u16-strpbrk: Likewise.
47364         * modules/unistr/u16-strrchr: Likewise.
47365         * modules/unistr/u16-strspn: Likewise.
47366         * modules/unistr/u16-strstr: Likewise.
47367         * modules/unistr/u16-strtok: Likewise.
47368         * modules/unistr/u16-to-u32: Likewise.
47369         * modules/unistr/u16-to-u8: Likewise.
47370         * modules/unistr/u16-uctomb: Likewise.
47371         * modules/unistr/u32-check: Likewise.
47372         * modules/unistr/u32-chr: Likewise.
47373         * modules/unistr/u32-cmp: Likewise.
47374         * modules/unistr/u32-cmp2: Likewise.
47375         * modules/unistr/u32-cpy: Likewise.
47376         * modules/unistr/u32-cpy-alloc: Likewise.
47377         * modules/unistr/u32-endswith: Likewise.
47378         * modules/unistr/u32-mblen: Likewise.
47379         * modules/unistr/u32-mbsnlen: Likewise.
47380         * modules/unistr/u32-mbtouc: Likewise.
47381         * modules/unistr/u32-mbtouc-unsafe: Likewise.
47382         * modules/unistr/u32-mbtoucr: Likewise.
47383         * modules/unistr/u32-move: Likewise.
47384         * modules/unistr/u32-next: Likewise.
47385         * modules/unistr/u32-prev: Likewise.
47386         * modules/unistr/u32-set: Likewise.
47387         * modules/unistr/u32-startswith: Likewise.
47388         * modules/unistr/u32-stpcpy: Likewise.
47389         * modules/unistr/u32-stpncpy: Likewise.
47390         * modules/unistr/u32-strcat: Likewise.
47391         * modules/unistr/u32-strchr: Likewise.
47392         * modules/unistr/u32-strcmp: Likewise.
47393         * modules/unistr/u32-strcoll: Likewise.
47394         * modules/unistr/u32-strcpy: Likewise.
47395         * modules/unistr/u32-strcspn: Likewise.
47396         * modules/unistr/u32-strdup: Likewise.
47397         * modules/unistr/u32-strlen: Likewise.
47398         * modules/unistr/u32-strmblen: Likewise.
47399         * modules/unistr/u32-strmbtouc: Likewise.
47400         * modules/unistr/u32-strncat: Likewise.
47401         * modules/unistr/u32-strncmp: Likewise.
47402         * modules/unistr/u32-strncpy: Likewise.
47403         * modules/unistr/u32-strnlen: Likewise.
47404         * modules/unistr/u32-strpbrk: Likewise.
47405         * modules/unistr/u32-strrchr: Likewise.
47406         * modules/unistr/u32-strspn: Likewise.
47407         * modules/unistr/u32-strstr: Likewise.
47408         * modules/unistr/u32-strtok: Likewise.
47409         * modules/unistr/u32-to-u16: Likewise.
47410         * modules/unistr/u32-to-u8: Likewise.
47411         * modules/unistr/u32-uctomb: Likewise.
47412         * modules/uniwbrk/u8-wordbreaks: Likewise.
47413         * modules/uniwbrk/u16-wordbreaks: Likewise.
47414         * modules/uniwbrk/u32-wordbreaks: Likewise.
47415         * modules/uniwbrk/ulc-wordbreaks: Likewise.
47416         * modules/uniwbrk/wordbreak-property: Likewise.
47417         * modules/uniwidth/u8-strwidth: Likewise.
47418         * modules/uniwidth/u8-width: Likewise.
47419         * modules/uniwidth/u16-strwidth: Likewise.
47420         * modules/uniwidth/u16-width: Likewise.
47421         * modules/uniwidth/u32-strwidth: Likewise.
47422         * modules/uniwidth/u32-width: Likewise.
47423         * modules/uniwidth/width: Likewise.
47424         * modules/unicase/cased-tests (Makefile.am): Link all test programs
47425         with $(LIBUNISTRING).
47426         * modules/unicase/ignorable-tests: Likewise.
47427         * modules/unicase/locale-language-tests: Likewise.
47428         * modules/unicase/tolower-tests: Likewise.
47429         * modules/unicase/totitle-tests: Likewise.
47430         * modules/unicase/toupper-tests: Likewise.
47431         * modules/unicase/u8-casecmp-tests: Likewise.
47432         * modules/unicase/u8-casecoll-tests: Likewise.
47433         * modules/unicase/u8-casefold-tests: Likewise.
47434         * modules/unicase/u8-is-cased-tests: Likewise.
47435         * modules/unicase/u8-is-casefolded-tests: Likewise.
47436         * modules/unicase/u8-is-lowercase-tests: Likewise.
47437         * modules/unicase/u8-is-titlecase-tests: Likewise.
47438         * modules/unicase/u8-is-uppercase-tests: Likewise.
47439         * modules/unicase/u8-tolower-tests: Likewise.
47440         * modules/unicase/u8-totitle-tests: Likewise.
47441         * modules/unicase/u8-toupper-tests: Likewise.
47442         * modules/unicase/u16-casecmp-tests: Likewise.
47443         * modules/unicase/u16-casecoll-tests: Likewise.
47444         * modules/unicase/u16-casefold-tests: Likewise.
47445         * modules/unicase/u16-is-cased-tests: Likewise.
47446         * modules/unicase/u16-is-casefolded-tests: Likewise.
47447         * modules/unicase/u16-is-lowercase-tests: Likewise.
47448         * modules/unicase/u16-is-titlecase-tests: Likewise.
47449         * modules/unicase/u16-is-uppercase-tests: Likewise.
47450         * modules/unicase/u16-tolower-tests: Likewise.
47451         * modules/unicase/u16-totitle-tests: Likewise.
47452         * modules/unicase/u16-toupper-tests: Likewise.
47453         * modules/unicase/u32-casecmp-tests: Likewise.
47454         * modules/unicase/u32-casecoll-tests: Likewise.
47455         * modules/unicase/u32-casefold-tests: Likewise.
47456         * modules/unicase/u32-is-cased-tests: Likewise.
47457         * modules/unicase/u32-is-casefolded-tests: Likewise.
47458         * modules/unicase/u32-is-lowercase-tests: Likewise.
47459         * modules/unicase/u32-is-titlecase-tests: Likewise.
47460         * modules/unicase/u32-is-uppercase-tests: Likewise.
47461         * modules/unicase/u32-tolower-tests: Likewise.
47462         * modules/unicase/u32-totitle-tests: Likewise.
47463         * modules/unicase/u32-toupper-tests: Likewise.
47464         * modules/unicase/ulc-casecmp-tests: Likewise.
47465         * modules/unicase/ulc-casecoll-tests: Likewise.
47466         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
47467         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
47468         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
47469         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
47470         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
47471         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
47472         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
47473         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
47474         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
47475         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
47476         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
47477         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
47478         * modules/unictype/bidicategory-byname-tests: Likewise.
47479         * modules/unictype/bidicategory-name-tests: Likewise.
47480         * modules/unictype/bidicategory-of-tests: Likewise.
47481         * modules/unictype/bidicategory-test-tests: Likewise.
47482         * modules/unictype/block-list-tests: Likewise.
47483         * modules/unictype/block-of-tests: Likewise.
47484         * modules/unictype/block-test-tests: Likewise.
47485         * modules/unictype/category-C-tests: Likewise.
47486         * modules/unictype/category-Cc-tests: Likewise.
47487         * modules/unictype/category-Cf-tests: Likewise.
47488         * modules/unictype/category-Cn-tests: Likewise.
47489         * modules/unictype/category-Co-tests: Likewise.
47490         * modules/unictype/category-Cs-tests: Likewise.
47491         * modules/unictype/category-L-tests: Likewise.
47492         * modules/unictype/category-Ll-tests: Likewise.
47493         * modules/unictype/category-Lm-tests: Likewise.
47494         * modules/unictype/category-Lo-tests: Likewise.
47495         * modules/unictype/category-Lt-tests: Likewise.
47496         * modules/unictype/category-Lu-tests: Likewise.
47497         * modules/unictype/category-M-tests: Likewise.
47498         * modules/unictype/category-Mc-tests: Likewise.
47499         * modules/unictype/category-Me-tests: Likewise.
47500         * modules/unictype/category-Mn-tests: Likewise.
47501         * modules/unictype/category-N-tests: Likewise.
47502         * modules/unictype/category-Nd-tests: Likewise.
47503         * modules/unictype/category-Nl-tests: Likewise.
47504         * modules/unictype/category-No-tests: Likewise.
47505         * modules/unictype/category-P-tests: Likewise.
47506         * modules/unictype/category-Pc-tests: Likewise.
47507         * modules/unictype/category-Pd-tests: Likewise.
47508         * modules/unictype/category-Pe-tests: Likewise.
47509         * modules/unictype/category-Pf-tests: Likewise.
47510         * modules/unictype/category-Pi-tests: Likewise.
47511         * modules/unictype/category-Po-tests: Likewise.
47512         * modules/unictype/category-Ps-tests: Likewise.
47513         * modules/unictype/category-S-tests: Likewise.
47514         * modules/unictype/category-Sc-tests: Likewise.
47515         * modules/unictype/category-Sk-tests: Likewise.
47516         * modules/unictype/category-Sm-tests: Likewise.
47517         * modules/unictype/category-So-tests: Likewise.
47518         * modules/unictype/category-Z-tests: Likewise.
47519         * modules/unictype/category-Zl-tests: Likewise.
47520         * modules/unictype/category-Zp-tests: Likewise.
47521         * modules/unictype/category-Zs-tests: Likewise.
47522         * modules/unictype/category-and-not-tests: Likewise.
47523         * modules/unictype/category-and-tests: Likewise.
47524         * modules/unictype/category-byname-tests: Likewise.
47525         * modules/unictype/category-name-tests: Likewise.
47526         * modules/unictype/category-none-tests: Likewise.
47527         * modules/unictype/category-of-tests: Likewise.
47528         * modules/unictype/category-or-tests: Likewise.
47529         * modules/unictype/category-test-withtable-tests: Likewise.
47530         * modules/unictype/combining-class-tests: Likewise.
47531         * modules/unictype/ctype-alnum-tests: Likewise.
47532         * modules/unictype/ctype-alpha-tests: Likewise.
47533         * modules/unictype/ctype-blank-tests: Likewise.
47534         * modules/unictype/ctype-cntrl-tests: Likewise.
47535         * modules/unictype/ctype-digit-tests: Likewise.
47536         * modules/unictype/ctype-graph-tests: Likewise.
47537         * modules/unictype/ctype-lower-tests: Likewise.
47538         * modules/unictype/ctype-print-tests: Likewise.
47539         * modules/unictype/ctype-punct-tests: Likewise.
47540         * modules/unictype/ctype-space-tests: Likewise.
47541         * modules/unictype/ctype-upper-tests: Likewise.
47542         * modules/unictype/ctype-xdigit-tests: Likewise.
47543         * modules/unictype/decimal-digit-tests: Likewise.
47544         * modules/unictype/digit-tests: Likewise.
47545         * modules/unictype/mirror-tests: Likewise.
47546         * modules/unictype/numeric-tests: Likewise.
47547         * modules/unictype/property-alphabetic-tests: Likewise.
47548         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
47549         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
47550         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
47551         * modules/unictype/property-bidi-block-separator-tests: Likewise.
47552         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
47553         * modules/unictype/property-bidi-common-separator-tests: Likewise.
47554         * modules/unictype/property-bidi-control-tests: Likewise.
47555         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
47556         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
47557         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
47558         * modules/unictype/property-bidi-european-digit-tests: Likewise.
47559         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
47560         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
47561         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
47562         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
47563         * modules/unictype/property-bidi-pdf-tests: Likewise.
47564         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
47565         * modules/unictype/property-bidi-whitespace-tests: Likewise.
47566         * modules/unictype/property-byname-tests: Likewise.
47567         * modules/unictype/property-combining-tests: Likewise.
47568         * modules/unictype/property-composite-tests: Likewise.
47569         * modules/unictype/property-currency-symbol-tests: Likewise.
47570         * modules/unictype/property-dash-tests: Likewise.
47571         * modules/unictype/property-decimal-digit-tests: Likewise.
47572         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
47573         * modules/unictype/property-deprecated-tests: Likewise.
47574         * modules/unictype/property-diacritic-tests: Likewise.
47575         * modules/unictype/property-extender-tests: Likewise.
47576         * modules/unictype/property-format-control-tests: Likewise.
47577         * modules/unictype/property-grapheme-base-tests: Likewise.
47578         * modules/unictype/property-grapheme-extend-tests: Likewise.
47579         * modules/unictype/property-grapheme-link-tests: Likewise.
47580         * modules/unictype/property-hex-digit-tests: Likewise.
47581         * modules/unictype/property-hyphen-tests: Likewise.
47582         * modules/unictype/property-id-continue-tests: Likewise.
47583         * modules/unictype/property-id-start-tests: Likewise.
47584         * modules/unictype/property-ideographic-tests: Likewise.
47585         * modules/unictype/property-ids-binary-operator-tests: Likewise.
47586         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
47587         * modules/unictype/property-ignorable-control-tests: Likewise.
47588         * modules/unictype/property-iso-control-tests: Likewise.
47589         * modules/unictype/property-join-control-tests: Likewise.
47590         * modules/unictype/property-left-of-pair-tests: Likewise.
47591         * modules/unictype/property-line-separator-tests: Likewise.
47592         * modules/unictype/property-logical-order-exception-tests: Likewise.
47593         * modules/unictype/property-lowercase-tests: Likewise.
47594         * modules/unictype/property-math-tests: Likewise.
47595         * modules/unictype/property-non-break-tests: Likewise.
47596         * modules/unictype/property-not-a-character-tests: Likewise.
47597         * modules/unictype/property-numeric-tests: Likewise.
47598         * modules/unictype/property-other-alphabetic-tests: Likewise.
47599         * modules/unictype/property-other-default-ignorable-code-point-tests:
47600         Likewise.
47601         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
47602         * modules/unictype/property-other-id-continue-tests: Likewise.
47603         * modules/unictype/property-other-id-start-tests: Likewise.
47604         * modules/unictype/property-other-lowercase-tests: Likewise.
47605         * modules/unictype/property-other-math-tests: Likewise.
47606         * modules/unictype/property-other-uppercase-tests: Likewise.
47607         * modules/unictype/property-paired-punctuation-tests: Likewise.
47608         * modules/unictype/property-paragraph-separator-tests: Likewise.
47609         * modules/unictype/property-pattern-syntax-tests: Likewise.
47610         * modules/unictype/property-pattern-white-space-tests: Likewise.
47611         * modules/unictype/property-private-use-tests: Likewise.
47612         * modules/unictype/property-punctuation-tests: Likewise.
47613         * modules/unictype/property-quotation-mark-tests: Likewise.
47614         * modules/unictype/property-radical-tests: Likewise.
47615         * modules/unictype/property-sentence-terminal-tests: Likewise.
47616         * modules/unictype/property-soft-dotted-tests: Likewise.
47617         * modules/unictype/property-space-tests: Likewise.
47618         * modules/unictype/property-terminal-punctuation-tests: Likewise.
47619         * modules/unictype/property-test-tests: Likewise.
47620         * modules/unictype/property-titlecase-tests: Likewise.
47621         * modules/unictype/property-unassigned-code-value-tests: Likewise.
47622         * modules/unictype/property-unified-ideograph-tests: Likewise.
47623         * modules/unictype/property-uppercase-tests: Likewise.
47624         * modules/unictype/property-variation-selector-tests: Likewise.
47625         * modules/unictype/property-white-space-tests: Likewise.
47626         * modules/unictype/property-xid-continue-tests: Likewise.
47627         * modules/unictype/property-xid-start-tests: Likewise.
47628         * modules/unictype/property-zero-width-tests: Likewise.
47629         * modules/unictype/scripts-tests: Likewise.
47630         * modules/unictype/syntax-c-ident-tests: Likewise.
47631         * modules/unictype/syntax-c-whitespace-tests: Likewise.
47632         * modules/unictype/syntax-java-ident-tests: Likewise.
47633         * modules/unictype/syntax-java-whitespace-tests: Likewise.
47634         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
47635         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
47636         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
47637         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
47638         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
47639         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
47640         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
47641         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
47642         * modules/uniname/uniname-tests: Likewise.
47643         * modules/uninorm/canonical-decomposition-tests: Likewise.
47644         * modules/uninorm/compat-decomposition-tests: Likewise.
47645         * modules/uninorm/composition-tests: Likewise.
47646         * modules/uninorm/decomposing-form-tests: Likewise.
47647         * modules/uninorm/decomposition-tests: Likewise.
47648         * modules/uninorm/filter-tests: Likewise.
47649         * modules/uninorm/nfc-tests: Likewise.
47650         * modules/uninorm/nfd-tests: Likewise.
47651         * modules/uninorm/nfkc-tests: Likewise.
47652         * modules/uninorm/nfkd-tests: Likewise.
47653         * modules/uninorm/u8-normcmp-tests: Likewise.
47654         * modules/uninorm/u8-normcoll-tests: Likewise.
47655         * modules/uninorm/u16-normcmp-tests: Likewise.
47656         * modules/uninorm/u16-normcoll-tests: Likewise.
47657         * modules/uninorm/u32-normcmp-tests: Likewise.
47658         * modules/uninorm/u32-normcoll-tests: Likewise.
47659         * modules/unistdio/u8-asnprintf-tests: Likewise.
47660         * modules/unistdio/u8-vasnprintf-tests: Likewise.
47661         * modules/unistdio/u8-vasprintf-tests: Likewise.
47662         * modules/unistdio/u8-vsnprintf-tests: Likewise.
47663         * modules/unistdio/u8-vsprintf-tests: Likewise.
47664         * modules/unistdio/u16-asnprintf-tests: Likewise.
47665         * modules/unistdio/u16-vasnprintf-tests: Likewise.
47666         * modules/unistdio/u16-vasprintf-tests: Likewise.
47667         * modules/unistdio/u16-vsnprintf-tests: Likewise.
47668         * modules/unistdio/u16-vsprintf-tests: Likewise.
47669         * modules/unistdio/u32-asnprintf-tests: Likewise.
47670         * modules/unistdio/u32-vasnprintf-tests: Likewise.
47671         * modules/unistdio/u32-vasprintf-tests: Likewise.
47672         * modules/unistdio/u32-vsnprintf-tests: Likewise.
47673         * modules/unistdio/u32-vsprintf-tests: Likewise.
47674         * modules/unistdio/ulc-asnprintf-tests: Likewise.
47675         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
47676         * modules/unistdio/ulc-vasprintf-tests: Likewise.
47677         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
47678         * modules/unistdio/ulc-vsprintf-tests: Likewise.
47679         * modules/unistr/u8-check-tests: Likewise.
47680         * modules/unistr/u8-chr-tests: Likewise.
47681         * modules/unistr/u8-cmp-tests: Likewise.
47682         * modules/unistr/u8-cmp2-tests: Likewise.
47683         * modules/unistr/u8-cpy-alloc-tests: Likewise.
47684         * modules/unistr/u8-cpy-tests: Likewise.
47685         * modules/unistr/u8-mblen-tests: Likewise.
47686         * modules/unistr/u8-mbsnlen-tests: Likewise.
47687         * modules/unistr/u8-mbtouc-tests: Likewise.
47688         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
47689         * modules/unistr/u8-mbtoucr-tests: Likewise.
47690         * modules/unistr/u8-move-tests: Likewise.
47691         * modules/unistr/u8-next-tests: Likewise.
47692         * modules/unistr/u8-prev-tests: Likewise.
47693         * modules/unistr/u8-set-tests: Likewise.
47694         * modules/unistr/u8-stpcpy-tests: Likewise.
47695         * modules/unistr/u8-stpncpy-tests: Likewise.
47696         * modules/unistr/u8-strcat-tests: Likewise.
47697         * modules/unistr/u8-strcmp-tests: Likewise.
47698         * modules/unistr/u8-strcoll-tests: Likewise.
47699         * modules/unistr/u8-strcpy-tests: Likewise.
47700         * modules/unistr/u8-strdup-tests: Likewise.
47701         * modules/unistr/u8-strlen-tests: Likewise.
47702         * modules/unistr/u8-strmblen-tests: Likewise.
47703         * modules/unistr/u8-strmbtouc-tests: Likewise.
47704         * modules/unistr/u8-strncat-tests: Likewise.
47705         * modules/unistr/u8-strncmp-tests: Likewise.
47706         * modules/unistr/u8-strncpy-tests: Likewise.
47707         * modules/unistr/u8-strnlen-tests: Likewise.
47708         * modules/unistr/u8-to-u16-tests: Likewise.
47709         * modules/unistr/u8-to-u32-tests: Likewise.
47710         * modules/unistr/u8-uctomb-tests: Likewise.
47711         * modules/unistr/u16-check-tests: Likewise.
47712         * modules/unistr/u16-chr-tests: Likewise.
47713         * modules/unistr/u16-cmp-tests: Likewise.
47714         * modules/unistr/u16-cmp2-tests: Likewise.
47715         * modules/unistr/u16-cpy-alloc-tests: Likewise.
47716         * modules/unistr/u16-cpy-tests: Likewise.
47717         * modules/unistr/u16-mblen-tests: Likewise.
47718         * modules/unistr/u16-mbsnlen-tests: Likewise.
47719         * modules/unistr/u16-mbtouc-tests: Likewise.
47720         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
47721         * modules/unistr/u16-mbtoucr-tests: Likewise.
47722         * modules/unistr/u16-move-tests: Likewise.
47723         * modules/unistr/u16-next-tests: Likewise.
47724         * modules/unistr/u16-prev-tests: Likewise.
47725         * modules/unistr/u16-set-tests: Likewise.
47726         * modules/unistr/u16-stpcpy-tests: Likewise.
47727         * modules/unistr/u16-stpncpy-tests: Likewise.
47728         * modules/unistr/u16-strcat-tests: Likewise.
47729         * modules/unistr/u16-strcmp-tests: Likewise.
47730         * modules/unistr/u16-strcoll-tests: Likewise.
47731         * modules/unistr/u16-strcpy-tests: Likewise.
47732         * modules/unistr/u16-strdup-tests: Likewise.
47733         * modules/unistr/u16-strlen-tests: Likewise.
47734         * modules/unistr/u16-strmblen-tests: Likewise.
47735         * modules/unistr/u16-strmbtouc-tests: Likewise.
47736         * modules/unistr/u16-strncat-tests: Likewise.
47737         * modules/unistr/u16-strncmp-tests: Likewise.
47738         * modules/unistr/u16-strncpy-tests: Likewise.
47739         * modules/unistr/u16-strnlen-tests: Likewise.
47740         * modules/unistr/u16-to-u32-tests: Likewise.
47741         * modules/unistr/u16-to-u8-tests: Likewise.
47742         * modules/unistr/u16-uctomb-tests: Likewise.
47743         * modules/unistr/u32-check-tests: Likewise.
47744         * modules/unistr/u32-chr-tests: Likewise.
47745         * modules/unistr/u32-cmp-tests: Likewise.
47746         * modules/unistr/u32-cmp2-tests: Likewise.
47747         * modules/unistr/u32-cpy-alloc-tests: Likewise.
47748         * modules/unistr/u32-cpy-tests: Likewise.
47749         * modules/unistr/u32-mblen-tests: Likewise.
47750         * modules/unistr/u32-mbsnlen-tests: Likewise.
47751         * modules/unistr/u32-mbtouc-tests: Likewise.
47752         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
47753         * modules/unistr/u32-mbtoucr-tests: Likewise.
47754         * modules/unistr/u32-move-tests: Likewise.
47755         * modules/unistr/u32-next-tests: Likewise.
47756         * modules/unistr/u32-prev-tests: Likewise.
47757         * modules/unistr/u32-set-tests: Likewise.
47758         * modules/unistr/u32-stpcpy-tests: Likewise.
47759         * modules/unistr/u32-stpncpy-tests: Likewise.
47760         * modules/unistr/u32-strcat-tests: Likewise.
47761         * modules/unistr/u32-strcmp-tests: Likewise.
47762         * modules/unistr/u32-strcoll-tests: Likewise.
47763         * modules/unistr/u32-strcpy-tests: Likewise.
47764         * modules/unistr/u32-strdup-tests: Likewise.
47765         * modules/unistr/u32-strlen-tests: Likewise.
47766         * modules/unistr/u32-strmblen-tests: Likewise.
47767         * modules/unistr/u32-strmbtouc-tests: Likewise.
47768         * modules/unistr/u32-strncat-tests: Likewise.
47769         * modules/unistr/u32-strncmp-tests: Likewise.
47770         * modules/unistr/u32-strncpy-tests: Likewise.
47771         * modules/unistr/u32-strnlen-tests: Likewise.
47772         * modules/unistr/u32-to-u16-tests: Likewise.
47773         * modules/unistr/u32-to-u8-tests: Likewise.
47774         * modules/unistr/u32-uctomb-tests: Likewise.
47775         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
47776         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
47777         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
47778         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
47779         * modules/uniwidth/u8-strwidth-tests: Likewise.
47780         * modules/uniwidth/u8-width-tests: Likewise.
47781         * modules/uniwidth/u16-strwidth-tests: Likewise.
47782         * modules/uniwidth/u16-width-tests: Likewise.
47783         * modules/uniwidth/u32-strwidth-tests: Likewise.
47784         * modules/uniwidth/u32-width-tests: Likewise.
47785         * modules/uniwidth/width-tests: Likewise.
47787 2010-05-18  Richard Jones  <rjones@redhat.com>
47789         doc: users.txt: list hivex
47790         * users.txt: Add hivex.
47792 2010-05-18  Richard Jones  <rjones@redhat.com>
47794         doc: users.txt: list febootstrap
47795         * users.txt: Add febootstrap.
47797 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
47799         bootstrap: fix an error when gnulib is not used as a git submodule
47800         * build-aux/bootstrap (gnulib_path): If its length is zero then
47801         assign "gnulib" to it.
47802         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
47804 2010-05-16  Bruno Haible  <bruno@clisp.org>
47806         Avoid autoconf warnings about AM_ICONV.
47807         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
47808         2.64.
47810 2010-05-16  Bruno Haible  <bruno@clisp.org>
47812         absolute-header: Make the macro usable in more situations.
47813         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
47814         from gl_ABSOLUTE_HEADER.
47815         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
47817 2010-05-16  James Youngman  <jay@gnu.org>
47819         doc: update users.txt
47820         * users.txt: Add CSSC.
47822 2010-05-16  Jim Meyering  <meyering@redhat.com>
47824         init.sh: fix an error in the previous change; add more comments
47825         * tests/init.sh: Compare exit code in loop against 9, not 2.
47826         Patch by Bruno Haible.
47827         Make the two tests more similar by adding an empty "then" clause.
47828         Add comments.
47830         init.sh: avoid unnecessary shell re-exec
47831         * tests/init.sh: Improve the re-exec-required check to first test the
47832         current shell.  If it passes the test, do not search for a shell that
47833         does pass, and do not re-exec.  This test is particularly contorted to
47834         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
47835         of $(...) evokes a syntax error and causes immediate shell exit with
47836         status 2.  Bruno Haible reported that the re-exec made it impossible
47837         to single-step through any init.sh-using script.
47839 2010-05-16  Bruno Haible  <bruno@clisp.org>
47841         Fix collision between gnulib's and libintl's printf replacements.
47842         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
47843         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
47844         (printf): When using GNU C, map the __printf__ function to rpl_printf
47845         via __asm__. When not using GNU C, define rpl_printf instead of
47846         __printf__.
47847         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
47848         commit.
47849         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
47850         commit.
47851         * m4/asm-underscore.m4: New file.
47852         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
47853         * modules/stdio (Files): Add m4/asm-underscore.m4.
47854         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
47855         Reported by Ben Pfaff.
47857 2010-05-16  Bruno Haible  <bruno@clisp.org>
47859         verify: Avoid skipping the test on openSUSE 11.0.
47860         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
47862 2010-05-13  Bruno Haible  <bruno@clisp.org>
47864         Avoid useless warnings from G++.
47865         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
47866         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
47867         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47869 2010-05-11  Jim Meyering  <meyering@redhat.com>
47871         maint.mk: tweak preceding change
47872         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
47873         regexps tighter by anchoring at EOL, and make the new group "shy"
47874         for slightly decreased overhead.
47876 2010-05-11  Eric Blake  <eblake@redhat.com>
47878         maint.mk: gnulib doesn't guarantee NSIG
47879         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
47881 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
47883         test-pwrite.c: Remove unused variable declaration.
47884         * tests/test-pwrite.c (main): Remove read_buf declaration.
47886         Remove useless test-pwrite.sh file.
47887         * tests/test-pwrite.sh: Delete file.
47888         * modules/pwrite-tests: Remove references.
47889         Reported by Bruno Haible.
47891 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
47893         init.sh: fix a typo
47894         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
47896 2010-05-10  Jim Meyering  <meyering@redhat.com>
47898         maint.mk: avoid using a temporary file in the always-defined-macros check
47899         * top/maint.mk (.re-defmac): Remove rule.
47900         (gl_trap_): Remove definition.
47901         (sc_prohibit_always-defined_macros): Rewrite not to create and
47902         depend on a temporary file.  Instead, depend on GNU grep's ability
47903         to read a list of regular expressions from stdin when given "-f -".
47905 2010-05-09  Bruno Haible  <bruno@clisp.org>
47907         Update to GNU gettext 0.18, part 1.
47908         * m4/gettext.m4: Update to GNU gettext 0.18.
47909         * m4/intl.m4: Likewise.
47910         * m4/po.m4: Likewise.
47911         * modules/gettext (Files): Add m4/fcntl-o.m4.
47912         (configure.ac): Require gettext infrastructure from version 0.18.
47914 2010-05-09  Jim Meyering  <meyering@redhat.com>
47916         init.sh: enable MALLOC_PERTURB_
47917         * tests/init.sh: Enable glibc's malloc-perturbing option.
47919         maint.mk: improve sc_cross_check_PATH_usage_in_tests
47920         With my recent change in init.sh from the two-line form:
47921             -#   : ${srcdir=.}
47922             -#   . "$srcdir/init.sh"; path_prepend_ .
47923             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
47924         I noticed that using the one-line form would cause this test
47925         to fail with a false-positive, or to stop working altogether,
47926         depending on whether help-version changed or all the tests did.
47927         * top/maint.mk (_hv_regex): Remove this definition.
47928         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
47929         (_hv_regex_strong): Use a stronger regex to check for conformance.
47930         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
47931         Give a separate diagnostic for lack of conforming use.
47933         maint.mk: prohibit definition of symbols defined by gnulib
47934         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
47935         definition of symbols defined by gnulib.
47937 2010-05-09  Bruno Haible  <bruno@clisp.org>
47939         acl: Avoid test failure on Cygwin-hosted mingw.
47940         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
47942 2010-05-09  Bruno Haible  <bruno@clisp.org>
47944         error: Use system's fcntl function.
47945         * lib/error.c (fcntl): Undefine.
47947 2010-05-09  Jim Meyering  <meyering@redhat.com>
47949         verify: adjust formatting to be more consistent
47950         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
47951         argument-list '('s, and after one comma.
47953 2010-05-09  Bruno Haible  <bruno@clisp.org>
47955         error: More reliable output on mingw.
47956         * lib/error.c: Include <windows.h>.
47957         (is_open): New function.
47958         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
47959         defined.
47961 2010-05-09  Bruno Haible  <bruno@clisp.org>
47963         vasnprintf: Fix syntax errors in libintl build on mingw.
47964         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
47965         pad_ourselves and prec_ourselves after use.
47967 2010-05-08  Bruno Haible  <bruno@clisp.org>
47969         * lib/config.charset: Update comments for Cygwin 1.7.
47970         * lib/localcharset.c: Likewise.
47972 2010-05-07  Jim Meyering  <meyering@redhat.com>
47974         init.sh: improve comments
47975         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
47976         . "${srcdir=.}/init.sh"; path_prepend_ .
47977         Add a note about path_prepend_ and the alternative of using
47978         TESTS_ENVIRONMENT.
47980 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
47982         exclude: Unescape hashed patterns in wildcard mode.
47983         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
47984         to the hash list.
47985         * tests/test-exclude8.sh: New test case.
47986         * modules/exclude-tests: Add new test.
47988 2010-05-05  Eric Blake  <eblake@redhat.com>
47990         verify: automate tests
47991         * modules/verify-tests: New module.
47992         * tests/test-verify.sh: New file.
47993         * tests/test-verify.c: Guard each negative test with a unique id.
47994         Also avoid warning about unused left hand of comma expressions.
47996 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
47998         Further improvements to verify.h, suggested by Eric Blake.
47999         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
48000         the GL_* versions, to avoid collision with OpenGL.
48001         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
48002         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
48003         than testing merely whether it's defined.
48005         Modify verify.h to pacify gcc -Wredundant_decls.
48006         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
48007         These use the prefix "GL_" since they're likely to be useful elsewhere.
48008         We may need to break them out into a different .h file.
48009         (__COUNTER__): Define to 0 if the compiler doesn't support it.
48010         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
48011         of verify_function__.
48013 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48015         Tests for module pwrite.
48016         * modules/pwrite-tests: New file.
48017         * tests/test-pwrite.sh: New file.
48018         * tests/test-pwrite.c: New file.
48020         New module pwrite.
48021         * lib/unistd.in.h (pwrite): New declaration.
48022         * lib/pwrite.c: New file, from glibc with modifications.
48023         * m4/pwrite.m4: New file.
48024         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
48025         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
48026         REPLACE_PWRITE.
48027         * modules/pwrite: New file.
48028         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
48029         REPLACE_PWRITE.
48030         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
48031         * doc/posix-functions/pwrite.texi: Mention the new module.
48033 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
48035         pread: Update documentation.
48036         * doc/posix-functions/pread.texi: Mention the 'pread' module.
48038 2010-05-04  Eric Blake  <eblake@redhat.com>
48040         docs: update cygwin progress
48041         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
48042         this bug.
48043         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
48044         Added in cygwin 1.7.2.
48045         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
48046         Likewise.
48047         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
48048         Likewise.
48049         * doc/glibc-functions/dup3.texi (dup3): Likewise.
48050         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48051         * doc/glibc-functions/accept4.texi (accept4): Likewise.
48052         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
48053         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
48054         Mention nproc module.
48055         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
48056         bug in cygwin 1.7.5 addition.
48057         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
48058         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
48059         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
48060         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
48061         1.7.5.
48062         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
48063         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
48064         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
48065         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
48066         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
48067         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
48068         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
48069         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
48070         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
48071         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
48072         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
48073         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
48074         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
48075         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
48076         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
48077         Likewise.
48078         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
48079         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
48080         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
48081         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
48082         Likewise.
48083         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
48084         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
48085         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
48086         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
48087         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
48088         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
48089         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
48090         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
48091         Likewise.
48092         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
48093         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
48094         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
48095         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
48096         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
48097         Likewise.
48098         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
48099         Likewise.
48100         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
48101         Likewise.
48102         * doc/glibc-functions/xdrrec_endofrecord.texi
48103         (xdrrec_endofrecord): Likewise.
48104         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
48105         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
48106         Likewise.
48107         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
48108         Likewise.
48110 2010-05-04  Jim Meyering  <meyering@redhat.com>
48112         gendocs.sh: make its "-s FILE" option more useful
48113         * build-aux/gendocs.sh: When honoring the -s FILE option, update
48114         $PACKAGE to reflect the probably-different basename of "FILE".
48116 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48118         bootstrap: don't ignore download_po_files failure
48119         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
48120         failure.
48122 2010-05-03  Jim Meyering  <meyering@redhat.com>
48124         maint.mk: allow to pass options to gendocs.sh
48125         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
48126         (gendocs_options_): New overridable variable.
48128         gnu-web-doc-update: don't ignore configure or build failure
48129         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
48131         announce-gen: backslash-escape '@'s in --help output
48132         * build-aux/announce-gen: Fix syntax errors.
48134         maint.mk, announce-gen: allow project-specific announcement mail headers
48135         * top/maint.mk (translation_project_): Define default.
48136         (announcement_Cc_, announcement_mail_headers_): Likewise.
48137         (announcement): Invoke announce-gen with new --mail-headers option.
48138         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
48140         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
48141         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
48142         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
48143         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
48144         line in the "err2" output file when running "make check" in verbose
48145         mode (i.e., with set -x enabled).
48147 2010-05-03  Bruno Haible  <bruno@clisp.org>
48149         wctob: Fix for weird platforms.
48150         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
48151         argument value.
48153 2010-05-03  Jim Meyering  <meyering@redhat.com>
48155         maint.mk: prohibit unwarranted use of <strings.h>
48156         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
48157         strings.h in a file that does not also use strcasecmp, strncasecmp,
48158         ffs or ffsll.
48160         maint.mk: remove obsolete comments
48161         * top/maint.mk: Remove stale, commented-out rules.
48163 2010-05-02  Bruno Haible  <bruno@clisp.org>
48165         wcwidth: Declare also when it's aliased.
48166         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
48167         macro.
48169 2010-05-02  Bruno Haible  <bruno@clisp.org>
48171         Fix regression from 2010-04-25.
48172         * gnulib-tool (func_modules_transitive_closure): Check the status of
48173         all modules, not only of the tests that are of the form foo-tests where
48174         foo is a module.
48176 2010-05-02  Bruno Haible  <bruno@clisp.org>
48178         wctob: Work around nasty Cygwin 1.7.2 bug.
48179         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
48180         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
48182 2010-05-01  Bruno Haible  <bruno@clisp.org>
48184         fpurge: Sharper test.
48185         * tests/test-fpurge.c (main): Add one more ftell check.
48186         * modules/fpurge-tests (Depends-on): Add ftell.
48187         Suggested by Eric Blake.
48189 2010-05-01  Bruno Haible  <bruno@clisp.org>
48191         ftello: Another test.
48192         * tests/test-ftello3.c: New file.
48193         * modules/ftello-tests (Files): Add it.
48194         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
48195         MOSTLYCLEANFILES.
48197         ftell: Another test.
48198         * tests/test-ftell3.c: New file.
48199         * modules/ftell-tests (Files): Add it.
48200         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
48201         MOSTLYCLEANFILES.
48203 2010-05-01  Bruno Haible  <bruno@clisp.org>
48205         ftell, ftello: Work around Solaris bug.
48206         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
48207         * lib/ftello.c: Include stdio-impl.h.
48208         (ftello): On Solaris, when _IOWRT is set, compute the result without
48209         looking at _IOREAD.
48210         * modules/ftello (Files): Add lib/stdio-impl.h.
48211         * doc/posix-functions/ftell.texi: Mention Solaris bug.
48212         * doc/posix-functions/ftello.texi: Likewise.
48213         Reported by Eric Blake.
48215 2010-05-01  Bruno Haible  <bruno@clisp.org>
48217         freading: Adapt to special meaning of _IOREAD flag on Solaris.
48218         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
48219         the _IOWRT flag is also set.
48221 2010-05-01  Bruno Haible  <bruno@clisp.org>
48223         Fix doc about a HP-UX stdio bug.
48224         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
48225         * doc/posix-functions/ftello.texi: Likewise.
48227 2010-05-01  Bruno Haible  <bruno@clisp.org>
48229         lseek test: Fix failure on Solaris.
48230         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
48231         output.
48233 2010-04-30  Jim Meyering  <meyering@redhat.com>
48235         bootstrap: don't ignore failure to generate po*/Makevars
48236         * build-aux/bootstrap (with_gettext): Don't ignore failure
48237         to create po/Makevars or runtime-po/Makevars.
48239 2010-04-29  Eric Blake  <eblake@redhat.com>
48241         headers: relax license to LGPLv2+
48242         * modules/fcntl-h (License): Relax license.
48243         * modules/getopt-posix (License): Likewise.
48244         * modules/locale (License): Likewise.
48245         * modules/math (License): Likewise.
48246         * modules/pty (License): Likewise.
48247         * modules/sched (License): Likewise.
48248         * modules/search (License): Likewise.
48249         * modules/spawn (License): Likewise.
48250         * modules/stdarg (License): Likewise.
48251         * modules/sysexits (License): Likewise.
48253 2010-04-29  Jim Meyering  <meyering@redhat.com>
48255         inttypes: relax license to LGPLv2+
48256         * modules/inttypes (License): Relax license.
48258 2010-04-29  Simon Josefsson  <simon@josefsson.org>
48260         * top/maint.mk (indent): Run twice to produce idempotent results.
48262 2010-04-28  Bruno Haible  <bruno@clisp.org>
48264         getdate: Generate getdate.c in the source directory.
48265         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
48266         MOSTLYCLEANFILES.
48267         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
48269 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
48271         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
48272         is not declared as a const *; avoid warnings in that case.
48274 2010-04-28  Eric Blake  <eblake@redhat.com>
48276         canonicalize-lgpl: avoid compiler warning
48277         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
48278         declaration' / 'extraneous semicolon' warning with some compilers.
48279         Reported by Andreas Gruenbacher.
48281 2010-04-28  Jim Meyering  <meyering@redhat.com>
48283         init.sh: ensure a more reliable exit status when exiting via trap
48284         * tests/init.sh (setup_): Don't rely on $? in signal handler.
48285         Inspired by patches from Dmitry V. Levin.
48286         Also trap on signal 3 (SIGQUIT).
48288 2010-04-27  Bruno Haible  <bruno@clisp.org>
48290         Update doc about utimes().
48291         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
48292         'utimens' module.
48293         Reported by Andreas Gruenbacher <agruen@suse.de>.
48295 2010-04-27  Eric Blake  <eblake@redhat.com>
48297         full-read, full-write: relax license
48298         * modules/full-read (License): Drop to LGPLv2+.
48299         * modules/full-write (License): Likewise.
48300         * modules/safe-read (License): Likewise.
48301         * modules/safe-write (License): Likewise.
48303         pthread: mention library for linking
48304         * modules/pthread (Link): Mention $(LIB_PTHREAD).
48306 2010-04-27  Jim Meyering  <meyering@redhat.com>
48308         maint.mk: fix a bug introduced in last change
48309         * top/maint.mk (gl_assured_headers_): Now that all names are on
48310         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
48311         is not anchored to end of word, it should be adequate.
48313         maint.mk: avoid side-effect in latest syntax-check
48314         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
48315         to run commands via $(shell...), and hence to incur cost only when
48316         the new rule is actually run.
48318         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
48319         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
48320         and use that to create a regexp used to detect all #if HAVE_..._H uses.
48321         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
48322         (gl_assured_headers_, az_, AZ_): Define.
48323         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
48325 2010-04-26  Jim Meyering  <jim@meyering.net>
48326             Bruno Haible  <bruno@clisp.org>
48328         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
48329         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
48330         Prompted by an exchange with Gilles Espinasse.
48332 2010-04-26  Jim Meyering  <meyering@redhat.com>
48334         git-version-gen: aesthetic tweak
48335         * build-aux/git-version-gen: Use "$nl" rather than a literal,
48336         so that the command remains on a single line.
48338 2010-04-26  Eric Blake  <eblake@redhat.com>
48340         git-version-gen: allow use on EBCDIC hosts
48341         * build-aux/git-version-gen (dirty): Use literal rather than tying
48342         ourselves to ascii.
48343         Reported by Steve Goetze.
48345 2010-04-25  Bruno Haible  <bruno@clisp.org>
48347         netdb: Add support for GNULIB_POSIXCHECK.
48348         * lib/netdb.in.h: Include warn-on-use.h.
48349         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
48350         functions are used when GNULIB_POSIXCHECK is defined and the
48351         getaddrinfo module is not in use.
48352         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
48353         freeaddrinfo, gai_strerror, getnameinfo are declared.
48354         * modules/netdb (Depends-on): Add warn-on-use.
48355         (Makefile.am): Include warn-on-use.h in netdb.h.
48357 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
48359         build: avoid "make check" failure without .git/ directory
48360         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
48361         there is no .git/ directory.
48363 2010-04-25  Bruno Haible  <bruno@clisp.org>
48365         ptsname: Fix misuse of ttyname_r.
48366         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
48367         of errno.
48369 2010-04-25  Bruno Haible  <bruno@clisp.org>
48371         ttyname_r: Make it work on Solaris 10.
48372         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
48373         if the system function has the POSIX declaration. Test whether the
48374         function fails if the buffer is less than 128 bytes large.
48375         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
48376         system's ttyname_r function. Provide a reasonably large buffer.
48377         * modules/ttyname_r (Depends-on): Add extensions.
48378         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
48380 2010-04-25  Bruno Haible  <bruno@clisp.org>
48382         Use the 'extensions' module for some more functions on Solaris.
48383         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
48384         module.
48385         * doc/posix-functions/ctime_r.texi: Likewise.
48386         * doc/posix-functions/getgrgid_r.texi: Likewise.
48387         * doc/posix-functions/getgrnam_r.texi: Likewise.
48388         * doc/posix-functions/getpwnam_r.texi: Likewise.
48389         * doc/posix-functions/getpwuid_r.texi: Likewise.
48390         * doc/posix-functions/readdir_r.texi: Likewise.
48391         * doc/posix-functions/sigwait.texi: Likewise.
48392         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
48393         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
48395 2010-04-25  Bruno Haible  <bruno@clisp.org>
48397         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
48398         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
48399         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
48400         * lib/ttyname_r.c: Include <limits.h>.
48401         (ttyname_r): Define using the system's ttyname_r function, if it exists
48402         and not on Solaris.
48403         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
48404         set.
48405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
48406         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
48407         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
48408         Reported by Simon Josefsson.
48410 2010-04-25  Bruno Haible  <bruno@clisp.org>
48412         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
48413         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
48414         * doc/posix-functions/ctime_r.texi: Likewise.
48415         * doc/posix-functions/getgrgid_r.texi: Likewise.
48416         * doc/posix-functions/getgrnam_r.texi: Likewise.
48417         * doc/posix-functions/getlogin_r.texi: Likewise.
48418         * doc/posix-functions/getpwnam_r.texi: Likewise.
48419         * doc/posix-functions/getpwuid_r.texi: Likewise.
48420         * doc/posix-functions/readdir_r.texi: Likewise.
48421         * doc/posix-functions/sigwait.texi: Likewise.
48422         * doc/posix-functions/ttyname_r.texi: Likewise.
48423         Reported by Simon Josefsson.
48425 2010-04-25  Bruno Haible  <bruno@clisp.org>
48427         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
48428         * gnulib-tool (func_usage): Document that --with-*-tests options apply
48429         also to --create-testdir.
48430         (func_acceptable): Don't consider the status of *-tests modules here.
48431         (func_modules_transitive_closure): Consider it here, before including a
48432         test module.
48433         (func_import, func_create_testdir): Set inc_all_direct_tests,
48434         inc_all_indirect_tests.
48435         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
48436         --create-testdir and --create-megatestdir.
48438 2010-04-25  Bruno Haible  <bruno@clisp.org>
48440         gnulib-tool: Add --without-*-tests options.
48441         * gnulib-tool (func_usage): Document the --without-*-tests options.
48442         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
48443         excl_unportable_tests): New variables.
48444         Fail if they are specified with --import or --update.
48445         (func_acceptable): Respect the excl_*_tests variables.
48446         (func_import): Set the excl_*_tests variables to empty.
48448 2010-04-25  Simon Josefsson  <simon@josefsson.org>
48449             Bruno Haible  <bruno@clisp.org>
48451         Work around a MacOS X 10.4 bug with openpty.
48452         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
48453         * tests/test-openpty.c (main): Close the master side explicitly.
48455 2010-04-25  Bruno Haible  <bruno@clisp.org>
48457         strnlen: Fix a C++ test error on MacOS X and Solaris.
48458         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
48459         the function is not declared.
48460         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
48461         Simon Josefsson.
48463 2010-04-24  Bruno Haible  <bruno@clisp.org>
48465         Avoid a gcc warning.
48466         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
48467         of correct type for %08lx directive.
48468         Reported by Eric Blake.
48470 2010-04-24  Bruno Haible  <bruno@clisp.org>
48472         vasnprintf: Correct errno value in case of out-of-memory.
48473         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
48474         or sprintf. Use the errno value from SNPRINTF or sprintf.
48475         Reported by Ian Beckwith <ianb@erislabs.net>.
48477 2010-04-24  Bruno Haible  <bruno@clisp.org>
48479         ansi-c++-opt: Find correct compiler when cross-compiling.
48480         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
48481         AC_CHECK_PROGS.
48482         Reported by Simon Josefsson.
48484 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
48486         vc-list-files: Add support for subversion
48487         * build-aux/vc-list-files: Use "svn list" to generate the list of
48488         files controlled by subversion.
48490 2010-04-23  Jim Meyering  <meyering@redhat.com>
48492         vc-list-files tests: convert to use init.sh
48493         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
48494         path_prepend_.
48495         Use Exit, not exit.
48496         Use skip_ rather than open coding it.
48497         Remove trap set-up and compare definitions.
48498         * tests/test-vc-list-files-git.sh: Likewise.
48499         * modules/vc-list-files-tests (Files): Add tests/init.sh.
48501 2010-04-22  Simon Josefsson  <simon@josefsson.org>
48503         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
48504         backup files.
48506 2010-04-21  Simon Josefsson  <simon@josefsson.org>
48508         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
48510 2010-04-20  Eric Blake  <eblake@redhat.com>
48512         tests: be robust to ignored SIGPIPE
48513         * tests/test-select-in.sh: Consume all output.
48514         * tests/test-lseek.sh: Check correct exit status, while avoiding
48515         EPIPE.
48517 2010-04-20  Simon Josefsson  <simon@josefsson.org>
48518             Bruno Haible  <bruno@clisp.org>
48520         visibility: Don't use -fvisibility if it leads to a warning.
48521         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
48522         yes, don't pretend that visibility works if it leads to a warning.
48523         Reported by Mike Gran <spk121@yahoo.com>.
48525 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
48527         * build-aux/bootstrap: Use "git -h" for testing for supported options
48528         instead of "git --help".  The short-form option only shows a summary,
48529         and doesn't layout the full man page.  Grep for the full option name
48530         in the summary, too.
48532 2010-04-19  Bruno Haible  <bruno@clisp.org>
48534         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
48535         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
48536         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
48537         mention of RELOCATABLE_STRIP.
48538         Reported by Sylvain Beucler <beuc@beuc.net>.
48540 2010-04-19  Bruno Haible  <bruno@clisp.org>
48542         * lib/diffseq.h: Fix typo in comment.
48543         Reported by Eric Blake.
48545 2010-04-19  Bruno Haible  <bruno@clisp.org>
48547         ioctl: Move autoconf macro to a .m4 file.
48548         * m4/ioctl.m4: New file, extracted from modules/ioctl.
48549         * modules/ioctl (Files): Add it.
48550         (configure.ac): Simply invoke gl_FUNC_IOCTL.
48551         Reported by Ian Beckwith <ianb@erislabs.net>.
48553 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
48554             Bruno Haible  <bruno@clisp.org>
48556         diffseq: Accommodate use-case with abstract arrays.
48557         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
48558         is not defined.
48559         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
48560         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
48562 2010-04-18  Bruno Haible  <bruno@clisp.org>
48564         * doc/posix-headers/stdbool.texi: More precise wording.
48566 2010-04-17  Jim Meyering  <meyering@redhat.com>
48568         maint.mk: use gnu-style indentation in an embedded perl script
48569         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
48570         Rename variable: s/two/last_two_bytes/
48572 2010-04-16  Eric Blake  <eblake@redhat.com>
48574         test-stdbool: skip test that fails with Solaris CC
48575         * tests/test-stdbool.c (f): Skip test that causes compilation
48576         error under buggy C++ compiler.
48577         * lib/stdbool.in.h: Document the limitation.
48578         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
48580         setenv: allow compilation with C++
48581         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
48582         register keyword.
48584         stdint: allow test to pass with C++
48585         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
48587         getopt: allow compilation with C++
48588         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
48589         struct.
48590         * lib/getopt.c (_getopt_internal_r): Use correct type.
48591         Reported by Dagobert Michelson, via Joel E. Denny.
48593 2010-04-16  Bruno Haible  <bruno@clisp.org>
48595         Override netdb.h always.
48596         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
48597         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
48598         Reported by Ludovic Courtès <ludo@gnu.org>.
48600 2010-04-15  Bruno Haible  <bruno@clisp.org>
48602         openpty: Fix mistake from 2010-03-21.
48603         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
48604         Reported by Simon Josefsson.
48606 2010-04-15  Eric Blake  <eblake@redhat.com>
48608         test-forkpty: fix expected signature
48609         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
48610         Reported by Simon Josefsson.
48612 2010-04-15  Jim Meyering  <meyering@redhat.com>
48614         maint.mk: texinfo_suffix_re_: correct the default regexp
48615         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
48617         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
48618         make it configurable via texinfo_suffix_re_.
48620 2010-04-14  Eric Blake  <eblake@redhat.com>
48622         strtok_r: relax license to LGPLv2+
48623         * modules/strtok_r (License): Relax license.
48624         Reported by Matthias Bolte.
48626 2010-04-14  Simon Josefsson  <simon@josefsson.org>
48628         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
48629         version 1.4.4 by default instead of requiring the libgcrypt
48630         version used during build.  This makes it possible to use the
48631         application with older but still binary compatible libgcrypt
48632         versions.
48634 2010-04-13  Eric Blake  <eblake@redhat.com>
48636         getopt-gnu: match recent glibc fixes and posix ruling
48637         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
48638         '+' handling, when requesting extensions.
48639         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
48640         'W;' handling.
48641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
48642         * doc/posix-functions/getopt.texi (getopt): Document this.
48643         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48644         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48645         Likewise.
48647         getopt: merge bug fixes from glibc
48648         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
48649         diagnostics.  Honor '+:' correctly.  Reject ';'.
48651         getopt-posix: detect MacOS bug
48652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
48653         optind when missing a required argument.
48654         * doc/posix-functions/getopt.texi (getopt): Document the bug.
48655         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48656         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48657         Likewise.
48659         getopt-posix: avoid spurious failure on Solaris
48660         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
48661         an indicator that setting optind=1 is sufficient for reset.
48663         getopt-posix: avoid spurious failure on FreeBSD
48664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
48665         in POSIX mode, since the m4 test uses it.
48667         gnulib-tool: silence warning on BSD sh
48668         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
48670 2010-04-13  Jim Meyering  <meyering@redhat.com>
48672         doc: users.txt: GNU patch now uses gnulib
48673         * users.txt: Add patch.
48675 2010-04-12  Jim Meyering  <meyering@redhat.com>
48677         maint.mk: generate more concise timing data for syntax-check rules
48678         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
48679         " done" from each line that reports a syntax-check test duration.
48681 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
48683         git-version-gen: use "git update-index..." rather than "git status"
48684         * build-aux/git-version-gen: Use git update-index --refresh, not
48685         "git status".  With some versions of git, "git status" would fail
48686         to update the index and result in an unwarranted "-dirty" suffix.
48688 2010-04-11  Jim Meyering  <meyering@redhat.com>
48690         openat: correct formatting (no semantic change)
48691         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
48692         Suggested by Bruno Haible.
48694 2010-04-11  Bruno Haible  <bruno@clisp.org>
48696         Stricter declaration checking in testdirs.
48697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48698         If for_tests is true, augment AM_CPPFLAGS to define
48699         GNULIB_STRICT_CHECKING.
48700         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
48701         GNULIB_STRICT_CHECKING is defined, verify that the function is
48702         declared.
48704 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
48705             Bruno Haible  <bruno@clisp.org>
48707         libunistring: Improve configure output.
48708         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
48709         Don't say "consider installing GNU libunistring" when checking again
48710         with libiconv.
48712 2010-04-11  Bruno Haible  <bruno@clisp.org>
48714         libunistring: Correct value of $LTLIBUNISTRING.
48715         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
48716         correct the value of $LTLIBUNISTRING.
48718 2010-04-11  Bruno Haible  <bruno@clisp.org>
48720         havelib: Add static libraries to LIBS in the right order.
48721         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
48722         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
48724 2010-04-11  Bruno Haible  <bruno@clisp.org>
48726         libunistring: Detect libunistring also when it depends on libiconv.
48727         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
48728         the second AC_LIB_HAVE_LINKFLAGS invocation.
48730 2010-04-11  James Youngman  <jay@gnu.org>
48732         close-stream: declare local scalars to be "const"
48733         * lib/close-stream.c (close_stream): Make boolean variables const
48734         to document the fact that we set but do not change them.
48736 2010-04-11  Bruno Haible  <bruno@clisp.org>
48738         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
48740 2010-04-11  Jim Meyering  <meyering@redhat.com>
48742         maint.mk: don't include dist-check.mk
48743         * top/maint.mk: Remove bogus include directive.
48745         maint.mk: improve empty-line-at-EOF check
48746         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
48747         solution, rather than tail+Perl-based one.  The latter would read
48748         a few kilobytes from the end of each file, and did not handle empty
48749         files properly.
48751         maint.mk: print the elapsed time for each syntax-check rule
48752         * top/maint.mk (sc_m_rules_): Save start time in a file.
48753         (sc_z_rules_): New rules: remove temp file and print elapsed time.
48754         (local-check): Interpose the .z rules
48756 2010-04-11  Jim Meyering  <meyering@redhat.com>
48758         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
48759         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
48760         empty file with one that ends in an empty line.
48762 2010-04-10  Bruno Haible  <bruno@clisp.org>
48764         mkdir: Make it work on mingw64.
48765         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
48766         * lib/mkdir.c: Update comment.
48767         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
48769 2010-04-10  Bruno Haible  <bruno@clisp.org>
48771         Don't override improved macro from newer autoconf.
48772         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
48773         autoconf >= 2.62.
48774         Reported by Joel E. Denny <jdenny@clemson.edu>.
48776 2010-04-10  Jim Meyering  <meyering@redhat.com>
48778         maint.mk: new syntax-check rule: prohibit empty lines at end of file
48779         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
48781         maint.mk: correct a diagnostic
48782         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
48783         in diagnostic; now use $prohibit.
48785 2010-04-10  Bruno Haible  <address@hidden>
48787         fchownat: Fix a C++ test error on Solaris 8.
48788         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
48789         the function does not exist.
48791 2010-04-10  Bruno Haible  <bruno@clisp.org>
48793         vasnprintf: Add more tests.
48794         * tests/test-vasnprintf-posix.c: Include <errno.h>.
48795         (test_function): Test converting an invalid wide string.
48797         vasnprintf: Correct handling of unconvertible wide string arguments.
48798         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
48799         VASNPRINTF.
48800         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
48801         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
48802         smaller than the expected maximum need for the directive. Set errno to
48803         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
48804         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
48805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
48806         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
48807         * modules/vasnprintf (Files): Add m4/printf.m4.
48808         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48810 2010-04-10  Bruno Haible  <bruno@clisp.org>
48812         vasnprintf: Fix crash in %ls directive.
48813         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
48814         string is passed as argument to %ls, with no precision and no width.
48815         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48817 2010-04-10  Bruno Haible  <bruno@clisp.org>
48819         vasnprintf: Fix multiple test failures on mingw.
48820         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
48821         _snprintf, or snwprintf, not _snwprintf.
48823 2010-04-10  Bruno Haible  <bruno@clisp.org>
48825         write: Fix a C++ test error on mingw.
48826         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
48828 2010-04-10  Bruno Haible  <bruno@clisp.org>
48830         vasnprintf test: Reduce code duplication.
48831         * tests/test-vasnprintf.c (test_function): New function, extracted from
48832         test_vasnprintf.
48833         (test_vasnprintf, test_asnprintf): Invoke it.
48835 2010-04-10  Bruno Haible  <bruno@clisp.org>
48837         strnlen: Fix warning in C++ mode on MacOS X.
48838         * lib/string.in.h (strnlen): Use the modern idiom.
48839         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
48840         defining strnlen as a macro already in <config.h>.
48841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48842         REPLACE_STRNLEN.
48843         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
48844         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48846 2010-04-08  James Youngman  <jay@gnu.org>
48848         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
48849         the example.
48851 2010-04-09  Jim Meyering  <meyering@redhat.com>
48853         maint.mk: print better diagnostic when there is no $(_hv_file)
48854         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
48855         announce that when $(_hv_file) (aka help-version) does not exist.
48857         init.sh: run tr in the "C" locale to avoid multibyte interpretation
48858         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
48859         not try to interpret its random input bytes.  Jarno Rajahalme reported
48860         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
48861         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
48862         (mktempd_): Likewise, just in case.
48864         ftruncate: add two years to projected module removal date: 2012
48865         * m4/ftruncate.m4: Adjust comments.
48867         ftruncate: mark module as obsolete; even MinGW provides it, now
48868         * modules/ftruncate (Status): Obsolete.
48869         (Notice): Say that.
48870         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
48871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
48873 2010-04-08  Bruno Haible  <bruno@clisp.org>
48875         Fix side effects from tests-related modules.
48876         * modules/dprintf-posix (Comment): New section.
48877         * modules/fprintf-posix (Comment): Likewise.
48878         * modules/obstack-printf-posix (Comment): Likewise.
48879         * modules/printf-posix (Comment): Likewise.
48880         * modules/snprintf-posix (Comment): Likewise.
48881         * modules/sprintf-posix (Comment): Likewise.
48882         * modules/vasnprintf-posix (Comment): Likewise.
48883         * modules/vasprintf-posix (Comment): Likewise.
48884         * modules/vdprintf-posix (Comment): Likewise.
48885         * modules/vfprintf-posix (Comment): Likewise.
48886         * modules/vprintf-posix (Comment): Likewise.
48887         * modules/vsnprintf-posix (Comment): Likewise.
48888         * modules/vsprintf-posix (Comment): Likewise.
48889         * modules/xprintf-posix (Comment): Likewise.
48890         * modules/xvasprintf-posix (Comment): Likewise.
48891         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
48892         * modules/floorf-tests (Depends-on): Likewise.
48893         * modules/round-tests (Depends-on): Likewise.
48894         * modules/roundf-tests (Depends-on): Likewise.
48895         * modules/trunc-tests (Depends-on): Likewise.
48896         * modules/truncf-tests (Depends-on): Likewise.
48897         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
48898         'fprintf-posix' module is not present.
48899         * tests/test-floorf2.c (check): Likewise.
48900         * tests/test-trunc2.c (check): Likewise.
48901         * tests/test-truncf2.c (check): Likewise.
48902         * tests/test-round2.c (equal): Likewise.
48903         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48905 2010-04-07  Karl Berry  <karl@gnu.org>
48907         * config/srclist.txt,
48908         * config/srclistvars.sh,
48909         * config/srclist-update: doc fixes.
48911 2010-04-07  Jim Meyering  <meyering@redhat.com>
48913         maint.mk: add a PATH crosschecking syntax-check rule
48914         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
48915         Useful if you use a test like the one in help-version (coreutils,
48916         diffutils, grep, gzip) that ensures $(VERSION) matches what is
48917         printed by prog --version.
48919 2010-04-06  Bruno Haible  <bruno@clisp.org>
48921         Fix link error on mingw.
48922         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
48923         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
48925 2010-04-06  Bruno Haible  <bruno@clisp.org>
48927         Assume rmdir exists.
48928         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
48930 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
48932         doc: update users.txt
48933         * users.txt: Add gcal.
48935 2010-04-06  Jim Meyering  <meyering@redhat.com>
48937         init.sh: simply unset TMPDIR rather than risking env -i
48938         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
48939         although it probably works fine on all Unix-based systems, some
48940         systems (Cygwin?) cannot tolerate a totally cleared environment.
48941         Suggestion from Eric Blake.
48943 2010-04-06  Jim Meyering  <meyering@redhat.com>
48945         init.sh: portability fix: use env's POSIX-specified -i option not -u
48946         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
48947         than unportable env -u.  Solaris 5.11's env lacks support for -u.
48949 2010-04-05  Bruno Haible  <bruno@clisp.org>
48951         btowc: Work around Cygwin 1.7.2 bug.
48952         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
48953         does not map NUL to 0.
48954         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
48956 2010-04-05  Bruno Haible  <bruno@clisp.org>
48958         Make the multithread modules work on Cygwin 1.7.2.
48959         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
48960         imported symbols can be declared weak, so that it returns "no" on
48961         Cygwin 1.7.2.
48963 2010-04-05  Bruno Haible  <bruno@clisp.org>
48965         Use the module 'strncat'.
48966         * modules/unistr/u8-strncat (Depends-on): Add strncat.
48968         Tests for module 'strncat'.
48969         * modules/strncat-tests: New file.
48970         * tests/test-strncat.c: New file.
48972         New module 'strncat'.
48973         * lib/string.in.h (strncat): New declaration.
48974         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
48975         * m4/strncat.m4: New file, based on m4/memchr.m4.
48976         * modules/strncat: New file.
48977         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
48978         is declared.
48979         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
48980         REPLACE_STRNCAT.
48981         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
48982         REPLACE_STRNCAT.
48983         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
48984         module.
48985         * tests/test-string-c++.cc: Check signature of strncat.
48987 2010-04-05  Jim Meyering  <meyering@redhat.com>
48989         xstrtoumax-tests: convert to use init.sh
48990         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
48991         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
48992         Use Exit, not exit.
48993         Remove uses of $EXEEXT and "./" to run a program in the current dir.
48995         xstrtoimax-tests: convert to use init.sh
48996         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
48997         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
48998         Use Exit, not exit.
48999         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49001 2010-04-05  Bruno Haible  <bruno@clisp.org>
49003         sys_socket: Avoid #define replacements in C++ mode.
49004         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
49005         warning to the function if possible, rather than #defining the symbol
49006         to a dysfunctional alias.
49008 2010-04-05  Bruno Haible  <bruno@clisp.org>
49010         fseeko: Fix C++ test error on mingw.
49011         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
49012         gl_FUNC_FSEEKO.
49013         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
49014         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
49015         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
49016         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
49018 2010-04-05  Bruno Haible  <bruno@clisp.org>
49020         duplocale: Improve test output.
49021         * tests/test-duplocale.c (main): Print reason for skipped test.
49023 2010-04-05  Bruno Haible  <bruno@clisp.org>
49025         Assume rmdir exists.
49026         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
49027         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
49029 2010-04-05  Bruno Haible  <bruno@clisp.org>
49031         Fix link error on Solaris 8 with cc.
49032         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
49034 2010-04-05  Bruno Haible  <bruno@clisp.org>
49036         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49037         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
49039 2010-04-05  Bruno Haible  <bruno@clisp.org>
49041         vasprintf: Update documentation.
49042         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
49044 2010-04-05  Bruno Haible  <bruno@clisp.org>
49046         ptsname: Improve test.
49047         * tests/test-ptsname.c (main): Also try the various master names of BSD
49048         systems.
49050 2010-04-05  Bruno Haible  <bruno@clisp.org>
49052         memchr: Avoid a possible C++ test error.
49053         * lib/string.in.h (memchr): Provide declaration if function is missing.
49054         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
49055         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
49056         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
49057         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
49059 2010-04-05  Bruno Haible  <bruno@clisp.org>
49061         strtok_r: Improve idiom.
49062         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
49063         AC_LIBOBJ is used.
49065 2010-04-05  Bruno Haible  <bruno@clisp.org>
49067         strdup: Improve idiom.
49068         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
49069         AC_LIBOBJ is used.
49070         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
49071         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
49072         when AC_LIBOBJ is used.
49074 2010-04-05  Bruno Haible  <bruno@clisp.org>
49076         mbsinit, mbrtowc, wcrtomb: Improve idioms.
49077         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
49078         don't set REPLACE_MBSINIT to 1.
49079         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
49080         don't set REPLACE_MBRTOWC to 1.
49081         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
49082         exist, don't set REPLACE_MBSRTOWCS to 1.
49083         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
49084         exist, don't set REPLACE_MBSNRTOWCS to 1.
49085         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
49086         don't set REPLACE_WCRTOMB to 1.
49087         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
49088         exist, don't set REPLACE_WCSRTOMBS to 1.
49089         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
49090         exist, don't set REPLACE_WCSNRTOMBS to 1.
49092 2010-04-05  Bruno Haible  <bruno@clisp.org>
49094         ldexpl: Improve idiom.
49095         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
49096         make sure to set HAVE_DECL_LDEXPL to 0.
49098 2010-04-05  Jim Meyering  <meyering@redhat.com>
49100         xstrtol-tests: convert to use init.sh
49101         * modules/xstrtol-tests (Files): Add tests/init.sh.
49102         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49103         Use Exit, not exit.
49104         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49106         atexit-tests: convert to use init.sh
49107         * modules/atexit-tests (Files): Add tests/init.sh.
49108         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
49109         Use Exit, not exit.
49110         Remove uses of $EXEEXT and "./" to run a program in the current dir.
49112         init.sh: fix typo
49113         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
49115         init.sh: make it easier for a test script to write to the tty, ...
49116         when using automake's parallel-tests mode.
49117         * tests/init.sh (stderr_fileno_): Define overridable variable.
49118         (warn_): New function, to use it.
49119         (fail_, skip_, framework_failure_): Use warn_.
49121 2010-04-04  Bruno Haible  <bruno@clisp.org>
49123         btowc: Avoid warning.
49124         * lib/btowc.c: Include <stdlib.h>.
49125         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
49127 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
49128             Bruno Haible  <bruno@clisp.org>
49130         wchar: Port to NetBSD 1.5.
49131         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
49132         * lib/wctype.in.h (WEOF): Likewise.
49134 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
49135             Bruno Haible  <bruno@clisp.org>
49137         Port extended stdio to NetBSD 1.5.
49138         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
49139         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
49140         older.
49142 2010-04-04  Bruno Haible  <bruno@clisp.org>
49144         string: Remove unused substitution.
49145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
49146         HAVE_DECL_STRERROR.
49147         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
49149 2010-04-04  Bruno Haible  <bruno@clisp.org>
49151         strtod: Avoid a possible C++ test error.
49152         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
49153         set REPLACE_STRTOD.
49155 2010-04-04  Bruno Haible  <bruno@clisp.org>
49157         strerror: Update documentation.
49158         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
49160 2010-04-04  Bruno Haible  <bruno@clisp.org>
49162         stdio: Fix some C++ test errors on Solaris 8 with GCC.
49163         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
49164         _GL_CXXALIAS_SYS_CAST.
49166 2010-04-04  Bruno Haible  <bruno@clisp.org>
49168         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
49169         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
49170         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
49171         REPLACE_FREXPL to 1.
49172         * doc/posix-functions/frexpl.texi: Update documentation.
49174 2010-04-04  Bruno Haible  <bruno@clisp.org>
49176         math: Fix some C++ test errors on Solaris 8 and Cygwin.
49177         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
49179 2010-04-04  Bruno Haible  <bruno@clisp.org>
49181         Implement nanosleep for native Windows.
49182         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
49184 2010-04-04  Bruno Haible  <bruno@clisp.org>
49186         math: Fix some C++ test errors on Solaris 8.
49187         * lib/math.in.h (truncf, trunc): Use simpler idiom.
49189 2010-04-04  Bruno Haible  <bruno@clisp.org>
49191         math: Fix some C++ test errors on Cygwin.
49192         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
49193         truncl): Provide declaration if the system does not have it.
49194         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
49195         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
49196         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
49197         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
49198         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
49199         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
49200         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
49201         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
49202         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
49203         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
49204         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
49205         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
49206         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
49207         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
49208         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
49209         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
49210         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
49211         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
49212         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
49213         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
49214         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
49215         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
49217 2010-04-04  Bruno Haible  <bruno@clisp.org>
49219         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
49220         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49221         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49222         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49223         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49224         * m4/isinf.m4 (gl_ISINF): Likewise.
49225         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49227 2010-04-04  Bruno Haible  <bruno@clisp.org>
49229         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
49230         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49232 2010-04-04  Bruno Haible  <bruno@clisp.org>
49234         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
49235         * modules/tmpfile (configure.ac): Update.
49237         tmpfile: Fix C++ test error on mingw.
49238         * lib/stdio.in.h (tmpfile): New declaration.
49239         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
49240         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
49241         * modules/tmpfile (Depends-on): Add stdio.
49242         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49243         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
49244         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
49245         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
49246         REPLACE_TMPFILE.
49247         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
49249 2010-04-04  Bruno Haible  <bruno@clisp.org>
49251         ioctl: Fix C++ test error on mingw.
49252         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
49253         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
49254         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
49256 2010-04-03  Bruno Haible  <bruno@clisp.org>
49258         wcwidth: Fix C++ test error on mingw.
49259         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
49260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
49261         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
49263 2010-04-03  Bruno Haible  <bruno@clisp.org>
49265         nanosleep: Fix C++ test error on mingw.
49266         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
49267         * lib/time.in.h (nanosleep): Use modern idiom.
49268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
49269         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
49270         REPLACE_NANOSLEEP to 1.
49271         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
49272         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
49274 2010-04-03  Bruno Haible  <bruno@clisp.org>
49276         strptime: Fix C++ test error on mingw.
49277         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
49278         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
49279         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
49280         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
49281         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
49282         not REPLACE_STRPTIME.
49283         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
49284         REPLACE_STRPTIME.
49286 2010-04-03  Bruno Haible  <bruno@clisp.org>
49288         timegm: Fix C++ test error on mingw.
49289         * lib/time.in.h (timegm): Use modern idiom.
49290         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
49291         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
49292         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
49293         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
49295 2010-04-03  Bruno Haible  <bruno@clisp.org>
49297         timegm: Assume declaration if function exists.
49298         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
49299         if it exists. Don't clobber ac_cv_func_timegm.
49301 2010-04-03  Bruno Haible  <bruno@clisp.org>
49303         time_r: Fix C++ test error on mingw.
49304         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
49305         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
49306         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
49307         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
49308         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
49310 2010-04-03  Bruno Haible  <bruno@clisp.org>
49312         time_r: Minor updates.
49313         * modules/time_r (Description): Mention the provided functions.
49314         * lib/time_r.c: Don't include <string.h>.
49315         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
49316         * doc/posix-functions/localtime_r.texi: Likewise.
49318 2010-04-03  Bruno Haible  <bruno@clisp.org>
49320         time: Fix regression introduced on 2010-03-08.
49321         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
49322         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
49324 2010-04-03  Jim Meyering  <meyering@redhat.com>
49326         maint.mk: don't silently disable project-specific syntax-check rules
49327         * top/maint.mk (_prohibit_regexp): Define, to help people realize
49328         that they need to convert their project-specific syntax-check rules
49329         to use the new _sc_search_regexp.
49331 2010-04-03  Bruno Haible  <bruno@clisp.org>
49333         fchdir: Fix regression introduced on 2010-03-08.
49334         * lib/unistd.in.h (fchdir): Fix declaration.
49335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
49336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
49337         REPLACE_FCHDIR.
49338         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
49339         REPLACE_FCHDIR.
49341 2010-04-03  Bruno Haible  <bruno@clisp.org>
49343         getpagesize: Fix C++ test error on mingw.
49344         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
49345         system does not declare the function.
49346         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
49347         declared.
49348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49349         HAVE_DECL_GETPAGESIZE.
49350         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
49352 2010-04-03  Bruno Haible  <bruno@clisp.org>
49354         stdio: Make C++ tests work on mingw.
49355         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
49356         does not declare the function.
49358 2010-04-03  Bruno Haible  <bruno@clisp.org>
49360         ftello: Fix C++ test error on mingw.
49361         * lib/stdio.in.h (ftello): Use modern idiom.
49362         * lib/ftello.c (ftello): Renamed from rpl_ftello.
49363         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
49364         is missing and that it needs to be replaced.
49365         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
49366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
49367         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
49369 2010-04-03  Bruno Haible  <bruno@clisp.org>
49371         fseeko: Fix C++ test error on mingw.
49372         * lib/stdio.in.h (fseeko): Use modern idiom.
49373         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
49374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
49375         is missing and that it needs to be replaced.
49376         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
49377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
49378         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
49380 2010-04-03  Bruno Haible  <bruno@clisp.org>
49382         mkstemp: Fix C++ test error on mingw.
49383         * lib/stdlib.in.h (mkstemp): Use modern idiom.
49384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
49385         function is missing and that it needs to be replaced.
49386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
49387         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
49389 2010-04-03  Bruno Haible  <bruno@clisp.org>
49391         stpncpy: Fix C++ test error on mingw.
49392         * lib/string.in.h (stpncpy): Use modern idiom.
49393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
49394         function is missing and that it needs to be replaced.
49395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49396         REPLACE_STPNCPY.
49397         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
49399 2010-04-03  Bruno Haible  <bruno@clisp.org>
49401         sys_stat: Fix C++ test error on mingw.
49402         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
49403         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
49405 2010-04-03  Bruno Haible  <bruno@clisp.org>
49407         pty: Update doc.
49408         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
49410 2010-04-03  Bruno Haible  <bruno@clisp.org>
49412         unistd: Fix C++ test error on mingw.
49413         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
49415 2010-04-03  Bruno Haible  <bruno@clisp.org>
49417         Update doc regarding mingw.
49418         * doc/glibc-functions/openpty.texi: Update regarding mingw.
49419         * doc/glibc-functions/login_tty.texi: Likewise.
49420         * doc/glibc-functions/forkpty.texi: Likewise.
49422 2010-04-03  Bruno Haible  <bruno@clisp.org>
49424         stdlib: Avoid compilation failure of c-strtold on mingw.
49425         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
49427 2010-04-03  Bruno Haible  <bruno@clisp.org>
49429         locale: Make C++ tests work on Cygwin and mingw.
49430         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
49431         cannot provide the function.
49432         Reported by Simon Josefsson.
49434 2010-04-03  Bruno Haible  <bruno@clisp.org>
49436         localename: Port to MacOS X 10.6.
49437         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
49438         memory layout of the locales in MacOS X 10.6 as well.
49439         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
49441 2010-04-02  Bruno Haible  <bruno@clisp.org>
49443         gnulib-tool: Ensure that long-running tests are executed last.
49444         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
49445         running tests after the one for the other tests.
49447 2010-04-02  Bruno Haible  <bruno@clisp.org>
49449         gnulib-tool: Ensure the tests in the main directory are executed first.
49450         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
49451         start with the current directory.
49453 2010-04-02  Bruno Haible  <bruno@clisp.org>
49455         Tests for module 'havelib', moved here from GNU gettext.
49456         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
49457         modifications.
49458         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
49459         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
49460         with modifications.
49461         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
49462         modifications.
49463         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
49464         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
49465         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
49466         with modifications.
49467         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
49468         with modifications.
49469         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
49470         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
49471         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
49472         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
49473         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
49474         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
49475         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
49476         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
49477         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
49478         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
49479         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
49480         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
49481         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
49482         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
49483         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
49484         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
49485         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
49486         with modifications.
49487         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
49488         with modifications.
49489         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
49490         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
49491         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
49492         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
49493         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
49494         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
49495         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
49496         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
49497         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
49498         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
49499         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
49500         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
49501         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
49502         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
49503         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
49504         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
49505         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
49506         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
49507         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
49508         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
49509         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
49510         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
49511         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
49512         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
49513         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
49514         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
49515         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
49516         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
49517         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
49518         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
49519         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
49520         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
49521         * tests/havelib/rpathx/rpathx.c: New file, from
49522         gettext/autoconf-lib-link.
49523         * tests/havelib/rpathx/Makefile.am: New file, from
49524         gettext/autoconf-lib-link.
49525         * tests/havelib/rpathx/configure.ac: New file, from
49526         gettext/autoconf-lib-link with modifications.
49527         * tests/havelib/rpathy/rpathy.c: New file, from
49528         gettext/autoconf-lib-link.
49529         * tests/havelib/rpathy/Makefile.am: New file, from
49530         gettext/autoconf-lib-link.
49531         * tests/havelib/rpathy/configure.ac: New file, from
49532         gettext/autoconf-lib-link with modifications.
49533         * tests/havelib/rpathz/rpathz.c: New file, from
49534         gettext/autoconf-lib-link.
49535         * tests/havelib/rpathz/Makefile.am: New file, from
49536         gettext/autoconf-lib-link.
49537         * tests/havelib/rpathz/configure.ac: New file, from
49538         gettext/autoconf-lib-link with modifications.
49539         * tests/havelib/rpathlx/usex.c: New file, from
49540         gettext/autoconf-lib-link.
49541         * tests/havelib/rpathlx/Makefile.am: New file, from
49542         gettext/autoconf-lib-link.
49543         * tests/havelib/rpathlx/configure.ac: New file, from
49544         gettext/autoconf-lib-link with modifications.
49545         * tests/havelib/rpathly/usey.c: New file, from
49546         gettext/autoconf-lib-link.
49547         * tests/havelib/rpathly/Makefile.am: New file, from
49548         gettext/autoconf-lib-link.
49549         * tests/havelib/rpathly/configure.ac: New file, from
49550         gettext/autoconf-lib-link with modifications.
49551         * tests/havelib/rpathlz/usez.c: New file, from
49552         gettext/autoconf-lib-link.
49553         * tests/havelib/rpathlz/Makefile.am: New file, from
49554         gettext/autoconf-lib-link.
49555         * tests/havelib/rpathlz/configure.ac: New file, from
49556         gettext/autoconf-lib-link with modifications.
49557         * tests/havelib/rpathlyx/usey.c: New file, from
49558         gettext/autoconf-lib-link.
49559         * tests/havelib/rpathlyx/Makefile.am: New file, from
49560         gettext/autoconf-lib-link.
49561         * tests/havelib/rpathlyx/configure.ac: New file, from
49562         gettext/autoconf-lib-link with modifications.
49563         * tests/havelib/rpathlzyx/usez.c: New file, from
49564         gettext/autoconf-lib-link.
49565         * tests/havelib/rpathlzyx/Makefile.am: New file, from
49566         gettext/autoconf-lib-link.
49567         * tests/havelib/rpathlzyx/configure.ac: New file, from
49568         gettext/autoconf-lib-link with modifications.
49569         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
49570         with modifications.
49572 2010-04-02  Bruno Haible  <bruno@clisp.org>
49574         gnulib-tool: Create distributed built sources also for the tests.
49575         * gnulib-tool (func_create_testdir): Also generate distributed built
49576         sources in the tests directory.
49578 2010-04-02  Bruno Haible  <bruno@clisp.org>
49580         gnulib-tool: Obey user's environment variables.
49581         * gnulib-tool (func_create_testdir): When creating built sources,
49582         respect the environment variables for autoconf, automake, etc. given by
49583         the user.
49585 2010-04-02  Bruno Haible  <bruno@clisp.org>
49587         gnulib-tool: Provide the value of --m4-base to modules.
49588         * gnulib-tool (func_import, func_create_testdir): Emit a definition
49589         of gl_m4_base.
49591 2010-04-02  Eric Blake  <eblake@redhat.com>
49593         maint.mk: fix some fallout
49594         * NEWS: Document the incompatible change, and its effect on cfg.mk.
49595         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
49597 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
49599         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
49600         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
49601         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
49602         (sc_cast_of_x_alloc_return_value): Likewise.
49603         (sc_cast_of_alloca_return_value): Likewise.
49604         (sc_space_tab): Likewise.
49605         (sc_prohibit_atoi_atof): Likewise.
49606         (sc_prohibit_magic_number_exit): Likewise.
49607         (sc_error_exit_success): Likewise.
49608         (sc_file_system): Likewise.
49609         (sc_prohibit_have_config_h): Likewise.
49610         (sc_require_config_h): Likewise.
49611         (sc_prohibit_HAVE_MBRTOWC): Likewise.
49612         (sc_obsolete_symbols): Likewise.
49613         (sc_changelog): Likewise.
49614         (sc_program_name): Likewise.
49615         (sc_the_the): Likewise.
49616         (sc_trailing_blank): Likewise.
49617         (sc_two_space_separator_in_usage): Likewise.
49618         (sc_useless_cpp_parens): Likewise.
49619         (sc_GPL_version): Likewise.
49620         (sc_GFDL_version): Likewise.
49621         (sc_texinfo_acronym): Likewise.
49622         (sc_prohibit_cvs_keyword): Likewise.
49623         (sc_prohibit_stat_st_blocks): Likewise.
49624         (sc_prohibit_S_IS_definition): Likewise.
49625         (sc_redundant_const): Likewise.
49626         (sc_makefile_TAB_only_indentation): Likewise.
49627         (sc_m4_quote_check): Likewise.
49628         (sc_makefile_path_separator_check): Likewise.
49629         (sc_copyright_check): Likewise.
49630         (sc_Wundef_boolean): Likewise.
49631         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
49633         maint.mk: match 0 or more whitespace-before-function-call '('
49634         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
49635         that have zero or two-and-more spaces between the function name
49636         and the open parenthesis.
49637         (sc_error_message_warn_fatal): Likewise.
49638         (sc_error_message_uppercase): Likewise.
49639         (sc_error_message_period): Likewise.
49641 2010-03-31  Eric Blake  <eblake@redhat.com>
49643         maint.mk: check for [ as well as test
49644         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
49645         Based on a libvirt report by Matthias Bolte.
49647         gnumakefile: don't squelch _version output
49648         * top/GNUmakefile (_version): Create one-shot dependency rather
49649         than using $(shell) when version must be regenerated.
49650         (_autoreconf): Run verbosely, by default.
49652         sys_time: avoid compiler warnings
49653         * lib/sys_time.in.h (includes): Ensure gcc pragma is
49654         unconditional, fixing regression from 2010-03-29.
49655         Reported by Simon Josefsson.
49657 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
49659         maint.mk: s/_header_without_use/_sc_header_without_use/
49660         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
49661         (sc_prohibit_assert_without_use): Use the new name.
49662         (sc_prohibit_close_stream_without_use): Likewise.
49663         (sc_prohibit_getopt_without_use): Likewise.
49664         (sc_prohibit_quotearg_without_use): Likewise.
49665         (sc_prohibit_quote_without_use): Likewise.
49666         (sc_prohibit_long_options_without_use): Likewise.
49667         (sc_prohibit_inttostr_without_use): Likewise.
49668         (sc_prohibit_ignore_value_without_use): Likewise.
49669         (sc_prohibit_error_without_use): Likewise.
49670         (sc_prohibit_xalloc_without_use): Likewise.
49671         (sc_prohibit_hash_without_use): Likewise.
49672         (sc_prohibit_hash_pjw_without_use): Likewise.
49673         (sc_prohibit_safe_read_without_use): Likewise.
49674         (sc_prohibit_argmatch_without_use): Likewise.
49675         (sc_prohibit_canonicalize_without_use): Likewise.
49676         (sc_prohibit_root_dev_ino_without_use): Likewise.
49677         (sc_prohibit_openat_without_use): Likewise.
49678         (sc_prohibit_c_ctype_without_use): Likewise.
49679         (sc_prohibit_signal_without_use): Likewise.
49680         (sc_prohibit_intprops_without_use): Likewise.
49682 2010-03-30  Eric Blake  <eblake@redhat.com>
49684         maint: improve module indicators
49685         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
49686         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
49687         columns, and avoid extra macro expansion.
49689         fdopendir: work around FreeBSD bug
49690         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
49691         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
49692         * modules/dirent (Makefile.am): Substitute it.
49693         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
49694         declaration.
49695         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
49696         fix.
49697         Reported by Christian Weisgerber <naddy@mips.inka.de>.
49699 2010-03-29  Bruno Haible  <bruno@clisp.org>
49701         Emit #pragma system_header after the inclusion guard, not before.
49702         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
49703         guard that spans the entire file, not before. This enables an
49704         optimization in GCC's preprocessor.
49705         * lib/ctype.in.h: Likewise.
49706         * lib/dirent.in.h: Likewise.
49707         * lib/errno.in.h: Likewise.
49708         * lib/float.in.h: Likewise.
49709         * lib/getopt.in.h: Likewise.
49710         * lib/iconv.in.h: Likewise.
49711         * lib/langinfo.in.h: Likewise.
49712         * lib/locale.in.h: Likewise.
49713         * lib/math.in.h: Likewise.
49714         * lib/netdb.in.h: Likewise.
49715         * lib/netinet_in.in.h: Likewise.
49716         * lib/pty.in.h: Likewise.
49717         * lib/sched.in.h: Likewise.
49718         * lib/se-selinux.in.h: Likewise.
49719         * lib/search.in.h: Likewise.
49720         * lib/spawn.in.h: Likewise.
49721         * lib/stdarg.in.h: Likewise.
49722         * lib/stdint.in.h: Likewise.
49723         * lib/string.in.h: Likewise.
49724         * lib/strings.in.h: Likewise.
49725         * lib/sys_file.in.h: Likewise.
49726         * lib/sys_ioctl.in.h: Likewise.
49727         * lib/sys_time.in.h: Likewise.
49728         * lib/sys_times.in.h: Likewise.
49729         * lib/sys_utsname.in.h: Likewise.
49730         * lib/sys_wait.in.h: Likewise.
49731         * lib/sysexits.in.h: Likewise.
49732         * lib/wctype.in.h: Likewise.
49734 2010-03-28  James Youngman  <jay@gnu.org>
49736         save-cwd: don't leak a file descriptor when the caller execs.
49737         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
49738         saved file descriptor.
49739         * modules/save-cwd (Depends-on): Depend on cloexec.
49741 2010-03-29  Bruno Haible  <bruno@clisp.org>
49743         Remove vestiges of fts-lgpl module.
49744         * lib/fts_.h: Assume GNULIB_FTS is 1.
49745         * lib/fts.c: Likewise.
49746         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
49748 2010-03-28  Bruno Haible  <bruno@clisp.org>
49750         Fix definition of tests witness macro.
49751         * gnulib-tool (func_import): Fix definition of witness macro.
49753 2010-03-28  Bruno Haible  <bruno@clisp.org>
49755         Fix ioctl's protoype on glibc systems.
49756         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
49757         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
49758         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
49759         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
49760         signature. If not, arrange to replace the ioctl function.
49761         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
49762         REPLACE_IOCTL.
49763         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
49764         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
49765         Reported by Ludovic Courtès <ludo@gnu.org>.
49767 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
49769         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
49770         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
49771         made it so grep -r --include=GLOB* ... did not work.
49773 2010-03-26  Jim Meyering  <meyering@redhat.com>
49774             Eric Blake  <eblake@redhat.com>
49776         maint.mk: prohibit use of test's -o and -a operators
49777         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
49779 2010-03-28  Bruno Haible  <bruno@clisp.org>
49781         Remove unused GNULIB_XYZ macro definitions.
49782         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
49783         invocation.
49785 2010-03-28  Bruno Haible  <bruno@clisp.org>
49787         Mark privileged tests modules.
49788         * modules/idpriv-drop-tests (Status): New section.
49789         * modules/idpriv-droptemp-tests (Status): New section.
49791 2010-03-28  Bruno Haible  <bruno@clisp.org>
49793         Split C++ tests into separate tests modules.
49794         * modules/dirent-c++-tests: New file, extracted from
49795         modules/dirent-tests.
49796         * modules/dirent-tests: Depend on it.
49797         * modules/fcntl-h-c++-tests: New file, extracted from
49798         modules/fcntl-h-tests.
49799         * modules/fcntl-h-tests: Depend on it.
49800         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
49801         * modules/glob-tests: Depend on it.
49802         * modules/iconv-h-c++-tests: New file, extracted from
49803         modules/iconv-h-tests.
49804         * modules/iconv-h-tests: Depend on it.
49805         * modules/langinfo-c++-tests: New file, extracted from
49806         modules/langinfo-tests.
49807         * modules/langinfo-tests: Depend on it.
49808         * modules/locale-c++-tests: New file, extracted from
49809         modules/locale-tests.
49810         * modules/locale-tests: Depend on it.
49811         * modules/math-c++-tests: New file, extracted from modules/math-tests.
49812         * modules/math-tests: Depend on it.
49813         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
49814         * modules/pty-tests: Depend on it.
49815         * modules/search-c++-tests: New file, extracted from
49816         modules/search-tests.
49817         * modules/search-tests: Depend on it.
49818         * modules/signal-c++-tests: New file, extracted from
49819         modules/signal-tests.
49820         * modules/signal-tests: Depend on it.
49821         * modules/spawn-c++-tests: New file, extracted from
49822         modules/spawn-tests.
49823         * modules/spawn-tests: Depend on it.
49824         * modules/stdio-c++-tests: New file, extracted from
49825         modules/stdio-tests.
49826         * modules/stdio-tests: Depend on it.
49827         * modules/stdlib-c++-tests: New file, extracted from
49828         modules/stdlib-tests.
49829         * modules/stdlib-tests: Depend on it.
49830         * modules/string-c++-tests: New file, extracted from
49831         modules/string-tests.
49832         * modules/string-tests: Depend on it.
49833         * modules/sys_ioctl-c++-tests: New file, extracted from
49834         modules/sys_ioctl-tests.
49835         * modules/sys_ioctl-tests: Depend on it.
49836         * modules/sys_select-c++-tests: New file, extracted from
49837         modules/sys_select-tests.
49838         * modules/sys_select-tests: Depend on it.
49839         * modules/sys_socket-c++-tests: New file, extracted from
49840         modules/sys_socket-tests.
49841         * modules/sys_socket-tests: Depend on it.
49842         * modules/sys_stat-c++-tests: New file, extracted from
49843         modules/sys_stat-tests.
49844         * modules/sys_stat-tests: Depend on it.
49845         * modules/sys_time-c++-tests: New file, extracted from
49846         modules/sys_time-tests.
49847         * modules/sys_time-tests: Depend on it.
49848         * modules/time-c++-tests: New file, extracted from modules/time-tests.
49849         * modules/time-tests: Depend on it.
49850         * modules/unistd-c++-tests: New file, extracted from
49851         modules/unistd-tests.
49852         * modules/unistd-tests: Depend on it.
49853         * modules/wchar-c++-tests: New file, extracted from
49854         modules/wchar-tests.
49855         * modules/wchar-tests: Depend on it.
49856         * modules/wctype-c++-tests: New file, extracted from
49857         modules/wctype-tests.
49858         * modules/wctype-tests: Depend on it.
49859         Reported by Simon Josefsson.
49861 2010-03-28  Bruno Haible  <bruno@clisp.org>
49863         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
49864         * gnulib-tool (func_exists_module): New function, extracted from
49865         func_verify_module.
49866         (func_verify_module): Use it.
49867         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
49868         'foo' only if 'foo' exists.
49869         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
49870         module.
49872 2010-03-28  Bruno Haible  <bruno@clisp.org>
49874         gnulib-tool: Add support for special categories of tests.
49875         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
49876         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
49877         (func_usage): Document them.
49878         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
49879         inc_unportable_tests, inc_all_tests): New variables.
49880         (func_acceptable): Consider these variables.
49881         (func_modules_transitive_closure): Make it work when the 'Status' field
49882         consists of multiple words.
49883         (func_import): Store and restore the values of inc_cxx_tests,
49884         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
49885         inc_all_tests in gnulib-comp.m4.
49886         (func_create_testdir): Set inc_all_tests to true.
49887         * doc/gnulib.texi (Extra tests modules): New section.
49888         Suggested by Jim Meyering.
49890 2010-03-28  Bruno Haible  <bruno@clisp.org>
49892         ansi-c++-opt: Allow turning off the C++ build by default.
49893         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
49894         gl_CXX_CHOICE_DEFAULT_NO is defined.
49895         Requested by Eric Blake.
49897 2010-03-28  Bruno Haible  <bruno@clisp.org>
49899         unistd: Avoid #define replacements in C++ mode.
49900         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
49901         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
49902         setsockopt, shutdown, select): In C++, attach a warning to the function
49903         if possible, rather than #defining the symbol to a dysfunctional alias.
49904         Reported by John W. Eaton <jwe@gnu.org>.
49906 2010-03-28  Bruno Haible  <bruno@clisp.org>
49908         Fix link errors on mingw.
49909         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
49910         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
49911         $(LIBSOCKET).
49912         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
49913         $(LIBSOCKET).
49915 2010-03-28  Bruno Haible  <bruno@clisp.org>
49916             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49918         lib-ignore: Determine different options for different compilers.
49919         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
49920         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
49921         Add comments.
49922         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
49923         * NEWS: Mention the change.
49925 2010-03-27  Bruno Haible  <bruno@clisp.org>
49927         Remove unused GNULIB_XYZ macro definitions.
49928         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
49929         * modules/fseek (configure.ac): Likewise.
49930         * modules/ioctl (configure.ac): Likewise.
49931         * modules/open (configure.ac): Likewise.
49932         * modules/stdlib-safer (configure.ac): Likewise.
49934 2010-03-27  Bruno Haible  <bruno@clisp.org>
49936         Add a remark about certain modules.
49937         * modules/malloc (Comment): New section.
49938         * modules/realloc (Comment): Likewise.
49939         * modules/sigpipe (Comment): Likewise.
49941 2010-03-27  Bruno Haible  <bruno@clisp.org>
49943         Resolve conflict between the two kinds of module indicators.
49944         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
49945         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
49946         * modules/canonicalize (configure.ac): Invoke
49947         gl_MODULE_INDICATOR_FOR_TESTS.
49948         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
49949         GNULIB_XYZ.
49950         * tests/test-dirent-c++.cc: Likewise.
49951         * tests/test-dirent-safer.c: Likewise.
49952         * tests/test-dup2.c: Likewise.
49953         * tests/test-fchdir.c: Likewise.
49954         * tests/test-fcntl-h-c++.cc: Likewise.
49955         * tests/test-getopt.c: Likewise.
49956         * tests/test-getopt.h: Likewise.
49957         * tests/test-langinfo-c++.cc: Likewise.
49958         * tests/test-locale-c++.cc: Likewise.
49959         * tests/test-math-c++.cc: Likewise.
49960         * tests/test-pty-c++.cc: Likewise.
49961         * tests/test-search-c++.cc: Likewise.
49962         * tests/test-signal-c++.cc: Likewise.
49963         * tests/test-spawn-c++.cc: Likewise.
49964         * tests/test-stdio-c++.cc: Likewise.
49965         * tests/test-stdlib-c++.cc: Likewise.
49966         * tests/test-string-c++.cc: Likewise.
49967         * tests/test-sys_ioctl-c++.cc: Likewise.
49968         * tests/test-sys_select-c++.cc: Likewise.
49969         * tests/test-sys_socket-c++.cc: Likewise.
49970         * tests/test-sys_stat-c++.cc: Likewise.
49971         * tests/test-sys_time-c++.cc: Likewise.
49972         * tests/test-time-c++.cc: Likewise.
49973         * tests/test-unistd-c++.cc: Likewise.
49974         * tests/test-wchar-c++.cc: Likewise.
49975         * tests/uninorm/test-u8-nfc.c: Likewise.
49976         * tests/uninorm/test-u8-nfd.c: Likewise.
49977         * tests/uninorm/test-u8-nfkc.c: Likewise.
49978         * tests/uninorm/test-u8-nfkd.c: Likewise.
49979         * tests/uninorm/test-u16-nfc.c: Likewise.
49980         * tests/uninorm/test-u16-nfd.c: Likewise.
49981         * tests/uninorm/test-u16-nfkc.c: Likewise.
49982         * tests/uninorm/test-u16-nfkd.c: Likewise.
49983         * tests/uninorm/test-u32-nfc.c: Likewise.
49984         * tests/uninorm/test-u32-nfc-big.c: Likewise.
49985         * tests/uninorm/test-u32-nfd.c: Likewise.
49986         * tests/uninorm/test-u32-nfd-big.c: Likewise.
49987         * tests/uninorm/test-u32-nfkc.c: Likewise.
49988         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
49989         * tests/uninorm/test-u32-nfkd.c: Likewise.
49990         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
49991         * tests/uninorm/test-u32-normalize-big.c: Likewise.
49993 2010-03-27  Bruno Haible  <bruno@clisp.org>
49995         Distinguish two kinds of module indicators.
49996         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
49997         gl_MODULE_INDICATOR.
49998         (gl_MODULE_INDICATOR): New macro.
49999         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
50000         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
50001         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50002         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50003         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50004         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50005         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50006         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50007         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50008         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50009         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50010         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50012         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50013         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50014         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50015         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50016         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50017         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50018         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50019         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50020         * modules/cloexec (configure.ac): Likewise.
50021         * modules/getopt-gnu (configure.ac): Likewise.
50022         * modules/uninorm/u8-normalize (configure.ac): Likewise.
50023         * modules/uninorm/u16-normalize (configure.ac): Likewise.
50024         * modules/uninorm/u32-normalize (configure.ac): Likewise.
50025         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
50027 2010-03-27  Bruno Haible  <bruno@clisp.org>
50029         New module description field 'Comment'.
50030         * gnulib-tool: New option --extract-comment.
50031         (func_usage): Document it.
50032         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
50033         (func_get_comment): New function.
50034         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
50036 2010-03-27  Bruno Haible  <bruno@clisp.org>
50038         Addendum to 2010-02-07 commit.
50039         * gnulib-tool (func_usage): Document --extract-applicability option.
50041 2010-03-27  Bruno Haible  <bruno@clisp.org>
50043         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
50044         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
50045         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
50046         rather than link errors.
50048 2010-03-27  Bruno Haible  <bruno@clisp.org>
50050         Avoid side effects from tests-related modules on the compilation of lib.
50051         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
50052         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
50053         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
50054         parameter. Emit into AM_CPPFLAGS a definition of the designated C
50055         macro.
50056         (func_import): Define a witness macro. Assign it a value that depends
50057         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
50058         tests-related modules.
50059         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
50060         Reported by Jim Meyering.
50062 2010-03-27  Bruno Haible  <bruno@clisp.org>
50064         Factorize common .m4 code.
50065         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
50066         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
50067         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
50068         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
50069         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
50070         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
50071         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
50072         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
50073         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
50074         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
50075         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
50076         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
50077         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
50078         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
50079         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
50080         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
50081         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
50082         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
50083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
50084         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
50085         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
50086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
50087         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
50088         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
50089         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
50090         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
50091         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
50092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
50093         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
50094         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
50095         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
50096         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
50098 2010-03-27  Bruno Haible  <bruno@clisp.org>
50100         Fix a compilation error on Cygwin with g++ >= 4.3.
50101         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
50102         if it is undefined or if we alias it to chmod.
50103         (lstat): Don't warn about the use of this function if it is undefined
50104         or if we alias it to stat.
50105         Reported by Simon Josefsson.
50107 2010-03-27  Bruno Haible  <bruno@clisp.org>
50109         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
50110         * modules/getlogin (configure.ac): Update.
50112         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
50113         * modules/getlogin_r (configure.ac): Update.
50115         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
50116         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
50117         * modules/inet_ntop (configure.ac): Update.
50119         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
50120         * modules/inet_pton (configure.ac): Update.
50122         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
50123         * modules/mbslen (configure.ac): Update.
50125         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
50126         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
50127         * modules/forkpty (configure.ac): Update.
50128         * modules/openpty (configure.ac): Update.
50130 2010-03-26  Simon Josefsson  <simon@josefsson.org>
50132         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
50133         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
50135 2010-03-25  Eric Blake  <eblake@redhat.com>
50137         maint: use pragma consistently across replacement headers
50138         * lib/ctype.in.h (system_header): Hoist for consistent placement.
50139         * lib/dirent.in.h (system_header): Likewise.
50140         * lib/errno.in.h (system_header): Likewise.
50141         * lib/float.in.h (system_header): Likewise.
50142         * lib/getopt.in.h (system_header): Likewise.
50143         * lib/iconv.in.h (system_header): Likewise.
50144         * lib/inttypes.in.h (system_header): Likewise.
50145         * lib/langinfo.in.h (system_header): Likewise.
50146         * lib/locale.in.h (system_header): Likewise.
50147         * lib/math.in.h (system_header): Likewise.
50148         * lib/netdb.in.h (system_header): Likewise.
50149         * lib/netinet_in.in.h (system_header): Likewise.
50150         * lib/pty.in.h (system_header): Likewise.
50151         * lib/sched.in.h (system_header): Likewise.
50152         * lib/se-selinux.in.h (system_header): Likewise.
50153         * lib/search.in.h (system_header): Likewise.
50154         * lib/spawn.in.h (system_header): Likewise.
50155         * lib/stdarg.in.h (system_header): Likewise.
50156         * lib/stdint.in.h (system_header): Likewise.
50157         * lib/string.in.h (system_header): Likewise.
50158         * lib/strings.in.h (system_header): Likewise.
50159         * lib/sys_file.in.h (system_header): Likewise.
50160         * lib/sys_ioctl.in.h (system_header): Likewise.
50161         * lib/sys_socket.in.h (system_header): Likewise.
50162         * lib/sys_times.in.h (system_header): Likewise.
50163         * lib/sys_utsname.in.h (system_header): Likewise.
50164         * lib/sys_wait.in.h (system_header): Likewise.
50165         * lib/sysexits.in.h (system_header): Likewise.
50166         * lib/unistd.in.h (system_header): Likewise.
50167         * lib/wctype.in.h (system_header): Likewise.
50169         arpa/inet: fix mingw compilation warning
50170         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
50171         Reported by Matthew Bolte.
50173 2010-03-25  Bruno Haible  <bruno@clisp.org>
50175         Avoid collision between gnulib wrapper and libintl wrapper.
50176         * lib/printf.c (printf): Don't define if a printf wrapper is already
50177         defined in intl/printf.c.
50178         Reported by Michel Boaventura <michel@michelboaventura.com>.
50180 2010-03-25  Bruno Haible  <bruno@clisp.org>
50182         Use ANSI C.
50183         * lib/readutmp.h (getutent): Provide ANSI C prototype.
50185 2010-03-25  Bruno Haible  <bruno@clisp.org>
50187         Minor formatting changes.
50188         * lib/acosl.c: Insert space before function argument list.
50189         * lib/argz.c: Likewise.
50190         * lib/asinl.c: Likewise.
50191         * lib/expl.c: Likewise.
50192         * lib/gen-uni-tables.c: Likewise.
50193         * lib/gettext.h: Likewise.
50194         * lib/glthread/lock.h: Likewise.
50195         * lib/tanl.c: Likewise.
50196         * lib/uniname/uniname.c: Likewise.
50197         * tests/test-idpriv-drop.c: Likewise.
50198         * tests/test-idpriv-droptemp.c: Likewise.
50199         * tests/test-lock.c: Likewise.
50200         * tests/test-tls.c: Likewise.
50201         * lib/argp-help.c: Insert space before function-like macro argument
50202         list.
50203         * lib/memcmp.c: Likewise.
50204         * tests/test-base64.c: Likewise.
50205         * lib/localename.c: Insert space before sizeof's argument list.
50206         * lib/safe-alloc.h: Likewise.
50207         * lib/file-set.h: Insert space before macro argument list.
50208         * tests/test-argp.c: Likewise.
50209         * lib/argp-namefrob.h: Insert space before function parameter list.
50210         * lib/getaddrinfo.c: Likewise.
50211         * lib/netdb.in.h: Likewise.
50212         * lib/parse-duration.h: Likewise.
50213         * lib/parse-duration.c: Likewise.
50214         * lib/poll.c: Likewise.
50215         * lib/select.c: Likewise.
50216         * lib/trim.h: Likewise.
50217         * tests/test-usleep.c: Likewise.
50218         * lib/ldexpl.c: Insert space before function parameter list and before
50219         function argument list.
50220         * lib/logl.c: Likewise.
50221         * lib/sqrtl.c: Likewise.
50222         * lib/trim.c: Likewise.
50223         * lib/cosl.c: Use GNU style indentation. Insert space before function
50224         argument list.
50225         * lib/sinl.c: Likewise.
50226         * lib/tsearch.c: Insert space after 'for'.
50227         Reported by Jim Meyering.
50229 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
50231         * maint.mk (sc_Wundef_boolean): Check for the presence of the
50232         config header before grepping, as it's not present before
50233         autoreconf/configure are run.  Reported by Simon Josefsson.
50235 2010-03-23  Bruno Haible  <bruno@clisp.org>
50237         pt_chown: Make it work with automake < 1.11.
50238         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
50239         Reported by Simon Josefsson.
50241 2010-03-23  Bruno Haible  <bruno@clisp.org>
50243         pt_chown: Don't depend on GPLed modules.
50244         * lib/pt_chown.c: Don't include idpriv.h.
50245         (main): Don't drop privileges.
50246         * modules/pt_chown (Depends-on): Remove idpriv-drop.
50247         Reported by Simon Josefsson.
50249 2010-03-24  Simon Josefsson  <simon@josefsson.org>
50251         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
50252         suggestions from karl@freefriends.org (Karl Berry).
50254 2010-03-22  Eric Blake  <eblake@redhat.com>
50256         gethostname: further tweaks
50257         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
50258         are overriding gethostname.
50259         Suggested by Bruno Haible.
50261 2010-03-21  Bruno Haible  <bruno@clisp.org>
50263         Fix comments.
50264         * lib/forkpty.c (rpl_forkpty): Fix comment.
50265         * lib/openpty.c (rpl_openpty): Likewise.
50266         Reported by Eric Blake.
50268 2010-03-22  Eric Blake  <eblake@redhat.com>
50270         gethostname: fix build on mingw
50271         * lib/unistd.in.h (includes): Work around fact that mingw
50272         <winsock2.h> re-includes <unistd.h>, by avoiding any
50273         redeclarations if we are being included by <winsock2.h>.
50274         Reported by Matthias Bolte.
50276 2010-03-21  Bruno Haible  <bruno@clisp.org>
50278         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50279         * lib/forkpty.c (forkpty): New replacement function, from glibc with
50280         modifications.
50281         * lib/pty.in.h (forkpty): Update declaration. Add comments.
50282         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
50283         provide the replacement.
50284         * modules/forkpty (Depends-on): Add openpty, login_tty.
50285         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
50286         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
50287         * doc/glibc-functions/forkpty.texi: More supported platforms.
50288         * config/srclist.txt: Add forkpty.c (commented).
50290 2010-03-21  Bruno Haible  <bruno@clisp.org>
50292         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
50293         (Makefile.am): Verify that PTY_LIB is defined.
50295         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
50297 2010-03-21  Bruno Haible  <bruno@clisp.org>
50299         Tests for module 'login_tty'.
50300         * modules/login_tty-tests: New file.
50301         * tests/test-login_tty.c: New file.
50303         New module 'login_tty'.
50304         * lib/login_tty.c: New file.
50305         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
50306         * modules/login_tty: New file.
50307         * doc/glibc-functions/login_tty.texi: Mention the new module.
50309 2010-03-21  Bruno Haible  <bruno@clisp.org>
50311         login_tty: Documentation.
50312         * doc/glibc-functions/login_tty.texi: New file.
50313         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
50315 2010-03-21  Bruno Haible  <bruno@clisp.org>
50317         pty: Consistent macro naming.
50318         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
50319         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
50320         * modules/pty (configure.ac): Update.
50322 2010-03-21  Bruno Haible  <bruno@clisp.org>
50324         Tests for openpty: Make stricter.
50325         * tests/test-openpty.c (main): Add test of canonical processing and
50326         erase.
50327         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
50329         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50330         * lib/openpty.c (openpty): New replacement function.
50331         * lib/pty.in.h: Include <termios.h>.
50332         (openpty): Update declaration. Add comments.
50333         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
50334         is not declared, arrange to provide the replacement. Check for _getpty
50335         and posix_openpt.
50336         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
50337         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
50338         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
50339         * modules/pty-tests (test_pty_c___LDADD): New variable.
50340         * doc/glibc-functions/openpty.texi: More supported platforms.
50342 2010-03-21  Bruno Haible  <bruno@clisp.org>
50344         setenv: Tweaks.
50345         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
50346         the test program.
50347         * doc/posix-functions/setenv.texi: Update platforms list.
50349 2010-03-21  Bruno Haible  <bruno@clisp.org>
50351         New module 'unlockpt'.
50352         * lib/unlockpt.c: New file, from glibc with modifications.
50353         * m4/unlockpt.m4: New file.
50354         * modules/unlockpt: New file.
50355         * lib/stdlib.in.h (unlockpt): New declaration.
50356         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
50357         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
50358         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
50359         HAVE_UNLOCKPT.
50360         * doc/posix-functions/unlockpt.texi: Mention the new module.
50361         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
50362         * config/srclist.txt: Add unlockpt.c (commented).
50364 2010-03-21  Jim Meyering  <meyering@redhat.com>
50366         maint.mk: prohibit inclusion of "intprops.h" without use
50367         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
50369 2010-03-21  Bruno Haible  <bruno@clisp.org>
50371         New module 'grantpt'.
50372         * lib/grantpt.c: New file, from glibc with modifications.
50373         * m4/grantpt.m4: New file.
50374         * modules/grantpt: New file.
50375         * lib/stdlib.in.h (grantpt): New declaration.
50376         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
50377         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
50378         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
50379         HAVE_GRANTPT.
50380         * doc/posix-functions/grantpt.texi: Mention the new module.
50381         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
50382         * config/srclist.txt: Add grantpt.c (commented).
50384 2010-03-21  Bruno Haible  <bruno@clisp.org>
50386         New module 'pt_chown'.
50387         * lib/pt_chown.c: New file, from glibc with modifications.
50388         * lib/pty-private.h: New file, from glibc with modifications.
50389         * modules/pt_chown: New file.
50390         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
50392 2010-03-21  Bruno Haible  <bruno@clisp.org>
50394         Tests for module 'ptsname'.
50395         * modules/ptsname-tests: New file.
50396         * tests/test-ptsname.c: New file.
50398         New module 'ptsname'.
50399         * lib/ptsname.c: New file, from glibc with modifications.
50400         * m4/ptsname.m4: New file.
50401         * modules/ptsname: New file.
50402         * lib/stdlib.in.h (ptsname): New declaration.
50403         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
50404         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
50405         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
50406         HAVE_PTSNAME.
50407         * doc/posix-functions/ptsname.texi: Mention the new module.
50408         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
50409         * config/srclist.txt: Add ptsname.c (commented).
50411 2010-03-21  Bruno Haible  <bruno@clisp.org>
50413         Tests for module 'ttyname_r'.
50414         * modules/ttyname_r-tests: New file.
50415         * tests/test-ttyname_r.c: New file.
50417         New module 'ttyname_r'.
50418         * lib/ttyname_r.c: New file.
50419         * m4/ttyname_r.m4: New file.
50420         * modules/ttyname_r: New file.
50421         * lib/unistd.in.h (ttyname_r): New declaration.
50422         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
50423         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
50424         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
50425         HAVE_TTYNAME_R.
50426         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
50427         * doc/posix-functions/ttyname_r.texi: Mention the new module.
50429 2010-03-20  Bruno Haible  <bruno@clisp.org>
50431         signal: Undefine macro definitions in C++ mode.
50432         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
50433         sigfillset): Undefine macro definitions from the system header in C++
50434         mode.
50435         Reported by John W. Eaton <jwe@gnu.org>.
50437 2010-03-20  Bruno Haible  <bruno@clisp.org>
50439         Ensure no #include statements inside extern "C" { ... }.
50440         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
50441         contain #include statements.
50442         * lib/time.in.h: Likewise.
50444 2010-03-20  Bruno Haible  <bruno@clisp.org>
50446         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
50447         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
50448         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
50449         Reported by John W. Eaton <jwe@gnu.org>.
50451 2010-03-20  Bruno Haible  <bruno@clisp.org>
50453         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
50454         Reported by Jim Meyering.
50456 2010-03-20  Bruno Haible  <bruno@clisp.org>
50458         pipe: Set errno upon failure.
50459         * lib/pipe.h: Specify that when -1 is returned, errno is set.
50460         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
50461         errno value in error message.
50463 2010-03-20  Bruno Haible  <bruno@clisp.org>
50464             Jim Meyering  <meyering@redhat.com>
50466         lchown: Avoid "unused variable" warning.
50467         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
50469 2010-03-20  Bruno Haible  <bruno@clisp.org>
50471         Work around unlink() bug on MacOS X 10.5.6.
50472         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
50473         attempting to unlink a parent directory.
50474         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
50475         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
50476         activate for the replacement function.
50477         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
50479 2010-03-20  Bruno Haible  <bruno@clisp.org>
50481         Fix link errors on Solaris 8.
50482         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
50483         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
50485 2010-03-19  Jim Meyering  <meyering@redhat.com>
50487         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
50488         The _LIBC implementation of build_range_exp correctly honors the
50489         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
50490         However, the non-_LIBC implementation would ignore that syntax-bit
50491         flag and return REG_ERANGE unconditionally.
50492         This change makes it honor that flag.
50493         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
50494         Make two pointer parameters "const".
50495         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
50496         (parse_bracket_exp): Update caller.
50498         regex.m4: correct the reversed range endpoint ([b-a]) test
50499         * m4/regex.m4: When requiring that [b-a] evoke failure,
50500         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
50501         test pass once again for x86-based systems.
50503 2010-03-19  Bruno Haible  <bruno@clisp.org>
50505         scandir: Fix link error on Solaris 8.
50506         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
50507         macros.
50509 2010-03-19  Bruno Haible  <bruno@clisp.org>
50511         getusershell: Fix documentation.
50512         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
50513         module.
50514         * doc/glibc-functions/setusershell.texi: Likewise.
50516         getusershell: Provide declaration, missing on Solaris 9.
50517         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
50518         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
50519         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
50520         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
50521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50522         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
50523         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
50524         HAVE_GETUSERSHELL.
50525         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
50527 2010-03-19  Bruno Haible  <bruno@clisp.org>
50529         wctype: Provide iswblank function.
50530         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
50531         exists and is fine.
50532         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
50533         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
50534         * tests/test-wctype.c (main): Re-enable the iswblank tests.
50535         * doc/posix-functions/iswblank.texi: Update.
50537 2010-03-19  Bruno Haible  <bruno@clisp.org>
50539         Tests of module 'pty' in C++ mode.
50540         * modules/pty-tests: New file.
50541         * tests/test-pty-c++.cc: New file.
50542         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50544 2010-03-19  Eric Blake  <eblake@redhat.com>
50546         logb: fix documentation
50547         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
50548         1.5 declaration bug.
50550         forkpty, openpty: prefer glibc's const-safe prototype
50551         * lib/forkpty.c (rpl_forkpty): New file.
50552         * lib/openpty.c (rpl_openpty): Likewise.
50553         * modules/forkpty (Files): Distribute it.
50554         * modules/openpty (Files): Likewise.
50555         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
50556         check...
50557         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
50558         replacement for non-const BSD signature.
50559         * modules/pty (Makefile.am): Substitute witnesses.
50560         * lib/pty.in.h (forkpty, openpty): Declare replacements.
50561         * tests/test-forkpty.c: Update signature check.
50562         * tests/test-openpty.c: Likewise.
50563         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
50564         * doc/glibc-functions/openpty.texi (openpty): Likewise.
50566         forkpty, openpty: split functions into new modules
50567         * modules/pty (Makefile.am): Substitute new witnesses.
50568         (Libraries): Move library detection...
50569         * modules/forkpty: ...into new module.
50570         * modules/openpty: Another new module.
50571         * modules/pty-tests: Rename and split...
50572         * modules/forkpty-tests: ...to this...
50573         * modules/openpty-tests: ...and this.
50574         * tests/test-pty.c: Rename and split...
50575         * tests/test-forkpty.c: ...to this...
50576         * tests/test-openpty.c: ...and this.
50577         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
50578         (gl_PTY): Split library searching...
50579         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
50580         (gl_FORKPTY, gl_OPENPTY): New macros.
50581         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
50582         * NEWS: Mention the split.
50583         * MODULES.html.sh (Misc): Document the modules.
50584         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
50585         * doc/glibc-functions/openpty.texi (openpty): Likewise.
50587         pty: improve replacement header
50588         * lib/pty.in.h: New file.
50589         * modules/pty (Files): Ship it.
50590         (Makefile.am): Always build replacement.
50591         * m4/pty.m4: Rename...
50592         * m4/pty_h.m4: ...to this.
50593         (gl_PTY): Modernize setting of witness macros; update check of
50594         forkpty to take proper advantage of cache.
50595         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
50597         getopt: avoid compiler warning
50598         * lib/getopt.c (attribute_hidden): Remove unused macro.
50600 2010-03-18  Bruno Haible  <bruno@clisp.org>
50602         Fix link errors on Solaris 8.
50603         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
50604         * modules/search-tests (test_search_c___LDADD): Likewise.
50605         * modules/signal-tests (test_signal_c___LDADD): Likewise.
50606         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
50607         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
50608         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
50609         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
50610         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
50611         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
50613 2010-03-18  Bruno Haible  <bruno@clisp.org>
50615         Fix bug introduced on 2010-03-14.
50616         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
50617         (gl_SPAWN_H): Require it.
50618         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
50619         Reported by Simon Josefsson.
50621 2010-03-18  Bruno Haible  <bruno@clisp.org>
50623         Fix typo introduced on 2009-12-31.
50624         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
50625         posix_spawn_file_actions_adddup2.
50627 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
50628         and Eric Blake  <eblake@redhat.com>
50630         test-vc-list-files-git: make more robust
50631         * tests/test-vc-list-files-git.sh: Unset problematic environment
50632         variables.  Chain commands together.
50634 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
50636         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
50637         `AC_CHECK_DECL' invocation.
50639 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
50641         * lib/inttostr.c (inttostr): Make sure the invocation of verify
50642         appears before executable statements. Suggested by Petr Sumbera
50643         <Petr.Sumbera@Sun.COM>.
50645 2010-03-14  Bruno Haible  <bruno@clisp.org>
50647         * tests/test-flock.c (test_exclusive): Comment out a test that causes
50648         portability problems. Instead use a simpler test.
50649         (main): Check that invalid arguments are rejected only on Linux.
50651 2010-03-14  Bruno Haible  <bruno@clisp.org>
50653         Fix bug introduced on 2009-12-31.
50654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
50655         gl_PREREQ_SYS_H_WINSOCK2 always.
50656         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
50657         SYS_SOCKET_H variable.
50658         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
50659         Update comments.
50660         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
50661         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
50662         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
50663         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50664         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
50666 2010-03-14  Bruno Haible  <bruno@clisp.org>
50668         Fix values returned by sinl, cosl.
50669         * lib/trigl.h: Add specification comments.
50670         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
50671         that combines the values from the precomputed table with the values of
50672         the Chebyshev polynomials.
50674 2010-03-14  Bruno Haible  <bruno@clisp.org>
50676         Fix compilation error when modules 'posix_spawn[p]' are not used.
50677         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
50678         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
50680 2010-03-14  Bruno Haible  <bruno@clisp.org>
50682         Fix compilation error on mingw when module 'time_r' is not used.
50683         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
50684         is 1.
50685         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
50686         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
50687         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
50688         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
50690 2010-03-14  Bruno Haible  <bruno@clisp.org>
50692         Fix compilation error with Sun C.
50693         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
50694         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
50695         instead of GCC specific ULONG_LONG_MAX.
50696         * lib/xstrtoll.c: Likewise.
50697         * lib/xstrtoull.c: Likewise.
50699 2010-03-13  Bruno Haible  <bruno@clisp.org>
50701         Allow the user to disable C++ code and tests.
50702         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
50703         (gl_PROG_ANSI_CXX): Require it.
50705 2010-03-13  Bruno Haible  <bruno@clisp.org>
50707         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
50708         cases.
50710 2010-03-13  Bruno Haible  <bruno@clisp.org>
50712         Test that gnulib does not break the standard C++ headers.
50713         * tests/test-locale-c++2.cc: New file.
50714         * modules/locale-tests (Files): Add it.
50715         (Makefile.am): Compile it for test-locale-c++.
50716         * tests/test-math-c++2.cc: New file.
50717         * modules/math-tests (Files): Add it.
50718         (Makefile.am): Compile it for test-math-c++.
50719         * tests/test-signal-c++2.cc: New file.
50720         * modules/signal-tests (Files): Add it.
50721         (Makefile.am): Compile it for test-signal-c++.
50722         * tests/test-stdio-c++2.cc: New file.
50723         * modules/stdio-tests (Files): Add it.
50724         (Makefile.am): Compile it for test-stdio-c++.
50725         * tests/test-stdlib-c++2.cc: New file.
50726         * modules/stdlib-tests (Files): Add it.
50727         (Makefile.am): Compile it for test-stdlib-c++.
50728         * tests/test-string-c++2.cc: New file.
50729         * modules/string-tests (Files): Add it.
50730         (Makefile.am): Compile it for test-string-c++.
50731         * tests/test-time-c++2.cc: New file.
50732         * modules/time-tests (Files): Add it.
50733         (Makefile.am): Compile it for test-time-c++.
50734         Reported by John W. Eaton <jwe@gnu.org>.
50736 2010-03-13  Bruno Haible  <bruno@clisp.org>
50738         * gnulib-tool (func_usage): Clarify which options are available for
50739         --create-testdir and --create-megatestdir.
50741 2010-03-13  Bruno Haible  <bruno@clisp.org>
50743         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
50744         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
50745         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
50746         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
50747         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
50748         when appropriate.
50749         Reported by Jim Meyering.
50751 2010-03-12  Simon Josefsson  <simon@josefsson.org>
50753         * gnulib-tool (func_import): Explain origin of code.
50755 2010-03-12  Bruno Haible  <bruno@clisp.org>
50757         Fix problem with automake's definition of CXXLINK.
50758         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
50759         Reported by Simon Josefsson and Ludovic Courtès.
50761 2010-03-12  Bruno Haible  <bruno@clisp.org>
50763         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
50764         stable releases.
50766 2010-03-11  Bruno Haible  <bruno@clisp.org>
50768         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
50769         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
50770         whether the system provides one variant or multiple variants of the
50771         function.
50772         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
50773         C++ compilers.
50774         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
50775         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
50776         Reported by Jim Meyering.
50778 2010-03-09  Simon Josefsson  <simon@josefsson.org>
50780         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
50782 2010-03-08  Bruno Haible  <bruno@clisp.org>
50784         gnulib-tool: Add support for --libtool in --create-testdir.
50785         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
50786         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
50788 2010-03-08  Eric Blake  <eblake@redhat.com>
50790         gnulib-tool.texi: mention possibility of git submodule
50791         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
50792         submodules.
50793         * doc/.gitignore: Ignore another generated file.
50795 2010-03-08  Karl Berry  <karl@gnu.org>
50797         * doc/gnulib-tool.texi (VCS Issues): Mention third option
50798         of committing gnulib files while skipping others.
50800 2010-03-07  Bruno Haible  <bruno@clisp.org>
50802         Tests of module 'wctype' in C++ mode.
50803         * tests/test-wctype-c++.cc: New file.
50804         * modules/wctype-tests (Files): Add it and tests/signature.h.
50805         (Depends-on): Add ansi-c++-opt.
50806         (Makefile.am): Arrange to compile and run test-wctype-c++.
50808         Tests of module 'wchar' in C++ mode.
50809         * tests/test-wchar-c++.cc: New file.
50810         * modules/wchar-tests (Files): Add it and tests/signature.h.
50811         (Depends-on): Add ansi-c++-opt.
50812         (Makefile.am): Arrange to compile and run test-wchar-c++.
50813         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
50814         gl_MODULE_INDICATOR.
50816         Tests of module 'unistd' in C++ mode.
50817         * tests/test-unistd-c++.cc: New file.
50818         * modules/unistd-tests (Files): Add it and tests/signature.h.
50819         (Depends-on): Add ansi-c++-opt.
50820         (Makefile.am): Arrange to compile and run test-unistd-c++.
50821         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
50822         gl_MODULE_INDICATOR.
50824         Tests of module 'time' in C++ mode.
50825         * tests/test-time-c++.cc: New file.
50826         * modules/time-tests (Files): Add it and tests/signature.h.
50827         (Depends-on): Add ansi-c++-opt.
50828         (Makefile.am): Arrange to compile and run test-time-c++.
50829         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50831         Tests of module 'sys_time' in C++ mode.
50832         * tests/test-sys_time-c++.cc: New file.
50833         * modules/sys_time-tests (Files): Add it and tests/signature.h.
50834         (Depends-on): Add ansi-c++-opt.
50835         (Makefile.am): Arrange to compile and run test-sys_time-c++.
50836         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
50837         gl_MODULE_INDICATOR.
50839         Tests of module 'sys_stat' in C++ mode.
50840         * tests/test-sys_stat-c++.cc: New file.
50841         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
50842         (Depends-on): Add ansi-c++-opt.
50843         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
50844         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
50845         gl_MODULE_INDICATOR.
50847         Tests of module 'sys_socket' in C++ mode.
50848         * tests/test-sys_socket-c++.cc: New file.
50849         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
50850         (Depends-on): Add ansi-c++-opt.
50851         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
50852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
50853         gl_MODULE_INDICATOR.
50855         Tests of module 'sys_select' in C++ mode.
50856         * tests/test-sys_select-c++.cc: New file.
50857         * modules/sys_select-tests (Files): Add it and tests/signature.h.
50858         (Depends-on): Add ansi-c++-opt.
50859         (Makefile.am): Arrange to compile and run test-sys_select-c++.
50860         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
50861         gl_MODULE_INDICATOR.
50863         Tests of module 'sys_ioctl' in C++ mode.
50864         * tests/test-sys_ioctl-c++.cc: New file.
50865         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
50866         (Depends-on): Add ansi-c++-opt.
50867         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
50868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
50869         gl_MODULE_INDICATOR.
50871         Tests of module 'string' in C++ mode.
50872         * tests/test-string-c++.cc: New file.
50873         * modules/string-tests (Files): Add it and tests/signature.h.
50874         (Depends-on): Add ansi-c++-opt.
50875         (Makefile.am): Arrange to compile and run test-string-c++.
50876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
50877         gl_MODULE_INDICATOR.
50879         Tests of module 'stdlib' in C++ mode.
50880         * tests/test-stdlib-c++.cc: New file.
50881         * modules/stdlib-tests (Files): Add it and tests/signature.h.
50882         (Depends-on): Add ansi-c++-opt.
50883         (Makefile.am): Arrange to compile and run test-stdlib-c++.
50884         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
50885         gl_MODULE_INDICATOR.
50887         Tests of module 'stdio' in C++ mode.
50888         * tests/test-stdio-c++.cc: New file.
50889         * modules/stdio-tests (Files): Add it and tests/signature.h.
50890         (Depends-on): Add ansi-c++-opt.
50891         (Makefile.am): Arrange to compile and run test-stdio-c++.
50892         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
50893         gl_MODULE_INDICATOR.
50895         Tests of module 'spawn' in C++ mode.
50896         * tests/test-spawn-c++.cc: New file.
50897         * modules/spawn-tests (Files): Add it and tests/signature.h.
50898         (Depends-on): Add ansi-c++-opt.
50899         (Makefile.am): Arrange to compile and run test-spawn-c++.
50900         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
50901         gl_MODULE_INDICATOR.
50903         Tests of module 'signal' in C++ mode.
50904         * tests/test-signal-c++.cc: New file.
50905         * modules/signal-tests (Files): Add it and tests/signature.h.
50906         (Depends-on): Add ansi-c++-opt.
50907         (Makefile.am): Arrange to compile and run test-signal-c++.
50908         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
50909         gl_MODULE_INDICATOR.
50911         Tests of module 'search' in C++ mode.
50912         * tests/test-search-c++.cc: New file.
50913         * modules/search-tests (Files): Add it and tests/signature.h.
50914         (Depends-on): Add ansi-c++-opt.
50915         (Makefile.am): Arrange to compile and run test-search-c++.
50916         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
50917         gl_MODULE_INDICATOR.
50919         Tests of module 'math' in C++ mode.
50920         * tests/test-math-c++.cc: New file.
50921         * modules/math-tests (Files): Add it and tests/signature.h.
50922         (Depends-on): Add ansi-c++-opt.
50923         (Makefile.am): Arrange to compile and run test-math-c++.
50924         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50926         Tests of module 'locale' in C++ mode.
50927         * tests/test-locale-c++.cc: New file.
50928         * modules/locale-tests (Files): Add it and tests/signature.h.
50929         (Depends-on): Add ansi-c++-opt.
50930         (Makefile.am): Arrange to compile and run test-locale-c++.
50931         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
50932         gl_MODULE_INDICATOR.
50934         Tests of module 'langinfo' in C++ mode.
50935         * tests/test-langinfo-c++.cc: New file.
50936         * modules/langinfo-tests (Files): Add it and tests/signature.h.
50937         (Depends-on): Add ansi-c++-opt.
50938         (Makefile.am): Arrange to compile and run test-langinfo-c++.
50939         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
50940         gl_MODULE_INDICATOR.
50942         Tests of module 'iconv-h' in C++ mode.
50943         * tests/test-iconv-h-c++.cc: New file.
50944         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
50945         (Depends-on): Add ansi-c++-opt.
50946         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
50948         Tests of module 'glob' in C++ mode.
50949         * tests/test-glob-c++.cc: New file.
50950         * modules/glob-tests (Files): Add it.
50951         (Depends-on): Add ansi-c++-opt.
50952         (Makefile.am): Arrange to compile and run test-glob-c++.
50954         Tests of module 'fcntl-h' in C++ mode.
50955         * tests/test-fcntl-h-c++.cc: New file.
50956         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
50957         (Depends-on): Add ansi-c++-opt.
50958         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
50959         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
50960         gl_MODULE_INDICATOR.
50962         Tests of module 'dirent' in C++ mode.
50963         * tests/test-dirent-c++.cc: New file.
50964         * modules/dirent-tests (Files): Add it and tests/signature.h.
50965         (Depends-on): Add ansi-c++-opt.
50966         (Makefile.am): Arrange to compile and run test-dirent-c++.
50967         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
50968         gl_MODULE_INDICATOR.
50970         New module 'ansi-c++-opt'.
50971         * modules/ansi-c++-opt: New file.
50972         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
50974         Document C++ namespace mode.
50975         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
50977         wctype: Avoid #define replacements in C++ mode.
50978         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
50979         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
50980         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
50981         In C++, define a namespaced alias symbol.
50982         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
50983         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
50984         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
50985         rule.
50987         wchar: Avoid #define replacements in C++ mode.
50988         * lib/wchar.in.h: Include c++defs.h.
50989         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
50990         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
50991         symbol.
50992         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
50993         * modules/wchar (Depends-on): Add c++defs.
50994         (Makefile.am): Update wchar.h rule.
50996         unistd: Avoid #define replacements in C++ mode.
50997         * lib/unistd.in.h: Include c++defs.h.
50998         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
50999         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
51000         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
51001         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
51002         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
51003         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
51004         symbol.
51005         (environ): Update.
51006         * modules/unistd (Depends-on): Add c++defs.
51007         (Makefile.am): Update unistd.h rule.
51009         time: Avoid #define replacements in C++ mode.
51010         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
51011         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
51012         define a namespaced alias symbol.
51013         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
51014         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
51015         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
51016         * modules/time (Depends-on): Add c++defs, warn-on-use.
51017         (Makefile.am): Update time.h rule.
51018         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
51019         * modules/nanosleep (configure.ac): Likewise.
51020         * modules/strptime (configure.ac): Likewise.
51021         * modules/timegm (configure.ac): Likewise.
51023         sys_time: Avoid #define replacements in C++ mode.
51024         * lib/sys_time.in.h: Include c++defs.h.
51025         (gettimeofday): In C++, define a namespaced alias symbol.
51026         * modules/sys_time (Depends-on): Add c++defs.
51027         (Makefile.am): Update sys/time.h rule.
51029         sys_stat: Avoid #define replacements in C++ mode.
51030         * lib/sys_stat.in.h: Include c++defs.h.
51031         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
51032         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
51033         namespaced alias symbol.
51034         In C++, define a namespaced alias symbol.
51035         * modules/sys_stat (Depends-on): Add c++defs.
51036         (Makefile.am): Update sys/stat.h rule.
51038         sys_socket: Avoid #define replacements in C++ mode.
51039         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
51040         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
51041         definitions also when the system has a <sys/socket.h>.
51042         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51043         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
51044         In C++, define a namespaced alias symbol.
51045         * modules/sys_socket (Depends-on): Add c++defs.
51046         (Makefile.am): Update sys/socket.h rule.
51048         sys_select: Avoid #define replacements in C++ mode.
51049         * lib/sys_select.in.h: Include c++defs.h. Enable the function
51050         definitions also when the system has a <sys/select.h>.
51051         (select): In C++, define a namespaced alias symbol.
51052         * modules/sys_select (Depends-on): Add c++defs.
51053         (Makefile.am): Update sys/select.h rule.
51055         sys_ioctl: Avoid #define replacements in C++ mode.
51056         * lib/sys_ioctl.in.h: Include c++defs.h.
51057         (ioctl): In C++, define a namespaced alias symbol.
51058         * modules/sys_ioctl (Depends-on): Add c++defs.
51059         (Makefile.am): Update sys/ioctl.h rule.
51061         string: Avoid #define replacements in C++ mode.
51062         * lib/string.in.h: Include c++defs.h.
51063         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
51064         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
51065         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
51066         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
51067         strsignal, strverscmp): In C++, define a namespaced alias symbol.
51068         * modules/string (Depends-on): Add c++defs.
51069         (Makefile.am): Update string.h rule.
51071         stdlib: Avoid #define replacements in C++ mode.
51072         * lib/stdlib.in.h: Include c++defs.h.
51073         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
51074         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
51075         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
51076         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
51077         symbol.
51078         * modules/stdlib (Depends-on): Add c++defs.
51079         (Makefile.am): Update stdlib.h rule.
51081         stdio: Avoid #define replacements in C++ mode.
51082         * lib/stdio.in.h: Include c++defs.h.
51083         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
51084         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
51085         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
51086         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
51087         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
51088         namespaced alias symbol.
51089         * modules/stdio (Depends-on): Add c++defs.
51090         (Makefile.am): Update stdio.h rule.
51092         spawn: Avoid #define replacements in C++ mode.
51093         * lib/spawn.in.h: Include c++defs.h.
51094         (posix_spawn, posix_spawnp, posix_spawnattr_init,
51095         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
51096         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
51097         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
51098         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
51099         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
51100         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
51101         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
51102         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
51103         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
51104         In C++, define a namespaced alias symbol.
51105         * modules/spawn (Depends-on): Add c++defs.
51106         (Makefile.am): Update spawn.h rule.
51108         signal: Avoid #define replacements in C++ mode.
51109         * lib/signal.in.h: Include c++defs.h.
51110         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
51111         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
51112         namespaced alias symbol.
51113         * modules/signal (Depends-on): Add c++defs.
51114         (Makefile.am): Update signal.h rule.
51116         search: Avoid #define replacements in C++ mode.
51117         * lib/search.in.h: Include c++defs.h.
51118         (_gl_search_compar_fn, _gl_search_action_fn): New types.
51119         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
51120         symbol.
51121         * modules/search (Depends-on): Add c++defs.
51122         (Makefile.am): Update search.h rule.
51124         math: Avoid #define replacements in C++ mode.
51125         * lib/math.in.h: Include c++defs.h.
51126         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
51127         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
51128         trunc, truncl): In C++, define a namespaced alias symbol.
51129         * modules/math (Depends-on): Add c++defs.
51130         (Makefile.am): Update math.h rule.
51132         locale: Avoid #define replacements in C++ mode.
51133         * lib/locale.in.h: Include c++defs.h.
51134         (duplocale): In C++, define a namespaced alias symbol.
51135         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
51136         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
51137         * modules/locale (Depends-on): Add c++defs.
51138         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
51140         langinfo: Avoid #define replacements in C++ mode.
51141         * lib/langinfo.in.h: Include c++defs.h.
51142         (nl_langinfo): In C++, define a namespaced alias symbol.
51143         * modules/langinfo (Depends-on): Add c++defs.
51144         (Makefile.am): Update langinfo.h rule.
51146         iconv-h: Avoid #define replacements in C++ mode.
51147         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
51148         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
51149         symbol.
51150         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51151         whenever iconv is present.
51152         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
51153         (Makefile.am): Update iconv.h rule.
51155         glob: Avoid #define replacements in C++ mode.
51156         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
51157         (_gl_glob_errfunc_fn): New type.
51158         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
51159         symbol.
51160         * modules/glob (Depends-on): Add c++defs, warn-on-use.
51161         (Makefile.am): Update glob.h rule.
51163         fcntl-h: Avoid #define replacements in C++ mode.
51164         * lib/fcntl.in.h: Include c++defs.h.
51165         (fcntl, open, openat): In C++, define a namespaced alias symbol.
51166         * modules/fcntl-h (Depends-on): Add c++defs.
51167         (Makefile.am): Update fcntl.h rule.
51169         dirent: Avoid #define replacements in C++ mode.
51170         * lib/dirent.in.h: Include c++defs.h.
51171         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
51172         namespaced alias symbol.
51173         (dirfd): Update declaration.
51174         * modules/dirent (Depends-on): Add c++defs.
51175         (Makefile.am): Update dirent.h rule.
51177         ctype: Make it usable in C++ code.
51178         * lib/ctype.in.h: Include c++defs.h.
51179         (isblank): Declare as extern "C".
51180         * modules/ctype (Depends-on): Add c++defs.
51181         (Makefile.am): Update ctype.h rule.
51183         New module 'c++defs'.
51184         * modules/c++defs: New file.
51185         * build-aux/c++defs.h: New file.
51186         Reported by John W. Eaton <jwe@gnu.org>.
51188 2010-03-07  Bruno Haible  <bruno@clisp.org>
51190         logb: Provide missing declaration for Cygwin.
51191         * lib/math.in.h (logb): New declaration.
51192         * m4/logb.m4: New file.
51193         * modules/logb (Files): Add m4/logb.m4.
51194         (Depends-on): Add math.
51195         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
51196         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
51197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
51198         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
51199         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
51201 2010-03-07  Bruno Haible  <bruno@clisp.org>
51203         Fix test-cond link error.
51204         * tests/test-cond.c: Include <stdio.h>.
51206 2010-03-07  Bruno Haible  <bruno@clisp.org>
51208         Fix test-dirent-safer link error.
51209         * modules/dirent-safer-tests (Makefile.am): Define
51210         test_dirent_safer_LDADD.
51212 2010-03-07  Bruno Haible  <bruno@clisp.org>
51214         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
51215         among default module list.
51217 2010-03-07  Bruno Haible  <bruno@clisp.org>
51219         Fix link error on platforms with GNU libiconv.
51220         * modules/unistr/u8-strcoll-tests (Makefile): Define
51221         test_u8_strcoll_LDADD.
51222         * modules/unistr/u16-strcoll-tests (Makefile): Define
51223         test_u16_strcoll_LDADD.
51224         * modules/unistr/u32-strcoll-tests (Makefile): Define
51225         test_u32_strcoll_LDADD.
51227 2010-03-07  Bruno Haible  <bruno@clisp.org>
51229         Use POSIX declarations for socket functions.
51230         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
51231         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
51232         rpl_sendto): Change declaration to match POSIX.
51233         * lib/connect.c (rpl_connect): Likewise.
51234         * lib/accept.c (rpl_accept): Likewise.
51235         * lib/bind.c (rpl_bind): Likewise.
51236         * lib/getpeername.c (rpl_getpeername): Likewise.
51237         * lib/getsockname.c (rpl_getsockname): Likewise.
51238         * lib/recv.c (rpl_recv): Likewise.
51239         * lib/send.c (rpl_send): Likewise.
51240         * lib/recvfrom.c (rpl_recvfrom): Likewise.
51241         * lib/sendto.c (rpl_sendto): Likewise.
51243 2010-03-06  Bruno Haible  <bruno@clisp.org>
51245         Clarify access, euidaccess, faccessat.
51246         * doc/posix-functions/faccessat.texi: Mention security problem under
51247         "Other problems", not "Portability problems".
51248         * doc/posix-functions/access.texi: Likewise. Mention a related security
51249         problem.
51250         * doc/glibc-functions/euidaccess.texi: Mention security problems.
51251         * lib/euidaccess.c: Add comments about platforms.
51252         * lib/unistd.in.h (access, euidaccess): Add warnings.
51254 2010-03-07  Bruno Haible  <bruno@clisp.org>
51256         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
51257         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
51258         (POSIX_SPAWN_SETSCHEDULER): Likewise.
51259         (POSIX_SPAWN_USEVFORK): Define in a way that works when
51260         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51261         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
51262         declare when POSIX_SPAWN_SETSCHEDULER is zero.
51263         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
51264         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
51265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
51266         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
51267         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
51268         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
51269         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
51270         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
51271         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
51272         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
51273         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
51274         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
51275         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
51276         Likewise.
51277         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
51278         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
51279         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
51280         Likewise.
51281         * tests/test-spawn.c (main): Make it work when
51282         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51284 2010-03-07  Bruno Haible  <bruno@clisp.org>
51286         Fix incorrect Makefile.am generation in German locale.
51287         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51288         Execute sed command with character range in C locale.
51290 2010-03-06  Bruno Haible  <bruno@clisp.org>
51292         Tests for module 'iconv-h'.
51293         * modules/iconv-h-tests: New file.
51294         * tests/test-iconv-h.c: New file.
51296         New module 'iconv-h'.
51297         * modules/iconv-h: New file.
51298         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
51299         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
51300         (configure.ac): Remove gl_ICONV_H.
51301         (Makefile.am): Remove rule for iconv.h.
51303 2010-03-06  Bruno Haible  <bruno@clisp.org>
51305         More consistent naming of *.m4 files.
51306         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
51307         * modules/wctype (Files): Update.
51309         More consistent naming of *.m4 files.
51310         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
51311         * modules/wchar (Files): Update.
51313 2010-03-06  Jim Meyering  <meyering@redhat.com>
51315         euidaccess: relax license to LGPLv2+
51316         * modules/euidaccess (License): Relax to LGPLv2+.
51318 2010-03-06  Bruno Haible  <bruno@clisp.org>
51320         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
51321         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
51322         (Makefile.am): Augment lib_SOURCES instead.
51324 2010-03-04  Jim Meyering  <meyering@redhat.com>
51326         utime: remove obsolete module
51327         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
51328         unnecessary for years, and has been marked as obsolete for 10 months.
51329         * modules/utime: Remove file.
51330         * lib/utime.c: Remove file.
51331         * m4/utime.m4: Remove file.
51332         * m4/utimes-null.m4: Remove file.
51333         * doc/posix-functions/utime.texi (utime): Remove reference to
51334         the module.  Move the sole "fixed by gnulib" item into the
51335         "problems not fixed by Gnulib" list.
51336         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
51338 2010-03-05  Simon Josefsson  <simon@josefsson.org>
51340         * modules/exit (License): Relax license to LGPLv2+.
51341         (Status): Mark as obsolete.
51342         * NEWS: Mention deprecated 'exit' module.
51343         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
51344         of now obsolete 'exit'.
51346 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51348         fts-lgpl: remove unused module
51349         * modules/fts-lgpl: Remove.
51350         * MODULES.html.sh (func_all_modules): Adjust.
51351         * check-module (find_included_lib_files): Adjust.
51352         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
51354 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
51356         copy-acl: enhance Solaris ACL error handling
51357         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
51358         * lib/set-mode-acl.c (qset_acl): Likewise.
51360 2010-03-02  Bruno Haible  <bruno@clisp.org>
51362         spawn: Don't override the system defined values on FreeBSD 8.
51363         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
51364         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
51365         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
51366         if HAVE_POSIX_SPAWN is 1.
51367         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
51369 2010-03-01  Bruno Haible  <bruno@clisp.org>
51371         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
51372         regarding Automake.
51374 2010-02-25  Bruno Haible  <bruno@clisp.org>
51376         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
51377         * gnulib-tool: Define 'echo' as a function only before the ksh alias
51378         setting, not afterwards.
51379         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
51381 2010-02-24  Eric Blake  <eblake@redhat.com>
51383         bootstrap, git-version-gen: use timestamp
51384         * build-aux/git-version-gen (scriptversion): Force UTC.
51385         * build-aux/bootstrap (scriptversion): New variable.
51387         bootstrap: allow older git
51388         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
51389         older than 1.6.4.  Requested by the libvirt project.
51391 2010-02-23  Eric Blake  <eblake@redhat.com>
51393         warn-on-use: work with old autoconf
51394         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
51395         AS_VAR semantics of autoconf 2.60.
51396         Reported by Bruno Haible.
51398         bootstrap: improve some comments
51399         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
51400         clarification comments.
51402         gettimeofday: provide correct function
51403         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
51404         when replacement is declared, otherwise provide gettimeofday.
51405         Reported by Michael Goffioul.
51407 2010-02-23  Jim Meyering  <meyering@redhat.com>
51409         lib-ignore: relax license to "unlimited", not LGPLv2+
51410         * modules/lib-ignore (License): Relax to "unlimited".
51412 2010-02-23  Jim Meyering  <meyering@redhat.com>
51414         lib-ignore: relax license to LGPLv2+
51415         * modules/lib-ignore (License): Relax to LGPLv2+.
51417 2010-02-22  Eric Blake  <eblake@redhat.com>
51419         lseek: avoid bash 3.2 broken pipe bug
51420         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
51421         warning from bash 3.2.
51422         Reported by Ben Pfaff, with analysis from Bruno Haible.
51424         bootstrap: support non-FSF copyright holder
51425         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
51426         bootstrap.conf override of COPYRIGHT_HOLDER.
51427         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
51429         bootstrap: interoperate with gettext 0.14.1
51430         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
51432         bootstrap: allow for alternate submodule location
51433         * build-aux/bootstrap (gnulib_path): New variable; use instead of
51434         hardcoding submodule location.
51435         (gnulib_mk): Allow direct use of Makefile.am.
51437         bootstrap: use GNULIB_SRCDIR to reduce disk usage
51438         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
51439         rather than reconfiguring where the submodule points.
51441         gettimeofday: restore support for platforms that lack function
51442         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
51443         replacement if function is missing.
51444         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
51445         * modules/sys_time (Makefile.am): Substitute it.
51446         * lib/sys_time.in.h (gettimeofday): Check it.
51447         Reported by Michael Goffioul.
51449 2010-02-21  Bruno Haible  <bruno@clisp.org>
51451         * lib/stdio.in.h (obstack_printf): Fix typo.
51453 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
51455         vc-list-files: use bzr ls's -R option
51456         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
51457         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
51459 2010-02-21  Jim Meyering  <meyering@redhat.com>
51461         init.sh: fix EXEEXT shims to work also for names like test-prog
51462         * tests/init.sh: Re-exec a better shell, when needed.
51463         If the current shell lacks support for posix $(...), an init.sh-using
51464         test will now try to find a shell that supports that.  If EXEEXT is
51465         nonempty, we also require support for hyphen-in-alias-name and shell
51466         substitutions like ${var#glob}.  Failure to find such a shell results
51467         in a skipped test.
51469 2010-02-21  Bruno Haible  <bruno@clisp.org>
51471         Really work around "broken pipe" error message from bash 3.2.
51472         * gnulib-tool (func_reset_sigpipe): Remove function.
51473         (echo): In bash 3.2, define to a function that uses printf.
51474         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
51476 2010-02-20  Bruno Haible  <bruno@clisp.org>
51478         Restore support for automake 1.9.6 with autoconf 2.61.
51479         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
51480         Reported by James Youngman <jay@gnu.org>.
51482 2010-02-20  Bruno Haible  <bruno@clisp.org>
51484         Improve *printf warning condition.
51485         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
51486         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
51487         and the function is overridden due to SIGPIPE emulation.
51489 2010-02-20  Bruno Haible  <bruno@clisp.org>
51491         * lib/stdio.in.h: Tweak comments.
51493 2010-02-19  Bruno Haible  <bruno@clisp.org>
51495         Make it easier to find modules. New gnulib-tool option '--find'.
51496         * gnulib-tool: New option --find.
51497         (func_usage): Document it.
51498         (func_sanitize_modulelist): New function, extracted from
51499         func_all_modules.
51500         (func_all_modules): Invoke it.
51501         * doc/gnulib-tool.texi (Which modules?): New node.
51503 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
51505         * lib/sys_select.in.h: Provide select replacement even if
51506         sys/select.h exists on a system, for Interix.
51508 2010-02-18  Jim Meyering  <meyering@redhat.com>
51510         init.sh: don't use $(...) just yet
51511         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
51512         to accommodate e.g., Solaris' /bin/sh.
51514 2010-02-17  Bruno Haible  <bruno@clisp.org>
51516         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
51517         Reported by Ludovic Courtès <ludo@gnu.org>.
51519 2010-02-16  Simon Josefsson  <simon@josefsson.org>
51521         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
51522         linking with -lintl.
51524 2010-02-17  Simon Josefsson  <simon@josefsson.org>
51526         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
51527         if not provided by the system's netdb.h.  Reported by
51528         ludo@gnu.org (Ludovic Courtès).
51530 2010-02-15  Jim Meyering  <meyering@redhat.com>
51532         init.sh: improve portability and efficiency
51533         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
51534         "dummy" in a for loop.
51535         Use '!', not '^' to select the complement of a character set used
51536         in a "case" statement.
51537         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
51538         Suggestions from Eric Blake.
51540         init.sh: automatically accommodate programs with the .exe suffix
51541         Automatically arrange for an invocation of "prog" to execute the
51542         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
51543         may use the simpler "prog", yet still work when built on a system
51544         that requires specifying the added suffix.
51545         Do this by constructing a function named "prog" that invokes
51546         "prog.exe" for each .exe file in selected directories.
51547         * tests/init.sh (find_exe_basenames_): New function.
51548         (create_exe_shim_functions_): New function.
51549         (path_prepend_): Use it.
51551         maint.mk: mark syntax-check sc_*.m rules as .PHONY
51552         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
51553         "make -t syntax-check" doesn't create a ton of sc_*.m files.
51555 2010-02-14  Jim Meyering  <meyering@redhat.com>
51557         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
51558         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
51559         (sc_prohibit_hash_pjw_without_use): New rule.
51561         maint.mk: allow the default upload destination dir to be overridden
51562         * top/maint.mk (upload_dest_dir_): Define with a default that
51563         preserves the status quo.
51564         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
51565         Reported by Peter Simons.
51567         maint.mk: prohibit inclusion of "hash.h" without_use
51568         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
51570 2010-02-10  Jim Meyering  <meyering@redhat.com>
51572         maint.mk: prohibit inclusion of "ignore-value.h" without_use
51573         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
51575 2010-02-09  Eric Blake  <ebb9@byu.net>
51576         and Bruno Haible  <bruno@clisp.org>
51578         obstack-printf-posix: ensure declaration
51579         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
51580         extracted from gl_FUNC_OBSTACK_PRINTF.
51581         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
51582         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51583         Likewise.
51584         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
51585         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
51586         0.
51588 2010-02-08  Bruno Haible  <bruno@clisp.org>
51590         gnulib-tool: Fix typo in 2010-02-07 commit.
51591         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
51592         Reported by Eric Blake.
51594 2010-02-07  Bruno Haible  <bruno@clisp.org>
51596         gnulib-tool: Fix up caching patches.
51597         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
51598         option --no-cache. Use associative arrays when supported by the shell.
51599         (sed_comments): New variable.
51600         (modcache): Renamed from do_cache.
51601         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
51602         abbreviate unnecessarily.
51603         (have_associative): New variable.
51604         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
51605         way also for ksh and zsh.
51606         (func_init_sed_convert_to_cache_statements): New function, extracted
51607         from func_cache_lookup_module. Add support for associative arrays.
51608         Don't set the c_MODULE_cached variable here. Ignore all lines before
51609         the first field header. Remove only the final newline, not all trailing
51610         newlines. Support empty fields correctly. Limit the use of 'eval' to
51611         assignments.
51612         (func_get_description, func_get_status, func_get_notice,
51613         func_get_applicability, func_get_filelist, func_get_dependencies,
51614         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
51615         func_get_automake_snippet, func_get_include_directive,
51616         func_get_link_directive, func_get_license, func_get_maintainer):
51617         Update documentation. List the unoptimized code first. Add support for
51618         associative arrays. Limit the use of 'eval' to assignments.
51619         (func_get_applicability): Undo stylistic pessimisations.
51620         (func_get_automake_snippet, func_get_include_directive): Reduce code
51621         duplication.
51622         (func_modules_transitive_closure, func_modules_add_dummy,
51623         func_modules_notice, func_modules_to_filelist, func_add_file,
51624         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
51625         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
51626         func_create_testdir, func_create_megatestdir): Update documentation.
51628 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51630         * gnulib-tool (func_cache_lookup_module): Store the module name
51631         belonging to the cache variable; error out if two different
51632         module names map to the same cache variable name.
51634 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51636         gnulib-tool: Make caching optional.
51637         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
51638         Update matching short versions of --no-changelog.
51639         (func_usage): Update.
51640         (sed_extract_cache_prog): Renamed from ...
51641         (sed_extract_prog): ... this; revert to old extraction script.
51642         (func_get_description, func_get_status)
51643         (func_get_notice, func_get_applicability, func_get_filelist)
51644         (func_get_dependencies, func_get_autoconf_early_snippet)
51645         (func_get_autoconf_snippet, func_get_automake_snippet)
51646         (func_get_include_directive, func_get_link_directive)
51647         (func_get_license, func_get_maintainer): If $do_cache is false,
51648         use old, non-caching extraction scripts.
51649         Suggestion by Bruno Haible.
51651 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51653         gnulib-tool: cache module metainformation.
51654         * gnulib-tool (sed_extract_prog): Match newline before each
51655         header, and rewrite header to a shell variable suffix.
51656         (func_cache_var, func_cache_lookup_module): New functions,
51657         to turn a module name into a cache variable prefix, and to
51658         look up and cache module metainformation.
51659         (func_get_description, func_get_status)
51660         (func_get_notice, func_get_applicability, func_get_filelist)
51661         (func_get_dependencies, func_get_autoconf_early_snippet)
51662         (func_get_autoconf_snippet, func_get_automake_snippet)
51663         (func_get_include_directive, func_get_link_directive)
51664         (func_get_license, func_get_maintainer): Use
51665         func_cache_lookup_module.
51667 2010-02-07  Bruno Haible  <bruno@clisp.org>
51669         fnctl: Fix missing dependency.
51670         * modules/fcntl (Depends-on): Add getdtablesize.
51671         Reported by John W. Eaton <jwe@gnu.org>.
51673 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51675         Argp: fix recognition of short alias options.
51677         * lib/argp-parse.c (convert_options): Fix improper use of
51678         `|' between character values.
51679         * tests/test-argp.c (group1_option): New alias option
51680         --read (-r).
51681         (group1_parser): Special handling for 'r'.
51682         (test15): New test case.
51683         (test_fun): Add test15.
51684         * tests/test-argp-2.sh: Update expected --help and --usage
51685         outputs.
51687 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51689         * tests/test-argp.c: Fix indentation.
51691 2010-02-04  Eric Blake  <ebb9@byu.net>
51693         gettimeofday: expose type of second argument
51694         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
51695         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
51696         * tests/test-gettimeofday.c: Use it to silence warning.
51697         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
51698         the issue.
51700 2010-02-03  Jim Meyering  <meyering@redhat.com>
51702         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
51703         * lib/regcomp.c (TYPE_SIGNED): Define.
51704         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
51706         regcomp.c: avoid a new -Wshadow warning
51707         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
51709 2010-02-01  Jim Meyering  <meyering@redhat.com>
51711         removing useless parentheses in cpp #define directives
51712         For motivation, see commit c0221df4, "define STREQ(a,b)
51713         consistently, removing useless parentheses"
51714         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
51715         * lib/mountlist.c (MNT_IGNORE): Likewise.
51716         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
51718 2010-02-01  Eric Blake  <ebb9@byu.net>
51720         sys_time: use link-warning
51721         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
51722         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
51723         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
51724         * modules/sys_time (Depends-on): Add warn-on-use.
51725         (Makefile.am): Always build replacement.
51726         (configure.ac): Update substitutions.
51727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
51728         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
51729         bother with SYS_TIME_H.
51730         * modules/gettimeofday (configure.ac): Declare indicator.
51731         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
51732         in use.
51734         closein-tests: silence compiler warning
51735         * tests/test-closein.c (main): Ignore fread result.
51736         * modules/closein-tests (Depends-on): Add ignore-value.
51738         tests: silence warning about system return
51739         * tests/test-areadlink-with-size.c (main): Ignore system result.
51740         * tests/test-areadlink.c (main): Likewise.
51741         * tests/test-areadlinkat-with-size.c (main): Likewise.
51742         * tests/test-areadlinkat.c (main): Likewise.
51743         * tests/test-canonicalize-lgpl.c (main): Likewise.
51744         * tests/test-canonicalize.c (main): Likewise.
51745         * tests/test-chown.c (main): Likewise.
51746         * tests/test-fchownat.c (main): Likewise.
51747         * tests/test-fdutimensat.c (main): Likewise.
51748         * tests/test-fstatat.c (main): Likewise.
51749         * tests/test-futimens.c (main): Likewise.
51750         * tests/test-lchown.c (main): Likewise.
51751         * tests/test-link.c (main): Likewise.
51752         * tests/test-linkat.c (main): Likewise.
51753         * tests/test-lstat.c (main): Likewise.
51754         * tests/test-mkdir.c (main): Likewise.
51755         * tests/test-mkdirat.c (main): Likewise.
51756         * tests/test-mkfifo.c (main): Likewise.
51757         * tests/test-mkfifoat.c (main): Likewise.
51758         * tests/test-mknod.c (main): Likewise.
51759         * tests/test-readlink.c (main): Likewise.
51760         * tests/test-remove.c (main): Likewise.
51761         * tests/test-rename.c (main): Likewise.
51762         * tests/test-renameat.c (main): Likewise.
51763         * tests/test-rmdir.c (main): Likewise.
51764         * tests/test-symlink.c (main): Likewise.
51765         * tests/test-symlinkat.c (main): Likewise.
51766         * tests/test-unlink.c (main): Likewise.
51767         * tests/test-unlinkat.c (main): Likewise.
51768         * tests/test-utimens.c (main): Likewise.
51769         * tests/test-utimensat.c (main): Likewise.
51770         * modules/areadlink-tests (Depends-on): Add ignore-value.
51771         * modules/areadlink-with-size-tests (Depends-on): Likewise.
51772         * modules/areadlinkat-tests (Depends-on): Likewise.
51773         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
51774         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
51775         * modules/canonicalize-tests (Depends-on): Likewise.
51776         * modules/chown-tests (Depends-on): Likewise.
51777         * modules/fdutimensat-tests (Depends-on): Likewise.
51778         * modules/futimens-tests (Depends-on): Likewise.
51779         * modules/lchown-tests (Depends-on): Likewise.
51780         * modules/link-tests (Depends-on): Likewise.
51781         * modules/linkat-tests (Depends-on): Likewise.
51782         * modules/lstat-tests (Depends-on): Likewise.
51783         * modules/mkdir-tests (Depends-on): Likewise.
51784         * modules/mkfifo-tests (Depends-on): Likewise.
51785         * modules/mkfifoat-tests (Depends-on): Likewise.
51786         * modules/mknod-tests (Depends-on): Likewise.
51787         * modules/openat-tests (Depends-on): Likewise.
51788         * modules/readlink-tests (Depends-on): Likewise.
51789         * modules/remove-tests (Depends-on): Likewise.
51790         * modules/rename-tests (Depends-on): Likewise.
51791         * modules/renameat-tests (Depends-on): Likewise.
51792         * modules/rmdir-tests (Depends-on): Likewise.
51793         * modules/symlink-tests (Depends-on): Likewise.
51794         * modules/symlinkat-tests (Depends-on): Likewise.
51795         * modules/unlink-tests (Depends-on): Likewise.
51796         * modules/utimens-tests (Depends-on): Likewise.
51797         * modules/utimensat-tests (Depends-on): Likewise.
51799 2010-01-31  Bruno Haible  <bruno@clisp.org>
51801         Perform the same test for many <math.h> functions.
51802         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
51803         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
51804         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
51805         of gl_MATHFUNC.
51806         * modules/acos (configure.ac): Likewise.
51807         * modules/asin (configure.ac): Likewise.
51808         * modules/atan (configure.ac): Likewise.
51809         * modules/atan2 (configure.ac): Likewise.
51810         * modules/cbrt (configure.ac): Likewise.
51811         * modules/copysign (configure.ac): Likewise.
51812         * modules/cos (configure.ac): Likewise.
51813         * modules/cosh (configure.ac): Likewise.
51814         * modules/erf (configure.ac): Likewise.
51815         * modules/erfc (configure.ac): Likewise.
51816         * modules/exp (configure.ac): Likewise.
51817         * modules/fmod (configure.ac): Likewise.
51818         * modules/hypot (configure.ac): Likewise.
51819         * modules/j0 (configure.ac): Likewise.
51820         * modules/j1 (configure.ac): Likewise.
51821         * modules/jn (configure.ac): Likewise.
51822         * modules/lgamma (configure.ac): Likewise.
51823         * modules/log (configure.ac): Likewise.
51824         * modules/log10 (configure.ac): Likewise.
51825         * modules/log1p (configure.ac): Likewise.
51826         * modules/pow (configure.ac): Likewise.
51827         * modules/remainder (configure.ac): Likewise.
51828         * modules/sin (configure.ac): Likewise.
51829         * modules/sinh (configure.ac): Likewise.
51830         * modules/tan (configure.ac): Likewise.
51831         * modules/tanh (configure.ac): Likewise.
51832         * modules/y0 (configure.ac): Likewise.
51833         * modules/y1 (configure.ac): Likewise.
51834         * modules/yn (configure.ac): Likewise.
51835         Suggested by Paolo Bonzini.
51837 2010-01-31  Bruno Haible  <bruno@clisp.org>
51839         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
51841 2010-01-31  Bruno Haible  <bruno@clisp.org>
51843         Work around getdelim() bug on FreeBSD 8.0.
51844         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
51845         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
51846         not work.
51847         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
51848         is 1.
51849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
51850         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
51851         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
51852         a non-zero size.
51853         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
51855 2010-01-31  Bruno Haible  <bruno@clisp.org>
51857         Work around getline() bug on FreeBSD 8.0.
51858         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
51859         and a non-zero size.
51860         * tests/test-getline.c (main): Likewise.
51861         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
51862         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
51864 2010-01-28  Eric Blake  <ebb9@byu.net>
51866         regex: fix build failure
51867         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
51868         platforms.
51870 2010-01-28  Jim Meyering  <meyering@redhat.com>
51872         regex: do not ignore memory allocation failure
51873         * lib/regex_internal.c (create_cd_newstate): Detect
51874         re_node_set_init_copy failure.   Extracted from glibc commit
51875         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
51877         regex: sync more white-space changes from libc
51878         * lib/regex_internal.c: White-space only changes.
51879         * lib/regexec.c: Likewise.
51881         regex: add many uses of __attribute_warn_unused_result__
51882         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
51883         * lib/regexec.c: Likewise.
51884         Extracted from a messy glibc commit.
51886         regcomp.c: spelling and merge-artifact from glibc
51887         * lib/regcomp.c: Merge remainder of glibc's
51888         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
51890         regcomp.c: sync white-space changes from glibc
51891         * lib/regcomp.c: Merge to accommodate white space
51892         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
51894         regcomp.c: do not ignore internal return values
51895         * lib/regcomp.c: Do not ignore internal return values.
51896         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
51897         but without its white-space changes and spelling fixes.
51899         regex_internal.h: define __attribute_warn_unused_result__
51900         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
51902         maint: add a syntax-check rule to check for vulnerable Makefile.in
51903         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
51905 2010-01-27  Jim Meyering  <meyering@redhat.com>
51907         ncftpput-ftp: clean up spaces
51908         * build-aux/ncftpput-ftp: Make Copyright line consistent.
51909         Remove trailing blanks.
51911 2010-01-27  Simon Josefsson  <simon@josefsson.org>
51913         * build-aux/git-version-gen: Fix copyright statement.
51914         * build-aux/gnupload: Likewise.
51915         * tests/test-arcfour.c: Likewise.
51916         * tests/test-arctwo.c: Likewise.
51917         * tests/test-count-one-bits.c: Likewise.
51918         * tests/test-crc.c: Likewise.
51919         * tests/test-des.c: Likewise.
51920         * tests/test-gc-arcfour.c: Likewise.
51921         * tests/test-gc-arctwo.c: Likewise.
51922         * tests/test-gc-des.c: Likewise.
51923         * tests/test-gc-hmac-md5.c: Likewise.
51924         * tests/test-gc-hmac-sha1.c: Likewise.
51925         * tests/test-gc-md2.c: Likewise.
51926         * tests/test-gc-md4.c: Likewise.
51927         * tests/test-gc-md5.c: Likewise.
51928         * tests/test-gc-pbkdf2-sha1.c: Likewise.
51929         * tests/test-gc-rijndael.c: Likewise.
51930         * tests/test-gc-sha1.c: Likewise.
51931         * tests/test-gc.c: Likewise.
51932         * tests/test-gethostname.c: Likewise.
51933         * tests/test-gettimeofday.c: Likewise.
51934         * tests/test-hash.c: Likewise.
51935         * tests/test-hmac-md5.c: Likewise.
51936         * tests/test-hmac-sha1.c: Likewise.
51937         * tests/test-md2.c: Likewise.
51938         * tests/test-md4.c: Likewise.
51939         * tests/test-md5.c: Likewise.
51940         * tests/test-memchr.c: Likewise.
51941         * tests/test-memchr2.c: Likewise.
51942         * tests/test-memcmp.c: Likewise.
51943         * tests/test-memmem.c: Likewise.
51944         * tests/test-memrchr.c: Likewise.
51945         * tests/test-rawmemchr.c: Likewise.
51946         * tests/test-read-file.c: Likewise.
51947         * tests/test-rijndael.c: Likewise.
51948         * tests/test-sockets.c: Likewise.
51949         * tests/test-strchrnul.c: Likewise.
51950         * tests/test-strstr.c: Likewise.
51951         * tests/test-strtod.c: Likewise.
51952         * build-aux/ncftpput-ftp: Likewise.
51954 2010-01-26  Eric Blake  <ebb9@byu.net>
51956         ignore-value: update recommended header name
51957         * modules/ignore-value (Include): Only use <> for headers that
51958         exist in glibc.
51960 2010-01-26  Jim Meyering  <meyering@redhat.com>
51962         test-userspec.c: avoid compiler warnings
51963         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
51964         and "initialization discards qualifiers..." warnings.
51965         Put the first "uid" in its own scope, and make char* members "const".
51967 2010-01-25  Bruno Haible  <bruno@clisp.org>
51969         gnulib-tool: Make warning diagnostics consistent.
51970         * gnulib-tool (func_warning): New function.
51971         Use it everywhere where gnulib-tool produces output to stderr and it is
51972         not a fatal error.
51974 2010-01-25  Bruno Haible  <bruno@clisp.org>
51976         Fix test dependencies.
51977         * modules/xstrtol-tests (Depends-on): Add inttypes.
51978         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
51980 2010-01-25  Pádraig Brady  <P@draigBrady.com>
51982         syntax-check: detect incorrect boolean macro values in config.h
51983         * modules/maintainer-makefile (configure.ac): Parameterize the location
51984         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
51985         The logic is from Eric Blake and the location indicated by Jim Meyering.
51986         Note the more natural CONFIG_HEADER name is prohibited by automake
51987         for backwards compatibility reasons.
51988         * top/maint.mk (sc_Wundef_boolean): New rule.
51990 2010-01-25  Jim Meyering  <meyering@redhat.com>
51992         bootstrap: detect MacOS 10.6's shasum, too
51993         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
51994         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
51996 2010-01-23  Jim Meyering  <meyering@redhat.com>
51998         xstrtoll: new module
51999         * modules/xstrtoll: New file.
52000         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
52001         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
52002         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
52003         ./configure fails if you use this module and lack "long long".
52004         * modules/xstrtoll-tests: New module.
52005         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
52006         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
52007         new init.sh-based test framework.
52009 2010-01-24  Bruno Haible  <bruno@clisp.org>
52011         Tests for module 'yn'.
52012         * modules/yn-tests: New file.
52013         * tests/test-yn.c: New file.
52015         Tests for module 'y1'.
52016         * modules/y1-tests: New file.
52017         * tests/test-y1.c: New file.
52019         Tests for module 'y0'.
52020         * modules/y0-tests: New file.
52021         * tests/test-y0.c: New file.
52023         Tests for module 'tanh'.
52024         * modules/tanh-tests: New file.
52025         * tests/test-tanh.c: New file.
52027         Tests for module 'tan'.
52028         * modules/tan-tests: New file.
52029         * tests/test-tan.c: New file.
52031         Tests for module 'sqrt'.
52032         * modules/sqrt-tests: New file.
52033         * tests/test-sqrt.c: New file.
52035         Tests for module 'sinh'.
52036         * modules/sinh-tests: New file.
52037         * tests/test-sinh.c: New file.
52039         Tests for module 'sin'.
52040         * modules/sin-tests: New file.
52041         * tests/test-sin.c: New file.
52043         Tests for module 'rint'.
52044         * modules/rint-tests: New file.
52045         * tests/test-rint.c: New file.
52047         Tests for module 'remainder'.
52048         * modules/remainder-tests: New file.
52049         * tests/test-remainder.c: New file.
52051         Tests for module 'pow'.
52052         * modules/pow-tests: New file.
52053         * tests/test-pow.c: New file.
52055         Tests for module 'nextafter'.
52056         * modules/nextafter-tests: New file.
52057         * tests/test-nextafter.c: New file.
52059         Tests for module 'modf'.
52060         * modules/modf-tests: New file.
52061         * tests/test-modf.c: New file.
52063         Tests for module 'logb'.
52064         * modules/logb-tests: New file.
52065         * tests/test-logb.c: New file.
52067         Tests for module 'log1p'.
52068         * modules/log1p-tests: New file.
52069         * tests/test-log1p.c: New file.
52071         Tests for module 'log10'.
52072         * modules/log10-tests: New file.
52073         * tests/test-log10.c: New file.
52075         Tests for module 'log'.
52076         * modules/log-tests: New file.
52077         * tests/test-log.c: New file.
52079         Tests for module 'lgamma'.
52080         * modules/lgamma-tests: New file.
52081         * tests/test-lgamma.c: New file.
52083         Tests for module 'ldexp'.
52084         * modules/ldexp-tests: New file.
52085         * tests/test-ldexp.c: New file.
52087         Tests for module 'jn'.
52088         * modules/jn-tests: New file.
52089         * tests/test-jn.c: New file.
52091         Tests for module 'j1'.
52092         * modules/j1-tests: New file.
52093         * tests/test-j1.c: New file.
52095         Tests for module 'j0'.
52096         * modules/j0-tests: New file.
52097         * tests/test-j0.c: New file.
52099         Tests for module 'hypot'.
52100         * modules/hypot-tests: New file.
52101         * tests/test-hypot.c: New file.
52103         Tests for module 'fmod'.
52104         * modules/fmod-tests: New file.
52105         * tests/test-fmod.c: New file.
52107         Tests for module 'fabs'.
52108         * modules/fabs-tests: New file.
52109         * tests/test-fabs.c: New file.
52111         Tests for module 'exp'.
52112         * modules/exp-tests: New file.
52113         * tests/test-exp.c: New file.
52115         Tests for module 'erfc'.
52116         * modules/erfc-tests: New file.
52117         * tests/test-erfc.c: New file.
52119         Tests for module 'erf'.
52120         * modules/erf-tests: New file.
52121         * tests/test-erf.c: New file.
52123         Tests for module 'cosh'.
52124         * modules/cosh-tests: New file.
52125         * tests/test-cosh.c: New file.
52127         Tests for module 'cos'.
52128         * modules/cos-tests: New file.
52129         * tests/test-cos.c: New file.
52131         Tests for module 'copysign'.
52132         * modules/copysign-tests: New file.
52133         * tests/test-copysign.c: New file.
52135         Tests for module 'cbrt'.
52136         * modules/cbrt-tests: New file.
52137         * tests/test-cbrt.c: New file.
52139         Tests for module 'atan2'.
52140         * modules/atan2-tests: New file.
52141         * tests/test-atan2.c: New file.
52143         Tests for module 'atan'.
52144         * modules/atan-tests: New file.
52145         * tests/test-atan.c: New file.
52147         Tests for module 'asin'.
52148         * modules/asin-tests: New file.
52149         * tests/test-asin.c: New file.
52151         Tests for module 'acos'.
52152         * modules/acos-tests: New file.
52153         * tests/test-acos.c: New file.
52155 2010-01-24  Bruno Haible  <bruno@clisp.org>
52157         Fix tests for common <math.h> functions.
52158         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
52159         code snippet that references the function pointer, rather than merely
52160         calling the function. Substitute the FUNC_LIBM variable.
52161         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
52162         * modules/acos (configure.ac): Likewise.
52163         * modules/asin (configure.ac): Likewise.
52164         * modules/atan (configure.ac): Likewise.
52165         * modules/atan2 (configure.ac): Likewise.
52166         * modules/cbrt (configure.ac): Likewise.
52167         * modules/copysign (configure.ac): Likewise.
52168         * modules/cos (configure.ac): Likewise.
52169         * modules/cosh (configure.ac): Likewise.
52170         * modules/erf (configure.ac): Likewise.
52171         * modules/erfc (configure.ac): Likewise.
52172         * modules/exp (configure.ac): Likewise.
52173         * modules/fabs (configure.ac): Likewise.
52174         * modules/fmod (configure.ac): Likewise.
52175         * modules/hypot (configure.ac): Likewise.
52176         * modules/j0 (configure.ac): Likewise.
52177         * modules/j1 (configure.ac): Likewise.
52178         * modules/jn (configure.ac): Likewise.
52179         * modules/ldexp (configure.ac): Likewise.
52180         * modules/lgamma (configure.ac): Likewise.
52181         * modules/log (configure.ac): Likewise.
52182         * modules/log10 (configure.ac): Likewise.
52183         * modules/log1p (configure.ac): Likewise.
52184         * modules/logb (configure.ac): Likewise.
52185         * modules/modf (configure.ac): Likewise.
52186         * modules/nextafter (configure.ac): Likewise.
52187         * modules/pow (configure.ac): Likewise.
52188         * modules/remainder (configure.ac): Likewise.
52189         * modules/rint (configure.ac): Likewise.
52190         * modules/sin (configure.ac): Likewise.
52191         * modules/sinh (configure.ac): Likewise.
52192         * modules/tan (configure.ac): Likewise.
52193         * modules/tanh (configure.ac): Likewise.
52194         * modules/y0 (configure.ac): Likewise.
52195         * modules/y1 (configure.ac): Likewise.
52196         * modules/yn (configure.ac): Likewise.
52198 2010-01-24  Bruno Haible  <bruno@clisp.org>
52200         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
52201         * tests/test-acosl.c (x): New variable.
52202         (main): Store argument in x and fetch it from x.
52203         * tests/test-asinl.c (x): New variable.
52204         (main): Store argument in x and fetch it from x.
52205         * tests/test-atanl.c (x): New variable.
52206         (main): Store argument in x and fetch it from x.
52207         * tests/test-cosl.c (x): New variable.
52208         (main): Store argument in x and fetch it from x.
52209         * tests/test-expl.c (x): New variable.
52210         (main): Store argument in x and fetch it from x.
52211         * tests/test-logl.c (x): New variable.
52212         (main): Store argument in x and fetch it from x.
52213         * tests/test-sinl.c (x): New variable.
52214         (main): Store argument in x and fetch it from x.
52215         * tests/test-sqrtl.c (x): New variable.
52216         (main): Store argument in x and fetch it from x.
52217         * tests/test-tanl.c (x): New variable.
52218         (main): Store argument in x and fetch it from x.
52220 2010-01-24  Bruno Haible  <bruno@clisp.org>
52222         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
52223         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
52224         assignments to the initial TESTS_ENVIRONMENT.
52225         * doc/gnulib.texi (Unit test modules): Document it.
52226         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
52227         TESTS_ENVIRONMENT.
52228         * modules/btowc-tests (Makefile.am): Likewise.
52229         * modules/c-stack-tests (Makefile.am): Likewise.
52230         * modules/c-strcase-tests (Makefile.am): Likewise.
52231         * modules/copy-file-tests (Makefile.am): Likewise.
52232         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
52233         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
52234         * modules/mbrtowc-tests (Makefile.am): Likewise.
52235         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52236         * modules/mbscasestr-tests (Makefile.am): Likewise.
52237         * modules/mbschr-tests (Makefile.am): Likewise.
52238         * modules/mbscspn-tests (Makefile.am): Likewise.
52239         * modules/mbsinit-tests (Makefile.am): Likewise.
52240         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52241         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
52242         * modules/mbspbrk-tests (Makefile.am): Likewise.
52243         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52244         * modules/mbsrchr-tests (Makefile.am): Likewise.
52245         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
52246         * modules/mbsspn-tests (Makefile.am): Likewise.
52247         * modules/mbsstr-tests (Makefile.am): Likewise.
52248         * modules/nl_langinfo-tests (Makefile.am): Likewise.
52249         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
52250         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52251         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52252         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52253         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52254         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
52255         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52256         * modules/wcrtomb-tests (Makefile.am): Likewise.
52257         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
52258         * modules/wcsrtombs-tests (Makefile.am): Likewise.
52259         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
52260         assignments from TESTS_ENVIRONMENT.
52261         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
52262         augmentation.
52263         * modules/argp-version-etc-tests (Makefile.am): Likewise.
52264         * modules/atexit-tests (Makefile.am): Likewise.
52265         * modules/binary-io-tests (Makefile.am): Likewise.
52266         * modules/closein-tests (Makefile.am): Likewise.
52267         * modules/dprintf-posix-tests (Makefile.am): Likewise.
52268         * modules/exclude-tests (Makefile.am): Likewise.
52269         * modules/fflush-tests (Makefile.am): Likewise.
52270         * modules/fpending-tests (Makefile.am): Likewise.
52271         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52272         * modules/freadahead-tests (Makefile.am): Likewise.
52273         * modules/freadptr-tests (Makefile.am): Likewise.
52274         * modules/freadseek-tests (Makefile.am): Likewise.
52275         * modules/fseek-tests (Makefile.am): Likewise.
52276         * modules/fseeko-tests (Makefile.am): Likewise.
52277         * modules/ftell-tests (Makefile.am): Likewise.
52278         * modules/ftello-tests (Makefile.am): Likewise.
52279         * modules/idpriv-drop-tests (Makefile.am): Likewise.
52280         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
52281         * modules/lseek-tests (Makefile.am): Likewise.
52282         * modules/parse-duration-tests (Makefile.am): Likewise.
52283         * modules/perror-tests (Makefile.am): Likewise.
52284         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
52285         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
52286         * modules/pipe-tests (Makefile.am): Likewise.
52287         * modules/pread-tests (Makefile.am): Likewise.
52288         * modules/printf-posix-tests (Makefile.am): Likewise.
52289         * modules/select-tests (Makefile.am): Likewise.
52290         * modules/sigpipe-tests (Makefile.am): Likewise.
52291         * modules/tsearch-tests (Makefile.am): Likewise.
52292         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
52293         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
52294         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52295         * modules/uniwidth/width-tests (Makefile.am): Likewise.
52296         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
52297         * modules/version-etc-tests (Makefile.am): Likewise.
52298         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52299         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52300         * modules/xalloc-die-tests (Makefile.am): Likewise.
52301         * modules/xprintf-posix-tests (Makefile.am): Likewise.
52302         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52303         * modules/xstrtol-tests (Makefile.am): Likewise.
52304         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52305         * modules/yesno-tests (Makefile.am): Likewise.
52306         Suggested by Jim Meyering.
52308 2010-01-24  Bruno Haible  <bruno@clisp.org>
52310         More documentation.
52311         * doc/gnulib.texi (Writing modules): New chapter.
52312         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
52313         the new chapter.
52315 2010-01-24  Jim Meyering  <meyering@redhat.com>
52317         maint.mk: do not prepend "./" after filtering
52318         * top/maint.mk (_prepend_srcdir_prefix): New variable
52319         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
52320         "./" when $(srcdir) is ".".
52322         define STREQ(a,b) consistently, removing useless parentheses
52323         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
52324         since the only risk is that "a" or "b" contains an unparenthesized
52325         comma, but if either did that, STREQ would have 3 or more arguments.
52326         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
52327         * lib/fts.c (STREQ): Remove unnecessary parentheses.
52328         * lib/hash-triple.c (STREQ): Likewise.
52329         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
52330         * lib/getugroups.c (STREQ): Likewise.
52332 2010-01-23  Jim Meyering  <meyering@redhat.com>
52334         maint.mk: fix syntax-check in a non-srcdir build directory
52335         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
52336         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
52338 2010-01-22  Jim Meyering  <meyering@redhat.com>
52340         userspec: add unit tests
52341         * tests/test-userspec.c: New file.
52342         * modules/userspec-tests: Likewise.
52344 2010-01-21  Jim Meyering  <meyering@redhat.com>
52346         maint.mk: handle source file names containing "." robustly
52347         * top/maint.mk (_dot_escaped_srcdir): Define.
52348         (VC_LIST): Use it in LHS of sed substitution.
52350 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
52352         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
52353         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
52354         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
52355         from a non-srcdir build.
52357 2010-01-20  Eric Blake  <ebb9@byu.net>
52359         warn-on-use: use instead of link-warning
52360         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
52361         * modules/unistd (Depends-on, Makefile.am): Likewise.
52362         * modules/arpa_inet (Depends-on): Replace link-warning with
52363         warn-on-use.
52364         (Makefile.am): Update rules accordingly.
52365         * modules/ctype (Depends-on, Makefile.am): Likewise.
52366         * modules/dirent (Depends-on, Makefile.am): Likewise.
52367         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
52368         * modules/inttypes (Depends-on, Makefile.am): Likewise.
52369         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52370         * modules/locale (Depends-on, Makefile.am): Likewise.
52371         * modules/math (Depends-on, Makefile.am): Likewise.
52372         * modules/search (Depends-on, Makefile.am): Likewise.
52373         * modules/signal (Depends-on, Makefile.am): Likewise.
52374         * modules/spawn (Depends-on, Makefile.am): Likewise.
52375         * modules/stdlib (Depends-on, Makefile.am): Likewise.
52376         * modules/string (Depends-on, Makefile.am): Likewise.
52377         * modules/strings (Depends-on, Makefile.am): Likewise.
52378         * modules/sys_file (Depends-on, Makefile.am): Likewise.
52379         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
52380         * modules/sys_select (Depends-on, Makefile.am): Likewise.
52381         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
52382         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
52383         * modules/sys_times (Depends-on, Makefile.am): Likewise.
52384         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52385         * modules/wchar (Depends-on, Makefile.am): Likewise.
52386         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
52387         should be poisoned.
52388         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
52389         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
52390         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
52391         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52392         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52393         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52394         * m4/math_h.m4 (gl_MATH_H): Likewise.
52395         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52396         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52397         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52398         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52399         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52400         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52401         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
52402         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
52403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
52404         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52407         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52408         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52409         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52410         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52411         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
52412         GL_LINK_WARNING.
52413         * lib/ctype.in.h: Likewise.
52414         * lib/dirent.in.h: Likewise.
52415         * lib/fcntl.in.h: Likewise.
52416         * lib/inttypes.in.h: Likewise.
52417         * lib/langinfo.in.h: Likewise.
52418         * lib/locale.in.h: Likewise.
52419         * lib/math.in.h: Likewise.
52420         * lib/search.in.h: Likewise.
52421         * lib/signal.in.h: Likewise.
52422         * lib/spawn.in.h: Likewise.
52423         * lib/stdio.in.h: Likewise.
52424         * lib/stdlib.in.h: Likewise.
52425         * lib/string.in.h: Likewise.
52426         * lib/strings.in.h: Likewise.
52427         * lib/sys_file.in.h: Likewise.
52428         * lib/sys_ioctl.in.h: Likewise.
52429         * lib/sys_select.in.h: Likewise.
52430         * lib/sys_socket.in.h: Likewise.
52431         * lib/sys_stat.in.h: Likewise.
52432         * lib/sys_times.in.h: Likewise.
52433         * lib/sys_utsname.in.h: Likewise.
52434         * lib/unistd.in.h: Likewise.
52435         * lib/wchar.in.h: Likewise.
52437 2010-01-20  Bruno Haible  <bruno@clisp.org>
52439         Avoid duplicate -lm.
52440         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
52441         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
52442         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
52443         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
52444         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
52445         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
52446         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
52447         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
52448         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
52449         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
52450         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
52451         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
52452         Reported by Paolo Bonzini.
52454 2010-01-19  Bruno Haible  <bruno@clisp.org>
52456         langinfo, nl_langinfo: Relicense under LGPLv2+.
52457         * modules/langinfo (License): Change to LGPLv2+.
52458         * modules/nl_langinfo (License): Likewise.
52459         Patch by David Lutterkort <lutter@redhat.com>.
52461 2010-01-19  Bruno Haible  <bruno@clisp.org>
52463         Avoid compilation error with cc on OSF/1 5.1.
52464         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
52465         statement, not before.
52466         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52468 2010-01-18  Bruno Haible  <bruno@clisp.org>
52470         Avoid a link error due to the __printf__ symbol.
52471         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
52472         and 2.6.x.
52473         (__format__, __printf__): Remove definitions.
52474         * lib/argp-fmtstream.h: Likewise.
52475         * lib/argp.h: Likewise.
52476         * lib/error.h: Likewise.
52477         * lib/vasnprintf.h: Likewise.
52478         * lib/xprintf.h: Likewise.
52479         * lib/xvasprintf.h: Likewise.
52480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52482 2010-01-18  Bruno Haible  <bruno@clisp.org>
52484         Tests for module 'tanl'.
52485         * modules/tanl-tests: New file.
52486         * tests/test-tanl.c: New file.
52488         Tests for module 'sqrtl'.
52489         * modules/sqrtl-tests: New file.
52490         * tests/test-sqrtl.c: New file.
52492         Tests for module 'sinl'.
52493         * modules/sinl-tests: New file.
52494         * tests/test-sinl.c: New file.
52496         Tests for module 'logl'.
52497         * modules/logl-tests: New file.
52498         * tests/test-logl.c: New file.
52500         Tests for module 'expl'.
52501         * modules/expl-tests: New file.
52502         * tests/test-expl.c: New file.
52504         Tests for module 'cosl'.
52505         * modules/cosl-tests: New file.
52506         * tests/test-cosl.c: New file.
52508         Tests for module 'atanl'.
52509         * modules/atanl-tests: New file.
52510         * tests/test-atanl.c: New file.
52512         Tests for module 'asinl'.
52513         * modules/asinl-tests: New file.
52514         * tests/test-asinl.c: New file.
52516         Tests for module 'acosl'.
52517         * modules/acosl-tests: New file.
52518         * tests/test-acosl.c: New file.
52520         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
52521         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
52522         tanl): Use the standard gnulib idiom.
52523         * lib/cosl.c: Don't include trigl.c and sincosl.c.
52524         * lib/sinl.c: Likewise.
52525         * lib/tanl.c: Don't include trigl.c.
52526         (kernel_tanl): Make static.
52527         * lib/sincosl.c: Include trigl.h first.
52528         * lib/trigl.c: Likewise.
52529         * m4/acosl.m4: New file.
52530         * m4/asinl.m4: New file.
52531         * m4/atanl.m4: New file.
52532         * m4/cosl.m4: New file.
52533         * m4/expl.m4: New file.
52534         * m4/logl.m4: New file.
52535         * m4/sinl.m4: New file.
52536         * m4/sqrtl.m4: New file.
52537         * m4/tanl.m4: New file.
52538         * m4/mathl.m4: Remove file.
52539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
52540         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
52541         Don't initialize GNULIB_MATHL.
52542         * modules/acosl: New file.
52543         * modules/asinl: New file.
52544         * modules/atanl: New file.
52545         * modules/cosl: New file.
52546         * modules/expl: New file.
52547         * modules/logl: New file.
52548         * modules/sinl: New file.
52549         * modules/sqrtl: New file.
52550         * modules/tanl: New file.
52551         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
52552         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
52553         substitute GNULIB_MATHL.
52554         * modules/mathl: Rewritten.
52555         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
52556         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
52557         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
52558         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
52559         * doc/posix-functions/expl.texi: Mention the 'expl' module.
52560         * doc/posix-functions/logl.texi: Mention the 'logl' module.
52561         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
52562         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
52563         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
52565 2010-01-18  Bruno Haible  <bruno@clisp.org>
52567         sqrt: Make gl_FUNC_SQRT requirable.
52568         * m4/sqrt.m4: New file.
52569         * modules/sqrt (Files): Add it.
52570         (configure.ac): Invoke gl_FUNC_SQRT.
52572 2010-01-18  Bruno Haible  <bruno@clisp.org>
52574         New modules for common <math.h> functions.
52575         * m4/mathfunc.m4: New file.
52576         * modules/acos: New file.
52577         * modules/asin: New file.
52578         * modules/atan: New file.
52579         * modules/atan2: New file.
52580         * modules/cbrt: New file.
52581         * modules/copysign: New file.
52582         * modules/cos: New file.
52583         * modules/cosh: New file.
52584         * modules/erf: New file.
52585         * modules/erfc: New file.
52586         * modules/exp: New file.
52587         * modules/fabs: New file.
52588         * modules/fmod: New file.
52589         * modules/hypot: New file.
52590         * modules/j0: New file.
52591         * modules/j1: New file.
52592         * modules/jn: New file.
52593         * modules/ldexp: New file.
52594         * modules/lgamma: New file.
52595         * modules/log: New file.
52596         * modules/log10: New file.
52597         * modules/log1p: New file.
52598         * modules/logb: New file.
52599         * modules/modf: New file.
52600         * modules/nextafter: New file.
52601         * modules/pow: New file.
52602         * modules/remainder: New file.
52603         * modules/rint: New file.
52604         * modules/sin: New file.
52605         * modules/sinh: New file.
52606         * modules/sqrt: New file.
52607         * modules/tan: New file.
52608         * modules/tanh: New file.
52609         * modules/y0: New file.
52610         * modules/y1: New file.
52611         * modules/yn: New file.
52612         * doc/posix-functions/acos.texi: Mention the 'acos' module.
52613         * doc/posix-functions/asin.texi: Mention the 'asin' module.
52614         * doc/posix-functions/atan.texi: Mention the 'atan' module.
52615         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
52616         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
52617         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
52618         * doc/posix-functions/cos.texi: Mention the 'cos' module.
52619         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
52620         * doc/posix-functions/erf.texi: Mention the 'erf' module.
52621         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
52622         * doc/posix-functions/exp.texi: Mention the 'exp' module.
52623         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
52624         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
52625         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
52626         * doc/posix-functions/j0.texi: Mention the 'j0' module.
52627         * doc/posix-functions/j1.texi: Mention the 'j1' module.
52628         * doc/posix-functions/jn.texi: Mention the 'jn' module.
52629         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
52630         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
52631         * doc/posix-functions/log.texi: Mention the 'log' module.
52632         * doc/posix-functions/log10.texi: Mention the 'log10' module.
52633         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
52634         * doc/posix-functions/logb.texi: Mention the 'logb' module.
52635         * doc/posix-functions/modf.texi: Mention the 'modf' module.
52636         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
52637         * doc/posix-functions/pow.texi: Mention the 'pow' module.
52638         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
52639         * doc/posix-functions/rint.texi: Mention the 'rint' module.
52640         * doc/posix-functions/sin.texi: Mention the 'sin' module.
52641         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
52642         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
52643         * doc/posix-functions/tan.texi: Mention the 'tan' module.
52644         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
52645         * doc/posix-functions/y0.texi: Mention the 'y0' module.
52646         * doc/posix-functions/y1.texi: Mention the 'y1' module.
52647         * doc/posix-functions/yn.texi: Mention the 'yn' module.
52649 2010-01-18  Jim Meyering  <meyering@redhat.com>
52651         ignore-value: relax license to LGPLv2+
52652         * modules/ignore-value (License): Relax to LGPLv2+.
52654         getdate: don't leak when TZ contains two or more '"'s
52655         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
52656         double quote in TZ after the first one.
52658         readtokens: do not leak internal token_lengths buffer
52659         * lib/readtokens.c (readtokens): Free the local, lengths,
52660         when the supplied "token_lengths" parameter is NULL.
52662 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52664         Fix a couple of missing LIBTHREAD link failures on AIX.
52665         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
52666         $(LIBTHREAD).
52667         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
52669         Link test-poll against INET_PTON_LIB.
52670         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
52671         for inet_pton on Solaris 10.
52673 2010-01-17  Bruno Haible  <bruno@clisp.org>
52675         unistdio/*-sprintf: Fix typo in module description.
52676         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
52677         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
52678         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
52679         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
52680         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
52681         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
52682         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
52683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52685 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52687         gnulib-tool: fix filelist for AIX, HP-UX ksh.
52688         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
52689         variables in shell case patterns, for AIX and HP-UX ksh.
52691         Split large sed scripts, for HP-UX sed.
52692         * modules/stdio: Split sed scripts around 50 sed commands,
52693         to avoid HP-UX limit of 99 commands, in the near future.
52694         * modules/string: Likewise.
52695         * modules/unistd: Likewise.
52697         gnulib-tool: avoid writing in the current directory.
52698         * gnulib-tool (func_emit_lib_Makefile_am)
52699         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
52700         not in the current directory, so concurrent gnulib-tool
52701         instances do not interfere.
52703 2010-01-16  Jim Meyering  <meyering@redhat.com>
52705         doc: update users.txt
52706         * users.txt: Add grep.
52707         (diffutils, gzip): Update URLs.
52709 2010-01-12  Bruno Haible  <bruno@clisp.org>
52711         posix_spawn: Avoid test failure on Cygwin.
52712         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
52713         characters.
52714         Reported by Simon Josefsson.
52716 2010-01-12  Bruno Haible  <bruno@clisp.org>
52718         * tests/test-cond.c (main): When skipping the test, show the reason.
52720 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52722         * lib/striconv.c (str_cd_iconv): Avoid if before free.
52724 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52726         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
52727         VC_LIST_ALWAYS_EXCLUDE_REGEX.
52729 2010-01-12  Eric Blake  <ebb9@byu.net>
52731         build: guarantee AS_VAR_IF
52732         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
52733         (gl_AS_VAR_IF): Move...
52734         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
52735         Reported by Simon Josefsson.
52737 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52739         * lib/stdio.in.h: Fix typo.
52741 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52743         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
52744         libgpg-error.
52746 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52748         * tests/test-xalloc-die.sh: Use $EXEEXT.
52750 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52751             Bruno Haible  <bruno@clisp.org>
52753         getlogin, getlogin_r: Avoid test failure.
52754         * tests/test-getlogin.c: Include <stdio.h>.
52755         (main): Skip the test when the function fails because stdin is not a
52756         tty.
52757         * tests/test-getlogin_r.c: Include <stdio.h>.
52758         (main): Skip the test when the function fails because stdin is not a
52759         tty.
52761 2010-01-11  Eric Blake  <ebb9@byu.net>
52763         tests: avoid more large file warnings
52764         * tests/test-fflush.c: Avoid warning about ftell use.
52765         * tests/test-fseek.c: Avoid warning about fseek use.
52767 2010-01-10  Bruno Haible  <bruno@clisp.org>
52769         nproc: Work better on Linux when /proc and /sys are not mounted.
52770         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
52771         as lower bound when, on glibc/Linux systems,
52772         sysconf (_SC_NPROCESSORS_CONF) returns 1.
52773         Suggested by Pádraig Brady <P@draigbrady.com>.
52774         Reported by Dmitry V. Levin <ldv@altlinux.org>.
52776         nproc: Refactor.
52777         * lib/nproc.c (num_processors_via_affinity_mask): New function,
52778         extracted from num_processors.
52779         (num_processors): Call it.
52781 2010-01-11  Jim Meyering  <meyering@redhat.com>
52783         utimecmp: avoid new warning from upcoming gcc-4.5.0
52784         * lib/utimecmp.c (BILLION): Define using #define rather than an
52785         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
52787 2010-01-11  Eric Blake  <ebb9@byu.net>
52789         math: add portability warnings for classification macros
52790         * modules/math (Depends-on): Add warn-on-use.
52791         (Makefile.am): Provide new substitutions.
52792         * m4/math_h.m4 (gl_MATH_H): Require inline.
52793         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
52794         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
52795         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
52796         implement warnings.
52798         unistd: warn on use of environ without module
52799         * modules/unistd (Depends-on): Add warn-on-use.
52800         (Makefile.am): Provide new substitutions.
52801         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
52802         * lib/unistd.in.h (environ): Wrap with a warning helper function.
52804         stdio: warn on suspicious uses
52805         * modules/stdio (Depends-on): Add warn-on-use.
52806         (Makefile.am): Provide new substitutions.
52807         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
52808         fseeko.
52809         * lib/stdio.in.h (gets): Always warn on use.
52810         (fseek, ftell): Adjust when warnings are issued, and honor
52811         _GL_NO_LARGE_FILES as a way to silence the warning.
52812         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
52813         any warning about large file offsets.
52814         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
52815         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
52816         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
52817         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
52818         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
52819         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
52820         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
52821         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
52823         warn-on-use: new module
52824         * modules/warn-on-use: New file.
52825         * build-aux/warn-on-use.h: Likewise.
52826         * m4/warn-on-use.m4: Likewise.
52827         * MODULES.html.sh (Support for building): Mention it.
52829 2010-01-10  Bruno Haible  <bruno@clisp.org>
52831         Tests for module 'unistr/u32-strdup'.
52832         * modules/unistr/u32-strdup-tests: New file.
52833         * tests/unistr/test-u32-strdup.c: New file.
52835         Tests for module 'unistr/u16-strdup'.
52836         * modules/unistr/u16-strdup-tests: New file.
52837         * tests/unistr/test-u16-strdup.c: New file.
52839         Tests for module 'unistr/u8-strdup'.
52840         * modules/unistr/u8-strdup-tests: New file.
52841         * tests/unistr/test-u8-strdup.c: New file.
52842         * tests/unistr/test-strdup.h: New file.
52844         Tests for module 'unistr/u32-strncmp'.
52845         * modules/unistr/u32-strncmp-tests: New file.
52846         * tests/unistr/test-u32-strncmp.c: New file.
52848         Tests for module 'unistr/u16-strncmp'.
52849         * modules/unistr/u16-strncmp-tests: New file.
52850         * tests/unistr/test-u16-strncmp.c: New file.
52852         Tests for module 'unistr/u8-strncmp'.
52853         * modules/unistr/u8-strncmp-tests: New file.
52854         * tests/unistr/test-u8-strncmp.c: New file.
52855         * tests/unistr/test-strncmp.h: New file.
52857         Tests for module 'unistr/u32-strcoll'.
52858         * modules/unistr/u32-strcoll-tests: New file.
52859         * tests/unistr/test-u32-strcoll.c: New file.
52861         Tests for module 'unistr/u16-strcoll'.
52862         * modules/unistr/u16-strcoll-tests: New file.
52863         * tests/unistr/test-u16-strcoll.c: New file.
52865         Tests for module 'unistr/u8-strcoll'.
52866         * modules/unistr/u8-strcoll-tests: New file.
52867         * tests/unistr/test-u8-strcoll.c: New file.
52869         Tests for module 'unistr/u32-strcmp'.
52870         * modules/unistr/u32-strcmp-tests: New file.
52871         * tests/unistr/test-u32-strcmp.c: New file.
52872         * tests/unistr/test-u32-strcmp.h: New file.
52874         Tests for module 'unistr/u16-strcmp'.
52875         * modules/unistr/u16-strcmp-tests: New file.
52876         * tests/unistr/test-u16-strcmp.c: New file.
52877         * tests/unistr/test-u16-strcmp.h: New file.
52879         Tests for module 'unistr/u8-strcmp'.
52880         * modules/unistr/u8-strcmp-tests: New file.
52881         * tests/unistr/test-u8-strcmp.c: New file.
52882         * tests/unistr/test-u8-strcmp.h: New file.
52883         * tests/unistr/test-strcmp.h: New file.
52885         Tests for module 'unistr/u32-strncat'.
52886         * modules/unistr/u32-strncat-tests: New file.
52887         * tests/unistr/test-u32-strncat.c: New file.
52889         Tests for module 'unistr/u16-strncat'.
52890         * modules/unistr/u16-strncat-tests: New file.
52891         * tests/unistr/test-u16-strncat.c: New file.
52893         Tests for module 'unistr/u8-strncat'.
52894         * modules/unistr/u8-strncat-tests: New file.
52895         * tests/unistr/test-u8-strncat.c: New file.
52896         * tests/unistr/test-strncat.h: New file.
52898         Tests for module 'unistr/u32-strcat'.
52899         * modules/unistr/u32-strcat-tests: New file.
52900         * tests/unistr/test-u32-strcat.c: New file.
52902         Tests for module 'unistr/u16-strcat'.
52903         * modules/unistr/u16-strcat-tests: New file.
52904         * tests/unistr/test-u16-strcat.c: New file.
52906         Tests for module 'unistr/u8-strcat'.
52907         * modules/unistr/u8-strcat-tests: New file.
52908         * tests/unistr/test-u8-strcat.c: New file.
52909         * tests/unistr/test-strcat.h: New file.
52911         Tests for module 'unistr/u32-stpncpy'.
52912         * modules/unistr/u32-stpncpy-tests: New file.
52913         * tests/unistr/test-u32-stpncpy.c: New file.
52915         Tests for module 'unistr/u16-stpncpy'.
52916         * modules/unistr/u16-stpncpy-tests: New file.
52917         * tests/unistr/test-u16-stpncpy.c: New file.
52919         Tests for module 'unistr/u8-stpncpy'.
52920         * modules/unistr/u8-stpncpy-tests: New file.
52921         * tests/unistr/test-u8-stpncpy.c: New file.
52922         * tests/unistr/test-stpncpy.h: New file.
52924         Tests for module 'unistr/u32-strncpy'.
52925         * modules/unistr/u32-strncpy-tests: New file.
52926         * tests/unistr/test-u32-strncpy.c: New file.
52928         Tests for module 'unistr/u16-strncpy'.
52929         * modules/unistr/u16-strncpy-tests: New file.
52930         * tests/unistr/test-u16-strncpy.c: New file.
52932         Tests for module 'unistr/u8-strncpy'.
52933         * modules/unistr/u8-strncpy-tests: New file.
52934         * tests/unistr/test-u8-strncpy.c: New file.
52935         * tests/unistr/test-strncpy.h: New file.
52937         Tests for module 'unistr/u32-stpcpy'.
52938         * modules/unistr/u32-stpcpy-tests: New file.
52939         * tests/unistr/test-u32-stpcpy.c: New file.
52941         Tests for module 'unistr/u16-stpcpy'.
52942         * modules/unistr/u16-stpcpy-tests: New file.
52943         * tests/unistr/test-u16-stpcpy.c: New file.
52945         Tests for module 'unistr/u8-stpcpy'.
52946         * modules/unistr/u8-stpcpy-tests: New file.
52947         * tests/unistr/test-u8-stpcpy.c: New file.
52948         * tests/unistr/test-stpcpy.h: New file.
52950         Tests for module 'unistr/u32-strcpy'.
52951         * modules/unistr/u32-strcpy-tests: New file.
52952         * tests/unistr/test-u32-strcpy.c: New file.
52954         Tests for module 'unistr/u16-strcpy'.
52955         * modules/unistr/u16-strcpy-tests: New file.
52956         * tests/unistr/test-u16-strcpy.c: New file.
52958         Tests for module 'unistr/u8-strcpy'.
52959         * modules/unistr/u8-strcpy-tests: New file.
52960         * tests/unistr/test-u8-strcpy.c: New file.
52961         * tests/unistr/test-strcpy.h: New file.
52963         Tests for module 'unistr/u32-strnlen'.
52964         * modules/unistr/u32-strnlen-tests: New file.
52965         * tests/unistr/test-u32-strnlen.c: New file.
52967         Tests for module 'unistr/u16-strnlen'.
52968         * modules/unistr/u16-strnlen-tests: New file.
52969         * tests/unistr/test-u16-strnlen.c: New file.
52971         Tests for module 'unistr/u8-strnlen'.
52972         * modules/unistr/u8-strnlen-tests: New file.
52973         * tests/unistr/test-u8-strnlen.c: New file.
52974         * tests/unistr/test-strnlen.h: New file.
52976         Tests for module 'unistr/u32-strlen'.
52977         * modules/unistr/u32-strlen-tests: New file.
52978         * tests/unistr/test-u32-strlen.c: New file.
52980         Tests for module 'unistr/u16-strlen'.
52981         * modules/unistr/u16-strlen-tests: New file.
52982         * tests/unistr/test-u16-strlen.c: New file.
52984         Tests for module 'unistr/u8-strlen'.
52985         * modules/unistr/u8-strlen-tests: New file.
52986         * tests/unistr/test-u8-strlen.c: New file.
52988         Tests for module 'unistr/u32-prev'.
52989         * modules/unistr/u32-prev-tests: New file.
52990         * tests/unistr/test-u32-prev.c: New file.
52992         Tests for module 'unistr/u16-prev'.
52993         * modules/unistr/u16-prev-tests: New file.
52994         * tests/unistr/test-u16-prev.c: New file.
52996         Tests for module 'unistr/u8-prev'.
52997         * modules/unistr/u8-prev-tests: New file.
52998         * tests/unistr/test-u8-prev.c: New file.
53000         Tests for module 'unistr/u32-next'.
53001         * modules/unistr/u32-next-tests: New file.
53002         * tests/unistr/test-u32-next.c: New file.
53004         Tests for module 'unistr/u16-next'.
53005         * modules/unistr/u16-next-tests: New file.
53006         * tests/unistr/test-u16-next.c: New file.
53008         Tests for module 'unistr/u8-next'.
53009         * modules/unistr/u8-next-tests: New file.
53010         * tests/unistr/test-u8-next.c: New file.
53012         Tests for module 'unistr/u32-strmbtouc'.
53013         * modules/unistr/u32-strmbtouc-tests: New file.
53014         * tests/unistr/test-u32-strmbtouc.c: New file.
53016         Tests for module 'unistr/u16-strmbtouc'.
53017         * modules/unistr/u16-strmbtouc-tests: New file.
53018         * tests/unistr/test-u16-strmbtouc.c: New file.
53020         Tests for module 'unistr/u8-strmbtouc'.
53021         * modules/unistr/u8-strmbtouc-tests: New file.
53022         * tests/unistr/test-u8-strmbtouc.c: New file.
53024         Tests for module 'unistr/u32-strmblen'.
53025         * modules/unistr/u32-strmblen-tests: New file.
53026         * tests/unistr/test-u32-strmblen.c: New file.
53028         Tests for module 'unistr/u16-strmblen'.
53029         * modules/unistr/u16-strmblen-tests: New file.
53030         * tests/unistr/test-u16-strmblen.c: New file.
53032         Tests for module 'unistr/u8-strmblen'.
53033         * modules/unistr/u8-strmblen-tests: New file.
53034         * tests/unistr/test-u8-strmblen.c: New file.
53036         Tests for module 'unistr/u32-cpy-alloc'.
53037         * modules/unistr/u32-cpy-alloc-tests: New file.
53038         * tests/unistr/test-u32-cpy-alloc.c: New file.
53040         Tests for module 'unistr/u16-cpy-alloc'.
53041         * modules/unistr/u16-cpy-alloc-tests: New file.
53042         * tests/unistr/test-u16-cpy-alloc.c: New file.
53044         Tests for module 'unistr/u8-cpy-alloc'.
53045         * modules/unistr/u8-cpy-alloc-tests: New file.
53046         * tests/unistr/test-u8-cpy-alloc.c: New file.
53047         * tests/unistr/test-cpy-alloc.h: New file.
53049         Tests for module 'unistr/u32-mbsnlen'.
53050         * modules/unistr/u32-mbsnlen-tests: New file.
53051         * tests/unistr/test-u32-mbsnlen.c: New file.
53053         Tests for module 'unistr/u16-mbsnlen'.
53054         * modules/unistr/u16-mbsnlen-tests: New file.
53055         * tests/unistr/test-u16-mbsnlen.c: New file.
53057         Tests for module 'unistr/u8-mbsnlen'.
53058         * modules/unistr/u8-mbsnlen-tests: New file.
53059         * tests/unistr/test-u8-mbsnlen.c: New file.
53061         Tests for module 'unistr/u32-chr'.
53062         * modules/unistr/u32-chr-tests: New file.
53063         * tests/unistr/test-u32-chr.c: New file.
53065         Tests for module 'unistr/u16-chr'.
53066         * modules/unistr/u16-chr-tests: New file.
53067         * tests/unistr/test-u16-chr.c: New file.
53069         Tests for module 'unistr/u8-chr'.
53070         * modules/unistr/u8-chr-tests: New file.
53071         * tests/unistr/test-u8-chr.c: New file.
53072         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
53074         Tests for module 'unistr/u32-cmp2'.
53075         * modules/unistr/u32-cmp2-tests: New file.
53076         * tests/unistr/test-u32-cmp2.c: New file.
53078         Tests for module 'unistr/u16-cmp2'.
53079         * modules/unistr/u16-cmp2-tests: New file.
53080         * tests/unistr/test-u16-cmp2.c: New file.
53082         Tests for module 'unistr/u8-cmp2'.
53083         * modules/unistr/u8-cmp2-tests: New file.
53084         * tests/unistr/test-u8-cmp2.c: New file.
53085         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
53087         Tests for module 'unistr/u32-cmp'.
53088         * modules/unistr/u32-cmp-tests: New file.
53089         * tests/unistr/test-u32-cmp.c: New file.
53091         Tests for module 'unistr/u16-cmp'.
53092         * modules/unistr/u16-cmp-tests: New file.
53093         * tests/unistr/test-u16-cmp.c: New file.
53095         Tests for module 'unistr/u8-cmp'.
53096         * modules/unistr/u8-cmp-tests: New file.
53097         * tests/unistr/test-u8-cmp.c: New file.
53098         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
53100         Tests for module 'unistr/u32-set'.
53101         * modules/unistr/u32-set-tests: New file.
53102         * tests/unistr/test-u32-set.c: New file.
53104         Tests for module 'unistr/u16-set'.
53105         * modules/unistr/u16-set-tests: New file.
53106         * tests/unistr/test-u16-set.c: New file.
53108         Tests for module 'unistr/u8-set'.
53109         * modules/unistr/u8-set-tests: New file.
53110         * tests/unistr/test-u8-set.c: New file.
53111         * tests/unistr/test-set.h: New file.
53113         Tests for module 'unistr/u32-move'.
53114         * modules/unistr/u32-move-tests: New file.
53115         * tests/unistr/test-u32-move.c: New file.
53117         Tests for module 'unistr/u16-move'.
53118         * modules/unistr/u16-move-tests: New file.
53119         * tests/unistr/test-u16-move.c: New file.
53121         Tests for module 'unistr/u8-move'.
53122         * modules/unistr/u8-move-tests: New file.
53123         * tests/unistr/test-u8-move.c: New file.
53124         * tests/unistr/test-move.h: New file.
53126         Tests for module 'unistr/u32-cpy'.
53127         * modules/unistr/u32-cpy-tests: New file.
53128         * tests/unistr/test-u32-cpy.c: New file.
53130         Tests for module 'unistr/u16-cpy'.
53131         * modules/unistr/u16-cpy-tests: New file.
53132         * tests/unistr/test-u16-cpy.c: New file.
53134         Tests for module 'unistr/u8-cpy'.
53135         * modules/unistr/u8-cpy-tests: New file.
53136         * tests/unistr/test-u8-cpy.c: New file.
53137         * tests/unistr/test-cpy.h: New file.
53139 2010-01-09  Bruno Haible  <bruno@clisp.org>
53141         Tests for module 'unistr/u32-uctomb'.
53142         * modules/unistr/u32-uctomb-tests: New file.
53143         * tests/unistr/test-u32-uctomb.c: New file.
53145         Tests for module 'unistr/u16-uctomb'.
53146         * modules/unistr/u16-uctomb-tests: New file.
53147         * tests/unistr/test-u16-uctomb.c: New file.
53149         Tests for module 'unistr/u8-uctomb'.
53150         * modules/unistr/u8-uctomb-tests: New file.
53151         * tests/unistr/test-u8-uctomb.c: New file.
53153         Tests for module 'unistr/u32-mbtoucr'.
53154         * modules/unistr/u32-mbtoucr-tests: New file.
53155         * tests/unistr/test-u32-mbtoucr.c: New file.
53157         Tests for module 'unistr/u16-mbtoucr'.
53158         * modules/unistr/u16-mbtoucr-tests: New file.
53159         * tests/unistr/test-u16-mbtoucr.c: New file.
53161         Tests for module 'unistr/u8-mbtoucr'.
53162         * modules/unistr/u8-mbtoucr-tests: New file.
53163         * tests/unistr/test-u8-mbtoucr.c: New file.
53165         Tests for module 'unistr/u32-mbtouc'.
53166         * modules/unistr/u32-mbtouc-tests: New file.
53167         * tests/unistr/test-u32-mbtouc.c: New file.
53169         Tests for module 'unistr/u16-mbtouc'.
53170         * modules/unistr/u16-mbtouc-tests: New file.
53171         * tests/unistr/test-u16-mbtouc.c: New file.
53173         Tests for module 'unistr/u8-mbtouc'.
53174         * modules/unistr/u8-mbtouc-tests: New file.
53175         * tests/unistr/test-u8-mbtouc.c: New file.
53177         Tests for module 'unistr/u32-mbtouc-unsafe'.
53178         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
53179         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
53180         * tests/unistr/test-u32-mbtouc.h: New file.
53182         Tests for module 'unistr/u16-mbtouc-unsafe'.
53183         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
53184         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
53185         * tests/unistr/test-u16-mbtouc.h: New file.
53187         Tests for module 'unistr/u8-mbtouc-unsafe'.
53188         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
53189         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
53190         * tests/unistr/test-u8-mbtouc.h: New file.
53192         Tests for module 'unistr/u32-mblen'.
53193         * modules/unistr/u32-mblen-tests: New file.
53194         * tests/unistr/test-u32-mblen.c: New file.
53196         Tests for module 'unistr/u16-mblen'.
53197         * modules/unistr/u16-mblen-tests: New file.
53198         * tests/unistr/test-u16-mblen.c: New file.
53200         Tests for module 'unistr/u8-mblen'.
53201         * modules/unistr/u8-mblen-tests: New file.
53202         * tests/unistr/test-u8-mblen.c: New file.
53204         Tests for module 'unistr/u32-to-u16'.
53205         * modules/unistr/u32-to-u16-tests: New file.
53206         * tests/unistr/test-u32-to-u16.c: New file.
53208         Tests for module 'unistr/u32-to-u8'.
53209         * modules/unistr/u32-to-u8-tests: New file.
53210         * tests/unistr/test-u32-to-u8.c: New file.
53212         Tests for module 'unistr/u16-to-u32'.
53213         * modules/unistr/u16-to-u32-tests: New file.
53214         * tests/unistr/test-u16-to-u32.c: New file.
53216         Tests for module 'unistr/u16-to-u8'.
53217         * modules/unistr/u16-to-u8-tests: New file.
53218         * tests/unistr/test-u16-to-u8.c: New file.
53220         Tests for module 'unistr/u8-to-u32'.
53221         * modules/unistr/u8-to-u32-tests: New file.
53222         * tests/unistr/test-u8-to-u32.c: New file.
53224         Tests for module 'unistr/u8-to-u16'.
53225         * modules/unistr/u8-to-u16-tests: New file.
53226         * tests/unistr/test-u8-to-u16.c: New file.
53228         Tests for module 'unistr/u32-check'.
53229         * modules/unistr/u32-check-tests: New file.
53230         * tests/unistr/test-u32-check.c: New file.
53232         Tests for module 'unistr/u16-check'.
53233         * modules/unistr/u16-check-tests: New file.
53234         * tests/unistr/test-u16-check.c: New file.
53236         Tests for module 'unistr/u8-check'.
53237         * modules/unistr/u8-check-tests: New file.
53238         * tests/unistr/test-u8-check.c: New file.
53240         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
53241         (category_equals): New function.
53242         (main): Add more tests.
53243         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
53245         * tests/unictype/test-bidi_byname.c (main): Add more tests.
53247 2010-01-10  Bruno Haible  <bruno@clisp.org>
53249         unistr/u*-strcoll: Try harder to distinguish different strings.
53250         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
53251         compare s1 and s2 to see if they are different.
53253 2010-01-10  Bruno Haible  <bruno@clisp.org>
53255         unistr/u*-stpncpy: Fix the return value.
53256         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
53257         description of the return value consistent with stpncpy in glibc.
53258         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
53259         written non-NUL unit.
53261 2010-01-10  Bruno Haible  <bruno@clisp.org>
53263         unistr/u*-next: Add missing dependencies.
53264         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
53265         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
53266         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
53268 2010-01-10  Bruno Haible  <bruno@clisp.org>
53270         unistr/u8-mbsnlen: Fix return value for incomplete character.
53271         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
53272         u8_mblen.
53273         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
53274         Remove unistr/u8-mblen.
53275         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
53276         u16_mblen.
53277         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
53278         Remove unistr/u16-mblen.
53280 2010-01-10  Bruno Haible  <bruno@clisp.org>
53282         wchar: Fix compilation error when <wchar.h> is used from coreutils.
53283         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
53284         Reported by Brian Gough <bjg@gnu.org> and
53285         Chris Clayton <chris2553@googlemail.com> via
53286         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
53288 2010-01-09  Bruno Haible  <bruno@clisp.org>
53290         unistr/u16-to-u32: Reject invalid input.
53291         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
53292         u16_mbtouc.
53293         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
53294         Remove unistr/u16-mbtouc.
53296         unistr/u16-to-u8: Reject invalid input.
53297         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
53298         u16_mbtouc.
53299         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
53300         Remove unistr/u16-mbtouc.
53302         unistr/u8-to-u32: Reject invalid input.
53303         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
53304         u8_mbtouc.
53305         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
53306         Remove unistr/u8-mbtouc.
53308         unistr/u8-to-u16: Reject invalid input.
53309         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
53310         u8_mbtouc.
53311         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
53312         Remove unistr/u8-mbtouc.
53314 2010-01-09  Bruno Haible  <bruno@clisp.org>
53316         Tests for module 'getlogin'.
53317         * modules/getlogin-tests: New file.
53318         * tests/test-getlogin.c: New file.
53320         New module 'getlogin'.
53321         * lib/unistd.in.h (getlogin): New declaration.
53322         * lib/getlogin.c: New file.
53323         * m4/getlogin.m4: New file.
53324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
53325         HAVE_GETLOGIN.
53326         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
53327         HAVE_GETLOGIN.
53328         * modules/getlogin: New file.
53329         * doc/posix-functions/getlogin.texi: Mention the new module.
53330         Reported by John W. Eaton <jwe@gnu.org>.
53332 2010-01-09  Bruno Haible  <bruno@clisp.org>
53334         getlogin_r: Support for native Windows.
53335         * lib/getlogin_r.c: Include <windows.h>
53336         (getlogin_r): Implement for native Windows.
53337         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
53338         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
53339         via John W. Eaton <jwe@gnu.org>.
53341 2010-01-09  Bruno Haible  <bruno@clisp.org>
53343         getlogin_r: Small fixes.
53344         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
53345         succeeds.
53346         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
53347         before testing whether getlogin_r is declared. No need to set
53348         HAVE_DECL_GETLOGIN_R to 1.
53349         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
53351 2010-01-09  Bruno Haible  <bruno@clisp.org>
53353         * lib/unistd.in.h (getlogin_r): Add comment.
53355 2010-01-09  Bruno Haible  <bruno@clisp.org>
53357         Tests for module 'getlogin_r'.
53358         * modules/getlogin_r-tests: New file.
53359         * tests/test-getlogin_r.c: New file.
53361 2010-01-09  Jim Meyering  <meyering@redhat.com>
53363         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
53364         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
53365         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
53367 2010-01-08  Simon Josefsson  <simon@josefsson.org>
53369         * lib/dup2.c (rpl_dup2): Improve comment.
53371 2010-01-08  Eric Blake  <ebb9@byu.net>
53373         maint.mk: allow packages to add makefile @@ exceptions
53374         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
53375         (sc_makefile_check): Rename...
53376         (sc_makefile_at_at_check): ...to this, and use hook.
53378         dup2: work around mingw bug
53379         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
53380         Reported by Simon Josefsson.
53382 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
53384         glob: Fix C++ compilation.
53385         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
53386         C++.
53388 2010-01-07  Bruno Haible  <bruno@clisp.org>
53390         Fix indentation of wctype.in.h, broken since 2007-01-06.
53391         * lib/wctype.in.h: Fix indentation of preprocessor directives.
53393 2010-01-07  Bruno Haible  <bruno@clisp.org>
53395         mbslen: Avoid collision with system function.
53396         * lib/string.in.h [MirBSD]: Include <wchar.h>.
53397         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
53398         * m4/mbslen.m4: New file.
53399         * modules/mbslen (Files): Add it.
53400         (configure.ac): Invoke gl_MBSLEN.
53401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
53402         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
53403         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
53404         via Ian Beckwith <ianb@erislabs.net>.
53406 2010-01-07  Bruno Haible  <bruno@clisp.org>
53408         dirent: Document the last fix.
53409         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
53411 2010-01-07  Bruno Haible  <bruno@clisp.org>
53413         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
53414         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
53415         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
53416         va_list are defined.
53417         * doc/posix-headers/stdio.texi: Document the bug of missing types.
53418         Reported by Eric Blake.
53420 2010-01-07  Bruno Haible  <bruno@clisp.org>
53422         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
53423         * modules/xlist (Depends-on): Add 'list',
53424         * modules/xoset (Depends-on): Add 'oset'.
53425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53427 2010-01-07  Bruno Haible  <bruno@clisp.org>
53429         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
53430         * doc/posix-functions/strncasecmp.texi: Likewise.
53432 2010-01-07  Bruno Haible  <bruno@clisp.org>
53434         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
53436 2010-01-07  John W. Eaton  <jwe@octave.org>
53438         wctype: allow C++ use
53439         * lib/wctype.in.h: Add extern "C" block for C++.
53441 2010-01-06  Eric Blake  <ebb9@byu.net>
53443         maint.mk: detect incorrect GFDL usage
53444         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
53446 2010-01-06  Jim Meyering  <meyering@redhat.com>
53447         and Eric Blake  <ebb9@byu.net>
53449         maint.mk: ignore multi-line copyright in NEWS
53450         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
53452 2010-01-06  Eric Blake  <ebb9@byu.net>
53454         select: add missing dependency
53455         * modules/select-tests (Depends-on): Move sockets dependency...
53456         * modules/select (Depends-on): ...here.
53457         Reported by Ian Beckwith.
53459         doc: regenerate INSTALL
53460         * doc/INSTALL: Reflect recent autoconf update.
53461         * doc/INSTALL.ISO: Likewise.
53462         * doc/INSTALL.UTF-8: Likewise.
53464         pread: fix compilation on glibc
53465         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
53466         Reported by Ralf Wildenhues.
53468         dirent: fix test failure
53469         * lib/dirent.in.h (includes): Guarantee ino_t.
53470         Reported by Ralf Wildenhues.
53472 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
53474         linkat, renameat: avoid bad free
53475         * lib/at-func2.c (at_func2): Fix typo.
53476         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
53478 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53480         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
53481         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
53482         to avoid failure of symlink test later.
53484 2010-01-06  Eric Blake  <ebb9@byu.net>
53486         stdio, unistd: guarantee ssize_t
53487         * lib/unistd.in.h (includes): Ensure that types required by POSIX
53488         2008 are exposed when needed.
53489         * lib/stdio.in.h (includes): Likewise.
53490         Reported by Ralf Wildenhues.
53492 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
53494         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
53495         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
53496         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
53498 2010-01-06  Jim Meyering  <meyering@redhat.com>
53500         readtokens: this module *does* require xalloc.h
53501         It uses only functions that were omitted by the old syntax-check rule.
53502         * lib/readtokens.c: Include "xalloc.h" once again.
53503         * modules/readtokens (Depends-on): Add xalloc.
53504         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
53506 2010-01-05  Eric Blake  <ebb9@byu.net>
53508         maint: support 'make announcement' from a VPATH build
53509         * top/maint.mk (announcement): Look for correct NEWS file.
53511 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
53513         utimens (fdutimens): ignore a negative FD, per contract
53514         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
53515         when we have a valid file descriptor.  Otherwise, using a brand
53516         new glibc (with just-patched futimens that now fails with EBADF)
53517         would cause this function to fail with ENOSYS.
53518         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
53519         See also http://bugzilla.redhat.com/552320.
53521 2010-01-05  Eric Blake  <ebb9@byu.net>
53523         strcase: document what it provides
53524         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
53525         gnulib module.
53526         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
53527         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
53529 2010-01-05  Jim Meyering  <meyering@redhat.com>
53531         maint: remove useless inclusions of "xalloc.h"
53532         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
53533         * lib/readtokens.c: Likewise.
53534         * lib/same.c: Likewise.
53535         * modules/getloadavg (Depends-on): Remove xalloc.
53536         * modules/readtokens: Likewise.
53537         * modules/same: Likewise.
53539         maint.mk: include 4 more function names in alloca.h-checking regexp
53540         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
53541         regexp.  Before, we would give a false-positive (saying alloca.h
53542         is included unnecessarily) when the only uses involved omitted symbols.
53544         xalloc.h: use consistent formatting
53545         * lib/xalloc.h: Move declarations to start in the first column.
53547 2010-01-05  Eric Blake  <ebb9@byu.net>
53549         mkdir: avoid xalloc
53550         * lib/mkdir.c (includes): Drop unused header.
53551         Reported by John W. Eaton.
53553 2010-01-04  Jim Meyering  <meyering@redhat.com>
53555         nl_langinfo: avoid configure-time syntax error
53556         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
53557         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
53558         the empty string.  Don't let that provoke a shell syntax error.
53560         regcomp, regexec, fnmatch: avoid array bounds read error
53561         * lib/regcomp.c (build_equiv_class): From glibc:
53562         Use only the low 24 bits of a findidx return value as an index
53563         into the weights array.  Patch by Ulrich Drepper:
53564         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
53565         * lib/regexec.c (check_node_accept_bytes): Likewise.
53566         * lib/fnmatch_loop.c (FCT): Likewise.
53568         regcomp: skip collseq lookup when there are no rules
53569         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
53570         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
53572         regcomp: recognize ill-formed { } expressions
53573         * lib/regcomp.c (parse_dup_op): From glibc:
53574         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
53576         regcomp: fix typo in comment
53577         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
53578         s/satisfy/satisfies/.
53580         regcomp: sync from glibc: remove dead store
53581         * lib/regcomp.c (duplicate_node_closure): Remove useless
53582         search_duplicated_node call and dead store.
53584         regcomp: sync from glibc; always use nl_langinfo
53585         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
53586         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
53587         * modules/regex (Depends-on): Add nl_langinfo.
53589 2010-01-04  Eric Blake  <ebb9@byu.net>
53591         fdopendir: fix configure test
53592         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
53594 2010-01-01  Bruno Haible  <bruno@clisp.org>
53596         wchar: Remove unused configure check.
53597         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
53599 2010-01-01  Eric Blake  <ebb9@byu.net>
53601         headers: make check of system header explicit
53602         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
53603         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
53604         ourselves.
53605         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53606         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53607         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53608         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
53609         internals.
53610         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
53611         missing.
53612         Suggested by Bruno Haible.
53614 2010-01-01  Jim Meyering  <meyering@redhat.com>
53616         ChangeLog: tweak to eliminate unnecessary copyright line
53617         * ChangeLog: Remove a copyright line that was mistakenly updated
53618         by today's update-copyright run.  Reported by Eric Blake.
53620         test-update-copyright: don't let envvar setting cause test failure
53621         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
53623 2010-01-01  Bruno Haible  <bruno@clisp.org>
53625         localename: Avoid gcc warning.
53626         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
53627         function if it is not used.
53629 2010-01-01  Jim Meyering  <meyering@redhat.com>
53631         update nearly all FSF copyright year lists to include 2010
53632         Use the same procedure as for 2009, outlined in
53633         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
53635         version-etc: set COPYRIGHT_YEAR to 2010
53636         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
53638 2009-12-31  Eric Blake  <ebb9@byu.net>
53640         doc: correct availability of cygwin 1.5.x getopt
53641         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
53642         variables.
53643         * doc/posix-functions/opterr.texi (opterr): Likewise.
53644         * doc/posix-functions/optind.texi (optind): Likewise.
53645         * doc/posix-functions/optopt.texi (optopt): Likewise.
53646         * doc/posix-functions/tzname.texi (tzname): Likewise.
53648         openat: update maintainer
53649         * modules/openat (Maintainer): Add myself.
53651         utimens: avoid shadowing warning
53652         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
53653         buffers into one, to avoid shadowing, as well as avoiding a
53654         redundant stat.
53655         Reported by Jim Meyering.
53657         test-dup2: avoid compiler warning
53658         * tests/test-dup2.c (is_inheritable): Only define if used.
53660 2010-01-01  Bruno Haible  <bruno@clisp.org>
53662         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
53663         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
53664         defined, use wctomb instead of wcrtomb.
53666 2010-01-01  Bruno Haible  <bruno@clisp.org>
53668         iconv: Reject native Solaris iconv.
53669         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
53670         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
53672 2009-12-31  Bruno Haible  <bruno@clisp.org>
53674         * tests/test-signal.c (main): Remove test of 'SIG'.
53676 2009-12-31  Bruno Haible  <bruno@clisp.org>
53678         spawn: Fix incomplete fix.
53679         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
53680         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
53681         warnings for GNULIB_POSIXCHECK again.
53682         Reported by Eric Blake.
53684 2009-12-31  Bruno Haible  <bruno@clisp.org>
53686         Avoid namespace pollution on glibc systems.
53687         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
53688         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
53689         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
53690         glibc systems.
53692 2009-12-31  Bruno Haible  <bruno@clisp.org>
53694         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
53695         (gl_REPLACE_WCHAR_H): Turn into a no-op.
53696         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
53697         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
53698         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
53699         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
53700         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
53702 2009-12-31  Bruno Haible  <bruno@clisp.org>
53704         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
53705         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
53706         afterwards.
53708 2009-12-31  Bruno Haible  <bruno@clisp.org>
53710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
53711         SYS_UTSNAME_H.
53713 2009-12-31  Bruno Haible  <bruno@clisp.org>
53715         spawn: Fix misapplied patch.
53716         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
53717         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
53718         warnings for GNULIB_POSIXCHECK.
53720 2009-12-31  Bruno Haible  <bruno@clisp.org>
53722         times: Update after sys_times changed.
53723         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
53724         * modules/times (Files): Add it.
53725         (configure.ac): Invoke gl_FUNC_TIMES.
53727 2009-12-31  Bruno Haible  <bruno@clisp.org>
53729         Use AC_C_INLINE where necessary.
53730         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
53731         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53733         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53734         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53735         * m4/mbiter.m4 (gl_MBITER): Likewise.
53736         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53737         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
53738         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
53739         * modules/u64 (configure.ac): Likewise.
53741 2009-12-31  Bruno Haible  <bruno@clisp.org>
53743         Use AC_C_INLINE instead of module 'inline' where possible.
53744         * modules/inline (Description): Clarify purpose.
53745         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
53746         * modules/count-one-bits (Depends-on): Remove inline.
53747         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
53748         * modules/openat (Depends-on): Remove inline.
53749         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
53750         instead of depending on module 'inline'.
53751         * modules/filevercmp (Depends-on, configure.ac): Likewise.
53752         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
53753         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
53754         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
53755         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
53756         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
53757         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
53758         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
53759         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
53760         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
53761         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
53762         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
53763         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
53764         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
53765         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
53766         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
53767         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
53768         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
53769         Likewise.
53770         * modules/unictype/property-ascii-hex-digit (Depends-on,
53771         configure.ac): Likewise.
53772         * modules/unictype/property-bidi-arabic-digit (Depends-on,
53773         configure.ac): Likewise.
53774         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
53775         configure.ac): Likewise.
53776         * modules/unictype/property-bidi-block-separator (Depends-on,
53777         configure.ac): Likewise.
53778         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
53779         configure.ac): Likewise.
53780         * modules/unictype/property-bidi-common-separator (Depends-on,
53781         configure.ac): Likewise.
53782         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
53783         Likewise.
53784         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
53785         configure.ac): Likewise.
53786         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
53787         configure.ac): Likewise.
53788         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
53789         configure.ac): Likewise.
53790         * modules/unictype/property-bidi-european-digit (Depends-on,
53791         configure.ac): Likewise.
53792         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
53793         configure.ac): Likewise.
53794         * modules/unictype/property-bidi-left-to-right (Depends-on,
53795         configure.ac): Likewise.
53796         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
53797         configure.ac): Likewise.
53798         * modules/unictype/property-bidi-other-neutral (Depends-on,
53799         configure.ac): Likewise.
53800         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
53801         Likewise.
53802         * modules/unictype/property-bidi-segment-separator (Depends-on,
53803         configure.ac): Likewise.
53804         * modules/unictype/property-bidi-whitespace (Depends-on,
53805         configure.ac): Likewise.
53806         * modules/unictype/property-combining (Depends-on, configure.ac):
53807         Likewise.
53808         * modules/unictype/property-composite (Depends-on, configure.ac):
53809         Likewise.
53810         * modules/unictype/property-currency-symbol (Depends-on,
53811         configure.ac): Likewise.
53812         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
53813         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
53814         Likewise.
53815         * modules/unictype/property-default-ignorable-code-point (Depends-on,
53816         configure.ac): Likewise.
53817         * modules/unictype/property-deprecated (Depends-on, configure.ac):
53818         Likewise.
53819         * modules/unictype/property-diacritic (Depends-on, configure.ac):
53820         Likewise.
53821         * modules/unictype/property-extender (Depends-on, configure.ac):
53822         Likewise.
53823         * modules/unictype/property-format-control (Depends-on, configure.ac):
53824         Likewise.
53825         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
53826         Likewise.
53827         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
53828         Likewise.
53829         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
53830         Likewise.
53831         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
53832         Likewise.
53833         * modules/unictype/property-hyphen (Depends-on, configure.ac):
53834         Likewise.
53835         * modules/unictype/property-id-continue (Depends-on, configure.ac):
53836         Likewise.
53837         * modules/unictype/property-id-start (Depends-on, configure.ac):
53838         Likewise.
53839         * modules/unictype/property-ideographic (Depends-on, configure.ac):
53840         Likewise.
53841         * modules/unictype/property-ids-binary-operator (Depends-on,
53842         configure.ac): Likewise.
53843         * modules/unictype/property-ids-trinary-operator (Depends-on,
53844         configure.ac): Likewise.
53845         * modules/unictype/property-ignorable-control (Depends-on,
53846         configure.ac): Likewise.
53847         * modules/unictype/property-iso-control (Depends-on, configure.ac):
53848         Likewise.
53849         * modules/unictype/property-join-control (Depends-on, configure.ac):
53850         Likewise.
53851         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
53852         Likewise.
53853         * modules/unictype/property-line-separator (Depends-on, configure.ac):
53854         Likewise.
53855         * modules/unictype/property-logical-order-exception (Depends-on,
53856         configure.ac): Likewise.
53857         * modules/unictype/property-lowercase (Depends-on, configure.ac):
53858         Likewise.
53859         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
53860         * modules/unictype/property-non-break (Depends-on, configure.ac):
53861         Likewise.
53862         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
53863         Likewise.
53864         * modules/unictype/property-numeric (Depends-on, configure.ac):
53865         Likewise.
53866         * modules/unictype/property-other-alphabetic (Depends-on,
53867         configure.ac): Likewise.
53868         * modules/unictype/property-other-default-ignorable-code-point
53869         (Depends-on, configure.ac): Likewise.
53870         * modules/unictype/property-other-grapheme-extend (Depends-on,
53871         configure.ac): Likewise.
53872         * modules/unictype/property-other-id-continue (Depends-on,
53873         configure.ac): Likewise.
53874         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
53875         Likewise.
53876         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
53877         Likewise.
53878         * modules/unictype/property-other-math (Depends-on, configure.ac):
53879         Likewise.
53880         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
53881         Likewise.
53882         * modules/unictype/property-paired-punctuation (Depends-on,
53883         configure.ac): Likewise.
53884         * modules/unictype/property-paragraph-separator (Depends-on,
53885         configure.ac): Likewise.
53886         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
53887         Likewise.
53888         * modules/unictype/property-pattern-white-space (Depends-on,
53889         configure.ac): Likewise.
53890         * modules/unictype/property-private-use (Depends-on, configure.ac):
53891         Likewise.
53892         * modules/unictype/property-punctuation (Depends-on, configure.ac):
53893         Likewise.
53894         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
53895         Likewise.
53896         * modules/unictype/property-radical (Depends-on, configure.ac):
53897         Likewise.
53898         * modules/unictype/property-sentence-terminal (Depends-on,
53899         configure.ac): Likewise.
53900         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
53901         Likewise.
53902         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
53903         * modules/unictype/property-terminal-punctuation (Depends-on,
53904         configure.ac): Likewise.
53905         * modules/unictype/property-titlecase (Depends-on, configure.ac):
53906         Likewise.
53907         * modules/unictype/property-unassigned-code-value (Depends-on,
53908         configure.ac): Likewise.
53909         * modules/unictype/property-unified-ideograph (Depends-on,
53910         configure.ac): Likewise.
53911         * modules/unictype/property-uppercase (Depends-on, configure.ac):
53912         Likewise.
53913         * modules/unictype/property-variation-selector (Depends-on,
53914         configure.ac): Likewise.
53915         * modules/unictype/property-white-space (Depends-on, configure.ac):
53916         Likewise.
53917         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
53918         Likewise.
53919         * modules/unictype/property-xid-start (Depends-on, configure.ac):
53920         Likewise.
53921         * modules/unictype/property-zero-width (Depends-on, configure.ac):
53922         Likewise.
53923         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
53924         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
53925         Likewise.
53927 2009-12-31  Bruno Haible  <bruno@clisp.org>
53929         Remove unnecessary AC_C_INLINE invocation.
53930         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
53931         since 2009-08-21.
53933 2009-12-31  Jim Meyering  <meyering@redhat.com>
53935         maint.mk: don't require explicit gpg_key_ID in cfg.mk
53936         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
53937         With this change, we can all remove the gpg_key_ID = ... definition
53938         from our respective cfg.mk files.
53940         maint.mk: create announcement template in ~/, not in /tmp
53941         * top/maint.mk (emit_upload_commands): Adjust.
53942         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
53943         Remove temporary file, .ci-msg.
53945 2009-12-31  Eric Blake  <ebb9@byu.net>
53947         link-warning: always build headers with link warnings
53948         * modules/arpa_inet (Makefile.am): Always build replacement
53949         header.
53950         * modules/ctype (Makefile.am): Likewise.
53951         * modules/dirent (Makefile.am): Likewise.
53952         * modules/inttypes (Makefile.am): Likewise.
53953         * modules/langinfo (Makefile.am): Likewise.
53954         * modules/locale (Makefile.am): Likewise.
53955         * modules/spawn (Makefile.am): Likewise.
53956         * modules/sys_file (Makefile.am): Likewise.
53957         * modules/sys_ioctl (Makefile.am): Likewise.
53958         * modules/sys_select (Makefile.am): Likewise.
53959         * modules/sys_socket (Makefile.am): Likewise.
53960         * modules/sys_times (Makefile.am): Likewise.
53961         * modules/sys_utsname (Makefile.am): Likewise.
53962         * modules/sys_wait (Makefile.am): Likewise.
53963         * modules/wchar (Makefile.am): Likewise.
53964         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
53965         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
53966         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
53967         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
53968         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
53969         Likewise.
53970         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53971         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53972         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
53973         Likewise.
53974         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
53975         Likewise.
53976         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
53977         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
53978         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
53979         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53980         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53981         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
53982         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
53983         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
53984         (gl_WCHAR_H_DEFAULTS): Likewise.
53986 2009-12-31  Eric Blake  <ebb9@byu.net>
53988         signal, spawn: use link warnings
53989         * lib/signal.in.h (sigset_t): Make unconditional.
53990         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
53991         (sigpending, sigprocmask, sigaction): Add link warnings.
53992         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
53993         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
53994         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
53995         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
53996         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
53997         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
53998         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
53999         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
54000         (posix_spawn_file_actions_destroy)
54001         (posix_spawn_file_actions_addopen)
54002         (posix_spawn_file_actions_addclose)
54003         (posix_spawn_file_actions_adddup2): Likewise.
54004         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
54005         * tests/test-signal.c (main): Enhance test.
54007         spawn: improve wrapper support
54008         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
54009         (gl_SPAWN_H_DEFAULTS): New defaults.
54010         * modules/spawn (Makefile.am): Substitute them.
54011         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
54012         Only declare if missing or broken.
54014         sys_times, sys_utsname: use include_next
54015         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
54016         header.
54017         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
54018         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
54019         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
54020         * modules/sys_times (Depends-on): Add include_next.
54021         (Makefile.am): Substitute additional values.
54022         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54023         * lib/sys_times.in.h (includes): Include native header, if
54024         available.
54025         * lib/sys_utsname.in.h (includes): Likewise.
54026         * tests/test-sys_times.c (main): Enhance test.
54028         fdutimensat: revert prior patch
54029         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
54030         utimens.h.
54031         Reported by Bruno Haible.
54033 2009-12-30  Eric Blake  <ebb9@byu.net>
54035         sys_wait: drop link-warning dependency
54036         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
54037         link-warning efforts.
54038         * lib/sys_wait.in.h: Likewise.
54040         fdutimensat: remove bogus dependency
54041         * modules/fdutimensat (Depends-on): Drop inline.
54043         unistd: fix typo
54044         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
54046 2009-12-30  Bruno Haible  <bruno@clisp.org>
54048         Fix compilation error with Solaris cc.
54049         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
54050         * lib/unicase/u16-is-invariant.c: Likewise.
54051         * lib/unicase/u32-is-invariant.c: Likewise.
54052         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54054 2009-12-30  Bruno Haible  <bruno@clisp.org>
54056         Fix test crash.
54057         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
54058         locales.
54059         Reported by Simon Josefsson <simon@josefsson.org>.
54061 2009-12-30  Bruno Haible  <bruno@clisp.org>
54063         Fix compilation error on most platforms.
54064         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
54065         Reported by Simon Josefsson <simon@josefsson.org>
54066         and Nelson H. F. Beebe <beebe@math.utah.edu>.
54068 2009-12-30  Eric Blake  <ebb9@byu.net>
54070         futimens, utimensat: work around ntfs-3g bug
54071         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
54072         a ctime bug is present, and expand workaround to cover ntfs-3g.
54073         * lib/utimens.c (fdutimens, lutimens): Likewise.
54074         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
54075         (validate_timespec): Adjust return value.
54076         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
54077         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54078         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
54080 2009-12-29  Eric Blake  <ebb9@byu.net>
54082         link-warning: make usage consistent
54083         * modules/ctype (Depends-on): Add link-warning.
54084         (Makefile.am): Update rules accordingly.
54085         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54086         * modules/locale (Depends-on, Makefile.am): Likewise.
54087         * modules/sys_file (Makefile.am): Likewise.
54088         * modules/getopt-posix (Makefile.am): Delete unused link warning
54089         efforts.
54090         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
54091         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
54092         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
54093         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
54095         stdio: remove unused variables
54096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
54097         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
54098         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
54100         tests: test more substitute headers
54101         * modules/ctype-tests: New file.
54102         * modules/dirent-tests: Likewise.
54103         * modules/spawn-tests: Likewise.
54104         * modules/sys_file-tests: Likewise.
54105         * modules/sys_ioctl-tests: Likewise.
54106         * modules/sys_wait-tests: Likewise.
54107         * tests/test-ctype.c: Likewise.
54108         * tests/test-dirent.c: Likewise.
54109         * tests/test-spawn.c: Likewise.
54110         * tests/test-sys_file.c: Likewise.
54111         * tests/test-sys_ioctl.c: Likewise.
54112         * tests/test-sys_wait.c: Likewise.
54113         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
54114         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
54115         whether or not flock is in use.
54117         tests: remove License section from module
54118         * modules/arpa_inet-tests: Remove unneeded section.
54119         * modules/byteswap-tests: Likewise.
54120         * modules/ceilf-tests: Likewise.
54121         * modules/ceill-tests: Likewise.
54122         * modules/crypto/des-tests: Likewise.
54123         * modules/crypto/gc-arcfour-tests: Likewise.
54124         * modules/crypto/gc-arctwo-tests: Likewise.
54125         * modules/crypto/gc-des-tests: Likewise.
54126         * modules/crypto/gc-hmac-md5-tests: Likewise.
54127         * modules/crypto/gc-hmac-sha1-tests: Likewise.
54128         * modules/crypto/gc-md2-tests: Likewise.
54129         * modules/crypto/gc-md4-tests: Likewise.
54130         * modules/crypto/gc-md5-tests: Likewise.
54131         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
54132         * modules/crypto/gc-rijndael-tests: Likewise.
54133         * modules/crypto/gc-sha1-tests: Likewise.
54134         * modules/crypto/gc-tests: Likewise.
54135         * modules/crypto/md2-tests: Likewise.
54136         * modules/crypto/md4-tests: Likewise.
54137         * modules/fcntl-h-tests: Likewise.
54138         * modules/floorf-tests: Likewise.
54139         * modules/floorl-tests: Likewise.
54140         * modules/frexp-nolibm-tests: Likewise.
54141         * modules/frexp-tests: Likewise.
54142         * modules/frexpl-nolibm-tests: Likewise.
54143         * modules/frexpl-tests: Likewise.
54144         * modules/getaddrinfo-tests: Likewise.
54145         * modules/inttypes-tests: Likewise.
54146         * modules/isfinite-tests: Likewise.
54147         * modules/isinf-tests: Likewise.
54148         * modules/ldexpl-tests: Likewise.
54149         * modules/locale-tests: Likewise.
54150         * modules/math-tests: Likewise.
54151         * modules/netdb-tests: Likewise.
54152         * modules/netinet_in-tests: Likewise.
54153         * modules/printf-frexp-tests: Likewise.
54154         * modules/printf-frexpl-tests: Likewise.
54155         * modules/priv-set-tests: Likewise.
54156         * modules/random_r-tests: Likewise.
54157         * modules/round-tests: Likewise.
54158         * modules/roundf-tests: Likewise.
54159         * modules/roundl-tests: Likewise.
54160         * modules/search-tests: Likewise.
54161         * modules/select-tests: Likewise.
54162         * modules/signal-tests: Likewise.
54163         * modules/stdbool-tests: Likewise.
54164         * modules/stddef-tests: Likewise.
54165         * modules/stdint-tests: Likewise.
54166         * modules/stdio-tests: Likewise.
54167         * modules/stdlib-tests: Likewise.
54168         * modules/string-tests: Likewise.
54169         * modules/strings-tests: Likewise.
54170         * modules/sys_select-tests: Likewise.
54171         * modules/sys_socket-tests: Likewise.
54172         * modules/sys_stat-tests: Likewise.
54173         * modules/sys_time-tests: Likewise.
54174         * modules/sys_utsname-tests: Likewise.
54175         * modules/sysexits-tests: Likewise.
54176         * modules/time-tests: Likewise.
54177         * modules/trunc-tests: Likewise.
54178         * modules/truncf-tests: Likewise.
54179         * modules/truncl-tests: Likewise.
54180         * modules/tsearch-tests: Likewise.
54181         * modules/unistd-tests: Likewise.
54182         * modules/wchar-tests: Likewise.
54183         * modules/wctype-tests: Likewise.
54185         tests: fix license on several tests
54186         * tests/test-des.c: Update to GPLv3+.
54187         * tests/test-flock.c: Likewise.
54188         * tests/test-fsync.c: Likewise.
54189         * tests/test-futimens.h: Likewise.
54190         * tests/test-gc-arcfour.c: Likewise.
54191         * tests/test-gc-arctwo.c: Likewise.
54192         * tests/test-gc-des.c: Likewise.
54193         * tests/test-gc-hmac-md5.c: Likewise.
54194         * tests/test-gc-hmac-sha1.c: Likewise.
54195         * tests/test-gc-md2.c: Likewise.
54196         * tests/test-gc-md4.c: Likewise.
54197         * tests/test-gc-md5.c: Likewise.
54198         * tests/test-gc-pbkdf2-sha1.c: Likewise.
54199         * tests/test-gc-rijndael.c: Likewise.
54200         * tests/test-gc-sha1.c: Likewise.
54201         * tests/test-gc.c: Likewise.
54202         * tests/test-getcwd.c: Likewise.
54203         * tests/test-link.c: Likewise.
54204         * tests/test-link.h: Likewise.
54205         * tests/test-lutimens.h: Likewise.
54206         * tests/test-md2.c: Likewise.
54207         * tests/test-md4.c: Likewise.
54208         * tests/test-mkdir.h: Likewise.
54209         * tests/test-rename.c: Likewise.
54210         * tests/test-rename.h: Likewise.
54211         * tests/test-safe-alloc.c: Likewise.
54212         * tests/test-utimens-common.h: Likewise.
54213         * tests/test-utimens.h: Likewise.
54215         maint: sync license texts
54216         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
54217         * doc/gpl-3.0.texi: Revert copyright year update.
54218         * doc/lgpl-3.0.texi: Likewise.
54220 2009-12-29  Jim Meyering  <meyering@redhat.com>
54222         update nearly all FSF copyright year lists to include 2009
54223         The files named by the following are exempted:
54224             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
54225               test -f "$dst" && { echo "$dst"; continue; }
54226               test -d "$dst" || continue
54227               echo "$dst"/$(basename "$src")
54228             done > exempt
54229             git ls-files tests/unictype >> exempt
54230         In the remaining files, convert to all-interval notation if
54231         - there is already at least one year interval like 2000-2003
54232         - the file is maintained by me
54233         - the file is in lib/uni*/, where that style already prevails
54234         Otherwise, use update-copyright's default.
54236 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54237         and Eric Blake  <ebb9@byu.net>
54239         tests: don't require debug system() to pass
54240         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
54241         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54242         * tests/test-unlink.h (test_unlink_func): Likewise.
54243         * tests/test-fstatat.c (main): ...into callers.
54244         * tests/test-lstat.c (main): Likewise.
54245         * tests/test-rmdir.c (main): Likewise.
54246         * tests/test-unlink.c (main): Likewise.
54247         * tests/test-unlinkat.c (main): Likewise.
54248         * tests/test-areadlink-with-size.c (main): Don't require a
54249         debug-only system call to pass, aiding cross-testing to mingw.
54250         * tests/test-areadlink.c (main): Likewise.
54251         * tests/test-areadlinkat-with-size.c (main): Likewise.
54252         * tests/test-areadlinkat.c (main): Likewise.
54253         * tests/test-canonicalize-lgpl.c (main): Likewise.
54254         * tests/test-canonicalize.c (main): Likewise.
54255         * tests/test-chown.c (main): Likewise.
54256         * tests/test-fchownat.c (main): Likewise.
54257         * tests/test-lchown.c (main): Likewise.
54258         * tests/test-fdutimensat.c (main): Likewise.
54259         * tests/test-futimens.c (main): Likewise.
54260         * tests/test-link.c (main): Likewise.
54261         * tests/test-linkat.c (main): Likewise.
54262         * tests/test-mkdir.c (main): Likewise.
54263         * tests/test-mkdirat.c (main): Likewise.
54264         * tests/test-mkfifo.c (main): Likewise.
54265         * tests/test-mkfifoat.c (main): Likewise.
54266         * tests/test-mknod.c (main): Likewise.
54267         * tests/test-readlink.c (main): Likewise.
54268         * tests/test-remove.c (main): Likewise.
54269         * tests/test-rename.c (main): Likewise.
54270         * tests/test-renameat.c (main): Likewise.
54271         * tests/test-symlink.c (main): Likewise.
54272         * tests/test-symlinkat.c (main): Likewise.
54273         * tests/test-utimens.c (main): Likewise.
54274         * tests/test-utimensat.c (main): Likewise.
54276 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54278         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
54279         on $(UNUSED_PARAMETER_H) to avoid build failure.
54281 2009-12-28  Jim Meyering  <meyering@redhat.com>
54283         update-copyright: you may specify a max. line length other than 72
54284         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54286         maint: use consistent FSF copyright line syntax
54287         * lib/posixtm.c: Add missing comma in FSF copyright line.
54288         * lib/posixtm.h: Likewise.
54289         * lib/getugroups.c: Add missing ", Inc.".
54291         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
54292         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
54293         FSF copyright line.  Remove trailing blanks.
54295 2009-12-28  Eric Blake  <ebb9@byu.net>
54297         test-dup2: reduce dependencies
54298         * modules/cloexec (Configure.ac): Set witness.
54299         * modules/dup2-tests (Depends-on): Drop cloexec.
54300         * tests/test-dup2.c (main): Skip portion of test if cloexec module
54301         not present.
54302         Suggested by Bruno Haible.
54304 2009-12-26  Bruno Haible  <bruno@clisp.org>
54306         Remove an unneeded dependency.
54307         * modules/fseterr (Depends-on): Remove dup2.
54309 2009-12-26  Eric Blake  <ebb9@byu.net>
54311         tests: use macros.h in more places
54312         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
54313         (ASSERT_STREAM): Provide default of stderr.
54314         * tests/test-dirent-safer.c: Include macros.h, using alternate
54315         stream for assertions.
54316         * tests/test-dup-safer.c: Likewise.
54317         * tests/test-freopen-safer.c: Likewise.
54318         * tests/test-getopt.c: Likewise.
54319         * tests/test-openat-safer.c: Likewise.
54320         * tests/test-pipe.c: Likewise.
54321         * tests/test-popen-safer.c: Likewise.
54322         * modules/dirent-safer-tests (Files): Include macros.h.
54323         * modules/unistd-safer-tests (Files): Likewise.
54324         * modules/freopen-safer-tests (Files): Likewise.
54325         * modules/getopt-posix-tests (Files): Likewise.
54326         * modules/openat-safer-tests (Files): Likewise.
54327         * modules/pipe-tests (Files): Likewise.
54329 2009-12-26  Bruno Haible  <bruno@clisp.org>
54331         javacomp: Portability fix.
54332         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
54333         that it also works on Solaris.
54335 2009-12-26  Bruno Haible  <bruno@clisp.org>
54337         localename: Fix storage allocation of gl_locale_name_thread's result.
54338         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
54339         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
54340         all platforms that have 'uselocale'.
54341         (gl_locale_name_thread_unsafe): New function, extracted from
54342         gl_locale_name_thread.
54343         (gl_locale_name_thread): Call struniq on all platforms that have
54344         'uselocale'.
54345         * tests/test-localename.c (test_locale_name_thread): Check that the
54346         resulting strings are permanently allocated.
54347         * modules/localename-tests (Depends-on): Add strdup.
54349 2009-12-26  Bruno Haible  <bruno@clisp.org>
54351         * tests/test-localename.c (categories): Fill in the strings.
54353 2009-12-26  Jim Meyering  <meyering@redhat.com>
54355         isdir: complete the removal of m4/isdir.m4
54356         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
54358         isdir: clean up, since at least grep still uses it
54359         * lib/isdir.c: Include "isdir.h".
54360         (S_ISDIR): Remove now-unneeded definition.
54361         * modules/isdir (Files): Add lib/isdir.h.
54362         * lib/isdir.h: New file, with declaration.
54363         * m4/isdir.m4: Remove file -- unneeded.
54365 2009-12-25  Bruno Haible  <bruno@clisp.org>
54367         selinux-h: Make generated .h files standalone.
54368         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
54369         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
54370         * lib/se-selinux.in.h: Likewise.
54371         * modules/selinux-h (Depends-on): Add unused-parameter.
54372         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
54373         selinux/selinux.h and selinux/context.h.
54374         Suggested by Eric Blake.
54376 2009-12-25  Bruno Haible  <bruno@clisp.org>
54378         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
54379         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
54380         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
54381         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
54382         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
54384 2009-12-24  Bruno Haible  <bruno@clisp.org>
54386         openat: Fix warning.
54387         * lib/openat-proc.c: Include <unistd.h>.
54389 2009-12-24  Bruno Haible  <bruno@clisp.org>
54391         New module 'unused-parameter'.
54392         * build-aux/unused-parameter.h: New file, extracted from earlier
54393         gnulib-common.m4.
54394         * modules/unused-parameter: New file.
54395         * lib/unistr.h: Include unused-parameter.h.
54396         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
54397         _GL_UNUSED.
54398         * modules/unistr/base (Depends-on): Add unused-parameter.
54400 2009-12-24  Bruno Haible  <bruno@clisp.org>
54402         Add missing dependencies to 'extensions' module.
54403         * m4/extensions.m4: Add comment.
54404         * modules/accept4 (Depends-on): Add extensions.
54405         * modules/dup3 (Depends-on): Likewise.
54406         * modules/fcntl (Depends-on): Likewise.
54407         * modules/futimens (Depends-on): Likewise.
54408         * modules/mknod (Depends-on): Likewise.
54409         * modules/pipe2 (Depends-on): Likewise.
54410         * modules/stat-time (Depends-on): Likewise.
54411         * modules/strcasestr-simple (Depends-on): Likewise.
54412         * modules/strsignal (Depends-on): Likewise.
54413         * modules/utimensat (Depends-on): Likewise.
54414         * modules/localcharset (Depends-on): Likewise. Needed because of
54415         gl_FCNTL_O_FLAGS.
54416         * modules/wcrtomb (Depends-on): Likewise. Needed because of
54417         AC_TYPE_MBSTATE_T.
54418         * modules/wcsnrtombs (Depends-on): Likewise.
54419         * modules/wcsrtombs (Depends-on): Likewise.
54421 2009-12-24  Bruno Haible  <bruno@clisp.org>
54423         binary-io: Avoid gcc warning due to SET_BINARY.
54424         * lib/binary-io.h (SET_BINARY): Cast the result to void.
54425         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
54427 2009-12-24  Bruno Haible  <bruno@clisp.org>
54429         Avoid future namespace pollution on glibc systems.
54430         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
54431         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
54432         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
54433         glibc systems.
54435 2009-12-24  Bruno Haible  <bruno@clisp.org>
54437         Refactor common macros used in tests.
54438         * tests/macros.h: New file.
54439         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
54440         and/or <stdlib.h>, if appropriate.
54441         (ASSERT, SIZEOF): Remove macros.
54442         * tests/test-areadlink-with-size.c: Likewise.
54443         * tests/test-areadlinkat.c: Likewise.
54444         * tests/test-areadlinkat-with-size.c: Likewise.
54445         * tests/test-argmatch.c: Likewise.
54446         * tests/test-argv-iter.c: Likewise.
54447         * tests/test-array-mergesort.c: Likewise.
54448         * tests/test-array_list.c: Likewise.
54449         * tests/test-array_oset.c: Likewise.
54450         * tests/test-avltree_list.c: Likewise.
54451         * tests/test-avltree_oset.c: Likewise.
54452         * tests/test-avltreehash_list.c: Likewise.
54453         * tests/test-base64.c: Likewise.
54454         * tests/test-binary-io.c: Likewise.
54455         * tests/test-bitrotate.c: Likewise.
54456         * tests/test-btowc.c: Likewise.
54457         * tests/test-byteswap.c: Likewise.
54458         * tests/test-c-ctype.c: Likewise.
54459         * tests/test-c-stack.c: Likewise.
54460         * tests/test-c-strcasecmp.c: Likewise.
54461         * tests/test-c-strcasestr.c: Likewise.
54462         * tests/test-c-strncasecmp.c: Likewise.
54463         * tests/test-c-strstr.c: Likewise.
54464         * tests/test-canonicalize-lgpl.c: Likewise.
54465         * tests/test-canonicalize.c: Likewise.
54466         * tests/test-carray_list.c: Likewise.
54467         * tests/test-ceilf1.c: Likewise.
54468         * tests/test-ceilf2.c: Likewise.
54469         * tests/test-ceill.c: Likewise.
54470         * tests/test-chown.c: Likewise.
54471         * tests/test-cloexec.c: Likewise.
54472         * tests/test-copy-acl.c: Likewise.
54473         * tests/test-copy-file.c: Likewise.
54474         * tests/test-count-one-bits.c: Likewise.
54475         * tests/test-dprintf-posix.c: Likewise.
54476         * tests/test-dup2.c: Likewise.
54477         * tests/test-dup3.c: Likewise.
54478         * tests/test-duplocale.c: Likewise.
54479         * tests/test-fbufmode.c: Likewise.
54480         * tests/test-fchdir.c: Likewise.
54481         * tests/test-fchownat.c: Likewise.
54482         * tests/test-fcntl-safer.c: Likewise.
54483         * tests/test-fcntl.c: Likewise.
54484         * tests/test-fdopendir.c: Likewise.
54485         * tests/test-fdutimensat.c: Likewise.
54486         * tests/test-fflush2.c: Likewise.
54487         * tests/test-file-has-acl.c: Likewise.
54488         * tests/test-filevercmp.c: Likewise.
54489         * tests/test-flock.c: Likewise.
54490         * tests/test-floorf1.c: Likewise.
54491         * tests/test-floorf2.c: Likewise.
54492         * tests/test-floorl.c: Likewise.
54493         * tests/test-fnmatch.c: Likewise.
54494         * tests/test-fopen.h: Likewise.
54495         * tests/test-fpending.c: Likewise.
54496         * tests/test-fprintf-posix.c: Likewise.
54497         * tests/test-fpurge.c: Likewise.
54498         * tests/test-freadable.c: Likewise.
54499         * tests/test-freadahead.c: Likewise.
54500         * tests/test-freading.c: Likewise.
54501         * tests/test-freadptr.c: Likewise.
54502         * tests/test-freadptr2.c: Likewise.
54503         * tests/test-freadseek.c: Likewise.
54504         * tests/test-freopen.c: Likewise.
54505         * tests/test-frexp.c: Likewise.
54506         * tests/test-frexpl.c: Likewise.
54507         * tests/test-fseek.c: Likewise.
54508         * tests/test-fseeko.c: Likewise.
54509         * tests/test-fstatat.c: Likewise.
54510         * tests/test-fstrcmp.c: Likewise.
54511         * tests/test-fsync.c: Likewise.
54512         * tests/test-ftell.c: Likewise.
54513         * tests/test-ftello.c: Likewise.
54514         * tests/test-func.c: Likewise.
54515         * tests/test-futimens.c: Likewise.
54516         * tests/test-fwritable.c: Likewise.
54517         * tests/test-fwriting.c: Likewise.
54518         * tests/test-getcwd.c: Likewise.
54519         * tests/test-getdate.c: Likewise.
54520         * tests/test-getdelim.c: Likewise.
54521         * tests/test-getdtablesize.c: Likewise.
54522         * tests/test-getgroups.c: Likewise.
54523         * tests/test-getline.c: Likewise.
54524         * tests/test-getndelim2.c: Likewise.
54525         * tests/test-glob.c: Likewise.
54526         * tests/test-hash.c: Likewise.
54527         * tests/test-i-ring.c: Likewise.
54528         * tests/test-iconv-utf.c: Likewise.
54529         * tests/test-iconv.c: Likewise.
54530         * tests/test-idpriv-drop.c: Likewise.
54531         * tests/test-idpriv-droptemp.c: Likewise.
54532         * tests/test-inet_ntop.c: Likewise.
54533         * tests/test-inet_pton.c: Likewise.
54534         * tests/test-isblank.c: Likewise.
54535         * tests/test-isfinite.c: Likewise.
54536         * tests/test-isinf.c: Likewise.
54537         * tests/test-isnan.c: Likewise.
54538         * tests/test-isnand.h: Likewise.
54539         * tests/test-isnanf.h: Likewise.
54540         * tests/test-isnanl.h: Likewise.
54541         * tests/test-lchown.c: Likewise.
54542         * tests/test-ldexpl.c: Likewise.
54543         * tests/test-link.c: Likewise.
54544         * tests/test-linkat.c: Likewise.
54545         * tests/test-linked_list.c: Likewise.
54546         * tests/test-linkedhash_list.c: Likewise.
54547         * tests/test-localename.c: Likewise.
54548         * tests/test-lseek.c: Likewise.
54549         * tests/test-lstat.c: Likewise.
54550         * tests/test-mbmemcasecmp.c: Likewise.
54551         * tests/test-mbmemcasecoll.c: Likewise.
54552         * tests/test-mbrtowc.c: Likewise.
54553         * tests/test-mbscasecmp.c: Likewise.
54554         * tests/test-mbscasestr1.c: Likewise.
54555         * tests/test-mbscasestr2.c: Likewise.
54556         * tests/test-mbscasestr3.c: Likewise.
54557         * tests/test-mbscasestr4.c: Likewise.
54558         * tests/test-mbschr.c: Likewise.
54559         * tests/test-mbscspn.c: Likewise.
54560         * tests/test-mbsinit.c: Likewise.
54561         * tests/test-mbsncasecmp.c: Likewise.
54562         * tests/test-mbsnrtowcs.c: Likewise.
54563         * tests/test-mbspbrk.c: Likewise.
54564         * tests/test-mbspcasecmp.c: Likewise.
54565         * tests/test-mbsrchr.c: Likewise.
54566         * tests/test-mbsrtowcs.c: Likewise.
54567         * tests/test-mbsspn.c: Likewise.
54568         * tests/test-mbsstr1.c: Likewise.
54569         * tests/test-mbsstr2.c: Likewise.
54570         * tests/test-mbsstr3.c: Likewise.
54571         * tests/test-memchr.c: Likewise.
54572         * tests/test-memchr2.c: Likewise.
54573         * tests/test-memcmp.c: Likewise.
54574         * tests/test-memmem.c: Likewise.
54575         * tests/test-memrchr.c: Likewise.
54576         * tests/test-mkdir.c: Likewise.
54577         * tests/test-mkdirat.c: Likewise.
54578         * tests/test-mkfifo.c: Likewise.
54579         * tests/test-mkfifoat.c: Likewise.
54580         * tests/test-mknod.c: Likewise.
54581         * tests/test-nanosleep.c: Likewise.
54582         * tests/test-nl_langinfo.c: Likewise.
54583         * tests/test-obstack-printf.c: Likewise.
54584         * tests/test-open.c: Likewise.
54585         * tests/test-openat.c: Likewise.
54586         * tests/test-pipe-filter-gi1.c: Likewise.
54587         * tests/test-pipe-filter-gi2-main.c: Likewise.
54588         * tests/test-pipe-filter-ii1.c: Likewise.
54589         * tests/test-pipe-filter-ii2-main.c: Likewise.
54590         * tests/test-pipe2.c: Likewise.
54591         * tests/test-popen.h: Likewise.
54592         * tests/test-posixtm.c: Likewise.
54593         * tests/test-pread.c: Likewise.
54594         * tests/test-printf-frexp.c: Likewise.
54595         * tests/test-printf-frexpl.c: Likewise.
54596         * tests/test-printf-posix.c: Likewise.
54597         * tests/test-priv-set.c: Likewise.
54598         * tests/test-quotearg.c: Likewise.
54599         * tests/test-random_r.c: Likewise.
54600         * tests/test-rawmemchr.c: Likewise.
54601         * tests/test-rbtree_list.c: Likewise.
54602         * tests/test-rbtree_oset.c: Likewise.
54603         * tests/test-rbtreehash_list.c: Likewise.
54604         * tests/test-readlink.c: Likewise.
54605         * tests/test-remove.c: Likewise.
54606         * tests/test-rename.c: Likewise.
54607         * tests/test-renameat.c: Likewise.
54608         * tests/test-rmdir.c: Likewise.
54609         * tests/test-round1.c: Likewise.
54610         * tests/test-roundf1.c: Likewise.
54611         * tests/test-roundl.c: Likewise.
54612         * tests/test-safe-alloc.c: Likewise.
54613         * tests/test-sameacls.c: Likewise.
54614         * tests/test-set-mode-acl.c: Likewise.
54615         * tests/test-setenv.c: Likewise.
54616         * tests/test-sigaction.c: Likewise.
54617         * tests/test-signbit.c: Likewise.
54618         * tests/test-sleep.c: Likewise.
54619         * tests/test-snprintf-posix.c: Likewise.
54620         * tests/test-snprintf.c: Likewise.
54621         * tests/test-sprintf-posix.c: Likewise.
54622         * tests/test-stat-time.c: Likewise.
54623         * tests/test-stat.c: Likewise.
54624         * tests/test-strcasestr.c: Likewise.
54625         * tests/test-strchrnul.c: Likewise.
54626         * tests/test-strerror.c: Likewise.
54627         * tests/test-striconv.c: Likewise.
54628         * tests/test-striconveh.c: Likewise.
54629         * tests/test-striconveha.c: Likewise.
54630         * tests/test-strsignal.c: Likewise.
54631         * tests/test-strstr.c: Likewise.
54632         * tests/test-strtod.c: Likewise.
54633         * tests/test-strverscmp.c: Likewise.
54634         * tests/test-symlink.c: Likewise.
54635         * tests/test-symlinkat.c: Likewise.
54636         * tests/test-trunc1.c: Likewise.
54637         * tests/test-trunc2.c: Likewise.
54638         * tests/test-truncf1.c: Likewise.
54639         * tests/test-truncf2.c: Likewise.
54640         * tests/test-truncl.c: Likewise.
54641         * tests/test-uname.c: Likewise.
54642         * tests/test-unlink.c: Likewise.
54643         * tests/test-unlinkat.c: Likewise.
54644         * tests/test-unsetenv.c: Likewise.
54645         * tests/test-usleep.c: Likewise.
54646         * tests/test-utimens.c: Likewise.
54647         * tests/test-utimensat.c: Likewise.
54648         * tests/test-vasnprintf-posix.c: Likewise.
54649         * tests/test-vasnprintf-posix2.c: Likewise.
54650         * tests/test-vasnprintf.c: Likewise.
54651         * tests/test-vasprintf-posix.c: Likewise.
54652         * tests/test-vasprintf.c: Likewise.
54653         * tests/test-vdprintf-posix.c: Likewise.
54654         * tests/test-vfprintf-posix.c: Likewise.
54655         * tests/test-vprintf-posix.c: Likewise.
54656         * tests/test-vsnprintf-posix.c: Likewise.
54657         * tests/test-vsnprintf.c: Likewise.
54658         * tests/test-vsprintf-posix.c: Likewise.
54659         * tests/test-wcrtomb.c: Likewise.
54660         * tests/test-wcsnrtombs.c: Likewise.
54661         * tests/test-wcsrtombs.c: Likewise.
54662         * tests/test-wctype.c: Likewise.
54663         * tests/test-wcwidth.c: Likewise.
54664         * tests/test-xfprintf-posix.c: Likewise.
54665         * tests/test-xmemdup0.c: Likewise.
54666         * tests/test-xprintf-posix.c: Likewise.
54667         * tests/test-xvasprintf.c: Likewise.
54668         * tests/unicase/test-locale-language.c: Likewise.
54669         * tests/unicase/test-mapping-part1.h: Likewise.
54670         * tests/unicase/test-predicate-part1.h: Likewise.
54671         * tests/unicase/test-u8-casecmp.c: Likewise.
54672         * tests/unicase/test-u8-casecoll.c: Likewise.
54673         * tests/unicase/test-u8-casefold.c: Likewise.
54674         * tests/unicase/test-u8-is-cased.c: Likewise.
54675         * tests/unicase/test-u8-is-casefolded.c: Likewise.
54676         * tests/unicase/test-u8-is-lowercase.c: Likewise.
54677         * tests/unicase/test-u8-is-titlecase.c: Likewise.
54678         * tests/unicase/test-u8-is-uppercase.c: Likewise.
54679         * tests/unicase/test-u8-tolower.c: Likewise.
54680         * tests/unicase/test-u8-totitle.c: Likewise.
54681         * tests/unicase/test-u8-toupper.c: Likewise.
54682         * tests/unicase/test-u16-casecmp.c: Likewise.
54683         * tests/unicase/test-u16-casecoll.c: Likewise.
54684         * tests/unicase/test-u16-casefold.c: Likewise.
54685         * tests/unicase/test-u16-is-cased.c: Likewise.
54686         * tests/unicase/test-u16-is-casefolded.c: Likewise.
54687         * tests/unicase/test-u16-is-lowercase.c: Likewise.
54688         * tests/unicase/test-u16-is-titlecase.c: Likewise.
54689         * tests/unicase/test-u16-is-uppercase.c: Likewise.
54690         * tests/unicase/test-u16-tolower.c: Likewise.
54691         * tests/unicase/test-u16-totitle.c: Likewise.
54692         * tests/unicase/test-u16-toupper.c: Likewise.
54693         * tests/unicase/test-u32-casecmp.c: Likewise.
54694         * tests/unicase/test-u32-casecoll.c: Likewise.
54695         * tests/unicase/test-u32-casefold.c: Likewise.
54696         * tests/unicase/test-u32-is-cased.c: Likewise.
54697         * tests/unicase/test-u32-is-casefolded.c: Likewise.
54698         * tests/unicase/test-u32-is-lowercase.c: Likewise.
54699         * tests/unicase/test-u32-is-titlecase.c: Likewise.
54700         * tests/unicase/test-u32-is-uppercase.c: Likewise.
54701         * tests/unicase/test-u32-tolower.c: Likewise.
54702         * tests/unicase/test-u32-totitle.c: Likewise.
54703         * tests/unicase/test-u32-toupper.c: Likewise.
54704         * tests/unicase/test-ulc-casecmp.c: Likewise.
54705         * tests/unicase/test-ulc-casecoll.c: Likewise.
54706         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54707         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54708         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54709         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54710         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54711         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54712         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54713         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54714         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54715         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54716         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54717         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54718         * tests/unictype/test-bidi_byname.c: Likewise.
54719         * tests/unictype/test-bidi_name.c: Likewise.
54720         * tests/unictype/test-bidi_of.c: Likewise.
54721         * tests/unictype/test-bidi_test.c: Likewise.
54722         * tests/unictype/test-block_list.c: Likewise.
54723         * tests/unictype/test-block_of.c: Likewise.
54724         * tests/unictype/test-block_test.c: Likewise.
54725         * tests/unictype/test-categ_and.c: Likewise.
54726         * tests/unictype/test-categ_and_not.c: Likewise.
54727         * tests/unictype/test-categ_byname.c: Likewise.
54728         * tests/unictype/test-categ_name.c: Likewise.
54729         * tests/unictype/test-categ_none.c: Likewise.
54730         * tests/unictype/test-categ_of.c: Likewise.
54731         * tests/unictype/test-categ_or.c: Likewise.
54732         * tests/unictype/test-categ_test_withtable.c: Likewise.
54733         * tests/unictype/test-combining.c: Likewise.
54734         * tests/unictype/test-decdigit.c: Likewise.
54735         * tests/unictype/test-digit.c: Likewise.
54736         * tests/unictype/test-mirror.c: Likewise.
54737         * tests/unictype/test-numeric.c: Likewise.
54738         * tests/unictype/test-pr_byname.c: Likewise.
54739         * tests/unictype/test-pr_test.c: Likewise.
54740         * tests/unictype/test-predicate-part1.h: Likewise.
54741         * tests/unictype/test-scripts.c: Likewise.
54742         * tests/unictype/test-sy_c_ident.c: Likewise.
54743         * tests/unictype/test-sy_java_ident.c: Likewise.
54744         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
54745         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
54746         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
54747         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
54748         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
54749         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
54750         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
54751         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
54752         * tests/uninorm/test-canonical-decomposition.c: Likewise.
54753         * tests/uninorm/test-compat-decomposition.c: Likewise.
54754         * tests/uninorm/test-composition.c: Likewise.
54755         * tests/uninorm/test-decomposing-form.c: Likewise.
54756         * tests/uninorm/test-decomposition.c: Likewise.
54757         * tests/uninorm/test-u8-nfc.c: Likewise.
54758         * tests/uninorm/test-u8-nfd.c: Likewise.
54759         * tests/uninorm/test-u8-nfkc.c: Likewise.
54760         * tests/uninorm/test-u8-nfkd.c: Likewise.
54761         * tests/uninorm/test-u8-normcmp.c: Likewise.
54762         * tests/uninorm/test-u8-normcoll.c: Likewise.
54763         * tests/uninorm/test-u16-nfc.c: Likewise.
54764         * tests/uninorm/test-u16-nfd.c: Likewise.
54765         * tests/uninorm/test-u16-nfkc.c: Likewise.
54766         * tests/uninorm/test-u16-nfkd.c: Likewise.
54767         * tests/uninorm/test-u16-normcmp.c: Likewise.
54768         * tests/uninorm/test-u16-normcoll.c: Likewise.
54769         * tests/uninorm/test-u32-nfc.c: Likewise.
54770         * tests/uninorm/test-u32-nfd.c: Likewise.
54771         * tests/uninorm/test-u32-nfkc.c: Likewise.
54772         * tests/uninorm/test-u32-nfkd.c: Likewise.
54773         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54774         * tests/uninorm/test-u32-normcmp.c: Likewise.
54775         * tests/uninorm/test-u32-normcoll.c: Likewise.
54776         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
54777         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54778         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54779         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54780         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54781         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54782         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54783         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54784         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54785         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54786         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54787         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54788         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54789         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54790         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54791         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54792         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54793         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54794         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54795         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54796         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54797         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54798         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54799         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54800         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54801         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54802         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54803         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54804         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54805         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
54806         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
54807         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
54808         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
54809         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54810         * tests/uniwidth/test-u8-width.c: Likewise.
54811         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54812         * tests/uniwidth/test-u16-width.c: Likewise.
54813         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54814         * tests/uniwidth/test-u32-width.c: Likewise.
54815         * tests/uniwidth/test-uc_width.c: Likewise.
54816         * tests/uniwidth/test-uc_width2.c: Likewise.
54817         * modules/acl-tests (Files): Add tests/macros.h.
54818         * modules/areadlink-tests (Files): Likewise.
54819         * modules/areadlink-with-size-tests (Files): Likewise.
54820         * modules/areadlinkat-tests (Files): Likewise.
54821         * modules/areadlinkat-with-size-tests (Files): Likewise.
54822         * modules/argmatch-tests (Files): Likewise.
54823         * modules/argv-iter-tests (Files): Likewise.
54824         * modules/array-list-tests (Files): Likewise.
54825         * modules/array-mergesort-tests (Files): Likewise.
54826         * modules/array-oset-tests (Files): Likewise.
54827         * modules/avltree-list-tests (Files): Likewise.
54828         * modules/avltree-oset-tests (Files): Likewise.
54829         * modules/avltreehash-list-tests (Files): Likewise.
54830         * modules/base64-tests (Files): Likewise.
54831         * modules/binary-io-tests (Files): Likewise.
54832         * modules/bitrotate-tests (Files): Likewise.
54833         * modules/btowc-tests (Files): Likewise.
54834         * modules/byteswap-tests (Files): Likewise.
54835         * modules/c-ctype-tests (Files): Likewise.
54836         * modules/c-stack-tests (Files): Likewise.
54837         * modules/c-strcase-tests (Files): Likewise.
54838         * modules/c-strcasestr-tests (Files): Likewise.
54839         * modules/c-strstr-tests (Files): Likewise.
54840         * modules/canonicalize-lgpl-tests (Files): Likewise.
54841         * modules/canonicalize-tests (Files): Likewise.
54842         * modules/carray-list-tests (Files): Likewise.
54843         * modules/ceilf-tests (Files): Likewise.
54844         * modules/ceill-tests (Files): Likewise.
54845         * modules/chown-tests (Files): Likewise.
54846         * modules/cloexec-tests (Files): Likewise.
54847         * modules/copy-file-tests (Files): Likewise.
54848         * modules/count-one-bits-tests (Files): Likewise.
54849         * modules/dprintf-posix-tests (Files): Likewise.
54850         * modules/dup2-tests (Files): Likewise.
54851         * modules/dup3-tests (Files): Likewise.
54852         * modules/duplocale-tests (Files): Likewise.
54853         * modules/fbufmode-tests (Files): Likewise.
54854         * modules/fchdir-tests (Files): Likewise.
54855         * modules/fcntl-safer-tests (Files): Likewise.
54856         * modules/fcntl-tests (Files): Likewise.
54857         * modules/fdopendir-tests (Files): Likewise.
54858         * modules/fdutimensat-tests (Files): Likewise.
54859         * modules/fflush-tests (Files): Likewise.
54860         * modules/filevercmp-tests (Files): Likewise.
54861         * modules/flock-tests (Files): Likewise.
54862         * modules/floorf-tests (Files): Likewise.
54863         * modules/floorl-tests (Files): Likewise.
54864         * modules/fnmatch-tests (Files): Likewise.
54865         * modules/fopen-safer-tests (Files): Likewise.
54866         * modules/fopen-tests (Files): Likewise.
54867         * modules/fpending-tests (Files): Likewise.
54868         * modules/fprintf-posix-tests (Files): Likewise.
54869         * modules/fpurge-tests (Files): Likewise.
54870         * modules/freadable-tests (Files): Likewise.
54871         * modules/freadahead-tests (Files): Likewise.
54872         * modules/freading-tests (Files): Likewise.
54873         * modules/freadptr-tests (Files): Likewise.
54874         * modules/freadseek-tests (Files): Likewise.
54875         * modules/freopen-tests (Files): Likewise.
54876         * modules/frexp-nolibm-tests (Files): Likewise.
54877         * modules/frexp-tests (Files): Likewise.
54878         * modules/frexpl-nolibm-tests (Files): Likewise.
54879         * modules/frexpl-tests (Files): Likewise.
54880         * modules/fseek-tests (Files): Likewise.
54881         * modules/fseeko-tests (Files): Likewise.
54882         * modules/fstrcmp-tests (Files): Likewise.
54883         * modules/fsync-tests (Files): Likewise.
54884         * modules/ftell-tests (Files): Likewise.
54885         * modules/ftello-tests (Files): Likewise.
54886         * modules/func-tests (Files): Likewise.
54887         * modules/futimens-tests (Files): Likewise.
54888         * modules/fwritable-tests (Files): Likewise.
54889         * modules/fwriting-tests (Files): Likewise.
54890         * modules/getcwd-tests (Files): Likewise.
54891         * modules/getdate-tests (Files): Likewise.
54892         * modules/getdelim-tests (Files): Likewise.
54893         * modules/getdtablesize-tests (Files): Likewise.
54894         * modules/getgroups-tests (Files): Likewise.
54895         * modules/getline-tests (Files): Likewise.
54896         * modules/getndelim2-tests (Files): Likewise.
54897         * modules/glob-tests (Files): Likewise.
54898         * modules/hash-tests (Files): Likewise.
54899         * modules/i-ring-tests (Files): Likewise.
54900         * modules/iconv-tests (Files): Likewise.
54901         * modules/iconv_open-utf-tests (Files): Likewise.
54902         * modules/idpriv-drop-tests (Files): Likewise.
54903         * modules/idpriv-droptemp-tests (Files): Likewise.
54904         * modules/inet_ntop-tests (Files): Likewise.
54905         * modules/inet_pton-tests (Files): Likewise.
54906         * modules/isblank-tests (Files): Likewise.
54907         * modules/isfinite-tests (Files): Likewise.
54908         * modules/isinf-tests (Files): Likewise.
54909         * modules/isnan-tests (Files): Likewise.
54910         * modules/isnand-nolibm-tests (Files): Likewise.
54911         * modules/isnand-tests (Files): Likewise.
54912         * modules/isnanf-nolibm-tests (Files): Likewise.
54913         * modules/isnanf-tests (Files): Likewise.
54914         * modules/isnanl-nolibm-tests (Files): Likewise.
54915         * modules/isnanl-tests (Files): Likewise.
54916         * modules/lchown-tests (Files): Likewise.
54917         * modules/ldexpl-tests (Files): Likewise.
54918         * modules/link-tests (Files): Likewise.
54919         * modules/linkat-tests (Files): Likewise.
54920         * modules/linked-list-tests (Files): Likewise.
54921         * modules/linkedhash-list-tests (Files): Likewise.
54922         * modules/localename-tests (Files): Likewise.
54923         * modules/lseek-tests (Files): Likewise.
54924         * modules/lstat-tests (Files): Likewise.
54925         * modules/mbmemcasecmp-tests (Files): Likewise.
54926         * modules/mbmemcasecoll-tests (Files): Likewise.
54927         * modules/mbrtowc-tests (Files): Likewise.
54928         * modules/mbscasecmp-tests (Files): Likewise.
54929         * modules/mbscasestr-tests (Files): Likewise.
54930         * modules/mbschr-tests (Files): Likewise.
54931         * modules/mbscspn-tests (Files): Likewise.
54932         * modules/mbsinit-tests (Files): Likewise.
54933         * modules/mbsncasecmp-tests (Files): Likewise.
54934         * modules/mbsnrtowcs-tests (Files): Likewise.
54935         * modules/mbspbrk-tests (Files): Likewise.
54936         * modules/mbspcasecmp-tests (Files): Likewise.
54937         * modules/mbsrchr-tests (Files): Likewise.
54938         * modules/mbsrtowcs-tests (Files): Likewise.
54939         * modules/mbsspn-tests (Files): Likewise.
54940         * modules/mbsstr-tests (Files): Likewise.
54941         * modules/memchr-tests (Files): Likewise.
54942         * modules/memchr2-tests (Files): Likewise.
54943         * modules/memcmp-tests (Files): Likewise.
54944         * modules/memmem-tests (Files): Likewise.
54945         * modules/memrchr-tests (Files): Likewise.
54946         * modules/mkdir-tests (Files): Likewise.
54947         * modules/mkfifo-tests (Files): Likewise.
54948         * modules/mkfifoat-tests (Files): Likewise.
54949         * modules/mknod-tests (Files): Likewise.
54950         * modules/nanosleep-tests (Files): Likewise.
54951         * modules/nl_langinfo-tests (Files): Likewise.
54952         * modules/obstack-printf-tests (Files): Likewise.
54953         * modules/open-tests (Files): Likewise.
54954         * modules/openat-tests (Files): Likewise.
54955         * modules/pipe-filter-gi-tests (Files): Likewise.
54956         * modules/pipe-filter-ii-tests (Files): Likewise.
54957         * modules/pipe2-tests (Files): Likewise.
54958         * modules/popen-safer-tests (Files): Likewise.
54959         * modules/popen-tests (Files): Likewise.
54960         * modules/posixtm-tests (Files): Likewise.
54961         * modules/pread-tests (Files): Likewise.
54962         * modules/printf-frexp-tests (Files): Likewise.
54963         * modules/printf-frexpl-tests (Files): Likewise.
54964         * modules/printf-posix-tests (Files): Likewise.
54965         * modules/priv-set-tests (Files): Likewise.
54966         * modules/quotearg-tests (Files): Likewise.
54967         * modules/random_r-tests (Files): Likewise.
54968         * modules/rawmemchr-tests (Files): Likewise.
54969         * modules/rbtree-list-tests (Files): Likewise.
54970         * modules/rbtree-oset-tests (Files): Likewise.
54971         * modules/rbtreehash-list-tests (Files): Likewise.
54972         * modules/readlink-tests (Files): Likewise.
54973         * modules/remove-tests (Files): Likewise.
54974         * modules/rename-tests (Files): Likewise.
54975         * modules/renameat-tests (Files): Likewise.
54976         * modules/rmdir-tests (Files): Likewise.
54977         * modules/round-tests (Files): Likewise.
54978         * modules/roundf-tests (Files): Likewise.
54979         * modules/roundl-tests (Files): Likewise.
54980         * modules/safe-alloc-tests (Files): Likewise.
54981         * modules/setenv-tests (Files): Likewise.
54982         * modules/sigaction-tests (Files): Likewise.
54983         * modules/signbit-tests (Files): Likewise.
54984         * modules/sleep-tests (Files): Likewise.
54985         * modules/snprintf-posix-tests (Files): Likewise.
54986         * modules/snprintf-tests (Files): Likewise.
54987         * modules/sprintf-posix-tests (Files): Likewise.
54988         * modules/stat-tests (Files): Likewise.
54989         * modules/stat-time-tests (Files): Likewise.
54990         * modules/strcasestr-tests (Files): Likewise.
54991         * modules/strchrnul-tests (Files): Likewise.
54992         * modules/strerror-tests (Files): Likewise.
54993         * modules/striconv-tests (Files): Likewise.
54994         * modules/striconveh-tests (Files): Likewise.
54995         * modules/striconveha-tests (Files): Likewise.
54996         * modules/strsignal-tests (Files): Likewise.
54997         * modules/strstr-tests (Files): Likewise.
54998         * modules/strtod-tests (Files): Likewise.
54999         * modules/strverscmp-tests (Files): Likewise.
55000         * modules/symlink-tests (Files): Likewise.
55001         * modules/symlinkat-tests (Files): Likewise.
55002         * modules/trunc-tests (Files): Likewise.
55003         * modules/truncf-tests (Files): Likewise.
55004         * modules/truncl-tests (Files): Likewise.
55005         * modules/uname-tests (Files): Likewise.
55006         * modules/unicase/cased-tests (Files): Likewise.
55007         * modules/unicase/ignorable-tests (Files): Likewise.
55008         * modules/unicase/locale-language-tests (Files): Likewise.
55009         * modules/unicase/tolower-tests (Files): Likewise.
55010         * modules/unicase/totitle-tests (Files): Likewise.
55011         * modules/unicase/toupper-tests (Files): Likewise.
55012         * modules/unicase/u8-casecmp-tests (Files): Likewise.
55013         * modules/unicase/u8-casecoll-tests (Files): Likewise.
55014         * modules/unicase/u8-casefold-tests (Files): Likewise.
55015         * modules/unicase/u8-is-cased-tests (Files): Likewise.
55016         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
55017         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
55018         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
55019         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
55020         * modules/unicase/u8-tolower-tests (Files): Likewise.
55021         * modules/unicase/u8-totitle-tests (Files): Likewise.
55022         * modules/unicase/u8-toupper-tests (Files): Likewise.
55023         * modules/unicase/u16-casecmp-tests (Files): Likewise.
55024         * modules/unicase/u16-casecoll-tests (Files): Likewise.
55025         * modules/unicase/u16-casefold-tests (Files): Likewise.
55026         * modules/unicase/u16-is-cased-tests (Files): Likewise.
55027         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
55028         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
55029         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
55030         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
55031         * modules/unicase/u16-tolower-tests (Files): Likewise.
55032         * modules/unicase/u16-totitle-tests (Files): Likewise.
55033         * modules/unicase/u16-toupper-tests (Files): Likewise.
55034         * modules/unicase/u32-casecmp-tests (Files): Likewise.
55035         * modules/unicase/u32-casecoll-tests (Files): Likewise.
55036         * modules/unicase/u32-casefold-tests (Files): Likewise.
55037         * modules/unicase/u32-is-cased-tests (Files): Likewise.
55038         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
55039         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
55040         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
55041         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
55042         * modules/unicase/u32-tolower-tests (Files): Likewise.
55043         * modules/unicase/u32-totitle-tests (Files): Likewise.
55044         * modules/unicase/u32-toupper-tests (Files): Likewise.
55045         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
55046         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
55047         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
55048         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
55049         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
55050         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
55051         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
55052         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
55053         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
55054         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
55055         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
55056         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
55057         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
55058         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
55059         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
55060         * modules/unictype/bidicategory-name-tests (Files): Likewise.
55061         * modules/unictype/bidicategory-of-tests (Files): Likewise.
55062         * modules/unictype/bidicategory-test-tests (Files): Likewise.
55063         * modules/unictype/block-list-tests (Files): Likewise.
55064         * modules/unictype/block-of-tests (Files): Likewise.
55065         * modules/unictype/block-test-tests (Files): Likewise.
55066         * modules/unictype/category-C-tests (Files): Likewise.
55067         * modules/unictype/category-Cc-tests (Files): Likewise.
55068         * modules/unictype/category-Cf-tests (Files): Likewise.
55069         * modules/unictype/category-Cn-tests (Files): Likewise.
55070         * modules/unictype/category-Co-tests (Files): Likewise.
55071         * modules/unictype/category-Cs-tests (Files): Likewise.
55072         * modules/unictype/category-L-tests (Files): Likewise.
55073         * modules/unictype/category-Ll-tests (Files): Likewise.
55074         * modules/unictype/category-Lm-tests (Files): Likewise.
55075         * modules/unictype/category-Lo-tests (Files): Likewise.
55076         * modules/unictype/category-Lt-tests (Files): Likewise.
55077         * modules/unictype/category-Lu-tests (Files): Likewise.
55078         * modules/unictype/category-M-tests (Files): Likewise.
55079         * modules/unictype/category-Mc-tests (Files): Likewise.
55080         * modules/unictype/category-Me-tests (Files): Likewise.
55081         * modules/unictype/category-Mn-tests (Files): Likewise.
55082         * modules/unictype/category-N-tests (Files): Likewise.
55083         * modules/unictype/category-Nd-tests (Files): Likewise.
55084         * modules/unictype/category-Nl-tests (Files): Likewise.
55085         * modules/unictype/category-No-tests (Files): Likewise.
55086         * modules/unictype/category-P-tests (Files): Likewise.
55087         * modules/unictype/category-Pc-tests (Files): Likewise.
55088         * modules/unictype/category-Pd-tests (Files): Likewise.
55089         * modules/unictype/category-Pe-tests (Files): Likewise.
55090         * modules/unictype/category-Pf-tests (Files): Likewise.
55091         * modules/unictype/category-Pi-tests (Files): Likewise.
55092         * modules/unictype/category-Po-tests (Files): Likewise.
55093         * modules/unictype/category-Ps-tests (Files): Likewise.
55094         * modules/unictype/category-S-tests (Files): Likewise.
55095         * modules/unictype/category-Sc-tests (Files): Likewise.
55096         * modules/unictype/category-Sk-tests (Files): Likewise.
55097         * modules/unictype/category-Sm-tests (Files): Likewise.
55098         * modules/unictype/category-So-tests (Files): Likewise.
55099         * modules/unictype/category-Z-tests (Files): Likewise.
55100         * modules/unictype/category-Zl-tests (Files): Likewise.
55101         * modules/unictype/category-Zp-tests (Files): Likewise.
55102         * modules/unictype/category-Zs-tests (Files): Likewise.
55103         * modules/unictype/category-and-not-tests (Files): Likewise.
55104         * modules/unictype/category-and-tests (Files): Likewise.
55105         * modules/unictype/category-byname-tests (Files): Likewise.
55106         * modules/unictype/category-name-tests (Files): Likewise.
55107         * modules/unictype/category-none-tests (Files): Likewise.
55108         * modules/unictype/category-of-tests (Files): Likewise.
55109         * modules/unictype/category-or-tests (Files): Likewise.
55110         * modules/unictype/category-test-withtable-tests (Files): Likewise.
55111         * modules/unictype/combining-class-tests (Files): Likewise.
55112         * modules/unictype/ctype-alnum-tests (Files): Likewise.
55113         * modules/unictype/ctype-alpha-tests (Files): Likewise.
55114         * modules/unictype/ctype-blank-tests (Files): Likewise.
55115         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
55116         * modules/unictype/ctype-digit-tests (Files): Likewise.
55117         * modules/unictype/ctype-graph-tests (Files): Likewise.
55118         * modules/unictype/ctype-lower-tests (Files): Likewise.
55119         * modules/unictype/ctype-print-tests (Files): Likewise.
55120         * modules/unictype/ctype-punct-tests (Files): Likewise.
55121         * modules/unictype/ctype-space-tests (Files): Likewise.
55122         * modules/unictype/ctype-upper-tests (Files): Likewise.
55123         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
55124         * modules/unictype/decimal-digit-tests (Files): Likewise.
55125         * modules/unictype/digit-tests (Files): Likewise.
55126         * modules/unictype/mirror-tests (Files): Likewise.
55127         * modules/unictype/numeric-tests (Files): Likewise.
55128         * modules/unictype/property-alphabetic-tests (Files): Likewise.
55129         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
55130         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
55131         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
55132         Likewise.
55133         * modules/unictype/property-bidi-block-separator-tests (Files):
55134         Likewise.
55135         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
55136         Likewise.
55137         * modules/unictype/property-bidi-common-separator-tests (Files):
55138         Likewise.
55139         * modules/unictype/property-bidi-control-tests (Files): Likewise.
55140         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
55141         Likewise.
55142         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
55143         Likewise.
55144         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
55145         Likewise.
55146         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
55147         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
55148         Likewise.
55149         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
55150         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
55151         Likewise.
55152         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
55153         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
55154         * modules/unictype/property-bidi-segment-separator-tests (Files):
55155         Likewise.
55156         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
55157         * modules/unictype/property-byname-tests (Files): Likewise.
55158         * modules/unictype/property-combining-tests (Files): Likewise.
55159         * modules/unictype/property-composite-tests (Files): Likewise.
55160         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
55161         * modules/unictype/property-dash-tests (Files): Likewise.
55162         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
55163         * modules/unictype/property-default-ignorable-code-point-tests (Files):
55164         Likewise.
55165         * modules/unictype/property-deprecated-tests (Files): Likewise.
55166         * modules/unictype/property-diacritic-tests (Files): Likewise.
55167         * modules/unictype/property-extender-tests (Files): Likewise.
55168         * modules/unictype/property-format-control-tests (Files): Likewise.
55169         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
55170         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
55171         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
55172         * modules/unictype/property-hex-digit-tests (Files): Likewise.
55173         * modules/unictype/property-hyphen-tests (Files): Likewise.
55174         * modules/unictype/property-id-continue-tests (Files): Likewise.
55175         * modules/unictype/property-id-start-tests (Files): Likewise.
55176         * modules/unictype/property-ideographic-tests (Files): Likewise.
55177         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
55178         * modules/unictype/property-ids-trinary-operator-tests (Files):
55179         Likewise.
55180         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
55181         * modules/unictype/property-iso-control-tests (Files): Likewise.
55182         * modules/unictype/property-join-control-tests (Files): Likewise.
55183         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
55184         * modules/unictype/property-line-separator-tests (Files): Likewise.
55185         * modules/unictype/property-logical-order-exception-tests (Files):
55186         Likewise.
55187         * modules/unictype/property-lowercase-tests (Files): Likewise.
55188         * modules/unictype/property-math-tests (Files): Likewise.
55189         * modules/unictype/property-non-break-tests (Files): Likewise.
55190         * modules/unictype/property-not-a-character-tests (Files): Likewise.
55191         * modules/unictype/property-numeric-tests (Files): Likewise.
55192         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
55193         * modules/unictype/property-other-default-ignorable-code-point-tests
55194         (Files): Likewise.
55195         * modules/unictype/property-other-grapheme-extend-tests (Files):
55196         Likewise.
55197         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
55198         * modules/unictype/property-other-id-start-tests (Files): Likewise.
55199         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
55200         * modules/unictype/property-other-math-tests (Files): Likewise.
55201         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
55202         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
55203         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
55204         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
55205         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
55206         * modules/unictype/property-private-use-tests (Files): Likewise.
55207         * modules/unictype/property-punctuation-tests (Files): Likewise.
55208         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
55209         * modules/unictype/property-radical-tests (Files): Likewise.
55210         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
55211         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
55212         * modules/unictype/property-space-tests (Files): Likewise.
55213         * modules/unictype/property-terminal-punctuation-tests (Files):
55214         Likewise.
55215         * modules/unictype/property-test-tests (Files): Likewise.
55216         * modules/unictype/property-titlecase-tests (Files): Likewise.
55217         * modules/unictype/property-unassigned-code-value-tests (Files):
55218         Likewise.
55219         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
55220         * modules/unictype/property-uppercase-tests (Files): Likewise.
55221         * modules/unictype/property-variation-selector-tests (Files): Likewise.
55222         * modules/unictype/property-white-space-tests (Files): Likewise.
55223         * modules/unictype/property-xid-continue-tests (Files): Likewise.
55224         * modules/unictype/property-xid-start-tests (Files): Likewise.
55225         * modules/unictype/property-zero-width-tests (Files): Likewise.
55226         * modules/unictype/scripts-tests (Files): Likewise.
55227         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
55228         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
55229         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
55230         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
55231         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
55232         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
55233         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
55234         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
55235         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
55236         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
55237         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
55238         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
55239         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
55240         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
55241         * modules/uninorm/composition-tests (Files): Likewise.
55242         * modules/uninorm/decomposing-form-tests (Files): Likewise.
55243         * modules/uninorm/decomposition-tests (Files): Likewise.
55244         * modules/uninorm/filter-tests (Files): Likewise.
55245         * modules/uninorm/nfc-tests (Files): Likewise.
55246         * modules/uninorm/nfd-tests (Files): Likewise.
55247         * modules/uninorm/nfkc-tests (Files): Likewise.
55248         * modules/uninorm/nfkd-tests (Files): Likewise.
55249         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
55250         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
55251         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
55252         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
55253         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
55254         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
55255         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
55256         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
55257         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
55258         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
55259         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
55260         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
55261         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
55262         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
55263         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
55264         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
55265         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
55266         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
55267         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
55268         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
55269         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
55270         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
55271         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
55272         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
55273         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
55274         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
55275         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
55276         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
55277         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
55278         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
55279         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
55280         * modules/uniwidth/u8-width-tests (Files): Likewise.
55281         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
55282         * modules/uniwidth/u16-width-tests (Files): Likewise.
55283         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
55284         * modules/uniwidth/u32-width-tests (Files): Likewise.
55285         * modules/uniwidth/width-tests (Files): Likewise.
55286         * modules/unlink-tests (Files): Likewise.
55287         * modules/unsetenv-tests (Files): Likewise.
55288         * modules/usleep-tests (Files): Likewise.
55289         * modules/utimens-tests (Files): Likewise.
55290         * modules/utimensat-tests (Files): Likewise.
55291         * modules/vasnprintf-posix-tests (Files): Likewise.
55292         * modules/vasnprintf-tests (Files): Likewise.
55293         * modules/vasprintf-posix-tests (Files): Likewise.
55294         * modules/vasprintf-tests (Files): Likewise.
55295         * modules/vdprintf-posix-tests (Files): Likewise.
55296         * modules/vfprintf-posix-tests (Files): Likewise.
55297         * modules/vprintf-posix-tests (Files): Likewise.
55298         * modules/vsnprintf-posix-tests (Files): Likewise.
55299         * modules/vsnprintf-tests (Files): Likewise.
55300         * modules/vsprintf-posix-tests (Files): Likewise.
55301         * modules/wcrtomb-tests (Files): Likewise.
55302         * modules/wcsnrtombs-tests (Files): Likewise.
55303         * modules/wcsrtombs-tests (Files): Likewise.
55304         * modules/wctype-tests (Files): Likewise.
55305         * modules/wcwidth-tests (Files): Likewise.
55306         * modules/xmemdup0-tests (Files): Likewise.
55307         * modules/xprintf-posix-tests (Files): Likewise.
55308         * modules/xvasprintf-tests (Files): Likewise.
55310 2009-12-24  Eric Blake  <ebb9@byu.net>
55312         test-nanosleep: fix typo
55313         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
55314         patch.
55315         Reported by Bruno Haible.
55317 2009-12-24  Bruno Haible  <bruno@clisp.org>
55319         Reduce namespace pollution on glibc systems.
55320         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
55321         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
55322         systems.
55323         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
55324         <getopt.h> on glibc systems.
55325         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
55326         systems.
55327         * lib/fcntl.c: Include <unistd.h> here instead.
55329 2009-12-24  Bruno Haible  <bruno@clisp.org>
55331         * lib/stdlib.in.h (includes): Fix typo in today's commit.
55333 2009-12-24  Eric Blake  <ebb9@byu.net>
55335         tests: add signature checks
55336         * tests/signature.h (SIGNATURE_CHECK): New file.
55337         * modules/atexit-tests (Files): Use it.
55338         * modules/btowc-tests (Files): Likewise.
55339         * modules/canonicalize-lgpl-tests (Files): Likewise.
55340         * modules/ceilf-tests (Files): Likewise.
55341         * modules/ceill-tests (Files): Likewise.
55342         * modules/chown-tests (Files): Likewise.
55343         * modules/dprintf-posix-tests (Files): Likewise.
55344         * modules/dup2-tests (Files): Likewise.
55345         * modules/dup3-tests (Files): Likewise.
55346         * modules/duplocale-tests (Files): Likewise.
55347         * modules/fchdir-tests (Files): Likewise.
55348         * modules/fcntl-tests (Files): Likewise.
55349         * modules/fdopendir-tests (Files): Likewise.
55350         * modules/fflush-tests (Files): Likewise.
55351         * modules/flock-tests (Files): Likewise.
55352         * modules/floorf-tests (Files): Likewise.
55353         * modules/floorl-tests (Files): Likewise.
55354         * modules/fnmatch-tests (Files): Likewise.
55355         * modules/fopen-tests (Files): Likewise.
55356         * modules/fprintf-posix-tests (Files): Likewise.
55357         * modules/freopen-tests (Files): Likewise.
55358         * modules/frexp-nolibm-tests (Files): Likewise.
55359         * modules/frexp-tests (Files): Likewise.
55360         * modules/frexpl-nolibm-tests (Files): Likewise.
55361         * modules/frexpl-tests (Files): Likewise.
55362         * modules/fseek-tests (Files): Likewise.
55363         * modules/fseeko-tests (Files): Likewise.
55364         * modules/fsync-tests (Files): Likewise.
55365         * modules/ftell-tests (Files): Likewise.
55366         * modules/ftello-tests (Files): Likewise.
55367         * modules/futimens-tests (Files): Likewise.
55368         * modules/getaddrinfo-tests (Files): Likewise.
55369         * modules/getcwd-tests (Files): Likewise.
55370         * modules/getdelim-tests (Files): Likewise.
55371         * modules/getdtablesize-tests (Files): Likewise.
55372         * modules/getgroups-tests (Files): Likewise.
55373         * modules/gethostname-tests (Files): Likewise.
55374         * modules/getline-tests (Files): Likewise.
55375         * modules/getopt-posix-tests (Files): Likewise.
55376         * modules/gettimeofday-tests (Files): Likewise.
55377         * modules/glob-tests (Files): Likewise.
55378         * modules/iconv-tests (Files): Likewise.
55379         * modules/inet_ntop-tests (Files): Likewise.
55380         * modules/inet_pton-tests (Files): Likewise.
55381         * modules/isblank-tests (Files): Likewise.
55382         * modules/lchown-tests (Files): Likewise.
55383         * modules/ldexpl-tests (Files): Likewise.
55384         * modules/link-tests (Files): Likewise.
55385         * modules/linkat-tests (Files): Likewise.
55386         * modules/lseek-tests (Files): Likewise.
55387         * modules/lstat-tests (Files): Likewise.
55388         * modules/mbrtowc-tests (Files): Likewise.
55389         * modules/mbsinit-tests (Files): Likewise.
55390         * modules/mbsnrtowcs-tests (Files): Likewise.
55391         * modules/mbsrtowcs-tests (Files): Likewise.
55392         * modules/memchr-tests (Files): Likewise.
55393         * modules/memcmp-tests (Files): Likewise.
55394         * modules/memmem-tests (Files): Likewise.
55395         * modules/memrchr-tests (Files): Likewise.
55396         * modules/mkdir-tests (Files): Likewise.
55397         * modules/mkfifo-tests (Files): Likewise.
55398         * modules/mkfifoat-tests (Files): Likewise.
55399         * modules/mknod-tests (Files): Likewise.
55400         * modules/nanosleep-tests (Files): Likewise.
55401         * modules/nl_langinfo-tests (Files): Likewise.
55402         * modules/obstack-printf-tests (Files): Likewise.
55403         * modules/open-tests (Files): Likewise.
55404         * modules/openat-tests (Files): Likewise.
55405         * modules/perror-tests (Files): Likewise.
55406         * modules/pipe2-tests (Files): Likewise.
55407         * modules/poll-tests (Files): Likewise.
55408         * modules/popen-tests (Files): Likewise.
55409         * modules/posix_spawn-tests (Files): Likewise.
55410         * modules/posix_spawnp-tests (Files): Likewise.
55411         * modules/pread-tests (Files): Likewise.
55412         * modules/printf-posix-tests (Files): Likewise.
55413         * modules/pty-tests (Files): Likewise.
55414         * modules/random_r-tests (Files): Likewise.
55415         * modules/rawmemchr-tests (Files): Likewise.
55416         * modules/readlink-tests (Files): Likewise.
55417         * modules/remove-tests (Files): Likewise.
55418         * modules/rename-tests (Files): Likewise.
55419         * modules/renameat-tests (Files): Likewise.
55420         * modules/rmdir-tests (Files): Likewise.
55421         * modules/round-tests (Files): Likewise.
55422         * modules/roundf-tests (Files): Likewise.
55423         * modules/roundl-tests (Files): Likewise.
55424         * modules/select-tests (Files): Likewise.
55425         * modules/setenv-tests (Files): Likewise.
55426         * modules/sigaction-tests (Files): Likewise.
55427         * modules/sleep-tests (Files): Likewise.
55428         * modules/snprintf-posix-tests (Files): Likewise.
55429         * modules/snprintf-tests (Files): Likewise.
55430         * modules/sprintf-posix-tests (Files): Likewise.
55431         * modules/stat-tests (Files): Likewise.
55432         * modules/strcasestr-tests (Files): Likewise.
55433         * modules/strchrnul-tests (Files): Likewise.
55434         * modules/strerror-tests (Files): Likewise.
55435         * modules/strsignal-tests (Files): Likewise.
55436         * modules/strstr-tests (Files): Likewise.
55437         * modules/strtod-tests (Files): Likewise.
55438         * modules/strverscmp-tests (Files): Likewise.
55439         * modules/symlink-tests (Files): Likewise.
55440         * modules/symlinkat-tests (Files): Likewise.
55441         * modules/times-tests (Files): Likewise.
55442         * modules/trunc-tests (Files): Likewise.
55443         * modules/truncf-tests (Files): Likewise.
55444         * modules/truncl-tests (Files): Likewise.
55445         * modules/tsearch-tests (Files): Likewise.
55446         * modules/uname-tests (Files): Likewise.
55447         * modules/unlink-tests (Files): Likewise.
55448         * modules/unsetenv-tests (Files): Likewise.
55449         * modules/usleep-tests (Files): Likewise.
55450         * modules/utimensat-tests (Files): Likewise.
55451         * modules/vasprintf-tests (Files): Likewise.
55452         * modules/vdprintf-posix-tests (Files): Likewise.
55453         * modules/vfprintf-posix-tests (Files): Likewise.
55454         * modules/vprintf-posix-tests (Files): Likewise.
55455         * modules/vsnprintf-posix-tests (Files): Likewise.
55456         * modules/vsnprintf-tests (Files): Likewise.
55457         * modules/vsprintf-posix-tests (Files): Likewise.
55458         * modules/wcrtomb-tests (Files): Likewise.
55459         * modules/wcsnrtombs-tests (Files): Likewise.
55460         * modules/wcsrtombs-tests (Files): Likewise.
55461         * modules/wcwidth-tests (Files): Likewise.
55462         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
55463         * tests/test-isinf.c (isinf): Likewise.
55464         * tests/test-isnan.c (isnan): Likewise.
55465         * tests/test-signbit.c (signbit): Likewise.
55466         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
55467         declaration, either as macro or with correct signature.
55468         (select): Ensure function under test is declared with correct
55469         signature in correct header.
55470         * tests/test-atexit.c (atexit): Likewise.
55471         * tests/test-btowc.c (btowc): Likewise.
55472         * tests/test-canonicalize-lgpl.c (realpath)
55473         (canonicalize_file_name): Likewise.
55474         * tests/test-ceilf1.c (ceilf): Likewise.
55475         * tests/test-ceill.c (ceill): Likewise.
55476         * tests/test-chown.c (chown): Likewise.
55477         * tests/test-dprintf-posix.c (dprintf): Likewise.
55478         * tests/test-dup2.c (dup2): Likewise.
55479         * tests/test-dup3.c (dup3): Likewise.
55480         * tests/test-duplocale.c (duplocale): Likewise.
55481         * tests/test-fchdir.c (fchdir): Likewise.
55482         * tests/test-fchownat.c (fchownat): Likewise.
55483         * tests/test-fcntl.c (fcntl): Likewise.
55484         * tests/test-fdopendir.c (fdopendir): Likewise.
55485         * tests/test-fflush.c (fflush): Likewise.
55486         * tests/test-flock.c (flock): Likewise.
55487         * tests/test-floorf1.c (floorf): Likewise.
55488         * tests/test-floorl.c (floorl): Likewise.
55489         * tests/test-fnmatch.c (fnmatch): Likewise.
55490         * tests/test-fopen.c (fopen): Likewise.
55491         * tests/test-fprintf-posix.c (fprintf): Likewise.
55492         * tests/test-freopen.c (freopen): Likewise.
55493         * tests/test-frexp.c (frexp): Likewise.
55494         * tests/test-frexpl.c (frexpl): Likewise.
55495         * tests/test-fseek.c (fseek): Likewise.
55496         * tests/test-fseeko.c (fseeko): Likewise.
55497         * tests/test-fstatat.c (fstatat): Likewise.
55498         * tests/test-fsync.c (fsync): Likewise.
55499         * tests/test-ftell.c (ftell): Likewise.
55500         * tests/test-ftello.c (ftello): Likewise.
55501         * tests/test-futimens.c (futimens): Likewise.
55502         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
55503         (gai_strerror): Likewise.
55504         * tests/test-getcwd.c (getcwd): Likewise.
55505         * tests/test-getdelim.c (getdelim): Likewise.
55506         * tests/test-getdtablesize.c (getdtablesize): Likewise.
55507         * tests/test-getgroups.c (getgroups): Likewise.
55508         * tests/test-gethostname.c (gethostname): Likewise.
55509         * tests/test-getline.c (getline): Likewise.
55510         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
55511         Likewise.
55512         * tests/test-gettimeofday.c (gettimeofday): Likewise.
55513         * tests/test-glob.c (glob, globfree): Likewise.
55514         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
55515         * tests/test-inet_ntop.c (inet_ntop): Likewise.
55516         * tests/test-inet_pton.c (inet_pton): Likewise.
55517         * tests/test-isblank.c (isblank): Likewise.
55518         * tests/test-lchown.c (lchown): Likewise.
55519         * tests/test-ldexpl.c (ldexpl): Likewise.
55520         * tests/test-link.c (link): Likewise.
55521         * tests/test-linkat.c (linkat): Likewise.
55522         * tests/test-lseek.c (lseek): Likewise.
55523         * tests/test-lstat.c (lstat): Likewise.
55524         * tests/test-mbrtowc.c (mbrtowc): Likewise.
55525         * tests/test-mbsinit.c (mbsinit): Likewise.
55526         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
55527         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
55528         * tests/test-memchr.c (memchr): Likewise.
55529         * tests/test-memcmp.c (memcmp): Likewise.
55530         * tests/test-memmem.c (memmem): Likewise.
55531         * tests/test-memrchr.c (memrchr): Likewise.
55532         * tests/test-mkdir.c (mkdir): Likewise.
55533         * tests/test-mkdirat.c (mkdirat): Likewise.
55534         * tests/test-mkfifo.c (mkfifo): Likewise.
55535         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
55536         * tests/test-mknod.c (mknod): Likewise.
55537         * tests/test-nanosleep.c (nanosleep): Likewise.
55538         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
55539         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
55540         Likewise.
55541         * tests/test-open.c (open): Likewise.
55542         * tests/test-openat.c (openat): Likewise.
55543         * tests/test-perror.c (perror): Likewise.
55544         * tests/test-pipe2.c (pipe2): Likewise.
55545         * tests/test-poll.c (poll): Likewise.
55546         * tests/test-popen.c (popen, pclose): Likewise.
55547         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
55548         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
55549         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
55550         (posix_spawn_file_actions_destroy)
55551         (posix_spawn_file_actions_addclose)
55552         (posix_spawn_file_actions_addopen)
55553         (posix_spawn_file_actions_adddup2): Likewise.
55554         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
55555         * tests/test-pread.c (pread): Likewise.
55556         * tests/test-printf-posix.c (printf): Likewise.
55557         * tests/test-pty.c (openpty, forkpty): Likewise.
55558         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
55559         (random_r): Likewise.
55560         * tests/test-rawmemchr.c (rawmemchr): Likewise.
55561         * tests/test-readlink.c (readlink): Likewise.
55562         * tests/test-remove.c (remove): Likewise.
55563         * tests/test-rename.c (rename): Likewise.
55564         * tests/test-renameat.c (renameat): Likewise.
55565         * tests/test-rmdir.c (rmdir): Likewise.
55566         * tests/test-round1.c (round): Likewise.
55567         * tests/test-roundf1.c (roundf): Likewise.
55568         * tests/test-roundl.c (roundl): Likewise.
55569         * tests/test-setenv.c (setenv): Likewise.
55570         * tests/test-sigaction.c (sigaction): Likewise.
55571         * tests/test-sleep.c (sleep): Likewise.
55572         * tests/test-snprintf.c (snprintf): Likewise.
55573         * tests/test-sprintf-posix.c (sprintf): Likewise.
55574         * tests/test-stat.c (stat): Likewise.
55575         * tests/test-stpncpy.c (stpncpy): Likewise.
55576         * tests/test-strcasestr.c (strcasestr): Likewise.
55577         * tests/test-strchrnul.c (strchrnul): Likewise.
55578         * tests/test-strerror.c (strerror): Likewise.
55579         * tests/test-strsignal.c (strsignal): Likewise.
55580         * tests/test-strstr.c (strstr): Likewise.
55581         * tests/test-strtod.c (strtod): Likewise.
55582         * tests/test-strverscmp.c (strverscmp): Likewise.
55583         * tests/test-symlink.c (symlink): Likewise.
55584         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
55585         * tests/test-times.c (times): Likewise.
55586         * tests/test-trunc1.c (trunc): Likewise.
55587         * tests/test-truncf1.c (truncf): Likewise.
55588         * tests/test-truncl.c (truncl): Likewise.
55589         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
55590         Likewise.
55591         * tests/test-uname.c (uname): Likewise.
55592         * tests/test-unlink.c (unlink): Likewise.
55593         * tests/test-unlinkat.c (unlinkat): Likewise.
55594         * tests/test-unsetenv.c (unsetenv): Likewise.
55595         * tests/test-usleep.c (usleep): Likewise.
55596         * tests/test-utimensat.c (utimensat): Likewise.
55597         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
55598         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
55599         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
55600         * tests/test-vprintf-posix.c (vprintf): Likewise.
55601         * tests/test-vsnprintf.c (vsnprintf): Likewise.
55602         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
55603         * tests/test-wcrtomb.c (wcrtomb): Likewise.
55604         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
55605         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
55606         * tests/test-wcwidth.c (wcwidth): Likewise.
55608         build: pull in conditional headers during GNULIB_POSIXCHECK
55609         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
55610         definitions from any conditionally-included headers.
55611         * lib/stdlib.in.h (includes): Likewise.
55612         * lib/unistd.in.h (includes): Likewise.
55614 2009-12-24  Bruno Haible  <bruno@clisp.org>
55616         * tests/test-argv-iter.c: Include header file being tested immediately
55617         after config.h.
55618         * tests/test-base64.c: Likewise.
55619         * tests/test-flock.c: Likewise.
55620         * tests/test-fsync.c: Likewise.
55621         * tests/test-getdate.c: Likewise.
55622         * tests/test-getndelim2.c: Likewise.
55623         * tests/test-isfinite.c: Likewise.
55624         * tests/test-isinf.c: Likewise.
55625         * tests/test-strerror.c: Likewise.
55626         * tests/test-strsignal.c: Likewise.
55628 2009-12-23  Eric Blake  <ebb9@byu.net>
55630         unistd: work around cygwin bug
55631         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
55632         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
55633         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55635 2009-12-23  Bruno Haible  <bruno@clisp.org>
55637         localename: More tests.
55638         * tests/test-localename.c (SIZEOF): New macro.
55639         (categories): New variable.
55640         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
55641         test_locale_name_default): Add test w.r.t. thread locale.
55642         (test_locale_name_thread): New function.
55643         (main): Invoke it.
55645         localename: Make aware of thread locale.
55646         * lib/localename.h (gl_locale_name_thread): New declaration.
55647         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
55648         behaviour with respect to thread locale.
55649         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
55650         <langinfo.h>, glthread/lock.h.
55651         (SIZE_BITS): New macro.
55652         (string_hash): New function.
55653         (struct hash_node): New type.
55654         (HASH_TABLE_SIZE): New macro.
55655         (struniq_hash_table, struniq_lock): New variables.
55656         (struniq): New function.
55657         (gl_locale_name_thread): New function.
55658         (gl_locale_name): Invoke it.
55659         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
55660         * modules/localename (Depends-on): Add lock.
55661         Reported by Mike Gran <spk121@yahoo.com>.
55663 2009-12-23  Eric Blake  <ebb9@byu.net>
55665         va-args: new module
55666         * modules/va-args: New file.
55667         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
55668         * MODULES.html.sh (Core language properties): Mention it.
55670         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
55671         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
55672         named alias for __attribute__((__unused__)).
55673         * lib/chown.c: Update client.
55674         * lib/fchmodat.c: Likewise.
55675         * lib/fts.c: Likewise.
55676         * lib/getdate.y: Likewise.
55677         * lib/getgroups.c: Likewise.
55678         * lib/getopt.c: Likewise.
55679         * lib/getugroups.c: Likewise.
55680         * lib/mkdir.c: Likewise.
55681         * lib/mkfifo.c: Likewise.
55682         * lib/mkfifoat.c: Likewise.
55683         * lib/mknod.c: Likewise.
55684         * lib/mknodat.c: Likewise.
55685         * lib/readlink.c: Likewise.
55686         * lib/se-context.in.h: Likewise.
55687         * lib/se-selinux.in.h: Likewise.
55688         * lib/sockets.c: Likewise.
55689         * lib/symlink.c: Likewise.
55690         * lib/symlinkat.c: Likewise.
55691         * lib/unicodeio.c: Likewise.
55692         * lib/unistr.h: Likewise.
55693         * tests/test-areadlink.c: Likewise.
55694         * tests/test-areadlinkat.c: Likewise.
55695         * tests/test-filenamecat.c: Likewise.
55696         * tests/test-fseeko.c: Likewise.
55697         * tests/test-ftello.c: Likewise.
55698         * tests/test-getdate.c: Likewise.
55699         * tests/test-getgroups.c: Likewise.
55700         * tests/test-gethostname.c: Likewise.
55701         * tests/test-quotearg.c: Likewise.
55702         * tests/test-version-etc.c: Likewise.
55703         * tests/test-xalloc-die.c: Likewise.
55704         * tests/test-xfprintf-posix.c: Likewise.
55705         * tests/test-xprintf-posix.c: Likewise.
55706         * tests/test-xvasprintf.c: Likewise.
55708         tests: avoid compiler warnings
55709         * tests/test-fcntl.c (main): Delete unused parameters.
55710         * tests/test-freopen-safer.c (main): Likewise.
55711         * tests/test-xalloc-die.c (main): Mark unused parameters.
55712         * tests/test-fseeko.c (main): Likewise.
55713         * tests/test-ftello.c (main): Likewise.
55714         * tests/test-nanosleep.c (main): Avoid declaration warning.
55715         * tests/test-sleep.c (main): Likewise.
55716         * tests/test-unsetenv.c (main): Silence warning about string
55717         literal.
55718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
55720 2009-12-23  Bruno Haible  <bruno@clisp.org>
55722         * tests/test-localename.c (test_locale_name): New function, extracted
55723         from main. Also test mixed situations.
55724         (test_locale_name_posix, test_locale_name_environ,
55725         test_locale_name_default): New functions.
55726         (main): Invoke them all.
55727         * modules/localename-tests (configure.ac): Test for newlocale.
55729 2009-12-23  Bruno Haible  <bruno@clisp.org>
55731         unistd: Ensure getcwd gets declared before being overridden.
55732         * lib/unistd.in.h: Conditionally include <io.h>.
55734 2009-12-22  Bruno Haible  <bruno@clisp.org>
55736         wchar: Diagnose broken combination of glibc and gcc versions and flags.
55737         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
55738         (gl_WCHAR_H): Invoke it.
55739         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
55740         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
55741         Reported by Karl Berry <karl@freefriends.org>.
55743 2009-12-22  Eric Blake  <ebb9@byu.net>
55745         math, unistd: avoid redundant includes
55746         * lib/math.in.h (isnan): No need to re-include <math.h>.
55747         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
55749         getsubopt: work around cygwin bug
55750         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
55751         avoid conflicting with system getsubopt.
55752         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
55753         bug.
55755         getopt: synchronize from glibc
55756         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
55757         parameter order.  Adjust all callers.
55758         (_getopt_internal_r, main): Adjust quoting in error messages.
55759         Drop considerations for outdated POSIX 1003.2 error message.
55760         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
55761         callers.
55762         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
55764         test-getopt: test stderr behavior
55765         * modules/getopt-posix-tests (Depends-on): Add dup2.
55766         * tests/test-getopt.c (ASSERT): Avoid stderr.
55767         (main): Move stderr to a temporary file.
55768         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
55769         Instead, add parameter to inform caller if output occurred.
55770         (test_getopt): Adjust all existing tests to expect silence, and
55771         add new tests of leading ":".
55772         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
55773         glibc shortcomings with leading "-:" or "+:" in optstring.
55774         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55775         Likewise.
55776         * doc/posix-functions/getopt.texi (getopt): Likewise.
55778         test-getopt: enhance test
55779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
55780         supports optind=0.
55781         * tests/test-getopt.c (OPTIND_MIN): Move...
55782         * tests/test-getopt.h (OPTIND_MIN): ...here.
55783         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
55784         Require that optind=0 works, since modern BSD supports it in
55785         addition to optreset, and since coreutils expects it.
55786         (test_getopt_long_only): New test.
55787         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
55788         glibc shortcomings with 'W;', and enforcement of optind=0.
55789         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55790         Likewise.
55792 2009-12-21  Bruno Haible  <bruno@clisp.org>
55794         localename: Improvements for MacOS X and Cygwin.
55795         * lib/localename.h (gl_locale_name_environ): New declaration.
55796         * lib/localename.c (gl_locale_name_environ): New function, extracted from
55797         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
55798         (gl_locale_name_posix): Invoke it.
55799         (gl_locale_name_default): Add comments. Use Windows native API also on
55800         Cygwin.
55802 2009-12-21  Bruno Haible  <bruno@clisp.org>
55804         Update list of Win32 locale ids.
55805         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
55806         (LANG_SAMI): Renamed from LANG_SAAMI.
55807         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
55808         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
55809         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
55810         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
55811         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
55812         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
55813         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
55814         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
55815         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
55816         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
55817         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
55818         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
55819         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
55820         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
55821         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
55822         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
55823         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
55824         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
55825         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
55826         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
55827         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
55828         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
55829         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
55830         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
55831         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
55832         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
55833         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
55834         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
55835         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
55836         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
55837         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
55838         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
55839         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
55840         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
55841         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
55842         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
55843         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
55844         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
55845         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
55846         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
55847         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
55848         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
55849         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
55850         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
55851         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
55852         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
55853         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
55854         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
55855         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
55856         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
55857         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
55858         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
55859         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
55860         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
55861         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
55862         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
55863         Add more languages and countries for Sami, Sorbian. Add more countries
55864         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
55865         for Pashto. Change country for Syriac, Tswana.
55867 2009-12-21  Eric Blake  <ebb9@byu.net>
55869         test-utimens: avoid spurious failure
55870         * tests/test-chown.h (nap): Factor...
55871         * tests/nap.h: ...into new file.
55872         * tests/test-lchown.h (nap): Avoid duplication.
55873         * tests/test-utimens-common.h (nap): Use shared implementation,
55874         necessary on file systems with 1-second resolution.
55875         * modules/chown-tests (Files): Include new file.
55876         * modules/fdutimensat-tests (Files): Likewise.
55877         * modules/futimens-tests (Files): Likewise.
55878         * modules/lchown-tests (Files): Likewise.
55879         * modules/openat-tests (Files): Likewise.
55880         * modules/utimens-tests (Files): Likewise.
55881         * modules/utimensat-tests (Files): Likewise.
55883 2009-12-19  Eric Blake  <ebb9@byu.net>
55885         futimens, utimensat: work around Linux bug
55886         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
55887         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55888         * lib/utimensat.c (rpl_utimensat): Work around it.
55889         * lib/futimens.c (rpl_futimens): Adjust comment.
55891         utimens: work around Linux ctime bug
55892         * lib/utimens.c (detect_ctime_bug): New helper function.
55893         (update_timespec): Differentiate between workaround needed for
55894         this bug vs. what is needed for systems that lack utimensat.
55895         (fdutimens, lutimens): Work around bug.
55897         utimens: check for ctime update
55898         * tests/test-utimens-common.h (check_ctime): Define.
55899         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
55900         * tests/test-futimens.h (test_futimens): Likewise.
55901         * tests/test-lutimens.h (test_lutimens): Likewise.
55902         * doc/posix-functions/futimens.texi (futimens): Document the bug.
55903         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
55905 2009-12-19  Bruno Haible  <bruno@clisp.org>
55907         dprintf-posix: Check against memory leak fixed on 2009-12-15.
55908         * tests/test-dprintf-posix2.sh: New file.
55909         * tests/test-dprintf-posix2.c: New file.
55910         * modules/dprintf-posix-tests (Files): Add them.
55911         (configure.ac): Check for getrlimit and setrlimit.
55912         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
55914 2009-12-19  Bruno Haible  <bruno@clisp.org>
55916         fprintf-posix: Check against memory leak fixed on 2009-12-15.
55917         * tests/test-fprintf-posix3.sh: New file.
55918         * tests/test-fprintf-posix3.c: New file.
55919         * modules/fprintf-posix-tests (Files): Add them.
55920         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
55922 2009-12-19  Eric Blake  <ebb9@byu.net>
55924         dirfd: fix prototype
55925         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
55926         * lib/dirfd.c (dirfd): Likewise.
55928         canonicalize: reduce memory usage
55929         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
55930         allocation to size.
55931         Reported by Solar Designer <solar@openwall.com>.
55933 2009-12-19  Bruno Haible  <bruno@clisp.org>
55935         New module attribute 'Applicability'.
55936         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
55937         * gnulib-tool: New option --extract-applicability.
55938         (func_usage): Document it.
55939         (sed_extract_prog): Recognize it.
55940         (func_get_applicability): New function.
55941         (func_import): Generalize handling of 'link-warning' module.
55942         * modules/link-warning (Applicability): New section.
55943         * modules/arg-nonnull (Applicability): New section.
55944         Repoted by Simon Josefsson <simon@josefsson.org>.
55946 2009-12-19  Bruno Haible  <bruno@clisp.org>
55948         fflush: tweak
55949         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
55950         * lib/fseeko.c (rpl_fseeko): Likewise.
55952 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
55954         * lib/gl_list.h: Fix typo in comment.
55956 2009-12-16  Eric Blake  <ebb9@byu.net>
55958         fcntl: use to simplify other modules
55959         * modules/cloexec (Depends-on): Add fcntl.
55960         * modules/fchdir (Depends-on): Likewise.
55961         * modules/fd-safer-flag (Depends-on): Likewise.
55962         * modules/unistd-safer (Depends-on): Likewise.
55963         * modules/dup3 (configure.ac): Set module indicator.
55964         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
55965         missing.
55966         * lib/fchdir.c (_gl_register_dup): Fix comment.
55967         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
55968         * lib/dup-safer.c (dup_safer): Likewise.
55969         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
55970         * lib/dup3.c (dup3): Likewise.
55971         * tests/test-fchdir.c (main): Enhance test.
55972         Fixes a dup_cloexec bug reported by Ondřej Vašík.
55974         fcntl: port portions of fcntl to mingw
55975         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
55976         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
55977         replacement for mingw.
55978         * modules/fcntl (Description): Update.
55979         (Depends-on): Add dup2.
55980         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
55981         * modules/fcntl-h (Makefile.am): Substitute it.
55982         * lib/fcntl.in.h (fcntl): Update declaration.
55983         (F_DUPFD, F_GETFD): New macros, when needed.
55984         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
55985         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
55986         * tests/test-fcntl.c (check_flags, main): Enhance test for items
55987         we now guarantee.
55989         fcntl: work around cygwin bug in F_DUPFD
55990         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
55991         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
55992         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
55993         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
55994         * doc/posix-functions/fcntl.texi (fcntl): Document it.
55996         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
55997         * modules/fcntl (Files): List new files.
55998         (configure.ac): Run a test.
55999         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
56000         * lib/fcntl.c (rpl_fcntl): Likewise.
56001         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
56002         (gl_FCNTL_H): Always replace fcntl.h.
56003         * modules/fcntl-h (Makefile.am): Substitute witnesses.
56004         * lib/fcntl.in.h (fcntl): Declare replacement.
56005         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
56006         needed, plus a witness.
56007         * doc/posix-functions/fcntl.texi (fcntl): Document this.
56008         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
56009         * tests/test-fcntl.c: New file.
56010         * modules/fcntl-tests: Likewise.
56012         binary-io: avoid potential compilation warning
56013         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
56014         directives.
56016         fflush: avoid compilation error on NetBSD
56017         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
56018         between off_t and fpos_t, since the latter is sometimes a struct.
56019         * lib/fseeko.c (rpl_fseeko): Likewise.
56020         Reported by Alexander Nasonov <alnsn@yandex.ru>.
56022 2009-12-15  Eric Blake  <ebb9@byu.net>
56024         fcntl-h, stdio, sys_ioctl: fix declarations
56025         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
56026         function must not take arguments.
56027         * lib/sys_ioctl.in.h (ioctl): Likewise.
56028         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
56029         (open): Add a link warning.
56031 2009-12-15  Jim Meyering  <meyering@redhat.com>
56033         areadlink, areadlink-with-size: relax license to LGPLv2+
56034         * modules/areadlink (License): Relax to LGPLv2+.
56035         * modules/areadlink-with-size (License): Likewise.
56037 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
56038             Bruno Haible  <bruno@clisp.org>
56040         *printf: Fix memory leak.
56041         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
56042         * lib/vfprintf.c (vfprintf): Likewise.
56043         * lib/dprintf.c (dprintf): Likewise.
56044         * lib/vdprintf.c (vdprintf): Likewise.
56046 2009-12-14  Eric Blake  <ebb9@byu.net>
56048         accept4: adjust module dependencies
56049         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
56051         utimens: one more try at avoiding compiler warning
56052         * lib/utimens.c (lutimens): Lower scope of result.
56054 2009-12-13  Bruno Haible  <bruno@clisp.org>
56056         Move the malloc checking from module 'list' to new module 'xlist'.
56057         * modules/xlist: New file.
56058         * lib/gl_xlist.h: New file.
56059         * lib/gl_xlist.c: New file.
56060         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
56061         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
56062         gl_list_add_last, gl_list_add_before, gl_list_add_after,
56063         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
56064         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
56065         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
56066         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
56067         gl_sortedlist_nx_add): New declarations.
56068         (struct gl_list_implementation): Rename and change methods accordingly.
56069         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
56070         (gl_list_nx_create): Renamed from gl_list_create.
56071         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
56072         (gl_list_nx_set_at): Renamed from gl_list_set_at.
56073         (gl_list_nx_add_first): Renamed from gl_list_add_first.
56074         (gl_list_nx_add_last): Renamed from gl_list_add_last.
56075         (gl_list_nx_add_before): Renamed from gl_list_add_before.
56076         (gl_list_nx_add_after): Renamed from gl_list_add_after.
56077         (gl_list_nx_add_at): Renamed from gl_list_add_at.
56078         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
56079         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
56080         gl_list_create_empty.
56081         (gl_list_nx_create): Renamed from gl_list_create.
56082         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
56083         (gl_list_nx_set_at): Renamed from gl_list_set_at.
56084         (gl_list_nx_add_first): Renamed from gl_list_add_first.
56085         (gl_list_nx_add_last): Renamed from gl_list_add_last.
56086         (gl_list_nx_add_before): Renamed from gl_list_add_before.
56087         (gl_list_nx_add_after): Renamed from gl_list_add_after.
56088         (gl_list_nx_add_at): Renamed from gl_list_add_at.
56089         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
56090         * lib/gl_array_list.c: Don't include xalloc.h.
56091         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
56092         NULL upon out-of-memory.
56093         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
56094         out-of-memory.
56095         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
56096         Change return type to 'int'.
56097         (gl_array_nx_set_at): Renamed from gl_array_set_at.
56098         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
56099         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
56100         upon out-of-memory.
56101         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
56102         upon out-of-memory.
56103         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
56104         upon out-of-memory.
56105         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
56106         upon out-of-memory.
56107         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
56108         out-of-memory.
56109         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
56110         Update.
56111         (gl_array_list_implementation): Update.
56112         * lib/gl_carray_list.c: Don't include xalloc.h.
56113         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
56114         Return NULL upon out-of-memory.
56115         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
56116         out-of-memory.
56117         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
56118         Change return type to 'int'.
56119         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
56120         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
56121         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
56122         upon out-of-memory.
56123         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
56124         upon out-of-memory.
56125         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
56126         out-of-memory.
56127         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
56128         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
56129         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
56130         Update.
56131         (gl_carray_list_implementation): Update.
56132         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
56133         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
56134         gl_linked_create_empty. Return NULL upon out-of-memory.
56135         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
56136         out-of-memory.
56137         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
56138         Change return type to 'int'. Return -1 upon out-of-memory.
56139         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
56140         out-of-memory.
56141         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
56142         upon out-of-memory.
56143         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
56144         upon out-of-memory.
56145         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
56146         NULL upon out-of-memory.
56147         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
56148         upon out-of-memory.
56149         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
56150         out-of-memory.
56151         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
56152         Update.
56153         * lib/gl_linked_list.c: Don't include xalloc.h.
56154         (gl_linked_list_implementation): Update.
56155         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
56156         (add_to_bucket): Change return type to 'int'.
56157         (gl_linkedhash_list_implementation): Update.
56158         * lib/gl_anytree_list1.h (free_subtree): New function.
56159         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
56160         gl_tree_create_empty. Return NULL upon out-of-memory.
56161         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
56162         Change return type to 'int'. Return -1 upon out-of-memory.
56163         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
56164         out-of-memory.
56165         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
56166         (gl_tree_remove_node): New function, moved here from
56167         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
56168         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
56169         Update.
56170         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
56171         malloc, not xmalloc. Return NULL upon out-of-memory.
56172         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
56173         out-of-memory.
56174         (gl_tree_remove_node_from_tree): New function, extracted from
56175         gl_tree_remove_node.
56176         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
56177         upon out-of-memory.
56178         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
56179         out-of-memory.
56180         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
56181         upon out-of-memory.
56182         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
56183         upon out-of-memory.
56184         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
56185         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
56186         not xmalloc. Return NULL upon out-of-memory.
56187         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
56188         out-of-memory.
56189         (gl_tree_remove_node_from_tree): New function, extracted from
56190         gl_tree_remove_node.
56191         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
56192         upon out-of-memory.
56193         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
56194         out-of-memory.
56195         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
56196         upon out-of-memory.
56197         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
56198         upon out-of-memory.
56199         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
56200         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
56201         gl_anytree_list1.h before gl_anyavltree_list2.h.
56202         (gl_avltree_list_implementation): Update.
56203         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
56204         gl_anytree_list1.h before gl_anyavltree_list2.h.
56205         (gl_rbtree_list_implementation): Update.
56206         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
56207         Change return type to 'int'. Return -1 upon out-of-memory. Use
56208         __builtin_expect.
56209         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
56210         (gl_avltreehash_list_implementation): Update.
56211         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
56212         (gl_rbtreehash_list_implementation): Update.
56213         * modules/array-list (Depends-on): Remove xalloc.
56214         * modules/carray-list (Depends-on): Likewise.
56215         * modules/linked-list (Depends-on): Likewise.
56216         * modules/linkedhash-list (Depends-on): Likewise.
56217         * modules/avltree-list (Depends-on): Likewise.
56218         * modules/rbtree-list (Depends-on): Likewise.
56219         * modules/avltreehash-list (Depends-on): Likewise.
56220         * modules/rbtreehash-list (Depends-on): Likewise.
56222         * modules/xsublist: New file.
56223         * lib/gl_xsublist.h: New file.
56224         * lib/gl_xsublist.c: New file.
56225         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
56226         (gl_sublist_nx_create): New declaration.
56227         * lib/gl_sublist.c: Don't include xalloc.h.
56228         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
56229         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
56230         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
56231         Change return type to 'int'. Return -1 upon out-of-memory.
56232         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
56233         upon out-of-memory.
56234         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
56235         NULL upon out-of-memory.
56236         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
56237         upon out-of-memory.
56238         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
56239         NULL upon out-of-memory.
56240         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
56241         NULL upon out-of-memory.
56242         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
56243         upon out-of-memory.
56244         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
56245         (gl_sublist_list_implementation): Update.
56246         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
56247         upon out-of-memory.
56248         * modules/sublist (Depends-on): Remove xalloc.
56250         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
56251         * tests/test-carray_list.c: Likewise.
56252         * tests/test-linked_list.c: Likewise.
56253         * tests/test-linkedhash_list.c: Likewise.
56254         * tests/test-avltree_list.c: Likewise.
56255         * tests/test-rbtree_list.c: Likewise.
56256         * tests/test-avltreehash_list.c: Likewise.
56257         * tests/test-rbtreehash_list.c: Likewise.
56258         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
56259         * modules/carray-list-tests (Makefile.am): Likewise.
56260         * modules/linked-list-tests (Makefile.am): Likewise.
56261         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56262         * modules/avltree-list-tests (Makefile.am): Likewise.
56263         * modules/rbtree-list-tests (Makefile.am): Likewise.
56264         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56265         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56267         * NEWS: Mention the changes.
56269         * lib/clean-temp.c: Include gl_xlist.h.
56270         * modules/clean-temp (Depends-on): Add xlist.
56272         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
56273         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
56275         * tests/test-array_oset.c: Include gl_xlist.h.
56276         * modules/array-oset-tests (Depends-on): Add xlist.
56278         Reported by José E. Marchesi <jemarch@gnu.org>.
56280 2009-12-13  Bruno Haible  <bruno@clisp.org>
56282         Move the malloc checking from module 'oset' to new module 'xoset'.
56283         * modules/xoset: New file.
56284         * lib/gl_xoset.h: New file.
56285         * lib/gl_xoset.c: New file.
56286         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
56287         declarations.
56288         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
56289         (struct gl_oset_implementation): Rename and change methods accordingly.
56290         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
56291         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56292         'int'. Mark as __warn_unused_result__.
56293         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
56294         gl_oset_create_empty.
56295         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56296         'int'.
56297         * lib/gl_array_oset.c: Don't include xalloc.h.
56298         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
56299         malloc, not xmalloc.
56300         (grow): Change return type to 'int'. Don't call xalloc_die.
56301         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
56302         to 'int'.
56303         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
56304         'int'.
56305         (gl_array_oset_implementation): Update.
56306         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
56307         gl_tree_create_empty.
56308         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
56309         'int'.
56310         * lib/gl_avltree_oset.c: Don't include xalloc.h.
56311         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56312         xmalloc.
56313         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56314         not xmalloc.
56315         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56316         xmalloc.
56317         (gl_avltree_oset_implementation): Update.
56318         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
56319         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56320         xmalloc.
56321         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56322         not xmalloc.
56323         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56324         xmalloc.
56325         (gl_rbtree_oset_implementation): Update.
56326         * modules/array-oset (Depends-on): Remove xalloc.
56327         * modules/avltree-oset (Depends-on): Likewise.
56328         * modules/rbtree-oset (Depends-on): Likewise.
56329         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
56330         * tests/test-avltree_oset.c: Likewise.
56331         * tests/test-rbtree_oset.c: Likewise.
56332         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56333         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
56334         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56335         * NEWS: Mention the change.
56337 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
56339         maint.mk: allow a project to override release-prep commands
56340         * top/maint.mk (alpha, beta, stable): Move release-preparatory
56341         commands into a new rule.
56342         (release-prep): New rule.
56343         (release-prep-hook): New overridable variable.
56345 2009-12-13  Bruno Haible  <bruno@clisp.org>
56347         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
56349 2009-12-13  Jim Meyering  <meyering@redhat.com>
56351         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
56352         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
56354 2009-12-12  Bruno Haible  <bruno@clisp.org>
56356         duplocale: Tweak.
56357         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
56359 2009-12-12  Karl Berry  <karl@gnu.org>
56361         * config/srclist.txt (strtoll.c): tab changes, no more sync.
56363 2009-12-12  Bruno Haible  <bruno@clisp.org>
56365         * m4/po.m4: Undo incorrect untabification.
56367 2009-12-12  Bruno Haible  <bruno@clisp.org>
56369         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
56370         * modules/c-strtod (Depends-on): Add locale.
56371         * modules/c-strtold (Depends-on): Likewise.
56373 2009-12-12  Bruno Haible  <bruno@clisp.org>
56375         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
56377 2009-12-11  Eric Blake  <ebb9@byu.net>
56379         setenv: relax requirement in light of POSIX ruling
56380         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
56381         not NULL.
56382         * tests/test-setenv.c (main): Relax test.
56383         * tests/test-unsetenv.c (main): Likewise.
56384         * doc/posix-functions/setenv.texi (setenv): Document this.
56385         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56387 2009-12-11  Bruno Haible  <bruno@clisp.org>
56389         New module 'fd-safer-flag'.
56390         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
56391         * lib/dup-safer.c (dup_safer_flag): Remove function.
56392         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
56393         * lib/fd-safer.c (fd_safer_flag): Remove function.
56394         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
56395         * modules/cloexec (configure.ac): Drop indicator macro.
56396         * modules/fd-safer-flag: New file.
56397         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
56398         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
56399         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
56401 2009-12-11  Bruno Haible  <bruno@clisp.org>
56403         Tests for module 'nl_langinfo'.
56404         * modules/nl_langinfo-tests: New file.
56405         * tests/test-nl_langinfo.sh: New file.
56406         * tests/test-nl_langinfo.c: New file.
56408         New module 'nl_langinfo'.
56409         * lib/nl_langinfo.c: New file.
56410         * m4/nl_langinfo.m4: New file.
56411         * modules/nl_langinfo: New file.
56412         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
56414 2009-12-11  Bruno Haible  <bruno@clisp.org>
56416         Tests for module 'langinfo'.
56417         * modules/langinfo-tests: New file.
56418         * tests/test-langinfo.c: New file.
56420         New module 'langinfo'.
56421         * lib/langinfo.in.h: New file.
56422         * m4/langinfo_h.m4: New file.
56423         * modules/langinfo: New file.
56424         * doc/posix-headers/langinfo.texi: Mention the new module.
56426 2009-12-11  Bruno Haible  <bruno@clisp.org>
56428         * lib/config.charset: Untabify.
56430 2009-12-11  Bruno Haible  <bruno@clisp.org>
56432         * modules/unistd-safer (configure.ac): Drop indicator macro.
56434 2009-12-11  Bruno Haible  <bruno@clisp.org>
56436         Move pipe2-safer code to its own file.
56437         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
56438         * lib/pipe-safer.c (pipe2_safer): Remove function.
56439         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
56440         (Makefile.am): Add it to lib_SOURCES.
56442 2009-12-10  Bruno Haible  <bruno@clisp.org>
56444         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
56446 2009-12-10  Bruno Haible  <bruno@clisp.org>
56448         Declare which arguments expect non-NULL values, for GCC and clang.
56449         * build-aux/arg-nonnull.h: New file.
56450         * modules/arg-nonnull: New file.
56451         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
56452         (inet_ntop, inet_pton): Use it.
56453         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
56454         (closedir, dirfd, opendir, scandir, alphasort): Use it.
56455         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
56456         (open, openat): Use it.
56457         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
56458         (fnmatch): Use it.
56459         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
56460         (getopt, getopt_long, getopt_long_only): Use it.
56461         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
56462         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
56463         Use it.
56464         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
56465         (iconv_open): Use it.
56466         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
56467         (strtoimax, strtoumax): Use it.
56468         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
56469         (duplocale): Use it.
56470         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
56471         (frexp, frexpl): Use it.
56472         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
56473         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
56474         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
56475         (tsearch, tfind, tdelete, twalk): Use it.
56476         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
56477         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
56478         sigpending): Use it.
56479         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
56480         (posix_spawn, posix_spawnp, posix_spawnattr_init,
56481         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
56482         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
56483         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
56484         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
56485         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
56486         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
56487         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
56488         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
56489         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
56490         Use it.
56491         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
56492         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
56493         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
56494         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
56495         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
56496         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
56497         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
56498         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
56499         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
56500         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
56501         strtoull, unsetenv): Use it.
56502         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
56503         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
56504         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
56505         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
56506         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
56507         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
56508         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
56509         (strcasecmp, strncasecmp): Use it.
56510         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
56511         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
56512         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
56513         rpl_setsockopt): Use it.
56514         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
56515         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
56516         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
56517         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
56518         (gettimeofday): Use it.
56519         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
56520         (times): Use it.
56521         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
56522         (uname): Use it.
56523         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
56524         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
56525         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
56526         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
56527         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
56528         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
56529         unlinkat, write): Use it.
56530         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
56531         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
56532         * lib/argv-iter.h: Include arg-nonnull.h.
56533         (_ATTRIBUTE_NONNULL_): Remove macro.
56534         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
56535         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
56536         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
56537         optimization.
56538         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
56539         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
56540         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
56541         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
56542         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
56543         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
56544         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
56545         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
56546         * modules/arpa_inet (Depends-on): Add arg-nonnull.
56547         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
56548         * modules/dirent (Depends-on): Add arg-nonnull.
56549         (Makefile.am): Insert arg-nonnull.h into dirent.h.
56550         * modules/fcntl-h (Depends-on): Add arg-nonnull.
56551         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
56552         * modules/fnmatch (Depends-on): Add arg-nonnull.
56553         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
56554         * modules/getopt-posix (Depends-on): Add arg-nonnull.
56555         (Makefile.am): Insert arg-nonnull.h into getopt.h.
56556         * modules/glob (Depends-on): Add arg-nonnull.
56557         (Makefile.am): Insert arg-nonnull.h into glob.h.
56558         * modules/iconv_open (Depends-on): Add arg-nonnull.
56559         (Makefile.am): Insert arg-nonnull.h into iconv.h.
56560         * modules/inttypes (Depends-on): Add arg-nonnull.
56561         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
56562         * modules/locale (Depends-on): Add arg-nonnull.
56563         (Makefile.am): Insert arg-nonnull.h into locale.h.
56564         * modules/math (Depends-on): Add arg-nonnull.
56565         (Makefile.am): Insert arg-nonnull.h into math.h.
56566         * modules/netdb (Depends-on): Add arg-nonnull.
56567         (Makefile.am): Insert arg-nonnull.h into netdb.h.
56568         * modules/search (Depends-on): Add arg-nonnull.
56569         (Makefile.am): Insert arg-nonnull.h into search.h.
56570         * modules/signal (Depends-on): Add arg-nonnull.
56571         (Makefile.am): Insert arg-nonnull.h into signal.h.
56572         * modules/spawn (Depends-on): Add arg-nonnull.
56573         (Makefile.am): Insert arg-nonnull.h into spawn.h.
56574         * modules/stdio (Depends-on): Add arg-nonnull.
56575         (Makefile.am): Insert arg-nonnull.h into stdio.h.
56576         * modules/stdlib (Depends-on): Add arg-nonnull.
56577         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
56578         * modules/string (Depends-on): Add arg-nonnull.
56579         (Makefile.am): Insert arg-nonnull.h into string.h.
56580         * modules/strings (Depends-on): Add arg-nonnull.
56581         (Makefile.am): Insert arg-nonnull.h into strings.h.
56582         * modules/sys_socket (Depends-on): Add arg-nonnull.
56583         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
56584         * modules/sys_stat (Depends-on): Add arg-nonnull.
56585         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
56586         * modules/sys_time (Depends-on): Add arg-nonnull.
56587         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
56588         * modules/sys_times (Depends-on): Add arg-nonnull.
56589         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
56590         * modules/sys_utsname (Depends-on): Add arg-nonnull.
56591         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
56592         * modules/time (Depends-on): Add arg-nonnull.
56593         (Makefile.am): Insert arg-nonnull.h into time.h.
56594         * modules/unistd (Depends-on): Add arg-nonnull.
56595         (Makefile.am): Insert arg-nonnull.h into unistd.h.
56596         * modules/wchar (Depends-on): Add arg-nonnull.
56597         (Makefile.am): Insert arg-nonnull.h into wchar.h.
56598         * modules/argv-iter (Depends-on): Add arg-nonnull.
56599         * tests/test-canonicalize.c (null_ptr): New function.
56600         (main): Use it.
56601         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
56602         (main): Use it.
56603         * tests/test-memmem.c (null_ptr): New function.
56604         (main): Use it.
56605         Reported by Jim Meyering.
56607 2009-12-10  Bruno Haible  <bruno@clisp.org>
56609         Use spaces for indentation, not tabs.
56610         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
56611         * m4/*.m4: Untabify.
56612         * build-aux/*.h: Untabify.
56613         * tests/**/*.[hc]: Untabify.
56614         * README: New section "Indent with spaces, not TABs", based on
56615         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
56616         * NEWS: Mention the change.
56618 2009-12-10  Bruno Haible  <bruno@clisp.org>
56620         pty test: Fix link error.
56621         * modules/pty-tests (Makefile.am): Add the default LDADD value to
56622         test_pty_LDADD.
56624 2009-12-07  Simon Josefsson  <simon@josefsson.org>
56626         * modules/pty: New file.
56627         * modules/pty-tests: New file.
56628         * m4/pty.m4: New file.
56629         * tests/test-pty.c: New file.
56630         * doc/glibc-headers/pty.texi: Modified.
56631         * doc/glibc-functions/forkpty.texi: Modified.
56632         * doc/glibc-functions/openpty.texi: Modified.
56634 2009-12-10  Bruno Haible  <bruno@clisp.org>
56636         Avoid syntax error in C++ mode.
56637         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
56639 2009-12-10  Bruno Haible  <bruno@clisp.org>
56641         Use sed with option -e.
56642         * gnulib-tool (func_version, func_emit_copyright_notice,
56643         func_emit_initmacro_end, func_import, func_create_testdir): Pass
56644         option -e to sed.
56645         * modules/link-warning (Makefile.am): Likewise.
56647 2009-12-10  Jim Meyering  <meyering@redhat.com>
56649         mgetgroups: do not write bytes beyond end of malloc'd buffer
56650         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
56651         username, we call getgroups with a one-element-shorter buffer,
56652         but still told it the length was original, max_n_groups.
56654 2009-12-09  Eric Blake  <ebb9@byu.net>
56656         cloexec: relax license
56657         * modules/cloexec (Maintainer): Add myself.
56658         (License): Use LGPL, not GPL.
56660         link-warning: optimize generation
56661         * modules/link-warning (Makefile.am): Reduce process usage.
56663 2009-12-09  Bruno Haible  <bruno@clisp.org>
56665         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
56666         workaround was added on 2009-11-17.
56668 2009-12-09  Jim Meyering  <meyering@redhat.com>
56669             Bruno Haible  <bruno@clisp.org>
56671         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
56672         * modules/link-warning (Makefile.am): Make the comment-removing sed
56673         command more robust in the face of bootstrap-prepended comment lines.
56675 2009-12-09  Bruno Haible  <bruno@clisp.org>
56677         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
56678         most one group.
56680 2009-12-09  Simon Josefsson  <simon@josefsson.org>
56681             Bruno Haible  <bruno@clisp.org>
56683         * build-aux/link-warning.h: Add copyright notice.
56684         * modules/link-warning (Makefile.am): Generate link-warning.h from
56685         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
56686         * NEWS: Mention change in link-warning module.
56687         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
56688         * modules/dirent (Makefile.am): Add dependency to dirent.h.
56689         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
56690         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
56691         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
56692         * modules/math (Makefile.am): Add dependency to math.h.
56693         * modules/search (Makefile.am): Add dependency to search.h.
56694         * modules/signal (Makefile.am): Add dependency to signal.h.
56695         * modules/spawn (Makefile.am): Add dependency to spawn.h.
56696         * modules/stdio (Makefile.am): Add dependency to stdio.h.
56697         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
56698         * modules/string (Makefile.am): Add dependency to string.h.
56699         * modules/strings (Makefile.am): Add dependency to strings.h.
56700         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
56701         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
56702         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
56703         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
56704         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
56705         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
56706         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
56707         * modules/unistd (Makefile.am): Add dependency to unistd.h.
56708         * modules/wchar (Makefile.am): Add dependency to wchar.h.
56710 2009-12-09  Bruno Haible  <bruno@clisp.org>
56712         fchdir: Optimize away rpl_fstat when possible.
56713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
56714         REPLACE_OPEN_DIRECTORY.
56715         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
56717 2009-12-09  Bruno Haible  <bruno@clisp.org>
56719         * lib/fchdir.c: Update comment.
56721 2009-12-09  Bruno Haible  <bruno@clisp.org>
56723         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
56725 2009-12-08  Eric Blake  <ebb9@byu.net>
56727         fchdir: avoid memory leak on re-registration.
56728         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
56730 2009-12-08  Jim Meyering  <meyering@redhat.com>
56732         init.sh: avoid Solaris 10 /bin/sh portability problem
56733         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
56734         sourced script:
56735           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
56736           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
56737           bar
56738         tests/init.sh relied on that, accepting a --set-path=DIR argument,
56739         and two tests used that idiom.
56740         * tests/init.sh: Update suggested usage comments.
56741         (path_prepend_): New function, to be used in place
56742         of the --src-path=DIR option.
56743         (setup_): Move PATH-prepending code into path_prepend_.
56744         * tests/test-pread.sh: Adapt to new usage.
56745         * tests/test-xalloc-die.sh: Likewise.
56747 2009-12-08  Simon Josefsson  <simon@josefsson.org>
56749         * doc/gnulib.texi (Glibc pty.h): Add.
56750         * doc/glibc-functions/forkpty.texi: Add.
56751         * doc/glibc-functions/openpty.texi: Add.
56752         Suggested by Bruno Haible.
56754 2009-12-08  Eric Blake  <ebb9@byu.net>
56756         fchdir: fix logic bugs
56757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
56758         * tests/test-fchdir.c (main): Enhance test.
56759         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
56760         is in use.
56762         dup2: fix logic bugs
56763         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
56764         REPLACE_DUP2 to decide when rpl_dup2 is needed.
56765         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
56766         exists.
56767         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
56769 2009-12-07  Eric Blake  <ebb9@byu.net>
56771         unlink: fix m4 detection
56772         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
56774         unistd-safer: add unit test
56775         * modules/unistd-safer-tests: New file.
56776         * tests/test-dup-safer.c: Likewise.
56777         * tests/test-cloexec.c (setmode): Avoid compiler warning.
56778         * tests/test-dup2.c (setmode): Likewise.
56779         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
56781         cloexec: preserve text vs. binary across dup_cloexec
56782         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
56783         mode.
56784         * modules/dup2-tests (Depends-on): Add binary-io.
56785         * modules/cloexec-tests (Depends-on): Likewise.
56786         * tests/test-dup2.c (setmode, is_mode): New helpers.
56787         (main): Add tests that translation mode is preserved.
56788         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
56789         Reported by Bruno Haible.
56791         mgetgroups: reduce duplicate listings
56792         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
56793         resulting array.
56794         * tests/test-chown.h (test_chown): Simplify client.
56795         * tests/test-lchown.h (test_lchown): Likewise.
56797 2009-12-06  Bruno Haible  <bruno@clisp.org>
56799         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
56800         value.
56802 2009-12-06  Bruno Haible  <bruno@clisp.org>
56804         * lib/progname.c: Include stdio.h, stdlib.h.
56805         (set_program_name): Reject a NULL argument.
56807 2009-12-05  Eric Blake  <ebb9@byu.net>
56809         pipe2-safer: new module
56810         * modules/pipe2-safer: New file.
56811         * lib/unistd-safer.h (pipe2_safer): New prototype.
56812         * lib/unistd--.h (pipe2): New wrapper.
56813         * lib/pipe-safer.c (pipe2_safer): New function.
56814         * modules/pipe (Depends-on): Add pipe2-safer.
56815         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
56817         stdlib-safer: preserve cloexec flag for mkostemp[s]
56818         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
56819         fd_safer_flag.
56821         unistd-safer: allow preservation of cloexec status via flag
56822         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
56823         prototypes.
56824         * lib/dup-safer.c (dup_safer_flag): New function.
56825         * lib/fd-safer.c (fd_safer_flag): Likewise.
56826         * modules/cloexec (configure.ac): Set witness.
56828         test-dup2: enhance test
56829         * modules/dup2-tests (Depends-on): Add cloexec.
56830         * tests/test-dup2.c (main): Enhance test.
56832         cloexec: add dup_cloexec
56833         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
56834         header and comments.
56835         * lib/cloexec.c (set_cloexec_flag): Add comments.
56836         (dup_cloexec): New function, with mingw implementation borrowed
56837         from...
56838         * lib/w32spawn.h (dup_noinherit): ...here.
56839         * modules/execute (Depends-on): Add cloexec.
56840         * modules/pipe (Depends-on): Likewise.
56841         * modules/cloexec (Depends-on): Add dup2.
56842         * modules/cloexec-tests (Files): New file.
56843         * tests/test-cloexec.c: Likewise.
56845         test-xalloc-die: fix test for mingw
56846         * modules/xalloc-die-tests (Files): Add tests/init.sh.
56847         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
56848         directory and .exe suffix off argv[0] output.
56850         test-fseeko: fix test for mingw
56851         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
56852         than undefining fseek, so test will pass on mingw.
56854 2009-12-05  Bruno Haible  <bruno@clisp.org>
56856         * lib/progname.h (set_program_name): Clarify specification.
56857         * lib/progname.c (set_program_name): Likewise.
56858         Reported by Jim Meyering.
56860 2009-12-05  Jim Meyering  <meyering@redhat.com>
56862         maint.mk: backslash-escape parens in default regexp
56863         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
56864         backslash-escape the literal parentheses.
56866         maint.mk: news-date-check: use grep -E
56867         * top/maint.mk (today): Define a Make variable, not a...
56868         (news-date-check): ...shell variable.
56869         (news-date-regexp): Use the Make variable.
56870         Use grep's -E option.  Change the failing diagnostic to mention
56871         the variable, $(news-date-regexp).
56873 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
56875         maintainer-makefile: allow customization of NEWS entry format
56876         * top/maint.mk (news-date-regexp): New overridable variable.
56877         (news-date-check): Use it.
56879 2009-12-04  Eric Blake  <ebb9@byu.net>
56881         mgetgroups: add xgetgroups, and avoid ENOSYS failures
56882         * lib/mgetgroups.h (xgetgroups): New prototype.
56883         * lib/mgetgroups.c (xgetgroups): New wrapper.
56884         (mgetgroups): Handle ENOSYS.
56885         * modules/mgetgroups (Depends-on): Add realloc.
56886         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
56888         mgetgroups: avoid argument promotion issues with -1
56889         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
56890         for invalid gid_t.
56891         * tests/test-chown.h (getegid, test_chown): Likewise.
56892         * tests/test-lchown.h (getegid, test_lchown): Likewise.
56894 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
56896         exclude: Fix header file problems.
56897         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
56899 2009-12-01  Jim Meyering  <meyering@redhat.com>
56901         fts: fts_open: do not let an empty string cause immediate failure
56902         This is required in support of GNU rm, for which the command
56903         "rm A '' B" must process and remove both A and B, in spite of
56904         the empty string argument.
56905         * lib/fts.c (fts_open): Do not let the presence of an empty string
56906         cause fts_open to fail immediately.  Most fts-using tools must be
56907         able to process all arguments, in order, and can be expected to
56908         diagnose such arguments themselves.
56910 2009-11-30  Eric Blake  <ebb9@byu.net>
56912         utimens: fix compilation error
56913         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
56914         Declare variable at right scope.
56916 2009-11-29  Jim Meyering  <meyering@redhat.com>
56918         bootstrap: handle perl-5.11's changed --version output
56919         * build-aux/bootstrap (get_version): Handle perl separately,
56920         since perl-5.11's --version output is different.
56922 2009-11-28  Jim Meyering  <meyering@redhat.com>
56924         userspec: depend on the inttostr module, too
56925         * modules/userspec (Depends-on): Add inttostr.
56927         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
56928         * lib/userspec.c (parse_with_separator): Do not accept a user ID
56929         number of MAXUID when it evaluates to (uid_t) -1.
56930         Likewise for group ID.  Reported by Matt McCutchen in
56931         <http://savannah.gnu.org/bugs/?28113>
56933         userspec: reformat to use spaces, not TABs
56934         * lib/userspec.c: Expand TABs to spaces.
56935         Add Emacs' "indent-tabs-mode: nil" hint.
56937 2009-11-27  Eric Blake  <ebb9@byu.net>
56939         getopt-gnu: flush out another BSD bug
56940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
56941         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
56942         flush out BSD bug.
56943         * tests/test-getopt.h (test_getopt): End lists with NULL.
56944         * tests/test-getopt_long.h (test_getopt_long): Likewise.
56945         (test_getopt_long_posix): Enhance test.
56946         * modules/getopt-posix-tests (Depends-on): Add stdbool.
56947         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
56948         getopt-gnu.
56949         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56950         Likewise.
56952 2009-11-27  Simon Josefsson  <simon@josefsson.org>
56954         * modules/idpriv-droptemp-tests (Notice): Fix text.
56956 2009-11-27  Jim Meyering  <meyering@redhat.com>
56958         test-xalloc-die: avoid spurious failure due to libtool argv difference
56959         In a libtool-enabled project, this test would fail due to a difference
56960         in the emitted program name, e.g.,
56961         -test-xalloc-die: memory exhausted
56962         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
56963         Use program to avoid that.
56964         * modules/xalloc-die-tests (Depends-on): Add progname.
56965         * tests/test-xalloc-die.c: Include progname.h".
56966         (program_name): Remove decl.
56967         (main): Call set_program_name.
56968         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
56970 2009-11-26  Richard Jones  <rjones@redhat.com>
56972         w32sock: leave win32 error in place.
56973         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
56975 2009-11-26  Eric Blake  <ebb9@byu.net>
56977         init.sh: suggest to use skip_ and fail_ functions in comments
56978         * tests/init.sh: Add a sentence.
56980 2009-11-25  Bruno Haible  <bruno@clisp.org>
56982         init.sh: add documentation in comments
56983         * tests/init.sh: Add some developer and user documentation.
56985 2009-11-26  Jim Meyering  <meyering@redhat.com>
56987         init.sh: accommodate even those who specify bogus srcdir manually
56988         * tests/init.sh: Normally, srcdir is guaranteed by automake and
56989         configure-time tests to be sanitized, so that there is no need to
56990         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
56991         (with no double quotes) suffices.  However, since tests may be
56992         invoked manually, and since you may explicitly set srcdir to the
56993         name of a directory containing spaces, do quote its uses here.
56994         * tests/test-pread.sh: Likewise.
56995         Suggested by Bruno Haible.
56997         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
56998         * tests/test-pread.sh: Write no data into the pipe, because
56999         test-pread actually reads none.  This avoids a diagnostic,
57000         "bash: echo: write error: Broken pipe", that arises in the unusual
57001         event something is ignoring SIGPIPE, and might be interpreted
57002         as some sort of failure.  Reported by Bruno Haible.
57004 2009-11-25  Jim Meyering  <meyering@redhat.com>
57006         test-pread: cover failure with ESPIPE and EINVAL
57007         * tests/test-pread.c (main): Test for failure, too.
57008         * tests/test-pread.sh: Invoke with stdin on a pipe.
57009         Suggested by Eric Blake.
57011         pread: improvement and fix
57012         * modules/pread (Depends-on): Depend on lseek, for portability to
57013         e.g., mingw.  Suggested by Eric Blake.
57014         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
57016         unistd.in.h: correct declaration of pread
57017         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
57018         Reported by Richard W.M. Jones.
57020         test-pread.sh: distribute the test script
57021         * modules/pread-tests (Files): Include test-pread.sh.
57023         test-pread.sh: clean up
57024         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
57025         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
57026         That is unnecessary, since it's always ".".
57027         Suggestion from Eric Blake.
57029         test-pread.sh: make executable
57030         * tests/test-pread.sh: Set executable bit.
57031         Reported by Eric Blake.
57033         correct typo in test-pread.sh
57034         * tests/test-pread.sh: Add #! line.
57036         test pread
57037         * tests/test-pread.c: New file.
57038         * tests/test-pread.sh: Likewise.
57039         * modules/pread-tests: Likewise.
57041         pread: new module
57042         * modules/pread: New file.
57043         * lib/unistd.in.h (pread): Define/declare.
57044         * lib/pread.c (pread): New file.
57045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
57046         * modules/unistd (Makefile.am): Substitute witnesses.
57047         * doc/posix-functions/pread.texi (pread): Update.
57048         * MODULES.html.sh: Add pread.
57050 2009-11-25  Jim Meyering  <meyering@redhat.com>
57052         tests/init.sh: new file to be used via most *.sh tests
57053         * tests/init.sh: New file.
57055 2009-11-25  Eric Blake  <ebb9@byu.net>
57057         utimens: work around older Linux failure with symlinks
57058         * lib/utimens.c (lutimensat_works_really): New variable.
57059         (fdutimens, lutimens): Use it to manage kernels that support
57060         nanosecond times on files, but not on symlinks.
57061         Reported by Ondřej Vašík.
57063         utimes: fix configure grammar
57064         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
57066 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
57068         regex: Fix fastmap for multibyte character ranges.
57069         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
57070         characters when a multibyte character range is included.
57072 2009-11-22  Andy Wingo  <wingo@pobox.com>
57074         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
57075         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
57077 2009-11-24  Bruno Haible  <bruno@clisp.org>
57079         doc: Most *_l functions exist in MacOS X 10.5.
57080         * doc/posix-functions/duplocale.texi: Update platforms list.
57081         * doc/posix-functions/freelocale.texi: Likewise.
57082         * doc/posix-functions/newlocale.texi: Likewise.
57083         * doc/posix-functions/uselocale.texi: Likewise.
57084         * doc/posix-functions/isalnum_l.texi: Likewise.
57085         * doc/posix-functions/isalpha_l.texi: Likewise.
57086         * doc/posix-functions/isblank_l.texi: Likewise.
57087         * doc/posix-functions/iscntrl_l.texi: Likewise.
57088         * doc/posix-functions/isdigit_l.texi: Likewise.
57089         * doc/posix-functions/isgraph_l.texi: Likewise.
57090         * doc/posix-functions/islower_l.texi: Likewise.
57091         * doc/posix-functions/isprint_l.texi: Likewise.
57092         * doc/posix-functions/ispunct_l.texi: Likewise.
57093         * doc/posix-functions/isspace_l.texi: Likewise.
57094         * doc/posix-functions/isupper_l.texi: Likewise.
57095         * doc/posix-functions/iswalnum_l.texi: Likewise.
57096         * doc/posix-functions/iswalpha_l.texi: Likewise.
57097         * doc/posix-functions/iswblank_l.texi: Likewise.
57098         * doc/posix-functions/iswcntrl_l.texi: Likewise.
57099         * doc/posix-functions/iswctype_l.texi: Likewise.
57100         * doc/posix-functions/iswdigit_l.texi: Likewise.
57101         * doc/posix-functions/iswgraph_l.texi: Likewise.
57102         * doc/posix-functions/iswlower_l.texi: Likewise.
57103         * doc/posix-functions/iswprint_l.texi: Likewise.
57104         * doc/posix-functions/iswpunct_l.texi: Likewise.
57105         * doc/posix-functions/iswspace_l.texi: Likewise.
57106         * doc/posix-functions/iswupper_l.texi: Likewise.
57107         * doc/posix-functions/iswxdigit_l.texi: Likewise.
57108         * doc/posix-functions/isxdigit_l.texi: Likewise.
57109         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
57110         * doc/posix-functions/strcasecmp_l.texi: Likewise.
57111         * doc/posix-functions/strcoll_l.texi: Likewise.
57112         * doc/posix-functions/strfmon_l.texi: Likewise.
57113         * doc/posix-functions/strftime_l.texi: Likewise.
57114         * doc/posix-functions/strncasecmp_l.texi: Likewise.
57115         * doc/posix-functions/strxfrm_l.texi: Likewise.
57116         * doc/posix-functions/tolower_l.texi: Likewise.
57117         * doc/posix-functions/toupper_l.texi: Likewise.
57118         * doc/posix-functions/towctrans_l.texi: Likewise.
57119         * doc/posix-functions/towlower_l.texi: Likewise.
57120         * doc/posix-functions/towupper_l.texi: Likewise.
57121         * doc/posix-functions/wcscoll_l.texi: Likewise.
57122         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
57123         * doc/posix-functions/wctrans_l.texi: Likewise.
57124         * doc/posix-functions/wctype_l.texi: Likewise.
57125         * doc/glibc-functions/strptime_l.texi: Likewise.
57126         * doc/glibc-functions/strtod_l.texi: Likewise.
57127         * doc/glibc-functions/strtof_l.texi: Likewise.
57128         * doc/glibc-functions/strtol_l.texi: Likewise.
57129         * doc/glibc-functions/strtold_l.texi: Likewise.
57130         * doc/glibc-functions/strtoll_l.texi: Likewise.
57131         * doc/glibc-functions/strtoul_l.texi: Likewise.
57132         * doc/glibc-functions/strtoull_l.texi: Likewise.
57133         * doc/glibc-functions/wcsftime_l.texi: Likewise.
57134         * doc/glibc-functions/wcstod_l.texi: Likewise.
57135         * doc/glibc-functions/wcstof_l.texi: Likewise.
57136         * doc/glibc-functions/wcstol_l.texi: Likewise.
57137         * doc/glibc-functions/wcstold_l.texi: Likewise.
57138         * doc/glibc-functions/wcstoll_l.texi: Likewise.
57139         * doc/glibc-functions/wcstoul_l.texi: Likewise.
57140         * doc/glibc-functions/wcstoull_l.texi: Likewise.
57142 2009-11-24  Bruno Haible  <bruno@clisp.org>
57144         duplocale: Fix logic bug.
57145         * lib/duplocale.c: Don't include <langinfo.h>.
57146         (_NL_LOCALE_NAME): Remove macro.
57147         (rpl_duplocale): Use setlocale instead of nl_langinfo.
57148         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
57150 2009-11-23  Jim Meyering  <meyering@redhat.com>
57152         test-update-copyright: don't hard-code /usr/bin/perl
57153         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
57154         perl to print the current year.  Gilles Espinasse reported that
57155         the replaced use of perl was hard-coded as /usr/bin/perl.
57157 2009-11-23  Bruno Haible  <bruno@clisp.org>
57159         duplocale: Add support for glibc 2.3.x.
57160         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
57162 2009-11-22  Bruno Haible  <bruno@clisp.org>
57164         vasnprintf: Tiny optimization.
57165         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
57166         MacOS X.
57168 2009-11-22  Bruno Haible  <bruno@clisp.org>
57170         Tests for module 'duplocale'.
57171         * modules/duplocale-tests: New file.
57172         * tests/test-duplocale.c: New file.
57174         New module 'duplocale'.
57175         * m4/duplocale.m4: New file.
57176         * lib/locale.in.h (duplocale): New declaration.
57177         * lib/duplocale.c: New file.
57178         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
57179         gl_LOCALE_H_DEFAULTS): New macros.
57180         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
57181         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
57182         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
57183         REPLACE_DUPLOCALE.
57184         * modules/duplocale: New file.
57185         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
57187 2009-11-22  Bruno Haible  <bruno@clisp.org>
57189         * modules/locale-tests (configure.ac): Test for newlocale function.
57190         * tests/test-locale.c: When the system has extended locale functions,
57191         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
57193         locale: Make locale_t available when possible.
57194         * lib/locale.in.h: Include <xlocale.h> when it exists.
57195         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
57196         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
57197         * modules/locale (Depends-on): Add extensions.
57198         (Makefile.am): Also substitute HAVE_XLOCALE_H.
57199         * doc/posix-headers/locale.texi: Document the problem with locale_t.
57201 2009-11-22  Bruno Haible  <bruno@clisp.org>
57203         Add comments.
57204         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
57205         invocation.
57206         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
57207         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57208         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57210 2009-11-22  Bruno Haible  <bruno@clisp.org>
57212         error: account for the possibility of freopen (stdout).
57213         * lib/error.c: Include <unistd.h>.
57214         (flush_stdout): New function, extracted from error and error_at_line.
57215         Determine stdout's fd dynamically.
57216         (error, error_at_line): Invoke flush_stdout.
57217         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
57218         * modules/error (Depends-on): Add unistd.
57220 2009-11-22  Bruno Haible  <bruno@clisp.org>
57222         diffseq: Add comment.
57223         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
57225 2009-11-22  Jim Meyering  <meyering@redhat.com>
57227         c-stack: avoid defining an unused static function
57228         * lib/c-stack.c (find_stack_direction): Do not define this function
57229         when it will not be used.
57231         diffseq: avoid spurious gcc warnings
57232         * lib/diffseq.h (IF_LINT2): Define.
57233         (compareseq): Use it to initialize two members of "part".
57234         This avoids two used-uninitialized warnings.
57236 2009-11-21  Jim Meyering  <meyering@redhat.com>
57238         c-stack: avoid "ignoring return value of `write'" warning
57239         * lib/c-stack.c: Include "ignore-value.h".
57240         (die): Explicitly ignore each write return value.
57241         * modules/c-stack (Depends-on): Add ignore-value.
57243 2009-11-21  Bruno Haible  <bruno@clisp.org>
57245         diffseq: reduce scope of variable 'best'.
57246         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
57247         variable, earlier used for two different purposes.
57249 2009-11-21  Jim Meyering  <meyering@redhat.com>
57251         diffseq: remove useless assignment to "best"
57252         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
57253         assignment.  At that point "best" is already guaranteed to be zero.
57255 2009-11-20  Eric Blake  <ebb9@byu.net>
57257         build: mention ftp redirector in release announcements
57258         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
57259         values that used to come from cfg.mk; mention FTP redirect URL.
57260         * build-aux/announce-gen: Mention the mirror list.
57261         Suggested by Karl Berry.
57263         nanosleep: improve port to mingw
57264         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
57265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
57266         LIB_NANOSLEEP, but only when needed.
57267         * modules/select (Link): Document LIBSOCKET.
57268         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
57269         enough.
57271         nanosleep: work around cygwin bug
57272         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
57273         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
57274         bug.
57275         (getnow): Delete, not needed.
57276         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
57277         LIB_CLOCK_GETTIME.
57278         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
57279         clock-time, gettime.
57280         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
57281         bug.
57282         * modules/nanosleep-tests: New test.
57283         * tests/test-nanosleep.c: New file.
57285         sleep: work around cygwin bug
57286         * lib/sleep.c (rpl_sleep): Work around the bug.
57287         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
57288         (gl_PREREQ_SLEEP): Delete unused macro.
57289         * modules/sleep (Depends-on): Add verify.
57290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57291         * modules/unistd (Makefile.am): Substitute witness.
57292         * lib/unistd.in.h (sleep): Update prototype.
57293         * doc/posix-functions/sleep.texi (sleep): Document the bug.
57294         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
57295         * modules/sleep-tests (Depends-on): Check for alarm.
57297 2009-11-20  Jim Meyering  <meyering@redhat.com>
57299         maint.mk: improve sc_prohibit_magic_number_exit
57300         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
57301         so it does not match uses like System.exit(1).
57302         Add comments showing how to correct all offenders.
57304 2009-11-19  Eric Blake  <ebb9@byu.net>
57306         xalloc-die-tests: add missing library
57307         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
57309         test-xvasprintf: silence compiler warnings
57310         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
57311         empty string from gcc.
57313 2009-11-19  Jim Meyering  <meyering@redhat.com>
57315         xfreopen: new module, from coreutils
57316         * modules/xfreopen: New module.
57317         * lib/xfreopen.c: New file.
57318         * lib/xfreopen.h: New file.
57319         * MODULES.html.sh (File stream based Input/Output"): Add it.
57321 2009-11-19  Eric Blake  <ebb9@byu.net>
57323         manywarnings: depend on warnings
57324         * modules/manywarnings (Depends-on): Add warnings.
57326         build: avoid compiler warnings
57327         * lib/select.c (rpl_select): Delete unused variable.
57328         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
57330 2009-11-18  Eric Blake  <ebb9@byu.net>
57332         tests: avoid false negative with --with-packager
57333         * tests/test-version-etc.sh: Discard packager information.
57334         * tests/test-argp-version-etc-1.sh: Likewise.
57335         Reported by Mike Frysinger.
57337         utimens: fix regression on Solaris
57338         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
57339         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
57340         can only change fd timestamps via futimesat.  Instead, use an
57341         additional witness macro to avoid BSD bug.
57342         Reported by Jim Meyering.
57344 2009-11-17  Eric Blake  <ebb9@byu.net>
57346         usleep: use it to simplify tests
57347         * modules/stat-time-tests (Depends-on): Add usleep.
57348         (configure.ac): Drop usleep check.
57349         * modules/chown-tests (Depends-on, configure.ac): Likewise.
57350         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
57351         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
57352         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
57353         * modules/openat-tests (Depends-on, configure.ac): Likewise.
57354         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
57355         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
57356         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
57357         Likewise.
57358         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
57359         * tests/test-lchown.h (nap): Likewise.
57360         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
57361         * tests/test-stat-time.c (nap): Likewise.
57362         * tests/test-utimens-common.h (nap): Update comments.
57364         usleep: new module
57365         * modules/usleep: New file.
57366         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
57367         * lib/usleep.c (usleep): Likewise.
57368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
57369         * modules/unistd (Makefile.am): Substitute witnesses.
57370         * lib/unistd.in.h (usleep): Add declaration.
57371         * doc/pastposix-functions/usleep.texi (usleep): Document this.
57372         * MODULES.html.sh (Date and time): Likewise.
57373         * modules/usleep-tests (Depends-on): New test.
57374         * tests/test-usleep.c: New file.
57376         chown: work around OpenBSD bug
57377         * lib/chown.c (rpl_chown): Work around the bug.
57378         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
57379         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
57380         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
57381         * modules/chown (Depends-on): Add stdbool.
57382         * modules/lchown (Depends-on): Likewise.
57383         * doc/posix-functions/chown.texi (chown): Document the bug.
57384         * doc/posix-functions/lchown.texi (lchown): Likewise.
57385         * tests/test-lchown.h (test_chown): Relax test.
57387         mkstemp: avoid conflict with C++ keyword template
57388         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
57389         * lib/mkostemp.c (mkostemp): Likewise.
57390         * lib/mkostemps.c (mkostemps): Likewise.
57391         * lib/mkstemp.c (mkstemp): Likewise.
57392         * lib/mkstemps.c (mkstemps): Likewise.
57394         xalloc-die-tests: optimize
57395         * tests/test-xalloc-die.sh: Reduce number of processes.
57397 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57399         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
57400         patch from ludo@gnu.org (Ludovic Courtès).
57402 2009-11-17  Jim Meyering  <meyering@redhat.com>
57404         version-etc: use proper license string
57405         * modules/version-etc (License): Use LGPL, not LGPLv3+.
57406         * modules/version-etc-fsf: Likewise.
57408 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57410         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
57411         printed to stdout.  Deal with EOL differences.
57413 2009-11-17  Eric Blake  <ebb9@byu.net>
57415         unsetenv: work around Solaris bug
57416         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
57417         * lib/unsetenv.c (rpl_unsetenv): Work around it.
57418         Reported by Jim Meyering.
57420         vasnprintf: avoid compiler warnings
57421         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
57422         variables.
57423         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
57425 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57427         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
57428         settings since xalloc-die is no longer the self test,
57429         xalloc-die.sh is.
57431 2009-11-17  Jim Meyering  <meyering@redhat.com>
57433         test-xalloc-die.sh: make the code agree with the commit log
57434         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
57435         at the end, just in case you happen to have a test-xalloc-die
57436         program in some other PATH directory.
57438         test-xalloc-die.sh: fix a portability bug
57439         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
57440         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
57441         Otherwise, argv[0] (as often seen in diagnostics) would be too
57442         system-dependent, sometimes with, and sometimes without the leading "./".
57444         version-etc-fsf: relax license to LGPLv3+
57445         * modules/version-etc-fsf (License): Relax license.
57447 2009-11-16  Eric Blake  <ebb9@byu.net>
57449         xalloc-die-tests: avoid printing null pointer
57450         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
57451         shell script.
57452         * tests/test-xalloc-die.c (program_name): Declare.
57453         * tests/test-xalloc-die.sh (tmpfiles): New file.
57455         setenv, unsetenv: work around various bugs
57456         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
57457         (setenv) [HAVE_SETENV]: Work around bugs.
57458         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
57459         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
57460         for bugs.
57461         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
57462         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
57463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
57464         * modules/stdlib (Makefile.am): Update substitutions.
57465         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
57466         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
57467         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57468         * modules/setenv-tests: New test.
57469         * modules/unsetenv-tests: Likewise.
57470         * tests/test-setenv.c: New file.
57471         * tests/test-unsetenv.c: Likewise.
57473 2009-11-16  Jim Meyering  <meyering@redhat.com>
57475         version-etc: relax license to LGPLv3+
57476         * modules/version-etc (License): Relax license.
57478         better AC_REQUIRE expanded-before-required-warning avoidance
57479         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
57480         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
57481         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
57482         which is no longer needed.
57484 2009-11-16  Eric Blake  <ebb9@byu.net>
57486         test-freading: clean up temporary file
57487         * tests/test-freading.c (main): Remove file on success, and use
57488         ASSERT more liberally.
57489         Reported by Jim Meyering.
57491 2009-11-16  Jim Meyering  <meyering@redhat.com>
57493         avoid new AC_REQUIRE expanded-before-required warnings
57494         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
57495         merely using it.
57496         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
57497         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
57499 2009-11-15  Simon Josefsson  <simon@josefsson.org>
57501         * tests/test-xalloc-die.c: New file.
57502         * modules/xalloc-die-tests: New file.
57503         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
57504         XFAIL_TESTS so it can be appended by modules.
57506 2009-11-15  Simon Josefsson  <simon@josefsson.org>
57508         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
57509         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
57511 2009-11-14  Eric Blake  <ebb9@byu.net>
57513         fnmatch: avoid compiler warning
57514         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
57515         to silence compiler warning about mismatch signedness in ?:.
57516         Reported by Robert Millan.
57518         intprops: add double-inclusion guard
57519         * lib/intprops.h: Allow idempotent includes.
57520         Suggested by Bruce Korb.
57522         openat: detect Solaris fchownat bug
57523         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
57524         penalizing glibc chownat when only lchownat is broken.
57525         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
57526         trailing slash bugs.
57527         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
57528         * modules/openat-tests (Files): Include more files.
57529         (Depends-on): Add mgetgroups, sleep, stat-time.
57530         (configure.ac): Add additional checks.
57531         (Makefile.am): Build new test.
57532         * tests/test-fchownat.c: New file.
57534         lchown: detect Solaris and FreeBSD bug
57535         * lib/lchown.c (rpl_lchown): Work around bug.
57536         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
57537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57538         * modules/unistd (Makefile.am): Populate it.
57539         * lib/unistd.in.h (lchown): Update declaration.
57540         * doc/posix-functions/lchown.texi (lchown): Document the bug.
57541         * modules/lchown-tests: New file.
57542         * tests/test-lchown.h (test_lchown): Likewise.
57543         * tests/test-lchown.c (main): Likewise.
57545         chown: detect Solaris and FreeBSD bug
57546         * lib/chown.c (rpl_chown): Work around bug.
57547         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
57548         (gl_PREREQ_CHOWN): Delete.
57549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57550         * modules/unistd (Makefile.am): Populate it.
57551         * lib/unistd.in.h (chown): Update declaration.
57552         * lib/lchown.c (chown): Update client.
57553         * modules/lchown (Depends-on): Add lstat.
57554         * doc/posix-functions/chown.texi (chown): Document the bug.
57555         * doc/posix-functions/getgroups.texi (getgroups): Document
57556         getgroups pitfall.
57557         * modules/chown-tests: New file.
57558         * tests/test-chown.h (test_chown): Likewise.
57559         * tests/test-chown.c (main): Likewise.
57561 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
57563         gnulib-tool: correctly detect absence of m4 directories
57564         * gnulib-tool: Avoid extra newline on data passed to wc -l.
57566 2009-11-14  Jim Meyering  <meyering@redhat.com>
57568         maint.mk: Prohibit inclusion of "xalloc.h" without use.
57569         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
57571 2009-11-14  John W. Eaton  <jwe@gnu.org>
57573         strftime.h: wrap function declaration in extern "C" block
57574         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
57576 2009-11-13  Eric Blake  <ebb9@byu.net>
57578         getgroups: avoid compiler warning
57579         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
57581         getgroups: work around FreeBSD bug
57582         * lib/getgroups.c (rpl_getgroups): Work around the bug.
57583         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
57584         * doc/posix-functions/getgroups.texi (getgroups): Document it.
57585         * tests/test-getgroups.c (main): Fix buffer overrun.
57587         getgroups: avoid compilation failure
57588         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
57589         * modules/getgroups (Depends-on): Add stdint.
57591 2009-11-13  Jim Meyering  <meyering@redhat.com>
57593         test-getgroups: avoid compilation failure
57594         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
57596 2009-11-13  Eric Blake  <ebb9@byu.net>
57598         mgetgroups: new module, taken from coreutils
57599         * modules/mgetgroups: New file.
57600         * lib/mgetgroups.h: Likewise.
57601         * lib/mgetgroups.c (mgetgroups): Likewise.
57602         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
57603         * MODULES.html.sh (Users and groups): Mention it.
57605         getgroups: don't expose GETGROUPS_T to user
57606         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
57607         an element at a time if GETGROUPS_T is wrong size.
57608         * lib/getugroups.h (getugroups): Change signature.
57609         * lib/unistd.in.h (getgroups): Likewise.
57610         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
57611         signature needs fixing.
57612         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
57613         AC_TYPE_GETGROUPS.
57614         * modules/group-member (Depends-on): Add getgroups.
57615         * lib/group-member.c (group_info, get_group_info): Use gid_t.
57616         (group_member): Rely on getgroups replacement.
57617         * lib/getugroups.c (getugroups): Use gid_t.
57618         * tests/test-getgroups.c (main): Likewise.
57619         * NEWS: Mention the signature change.
57620         * doc/posix-functions/getgroups.texi (getgroups): Mention the
57621         problem with signature.
57622         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
57623         GETGROUPS_T is still useful for setgroups.
57625         getgroups, getugroups: provide stubs for mingw
57626         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
57627         * lib/getugroups.c (getugroups): Likewise.
57628         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
57629         function.  Modernize replacement scheme.
57630         (gl_PREREQ_GETGROUPS): Delete.
57631         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
57632         * modules/getgroups (configure.ac): Declare witness.
57633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57634         * modules/unistd (Depends-on): Substitute witness.
57635         * lib/unistd.in.h (getgroups): Declare replacement.
57637         getgroups: avoid calling exit
57638         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
57639         drop xalloc.
57640         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
57641         dependencies.
57642         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
57643         exiting, in the rare case of malloc failure.
57645         getgroups: fix logic error
57646         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
57647         has more than 20 groups.
57648         * modules/getgroups-tests: New test.
57649         * tests/test-getgroups.c: New file.
57651 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57653         * tests/test-base64.c: Improve.
57655 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57657         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
57658         Blake <ebb9@byu.net>.
57660 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57662         * tests/test-xvasprintf.c: Add %s%s related checks.
57664 2009-11-12  Eric Blake  <ebb9@byu.net>
57666         version-etc: match standards.texi style
57667         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
57668         and use <> only for URLs.
57670 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
57672         fts: do not fail on a submount during traversal
57673         * lib/fts.c (fts_build): Read the stat info again after opening
57674         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
57675         Original report at http://bugzilla.redhat.com/501848.
57677 2009-11-12  Jim Meyering  <meyering@redhat.com>
57679         bootstrap: sync from coreutils
57680         * build-aux/bootstrap (bootstrap_epilogue): New function.
57681         Use git_modules_config in one more place.  This make bootstrap's
57682         --gnulib-srcdir option more useful for testing.
57684         bootstrap: generalize autoheader check
57685         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
57686         AC_CONFIG_HEADERS.
57688 2009-11-11  Eric Blake  <ebb9@byu.net>
57690         mkfifoat: use new modules for Solaris and BSD bugs
57691         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
57692         * lib/mkfifoat.c (mknodat): Split...
57693         * lib/mknodat.c (mknodat): ...into new file.
57694         * modules/mkfifoat (Files): Ship new file.
57695         (Depends-on): Add mkfifo, mknod.
57696         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
57697         (Depends-on): Add symlink.
57698         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
57699         redundant with test_mkfifo.h.
57700         (do_mkfifoat, do_mknodat): New helpers.
57702         mknod: new module
57703         * modules/mknod: New file.
57704         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
57705         * lib/mknod.c (mknod): Likewise.
57706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
57707         defaults.
57708         * modules/sys_stat (Makefile.am): Substitute them.
57709         * lib/sys_stat.in.h (mknod): Declare replacement.
57710         * MODULES.html.sh (Support for systems lacking POSIX:2008):
57711         Document it.
57712         * doc/posix-functions/mknod.texi (mknod): Likewise.
57713         * modules/mknod-tests: New test.
57714         * tests/test-mknod.c: Likewise.
57716         mkfifo: new module
57717         * modules/mkfifo: New file.
57718         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
57719         * lib/mkfifo.c (mkfifo): Likewise.
57720         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
57721         defaults.
57722         * modules/sys_stat (Makefile.am): Substitute them.
57723         * lib/sys_stat.in.h (mkfifo): Declare replacement.
57724         * MODULES.html.sh (Support for systems lacking POSIX:2008):
57725         Document it.
57726         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
57727         * modules/mkfifo-tests: New test.
57728         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
57729         from test-mkfifoat.c.
57730         * tests/test-mkfifo.c: New file.
57732         readlink: detect FreeBSD bug
57733         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
57734         slash on symlink.
57735         * doc/posix-functions/readlink.texi (readlink): Document the bug.
57736         * tests/test-readlink.h (test_readlink): Enhance test.
57738         symlink: detect FreeBSD bug
57739         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
57740         slash on symlink.
57741         * doc/posix-functions/symlink.texi (symlink): Document the bug.
57742         * tests/test-symlink.h (test_symlink): Enhance test.
57744 2009-11-10  Eric Blake  <ebb9@byu.net>
57746         link: detect FreeBSD bug
57747         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
57748         symlink.
57749         * doc/posix-functions/link.texi (link): Document the bug.
57750         * tests/test-link.h (test_link): Enhance test.
57751         * tests/test-linkat.c (main): Update caller.
57753         unlink, remove: detect FreeBSD bug
57754         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
57755         slash on symlink.
57756         * doc/posix-functions/unlink.texi (unlink): Document the bug.
57757         * doc/posix-functions/remove.texi (remove): Likewise.
57758         * tests/test-unlink.h (test_unlink): Enhance test.
57759         * tests/test-remove.c (main): Likewise.
57761 2009-11-09  Eric Blake  <ebb9@byu.net>
57763         rename: detect FreeBSD bug
57764         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
57765         slash on symlink.
57766         * modules/renameat-tests (Depends-on): Add filenamecat.
57767         * tests/test-rename.h (test_rename): Allow one more errno.
57768         * tests/test-renameat.c (main): Likewise.
57769         * doc/posix-functions/rename.texi (rename): Document the bug.
57771         open: detect FreeBSD bug
57772         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
57773         symlink.
57774         * doc/posix-functions/open.texi (open): Document the bug.
57775         * doc/posix-functions/utimes.texi (utimes): Likewise.
57776         * tests/test-open.h (test_open): Add parameters, and test symlink
57777         handling.
57778         * tests/test-open.c (main): Adjust caller.
57779         * tests/test-fcntl-safer.c (main): Likewise.
57780         * modules/open-tests (Depends-on): Add stdbool, symlink.
57781         * modules/fcntl-safer-tests (Depends-on): Likewise.
57782         * tests/test-openat.c (main): Add test-open tests.
57784         stat: detect FreeBSD bug
57785         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
57786         symlink.
57787         * doc/posix-functions/stat.texi (stat): Document the bug.
57788         * tests/test-stat.h (test_stat_func): Add argument.
57789         * tests/test-stat.c (main): Adjust caller.
57790         * tests/test-fstatat.c (main): Likewise.
57791         * modules/stat-tests (Depends-on): Add stdbool, symlink.
57792         Reported by Jim Meyering.
57794 2009-11-09  James Youngman  <jay@gnu.org>
57796         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
57797         * lib/strftime.c: Correct placement of #include "ignore-value.h".
57799 2009-11-08  Jim Meyering  <meyering@redhat.com>
57801         utimens: remove invalid futimesat call
57802         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
57803         It used the file descriptor of the target file as the DIR_FD
57804         parameter and NULL as the file name.  That caused failure with
57805         errno == EFAULT on FreeBSD-8.0-rc2
57807 2009-11-07  Eric Blake  <ebb9@byu.net>
57809         fflush, freadseek: use fseeko, not fseek
57810         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
57811         (clear_ungetc_buffer): Avoid potential problems on large files.
57812         * lib/freadseek.c (freadseek): Likewise.
57813         * modules/freadseek (Depends-on): Add fseeko.
57814         * modules/fseek (configure.ac): Set a witness.
57815         * tests/test-fflush.c (main): Use fseeko.
57816         * tests/test-fpurge.c (fseek): Disable link warning.
57817         * tests/test-freadable.c (fseek): Likewise.
57818         * tests/test-freading.c (fseek): Likewise.
57819         * tests/test-fseeko.c (fseek): Likewise.
57820         * tests/test-ftell.c (fseek): Likewise.
57821         * tests/test-ftello.c (fseek): Likewise.
57822         * tests/test-fwritable.c (fseek): Likewise.
57823         * tests/test-fwriting.c (fseek): Likewise.
57825 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57827         * modules/memchr (Depends-on): Drop getpagesize dependency.
57829 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57831         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
57832         Reported by Ludovic Courtès.
57833         * build-aux/pmccabe2html: Improve example usage.
57834         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
57836 2009-11-06  Jim Meyering  <meyering@redhat.com>
57838         do-release-commit-and-tag: New module.
57839         Automate the release-commit and tag process.
57840         * build-aux/do-release-commit-and-tag: New script, from coreutils.
57841         * modules/do-release-commit-and-tag: New file.
57842         * MODULES.html.sh (Support for maintaining and releasing): Add it.
57844 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57846         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
57847         because test-select.c uses inet_pton.
57849 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57851         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
57852         GETADDRINFO_LIB.  Bump serial number.
57853         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
57854         Suggested by Eric Blake <ebb9@byu.net>.
57856 2009-11-05  Eric Blake  <ebb9@byu.net>
57858         strtod: detect darwin bug
57859         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
57860         Reported by Leo Davis.
57862         freopen-safer: new module
57863         * modules/freopen-safer: New module.
57864         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
57865         * lib/freopen-safer.c (freopen_safer): New file.
57866         * lib/stdio-safer.h (freopen_safer): New declaration.
57867         * lib/stdio--.h (freopen): New override.
57868         * MODULES.html.sh (File stream based Input/Output): Mention it.
57869         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
57870         freopen-safer module.
57871         * doc/posix-functions/stderr.texi (stderr): Likewise.
57872         * doc/posix-functions/stdin.texi (stdin): Likewise.
57873         * doc/posix-functions/stdout.texi (stdout): Likewise.
57874         * modules/freopen-safer-tests: New test.
57875         * tests/test-reopen-safer.c: New file.
57877 2009-11-05  Jim Meyering  <meyering@redhat.com>
57879         maint.mk: Prohibit inclusion of "close-stream.h" without use.
57880         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
57882 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57884         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
57886 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57888         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
57890 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57892         Fix link error.
57893         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
57894         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57896 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57898         * tests/test-func.c: Also test value of __func__.
57900 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57902         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
57903         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
57905 2009-11-05  Bruno Haible  <bruno@clisp.org>
57907         Fix link error.
57908         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
57909         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57910         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
57912 2009-11-05  Bruno Haible  <bruno@clisp.org>
57914         Tests for module 'inet_pton'.
57915         * modules/inet_pton-tests: New file.
57916         * tests/test-inet_pton.c: New file.
57918 2009-11-05  Bruno Haible  <bruno@clisp.org>
57920         Tests for module 'inet_ntop'.
57921         * modules/inet_ntop-tests: New file.
57922         * tests/test-inet_ntop.c: New file.
57924 2009-11-04  Eric Blake  <ebb9@byu.net>
57926         stdlib-safer: wrap all mkstemp variants
57927         * modules/mkostemp (configure.ac): Set witness.
57928         * modules/mkostemps (configure.ac): Likewise.
57929         * modules/mkstemps (configure.ac): Likewise.
57930         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
57931         (mkstemps_safer): Wrap more functions.
57932         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
57933         wrapping.
57934         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
57935         (mkstemps_safer): Implement the wrappers.
57937         mkstemps, mkostemps: new modules
57938         * modules/mkostemps: New module.
57939         * modules/mkstemps: Likewise.
57940         * lib/mkostemps.c (mkostemps): New file.
57941         * lib/mkstemps.c (mkstemps): Likewise.
57942         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
57943         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
57944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
57945         * modules/stdlib (Makefile.am): Substitute them.
57946         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
57947         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
57948         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
57949         * doc/gnulib.texi (Glibc stdlib.h): Include them.
57950         * MODULES.html.sh (File system functions): Mention them.
57952         tempname: resync from glibc
57953         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
57954         same values for __GT_FILE as glibc.  Abort even when assertions
57955         are disabled.
57956         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
57957         match its value otherwise.  Allow idempotent inclusion.
57958         * lib/mkdtemp.c (mkdtemp): Adjust caller.
57959         * lib/mkostemp.c (mkostemp): Likewise.
57960         * lib/mkstemp.c (mkstemp): Likewise.
57961         * lib/tmpfile.c (tmpfile): Likewise.
57962         * NEWS: Document this.
57964         utimens: fix use of futimens on older Linux
57965         * lib/utimens.c (fdutimens): Use updated, rather than original,
57966         timespec to avoid bug in older Linux kernel.
57967         Reported by Simon Josefsson.
57969 2009-11-04  Bruno Haible  <bruno@clisp.org>
57971         Make num_processors more flexible and consistent.
57972         * lib/nproc.h (enum nproc_query): New type.
57973         (num_processors): Add a 'query' argument.
57974         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
57975         (num_processors): Add a 'query' argument. Test the value of the
57976         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
57977         mingw, count the number of CPUs available for the current process.
57978         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
57979         Check for sched_getaffinity and sched_getaffinity_np.
57980         * modules/nproc (Depends-on): Add c-ctype, extensions.
57981         * NEWS: Mention the change.
57983 2009-11-03  Bruno Haible  <bruno@clisp.org>
57985         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
57987 2009-11-03  Jim Meyering  <meyering@redhat.com>
57989         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
57990         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
57991         if it is defined.
57993 2009-11-02  Eric Blake  <ebb9@byu.net>
57995         mktime, timegm: share common declaration
57996         * lib/mktime-internal.h: New file.
57997         * lib/mktime.c: Use it rather than open-coding a declaration.
57998         * lib/timegm.c: Likewise.
57999         * modules/mktime (Files): Ship it.
58000         * modules/timegm (Files): Likewise.
58001         Suggested by Bruno Haible.
58003         test-update-copyright: update test to match script changes
58004         * tests/test-update-copyright.sh: Avoid hard-coding perl
58005         location.  Don't update *.bak created by earlier runs.
58007 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
58008             Simon Josefsson  <simon@josefsson.org>
58009             Bruno Haible  <bruno@clisp.org>
58011         Fix link error on Solaris 8.
58012         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
58013         also in libnsl. Define also INET_PTON_LIB.
58014         * modules/inet_pton (Link): New section.
58016 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58017             Bruno Haible  <bruno@clisp.org>
58019         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
58020         * modules/inet_ntop (Link): New section.
58021         Reported by Boyan Kasarov <bkasarov@gmail.com>.
58023 2009-11-02  Eric Blake  <ebb9@byu.net>
58025         maint: avoid compiler warnings in m4 macros
58026         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
58027         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
58029 2009-11-02  Simon Josefsson  <simon@josefsson.org>
58031         * m4/pmccabe2html.m4: Remove file.
58032         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
58033         function.  Change maintainer.
58034         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
58035         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
58036         Courtès).
58038 2009-10-31  Eric Blake  <ebb9@byu.net>
58040         fseeko: fix m4 regression
58041         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
58042         regression from 2009-10-27.
58043         Reported by Ralf Wildenhues.
58045 2009-10-31  Jim Meyering  <meyering@redhat.com>
58047         inttostr: aesthetics and improved (compile-time) safety
58048         Define inttype_is_signed rather than inttype_is_unsigned,
58049         since the sole use is via "#if inttype_is_signed".
58050         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
58051         inttype_is_unsigned.
58052         * lib/offtostr.c (inttype_is_signed): Likewise.
58053         * lib/uinttostr.c (inttype_is_signed): Likewise.
58054         * lib/umaxtostr.c (inttype_is_signed): Likewise.
58055         * lib/inttostr.c (inttostr): Use verify to cross-check the
58056         inttype_is_signed value and the signedness of the actual type.
58057         * modules/inttostr (Depends-on): Add verify.
58059 2009-10-30  Eric Blake  <ebb9@byu.net>
58061         build: avoid compiler warnings
58062         * lib/fchmodat.c (lchmod): Mark unused variables.
58063         * lib/getopt.c (_getopt_initialize): Likewise.
58064         * lib/mktime.c (__mktime_internal): Provide prototype.
58065         * lib/inttostr.c (inttostr): Avoid compiler warning even with
58066         older gcc that do not understand #pragma GCC diagnostic.
58067         * lib/uinttostr.c (inttype_is_unsigned): Define.
58068         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
58070 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
58072         stat: fix compilation on AIX
58073         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
58074         only see struct stat64.
58076 2009-10-30  Eric Blake  <ebb9@byu.net>
58078         exclude: make more robust
58079         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
58080         rather than masking a coding bug.
58081         Suggested by Bruno Haible.
58083 2009-10-30  Jim Meyering  <meyering@redhat.com>
58085         perl scripts: remove #!/usr/bin/perl in favor of more portable...
58086         Rather than putting #!/usr/bin/perl on the first line,
58087         start with a variant of what's recommended by "man perlrun" that
58088         invokes the first "perl" program from your shell's search path.
58089         * build-aux/gitlog-to-changelog: Replace #!... as above.
58090         Add a "Local Variables" perl mode setting.
58091         Prompted by a patch from Ludovic Courtès.
58092         Improved by Eric Blake.
58093         * build-aux/useless-if-before-free: Likewise.
58094         * build-aux/announce-gen: Likewise.
58095         * build-aux/update-copyright: Likewise.
58097 2009-10-29  Eric Blake  <ebb9@byu.net>
58099         filenamecat-lgpl: adjust clients
58100         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
58101         filenamecat.
58102         * modules/renameat (Depends-on): Likewise.
58104         filenamecat: split into filenamecat-lgpl
58105         * modules/filenamecat-lgpl: New module.
58106         * modules/filenamecat (Files): Move library-safe files into
58107         filenamecat-lgpl.
58108         (Depends-on): Add filenamecat-lgpl.
58109         (configure.ac): Declare witness.
58110         * lib/filenamecat.h (file_name_concat): Only declare when using
58111         GPL module.
58112         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
58113         Move...
58114         * lib/filenamecat-lgpl.c: ...into new file.
58115         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
58116         (gl_FILE_NAME_CONCAT): Use it.
58117         * MODULES.html.sh (File system functions): Mention new module.
58119         argp: avoid memory leak
58120         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
58121         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
58122         base_name, since the latter malloc()s and can call exit().
58123         Leak introduced 2006-07-03.
58125         dirname-lgpl: adjust clients that don't need full dirname
58126         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
58127         * modules/filenamecat (Depends-on): Likewise.
58128         * modules/linkat (Depends-on): Likewise.
58129         * modules/mkancesdirs (Depends-on): Likewise.
58130         * modules/mkdir (Depends-on): Likewise.
58131         * modules/openat (Depends-on): Likewise.
58132         * modules/savewd (Depends-on): Likewise.
58133         * modules/rename (Depends-on): Likewise.
58134         (License): Relax license.
58135         * modules/mkdir-tests (Depends-on): Drop progname.
58136         (Makefile.am): Delete unneeded LDADD.
58137         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
58139         dirname: split into dirname-lgpl
58140         * modules/dirname-lgpl: New module.
58141         * modules/dirname (Files): Move library-safe files into
58142         dirname-lgpl.
58143         (Depends-on): Add dirname-lgpl.
58144         (configure.ac): Declare witness.
58145         * modules/double-slash-root (License): Relax license.
58146         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
58147         module.
58148         * lib/dirname.c (dir_len, mdir_name): Move...
58149         * lib/dirname-lgpl.c: ...into new file.
58150         * lib/basename.c (last_component, base_len): Move...
58151         * lib/basename-lgpl.c: ...into new file.
58152         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
58153         (gl_DIRNAME): Use it.
58154         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
58155         Mention new module.
58156         * modules/dirname-tests (Depends-on): Add progname.
58157         * tests/test-dirname.c (program_name): Delete.
58159         mkdir: make safe for libraries
58160         * modules/mkdir (Depends-on): Drop xalloc.
58161         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
58162         exit.
58164         tests: avoid some compiler warnings
58165         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
58166         literals.
58167         * tests/test-memchr.c (main): Avoid type mismatch.
58168         * tests/test-arpa_inet.c (main): Avoid unused parameters.
58169         * tests/test-base64.c (main): Likewise.
58170         * tests/test-getdelim.c (main): Likewise.
58171         * tests/test-gethostname.c (main): Likewise.
58172         * tests/test-getline.c (main): Likewise.
58173         * tests/test-netinet_in.c (main): Likewise.
58174         * tests/test-select.c (open_server_socket, main): Likewise.
58175         * tests/test-select-stdin.c (main): Likewise.
58176         * tests/test-sockets.c (main): Likewise.
58177         * tests/test-strsignal.c (main): Likewise.
58178         * tests/test-sys_select.c (main): Likewise.
58179         * tests/test-sys_socket.c (main): Likewise.
58180         * tests/test-u64.c (main): Likewise.
58181         * tests/test-xfprintf-posix.c (main): Likewise.
58182         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
58184         sockets: avoid compiler warning
58185         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
58187         maint: detect usage(1) and other suspicious exits
58188         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
58190 2009-10-29  Jim Meyering  <meyering@redhat.com>
58192         timespec: long-to-int truncation could make timespec_cmp malfunction
58193         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
58194         a multiple of 2^32 nanoseconds as no difference.
58196 2009-10-28  Jim Meyering  <meyering@redhat.com>
58198         fprintftime: wrap macro code argument in "do {...} while(0)"
58199         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
58200         cpy macro must be a statement that can be followed by a semicolon.
58201         Now that the else clause contains a comment and is hence longer
58202         than one line, I require curly braces.  That in turn requires
58203         that we wrap this code block in the standard do...while(0).
58205         fprintftime: remove stray semicolon from previous change
58206         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
58208         fprintftime: avoid a warning about ignored fwrite return value
58209         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
58210         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
58211         that is unsafe.
58212         * modules/fprintftime (Depends-on): Add ignore-value.
58214         exclude: avoid an unwarranted warning
58215         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
58217 2009-10-27  Eric Blake  <ebb9@byu.net>
58219         fseek: avoid compilation failure when fflush is replaced
58220         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
58221         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
58222         module is in use.
58223         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
58224         module is not in use; since REPLACE_FSEEK worked otherwise.
58225         (GNULIB_FTELLO): Likewise for ftell.
58226         Reported by Ian Beckwith and others.
58228 2009-10-27  Bruno Haible  <bruno@clisp.org>
58230         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
58231         Reported by Jim Meyering.
58233 2009-10-27  Jim Meyering  <jim@meyering.net>
58234             Bruno Haible  <bruno@clisp.org>
58236         Avoid warning despite dropping the return value of fwrite.
58237         * lib/unicodeio.c: Include ignore-value.h.
58238         (fwrite_success_callback): Explicitly ignore fwrite's return value.
58239         * modules/unicodeio (Depends-on): Add ignore-value.
58241 2009-10-26  Eric Blake  <ebb9@byu.net>
58243         areadlinkat: fix fallback path
58244         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
58245         pointer and zero.
58247 2009-10-22  Pádraig Brady  <P@draigBrady.com>
58249         Use a better IO block size for modern systems
58250         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
58251         * lib/md2.c: Likewise.
58252         * lib/md4.c: Likewise.
58253         * lib/md5.c: Likewise.
58254         * lib/sha1.c: Likewise.
58255         * lib/sha256.c: Likewise.
58256         * lib/sha512.c: Likewise.
58258 2009-10-22  Eric Blake  <ebb9@byu.net>
58260         tests: avoid several compiler warnings
58261         * tests/test-getcwd.c (main): Avoid buffer underflow.
58262         * tests/test-getdate.c (main): String literals are not safe with
58263         putenv, so use setenv.  Declare unused argument.
58264         * modules/getdate-tests (Depends-on): Add setenv.
58265         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
58266         problems with string literals in char *.
58267         * tests/test-hash.c (main): Avoid shadowing declaration.
58268         (insert_new): Treat string literals as char const *.
58269         * tests/test-getopt.h (test_getopt): Likewise.
58270         (getopt_loop): Alter types to minimize casting elsewhere.
58271         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
58272         (test_getopt_long_posix): Likewise.
58273         (do_getopt_long): Add wrapper to minimize casting.
58274         * tests/test-atexit.c (clear_temp_file): Use void.
58275         * tests/test-areadlink-with-size.c (main): Declare unused
58276         arguments.
58277         * tests/test-areadlink.c (main): Likewise.
58278         * tests/test-areadlinkat-with-size.c (main): Likewise.
58279         * tests/test-areadlinkat.c (main): Likewise.
58280         * tests/test-canonicalize-lgpl.c (main): Likewise.
58281         * tests/test-canonicalize.c (main): Likewise.
58282         * tests/test-dirent-safer.c (main): Likewise.
58283         * tests/test-dirname.c (main): Likewise.
58284         * tests/test-dup2.c (main): Likewise.
58285         * tests/test-fchdir.c (main): Likewise.
58286         * tests/test-fcntl-h.c (main): Likewise.
58287         * tests/test-fcntl-safer.c (main): Likewise.
58288         * tests/test-fdopendir.c (main): Likewise.
58289         * tests/test-fdutimensat.c (main): Likewise.
58290         * tests/test-fflush.c (main): Likewise.
58291         * tests/test-filenamecat.c (main): Likewise.
58292         * tests/test-filevercmp.c (main): Likewise.
58293         * tests/test-fopen-safer.c (main): Likewise.
58294         * tests/test-fopen.c (main): Likewise.
58295         * tests/test-fpending.c (main): Likewise.
58296         * tests/test-fpurge.c (main): Likewise.
58297         * tests/test-freading.c (main): Likewise.
58298         * tests/test-fstatat.c (main): Likewise.
58299         * tests/test-fsync.c (main): Likewise.
58300         * tests/test-futimens.c (main): Likewise.
58301         * tests/test-getndelim2.c (main): Likewise.
58302         * tests/test-gettimeofday.c (main): Likewise.
58303         * tests/test-getopt.c (main): Likewise.
58304         * tests/test-i-ring.c (main): Likewise.
58305         * tests/test-inttypes.c (main): Likewise.
58306         * tests/test-link.c (main): Likewise.
58307         * tests/test-lstat.c (main): Likewise.
58308         * tests/test-math.c (main): Likewise.
58309         * tests/test-md5.c (main): Likewise.
58310         * tests/test-memchr2.c (main): Likewise.
58311         * tests/test-memrchr.c (main): Likewise.
58312         * tests/test-mkdir.c (main): Likewise.
58313         * tests/test-mkdirat.c (main): Likewise.
58314         * tests/test-mkfifoat.c (main): Likewise.
58315         * tests/test-open.c (main): Likewise.
58316         * tests/test-openat-safer.c (main): Likewise.
58317         * tests/test-openat.c (main): Likewise.
58318         * tests/test-quotearg.c (main): Likewise.
58319         * tests/test-rawmemchr.c (main): Likewise.
58320         * tests/test-readlink.c (main): Likewise.
58321         * tests/test-remove.c (main): Likewise.
58322         * tests/test-rename.c (main): Likewise.
58323         * tests/test-renameat.c (main): Likewise.
58324         * tests/test-rmdir.c (main): Likewise.
58325         * tests/test-sha1.c (main): Likewise.
58326         * tests/test-signal.c (main): Likewise.
58327         * tests/test-sigaction.c (main): Likewise.
58328         * tests/test-stat.c (main): Likewise.
58329         * tests/test-stat-time.c (main): Likewise.
58330         * tests/test-stddef.c (main): Likewise.
58331         * tests/test-stdint.c (main): Likewise.
58332         * tests/test-stdio.c (main): Likewise.
58333         * tests/test-stdlib.c (main): Likewise.
58334         * tests/test-strchrnul.c (main): Likewise.
58335         * tests/test-strerror.c (main): Likewise.
58336         * tests/test-string.c (main): Likewise.
58337         * tests/test-strtod.c (main): Likewise.
58338         * tests/test-strverscmp.c (main): Likewise.
58339         * tests/test-symlink.c (main): Likewise.
58340         * tests/test-symlinkat.c (main): Likewise.
58341         * tests/test-sys_stat.c (main): Likewise.
58342         * tests/test-sys_time.c (main): Likewise.
58343         * tests/test-time.c (main): Likewise.
58344         * tests/test-unistd.c (main): Likewise.
58345         * tests/test-unlink.c (main): Likewise.
58346         * tests/test-unlinkat.c (main): Likewise.
58347         * tests/test-utimens.c (main): Likewise.
58348         * tests/test-utimensat.c (main): Likewise.
58349         * tests/test-version-etc.c (main): Likewise.
58350         * tests/test-wchar.c (main): Likewise.
58351         * tests/test-wctype.c (main): Likewise.
58352         * tests/test-xprintf-posix.c (main): Likewise.
58353         * tests/test-posixtm.c (main): Likewise.
58354         (STREQ): Delete unused macro.
58355         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
58356         shadowed variables.
58357         * tests/test-memchr.c (main): Likewise.
58359 2009-10-21  Eric Blake  <ebb9@byu.net>
58361         areadlinkat: avoid failure on older glibc
58362         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
58363         rather than mis-comparing 0 against FUNC_RESULT of char*.
58365 2009-10-21  Bruno Haible  <bruno@clisp.org>
58367         * modules/stpncpy (License): Relicense under LGPLv2+.
58368         Reported by David Lutterkort <lutter@redhat.com>.
58370 2009-10-20  Eric Blake  <ebb9@byu.net>
58372         utimensat: work around Solaris 9 bug
58373         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
58374         has trailing slash bugs.
58375         * tests/test-lutimens.h (test_lutimens): Enhance test.
58376         * tests/test-utimens.h (test_utimens): Likewise.
58377         * doc/posix-functions/utime.texi (utime): Enhance documentation.
58378         * doc/posix-functions/utimes.texi (utimes): Likewise.
58379         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58380         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
58381         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
58382         * doc/posix-functions/futimens.texi (futimens): Likewise.
58384         fdutimensat: new module
58385         * modules/fdutimensat: New file.
58386         * lib/fdutimensat.c (fdutimensat): Likewise.
58387         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
58388         * MODULES.html.sh (File system functions): Mention module.
58389         * modules/fdutimensat-tests: New test.
58390         * tests/test-fdutimensat.c: Likewise.
58392         doc: regenerate INSTALL
58393         * doc/INSTALL: Reflect recent autoconf update.
58394         * doc/INSTALL.ISO: Likewise.
58395         * doc/INSTALL.UTF-8: Likewise.
58397 2009-10-20  Pádraig Brady  <P@draigBrady.com>
58399         acl: warn if ACL support is not detected
58400         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
58402 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
58404         * lib/nproc.h: Add extern "C" block for C++.
58406 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
58407             Bruno Haible  <bruno@clisp.org>
58409         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
58410         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
58411         * doc/posix-functions/isalpha.texi: Likewise.
58412         * doc/posix-functions/isblank.texi: Likewise.
58413         * doc/posix-functions/iscntrl.texi: Likewise.
58414         * doc/posix-functions/isdigit.texi: Likewise.
58415         * doc/posix-functions/isgraph.texi: Likewise.
58416         * doc/posix-functions/islower.texi: Likewise.
58417         * doc/posix-functions/isprint.texi: Likewise.
58418         * doc/posix-functions/ispunct.texi: Likewise.
58419         * doc/posix-functions/isspace.texi: Likewise.
58420         * doc/posix-functions/isupper.texi: Likewise.
58421         * doc/posix-functions/isxdigit.texi: Likewise.
58423 2009-10-18  Bruno Haible  <bruno@clisp.org>
58425         Tests for module 'isblank'.
58426         * modules/isblank-tests: New file.
58427         * tests/test-isblank.c: New file.
58429         New module 'isblank'.
58430         * lib/isblank.c: New file.
58431         * m4/isblank.m4: New file.
58432         * modules/isblank: New file.
58433         * doc/posix-functions/isblank.texi: Mention the new module.
58435 2009-10-18  Bruno Haible  <bruno@clisp.org>
58437         New module 'ctype'.
58438         * lib/ctype.in.h: New file.
58439         * m4/ctype.m4: New file.
58440         * modules/ctype: New file.
58441         * doc/posix-headers/ctype.texi: Mention the new module.
58443 2009-10-18  Jim Meyering  <meyering@redhat.com>
58445         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
58446         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
58447         right after its initialization, rather than farther down.
58448         Keeping these in close proximity makes it easier to ensure
58449         that each such variable is initialized.  E.g.,
58451             LIB_CLOCK_GETTIME=
58452             AC_SUBST([LIB_CLOCK_GETTIME])
58454         This change also increments these serial numbers.
58455         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
58456         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58459 2009-10-18  Bruno Haible  <bruno@clisp.org>
58461         Don't let environment variables perturb build.
58462         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
58463         (gl_PREREQ_GETHRXTIME): ... not here.
58465 2009-10-18  Bruno Haible  <bruno@clisp.org>
58467         Avoid symlink attack in localcharset module.
58468         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
58469         (O_NOFOLLOW): Define fallback.
58470         (get_charset_aliases): Don't open the file if it is a symbolic link.
58471         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
58472         gl_FCNTL_H.
58473         (gl_FCNTL_H): Require it.
58474         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
58475         * modules/localcharset (Files): Add m4/fcntl_h.m4.
58476         Reported by Fergal Glynn <fglynn@veracode.com>.
58478 2009-10-18  Bruno Haible  <bruno@clisp.org>
58480         Implement nproc for mingw.
58481         * lib/nproc.c: Include <windows.h>
58482         (num_processors): On native Windows platforms, try GetSystemInfo.
58484 2009-10-18  Bruno Haible  <bruno@clisp.org>
58486         Implement nproc for IRIX.
58487         * lib/nproc.c: Include <sys/sysmp.h>.
58488         (num_processors): On IRIX systems, try sysmp.
58489         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
58491 2009-10-18  Bruno Haible  <bruno@clisp.org>
58493         Implement nproc for HP-UX.
58494         * lib/nproc.c: Include <sys/pstat.h>
58495         (num_processors): On HP-UX systems, try pstat_getdynamic.
58496         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
58497         pstat_getdynamic.
58499 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
58500             Bruno Haible  <bruno@clisp.org>
58502         Implement nproc for NetBSD, OpenBSD.
58503         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
58504         (ARRAY_SIZE): New macro.
58505         (num_processors): On BSD systems, try sysctl of HW_NCPU.
58506         * m4/nproc.m4: New file.
58507         * modules/nproc (Files): Add m4/nproc.m4.
58508         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
58509         (Makefile.am): Instead, augment lib_SOURCES.
58511 2009-10-18  Bruno Haible  <bruno@clisp.org>
58513         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
58514         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
58515         sys/param.h.
58517 2009-10-16  Eric Blake  <ebb9@byu.net>
58519         utimensat: new module
58520         * modules/utimensat: New file.
58521         * lib/utimensat.c (utimensat): Likewise.
58522         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58523         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
58524         so we can work around Linux bugs.
58525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58526         * modules/sys_stat (Makefile.am): Substitute them.
58527         * lib/sys_stat.in.h (utimensat): Declare it.
58528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58529         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58530         * modules/utimensat-tests: New test.
58531         * tests/test-utimensat.c: Likewise.
58533         utimens: let lutimens work on non-symlinks
58534         * lib/utimens.c (lutimens): Fall back to utimens rather than
58535         failing with ENOSYS, when file is not a symlink.
58536         (utimens): Reduce redirection.
58537         * tests/test-lutimens.h (test_lutimens): Update test to cover
58538         non-symlinks.
58539         * tests/test-utimens.h (test_utimens): Update test to cover
58540         symlinks.
58541         * tests/test-utimens.c (main): Update caller.
58543         utimens: cache whether utimensat syscall works
58544         * lib/utimens.c (utimensat_works_really): New cache variable.
58545         (fdutimens, lutimens): Use it to avoid failing syscall.
58547         test-stat-time, test-utimens: improve portability
58548         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
58549         ext4 on alpha, and for cygwin.
58550         * tests/test-utimens-common.h: New file.
58551         (nap): Factor delays into single function.
58552         * tests/test-lutimens.h (test_lutimens): Use new header.
58553         * tests/test-futimens.h (test_futimens): Likewise.
58554         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
58555         timestamps to occur from same machine, as was done previously for
58556         test_utimens.
58557         * modules/utimens-tests (Files): Ship new file.
58558         * modules/futimens-tests (Files): Likewise.
58559         Reported in part by Jim Meyering.
58561         sys_stat: sort replacement declarations
58562         * lib/sys_stat.in.h: Sort declarations.
58563         * lib/futimens.c (futimens): Fix typo.
58565 2009-10-15  Jim Meyering  <meyering@redhat.com>
58567         don't let environment settings perturb build
58568         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
58569         could cause a configure-time and/or build-time malfunction.
58570         Typically, a configure-time function-in-library test is performed
58571         via code like this:
58573           LIB_VAR=
58574           AC_SUBST([LIB_VAR])
58575           prefix_saved_LIBS=$LIBS
58576             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
58577                        [test "$ac_cv_search_FUNC" = "none required" ||
58578                         LIB_VAR=$ac_cv_search_FUNC])
58579           LIBS=$prefix_saved_LIBS
58581         However, in each of the files affected by this change, the LIB_VAR=
58582         initialization was omitted.  Thus, when set in the environment, its
58583         value would propagate into generated Makefiles when FUNC is not found
58584         in LIB_NAME.
58585         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
58586         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58589 2009-10-14  Eric Blake  <ebb9@byu.net>
58591         fchdir: avoid infinite recursion in mingw
58592         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
58593         recursing.
58595         test-stat-time: port to mingw
58596         * tests/test-stat-time.c (force_unlink): Return a value.
58597         (test_ctime) [W32]: Fix compilation error.
58598         (nap): Don't call usleep with too large an argument.  Use
58599         force_unlink.
58600         * doc/pastposix-functions/usleep.texi (usleep): Document the
58601         portability issue.
58603 2009-10-13  Jim Meyering  <meyering@redhat.com>
58605         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
58606         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
58607         * modules/pipe-filter-ii: Likewise.
58608         * modules/sys_socket-tests: Likewise.
58609         * modules/tsearch-tests: Likewise.
58610         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
58611         (check): Depend on it.
58613 2009-10-12  Eric Blake  <ebb9@byu.net>
58615         utimens-tests: port to NFS file systems
58616         * tests/test-utimens.h (test_utimens): Refactor utimecmp
58617         comparisons to avoid spurious failures from timestamp drift
58618         between NFS machines.
58620 2009-10-12  Eric Blake  <ebb9@byu.net>
58622         stat-time-tests: minor cleanups
58623         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
58624         * tests/test-stat-time.c (nap): Separate assignment from call.
58625         Suggested by Paolo Bonzini and Bruno Haible.
58627         sys_stat: guarantee struct timespec
58628         * lib/sys_stat.in.h (includes): Always include <time.h>
58629         * modules/sys_stat (Depends-on): Add time.
58630         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
58631         mode_t permission values.
58632         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
58633         get at subsecond timestamps.
58635 2009-10-10  Eric Blake  <ebb9@byu.net>
58637         futimens: new module
58638         * modules/futimens: New file.
58639         * lib/futimens.c (futimens): Likewise.
58640         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
58641         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
58642         we can work around Linux bugs.
58643         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58644         * modules/sys_stat (Makefile.am): Substitute them.
58645         * lib/sys_stat.in.h (futimens): Declare it.
58646         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58647         * doc/posix-functions/futimens.texi (futimens): Likewise.
58648         * modules/futimens-tests: New test.
58649         * tests/test-futimens.c: Likewise.
58651         utimens: introduce fdutimens
58652         * lib/utimens.h (fdutimens): New prototype.
58653         * lib/utimens.c (gl_futimens): Move guts...
58654         (fdutimens): ...to new interface.
58655         * tests/test-utimens.c (do_fdutimens): Use it.
58657         utimens: add UTIME_NOW and UTIME_OMIT support
58658         * lib/utimens.c (validate_timespec, update_timespec): New helper
58659         functions.
58660         (gl_futimens, lutimens): Use them.
58661         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
58662         stdbool, sys_stat.
58663         (Link): Mention resulting library dependency.
58664         * modules/utimecmp (Link): Likewise.
58665         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
58666         (Makefile.am): Pick up library dependency.
58667         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
58668         definition.
58669         * tests/test-sys_stat.c: Test the definitions.
58670         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
58671         * NEWS: Document library dependency.
58673         utimecmp: support symlink timestamps
58674         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
58675         hashing when possible.  Use pathconf when available.
58676         (SYSCALL_RESOLUTION): Recognize tighter resolution.
58677         * modules/utimecmp (Depends-on): Add lstat.
58679         utimens: add lutimens interface
58680         * lib/utimens.c (lutimens): New function.
58681         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
58682         * lib/utimens.h (lutimens): Declare new interface.
58683         * tests/test-utimens.c (main): Enhance test.
58684         * tests/test-lutimens.h (test_lutimens): New file.
58685         * modules/utimens-tests (Files): Distribute it.
58686         (Depends-on): Add symlink.
58687         (configure.ac): Check for usleep.
58689         utimens: validate futimens usage
58690         * lib/utimens.c (gl_futimens): Require valid fd up front, using
58691         fewer syscalls on failure later on.  Avoid compiler warning on
58692         mingw.
58693         * modules/utimens (Depends-on): Add dup2.
58695         utimens: add test
58696         * modules/utimens-tests: New test.
58697         * tests/test-utimens.h: New file.
58698         * tests/test-futimens.h: Likewise.
58699         * tests/test-utimens.c: Likewise.
58701         doc: mention timestamp portability issues
58702         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
58703         instead.
58704         * doc/posix-functions/utime.texi (utime): Likewise.
58705         * doc/posix-functions/utimes.texi (utimes): Likewise.
58706         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
58707         instead.
58708         * doc/posix-functions/futimens.texi (futimens): Mention utimens
58709         module.
58710         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58711         Mention weakness with symlink timestamps.
58712         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
58713         to utimensat/futimens instead.
58714         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
58716         test-dup2: enhance test
58717         * tests/test-dup2.c (main): Also check AT_FDCWD.
58719         test-stat-time: avoid more spurious failures
58720         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
58721         xfs; and avoid race if the two timestamps cross quantization edge.
58723         relocatable: prefer 'file system' over 'filesystem'
58724         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
58725         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
58726         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
58727         * doc/relocatable.texi (Enabling Relocatability): Likewise.
58728         * lib/relocatable.c (compute_curr_prefix): Likewise.
58730 2009-10-10  Jim Meyering  <meyering@redhat.com>
58732         stat-time-tests: check for the usleep function
58733         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
58735 2009-10-10  Bruno Haible  <bruno@clisp.org>
58737         * modules/xnanosleep: Put the Link section after the Include section.
58739 2009-10-09  Eric Blake  <ebb9@byu.net>
58741         dup2: work around FreeBSD 6.1 bug
58742         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
58743         * doc/posix-functions/dup2.texi (dup2): Document it.
58744         Reported by Nelson H. F. Beebe and Jim Meyering.
58746         test-stat-time: port to buggy NFS clients
58747         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
58748         (test_ctime): Also skip test if mtime and ctime are skewed.
58750         maint: prefer 'file system' over 'filesystem'
58751         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
58752         * doc/posix-functions/lstat.texi (lstat): Likewise.
58753         * lib/file-has-acl.c (file_has_acl): Likewise.
58754         * lib/fwriteerror.c [TEST]: Likewise.
58755         * tests/test-areadlink.h (test_areadlink): Likewise.
58756         * tests/test-areadlinkat-with-size.c (main): Likewise.
58757         * tests/test-areadlinkat.c (main): Likewise.
58758         * tests/test-canonicalize-lgpl.c (main): Likewise.
58759         * tests/test-canonicalize.c (main): Likewise.
58760         * tests/test-fstatat.c (main): Likewise.
58761         * tests/test-linkat.c (main): Likewise.
58762         * tests/test-lstat.h (test_lstat_func): Likewise.
58763         * tests/test-mkdir.h (test_mkdir): Likewise.
58764         * tests/test-readlink.h (test_readlink): Likewise.
58765         * tests/test-remove.c (main): Likewise.
58766         * tests/test-rename.h (test_rename): Likewise.
58767         * tests/test-renameat.c (main): Likewise.
58768         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58769         * tests/test-symlink.h (test_symlink): Likewise.
58770         * tests/test-symlinkat.c (main): Likewise.
58771         * tests/test-unlink.h (test_unlink_func): Likewise.
58772         * tests/test-unlinkat.c (main): Likewise.
58774         maint: make realtime library usage explicit
58775         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
58776         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
58777         * modules/settime (Link): Likewise.
58778         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
58780         test-stat-time: speed up execution
58781         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
58782         warning on mingw.
58783         (nap): New helper function.
58784         (prepare_test): Use it to reduce sleep time.
58785         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
58786         execution.
58787         * modules/stat-time-tests (configure.ac): Check for usleep.
58789 2009-10-09  Jim Meyering  <meyering@redhat.com>
58791         selinux-h: always use getfilecon wrappers
58792         * lib/getfilecon.c: New file.
58793         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
58794         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
58795         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
58796         (fgetfilecon): Provide a stub.
58797         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
58798         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
58799         file unconditionally.
58800         When <selinux/selinux.h> is found, arrange to use wrappers.
58801         * modules/selinux-h (Files): Add getfilecon.c.
58802         (Makefile.am): Substitute include-next-related bits
58803         into the now-always-generated selinux/selinux.h file.
58804         * doc/glibc-functions/lgetfilecon.texi: New file.
58805         * doc/glibc-functions/fgetfilecon.texi: New file.
58806         * doc/glibc-functions/getfilecon.texi: New file.
58807         * doc/glibc-functions/getfilecon-desc.texi: New file.
58808         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
58809         which to pull in the new files.
58810         * MODULES.html.sh (Misc): Add selinux-h.
58812 2009-10-08  Jim Meyering  <meyering@redhat.com>
58814         unistd: fix comment typo
58815         * lib/unistd.in.h (euidaccess): Fix a comment typo.
58817 2009-10-08  Eric Blake  <ebb9@byu.net>
58819         areadlink: use SIZE_MAX consistently
58820         * modules/areadlink (Depends-on): Add stdint.
58821         * modules/areadlink-with-size (Depends-on): Likewise.
58822         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
58823         gives NULL; drop sys/types, since unistd gives size_t; and add
58824         stdint for SIZE_MAX.
58825         (SIZE_MAX): Rely on headers.
58826         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
58827         and add stdint.
58828         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
58829         (SIZE_MAX): Likewise.
58830         (INITIAL_BUF_SIZE): Turn into enum.
58831         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
58833 2009-10-08  Jim Meyering  <meyering@redhat.com>
58835         areadlinkat: avoid compilation failure
58836         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
58837         Fix typo in comment.
58839 2009-10-07  Eric Blake  <ebb9@byu.net>
58841         areadlinkat-with-size: new module
58842         * modules/areadlinkat-with-size: New module.
58843         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
58844         * lib/areadlink.h (areadlinkat): Declare it.
58845         * MODULES.html.sh (File system functions): Mention it.
58846         * modules/areadlinkat-with-size-tests: New test.
58847         * tests/test-areadlinkat-with-size.c: New file.
58849         xreadlinkat: new module
58850         * modules/xreadlinkat: New module.
58851         * lib/xreadlinkat.c (xreadlinkat): New file.
58852         * lib/xreadlink.h (xreadlinkat): Declare it.
58853         * MODULES.html.sh (File system functions): Mention it.
58855         areadlinkat: new module
58856         * lib/at-func.c (FUNC_FAIL): New define.
58857         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
58858         * modules/areadlinkat: New module.
58859         * lib/linkat.c (areadlinkat): Move...
58860         * lib/areadlinkat.c (areadlinkat): ...to new file.
58861         * lib/areadlink.h (areadlinkat): Declare it.
58862         * modules/linkat (Depends-on): Add areadlinkat.
58863         * MODULES.html.sh (File system functions): Mention it.
58864         * modules/areadlinkat-tests: New test.
58865         * tests/test-areadlinkat.c: New file.
58867         areadlink, areadlink-with-size: add tests
58868         * modules/areadlink-tests: New test.
58869         * modules/areadlink-with-size-tests: Likewise.
58870         * tests/test-areadlink.h: New file.
58871         * tests/test-areadlink.c: Likewise.
58872         * tests/test-areadlink-with-size.c: Likewise.
58874         maint: minor cleanups
58875         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
58876         _UNUSED_PARAMETER_ instead.
58877         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
58878         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
58879         * modules/linkat-tests (Files): Distribute test-link.h.
58881         openat, utimens: whitespace cleanup
58882         * lib/openat.c: Prefer space throughout, rather than mix of 8
58883         spaces vs. tabs.
58884         * lib/at-func.c: Likewise.
58885         * lib/utimens.c: Likewise.
58887         openat: avoid using wrong fd
58888         * lib/openat.c (openat_permissive): Reject user's fd if saving the
58889         working directory chooses same fd.
58890         * lib/at-func.c (AT_FUNC_NAME): Likewise.
58892         mkdir, mkdirat: fix cygwin 1.5.x bug
58893         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
58894         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
58895         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
58896         bug.
58897         (gl_PREREQ_MKDIR): Delete unused macro.
58898         * modules/mkdir (Files): Track file rename.
58899         (configure.ac): Update macro name.
58900         * modules/openat (Depends-on): Add mkdir.
58901         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
58903         mkdir, mkdirat: add tests
58904         * modules/mkdir-tests: New test.
58905         * tests/test-mkdir.h: New file.
58906         * tests/test-mkdir.c: Likewise.
58907         * tests/test-mkdirat.c: Likewise.
58908         * modules/openat-tests (Files): Add new files.
58909         (Makefile.am): Run new test.
58911 2009-10-06  Eric Blake  <ebb9@byu.net>
58913         doc: tweak *at function documentation
58914         * doc/posix-functions/faccessat.texi (faccessat): Mention
58915         known issue with replacement.
58916         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
58917         * doc/posix-functions/linkat.texi (linkat): Likewise.
58918         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
58919         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
58920         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58921         * doc/posix-functions/renameat.texi (renameat): Likewise.
58922         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58924         openat: fix GNU/Hurd bug in unlinkat
58925         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
58926         broken.
58927         * doc/posix-functions/unlink.texi (unlink): Document this.
58928         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
58930         fdopendir: fix GNU/Hurd bug
58931         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
58932         allowing non-directory fds.
58933         * lib/fdopendir.c (rpl_fdopendir): Work around it.
58934         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
58935         * modules/dirent (Makefile.am): Substitute it.
58936         * lib/dirent.in.h (fdopendir): Declare replacement.
58937         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
58938         * tests/test-fdopendir.c (main): Test something other than
58939         /dev/null, since on Hurd that behaves like a directory.
58941         test-symlink: port to GNU/Hurd
58942         * tests/test-symlink.h (test_symlink): Relax expected errno.
58944         doc: tweak more cygwin information
58945         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
58946         now compatible with glibc.
58947         * doc/posix-functions/getopt.texi (getopt): Likewise.
58949         getopt-gnu: add another test
58950         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
58951         guarantee behavior relied on by m4.
58952         * tests/test-getopt.c (main): Use it.
58953         * modules/getopt-posix-tests (Depends-on): Add setenv.
58954         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
58956         getopt: fix compilation on darwin
58957         * lib/getopt.in.h (includes): Leave breadcrumbs during system
58958         include.
58959         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
58960         Reported by Ludovic Courtès.
58962 2009-10-06  Bruno Haible  <bruno@clisp.org>
58964         * modules/size_max (Description): Discourage its use.
58965         Reported by Simon Josefsson.
58967 2009-10-06  Jim Meyering  <meyering@redhat.com>
58969         linkat: avoid compilation failure
58970         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
58972 2009-10-05  Eric Blake  <ebb9@byu.net>
58974         linkat: support Linux 2.6.17
58975         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
58976         linkat on Linux, but allow cache variable override.
58977         * lib/linkat.c (rpl_linkat): Define override.
58978         * modules/linkat (Depends-on): Add symlinkat.
58979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
58980         * modules/unistd (Makefile.am): Substitute it.
58981         * lib/unistd.in.h (linkat): Declare replacement.
58982         Reported by Pádraig Brady.
58984         quotearg: port test to systems with C.UTF-8 locale
58985         * tests/test-quotearg.c (struct result_strings): Add another
58986         member, differentiating between C.ASCII and C.UTF-8 handling.
58987         (compare_strings): Add parameter.
58988         (main): Adjust all callers.
58990         getopt: avoid clash with FreeBSD _getopt_internal
58991         * lib/getopt.in.h (_getopt_internal): Override the name.
58992         * lib/getopt_int.h (includes): Pick up any overrides.
58993         Reported by Reuben Thomas.
58995         hash: allow C89 compilation
58996         * lib/hash.c (check_tuning): Move declaration before statement.
58997         Reported by Reuben Thomas.
58999 2009-10-05  Karl Berry  <karl@gnu.org>
59001         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
59003 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
59004             Bruno Haible  <bruno@clisp.org>
59006         * lib/uname.c (uname): Use a table-driven algorithm to compute
59007         Windows NT versions.
59009 2009-10-04  Bruno Haible  <bruno@clisp.org>
59011         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
59012         program_invocation_short_name.
59013         * modules/progname (configure.ac): Test for presence of
59014         program_invocation_short_name.
59015         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
59017 2009-10-04  Bruno Haible  <bruno@clisp.org>
59019         * lib/progname.c (set_program_name): Fix comment.
59020         Reported by Jim Meyering.
59022 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59023             Bruno Haible  <bruno@clisp.org>
59025         * lib/uname.c: Include <string.h>.
59026         (uname): Do only one call to GetVersionEx in the common case.
59028 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
59029             Bruno Haible  <bruno@clisp.org>
59031         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
59032         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
59033         (uname): Add support for Windows CE and various non-x86 CPU types.
59035 2009-10-03  Bruno Haible  <bruno@clisp.org>
59037         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
59038         invocation to tests/configure.ac.
59039         Reported by Ian Beckwith <ianb@erislabs.net>.
59041 2009-10-02  Eric Blake  <ebb9@byu.net>
59043         fchdir: avoid compiler warning
59044         * lib/fchdir.c (canonicalize_file_name)
59045         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
59047         test-open: support mingw errno values
59048         * tests/test-open.h (test_open): Relax test.
59049         * tests/test-fopen.h (test_fopen): Likewise.
59050         * tests/test-openat-safer.c (main): Likewise.
59052         open: fix opening directory on mingw
59053         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
59055         test-open: on GNU/Hurd, /dev/null is a directory
59056         * tests/test-fopen.h (main): Rename...
59057         (test_fopen): ...to this.  Use a guaranteed non-directory when
59058         confirming open behavior on trailing slash.
59059         * tests/test-openat-safer.c (main): Likewise.
59060         * tests/test-open.h (main): Likewise....
59061         (test_open): ...to this.
59062         * tests/test-fopen.c (main): Adjust caller.
59063         * tests/test-fopen-safer.c (main): Likewise.
59064         * tests/test-open.c (main): Likewise.
59065         * tests/test-fcntl-safer.c (main): Likewise.
59066         Reported by Samuel Thibault.
59068         rename, fchdir: don't ignore chdir failure
59069         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
59070         * lib/rename.c (rpl_rename) [W32]: Likewise.
59071         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
59072         an empty destination directory if source cannot be renamed,
59073         although there is still possibility for failure.
59074         * doc/posix-functions/rename.texi (rename): Document the race.
59075         Reported by Jim Meyering.
59077         maint: cleanup whitespace in recent commits
59078         * lib/rename.c (rpl_rename): Remove tabs.
59079         * tests/test-link.h (test_link): Likewise.
59080         * lib/fchdir.c (get_name): Likewise.
59081         Reported by Jim Meyering.
59083 2009-10-02  Ben Pfaff  <blp@gnu.org>
59085         relocatable-prog-wrapper: Add missing dependency on
59086         double-slash-root.
59087         * modules/relocatable-prog-wrapper: Add dependency.
59088         Reported by Ian Beckwith <ianb@erislabs.net>.
59090 2009-10-02  Eric Blake  <ebb9@byu.net>
59092         renameat: fix Solaris bugs
59093         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
59094         needed fixing.
59095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
59096         * modules/stdio (Makefile.am): Substitute it.
59097         * lib/stdio.in.h (renameat): Declare replacement.
59098         * lib/renameat.c (rpl_renameat): Implement fix.
59100         renameat: new module
59101         * modules/renameat: New file.
59102         * lib/renameat.c (renameat): Likewise.
59103         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
59104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
59105         * modules/stdio (Makefile.am): Substitute them.
59106         * lib/stdio.in.h (renameat): Declare it.
59107         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59108         * doc/posix-functions/renameat.texi (renameat): Likewise.
59109         * modules/renameat-tests: New test.
59110         * tests/test-renameat.c: Likewise.
59112         rename: fix mingw bugs
59113         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
59114         directory overwrite bugs.
59116         rename: fix another cygwin 1.5 bug
59117         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
59118         checks.
59119         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
59120         unnecessary cygwin workarounds.  Also work around bug with moving
59121         full directory onto an empty one.
59122         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
59124         rename-dest-slash: merge into rename module
59125         * modules/rename-dest-slash (Status): Mark obsolete.
59126         (Depends-on): Add rename.
59127         (Files): Let rename do it all.
59128         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
59129         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
59130         * m4/rename-dest-slash.m4: ...so this file can be deleted.
59131         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
59132         * lib/rename.c (rpl_rename): Update comments.
59134         rename: fix cygwin 1.5.x bugs
59135         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
59136         * lib/rename.c (rpl_rename): Work around them.
59137         * modules/rename (Depends-on): Add same-inode.
59139         rename: fix Solaris 10 bug
59140         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
59141         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
59142         was the only bug.
59144         rename: fix Solaris 9 bug
59145         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
59146         on non-directory.  Avoid calling exit.
59147         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
59148         strdup.
59149         * modules/rename-tests (Depends-on): Drop lstat.
59150         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
59151         (gl_PREREQ_RENAME): Delete unused macro.
59153         rename-dest-slash: fix NetBSD bug
59154         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
59155         links.
59156         * modules/rename-dest-slash (Depends-on): Add same-inode.
59158         rename-tests: new test, exposes several platform bugs
59159         * modules/rename-tests: New file.
59160         * tests/test-rename.h: Likewise.
59161         * tests/test-rename.c: Likewise.
59162         * doc/posix-functions/rename.texi (rename): Improve documentation,
59163         including bugs that will eventually be fixed in gnulib.
59165 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
59167         * lib/uname.c: Include <stdlib.h>
59168         (uname): Assume version info is available.
59170 2009-10-02  Jim Meyering  <meyering@redhat.com>
59172         gnu-web-doc-update: correct --help output
59173         * build-aux/gnu-web-doc-update: Make --help output relevant.
59175         gnu-web-doc-update: add standard options
59176         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
59178         gnu-web-doc-update: New module.
59179         Use this script to automatically update the on-line web documentation
59180         for your GNU project at http://www.gnu.org/software/$pkg/manual/
59181         * modules/gnu-web-doc-update: New file, from coreutils.
59182         * build-aux/gnu-web-doc-update: New script.
59184 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
59186         link: LoadLibrary is not needed.
59187         * lib/link.c: Use GetModuleHandle.
59189 2009-10-01  Eric Blake  <ebb9@byu.net>
59191         getopt: bump serial number
59192         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
59193         change.
59195         tests: tighten link, rmdir, and remove tests
59196         * tests/test-link.h (includes): No need to use <config.h> here.
59197         Clean up if directory hard link was created, otherwise test for
59198         trailing '.'.
59199         * tests/test-linkat.c (main): Simplify.
59200         * tests/test-remove.c (main): Enhance test for trailing '.'.
59201         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59203 2009-10-01  Jim Meyering  <meyering@redhat.com>
59205         maint.mk: requiring "make major" was annoying, for a "minor" release.
59206         What is intended is "stable", to contrast with alpha and beta,
59207         so require "make stable", not "make major".
59208         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
59209         (get_tool_versions): Likewise.
59210         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
59212 2009-09-30  Ben Pfaff  <blp@gnu.org>
59214         Fix broken build of replacement for Windows tmpfile().
59215         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
59216         flags argument added along with the 'mkostemp' module.
59218 2009-09-28  Bruno Haible  <bruno@clisp.org>
59220         Avoid identifier clash with POSIX function 'remove' defined as a macro.
59221         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
59222         to 'remove_elt'.
59223         (gl_list_remove): Update.
59224         * lib/gl_list.c (gl_list_remove): Update.
59225         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
59226         to 'remove_elt'.
59227         (gl_oset_remove): Update.
59228         * lib/gl_list.c (gl_oset_remove): Update.
59229         Reported by Eric Blake.
59231 2009-09-28  Eric Blake  <ebb9@byu.net>
59233         doc: mention yet more cygwin 1.7 status
59234         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
59235         cygwin.
59236         * doc/glibc-functions/execvpe.texi (execvpe): New file.
59237         * doc/gnulib.texi (Glibc unistd.h): Mention it.
59239         argp: fix test failure
59240         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
59241         that are not upper-case.  Pass correct range to tolower.
59243 2009-09-27  Jim Meyering  <meyering@redhat.com>
59245         test-yesno: work around sparc-dash here-document infelicity
59246         Without this change, the literal \177 byte in a here document
59247         would make dash 0.5.5.1-3 access uninitialized memory.
59248         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
59249         Instead, use a marker, "@", and filter through tr to create the desired
59250         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
59252 2009-09-27  Bruno Haible  <bruno@clisp.org>
59254         Disable untested support for new flavours of ACLs on AIX.
59255         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
59256         progress.
59257         * lib/set-mode-acl.c (qset_acl): Likewise.
59259 2008-12-07  Bruno Haible  <bruno@clisp.org>
59261         Add support for new flavours of ACLs on AIX. (Untested.)
59262         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
59263         (file_has_acl): Add support for newer AIX.
59264         * lib/set-mode-acl.c (qset_acl): Likewise.
59265         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
59266         Rainer Tammer <tammer@tammer.net>.
59268 2009-09-26  Eric Blake  <ebb9@byu.net>
59270         argp: fix compilation of getopt
59271         * lib/getopt.in.h (includes): Use different guard than glibc.
59272         Reported by Sergey Poznyakoff.
59274         doc: mention more cygwin 1.7 status
59275         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
59276         bug.
59277         * doc/posix-functions/execl.texi (execl): Likewise.
59278         * doc/posix-functions/execle.texi (execle): Likewise.
59279         * doc/posix-functions/execlp.texi (execlp): Likewise.
59280         * doc/posix-functions/execv.texi (execv): Likewise.
59281         * doc/posix-functions/execve.texi (execve): Likewise.
59282         * doc/posix-functions/execvp.texi (execvp): Likewise.
59283         * doc/glibc-functions/canonicalize_file_name.texi
59284         (canonicalize_file_name): Cygwin 1.7 now provides this.
59285         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
59286         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
59287         on AT_SYMLINK_NOFOLLOW.
59289 2009-09-24  Eric Blake  <ebb9@byu.net>
59291         test-linkat: make test more robust
59292         * tests/test-linkat.c (main): Avoid collision with EEXIST.
59294         getopt: fix inclusion guards for cygwin
59295         * modules/getopt-posix (Depends-on): Add include-next.
59296         (Makefile.am): Substitute more items in replacement header.
59297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
59298         <getopt.h>.
59299         * lib/getopt.in.h (includes): Use split inclusion guard, and
59300         prefer <getopt.h> over include <unistd.h> when one is present.
59301         (option): Also override name of 'struct option'.
59303         same-inode: revert prior change; it is not yet ready
59304         * NEWS: Undo mention of this change.
59305         * lib/same-inode.h (same-inode.h): Undo tri-state change.
59306         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59307         * lib/cycle-check.c (cycle_check): Likewise.
59308         * lib/same.c (same_name): Likewise.
59309         * lib/at-func2.c (at_func2): Likewise.
59311 2009-09-23  Eric Blake  <ebb9@byu.net>
59313         linkat: new module
59314         * modules/linkat: New file.
59315         * lib/at-func2.c (at_func2): Likewise.
59316         * lib/linkat.c (linkat): Likewise.
59317         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59318         * lib/openat-priv.h (at_func2): Add declaration.
59319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59320         * modules/unistd (Makefile.am): Substitute them.
59321         * lib/unistd.in.h (linkat): Declare it.
59322         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59323         * doc/posix-functions/linkat.texi (linkat): Likewise.
59324         * doc/posix-functions/link.texi (link): Tweak wording.
59325         * tests/test-link.c (main): Move guts...
59326         * tests/test-link.h (test_link): ...into new file.
59327         * modules/linkat-tests: New test.
59328         * tests/test-linkat.c: Likewise.
59329         * modules/link-tests (Files): Ship new file.
59330         (Depends-on): Add stdbool.
59332         dirname: add library-safe mdir_name
59333         * lib/dirname.h (mdir_name): New prototype.
59334         * lib/dirname.c (dir_name): Move guts...
59335         (mdir_name): ...to new function that avoids xalloc_die.
59337         fchdir: another mingw fix
59338         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
59339         * lib/fchdir.c (get_name): New helper method; skips canonicalize
59340         on mingw (where it has not yet been ported), and make it optional
59341         elsewhere.
59342         (_gl_register_fd): Use it.
59344         same-inode: make SAME_INODE tri-state, to port to mingw
59345         * NEWS: Mention this change.
59346         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
59347         st_ino always being 0.
59348         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59349         * lib/cycle-check.c (cycle_check): Likewise.
59350         * lib/same.c (same_name): Likewise.
59352         lstat: avoid mingw compilation error
59353         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
59354         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
59355         lstat ourselves.
59356         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
59357         was adequate.
59358         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
59359         the checks for lstat.
59360         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
59362         link: fix test failure on Solaris 9
59363         * lib/link.c (rpl_link): Don't assume link will catch bogus
59364         trailing slash on source.
59366         test-symlinkat: enhance test
59367         * tests/test-readlink.c (main): Move guts...
59368         * tests/test-readlink.h (test_readlink): ...into new file.
59369         * tests/test-symlink.c (main): Move guts...
59370         * tests/test-symlink.h (test_symlink): ...into new file.
59371         * tests/test-symlinkat.c (main): Use new files for further
59372         coverage.
59373         (do_symlink, do_readlink): New helper functions.
59374         * modules/symlink-tests (Files): Ship new file.
59375         (Depends-on): Add stdbool.
59376         * modules/readlink-tests (Files): Ship new file.
59377         (Depends-on): Add stdbool.
59378         * modules/symlinkat-tests (Files): Use new files.
59380 2009-09-23  Eric Blake  <ebb9@byu.net>
59382         readlink: document portability issue with symlink length
59383         * doc/posix-functions/lstat.texi (lstat): Mention that some file
59384         systems have bogus st_size on symlinks, and mention the
59385         areadlink-with-size module.
59386         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59387         * doc/posix-functions/readlink.texi (readlink): Mention the
59388         areadlink module, and ERANGE failure.
59389         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59390         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
59392         readlink: fix Solaris 9 bug with trailing slash
59393         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
59394         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
59395         * doc/posix-functions/readlink.texi (readlink): Document this.
59396         * modules/readlink-tests: New test.
59397         * tests/test-readlink.c: Likewise.
59399         readlink: fix cygwin 1.5.x bug with return type
59400         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
59401         * lib/unistd.in.h (readlink): Use ssize_t.
59402         * lib/readlink.c (readlink): Likewise.
59403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59404         * modules/unistd (Makefile.am): Substitute it.
59405         * lib/unistd.in.h (readlink): Declare replacement.
59406         * doc/posix-functions/readlink.texi (readlink): Document this.
59408         symlink: use throughout gnulib
59409         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
59410         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
59411         symlink is not used.
59412         * modules/symlinkat (Depends-on): Add symlink.
59413         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
59414         * modules/canonicalize-tests (Depends-on): Likewise.
59415         * modules/lstat-tests (Depends-on): Likewise.
59416         * modules/openat-tests (Depends-on): Likewise.
59417         * modules/remove-tests (Depends-on): Likewise.
59418         * modules/rmdir-tests (Depends-on): Likewise.
59419         * modules/unlink-tests (Depends-on): Likewise.
59420         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
59421         * tests/test-canonicalize.c (symlink): Likewise.
59422         * tests/test-fstatat.c (symlink): Likewise.
59423         * tests/test-lstat.c (symlink): Likewise.
59424         * tests/test-remove.c (symlink): Likewise.
59425         * tests/test-rmdir.c (symlink): Likewise.
59426         * tests/test-unlink.c (symlink): Likewise.
59427         * tests/test-unlinkat.c (symlink): Likewise.
59429         symlink: new module, for Solaris 9 bug
59430         * modules/symlink: New file.
59431         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59432         * lib/symlink.c: Likewise.
59433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59434         * modules/unistd (Makefile.am): Substitute them.
59435         * lib/unistd.in.h (symlink): Declare replacement.
59436         * MODULES.html.sh (File system functions): Mention it.
59437         * doc/posix-functions/symlink.texi (symlink): Likewise.
59438         * modules/symlink-tests: New test.
59439         * tests/test-symlink.c: Likewise.
59441 2009-09-23  Bruno Haible  <bruno@clisp.org>
59443         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
59444         when needed.
59445         Test case: gnulib-tool --import --with-tests atexit inttypes.
59446         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
59448 2009-09-23  Bruno Haible  <bruno@clisp.org>
59450         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
59451         subcommand, not in a subshell.
59453 2009-09-22  Eric Blake  <ebb9@byu.net>
59455         unistd: sort replacement declarations
59456         * lib/unistd.in.h: Sort declarations.
59458         open, openat: minor optimization
59459         * lib/open.c (open): If open succeeded, len is non-zero.
59460         * lib/openat.c (rpl_openat): Likewise.
59462         link-follow: ensure correct result
59463         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
59464         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
59465         distinguish between possible failures.
59467 2009-09-21  Eric Blake  <ebb9@byu.net>
59469         fts: avoid compiler warning
59470         * lib/fts.c (dirent_inode_sort_may_be_useful)
59471         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
59473 2009-09-19  Bruno Haible  <bruno@clisp.org>
59475         * lib/progreloc.c (canonicalize_file_name): New declaration.
59477 2009-09-19  Eric Blake  <ebb9@byu.net>
59479         link: fix quoting
59480         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
59482         openat: fix openat bugs on Solaris 9
59483         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
59484         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
59485         * modules/openat (Depends-on): Add open.
59486         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
59487         * modules/fcntl-h (Makefile.am): Substitute it.
59488         * lib/fcntl.in.h (openat): Declare replacement.
59489         * doc/posix-functions/openat.texi (openat): Document this.
59491         openat: move fstatat and unlinkat into correct files
59492         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
59493         compiled.
59494         * lib/openat.c (fstatat, unlinkat): Move...
59495         * lib/fstatat.c (fstatat): ...into correct files.
59496         * lib/unlinkat.c (unlinkat): Likewise.
59498         openat: fix unlinkat bugs on Solaris 9
59499         * lib/unlinkat.c (unlinkat): New file.
59500         * modules/openat (Depends-on): Add unlink.
59501         (Files): Distribute it.
59502         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
59503         trailing slash behavior is broken.
59504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59505         * modules/unistd (Makefile.am): Substitute it.
59506         * lib/unistd.in.h (unlinkat): Declare replacement.
59507         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
59509         openat: fix fstatat bugs on Solaris 9
59510         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
59511         stat.
59512         * doc/posix-functions/fstatat.texi (fstatat): Document this.
59514         test-unlinkat: enhance test, to expose Solaris 9 bug
59515         * tests/test-unlink.c (main): Factor guts...
59516         * tests/test-unlink.h (test_rmdir_func): ...into new file.
59517         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
59518         * tests/test-rmdir.c (main): Adjust caller.
59519         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
59520         (unlinker): New helper function.
59521         (rmdirat): Enhance check.
59522         * modules/rmdir-tests (Depends-on): Add stdbool.
59523         * modules/unlink-tests (Depends-on): Likewise.
59524         (Files): Add test-unlink.h.
59525         * modules/openat-tests (Files): Likewise.
59526         (Depends-on): Add unlinkdir.
59528         test-fstatat: new test, to expose Solaris 9 bugs
59529         * tests/test-stat.c (main): Factor guts...
59530         * tests/test-stat.h (test_stat_func): ...into new file.
59531         * tests/test-lstat.c (main): Factor guts...
59532         * tests/test-lstat.h (test_lstat_func): ...into new file.
59533         * tests/test-fstatat.c: New file.
59534         * modules/stat-tests (Files): Add test-stat.h.
59535         * modules/lstat-tests (Files): Add test-lstat.h.
59536         (Depends-on): Add stdbool.
59537         * modules/openat-tests (Depends-on): Add pathmax.
59538         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
59539         (Makefile.am): Run new test.
59541         remove: new module, for mingw and Solaris 9 bugs
59542         * modules/remove: New file.
59543         * lib/remove.c: Likewise.
59544         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
59545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
59546         * modules/stdio (Makefile.am): Use them.
59547         * lib/stdio.in.h (remove): Declare replacement.
59548         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59549         * doc/posix-functions/remove.texi (remove): Likewise.
59550         * modules/remove-tests: New test.
59551         * tests/test-remove.c: Likewise.
59553         unlink: new module, for Solaris 9 bug
59554         * modules/unlink: New file.
59555         * lib/unlink.c: Likewise.
59556         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59558         * modules/unistd (Makefile.am): Use them.
59559         * lib/unistd.in.h (stat): Declare replacement.
59560         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59561         * doc/posix-functions/unlink.texi (unlink): Likewise.
59562         * modules/unlink-tests: New test.
59563         * tests/test-unlink.c: Likewise.
59565         lstat: fix Solaris 9 bug
59566         * lib/lstat.c (lstat): Also check for trailing slash on
59567         non-symlink, non-directories.  Use stat module to simplify logic.
59568         * doc/posix-functions/lstat.texi (lstat): Document it.
59569         * modules/lstat-tests (Depends-on): Add errno, same-inode.
59570         (configure.ac): Check for symlink.
59571         * tests/test-lstat.c (main): Add more tests.
59573         stat: add as dependency to other modules
59574         * modules/chown (Depends-on): Add stat.
59575         * modules/euidaccess (Depends-on): Likewise.
59576         * modules/fchdir (Depends-on): Likewise.
59577         * modules/isdir (Depends-on): Likewise.
59578         * modules/link (Depends-on): Likewise.
59579         * modules/lstat (Depends-on): Likewise.
59580         * modules/mkdir-p (Depends-on): Likewise.
59581         * modules/modechange (Depends-on): Likewise.
59582         * modules/open (Depends-on): Likewise.
59583         * modules/readlink (Depends-on): Likewise.
59584         * modules/same (Depends-on): Likewise.
59586         stat: fix Solaris 9 bug
59587         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
59588         slash.
59589         * lib/stat.c (rpl_stat): Work around it.
59590         * doc/posix-functions/stat.texi (stat): Update documentation.
59592         stat: new module, for mingw bug
59593         * modules/stat: New file.
59594         * lib/stat.c: Likewise.
59595         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59597         * modules/sys_stat (Makefile.am): Use them.
59598         * lib/sys_stat.in.h (stat): Declare replacement.
59599         * lib/openat.c (fstatat): Deal with lstat and stat being function
59600         macros.
59601         * modules/openat (Depends-on): Add inline.
59602         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59603         * doc/posix-functions/stat.texi (stat): Likewise.
59604         * modules/stat-tests: New test.
59605         * tests/test-stat.c: Likewise.
59607 2009-09-19  Jim Meyering  <meyering@redhat.com>
59609         syntax-check: detect unnecessary inclusion of canonicalize.h
59610         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
59612 2009-09-19  Eric Blake  <ebb9@byu.net>
59614         canonicalize-lgpl: adjust clients to use correct header
59615         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
59616         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
59617         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
59618         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
59619         * lib/progreloc.c (includes): Likewise.
59621 2009-09-19  Jim Meyering  <meyering@redhat.com>
59623         test-posixtm.c: correct a comment
59624         * tests/test-posixtm.c: Correct first-line comment.
59625         Spotted by Eric Blake.
59627 2009-09-16  Jim Meyering  <meyering@redhat.com>
59629         posixtm-tests: make T const-correct; add a test case
59630         * tests/test-posixtm.c (T): Declare const.
59631         Add a test for -(2^31+1).
59632         Remove useless can-succeed-only-in-2002 test.
59634         posixtm-tests: adjust the sole failing test
59635         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
59636         expected output matches what mktime now produces.  Cross-checked via
59637         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
59639         posixtm: move #ifdef'd tests into a new module
59640         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
59641         * tests/test-posixtm.c: ... this new file.
59642         * modules/posixtm-tests: New module.
59644 2009-09-19  Eric Blake  <ebb9@byu.net>
59646         openat: simplify use of at-func.c
59647         * lib/at-func.c (includes): Include prerequisites here, to
59648         simplify requirements on client files.
59649         * lib/openat-priv.h: Add double-inclusion guard.
59650         * lib/faccessat.c (includes): Simplify.
59651         * lib/fchmodat.c (includes): Likewise.
59652         * lib/fchownat.c (includes): Likewise.
59653         * lib/mkdirat.c (includes): Likewise.
59654         * lib/mkfifoat.c (includes): Likewise.
59655         * lib/symlinkat.c (includes): Likewise.
59657         openat: allow return of fd 0
59658         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
59659         * modules/save-cwd (Depends-on): Replace fcntl-safer with
59660         unistd-safer.
59661         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
59662         <fcntl.h>; this module does not leak fds.
59663         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
59664         must be allowed to return 0, leaving openat_safer to add the
59665         safety.
59666         (openat_permissive): Avoid writing to just-opened fd 2 if
59667         restoring the current directory fails.
59668         * lib/openat-die.c (openat_restore_fail): Add comment.
59669         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
59670         (save_cwd): Guarantee safe fd, but without use of open_safer.
59671         * tests/test-openat.c: New test.
59672         * modules/openat-tests (Files, Makefile.am): Distribute and build
59673         new file.
59675         relocatable-prog-wrapper: fix build
59676         * modules/relocatable-prog-wrapper (Files): Update name of
59677         canonicalize m4 file, broken on 2009-09-17.
59678         Reported by emad hajjar <aleppos@hotmail.com>.
59680 2009-09-19  Bruno Haible  <bruno@clisp.org>
59682         * lib/safe-alloc.h: Use the standard header with GPL copyright.
59683         * lib/safe-alloc.c: Likewise.
59684         Reported by Ian Beckwith <ianb@erislabs.net>.
59686 2009-09-18  Bruno Haible  <bruno@clisp.org>
59688         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
59689         Reported by <erobles@sensacd.com.mx>.
59691 2009-09-17  Eric Blake  <ebb9@byu.net>
59693         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
59694         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
59695         slashes when checking if last component is missing.
59696         * tests/test-canonicalize.c (main): Test this.
59698         canonicalize, canonicalize-lgpl: honor // if distinct from /
59699         * modules/canonicalize (Files): Add double-slash-root.m4.
59700         * modules/canonicalize-lgpl (Files): Likewise.
59701         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
59702         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
59703         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
59704         fallback definition.
59705         (canonicalize_filename_mode): Use it to protect //.
59706         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
59707         (__realpath): Likewise.
59708         * tests/test-canonicalize.c (main): Test this.
59709         * tests/test-canonicalize-lgpl.c (main): Likewise.
59710         * modules/canonicalize-tests (Depends-on): Add same-inode.
59711         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
59713         canonicalize-lgpl: fix glibc bug with trailing slash
59714         * m4/canonicalize-lgpl.m4: Move contents...
59715         * m4/canonicalize.m4: ...here.
59716         (gl_CANONICALIZE_LGPL): Factor realpath check...
59717         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
59718         glibc 2.3.5 bug, fixed 2005-04-27.
59719         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
59720         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
59721         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
59722         * modules/canonicalize-lgpl (Files): Manage file rename.
59723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
59724         * modules/stdlib (Makefile.am): Substitute witness.
59725         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
59726         is needed.
59727         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
59728         replacement is required.
59729         * lib/canonicalize.c (canonicalize_file_name): Likewise.
59730         * doc/glibc-functions/canonicalize_file_name.texi
59731         (canonicalize_file_name): Document this.
59732         * doc/posix-functions/realpath.texi (realpath): Likewise.
59734         canonicalize-lgpl: reject non-directory with trailing slash
59735         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
59736         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
59737         catches failures in glibc 2.3.5.
59738         * tests/test-canonicalize.c (main): Likewise.
59740         canonicalize-lgpl: use native realpath if it works
59741         * lib/canonicalize-lgpl.c (realpath): Guard with
59742         FUNC_REALPATH_WORKS.
59743         * lib/stdlib.in.h (realpath): Make declaration optional based on
59744         HAVE_REALPATH.
59745         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
59746         native realpath works.
59747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
59748         * modules/stdlib (Makefile.am): Substitute witness.
59750         canonicalize, canonicalize-lgpl: use <stdlib.h>
59751         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
59752         (Include): Mention <stdlib.h>.
59753         (configure.ac): Mention functions we provide.
59754         * modules/canonicalize (configure.ac): Likewise.
59755         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
59756         realpath if canonicalize_file_name is missing.
59757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
59758         * modules/stdlib (Makefile.am): Substitute witnesses.
59759         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
59760         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
59761         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
59762         * NEWS: Document this.
59763         * doc/glibc-functions/canonicalize_file_name.texi
59764         (canonicalize_file_name): Likewise.
59765         * doc/posix-functions/realpath.texi (realpath): Likewise.
59766         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
59768         test-canonicalize: consolidate into single C program
59769         * tests/test-canonicalize.sh: Delete; move setup into...
59770         * tests/test-canonicalize.c (main): ...the program, making it
59771         easier to run in debugger.  Add some tests.
59772         * modules/canonicalize-tests (Files): Remove unused file.
59773         (Depends-on): Add progname.
59774         (configure.ac, Makefile.am): Simplify.
59776         test-canonicalize-lgpl: consolidate into single C program
59777         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
59778         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
59779         easier to run in debugger.  Add some tests.
59780         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
59781         (configure.ac, Makefile.am): Simplify.
59783         canonicalize: avoid resolvepath
59784         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
59785         unnecessary checks.
59786         * lib/canonicalize.c (includes): Simplify.
59787         (canonicalize_file_name): Drop resolvepath implementation.
59788         * modules/canonicalize (Depends-on): Drop filenamecat.
59790         canonicalize: don't lose errno
59791         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
59792         over calls to free.
59794         canonicalize: simplify errno handling
59795         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
59796         assignment.
59798         canonicalize, canonicalize-lgpl: update module dependencies
59799         * modules/canonicalize (Depends-on): Add extensions, lstat,
59800         pathmax, stdlib.
59801         (Files): Drop pathmax.h.
59802         (configure.ac): Adjust macro name.
59803         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
59804         lstat, stdlib, sys_stat.
59805         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
59806         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
59807         extensions.
59808         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
59809         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
59810         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
59811         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
59812         declaration, if available.
59813         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
59814         we can rely on the readlink module.
59815         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
59816         (includes): Use <unistd.h> unconditionally.
59818 2009-09-17  Eric Blake  <ebb9@byu.net>
59820         maint: make Include sections of modules consistent
59821         * modules/alloca: Use only header name; no need to list #include.
59822         * modules/alloca-opt: Likewise.
59823         * modules/arpa_inet: Likewise.
59824         * modules/canon-host: Likewise.
59825         * modules/configmake: Likewise.
59826         * modules/dirent: Likewise.
59827         * modules/eealloc: Likewise.
59828         * modules/environ: Likewise.
59829         * modules/fchdir: Likewise.
59830         * modules/fcntl: Likewise.
59831         * modules/fcntl-h: Likewise.
59832         * modules/gethrxtime: Likewise.
59833         * modules/gettime: Likewise.
59834         * modules/ignore-value: Likewise.
59835         * modules/inet_ntop: Likewise.
59836         * modules/inet_pton: Likewise.
59837         * modules/inttypes: Likewise.
59838         * modules/isnand-nolibm: Likewise.
59839         * modules/isnanf-nolibm: Likewise.
59840         * modules/mbchar: Likewise.
59841         * modules/mbfile: Likewise.
59842         * modules/mbiter: Likewise.
59843         * modules/mbuiter: Likewise.
59844         * modules/netdb: Likewise.
59845         * modules/netinet_in: Likewise.
59846         * modules/nproc: Likewise.
59847         * modules/pagealign_alloc: Likewise.
59848         * modules/poll: Likewise.
59849         * modules/printf-frexp: Likewise.
59850         * modules/pthread: Likewise.
59851         * modules/putenv: Likewise.
59852         * modules/random_r: Likewise.
59853         * modules/relocatable-prog: Likewise.
59854         * modules/search: Likewise.
59855         * modules/select: Likewise.
59856         * modules/selinux-h: Likewise.
59857         * modules/settime: Likewise.
59858         * modules/signal: Likewise.
59859         * modules/size_max: Likewise.
59860         * modules/socklen: Likewise.
59861         * modules/ssize_t: Likewise.
59862         * modules/stdarg: Likewise.
59863         * modules/stdbool: Likewise.
59864         * modules/stddef: Likewise.
59865         * modules/stdint: Likewise.
59866         * modules/stdio: Likewise.
59867         * modules/stdlib: Likewise.
59868         * modules/string: Likewise.
59869         * modules/strings: Likewise.
59870         * modules/sys_file: Likewise.
59871         * modules/sys_ioctl: Likewise.
59872         * modules/sys_select: Likewise.
59873         * modules/sys_socket: Likewise.
59874         * modules/sys_stat: Likewise.
59875         * modules/sys_time: Likewise.
59876         * modules/sys_times: Likewise.
59877         * modules/sys_utsname: Likewise.
59878         * modules/sys_wait: Likewise.
59879         * modules/sysexits: Likewise.
59880         * modules/time: Likewise.
59881         * modules/times: Likewise.
59882         * modules/tmpfile: Likewise.
59883         * modules/trim: Likewise.
59884         * modules/unistd: Likewise.
59885         * modules/wchar: Likewise.
59886         * modules/wctype: Likewise.
59888 2009-09-17  Bruno Haible  <bruno@clisp.org>
59890         Make getdate.y compile on QNX and NetBSD 5 / i386.
59891         * m4/getdate.m4 (gl_GETDATE): Conditionally define
59892         TIME_T_FITS_IN_LONG_INT.
59893         * lib/getdate.y (long_time_t): New type.
59894         (relative_time): Change type of 'seconds' field to long_time_t.
59895         (get_date): Update types of local variables. Check against overflow
59896         during conversion from long_time_t to time_t.
59897         Reported by Matt Kraai <kraai@ftbfs.org>
59898         and Hasso Tepper <hasso@netbsd.org>.
59900 2009-09-17  Bruno Haible  <bruno@clisp.org>
59902         * modules/COPYING: Update copyright years.
59903         * modules/README: Likeiwse.
59904         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
59905         Reported by Ian Beckwith <ianb@erislabs.net>.
59907 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
59909         * users.txt: Update references for gnuit package.
59911 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
59913         * m4/getdelim.m4: Fix typo in copyright line.
59915 2009-09-17  Bruno Haible  <bruno@clisp.org>
59917         * lib/atoll.c: Use the standard header with GPL copyright.
59918         * lib/argz.in.h: Likewise.
59919         * lib/glob.c: Likewise.
59920         * lib/glob-libc.h: Likewise.
59921         * lib/random_r.c: Likewise.
59922         * lib/siglist.h: Likewise.
59923         * lib/strsignal.c: Likewise.
59924         Reported by Ian Beckwith <ianb@erislabs.net>.
59926 2009-09-17  Eric Blake  <ebb9@byu.net>
59928         rmdir: ensure correct dependency order
59929         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
59931 2009-09-17  Bruno Haible  <bruno@clisp.org>
59933         Disable assertion that fails on NetBSD 5 / i386.
59934         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
59935         Reported by Sam Steingold <sds@gnu.org>
59936         and Hasso Tepper <hasso@netbsd.org>.
59938 2009-09-16  Eric Blake  <ebb9@byu.net>
59940         unlinkdir: port to mingw
59941         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
59942         on which no one can unlink a directory.
59944         stdlib: sort witness names
59945         * modules/stdlib (Makefile.am): Sort replacements.
59946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59947         * lib/stdlib.in.h: Likewise.
59949         parse-duration-tests: avoid link failure
59950         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
59951         LIBINTL.
59952         Reported by Tom G. Christensen.
59954         openat-tests: ensure unlinkat behaves like rmdir
59955         * tests/test-rmdir.c (main): Factor guts...
59956         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
59957         * modules/rmdir-tests (Files): Ship new file.
59958         * modules/openat-tests: New test.
59959         * tests/test-unlinkat.c: Likewise.
59961         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
59962         * modules/rmdir-errno (Status, Notice): Now obsolete.
59964         rmdir: work around cygwin 1.5.x and mingw bugs
59965         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
59966         * lib/rmdir.c (rmdir): Work around it.
59967         * modules/rmdir (Status, Notice): No longer obsolete.
59968         (Files): Add dos.m4.
59969         (Depends-on): Add unistd.
59970         (configure.ac): Set witnesses.
59971         (License): Relax to LGPLv2+.
59972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
59973         * modules/unistd (Makefile.am): Substitute witnesses.
59974         * lib/unistd.in.h (rmdir): Declare replacement.
59975         * doc/posix-functions/rmdir.texi (rmdir): Document this.
59976         * modules/rmdir-tests: New tests.
59977         * tests/test-rmdir.c: Likewise.
59979 2009-09-15  Eric Blake  <ebb9@byu.net>
59981         fchdir: improve use of replacement functions
59982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
59983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
59984         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
59985         REPLACE_CLOSEDIR.
59986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
59987         * modules/sys_stat (Makefile.am): Substitute correct witness.
59988         * modules/dirent (Makefile.am): Likewise.
59989         * modules/unistd (Makefile.am): Likewise.
59990         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
59991         * lib/unistd.in.h (dup): Likewise.
59992         * lib/sys_stat.in.h (fstat): Likewise.
59994         maint: ignore gnulib-tool temp files
59995         * .gitignore: Ignore files created during gnulib-tool --test.
59997 2009-09-13  Jim Meyering  <meyering@redhat.com>
59999         posixtm: don't reject a time that specify "60" as the number of seconds
60000         * lib/posixtm.c (posixtime): The code to reject invalid dates
60001         would also reject a time specified with the .60 suffix.
60002         But POSIX allows that, in order to accommodate leap seconds.
60003         So don't reject it.
60004         (main): Adjust tests accordingly.
60005         * modules/posixtm (Depends-on): Add stpcpy.
60007 2009-09-11  Jim Meyering  <meyering@redhat.com>
60009         announce-gen: include [$release_type] in emitted Subject:
60010         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
60011         e.g., [stable] in the emitted Subject: line.
60013 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60015         Remove obsolete macros from several modules.
60016         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
60017         obsolete Autoconf macros with their modern counterparts.
60018         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
60019         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
60020         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
60021         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60022         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
60023         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60025         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
60026         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
60027         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
60028         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
60029         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
60030         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
60031         * m4/sockets.m4 (gl_SOCKETS): Likewise.
60032         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
60033         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
60034         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60035         * m4/time_r.m4 (gl_TIME_R): Likewise.
60036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
60037         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
60038         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60040         Fix copyright header in build-aux scripts.
60041         * build-aux/git-version-gen: Fix copyright header to match GPLv3
60042         recommendation.
60043         * build-aux/ncftpput-ftp: Likewise.
60044         * build-aux/update-copyright: Likewise.
60046 2009-09-09  Eric Blake  <ebb9@byu.net>
60048         test-link: allow Linux choice of errno
60049         * tests/test-link.c (main): Relax test for alternate error.
60051         strndup: fix improper m4 caching
60052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
60053         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
60054         (gl_PREREQ_STRNDUP): Delete.
60055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
60056         * modules/string (Makefile.am): Substitute it.
60057         * lib/string.in.h (strndup): Modernize prototype.
60059         getcwd: port to mingw
60060         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
60061         different from the POSIX assumptions made throughout the getcwd
60062         module; fortunately, the mingw getcwd does not need replacement.
60063         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
60064         * modules/getcwd-tests: New test.
60065         * tests/test-getcwd.c: Likewise.
60067         link: fix platform bugs
60068         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
60069         * lib/link.c (link): Work around them.  Fix related mingw bug.
60070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
60071         * modules/unistd (Makefile.am): Substitute it.
60072         * lib/unistd.in.h (link): Declare replacement.
60073         * doc/posix-functions/link.texi (link): Document this.
60074         * modules/link (Depends-on): Add strdup-posix, sys_stat.
60076         test-link: consolidate into single C program, test more cases
60077         * tests/test-link.sh: Delete.
60078         * tests/test-link.c: Test more error conditions.  Exposes bugs on
60079         at least Cygwin and Solaris.
60080         * modules/link-tests (Files): Remove unused file.
60081         (Depends-on): Add errno, sys_stat.
60082         (Makefile.am): Simplify.
60084 2009-09-08  Bruno Haible  <bruno@clisp.org>
60086         Work around towlower, towupper bug on mingw.
60087         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
60088         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
60089         * doc/posix-functions/towlower.texi: Mention the mingw bug.
60090         * doc/posix-functions/towupper.texi: Likewise.
60091         Reported by Eric Blake.
60093 2009-09-08  Jim Meyering  <meyering@redhat.com>
60095         build: don't try to run autoheader if we don't use it
60096         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
60097         is not used in configure.ac.
60099 2009-09-08  Eric Blake  <ebb9@byu.net>
60101         euidaccess: fix compilation error
60102         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
60104         rawmemchr: relax license
60105         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
60106         okay.
60107         Reported by Jim Meyering.
60109         mkfifoat: new module
60110         * modules/mkfifoat: New file.
60111         * lib/mkfifoat.c: Likewise.
60112         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
60113         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60114         * modules/sys_stat (Makefile.am): Use them.
60115         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
60116         * MODULES.html.sh (File system functions): Mention module.
60117         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
60118         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
60119         * modules/mkfifoat-tests: New test.
60120         * tests/test-mkfifoat.c: Likewise.
60122         strchrnul: relax license
60123         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
60124         okay.
60125         Reported by Jim Meyering.
60127 2009-09-08  Eric Blake  <ebb9@byu.net>
60129         fstatat: fix compilation on Solaris
60130         * lib/fstatat.c (includes): Add fcntl.h.
60131         Reported by Pádraig Brady.
60133 2009-09-07  Eric Blake  <ebb9@byu.net>
60135         rename: modernize replacement
60136         * modules/rename (Depends-on): Add stdio.
60137         (configure.ac): Declare witness.
60138         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
60139         stdio take care of replacement.
60140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
60141         * modules/stdio (Makefile.am): Substitute them.
60142         * lib/stdio.in.h (rename): Declare replacement.
60143         * lib/rename.c (includes): Allow cross-compilation to non-windows
60144         machines.
60145         * doc/posix-functions/rename.texi (rename): Improve
60146         documentation.
60148         stdio: sort witness names
60149         * modules/stdio (Makefile.am): Sort replacements.
60150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60151         * lib/stdio.in.h: Likewise.
60153         getcwd: minor cleanups
60154         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
60155         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
60157         openat: provide more convenience names
60158         * modules/faccessat (configure.ac): Add C witness.
60159         * lib/unistd.in.h (readlinkat): Fix typo.
60160         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
60161         convenience wrappers.
60162         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
60163         wrappers in syntax checks.
60165 2009-09-06  Eric Blake  <ebb9@byu.net>
60167         doc: fix comments in recent patches
60168         * lib/faccessat.c: Mention correct function.
60169         * lib/fchmodat.c: Likewise.
60170         * lib/fchownat.c: Likewise.
60171         * lib/symlinkat.c: Likewise.
60172         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
60173         constants.
60175         faccessat, symlinkat: continue cleanup of previous patch
60176         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
60177         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60178         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
60179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
60180         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
60181         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
60182         set.
60184 2009-09-06  Bruno Haible  <bruno@clisp.org>
60186         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
60187         (fstatat): Declare if GNULIB_FSTATAT is set.
60188         (mkdirat): Declare if GNULIB_MKDIRAT is set.
60189         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
60190         (unlinkat): Declare if GNULIB_UNLINKAT is set.
60191         * modules/fcntl-h (Files): Remove m4/openat.m4.
60192         * modules/sys_stat (Files): Remove m4/openat.m4.
60193         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
60194         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
60195         * modules/unistd (Files): Remove m4/openat.m4.
60196         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
60197         GNULIB_OPENAT.
60198         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
60199         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
60200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
60201         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
60202         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
60203         gl_OPENAT_DEFAULTS.
60204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
60205         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
60206         Don't require gl_OPENAT_DEFAULTS.
60207         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
60208         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
60209         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
60210         (gl_OPENAT_DEFAULTS): Remove macro.
60212 2009-09-06  Bruno Haible  <bruno@clisp.org>
60214         * modules/openat (configure.ac): Remove unneeded witness.
60216 2009-09-06  Bruno Haible  <bruno@clisp.org>
60218         Set errno to ENOSYS when a function is entirely unsupported.
60219         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
60220         EOPNOTSUPP.
60221         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
60222         * modules/chown (Depends-on): Remove errno.
60224 2009-09-06  Bruno Haible  <bruno@clisp.org>
60226         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
60228 2009-09-06  Bruno Haible  <bruno@clisp.org>
60230         * lib/sys_stat.in.h: Fix preprocessor command indentation.
60232 2009-09-06  Ben Pfaff  <blp@gnu.org>
60233             Bruno Haible  <bruno@clisp.org>
60235         Work around a glibc bug in strtok_r.
60236         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
60237         Undefine if UNDEFINE_STRTOK_R is set.
60238         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
60239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60240         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
60241         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
60242         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
60243         UNDEFINE_STRTOK_R.
60244         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
60246 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
60248         exclude: minor fix
60249         * lib/exclude.c: Include wctype.h
60251 2009-09-06  Akim Demaille  <demaille@gostai.com>
60253         bootstrap: improve error message
60254         * build-aux/bootstrap (find_tool): Upon failure, report the list
60255         of candidates.
60256         Honor the initial value of the envvar.
60258 2009-09-05  Eric Blake  <ebb9@byu.net>
60260         symlinkat: new module
60261         * modules/symlinkat: New file.
60262         * lib/symlinkat.c: Likewise.
60263         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
60264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60265         * modules/unistd (Makefile.am): Use them.
60266         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
60267         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
60268         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
60269         * MODULES.html.sh (File system functions): Mention module.
60270         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60271         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60272         * modules/symlinkat-tests: New test.
60273         * tests/test-symlinkat.c: Likewise.
60275         test-openat-safer: add more checks
60276         * tests/test-openat-safer.c (main): Check more code paths.
60278 2009-09-05  Jim Meyering  <meyering@redhat.com>
60280         syntax-check: detect unnecessary inclusion of openat.h
60281         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
60283 2009-09-05  Bruno Haible  <bruno@clisp.org>
60285         Support towlower, towupper.
60286         * doc/posix-functions/towlower.texi: Mention module wctype.
60287         * doc/posix-functions/towupper.texi: Likewise.
60288         * lib/wctype.in.h (towlower, towupper): New functions.
60289         * tests/test-wctype.c: Include stdio.h, stdlib.h.
60290         (ASSERT): New macro.
60291         (e): New variable.
60292         (main): Test also towlower, towupper. Test WEOF argument.
60293         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60295 2009-09-05  Bruno Haible  <bruno@clisp.org>
60297         Fix conversion behaviour when the input is invalid.
60298         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
60299         mark occurring in first pass of indirect conversion.
60300         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
60301         input.
60302         Found by clang's static analyzer.
60304 2009-09-05  Bruno Haible  <bruno@clisp.org>
60306         * tests/test-striconveh.c (main): Test indirect conversion on platforms
60307         where direct conversion is possible.
60309 2009-09-04  Eric Blake  <ebb9@byu.net>
60311         openat: fail with ENOENT on empty name
60312         * lib/openat-proc.c (openat_proc_name): Special-case the empty
60313         buffer.
60315         link-follow: fix logic bug in prior patch
60316         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
60317         reversed sense of yes and no in prior patch.  Avoid confusing
60318         compilation failure with desired semantics.
60320         link-follow: accommodate mingw and cross-compilation
60321         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
60322         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
60323         cross-compilation results to -1, to make linkat easier to
60324         implement when cross-compiling.  Trivially support mingw.
60325         * modules/link-follow (configure.ac): Call new name.
60326         * NEWS: Mention this.
60328 2009-09-03  Eric Blake  <ebb9@byu.net>
60330         faccessat: compile replacement
60331         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
60332         needed.
60334         fts: fix compilation error
60335         * lib/fts.c (includes): Re-add "openat.h", for
60336         openat_needs_fchdir.
60338         faccessat: new module
60339         * modules/faccessat: New file.
60340         * lib/faccessat.c: Likewise.
60341         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60343         * modules/unistd (Makefile.am): Use it.
60344         * lib/unistd.in.h (faccessat): Declare it.
60345         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
60346         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
60347         * MODULES.html.sh (File system functions): Mention it.
60348         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
60349         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60351         euidaccess: prefer POSIX over non-standard implementation
60352         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
60353         * lib/euidaccess.c (euidaccess): Use it if available.
60355         openat: make template easier to use
60356         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
60357         AT_FUNC_F2 to be undefined.
60358         (VALIDATE_FLAG): New macro; use it to reject bad flags.
60359         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
60360         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
60361         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
60362         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
60363         Likewise.
60364         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
60365         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
60366         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
60367         Likewise.
60369         openat: declare in POSIX headers
60370         * NEWS: Mention this.
60371         * modules/openat (configure.ac): Declare witnesses.
60372         (Depends-on): Add fcntl-h, sys_stat, unistd.
60373         (Include): Mention correct headers.
60374         * modules/fcntl-h (Depends-on): Add link-warning.
60375         (Files): Add openat.m4.
60376         (Makefile.am): Substitute witnesses.
60377         * modules/sys_stat (Files, Makefile.am): Likewise.
60378         * modules/unistd (Files, Makefile.am): Likewise.
60379         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
60380         (gl_OPENAT_DEFAULTS): New macro.
60381         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
60382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
60383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
60384         (SYS_STAT_H): Remove unused variable.
60385         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
60386         * lib/fcntl--.h (includes): Remove unneeded header.
60387         * lib/openat-safer.c (includes): Likewise.
60388         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
60389         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
60390         appropriate headers.
60391         (__OPENAT_PREFIX): Delete.
60392         * lib/fcntl.in.h (openat): Provide declaration.
60393         (AT_FDCWD): Fix Solaris bug.
60394         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
60395         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
60396         * lib/fchmodat.c (includes):  Adjust to find declaration.
60397         * lib/fchownat.c (includes): Likewise.
60398         * lib/mkdirat.c (includes): Likewise.
60399         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
60400         still visible.
60402 2009-09-02  Eric Blake  <ebb9@byu.net>
60404         errno: use consistently
60405         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
60406         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
60407         * lib/canonicalize.c (ELOOP): Likewise.
60408         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
60409         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
60410         * lib/lchown.c (EOPNOTSUPP): Likewise.
60411         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
60412         * lib/savewd.c (ESTALE): Likewise.
60413         * lib/settime.c (ENOSYS): Likewise.
60414         * lib/utimens.c (ENOSYS): Likewise.
60415         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
60416         * lib/chdir-safer.c (ELOOP): Likewise.
60417         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
60418         * modules/c-stack (Depends-on): Add errno.
60419         * modules/canonicalize (Depends-on): Likewise.
60420         * modules/chdir-safer (Depends-on): Likewise.
60421         * modules/fdopendir (Depends-on): Likewise.
60422         * modules/inet_ntop (Depends-on): Likewise.
60423         * modules/inet_pton (Depends-on): Likewise.
60424         * modules/lchown (Depends-on): Likewise.
60425         * modules/openat (Depends-on): Likewise.
60426         * modules/savewd (Depends-on): Likewise.
60427         * modules/settime (Depends-on): Likewise.
60428         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
60430         fts: avoid leaking fds
60431         * modules/fts (Depends-on): Add cloexec.
60432         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
60433         flag.
60435         fts: make directory fds more robust
60436         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
60437         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
60439         backupfile, chdir-long, fts, savedir: make safer
60440         * lib/backupfile.c (includes): Use "dirent--.h", since
60441         numbered_backup can write to stderr during readdir.
60442         * lib/savedir.c (includes): Likewise.
60443         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
60444         emulation can write to stderr on failure.
60445         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
60446         * lib/getcwd.c: Document why opendir_safer is unused.
60447         * lib/glob.c: Likewise.
60448         * lib/scandir.c: Likewise.
60449         * lib/openat-proc.c: Likewise, for open_safer.
60450         * modules/backupfile (Depends-on): Add dirent-safer.
60451         * modules/savedir (Depends-on): Likewise.
60452         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
60453         * modules/chdir-long (Depends-on): Add openat-safer.
60455         openat-safer: new module
60456         * modules/openat-safer: New file.
60457         * lib/openat-safer.c: Likewise.
60458         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
60459         * lib/fcntl-safer.h (openat_safer): Declare.
60460         * lib/fcntl--.h (openat): Override.
60461         * MODULES.html.sh (File descriptor based I/O): Mention it.
60462         * lib/openat.h: Add double-inclusion guards.
60463         * lib/openat.c (includes): Only include "fcntl-safer.h", not
60464         "fcntl--.h", so we can implement openat.
60465         * modules/openat-safer-tests: New test.
60466         * tests/test-openat-safer.c: New file.
60468         dirent-safer: new module
60469         * modules/dirent-safer: New file.
60470         * lib/dirent--.h: Likewise.
60471         * lib/dirent-safer.h: Likewise.
60472         * lib/opendir-safer.c: Likewise.
60473         * m4/dirent-safer.m4: Likewise.
60474         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
60475         * modules/dirent-safer-tests: New test.
60476         * tests/test-dirent-safer.c: New file.
60477         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
60479         fdopendir: optimize on mingw
60480         * lib/unistd.in.h (_gl_directory_name): New prototype.
60481         * lib/fchdir.c (_gl_directory_name): Implement it.
60482         (fchdir): Use it to simplify implementation.
60483         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
60484         fchdir, when available, to avoid calling [f]chdir().
60486         fdopendir: split into its own module
60487         * lib/openat.c (fdopendir): Move...
60488         * lib/fdopendir.c: ...into new file.
60489         * modules/fdopendir: New module.
60490         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
60491         * modules/openat (Depends-on): Add fdopendir.
60492         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
60493         fdopendir here.
60494         * modules/savedir (Depends-on): Only need fdopendir, not full
60495         openat.
60496         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
60497         * lib/openat.h (fdopendir): Drop prototype.
60498         * lib/dirent.in.h (fdopendir): Provide prototype.
60499         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
60500         * modules/dirent (Makefile.am): Substitute them.
60501         * MODULES.html.sh (File system functions): Mention it.
60502         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
60503         * modules/fdopendir-tests: New file.
60504         * tests/test-fdopendir.c: Likewise.
60506         fchdir: use more consistent macro convention
60507         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
60508         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
60509         REPLACE_FCHDIR, rather than relying on config.h macros.
60510         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
60511         inside a single make-time REPLACE_FCHDIR block, rather than using
60512         the config.h FCHDIR_REPLACEMENT.
60513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
60514         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
60515         Manage fstat replacement.
60516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
60517         REPLACE_FCHDIR.
60518         * modules/sys_stat (Files): Add m4/unistd_h.m4.
60519         (Makefile.am): Substitute REPLACE_FCHDIR.
60520         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
60521         FCHDIR_REPLACEMENT.
60522         * lib/dup-safer.c (dup_safer): Likewise.
60523         * lib/dup2.c (rpl_dup2): Likewise.
60524         * lib/dup3.c (rpl_dup3): Likewise.
60525         * lib/open.c (rpl_open): Likewise.
60527         fchdir: simplify error handling, and support dup3
60528         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
60529         stdbool, malloc-posix, realloc-posix.
60530         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
60531         (ensure_dirs_slot): Return false on allocation failure.
60532         (rpl_dup2): Delete.
60533         (_gl_register_dup): New function.
60534         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
60535         (_gl_register_fd): Close fd on allocation failure.
60536         * lib/fcntl.in.h (_gl_register_fd): Update signature.
60537         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
60538         prototype.
60539         (rpl_dup2_fchdir): Delete prototype.
60540         * lib/open.c (open): Update caller.
60541         * lib/dup2.c (dup2): Track fchdir metadata.
60542         * lib/dup3.c (dup3): Likewise.
60543         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
60544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
60546 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60548         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
60549         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
60550         don't pass arguments to AC_OUTPUT.
60552 2009-09-02  Bruno Haible  <bruno@clisp.org>
60554         * modules/mkdtemp (License): Relicense under LGPLv2+.
60555         Reported by Paolo Bonzini.
60557 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60559         Replace uses of obsolete autoconf macros in Jim's modules.
60560         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
60561         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
60562         can evoke a warning from autoconf when run with -Wobsolete
60563         enabled.  They were declared obsolete for good reasons (see
60564         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
60565         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
60566         should not continue using the deprecated macros.
60567         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
60568         obsolete Autoconf macros with modern counterparts.
60569         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60570         * m4/dos.m4 (gl_AC_DOS): Likewise.
60571         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
60572         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60573         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
60574         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
60575         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
60576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
60577         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
60578         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
60579         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60580         Likewise.
60581         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
60582         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60583         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
60584         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
60585         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60586         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60588 2009-09-01  Eric Blake  <ebb9@byu.net>
60590         fchdir: fix off-by-one bug in previous patch
60591         * lib/fchdir.c (rpl_fstat): Use correct bounds.
60592         (_gl_unregister_fd): Delete useless if.
60594 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
60596         maint.mk: sort the list of syntax-check rules
60597         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
60598         easier to get a sense of progress when the rules are run sequentially
60599         and take a long time.
60601 2009-09-01  Simon Josefsson  <simon@josefsson.org>
60603         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
60604         * modules/netinet_in: Likewise.
60605         * modules/sys_file: Likewise.
60606         * modules/sys_ioctl: Likewise.
60607         * modules/sys_select: Likewise.
60608         * modules/sys_socket: Likewise.
60609         * modules/sys_stat: Likewise.
60610         * modules/sys_time: Likewise.
60611         * modules/sys_times: Likewise.
60612         * modules/sys_utsname: Likewise.
60613         * modules/sys_wait: Likewise.
60615 2009-09-01  Jim Meyering  <meyering@redhat.com>
60617         fts: help ensure that return values are not ignored
60618         * lib/fts_.h (__GNUC_PREREQ): Define.
60619         (__attribute_warn_unused_result__): Define.
60620         (fts_children, fts_close, fts_open, fts_read): Declare with
60621         __attribute_warn_unused_result__.
60623         fts: fts_close now fails also when closing a dir file descriptor fails
60624         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
60625         and propagate to caller, along with errno.
60627         announce-gen: correct formatting in --help output
60628         * build-aux/announce-gen (usage): Move the one-line description in
60629         --help output "up", to where it belongs, just after Usage:.
60631 2009-08-31  Eric Blake  <ebb9@byu.net>
60633         fchdir: port to mingw
60634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
60635         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
60636         opened, then use a substitute.
60637         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
60638         replacement.
60639         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
60640         (_gl_register_fd): No need to check stat if open already filters
60641         all directories.
60642         (fchdir): Fix error condition to match POSIX.
60643         * modules/fchdir (Depends-on): Add sys_stat.
60644         * doc/posix-functions/open.texi (open): Document the limitation.
60645         * modules/fchdir-tests: New file.
60646         * tests/test-fchdir.c: Likewise.
60648         canonicalize: allow cross-testing from cygwin to mingw
60649         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
60650         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
60651         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
60652         Likewise.
60653         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
60654         target does not support symlinks.
60655         * tests/test-canonicalize-lgpl.sh: Likewise.
60657         chown: avoid compilation warning on mingw
60658         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
60659         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
60660         mingw.
60661         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
60662         * modules/chown (Depends-on): Add errno.
60664 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
60666         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
60667         command.
60669 2009-08-31  Jim Meyering  <meyering@redhat.com>
60671         canonicalize: remove useless initialization
60672         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
60673         initialization of local, "end".
60675 2009-08-30  Bruno Haible  <bruno@clisp.org>
60677         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
60678         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
60679         ENOSYS.
60681 2009-08-30  Bruno Haible  <bruno@clisp.org>
60683         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
60684         /usr/xpg4/bin/tr when it exists.
60685         * tests/test-pipe-filter-gi1.sh: Likewise.
60687 2009-08-30  Bruno Haible  <bruno@clisp.org>
60689         Work around deficient /usr/bin/id program on Solaris.
60690         * tests/test-file-has-acl.sh (ID): New variable.
60691         * tests/test-set-mode-acl.sh (ID): Likewise.
60692         * tests/test-copy-acl.sh (ID): Likewise.
60693         * tests/test-copy-file.sh (ID): Likewise.
60695 2009-08-30  Bruno Haible  <bruno@clisp.org>
60697         New module 'xstriconveh'.
60698         * lib/xstriconveh.h: New file.
60699         * lib/xstriconveh.c: New file.
60700         * modules/xstriconveh: New file.
60702 2009-08-30  Bruno Haible  <bruno@clisp.org>
60704         Make it easier to use mem_cd_iconveh.
60705         * lib/striconveh.h (iconveh_t): New type.
60706         (iconveh_open, iconveh_close): New declarations.
60707         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
60708         with a single 'const iconveh_t *' argument.
60709         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
60710         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
60711         with a single 'const iconveh_t *' argument.
60712         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
60713         * tests/test-striconveh.c (main): Update.
60714         * NEWS: Mention the change.
60716 2009-08-30  Bruno Haible  <bruno@clisp.org>
60718         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
60719         problem.
60721 2009-08-30  Bruno Haible  <bruno@clisp.org>
60723         Work around iconv_open problem on Solaris.
60724         * lib/iconv_open-solaris.gperf: New file.
60725         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
60726         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
60727         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
60728         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
60729         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
60730         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
60732 2009-08-29  Jim Meyering  <meyering@redhat.com>
60734         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
60735         * top/maint.mk (cvs-check): Remove target; it was just an alias
60736         to the better-named vc-diff-check.
60737         (maintainer-distcheck): Remove rule.  It was used only from
60738         the (alpha/beta/major) target, and all of its commands but one
60739         were coreutils-specific.
60740         (vc-dist): Remove rule.
60741         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
60742         Run vc-diff-check, not vc-dist.
60743         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
60745 2009-08-27  Bruno Haible  <bruno@clisp.org>
60747         * tests/test-bitrotate.c (main): Remove test that uses a shift count
60748         of 0.
60750 2009-08-27  Bruno Haible  <bruno@clisp.org>
60752         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
60753         compilers.
60754         * doc/func.texi: Document the SunPRO C bug.
60756 2009-08-27  Bruno Haible  <bruno@clisp.org>
60758         Fix link error on Solaris.
60759         * tests/test-parse-duration.c (xstrdup): Remove function.
60761 2009-08-26  Pádraig Brady  <P@draigbrady.com>
60763         ignore-value: handle pointer types, too
60764         * lib/ignore-value.h (__attribute__): Remove definition.
60765         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
60766         of a more concise and more-often effective "(void) i" statement.
60767         (ignore_ptr): New function to suppress warnings from functions that
60768         return pointers, and to make it explicit that one function doesn't
60769         handle all cases.
60771 2009-08-25  Bruno Haible  <bruno@clisp.org>
60773         dup2: work around a Linux bug.
60774         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
60775         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
60776         * doc/posix-functions/dup2.texi: Mention the Linux bug.
60777         Reported by Simon Josefsson.
60779 2009-08-25  Jim Meyering  <meyering@redhat.com>
60781         libguestfs uses gnulib
60782         * users.txt: Add libguestfs.
60784 2009-08-24  Eric Blake  <ebb9@byu.net>
60786         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
60787         * lib/pipe2.c (includes): Add binary-io.h.
60788         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
60790 2009-08-24  Bruno Haible  <bruno@clisp.org>
60792         Tolerate declared but missing accept4 syscall.
60793         * lib/accept4.c (accept4): Invoke original accept4 function first, if
60794         available.
60795         * lib/sys_socket.in.h (accept4): If the function is already present,
60796         override it.
60797         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
60798         * modules/accept4 (Makefile.am): Compile accept4.c always.
60799         Reported by Paolo Bonzini and Eric Blake.
60801 2009-08-23  Bruno Haible  <bruno@clisp.org>
60803         New module 'accept4'.
60804         * lib/sys_socket.in.h (accept4): New declaration.
60805         * lib/accept4.c: New file.
60806         * m4/accept4.m4: New file.
60807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
60808         GNULIB_ACCEPT4, HAVE_ACCEPT4.
60809         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
60810         HAVE_ACCEPT4.
60811         * modules/accept4: New file.
60812         * doc/glibc-functions/accept4.texi: Mention the new module.
60814 2009-08-24  Jim Meyering  <meyering@redhat.com>
60816         progname: also set global program_invocation_name, when possible
60817         Before this change, a libtool-enabled program that calls glibc's
60818         error function would report the program name as
60819         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
60820         * modules/progname (configure.ac): Check for a declaration of
60821         program_invocation_name.
60822         * lib/progname.c:  Include <errno.h>.
60823         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
60824         Set program_invocation_name.
60826 2009-08-23  Bruno Haible  <bruno@clisp.org>
60828         * lib/dup3.c: Include <string.h>.
60830 2009-08-23  Bruno Haible  <bruno@clisp.org>
60832         * lib/dup3.c (dup3): Test only once whether the system actually exists.
60833         * lib/pipe2.c (pipe2): Likewise.
60834         Suggested by Eric Blake.
60836 2009-08-23  Bruno Haible  <bruno@clisp.org>
60838         Tolerate declared but missing dup3 syscall.
60839         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
60840         * lib/unistd.in.h (dup3): If the function is already present,
60841         override it.
60842         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
60843         * modules/dup3 (Makefile.am): Compile dup3.c always.
60844         Reported by Paolo Bonzini.
60846 2009-08-23  Bruno Haible  <bruno@clisp.org>
60848         Tolerate declared but missing pipe2 syscall.
60849         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
60850         available.
60851         * lib/unistd.in.h (pipe2): If the function is already present,
60852         override it.
60853         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
60854         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
60855         Reported by Paolo Bonzini.
60857 2009-08-23  Bruno Haible  <bruno@clisp.org>
60859         * lib/pipe2.c (pipe2): Move #ifs inside function.
60861 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
60863         quotearg: document limitations of quote_these_too
60864         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
60865         those limitations are created.
60866         * lib/quotearg.h (set_char_quoting): Document that digits and
60867         letters that are special after backslash are not permitted.
60868         (quotearg_char): Cross-reference set_char_quoting documentation.
60870 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
60872         quotearg: implement custom_quoting_style
60873         * lib/quotearg.c: (struct quoting_options): Add left_quote and
60874         right_quote fields.
60875         (set_custom_quoting): New public function.
60876         (quotearg_buffer_restyled): Add left_quote and right_quote
60877         arguments, handle them very much like locale quoting, and update
60878         all uses.
60879         (quotearg_n_custom): New public function.
60880         (quotearg_n_custom_mem): New public function.
60881         (quotearg_custom): New public function.
60882         (quotearg_custom_mem): New public function.
60883         * lib/quotearg.h: Prototype and document new public functions.
60884         (enum quoting_style): For escape_quoting_style and
60885         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
60886         ignored even though they're otherwise like c_quoting_style.
60887         Add custom_quoting_style member and document with comparison to
60888         clocale_quoting_style.
60889         * tests/test-quotearg.c (custom_quotes): New array.
60890         (custom_results): New array.
60891         (main): Extend to test custom quoting.
60893 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
60895         quotearg: fix right quote escaping when it's in quote_these_too
60896         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
60897         quote, be sure to prepend only one backslash.
60898         * tests/test-quotearg.c (use_quote_double_quotes): New function.
60899         (main): Test it.
60901 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
60903         quotearg-tests: test escaping of embedded locale quotes
60904         * tests/test-quotearg.c (struct result_strings): Add member for
60905         new input.
60906         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
60907         (inputs): Add new input.
60908         (results_g): Add expected results.
60909         (flag_results): Likewise.
60910         (locale_results): Likewise.
60911         (compare_strings): Check those.
60913 2009-08-23  Bruno Haible  <bruno@clisp.org>
60915         Tests for module 'dup3'.
60916         * modules/dup3-tests: New file.
60917         * tests/test-dup3.c: New file.
60919         New module 'dup3'.
60920         * lib/unistd.in.h (dup3): New declaration.
60921         * lib/dup3.c: New file.
60922         * m4/dup3.m4: New file.
60923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
60924         HAVE_DUP3.
60925         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
60926         * modules/dup3: New file.
60927         * doc/glibc-functions/dup3.texi: Mention the new module.
60929 2009-08-23  Bruno Haible  <bruno@clisp.org>
60931         Tweak the dup2 test.
60932         * tests/test-dup2.c (main): Create the test file empty. Verify that an
60933         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
60934         the test file is still empty. Fix argument order of lseek.
60936 2009-08-23  Bruno Haible  <bruno@clisp.org>
60938         Avoid test link errors when the modules getopt-gnu, gettext are used.
60939         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
60940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60942 2009-08-23  Bruno Haible  <bruno@clisp.org>
60944         Fix getdtablesize() on mingw.
60945         * lib/getdtablesize.c (getdtablesize): Implement differently.
60946         * lib/unistd.in.h (getdtablesize): Improve comment.
60948 2009-08-23  Bruno Haible  <bruno@clisp.org>
60950         New module 'mkostemp'.
60951         Based on Ulrich Drepper's 2007-08-10 change in glibc.
60952         * lib/stdlib.in.h (mksotemp): New declaration.
60953         * lib/mkostemp.c: New file, from glibc with modifications.
60954         * lib/tempname.h (GT_FILE): Remove outdated comment.
60955         (gen_tempname): Add flags argument.
60956         * lib/tempname.c (__GT_BIGFILE): Remove macro.
60957         (__GT_FILE): Map to 1.
60958         (small_open, large_open): Remove macros.
60959         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
60960         * lib/mkstemp.c (mkstemp): Update.
60961         * lib/mkdtemp.c (mkdtemp): Likewise.
60962         * m4/mkostemp.m4: New file.
60963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
60964         HAVE_MKOSTEMP.
60965         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
60966         HAVE_MKOSTEMP.
60967         * modules/mkostemp: New file, based on modules/mkstemp.
60968         * doc/glibc-functions/mkostemp.texi: Mention the new module.
60969         * NEWS: Mention the change.
60971 2009-08-23  Bruno Haible  <bruno@clisp.org>
60973         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
60974         Reported by Eric Blake.
60976 2009-08-23  Bruno Haible  <bruno@clisp.org>
60978         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
60979         Reported by Eric Blake.
60981 2009-08-23  Bruno Haible  <bruno@clisp.org>
60983         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
60984         * modules/pipe2 (Depends-on): Likewise.
60986 2009-08-23  Eric Blake  <ebb9@byu.net>
60988         fcntl-h: add O_TTY_INIT support
60989         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
60990         * tests/test-fcntl-h.c (o): Test it.
60991         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60993         fcntl-h: rename from fcntl, in preparation for fcntl(2)
60994         * modules/fcntl: Move <fcntl.h> header replacement...
60995         * modules/fcntl-h: ...to new name, so as not to collide with
60996         like-named function.
60997         * tests/test-fcntl.c: Rename...
60998         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
60999         * modules/fcntl-tests: Rename...
61000         * modules/fcntl-h-tests: ...to this.  Update test file name.
61001         * modules/chdir-long (Depends-on): Update clients.
61002         * modules/chdir-safer (Depends-on): Likewise.
61003         * modules/fcntl-safer (Depends-on): Likewise.
61004         * modules/fts (Depends-on): Likewise.
61005         * modules/mkancesdirs (Depends-on): Likewise.
61006         * modules/mkdir-p (Depends-on): Likewise.
61007         * modules/open (Depends-on): Likewise.
61008         * modules/savewd (Depends-on): Likewise.
61009         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
61010         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
61012 2009-08-22  Bruno Haible  <bruno@clisp.org>
61014         * modules/binary-io (License): Relicense under LGPL.
61015         * modules/pipe2 (License): Likewise.
61017 2009-08-22  Bruno Haible  <bruno@clisp.org>
61019         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
61020         return value.
61021         * lib/pipe-filter-gi.c (filter_init): Likewise.
61022         Reported by Eric Blake.
61024 2009-08-22  Bruno Haible  <bruno@clisp.org>
61026         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
61027         * modules/pipe (Depends-on): Add pipe2.
61029 2009-08-22  Bruno Haible  <bruno@clisp.org>
61031         Tests for module 'pipe2'.
61032         * modules/pipe2-tests: New file.
61033         * tests/test-pipe2.c: New file.
61035         New module 'pipe2'.
61036         * lib/unistd.in.h (pipe2): New declaration.
61037         * lib/pipe2.c: New file.
61038         * m4/pipe2.m4: New file.
61039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
61040         HAVE_PIPE2.
61041         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
61042         * modules/pipe2: New file.
61043         * doc/glibc-functions/pipe2.texi: Mention the new module.
61045 2009-08-22  Bruno Haible  <bruno@clisp.org>
61047         Reference some new glibc functions.
61048         * doc/glibc-functions/accept4.texi: New file.
61049         * doc/glibc-functions/dup3.texi: New file.
61050         * doc/glibc-functions/mkostemp.texi: New file.
61051         * doc/glibc-functions/pipe2.texi: New file.
61052         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
61053         (Glibc sys/socket.h): Refer to accept4.
61054         (Glibc unistd.h): Refer to dup3, pipe2.
61055         Reported by Eric Blake.
61057 2009-08-22  Jim Meyering  <meyering@redhat.com>
61058             Bruno Haible  <bruno@clisp.org>
61060         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
61061         This makes it so packages using automake-1.11's silent-rules option
61062         can print e.g., a single "GEN    configmake.h" line, rather than
61063         the 30+ statements that perform the job.  If you want to see the
61064         actual commands, you can still run "make V=1".
61065         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
61066         so that make output is abbreviated when those variables are defined
61067         appropriately.
61068         * modules/argz: Likewise.
61069         * modules/arpa_inet: Likewise.
61070         * modules/byteswap: Likewise.
61071         * modules/configmake: Likewise.
61072         * modules/dirent: Likewise.
61073         * modules/errno: Likewise.
61074         * modules/fcntl: Likewise.
61075         * modules/float: Likewise.
61076         * modules/fnmatch: Likewise.
61077         * modules/getopt-posix: Likewise.
61078         * modules/glob: Likewise.
61079         * modules/iconv_open: Likewise.
61080         * modules/inttypes: Likewise.
61081         * modules/localcharset: Likewise.
61082         * modules/locale: Likewise.
61083         * modules/math: Likewise.
61084         * modules/netdb: Likewise.
61085         * modules/netinet_in: Likewise.
61086         * modules/poll: Likewise.
61087         * modules/posix_spawnp-tests: Likewise.
61088         * modules/sched: Likewise.
61089         * modules/search: Likewise.
61090         * modules/selinux-h: Likewise.
61091         * modules/signal: Likewise.
61092         * modules/spawn: Likewise.
61093         * modules/stdarg: Likewise.
61094         * modules/stdbool: Likewise.
61095         * modules/stddef: Likewise.
61096         * modules/stdint: Likewise.
61097         * modules/stdio: Likewise.
61098         * modules/stdlib: Likewise.
61099         * modules/string: Likewise.
61100         * modules/strings: Likewise.
61101         * modules/sys_file: Likewise.
61102         * modules/sys_ioctl: Likewise.
61103         * modules/sys_select: Likewise.
61104         * modules/sys_socket: Likewise.
61105         * modules/sys_stat: Likewise.
61106         * modules/sys_time: Likewise.
61107         * modules/sys_times: Likewise.
61108         * modules/sys_utsname: Likewise.
61109         * modules/sys_wait: Likewise.
61110         * modules/sysexits: Likewise.
61111         * modules/time: Likewise.
61112         * modules/unistd: Likewise.
61113         * modules/wchar: Likewise.
61114         * modules/wctype: Likewise.
61116 2009-08-22  Jim Meyering  <meyering@redhat.com>
61118         announce-gen: detect write failure
61119         * build-aux/announce-gen: Add Coda at end.
61120         Remove equivalent-but-more-verbose block at top.
61122 2009-08-19  Akim Demaille  <demaille@gostai.com>
61124         bootstrap: --help to stdout.
61125         * bootstrap (usage): Don't send --help to stderr.
61126         Use a here doc instead of a long string.
61128 2009-08-21  Eric Blake  <ebb9@byu.net>
61130         test-popen-safer: split from test-popen
61131         * tests/test-popen.c (main): Move...
61132         * tests/test-popen.h: ...into new file.
61133         * tests/test-popen-safer2.c: New file.
61134         * modules/popen-tests (Files): Add test-popen.h.
61135         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
61136         Suggested by Bruno Haible.
61138         test-fcntl-safer: split from test-open
61139         * tests/test-open.c (main): Move...
61140         * tests/test-open.h: ...into new file.
61141         * tests/test-fcntl-safer.c: New file.
61142         * modules/open-tests (Files): Add test-open.h.
61143         * modules/fcntl-safer-tests: New file.
61144         Suggested by Bruno Haible.
61146         test-fopen-safer: split from test-fopen
61147         * tests/test-fopen.c (main): Move...
61148         * tests/test-fopen.h: ...into new file.
61149         * tests/test-fopen-safer.c: New file.
61150         * modules/fopen-tests (Files): Add test-fopen.h.
61151         * modules/fopen-safer-tests: New file.
61152         Suggested by Bruno Haible.
61154 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
61156         popen-safer: test O_CLOEXEC at run-time.
61157         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
61159 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
61161         fcntl: move more flags to the header
61162         * lib/cloexec.c: Do not define FD_CLOEXEC here.
61163         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
61164         * lib/fcntl.in.h: Do both things here.
61166 2009-08-21  Jim Meyering  <meyering@redhat.com>
61168         consistently remove $@-t before redirecting to it
61169         * modules/argz: Remove $@-t and $@ before redirecting to the former.
61170         * modules/alloca-opt: Likewise.
61171         * modules/byteswap: Likewise.
61172         * modules/fnmatch: Likewise.
61173         * modules/getopt-posix: Likewise.
61174         * modules/glob: Likewise.
61175         * modules/poll: Likewise.
61176         * modules/posix_spawnp-tests: Likewise.
61177         * modules/sys_socket: Likewise.
61178         * modules/sysexits: Likewise.
61180 2009-08-21  Eric Blake  <ebb9@byu.net>
61182         popen: simplify access to original popen
61183         * lib/popen.c (rpl_popen): No need to worry about popen being a
61184         macro.
61185         Reported by Bruno Haible.
61187 2009-08-20  Eric Blake  <ebb9@byu.net>
61189         build: avoid some compiler warnings
61190         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
61191         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
61192         type.
61193         (new_exclude_segment, excluded_file_pattern_p)
61194         (excluded_file_name_p): Reduce scope.
61195         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
61196         old-style declaration.
61198 2009-08-20  Simon Josefsson  <simon@josefsson.org>
61200         * tests/test-exclude1.sh: Handle Windows EOL.
61201         * tests/test-exclude2.sh: Likewise.
61202         * tests/test-exclude3.sh: Likewise.
61203         * tests/test-exclude4.sh: Likewise.
61204         * tests/test-exclude5.sh: Likewise.
61205         * tests/test-exclude6.sh: Likewise.
61206         * tests/test-exclude7.sh: Likewise.
61208 2009-08-19  Akim Demaille  <demaille@gostai.com>
61210         bootstrap: find sha1sum when named gsha1sum.
61211         * bootstrap (find_tool): New.
61212         ($SHA1SUM): New.
61213         Use it.
61215 2009-08-20  Jim Meyering  <meyering@redhat.com>
61217         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
61218         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
61219         expression that converts "." in a file name to "\." in the resulting
61220         regexp.  Start with a dummy statement, so that prior shell variable
61221         definitions are expanded portably.  Reported by Simon Josefsson.
61223 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
61225         Fix polling for writeability of a screen buffer.
61226         * lib/poll.c: Distinguish input and screen buffers for the
61227         Win32 implementation.
61228         * lib/select.c: Likewise.
61230 2009-08-19  Eric Blake  <ebb9@byu.net>
61232         popen-safer: prevent popen from clobbering std descriptors
61233         * modules/popen-safer: New file.
61234         * lib/popen-safer.c: Likewise.
61235         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
61236         * lib/stdio--.h (popen): Provide override.
61237         * lib/stdio-safer.h (popen_safer): Provide declaration.
61238         * tests/test-popen.c (includes): Partially test this.
61239         * modules/popen-safer-tests: New file, for more tests.
61240         * tests/test-popen-safer.c: Likewise.
61241         * MODULES.html.sh (file stream based Input/Output): Mention it.
61243         tests: test some of the *-safer modules
61244         * modules/fopen-safer (Depends-on): Add fopen.
61245         * modules/fcntl-safer (Depends-on): Add fcntl.
61246         * modules/stdlib-safer (Depends-on): Add stdlib.
61247         (configure.ac): Set indicator.
61248         * modules/unistd-safer (configure.ac): Likewise.
61249         * modules/tmpfile-safer (configure.ac): Likewise.
61250         (Depends-on): Add tmpfile.
61251         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
61252         active.
61253         * tests/test-fopen.c (includes): Test safer versions when they are
61254         in use.
61255         * tests/test-open.c (includes): Likewise.
61257         popen: fix cygwin 1.5 bug when stdin closed
61258         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
61259         * modules/popen: New file.
61260         * modules/popen-tests: Likewise.
61261         * tests/test-popen.c: Likewise.
61262         * m4/popen.m4: Likewise.
61263         * lib/popen.c: Likewise.
61264         * lib/stdio.in.h (popen): New declaration.
61265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
61266         * modules/stdio (Makefile.am): Likewise.
61267         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
61269 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
61271         maint.mk: give full control over update-copyright exclusions
61272         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
61273         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
61274         (update-copyright): Don't force inclusion of top-level
61275         ChangeLog.  Don't force exclusion of all COPYING files, but make
61276         them the default exclusion instead.
61278 2009-08-16  Bruno Haible  <bruno@clisp.org>
61280         Fix test failures on Solaris 10.
61281         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
61282         tests when Solaris iconv() is used.
61283         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61284         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61285         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61286         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61287         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61289 2009-08-16  Bruno Haible  <bruno@clisp.org>
61291         Fix test failures on Solaris 10.
61292         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
61293         'tr' program and pass it as first argument.
61294         * tests/test-pipe-filter-gi1.sh: Likewise.
61295         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
61296         program as first argument.
61297         * tests/test-pipe-filter-gi1.c (main): Likewise.
61299 2009-08-16  Eric Blake  <ebb9@byu.net>
61301         fpurge: fix previous commits
61302         * modules/fpurge (Makefile.am): Make replacement conditional,
61303         partially reverting 2007-04-29 change; missed in previous
61304         attempt.
61305         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
61306         is missing.
61308 2009-08-16  Bruno Haible  <bruno@clisp.org>
61310         Clarify fpurge's effect on the file position.
61311         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
61312         * tests/test-fpurge.c (main): Make a second pass for checking the file
61313         position.
61315 2009-08-16  Bruno Haible  <bruno@clisp.org>
61317         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
61318         declaration of fpurge is missing.
61319         * tests/test-fpurge.c (main): Check that the file has not more contents
61320         than expected. Close the file before removing it.
61322 2009-08-15  Eric Blake  <ebb9@byu.net>
61324         fpurge: don't wrap working cygwin implementation
61325         * lib/fpurge.c (fpurge): Fix comment typo.
61326         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
61327         1.7 to avoid replacement.
61328         * tests/test-fpurge.c (main): Enhance test.
61330 2009-08-15  Eric Blake  <ebb9@byu.net>
61331         and Jim Meyering  <meyering@redhat.com>
61333         test-update-copyright: skip if perl is insufficient
61334         * tests/test-update-copyright.sh: Failure to run maintainer tool
61335         should not cause testsuite failure on cygwin 1.5.
61337 2009-08-14  Eric Blake  <ebb9@byu.net>
61339         doc: mention more functions added in cygwin 1.7.0
61340         * doc/posix-headers/limits.texi (limits.h): Update for recent
61341         cygwin additions.
61342         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
61343         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
61344         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
61345         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
61346         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
61348 2009-08-14  Eric Blake  <ebb9@byu.net>
61350         maint.mk: simplify update-copyright rule
61351         * top/maint.mk (update-copyright-local): Delete, and document how
61352         to do it in cfg.mk instead.
61353         (update-copyright-exclude-regexp): Delete, and document how to do
61354         it in .x-update-copyright instead.
61355         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
61356         exclude ChangeLog.
61358 2009-08-14  Bruno Haible  <bruno@clisp.org>
61360         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
61362 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61364         maint.mk: support update-copyright-env
61365         * top/maint.mk (update-copyright-env): Define place-holder.
61366         (update-copyright): Expand $(update-copyright-env) before
61367         invoking update-copyright.
61369 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61371         update-copyright: implement forced reformatting
61372         * build-aux/update-copyright: Implement and document
61373         UPDATE_COPYRIGHT_FORCE.
61374         * tests/test-update-copyright.sh: Test it.
61376 2009-08-14  Eric Blake  <ebb9@byu.net>
61377         and Bruno Haible  <bruno@clisp.org>
61379         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
61380         * tests/test-locale.c: Revert previous patch related to NULL.
61381         * tests/test-stdio.c: Likewise.
61382         * tests/test-stdlib.c: Likewise.
61383         * tests/test-string.c: Likewise.
61384         * tests/test-unistd.c: Likewise.
61385         * modules/time-tests (Depends-on): Add verify.
61386         * modules/wchar-tests (Depends-on): Likewise.
61387         * tests/test-time.c: Test for NULL compliance.
61388         * tests/test-wchar.c: Likewise.
61389         * modules/locale (Depends-on): Add stddef.
61390         * modules/stdio (Depends-on): Likewise.
61391         * modules/stdlib (Depends-on): Likewise.
61392         * modules/string (Depends-on): Likewise.
61393         * modules/time (Depends-on): Likewise.
61394         * modules/unistd (Depends-on): Likewise.
61395         * modules/wchar (Depends-on): Likewise.
61396         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
61397         * lib/stdlib.in.h (includes): Likewise.
61398         * lib/string.in.h (includes): Likewise.
61399         * lib/time.in.h (includes): Likewise.
61400         * lib/unistd.in.h (includes): Likewise.
61401         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
61402         replaced.
61403         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61404         * m4/stddef_h.m4: New file.
61405         * modules/stddef: Likewise.
61406         * lib/stddef.in.h: Likewise.
61407         * modules/stddef-tests: Likewise.
61408         * tests/test-stddef.c: Likewise.
61409         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
61410         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
61411         * doc/posix-headers/locale.texi (locale.h): Likewise.
61412         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
61413         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61414         * doc/posix-headers/string.texi (string.h): Likewise.
61415         * doc/posix-headers/time.texi (time.h): Likewise.
61416         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
61417         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
61419 2009-08-14  Eric Blake  <ebb9@byu.net>
61421         doc: improve git diff of texinfo files
61422         * .gitattributes: Add rule for *.texi files, with hint on how to
61423         use it.
61424         Copied from m4, and based on a report by Bruno Haible.
61426 2009-08-14  Bruno Haible  <bruno@clisp.org>
61428         Disable multithread support by default on Cygwin 1.5.x for real.
61429         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
61431 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61433         update-copyright: much ado about intervals
61434         * build-aux/update-copyright: Implement and document
61435         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
61436         of copyright year intervals.
61437         Also, document UPDATE_COPYRIGHT_YEAR.
61438         * tests/test-update-copyright.sh: Test it.
61440         update-copyright: convert 2-digit to 4-digit years
61441         * build-aux/update-copyright: Implement and document.
61442         * tests/test-update-copyright.sh: Update.
61444 2009-08-14  Jim Meyering  <meyering@redhat.com>
61446         test-exclude: avoid coreutils "make check" failure
61447         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
61448         just as in test-argmatch.c.
61450 2009-08-13  Eric Blake  <ebb9@byu.net>
61452         test-dup2: fix bad assumption
61453         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
61454         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
61456         test-version-etc: fix CRLF portability issue
61457         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
61458         recognize \r.
61459         * tests/test-argp-version-etc-1.sh: Likewise.
61461         getopt: update client modules
61462         * modules/argp (Depends-on): Use getopt-gnu.
61463         * modules/git-merge-changelog (Depends-on): Likewise.
61464         * modules/long-options (Depends-on): Likewise.
61465         * modules/xstrtol (Depends-on): Likewise.
61467 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61469         * tests/test-version-etc.sh: Don't fail on different
61470         project/version.  Don't fail on CRLF differences.  Rewrite to use
61471         multiple -e instead of multiple sed forks, suggested by Eric Blake
61472         <ebb9@byu.net>.
61473         * tests/test-argp-version-etc-1.sh: Likewise.
61475 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61477         * tests/test-version-etc.sh: Don't fail on different
61478         project/version.
61480 2009-08-12  Bruno Haible  <bruno@clisp.org>
61482         Tests for modules 'getopt-posix', 'getopt-gnu'.
61483         * modules/getopt-posix-tests: New file.
61484         * tests/test-getopt.c: New file.
61485         * tests/test-getopt.h: New file.
61486         * tests/test-getopt_long.h: New file.
61488         New modules 'getopt-posix', 'getopt-gnu'.
61489         * modules/getopt-gnu: New file, renamed from modules/getopt.
61490         * modules/getopt-posix: New file.
61491         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
61492         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
61493         (gl_GETOPT): Remove macro.
61494         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
61495         Disable the test against BSD systems that declare optreset. Test
61496         against mingw bug. Test against lack of support of optional arguments
61497         on many platforms.
61498         * doc/glibc-headers/getopt.texi: Update module name and list of
61499         relevant platforms.
61500         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
61501         'getopt-gnu' and more portability problems.
61502         * NEWS: Mention the changes.
61504 2009-08-12  Bruno Haible  <bruno@clisp.org>
61506         Ensure that optarg etc. get declared by <unistd.h>.
61507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
61508         AC_USE_SYSTEM_EXTENSIONS.
61509         * modules/getopt (Depends-on): Add 'extensions'.
61511 2009-08-12  Bruno Haible  <bruno@clisp.org>
61513         Avoid test link errors.
61514         * modules/pipe-filter-ii-tests (Makefile.am): Define
61515         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
61516         * modules/pipe-filter-gi-tests (Makefile.am): Define
61517         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
61518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61520 2009-08-12  Bruno Haible  <bruno@clisp.org>
61522         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
61523         gl_GETOPT_SUBSTITUTE before.
61524         (gl_GETOPT): Use it.
61525         * m4/argp.m4 (gl_ARGP): Update.
61526         Reported by Sergey Poznyakoff.
61528         * m4/getopt.m4: Reorder macros.
61529         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
61530         (gl_GETOPT_SUBSTITUTE): Remove macro.
61532 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61534         Minor improvement in gitlog-to-changelog
61536         * build-aux/gitlog-to-changelog: New option `--format' makes
61537         output format string configurable.
61539 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61541         Optimize exclude: use hash tables for non-wildcard patterns.
61543         * lib/exclude.c: Include hash.h and mbuiter.h
61544         (struct exclude_pattern, exclude_segment): New data types.
61545         (struct exclude): Rewrite.
61546         (fnmatch_pattern_has_wildcards): New function.
61547         (new_exclude_segment, free_exclude_segment): New functions.
61548         (excluded_file_pattern_p, excluded_file_name_p): New functions.
61549         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
61550         * lib/exclude.h (is_fnmatch_pattern): New prototype.
61551         * modules/exclude: Depend on hash and mbuiter.
61553         * modules/exclude-tests: New file.
61554         * tests/test-exclude.c: New file.
61555         * tests/test-exclude1.sh: New file.
61556         * tests/test-exclude2.sh: New file.
61557         * tests/test-exclude3.sh: New file.
61558         * tests/test-exclude4.sh: New file.
61559         * tests/test-exclude5.sh: New file.
61560         * tests/test-exclude6.sh: New file.
61561         * tests/test-exclude7.sh: New file.
61563 2009-08-12  Bruno Haible  <bruno@clisp.org>
61565         Ensure that getopt() gets declared by <unistd.h>.
61566         * lib/unistd.in.h: Conditionally include getopt.h.
61567         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
61568         Set GNULIB_UNISTD_H_GETOPT.
61569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61570         GNULIB_UNISTD_H_GETOPT.
61571         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
61573 2009-08-12  Bruno Haible  <bruno@clisp.org>
61575         Clarify logic.
61576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
61577         gl_replace_getopt instead of GETOPT_H.
61579 2009-08-12  Bruno Haible  <bruno@clisp.org>
61581         * m4/getopt.m4: Add comments.
61583 2009-08-12  Bruno Haible  <bruno@clisp.org>
61585         Disable multithread support by default on Cygwin 1.5.x.
61586         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
61587         set gl_use_threads=no if not specified otherwise.
61589 2009-08-11  Bruno Haible  <bruno@clisp.org>
61591         Avoid compilation error on NetBSD 5.0.
61592         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
61593         * tests/test-stdio.c: Likewise.
61594         * tests/test-stdlib.c: Likewise.
61595         * tests/test-string.c: Likewise.
61596         * tests/test-unistd.c: Likewise.
61597         Reported by Greg Troxel <gdt@ir.bbn.com>
61598         at <https://savannah.gnu.org/support/?106973>.
61600 2009-08-11  Bruno Haible  <bruno@clisp.org>
61602         * modules/dup2-tests (Depends-on): Remove close.
61604         Undo 2009-07-19 commit.
61605         * modules/acl-tests (Depends-on): Remove close.
61606         * modules/binary-io-tests (Depends-on): Likewise.
61607         * modules/closein-tests (Depends-on): Likewise.
61608         * modules/flock-tests (Depends-on): Likewise.
61609         * modules/fsync-tests (Depends-on): Likewise.
61610         * modules/lseek-tests (Depends-on): Likewise.
61611         * modules/pipe-tests (Depends-on): Likewise.
61612         * modules/posix_spawn-tests (Depends-on): Likewise.
61613         * modules/posix_spawnp-tests (Depends-on): Likewise.
61614         * modules/stat-time-tests (Depends-on): Likewise.
61615         * modules/yesno-tests (Depends-on): Likewise.
61617 2009-08-10  Bruno Haible  <bruno@clisp.org>
61619         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
61621 2009-08-10  Bruno Haible  <bruno@clisp.org>
61623         Fix a gcc warning.
61624         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
61626 2009-08-10  Bruno Haible  <bruno@clisp.org>
61628         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
61629         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
61630         not only the first time.
61631         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
61632         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
61633         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
61634         is 1, not only the first time.
61636 2009-08-10  Bruno Haible  <bruno@clisp.org>
61638         Make it possible to use module 'gethostname' without module 'close'.
61639         * lib/unistd.in.h (close): Evoke a link error only if
61640         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
61641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61642         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61643         * modules/unistd (Makefile.am): Substitute
61644         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61645         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
61646         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
61647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
61648         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61649         * modules/sys_ioctl (Makefile.am): Substitute
61650         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61651         * modules/socket (configure.ac): On native Windows, set
61652         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
61653         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61654         Reported by Sam Steingold <sds@gnu.org>.
61656 2009-08-10  Bruno Haible  <bruno@clisp.org>
61658         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
61659         * modules/ioctl (configure.ac): Likewise.
61661 2009-08-10  Bruno Haible  <bruno@clisp.org>
61663         Avoid collision between gnulib wrapper and libintl wrapper.
61664         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
61665         already defined in intl/printf.c.
61666         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
61667         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
61669 2009-08-09  Bruno Haible  <bruno@clisp.org>
61671         Make <sys/select.h> really self-contained, also on Solaris 10.
61672         * lib/sys_select.in.h: Include <string.h>.
61673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
61674         Solaris 10 problem.
61675         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
61676         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
61677         Reported by Jim Meyering.
61679 2009-08-09  Bruno Haible  <bruno@clisp.org>
61681         Avoid warnings from 'aclocal' that are due to a use of macro name
61682         AM_XGETTEXT_OPTION that is not defined in automake.
61683         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
61684         automake.
61685         * modules/error (configure.ac): Likewise.
61686         * modules/propername (configure.ac): Likewise.
61687         * modules/vasprintf (configure.ac): Likewise.
61688         * modules/verror (configure.ac): Likewise.
61689         * modules/xprintf (configure.ac): Likewise.
61690         * modules/xvasprintf (configure.ac): Likewise.
61692 2009-08-08  Bruno Haible  <bruno@clisp.org>
61694         Avoid compilation error in C++ mode.
61695         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
61696         Reported by Sam Steingold <sds@gnu.org>.
61698 2009-08-08  Bruno Haible  <bruno@clisp.org>
61700         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
61701         for the various Unix platforms.
61702         * doc/posix-headers/limits.texi: Update platforms list regarding
61703         HOST_NAME_MAX.
61704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61706 2009-08-07  Jim Meyering  <meyering@redhat.com>
61708         selinux-at: fix typo in a comment
61709         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
61710         Spotted by Paolo Bonzini.
61712         selinux-at: remove redundant m4 code, add documentation
61713         * modules/selinux-at (configure.ac): Remove redundant code.
61714         LIB_SELINUX is already set via the dependent module, selinux-h.
61715         (Include): Add quotes around selinux-at.h.
61716         * lib/selinux-at.h: Add documentation.
61717         Reported by Bruno Haible in
61718         http://marc.info/?l=gnulib-bug&m=124958988300749
61720 2009-08-07  Bruno Haible  <bruno@clisp.org>
61722         Avoid link error on MacOS X 10.3 and 10.4.
61723         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
61724         on non-ELF systems.
61725         * lib/argp-pv.c (argp_program_version): Likewise.
61726         Reported by Simon Josefsson.
61728 2009-08-07  Simon Josefsson  <simon@josefsson.org>
61730         * tests/test-version-etc.sh: Use $EXEEXT.
61732 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
61734         update-copyright: update documentation to point to maint.mk
61735         * build-aux/update-copyright: Here.
61737 2009-08-06  Jim Meyering  <meyering@redhat.com>
61739         maint.mk: support update-copyright-local
61740         * top/maint.mk (update-copyright-local): Define place-holder.
61741         (update-copyright): Depend on $(update-copyright-local).
61743 2009-08-06  Jim Meyering  <meyering@redhat.com>
61745         selinux-at: new module
61746         Initially written for coreutils, this module will soon be
61747         used by findutils, too.
61748         * MODULES.html.sh [Misc]: Add selinux-at.
61749         * lib/selinux-at.h: New file, from coreutils.
61750         * lib/selinux-at.c: Likewise.
61751         * modules/selinux-at: Likewise.
61752         (License): Change from LGPL to GPL, since it depends
61753         on the GPL'd openat module.
61755         doc: update README
61756         * README: Remove references to cogito.
61757         Remove cvs-repo-updating instructions from 2007.
61758         Don't imply that CVS is better if you have limited disk space.
61760 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61762         update-copyright: support C-style comments
61763         * build-aux/update-copyright: Implement and document.
61764         * tests/test-update-copyright.sh: Test.
61766 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61768         update-copyright: support omitted "(C)"
61769         * build-aux/update-copyright: Implement and document.  Also,
61770         allow variable whitespace before "(C)".
61771         * tests/test-update-copyright.sh: Test.
61773 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61775         update-copyright: don't trip on non-FSF copyright statements
61776         * build-aux/update-copyright: Fix so that the first correctly
61777         formatted FSF copyright statement is recognized no matter what
61778         appears before it.  Update documentation.
61779         * tests/test-update-copyright.sh: Test that.
61781 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61783         update-copyright: clean up code a little
61784         * build-aux/update-copyright: Append "_re" to the name of any
61785         variable holding a regular expression.
61786         Replace "old" and "new" with "stmt" in variable names.
61787         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
61788         handled correctly.
61789         Format code more consistently.
61791 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61793         update-copyright-tests: improve portability
61794         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
61795         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
61797 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
61799         update-copyright: support @copyright{} and &copy;
61800         * build-aux/update-copyright: Implement and document.
61801         * tests/test-update-copyright.sh: Test.
61803 2009-08-04  Jim Meyering  <meyering@redhat.com>
61805         update-copyright-tests: correctly test EOL=\r\n handling
61806         * tests/test-update-copyright.sh: Put \r at the end of some lines
61807         for the dos-eol tests.  Based on a patch by Joel E. Denny.
61809         maint.mk: make update-copyright exclusion list more configurable
61810         * top/maint.mk (update-copyright): Default to excluding COPYING,
61811         but allow an override, in case someone does want to update that file.
61813         maint.mk: don't update copyright date in COPYING
61814         * top/maint.mk (update-copyright): Exclude COPYING.
61816         maint.mk: add a copyright-updating rule
61817         * top/maint.mk (update-copyright): New rule.
61818         Derived from coreutils/Makefile.am.
61820         update-copyright: rename some variables
61821         * build-aux/update-copyright: Rename a few variables for clarity.
61822         Tweak syntax.  List Joel E. Denny as coauthor.
61824 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
61826         update-copyright: fix bug for 2-digit last year and add tests
61827         * build-aux/update-copyright: Fix bug.
61828         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
61829         specified.
61830         * modules/update-copyright-tests: New
61831         * tests/test-update-copyright.sh: New.
61833 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
61835         update-copyright: handle leading tabs in line prefix
61836         * build-aux/update-copyright: Count leading tabs as 8 spaces
61837         when computing margin.  This helps with the formatting of
61838         ChangeLogs, for example.
61839         Fix documentation a little.
61841 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
61843         update-copyright: support EOL=\r\n
61844         * build-aux/update-copyright: Implement that.
61846 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
61848         update-copyright: automatically format copyright statements
61849         * build-aux/update-copyright: Implement that.
61850         Also, be a little more predictable and safer by always failing
61851         when the full copyright format is not perfectly recognized as an
61852         unbroken whole.  Discussed at
61853         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
61854         Rewrite documentation.
61856 2009-08-03  Bruno Haible  <bruno@clisp.org>
61858         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
61860 2009-08-02  Bruno Haible  <bruno@clisp.org>
61862         Tests for module 'uname'.
61863         * modules/uname-tests: New file.
61864         * tests/test-uname.c: New file.
61866         New module 'uname'.
61867         * lib/uname.c: New file.
61868         * m4/uname.m4: New file.
61869         * modules/uname: New file.
61870         * doc/posix-functions/uname.texi: Mention the new module.
61872 2009-08-02  Bruno Haible  <bruno@clisp.org>
61874         Tests for module 'sys_utsname'.
61875         * modules/sys_utsname-tests: New file.
61876         * tests/test-sys_utsname.c: New file.
61878         New module 'sys_utsname'.
61879         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
61880         * m4/sys_utsname_h.m4: New file.
61881         * modules/sys_utsname: New file.
61882         * doc/posix-headers/sys_utsname.texi: Mention the new module.
61884 2009-08-02  Bruno Haible  <bruno@clisp.org>
61886         Implicitly initialize the sockets library.
61887         * lib/gethostname.c: Include sockets.h.
61888         (rpl_gethostname): Invoke gl_sockets_startup.
61889         * lib/socket.c: Include sockets.h.
61890         (rpl_socket): Invoke gl_sockets_startup.
61891         * modules/gethostname (Depends-on): Add sockets.
61892         * modules/socket (Depends-on): Likewise.
61893         * tests/test-poll.c: Don't include sockets.h.
61894         (main): Don't invoke gl_sockets_startup.
61895         * tests/test-select.c: Don't include sockets.h.
61896         (main): Don't invoke gl_sockets_startup.
61898 2009-08-02  Bruno Haible  <bruno@clisp.org>
61900         Allow multiple calls to gl_sockets_startup.
61901         * lib/sockets.c (initialized_sockets_version): New variable.
61902         (gl_sockets_startup): Do nothing if already called for this or a higher
61903         version.
61904         (gl_sockets_cleanup): Reset initialized_sockets_version.
61906 2009-08-03  Simon Josefsson  <simon@josefsson.org>
61908         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
61909         different project/version.
61911 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
61912             Bruno Haible  <bruno@clisp.org>
61914         Tests for module 'pipe-filter-gi'.
61915         * modules/pipe-filter-gi-tests: New file.
61916         * tests/test-pipe-filter-gi1.sh: New file.
61917         * tests/test-pipe-filter-gi1.c: New file.
61918         * tests/test-pipe-filter-gi2.sh: New file.
61919         * tests/test-pipe-filter-gi2-main.c: New file.
61920         * tests/test-pipe-filter-gi2-child.c: New file.
61922         New module 'pipe-filter-gi'.
61923         * lib/pipe-filter-gi.c: New file.
61924         * modules/pipe-filter-gi: New file.
61926 2009-08-02  Bruno Haible  <bruno@clisp.org>
61927             Paolo Bonzini  <bonzini@gnu.org>
61929         Tests for module 'pipe-filter-ii'.
61930         * modules/pipe-filter-ii-tests: New file.
61931         * tests/test-pipe-filter-ii1.sh: New file.
61932         * tests/test-pipe-filter-ii1.c: New file.
61933         * tests/test-pipe-filter-ii2.sh: New file.
61934         * tests/test-pipe-filter-ii2-main.c: New file.
61935         * tests/test-pipe-filter-ii2-child.c: New file.
61937         New module 'pipe-filter-ii'.
61938         * lib/pipe-filter.h: New file.
61939         * lib/pipe-filter-ii.c: New file.
61940         * lib/pipe-filter-aux.h: New file.
61941         * modules/pipe-filter-ii: New file.
61943 2009-08-02  Simon Josefsson  <simon@josefsson.org>
61945         * lib/gc-libgcrypt.c: Change copyright to FSF.
61946         * lib/gc-gnulib.c: Likewise.
61948 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
61950         * lib/gethostname.c: Include limits.h.
61952 2009-08-02  Simon Josefsson  <simon@josefsson.org>
61953             Bruno Haible  <bruno@clisp.org>
61955         Ensure HOST_NAME_MAX as part of the gethostname module.
61956         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
61957         define also HOST_NAME_MAX.
61958         * tests/test-gethostname.c: Include <limits.h>.
61959         (main): Check also HOST_NAME_MAX.
61960         * doc/posix-headers/limits.texi: Document the mingw problem.
61962 2009-08-02  Bruno Haible  <bruno@clisp.org>
61964         * lib/gethostname.c (gethostname): Fix handling of large len argument.
61965         Add comments.
61967 2009-03-31  Simon Josefsson  <simon@josefsson.org>
61969         * lib/gethostname.c: Add Windows wrapper.
61970         * m4/gethostname.m4: Look for gethostname in -lws2_32.
61971         * modules/gethostname: Depend on sys_socket & errno, for also
61972         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
61973         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
61975 2009-07-31  Jim Meyering  <meyering@redhat.com>
61977         getloadavg: fix symbol name in comment
61978         * lib/getloadavg.c: Correct a typo I introduced when adding
61979         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
61980         Matt Kraai spotted the problem.
61982 2009-07-29  Matt Kraai  <mkraai@beckman.com>
61984         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
61985         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
61986         code also if ! defined N_NAME_POINTER.
61987         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
61988         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
61989         but the n_name member is a 12-byte array.
61991 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
61993         update-copyright: generalize comment handling
61994         * build-aux/update-copyright: Handle copyright statements
61995         within more comment styles.
61996         Document usage.
61997         Report any file with an external copyright holder or parse failure.
61999 2009-07-29  Jim Meyering  <meyering@redhat.com>
62001         mktime: correct setting of REPLACE_MKTIME
62002         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
62004         update-copyright: new module
62005         * modules/update-copyright: New file.
62006         * build-aux/update-copyright: New file.
62007         * MODULES.html.sh (maint+release support): Add update-copyright.
62009 2009-07-27  Bruno Haible  <bruno@clisp.org>
62011         Fix compilation error when <ctime> is used and mktime is replaced.
62012         * lib/time.in.h (mktime): New declaration.
62013         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
62014         REPLACE_MKTIME instead of defining mktime in config.h.
62015         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
62016         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
62017         Reported by Ross McFarland <rwmcfa1@neces.com>.
62019 2009-07-27  Bruno Haible  <bruno@clisp.org>
62021         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
62022         Reported by Matt Kraai <mkraai@beckman.com>.
62024 2009-07-25  Jim Meyering  <meyering@redhat.com>
62026         maint.mk: avoid warnings about missing files
62027         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
62028         diagnostic when .prev-version does not exist.
62029         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
62030         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
62031         nonexistent cfg.mk.
62032         Suggestions from Simon Josefsson.
62034 2009-07-25  Bruno Haible  <bruno@clisp.org>
62036         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
62037         defined as macros. Needed on QNX 6.4.1.
62038         Reported by Matt Kraai <mkraai@beckman.com>.
62040 2009-07-23  Jim Meyering  <meyering@redhat.com>
62042         maint.mk: invoke "make dist" with a working value of XZ_OPT
62043         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
62045 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
62047         Make fseeko.c compile on QNX.
62048         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
62050 2009-07-22  Peter Simons  <simons@cryp.to>
62052         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
62053         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
62054         * lib/md4.h: Likewise.
62055         * lib/md5.h: Likewise.
62056         * lib/sha1.h: Likewise.
62057         * lib/sha256.h: Likewise.
62058         * lib/sha512.h: Likewise.
62060         tests-sha1: don't assign literal string to 'char *' variable
62061         * tests/test-sha1.c (main): Declare locals with "const" to match
62062         attributes of the right hand side.
62064 2009-07-21  Eric Blake  <ebb9@byu.net>
62066         dup2: fix more mingw problems
62067         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
62068         fd to itself.
62069         * doc/posix-functions/dup2.texi (dup2): Document the bug.
62070         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
62071         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
62072         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
62073         care of mingw bugs.
62075 2009-07-21  Jim Meyering  <meyering@redhat.com>
62077         vc-list-files: avoid failure when /bin/sh is dash
62078         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
62079         On some Debian based systems, /bin/sh is a symlink to dash, and running
62080         this command would omit the "/" following each 'tests' prefix:
62081           dash -x build-aux/vc-list-files -C . tests
62082         That is because bash and dash work differently:
62083           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
62084           bash ok
62085           dash odd
62087 2009-07-21  Eric Blake  <ebb9@byu.net>
62089         dup2-tests: test previous patch
62090         * modules/dup2-tests: New file.
62091         * tests/test-dup2.c: Likewise.
62092         * tests/test-open.c (main): Avoid unspecified behavior.
62093         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
62094         test.
62096         dup2: work around mingw and cygwin 1.5 bug
62097         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
62098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62099         * modules/unistd (Makefile.am): Substitute it.
62100         * lib/unistd.in.h (dup2): Declare the replacement.
62101         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
62102         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
62103         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
62104         * modules/execute (Depends-on): Add dup2.
62105         * modules/fseterr (Depends-on): Likewise.
62106         * modules/pipe (Depends-on): Likewise.
62107         * modules/posix_spawn-internal (Depends-on): Likewise.
62109 2009-07-21  Bruno Haible  <bruno@clisp.org>
62111         * modules/.gitattributes: New file.
62113 2009-07-20  Bruno Haible  <bruno@clisp.org>
62115         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
62116         (main): Use it.
62118 2009-07-20  Eric Blake  <ebb9@byu.net>
62120         test-pipe: make a bit more robust.
62121         * tests/test-pipe.c (myerr): Allow error messages regardless of
62122         what we do to stderr.
62123         (test_pipe): Rearrange to avoid deadlock.
62124         (child_main): Try a larger read, to ensure we avoided deadlock.
62125         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
62126         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
62127         if misused.
62129 2009-07-19  Jim Meyering  <meyering@redhat.com>
62131         fts: avoid false-positive cycle-detection
62132         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
62133         for each new command line argument.
62135 2009-07-19  Bruno Haible  <bruno@clisp.org>
62137         Fix build error on mingw with the modules sys_select and unistd.
62138         * modules/acl-tests (Depends-on): Add close.
62139         * modules/binary-io-tests (Depends-on): Likewise.
62140         * modules/closein-tests (Depends-on): Likewise.
62141         * modules/flock-tests (Depends-on): Likewise.
62142         * modules/fsync-tests (Depends-on): Likewise.
62143         * modules/lseek-tests (Depends-on): Likewise.
62144         * modules/pipe-tests (Depends-on): Likewise.
62145         * modules/posix_spawn-tests (Depends-on): Likewise.
62146         * modules/posix_spawnp-tests (Depends-on): Likewise.
62147         * modules/stat-time-tests (Depends-on): Likewise.
62148         * modules/yesno-tests (Depends-on): Likewise.
62150 2009-07-19  Bruno Haible  <bruno@clisp.org>
62152         Unify conditionals.
62153         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
62154         macros, not at the compiler macros.
62155         * lib/pipe.c: Likewise.
62156         * lib/execute.c: Likewise.
62157         * lib/spawni.c: Likewise.
62159 2009-07-19  Bruno Haible  <bruno@clisp.org>
62161         Fix handling of closed stdin/stdout/stderr on mingw.
62162         * lib/w32spawn.h: Include unistd.h.
62163         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
62164         file descriptor with O_NOINHERIT flag.
62165         (fd_safer_noinherit): New function, based on fd-safer.c.
62166         (dup_safer_noinherit): New function, based on dup-safer.c.
62167         (undup_safer_noinherit): New function.
62168         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
62169         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
62170         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
62171         instead of fd_safer.
62172         * tests/test-pipe.c: Include <windows.h>.
62173         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
62174         result.
62176         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
62177         from main.
62178         (test_pipe): Pass an extra argument for disambiguation.
62179         (main): Invoke parent_main or child_main.
62181         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
62182         consistently.
62184 2009-07-18  Eric Blake  <ebb9@byu.net>
62186         test-pipe: fix mingw build
62187         * tests/test-pipe.c (main): Avoid fcntl on mingw.
62189 2009-07-18  Bruno Haible  <bruno@clisp.org>
62191         * modules/pipe-tests (Makefile.am): Fix typo.
62193 2009-07-18  Eric Blake  <ebb9@byu.net>
62195         error: fix mingw build
62196         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
62197         Reported by Bruno Haible.
62199         error: avoid undefined use of stdout
62200         * lib/error.c (error, error_at_line): Check that fd 1 is open
62201         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
62202         is handling faults and the close_stdout module wants to report the
62203         detection of closed stdout as an error.
62205 2009-07-17  Eric Blake  <ebb9@byu.net>
62207         pipe: be robust in face of closed fds
62208         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
62209         should cause child to misbehave.
62210         * modules/pipe-tests: New module.
62211         * tests/test-pipe.c: New file.
62212         * tests/test-pipe.sh: New file.
62213         Reported by Akim Demaille.
62215 2009-07-14  Bruno Haible  <bruno@clisp.org>
62217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
62218         Reported by anonymous kc.
62220 2009-07-07  Jim Meyering  <meyering@redhat.com>
62222         maint.mk: don't look for translatable strings in *.m4 or *.mk
62223         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
62224         when searching for translatable strings.
62226 2009-07-05  Jim Meyering  <meyering@redhat.com>
62228         remove superfluous parentheses in STREQ definition
62229         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
62230         * lib/getugroups.c (STREQ): Likewise.
62231         * lib/fnmatch.c (STREQ): Likewise.
62232         Spotted by Bruno Haible.
62234 2009-07-04  Jim Meyering  <meyering@redhat.com>
62236         argv-iter: new module
62237         * MODULES.html.sh: Add argv-iter.
62238         * lib/argv-iter.c, lib/argv-iter.h: New files.
62239         * modules/argv-iter: New file.
62240         * modules/argv-iter-tests: New file.
62241         * tests/test-argv-iter.c: Test it.
62243 2009-07-04  Bruno Haible  <bruno@clisp.org>
62245         Fix assertion.
62246         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
62247         contains more exact copies of a given entry than file2, leave the extra
62248         copies unpaired rather than aborting.
62249         Reported by Eric Blake.
62251 2009-07-02  Bruno Haible  <bruno@clisp.org>
62253         Speedup git-merge-changelog for git cherry-pick.
62254         * lib/git-merge-changelog.c (struct entries_mapping): New type.
62255         (entries_mapping_get): New function, extracted from compute_mapping.
62256         (entries_mapping_reverse_get): New function.
62257         (compute_mapping): Add a 'full' argument. Return the result in a
62258         'struct entries_mapping'.
62259         (main): Update. Access the mappings through entries_mapping_get.
62260         Reported by Eric Blake.
62262 2009-07-02  Bruno Haible  <bruno@clisp.org>
62264         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
62265         best_i.
62267 2009-07-02  Bruno Haible  <bruno@clisp.org>
62269         Speed up approximate search for matching ChangeLog entries.
62270         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
62271         argument. Call fstrcmp_bounded instead of fstrcmp.
62272         (compute_mapping, try_split_merged_entry, main): Update callers.
62274 2009-07-02  Bruno Haible  <bruno@clisp.org>
62276         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
62278 2009-06-30  Bruno Haible  <bruno@clisp.org>
62280         Reduce the number of uc_is_cased calls.
62281         * lib/unicase.h (casing_suffix_context_t): Add
62282         'first_char_except_ignorable' field.
62283         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
62284         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
62285         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
62286         Update initializer.
62287         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
62288         case-ignorable characters.
62289         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
62290         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
62291         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
62292         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
62293         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
62295 2009-06-30  Bruno Haible  <bruno@clisp.org>
62297         Tests for module 'unicase/ignorable'.
62298         * modules/unicase/ignorable-tests: New file.
62299         * tests/unicase/test-ignorable.c: New file, generated by
62300         gen-uni-tables.
62302         Tests for module 'unicase/cased'.
62303         * modules/unicase/cased-tests: New file.
62304         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
62305         * tests/unicase/test-predicate-part1.h: New file, derived from
62306         tests/unictype/test-predicate-part1.h.
62307         * tests/unicase/test-predicate-part2.h: New file, same as
62308         tests/unictype/test-predicate-part2.h.
62310         Fix evaluation of "Before C" condition of FINAL_SIGMA.
62311         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
62312         (output_casing_properties): New function.
62313         (main): Call it.
62314         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
62315         * lib/unicase/cased.c: Include unictype/bitmap.h.
62316         (uc_is_cased): Define through a bitmap lookup.
62317         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
62318         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
62319         (uc_is_case_ignorable): Define through a bitmap lookup.
62320         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
62321         lib/unictype/bitmap.h.
62322         (Depends-on): Add inline. Clean up.
62323         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
62324         lib/unictype/bitmap.h.
62325         (Depends-on): Add inline. Clean up.
62326         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
62327         recognition.
62328         * tests/unicase/test-u16-tolower.c (main): Likewise.
62329         * tests/unicase/test-u32-tolower.c (main): Likewise.
62331 2009-06-30  Bruno Haible  <bruno@clisp.org>
62333         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
62334         * lib/unicase/u16-casemap.c: Likewise.
62335         * lib/unicase/u32-casemap.c: Likewise.
62337 2009-06-29  Bruno Haible  <bruno@clisp.org>
62339         Define u32_casefold as a wrapper around u32_ct_casefold.
62340         * lib/unicase/u32-casefold.c: Update.
62341         * modules/unicase/u32-casefold (Depends-on): Add
62342         unicase/u32-ct-casefold, unicase/empty-prefix-context,
62343         unicase/empty-suffix-context. Clean up.
62345         Define u16_casefold as a wrapper around u16_ct_casefold.
62346         * lib/unicase/u16-casefold.c: Update.
62347         * modules/unicase/u16-casefold (Depends-on): Add
62348         unicase/u16-ct-casefold, unicase/empty-prefix-context,
62349         unicase/empty-suffix-context. Clean up.
62351         Define u8_casefold as a wrapper around u8_ct_casefold.
62352         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
62353         * lib/unicase/u8-casefold.c: Update.
62354         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
62355         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62357         Define u32_totitle as a wrapper around u32_ct_totitle.
62358         * lib/unicase/u32-totitle.c: Update.
62359         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
62360         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62362         Define u16_totitle as a wrapper around u16_ct_totitle.
62363         * lib/unicase/u16-totitle.c: Update.
62364         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
62365         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62367         Define u8_totitle as a wrapper around u8_ct_totitle.
62368         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
62369         functions.
62370         (FUNC): Delegate to U_CT_TOTITLE.
62371         * lib/unicase/u8-totitle.c: Update.
62372         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
62373         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62375         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
62376         invocation.
62377         * modules/unicase/u32-tolower (Depends-on): Add
62378         unicase/empty-prefix-context, unicase/empty-suffix-context.
62380         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
62381         invocation.
62382         * modules/unicase/u16-tolower (Depends-on): Add
62383         unicase/empty-prefix-context, unicase/empty-suffix-context.
62385         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
62386         * modules/unicase/u8-tolower (Depends-on): Add
62387         unicase/empty-prefix-context, unicase/empty-suffix-context.
62389         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
62390         invocation.
62391         * modules/unicase/u32-toupper (Depends-on): Add
62392         unicase/empty-prefix-context, unicase/empty-suffix-context.
62394         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
62395         invocation.
62396         * modules/unicase/u16-toupper (Depends-on): Add
62397         unicase/empty-prefix-context, unicase/empty-suffix-context.
62399         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
62400         * modules/unicase/u8-toupper (Depends-on): Add
62401         unicase/empty-prefix-context, unicase/empty-suffix-context.
62403         New module 'unicase/u32-ct-casefold'.
62404         * lib/unicase/u32-ct-casefold.c: New file.
62405         * modules/unicase/u32-ct-casefold: New file.
62407         New module 'unicase/u16-ct-casefold'.
62408         * lib/unicase/u16-ct-casefold.c: New file.
62409         * modules/unicase/u16-ct-casefold: New file.
62411         New module 'unicase/u8-ct-casefold'.
62412         * lib/unicase/u8-ct-casefold.c: New file.
62413         * lib/unicase/u-ct-casefold.h: New file, derived from
62414         lib/unicase/u-casefold.h.
62415         * modules/unicase/u8-ct-casefold: New file.
62417         New module 'unicase/u32-ct-totitle'.
62418         * lib/unicase/u32-ct-totitle.c: New file.
62419         * modules/unicase/u32-ct-totitle: New file.
62421         New module 'unicase/u16-ct-totitle'.
62422         * lib/unicase/u16-ct-totitle.c: New file.
62423         * modules/unicase/u16-ct-totitle: New file.
62425         New module 'unicase/u8-ct-totitle'.
62426         * lib/unicase/u8-ct-totitle.c: New file.
62427         * lib/unicase/u-ct-totitle.h: New file, derived from
62428         lib/unicase/u-totitle.h.
62429         * modules/unicase/u8-ct-totitle: New file.
62431         New module 'unicase/u32-ct-tolower'.
62432         * lib/unicase/u32-ct-tolower.c: New file.
62433         * modules/unicase/u32-ct-tolower: New file.
62435         New module 'unicase/u16-ct-tolower'.
62436         * lib/unicase/u16-ct-tolower.c: New file.
62437         * modules/unicase/u16-ct-tolower: New file.
62439         New module 'unicase/u8-ct-tolower'.
62440         * lib/unicase/u8-ct-tolower.c: New file.
62441         * modules/unicase/u8-ct-tolower: New file.
62443         New module 'unicase/u32-ct-toupper'.
62444         * lib/unicase/u32-ct-toupper.c: New file.
62445         * modules/unicase/u32-ct-toupper: New file.
62447         New module 'unicase/u16-ct-toupper'.
62448         * lib/unicase/u16-ct-toupper.c: New file.
62449         * modules/unicase/u16-ct-toupper: New file.
62451         New module 'unicase/u8-ct-toupper'.
62452         * lib/unicase/u8-ct-toupper.c: New file.
62453         * modules/unicase/u8-ct-toupper: New file.
62455         Add context arguments to u*_casemap functions.
62456         * lib/unicase/unicasemap.h: Include unicase.h.
62457         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
62458         suffix_context arguments.
62459         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
62460         functions.
62461         (FUNC): Add prefix_context and suffix_context arguments. Use
62462         uc_is_cased and uc_is_case_ignorable.
62463         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
62464         * lib/unicase/u16-casemap.c: Likewise.
62465         * lib/unicase/u32-casemap.c: Likewise.
62466         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
62467         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62468         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
62469         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62470         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
62471         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62473         New module 'unicase/u32-suffix-context'.
62474         * lib/unicase/u32-suffix-context.c: New file.
62475         * modules/unicase/u32-suffix-context: New file.
62477         New module 'unicase/u16-suffix-context'.
62478         * lib/unicase/u16-suffix-context.c: New file.
62479         * modules/unicase/u16-suffix-context: New file.
62481         New module 'unicase/u8-suffix-context'.
62482         * lib/unicase/u8-suffix-context.c: New file.
62483         * lib/unicase/u-suffix-context.h: New file.
62484         * modules/unicase/u8-suffix-context: New file.
62486         New module 'unicase/empty-suffix-context'.
62487         * lib/unicase/empty-suffix-context.c: New file.
62488         * modules/unicase/empty-suffix-context: New file.
62490         New module 'unicase/u32-prefix-context'.
62491         * lib/unicase/u32-prefix-context.c: New file.
62492         * modules/unicase/u32-prefix-context: New file.
62494         New module 'unicase/u16-prefix-context'.
62495         * lib/unicase/u16-prefix-context.c: New file.
62496         * modules/unicase/u16-prefix-context: New file.
62498         New module 'unicase/u8-prefix-context'.
62499         * lib/unicase/u8-prefix-context.c: New file.
62500         * lib/unicase/u-prefix-context.h: New file.
62501         * lib/unicase/context.h: New file.
62502         * modules/unicase/u8-prefix-context: New file.
62504         New module 'unicase/empty-prefix-context'.
62505         * lib/unicase/empty-prefix-context.c: New file.
62506         * modules/unicase/empty-prefix-context: New file.
62508         New module 'unicase/ignorable'.
62509         * lib/unicase/ignorable.c: New file.
62510         * modules/unicase/ignorable: New file.
62512         New module 'unicase/cased'.
62513         * lib/unicase/caseprop.h: New file.
62514         * lib/unicase/cased.c: New file.
62515         * modules/unicase/cased: New file.
62517         New functions for case mapping of substrings.
62518         * lib/unicase.h (casing_prefix_context_t): New type.
62519         (unicase_empty_prefix_context): New variable.
62520         (u8_casing_prefix_context, u16_casing_prefix_context,
62521         u32_casing_prefix_context, u8_casing_prefixes_context,
62522         u16_casing_prefixes_context, u32_casing_prefixes_context): New
62523         declarations.
62524         (casing_suffix_context_t): New type.
62525         (unicase_empty_suffix_context): New variable.
62526         (u8_casing_suffix_context, u16_casing_suffix_context,
62527         u32_casing_suffix_context, u8_casing_suffixes_context,
62528         u16_casing_suffixes_context, u32_casing_suffixes_context,
62529         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
62530         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
62531         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
62532         declarations.
62534 2009-06-28  Jim Meyering  <meyering@redhat.com>
62536         boostrap: indent only with spaces
62537         * build-aux/bootstrap: Indent only with spaces, never TABs.
62539         bootstrap: split long lines
62540         * build-aux/bootstrap: Keep line length < 80.
62542         bootstrap: sync from coreutils
62543         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
62544         just as autoreconf does.  Verify a list of prerequisite
62545         package-name,version-number pairs if defined in bootstrap.conf.
62546         Refer to README-prereq, if prerequisites are not satisfied.
62548 2009-06-27  Eric Blake  <ebb9@byu.net>
62550         tests: add test for bogus NULL definition
62551         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
62552         * tests/test-stdlib.c: Likewise.
62553         * tests/test-string.c: Likewise.
62554         * tests/test-locale.c: Likewise.
62555         * tests/test-unistd.c: Likewise.
62556         * modules/stdio-tests (Depends-on): Add verify.
62557         * modules/stdlib-tests (Depends-on): Likewise.
62558         * modules/string-tests (Depends-on): Likewise.
62559         * modules/locale-tests (Depends-on): Likewise.
62560         * modules/unistd-tests (Depends-on): Likewise.
62562 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
62564         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
62565         self-explaining comment.
62566         * m4/selinux-selinux-h: Update serial.
62567         (gl_LIBSELINUX): New macro, adding a warning for missing development
62568         packages to code extracted from...
62569         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
62570         Add warning for missing development packages here, too.
62572 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
62574         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
62576 2009-06-25  Eric Blake  <ebb9@byu.net>
62578         version-etc: fix regression
62579         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
62580         gcc.
62581         (version_etc): Use it, to catch bugs with trailing NULL.
62582         * lib/version-etc.c (version_etc_arn): Delete unused argument.
62583         (version_etc_va): Fix logic bug.
62584         * modules/version-etc-tests: Add test.
62585         * tests/test-version-etc.c: New file.
62586         * tests/test-version-etc.sh: Likewise.
62588 2009-06-25  Sam Steingold  <sds@gnu.org>
62590         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
62591         mbtowc declaration.
62593 2009-06-25  Eric Blake  <ebb9@byu.net>
62595         fpurge: migrate into <stdio.h>
62596         * lib/fpurge.h: Delete...
62597         * lib/stdio.in.h (fpurge): ...and declare here, instead.
62598         * lib/fpurge.c (fpurge): Change declaring header.
62599         * modules/fpurge (Files): Drop deleted file.
62600         (Depends-on): Add stdio.
62601         (configure.ac): Set witness.
62602         * modules/stdio (Makefile.am): Support fpurge macros.
62603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62604         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
62605         * lib/fflush.c: Update client.
62606         * tests/test-fpurge.c: Likewise.
62607         * NEWS: Mention the change.
62609 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62611         * lib/argp-version-etc.c (program_authors): Add const
62612         qualifier.
62613         * lib/version-etc.c: Fix typos in the comments.
62614         * modules/argp-version-etc: Depends on version-etc.
62616 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62618         argp-version-etc: new module.
62620         * lib/argp-version-etc.c: New file.
62621         * lib/argp-version-etc.h: New file.
62622         * modules/argp-version-etc: New file.
62623         * modules/argp-version-etc-tests: New file.
62624         * tests/test-argp-version-etc.c: New test.
62625         * tests/test-argp-version-etc-1.sh: New test.
62627 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62629         Provide additional interfaces and documentation for version-etc
62630         module.
62632         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
62633         interfaces.
62634         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
62635         prototypes.
62637 2009-06-24  Bruno Haible  <bruno@clisp.org>
62639         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
62640         HAVE_LIB${NAME} macro.
62641         Reported by Sam Steingold <sds@gnu.org>.
62643 2009-06-23  Simon Josefsson  <simon@josefsson.org>
62645         * modules/hash-tests (test_hash_LDADD): Link to libintl when
62646         needed.
62648 2009-06-21  Bruno Haible  <bruno@clisp.org>
62650         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
62651         work.
62652         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
62653         together with LIB${NAME}, LTLIB${NAME}.
62654         Reported by Sam Steingold <sds@gnu.org>.
62656 2009-06-20  Jim Meyering  <meyering@redhat.com>
62658         tests: make sc_require_test_exit_idiom more generic
62659         * top/maint.mk (Exit_witness_file): New overridable variable.
62660         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
62661         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
62663 2009-06-19  Jim Meyering  <meyering@redhat.com>
62665         hash: reverse order of src/dst parameters in an internal interface
62666         * lib/hash.c (transfer_entries): Reverse order of parameters to
62667         put DST before SRC.  Adjust callers.
62669         tests: test-hash: avoid wholesale duplication
62670         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
62671         Instead, use a loop and add a single conditional.
62673         tests: test-hash: allow seed selection via a command line argument
62674         * tests/test-hash.c (get_seed): New function.
62675         (main): Use it.
62677 2009-06-19  Eric Blake  <ebb9@byu.net>
62679         hash: avoid memory leak on allocation failure
62680         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
62681         failure.  Factor repeated algorithm...
62682         (transfer_entries): ...into new helper routine.
62683         (hash_delete): React to hash_rehash return value.
62685         hash: reduce memory pressure in hash_rehash no-op case
62686         * lib/hash.c (next_prime): Avoid overflow.
62687         (hash_initialize): Factor bucket size computation...
62688         (compute_bucket_size): ...into new helper function.
62689         (hash_rehash): Use new function and open coding to reduce memory
62690         pressure, and avoid a memory leak in USE_OBSTACK code.
62691         Reported by Jim Meyering.
62693 2009-06-18  Eric Blake  <ebb9@byu.net>
62695         hash: make rotation more obvious
62696         * modules/hash (Depends-on): Add bitrotate and stdint.
62697         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
62698         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
62699         (SIZE_MAX): Rely on headers for definition.
62700         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
62701         (raw_hasher): Use rotr_sz.
62702         Suggested by Jim Meyering.
62704         hash: fix memory leak in last patch
62705         * lib/hash.c (hash_rehash): Avoid memory leak.
62707         hash: avoid no-op rehashing
62708         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
62710         hash: provide default callback functions
62711         * lib/hash.c (raw_hasher, raw_comparator): New functions.
62712         (hash_initialize): Use them as defaults.
62713         * tests/test-hash.c (main): Test this.
62715         hash: minor optimization
62716         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
62717         when possible.
62718         (hash_initialize): Document this promise.
62719         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
62720         * tests/test-hash.c (hash_compare_strings): Test this.
62722 2009-06-18  Bruno Haible  <bruno@clisp.org>
62724         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
62725         going to be replaced anyway.
62727 2009-06-18  Bruno Haible  <bruno@clisp.org>
62729         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
62730         in one place.
62731         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
62732         be replaced anyway.
62734 2009-06-18  Eric Blake  <ebb9@byu.net>
62736         hash: check for resize before insertion
62737         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
62738         threshold before insertion, so that a pathological hash_rehash
62739         that fills every bucket can still trigger another rehash.
62741 2009-06-18  Jim Meyering  <meyering@redhat.com>
62743         hash-tests: add a loop around the small tests
62744         * tests/test-hash.c (main): Repeat small tests with selected
62745         small initial table sizes.
62747 2009-06-17  Eric Blake  <ebb9@byu.net>
62749         hash: minor cleanups
62750         * lib/hash.h (hash_entry): Make opaque, by moving...
62751         * lib/hash.c (hash_entry): ...here.
62752         (hash_insert): Clarify restrictions on what can be inserted.
62753         (hash_get_next): Clarify when it is safe to remove an element
62754         during traversal.
62755         (check_tuning): Skip verification when tuning is known safe.
62756         (hash_initialize): Clarify restrictions on tuning.
62758 2009-06-17  Jim Meyering  <jim@meyering.net>
62759         and Eric Blake  <ebb9@byu.net>
62761         hash-tests: new module
62762         * modules/hash-tests: New file.
62763         * tests/test-hash.c: New file.
62765 2009-06-17  Eric Blake  <ebb9@byu.net>
62767         strstr-simple: document new module
62768         * MODULES.html.sh: Document new module.
62770         strstr, strcasestr: replace on platforms with broken memchr
62771         * modules/strstr: Split into...
62772         * modules/strstr-simple: ...new module that does not care about
62773         performance, but does care about glibc bug.
62774         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
62775         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
62776         if platform memchr is broken, per Debian bug 521737.
62777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
62778         memchr.
62779         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
62780         * doc/posix-functions/strstr.texi (strstr): Document the fix.
62781         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
62782         * modules/mountlist (Depends-on): Add strstr-simple.
62783         * modules/gen-uni-tables (Depends-on): Likewise.
62784         * modules/argz (Depends-on): Add strstr.
62786 2009-06-17  Bruno Haible  <bruno@clisp.org>
62788         * modules/posix_spawn-internal (Depends-on): Add errno.
62790 2009-06-17  Bruno Haible  <bruno@clisp.org>
62792         Define missing ESTALE on Interix 3.5.
62793         * lib/errno.in.h (ESTALE): Assign a value if missing.
62794         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
62795         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
62796         missing.
62797         * doc/posix-headers/errno.texi: Mention the Interix bug.
62798         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
62800 2009-06-15  Eric Blake  <ebb9@byu.net>
62802         memchr, memchr2: add valgrind exception
62803         * lib/memchr.valgrind: New file.
62804         * lib/memchr2.valgrind: New file.
62805         * modules/memchr (Files): Distribute valgrind file.
62806         * modules/memchr2 (Files): Likewise.
62808         docs: memchr is no longer obsolete
62809         * MODULES.html.sh: Move memchr from obsolete to string.h section.
62810         * lib/string.in.h (memchr): Simplify logic.
62812 2009-06-14  Jim Meyering  <meyering@redhat.com>
62814         link-follow: fix the "checking..." message to not mention trailing slash
62815         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
62816         never considered trailing slashes.
62818 2009-06-14  Bruno Haible  <bruno@clisp.org>
62820         * m4/memchr.m4: Mention also the bug on IA-64.
62821         * doc/posix-functions/memchr.texi: Likewise.
62823 2009-06-12  Eric Blake  <ebb9@byu.net>
62825         memchr: detect broken x86_64 and alpha implementations
62826         * modules/memchr-tests (Depends-on): Move mmap detection...
62827         * modules/memchr (Depends-on): ...here.
62828         (configure.ac): Set indicator.
62829         * lib/string.in.h (memchr): Declare replacement.
62830         * modules/string (Makefile.am): Trigger replacement.
62831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62832         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
62833         bugs.
62834         * doc/posix-functions/memchr.texi (memchr): Document the bug.
62835         * modules/getpagesize (License): Relax license.
62837 2009-06-11  Bruno Haible  <bruno@clisp.org>
62839         * lib/idpriv.h: Add more references.
62841 2009-06-08  Bruno Haible  <bruno@clisp.org>
62843         Tests for module 'idpriv-droptemp'.
62844         * modules/idpriv-droptemp-tests: New file.
62845         * tests/test-idpriv-droptemp.sh: New file.
62846         * tests/test-idpriv-droptemp.su.sh: New file.
62847         * tests/test-idpriv-droptemp.c: New file.
62849         New module 'idpriv-droptemp'.
62850         * lib/idpriv-droptemp.c: New file.
62851         * modules/idpriv-droptemp: New file.
62853 2009-06-08  Bruno Haible  <bruno@clisp.org>
62855         Tests for module 'idpriv-drop'.
62856         * modules/idpriv-drop-tests: New file.
62857         * tests/test-idpriv-drop.sh: New file.
62858         * tests/test-idpriv-drop.su.sh: New file.
62859         * tests/test-idpriv-drop.c: New file.
62861         New module 'idpriv-drop'.
62862         * lib/idpriv.h: New file.
62863         * lib-idpriv-drop.c: New file.
62864         * m4/idpriv.m4: New file.
62865         * modules/idpriv-drop: New file.
62867 2009-06-08  Bruno Haible  <bruno@clisp.org>
62869         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
62870         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62871         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62872         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62873         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62874         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62875         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62877 2009-06-08  Eric Blake  <ebb9@byu.net>
62879         test-strstr: use memory fence, when possible
62880         * tests/test-strstr.c (main): Use memory fence, in order to be
62881         more likely to trigger Debian bug 521737.
62882         * modules/strstr-tests (Files): Pull in additional files.
62884         memchr: no longer obsolete, for wider field testing
62885         * modules/memchr (Status, Notice): Delete, this module is no
62886         longer obsolete.
62887         * modules/vasnprintf (Depends-on): Add memchr.
62889 2009-06-07  Jim Meyering  <meyering@redhat.com>
62891         hash: declare some functions with the warn_unused_result attribute
62892         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
62894 2009-06-07  Bruno Haible  <bruno@clisp.org>
62896         * tests/test-alignof.c: Don't test int64_t if it does not exist.
62897         Reported by Eric Blake.
62899 2009-06-06  Eric Blake  <ebb9@byu.net>
62901         test-alignof: fix typo with long double
62902         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
62903         compiler error.
62905 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
62907         Escape non-texinfo { and }s.
62908         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
62909         markup error.
62911 2009-06-04  Jim Meyering  <meyering@redhat.com>
62913         gitlog-to-changelog: don't infloop on an empty commit log
62914         * build-aux/gitlog-to-changelog: Warn about an empty log message.
62915         Reported by Boris Petersen <transacid@centerim.org>.
62917 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
62919         version-etc: extend for packagers
62920         Add three new configure options, intended for packagers:
62921           --with-packager="packager name"
62922           --with-packager-version="packager-specific version"
62923           --with-packager-bug-reports="packager bug reporting"
62924         An example with coreutils:
62925           $ ./configure \
62926             --with-packager=Gentoo \
62927             --with-packager-bug-report=http://bugs.gentoo.org/ \
62928             --with-packager-version="patchset 1.6"
62929           $ ./src/ls --version | head -n2
62930           ls (GNU coreutils) 7.1-dirty
62931           Packaged by Gentoo (patchset 1.6)
62932         Note that the bug reporting info via --help doesn't show up because
62933         coreutils uses its own custom emit_bug_reporting_address() implementation
62934         in src/system.h.  If it didn't, it'd look like:
62935           $ ./src/ls --help | tail -n4
62936           Report bugs to <bug-coreutils@gnu.org>.
62937           Report Gentoo bugs to <http://bugs.gentoo.org/>.
62938           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
62939           General help using GNU software: <http://www.gnu.org/gethelp/>.
62940         * lib/version-etc.c: Print new information, if provided.
62941         * m4/version-etc.m4: New file.
62942         * modules/version-etc (Files): Add m4/version-etc.m4.
62943         (configure.ac): Add gl_VERSION_ETC.
62945 2009-05-31  Bruno Haible  <bruno@clisp.org>
62947         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
62948         and 'int64_t'.
62949         * modules/alignof-tests (Dependencies): Add stdint.
62950         Reported by Eric Blake.
62952 2009-05-31  Bruno Haible  <bruno@clisp.org>
62954         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
62955         restriction due to compiler bugs.
62956         Reported by Eric Blake.
62958 2009-05-31  Simon Josefsson  <simon@josefsson.org>
62959             Bruno Haible  <bruno@clisp.org>
62961         Fix test-alignof failure.
62962         * lib/alignof.h (alignof_slot): New macro.
62963         (alignof_type): New macro, with the same semantics as the previous
62964         'alignof'.
62965         (alignof): Alias to alignof_slot.
62966         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
62967         check that the results are usable as constant expressions.
62969 2009-05-31  Bruno Haible  <bruno@clisp.org>
62971         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
62972         * tests/test-memchr.c (main): Check that memchr does not read past the
62973         first occurrence of the byte.
62974         * tests/test-strstr.c (main): Update comment.
62975         Suggested by Eric Blake.
62977 2009-05-30  Bruno Haible  <bruno@clisp.org>
62979         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
62980         detail how to use dumpbin.
62981         Reported by David Byron <dbyron@dbyron.com>.
62983 2009-06-02  Simon Josefsson  <simon@josefsson.org>
62985         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
62987 2009-06-02  Simon Josefsson  <simon@josefsson.org>
62989         * m4/manywarnings.m4: Add GCC 4.4 warnings.
62991 2009-05-28  Bruno Haible  <bruno@clisp.org>
62993         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
62994         build-aux/ files.
62996 2009-05-28  Simon Josefsson  <simon@josefsson.org>
62998         * gnulib-tool (func_import): Transform license on build-aux/ files too.
63000 2009-05-27  Simon Josefsson  <simon@josefsson.org>
63002         * gnulib-tool (sed_transform_main_lib_file)
63003         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
63004         regexps.
63006 2009-05-26  Simon Josefsson  <simon@josefsson.org>
63008         * tests/test-strstr.c: Add another self-test.
63009         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
63010         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
63012 2009-05-23  Bruno Haible  <bruno@clisp.org>
63014         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
63015         change.
63017 2009-05-21  Bruno Haible  <bruno@clisp.org>
63019         Simplify use of mode_t varargs.
63020         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
63021         uses 'mode_t' or 'int'.
63022         * lib/openat.c (openat): Likewise.
63023         * lib/open-safer.c (open_safer): Likewise.
63024         * m4/mode_t.m4: New file.
63025         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
63026         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
63027         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
63028         * modules/open (Files): Add m4/mode_t.m4.
63029         * modules/openat (Files): Likewise.
63030         * modules/fcntl-safer (Files): Likewise.
63031         Suggested by Eric Blake.
63033 2009-05-21  Pádraig Brady  <P@draigbrady.com>
63035         * doc/glibc-functions/fallocate.texi: New file.
63036         * doc/gnulib.texi: Include it.
63038 2009-05-21  Eric Blake  <ebb9@byu.net>
63039             Bruno Haible  <bruno@clisp.org>
63041         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
63042         invocations.
63043         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
63045 2009-05-21  Eric Blake  <ebb9@byu.net>
63046             Bruno Haible  <bruno@clisp.org>
63048         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
63049         include_next. Fix of 2008-11-20 commit.
63050         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
63051         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
63052         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
63053         NEXT_MATH_H.
63054         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
63055         instead of NEXT_MATH_H.
63057 2009-05-21  Bruno Haible  <bruno@clisp.org>
63059         Avoid redefinition warnings for SIZE_MAX.
63060         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
63061         Reported by Simon Josefsson.
63063 2009-05-21  Bruno Haible  <bruno@clisp.org>
63065         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
63066         AC_CACHE_VAL.
63068 2009-05-20  Bruno Haible  <bruno@clisp.org>
63070         Make zeroptr.h work on mingw.
63071         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
63072         mprotect.
63073         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
63074         * modules/memchr2-tests (configure.ac): Likewise.
63075         * modules/memcmp-tests (configure.ac): Likewise.
63076         * modules/memmem-tests (configure.ac): Likewise.
63077         * modules/memrchr-tests (configure.ac): Likewise.
63078         Reported by Simon Josefsson.
63080 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63082         * tests/test-glob.c: Include string.h for strcmp prototype.
63084 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63086         * modules/getdelim (Depends-on): Add explicit stdint, although it
63087         was implicitly already pulled in via realloc-posix.
63088         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
63090 2009-05-20  Simon Josefsson  <simon@josefsson.org>
63092         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
63093         G. Christensen" <tgc@jupiterrise.com>.
63094         * m4/sys_socket_h.m4: Check for sa_family_t.
63095         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
63096         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
63097         * tests/test-sys_socket.c: Check that sa_family_t works.
63099 2009-05-18  Eric Blake  <ebb9@byu.net>
63101         maint.mk: allow gnulib_dir in VPATH build
63102         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
63104 2009-05-15  Jim Meyering  <meyering@redhat.com>
63106         maint.mk: Give gnulib_dir a default definition.
63107         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
63108         Thus, most packages no longer need to specify this variable in cfg.mk
63110 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
63112         rename.m4: fix typos that would make non-mingw cross-configure fail
63113         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
63115 2009-05-13  Eric Blake  <ebb9@byu.net>
63117         mmap-anon: avoid out-of-order autoconf expansion
63118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
63119         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
63120         * modules/memchr-tests (Depends-on): Add extensions.
63121         * modules/memchr2-tests (Depends-on): Add extensions.
63122         * modules/memcmp-tests (Depends-on): Add extensions.
63123         * modules/memmem-tests (Depends-on): Add extensions.
63124         * modules/memrchr-tests (Depends-on): Add extensions.
63126 2009-05-13  Bruno Haible  <bruno@clisp.org>
63128         Make some tests ISO C 99 compliant.
63129         * tests/zerosize-ptr.h: New file.
63130         * tests/test-memchr.c: Include zerosize-ptr.h.
63131         (main): Use a zero-size object pointer instead of NULL.
63132         * tests/test-memchr2.c: Include zerosize-ptr.h.
63133         (main): Use a zero-size object pointer instead of NULL.
63134         * tests/test-memcmp.c: Include zerosize-ptr.h.
63135         (main): Use a zero-size object pointer instead of NULL.
63136         * tests/test-memmem.c: Include zerosize-ptr.h.
63137         (main): Use a zero-size object pointer instead of NULL.
63138         * tests/test-memrchr.c: Include zerosize-ptr.h.
63139         (main): Use a zero-size object pointer instead of NULL.
63140         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
63141         m4/mmap-anon.m4.
63142         (Depends-on): Add getpagesize.
63143         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63144         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
63145         m4/mmap-anon.m4.
63146         (Depends-on): Add getpagesize.
63147         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63148         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
63149         m4/mmap-anon.m4.
63150         (Depends-on): Add getpagesize.
63151         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63152         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
63153         m4/mmap-anon.m4.
63154         (Depends-on): Add getpagesize.
63155         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63156         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
63157         m4/mmap-anon.m4.
63158         (Depends-on): Add getpagesize.
63159         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
63161 2009-05-12  Bruno Haible  <bruno@clisp.org>
63163         Tests for module 'alignof'.
63164         * modules/alignof-tests: New file.
63165         * tests/test-alignof.c: New file.
63167 2009-05-12  Bruno Haible  <bruno@clisp.org>
63169         Fix alignof macro.
63170         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
63171         vendor compilers that are always correct.
63173 2009-05-12  Bruno Haible  <bruno@clisp.org>
63175         Make the MAP_ANONYMOUS detection work on HP-UX 11.
63176         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
63177         not whether its fully works.
63179 2009-05-12  Bruno Haible  <bruno@clisp.org>
63181         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
63183 2009-05-12  Jim Meyering  <meyering@redhat.com>
63185         * top/maint.mk: Adjust backslash alignment.
63187 2009-05-11  Simon Josefsson  <simon@josefsson.org>
63189         * top/maint.mk: Make $(srcdir)/build-aux configurable.
63191 2009-05-11  Eric Blake  <ebb9@byu.net>
63193         argp: avoid undefined behavior
63194         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
63195         macros.
63197 2009-05-08  Simon Josefsson  <simon@josefsson.org>
63199         * tests/test-vc-list-files-git.sh: Do git config of user.email and
63200         user.name to prevent git commit from complaining.
63202 2009-05-10  Bruno Haible  <bruno@clisp.org>
63204         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
63205         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
63206         it rewrites every file name only once.
63207         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
63209 2009-05-08  Bruno Haible  <bruno@clisp.org>
63211         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
63212         instead of 'max'.
63214 2009-05-08  Simon Josefsson  <simon@josefsson.org>
63216         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
63217         sockaddr_storage test.
63219 2009-05-07  Simon Josefsson  <simon@josefsson.org>
63221         * modules/sys_socket (Makefile.am): Substitute
63222         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
63223         * m4/sys_socket_h.m4: Check for sockaddr_storage.
63224         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
63225         * tests/test-sys_socket.c: Check sockaddr_storage.
63227 2009-05-08  Bruno Haible  <bruno@clisp.org>
63229         New module 'alignof'.
63230         * lib/alignof.h: New file.
63231         * modules/alignof: New file.
63233 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63234             Bruno Haible  <bruno@clisp.org>
63236         Fix test-file-has-acl on FreeBSD.
63237         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
63238         mask is implicitly added.
63239         * tests/test-file-has-acl.c: Include <signal.h>.
63240         (main): Terminate the test after 5 seconds.
63241         * modules/acl-tests (configure.ac): Check for alarm function.
63243 2009-05-04  Bruno Haible  <bruno@clisp.org>
63245         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
63246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
63247         * modules/errno (configure.ac): Drop AC_REQUIRE.
63248         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
63249         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
63251 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63253         * modules/glob-tests: New module.
63254         * tests/test-glob.c: Add.
63256 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63258         * modules/fnmatch-tests: New module.
63259         * tests/test-fnmatch.c: Add.
63261 2009-05-04  Eric Blake  <ebb9@byu.net>
63263         maint: make the new no-submodule-changes rule VPATH-safe
63264         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
63266 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63267             Bruno Haible  <bruno@clisp.org>
63269         acl: Fix infinite loop on FreeBSD.
63270         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
63271         of return value from acl_get_entry.
63272         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
63273         Likewise.
63275 2009-05-03  Bruno Haible  <bruno@clisp.org>
63277         * lib/acl-internal.h (acl_entries): Clarify return value.
63278         * lib/acl_entries.c (acl_entries): Likewise.
63280 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63282         Bug fix in acl module.
63283         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
63285 2009-05-03  Bruno Haible  <bruno@clisp.org>
63287         Create gperf-generated file in the source dir, not in the build dir.
63288         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
63289         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
63290         * modules/unicase/locale-language (unicase/locale-languages.h):
63291         Likewise.
63292         * modules/unicase/special-casing (unicase/special-casing-table.h):
63293         Likewise.
63294         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
63295         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
63296         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
63297         Reported by Ralf Wildenhues.
63299 2009-05-03  Bruno Haible  <bruno@clisp.org>
63301         * modules/fnmatch (Description, configure.ac): Taken from
63302         fnmatch-posix.
63303         * modules/fnmatch-posix: Turn into a symbolic reference to the
63304         'fnmatch' module, and deprecate.
63305         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
63307 2009-05-03  Bruno Haible  <bruno@clisp.org>
63309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
63310         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
63311         Reported by Ralf Wildenhues.
63313 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63315         * m4/fnmatch.m4: Fix fnmatch re-define.
63317 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63319         priv-set: new module and tests; adapt write-any-file
63320         * lib/priv-set.c: New file.
63321         * lib/priv-set.h: New file.
63322         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
63323         * lib/write-any-file.c: Simplify by using priv-set module.
63324         * m4/priv-set.m4: New file.
63325         * modules/priv-set: New file.
63326         * modules/unlinkdir: Add dependency on priv-set module.
63327         * modules/write-any-file: Likewise.
63329         Tests for module 'priv-set'.
63330         * modules/priv-set-tests: New file.
63331         * tests/test-priv-set.c: New file.
63333 2009-05-03  Jim Meyering  <meyering@redhat.com>
63334             Bruno Haible  <bruno@clisp.org>
63336         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
63337         use the converted UTF-8 variant of the name instead.
63339 2009-05-03  Jim Meyering  <meyering@redhat.com>
63341         tests: tighten some getdate tests
63342         * tests/test-getdate.c (main): Tighten tests: require equality,
63343         not just greater than.  Set TZ envvar to UTC0.
63345 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
63347         getdate: correctly interpret "next monday" when run on a Monday
63348         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
63349         that e.g., "next tues" (when run on a tuesday) results in a date
63350         that is one week in the future, and not today's date.
63351         I.e., add a week when the wday is the same as the current one.
63352         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
63353         and earlier by Martin Bernreuther and Jan Minář.
63354         * tests/test-getdate.c (main): Check that "next DAY" is always in
63355         the future and that "last DAY" is always in the past.
63357 2009-05-02  Jim Meyering  <meyering@redhat.com>
63359         build: ensure that a release build fails when a submodule is unclean
63360         * top/maint.mk (no-submodule-changes): New rule.
63361         (alpha beta major): Depend on it.
63363 2009-05-02  Bruno Haible  <bruno@clisp.org>
63365         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
63366         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
63367         shell variable gl_fnmatch_required to detect which variant is
63368         requested.
63369         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
63370         gl_FUNC_FNMATCH_POSIX.
63371         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
63372         exclude fnmatch-posix.
63374 2009-05-02  Bruno Haible  <bruno@clisp.org>
63376         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
63377         * modules/mbsrtowcs (License): Change to LGPLv2+.
63378         * modules/strnlen1 (License): Likewise.
63379         Reported by Simon Josefsson.
63381 2009-05-02  Bruno Haible  <bruno@clisp.org>
63383         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
63384         "cross".
63385         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
63386         gnulib-tool was called with option --source-base=lib.
63388 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63390         Use automake *-local hooks without commands, for extensibility.
63391         * modules/localcharset (Makefile.am): Rename install-exec-local
63392         rule to install-exec-localcharset, and make it a prerequisite of
63393         install-exec-local.  Likewise, rename the uninstall-local rule to
63394         uninstall-localcharset, and make it a prerequisite of the former.
63396 2009-05-01  Bruno Haible  <bruno@clisp.org>
63398         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
63399         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63400         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
63401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
63402         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
63403         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63404         m4/locale-zh.m4, m4/codeset.m4.
63406         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63407         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
63408         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63409         m4/locale-zh.m4.
63411         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
63412         REPLACE_WCRTOMB if mbstate_t must be replaced.
63413         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
63414         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
63416 2009-05-01  Bruno Haible  <bruno@clisp.org>
63418         Avoid compiler warnings when redefining macros defined by <libintl.h>.
63419         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
63420         dngettext, dcngettext, textdomain, bindtextdomain,
63421         bind_textdomain_codeset): Undefine before redefining.
63423 2009-04-30  Bruno Haible  <bruno@clisp.org>
63425         Fix bug introduced on 2009-04-25.
63426         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
63427         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
63428         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
63429         is defined.
63430         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
63431         is defined.
63432         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
63433         is defined.
63434         Reported by Elbert_Pol <elbert.pol@gmail.com>.
63436 2009-04-28  Bruno Haible  <bruno@clisp.org>
63438         Comment tweaks.
63439         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
63440         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
63441         * lib/unicase.h (u*_casexfrm): Likewise.
63442         Reported by Paolo Bonzini.
63444 2009-04-28  Bruno Haible  <bruno@clisp.org>
63446         Fix a compilation error.
63447         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
63448         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
63449         Reported by Jim Meyering.
63451 2009-04-27  Bruno Haible  <bruno@clisp.org>
63453         New module 'libunistring'.
63454         * modules/libunistring: New file.
63455         * m4/libunistring.m4: New file.
63456         * MODULES.html.sh (Unicode string functions): Add it.
63458 2009-04-27  Eric Blake  <ebb9@byu.net>
63460         maint.mk: allow package-specific header to provide <config.h>
63461         * top/maint.mk (sc_require_config_h): New variable.
63462         (sc_require_config_h, sc_require_config_h_first): Use it.
63464 2009-04-27  Simon Josefsson  <simon@josefsson.org>
63466         * top/maint.mk (sc_avoid_if_before_free): Except
63467         useless-if-before-free script.
63469 2009-04-27  Eric Blake  <ebb9@byu.net>
63471         maintainer-makefile: depend on all required helper scripts
63472         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
63473         useless-if-before-free.
63474         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
63475         version, rather than assuming gnulib checkout is available.
63476         Reported by Simen Josefsson.
63478 2009-04-26  Bruno Haible  <bruno@clisp.org>
63480         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
63481         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
63482         "../" or "..".
63484 2009-04-26  Bruno Haible  <bruno@clisp.org>
63486         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
63487         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
63488         AC_LIB_HAVE_LINKFLAGS.
63490 2009-04-26  Bruno Haible  <bruno@clisp.org>
63492         Simplify calling convention of u*_conv_from_encoding.
63493         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
63494         u32_conv_from_encoding): Expect a resultbuf argument and return the
63495         result directly as a pointer.
63496         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
63497         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
63498         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
63499         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
63500         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
63501         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
63502         Update.
63503         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
63504         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
63505         * lib/vasnprintf.c (VASNPRINTF): Update.
63506         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
63507         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
63508         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
63509         * NEWS: Mention the change.
63511 2009-04-26  Bruno Haible  <bruno@clisp.org>
63513         Simplify calling convention of u*_conv_to_encoding.
63514         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63515         u32_conv_to_encoding): Expect a resultbuf argument and return the
63516         result directly as a pointer.
63517         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
63518         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
63519         freeing scaled_offsets if mem_iconveha failed.
63520         * lib/unicase/u-casexfrm.h (FUNC): Update.
63521         * lib/uninorm/u-normxfrm.h (FUNC): Update.
63522         * lib/vasnprintf.c (VASNPRINTF): Update.
63523         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
63524         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
63525         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
63526         * NEWS: Mention the change.
63528 2009-04-26  Bruno Haible  <bruno@clisp.org>
63530         Avoid test failures on AIX and OSF/1.
63531         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
63532         malloc(0).
63533         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
63534         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
63535         Likewise.
63536         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
63537         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
63538         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
63539         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
63540         * doc/posix-functions/malloc.texi: Document the portability problem
63541         related to malloc(0).
63543 2009-04-26  Bruno Haible  <bruno@clisp.org>
63545         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
63546         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
63547         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
63549 2009-04-25  Bruno Haible  <bruno@clisp.org>
63551         Avoid link error when creating a namespace clean library.
63552         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
63553         as macro with arguments if already defined as an alias.
63554         * lib/signbitf.c (gl_signbitf): Don't undefine.
63555         * lib/signbitd.c (gl_signbitd): Don't undefine.
63556         * lib/signbitl.c (gl_signbitl): Don't undefine.
63558 2009-04-25  Jim Meyering  <meyering@redhat.com>
63560         vc-list-files: fix another quoting bug
63561         * build-aux/vc-list-files: Avoid sed backslash expansion
63562         of pathological directory names.
63564 2009-04-25  Eric Blake  <ebb9@byu.net>
63566         vc-list-files: fix shell quoting error
63567         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
63568         timestamp.
63570 2009-04-25  Jim Meyering  <meyering@redhat.com>
63572         vc-list-files: restore lost functionality with subdir argument
63573         * build-aux/vc-list-files: When given a non-"." sub-directory
63574         argument, substitute the $dir/ prefix back onto each resulting name.
63575         Otherwise, coreutils' root_tests check would fail.
63577 2009-04-24  Eric Blake  <ebb9@byu.net>
63579         vc-list-files: ignore git symlinks
63580         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
63581         than ls-files, to ignore git symlinks.
63583         maint.mk: import improvements from m4
63584         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
63585         (move_if_change): Delete unused macro.
63586         (news-date-check, vc-diff-check): Support VPATH builds.
63587         (announcement): Likewise.  Split --bootstrap-tools list...
63588         (boostrap-tools): ...into separate list, which can be overridden
63589         in cfg.mk.
63590         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
63591         requiring dependency on useless-if-before-free module.
63592         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
63593         Support VPATH builds.
63595 2009-04-24  Jim Meyering  <meyering@redhat.com>
63597         maint.mk: remove coreutils-specific rules and variables
63598         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
63599         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
63600         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
63602         maint.mk: remove obsolete rule
63603         * top/maint.mk (rel-check): Remove rule.
63604         (WGET, WGETFLAGS): Remove now-unused variables.
63606 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63608         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
63609         consistency.
63611         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
63612         '$(PATH_SEPARATOR)' instead of ':'.
63614 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63616         * lib/getopt1.c (main): Use 'const' for static array.
63618 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63620         * top/maint.mk: Sync with coreutils.
63621         * NEWS: Explain incompatibilities.
63623 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63624             Bruno Haible  <bruno@clisp.org>
63626         Fix cross-compilation results.
63627         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
63628         statement, as third argument of AC_TRY_RUN.
63629         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
63630         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
63631         Likewise.
63632         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63633         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
63634         Likewise.
63635         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63636         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
63637         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
63639 2009-04-20  Bruno Haible  <bruno@clisp.org>
63641         Avoid test failure on mingw.
63642         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
63644 2009-04-20  Bruno Haible  <bruno@clisp.org>
63646         Avoid compilation error on mingw.
63647         * modules/localename-tests (Depends-on): Add locale.
63649 2009-04-19  Bruno Haible  <bruno@clisp.org>
63651         Support for building a shared library on Windows platforms.
63652         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
63653         (main): Test the presence of UNINORM_NFC here.
63654         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
63655         (main): Test the presence of UNINORM_NFD here.
63656         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
63657         (main): Test the presence of UNINORM_NFKC here.
63658         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
63659         (main): Test the presence of UNINORM_NFKD here.
63661 2009-04-19  Bruno Haible  <bruno@clisp.org>
63663         Avoid a compiler warning.
63664         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
63665         Change type of variable 'sequence'.
63667 2009-04-19  Bruno Haible  <bruno@clisp.org>
63669         * modules/configmake (Makefile.am): When the contents of configmake.h
63670         does not change, arrange to preserve its modification time.
63672 2009-04-17  Simon Josefsson  <simon@josefsson.org>
63674         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
63675         gettext domain.
63677 2009-04-16  Jim Meyering  <meyering@redhat.com>
63679         useless-if-before-free: improve conversion code
63680         * build-aux/useless-if-before-free: Adjust code-in-comment to match
63681         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
63683 2009-04-14  Bruno Haible  <bruno@clisp.org>
63685         * modules/fcntl (Depends-on): Add extensions.
63686         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
63688 2009-04-12  Ben Pfaff  <blp@gnu.org>
63690         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
63691         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
63693 2009-03-20  Ben Pfaff  <blp@gnu.org>
63695         Make rename replace existing destinations on Windows.
63696         * m4/rename.m4: Add test for Mingw.
63697         * lib/rename.c: Add rename replacement that uses MoveFileEx with
63698         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
63699         * doc/posix-functions/rename.texi: Document.
63701 2009-04-10  Bruno Haible  <bruno@clisp.org>
63703         New include file "iconveh.h".
63704         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
63705         * lib/striconveh.h: Include it.
63706         (enum iconv_ilseq_handler): Remove definition.
63707         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
63708         striconveh.h.
63709         * lib/striconveha.c: Include striconveh.h.
63710         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
63711         * modules/striconveh (Files): Add lib/iconveh.h.
63712         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
63713         lib/striconveh.h.
63715 2009-04-10  Bruno Haible  <bruno@clisp.org>
63717         * lib/uniconv.h: Update comment.
63719 2009-04-10  Bruno Haible  <bruno@clisp.org>
63721         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
63722         always.
63723         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63724         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63725         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63726         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
63727         "unistring-notinline.h", so that the function gets defined always.
63728         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63729         * lib/unistr/u8-uctomb.c: Likewise.
63730         * lib/unistr/u16-mbtouc.c: Likewise.
63731         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63732         * lib/unistr/u16-uctomb.c: Likewise.
63733         * lib/unistr/u32-mbtouc.c: Likewise.
63734         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63735         * lib/unistr/u32-uctomb.c: Likewise.
63737 2009-04-10  Bruno Haible  <bruno@clisp.org>
63739         Mark 'utime' obsolete.
63740         * modules/utime (Status, Notice): New sections.
63741         Suggested by Jim Meyering.
63743         Fix cross-compile guess for utime test.
63744         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
63745         autoconf.
63746         * doc/posix-functions/utime.texi: Give more precisions.
63747         Reported by Jan <ipif@ymail.com>.
63749 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
63751         filevercmp: correct today's change
63752         * lib/filevercmp.c: Also handle coreutils' test inputs.
63753         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
63755         Fix regression in 'filevercmp' module. Thanks Sven Joachim
63756         for reporting it.
63757         * lib/filevercmp.c: Special handle for "", "." and "..".
63758         * tests/test-filevercmp.c: Enlarge the set suite.
63760 2009-04-07  Jim Meyering  <meyering@redhat.com>
63762         useless-if-before-free: show how to remove braced useless free, too
63763         * build-aux/useless-if-before-free: still only in a comment, though.
63765 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
63767         maint.mk: import changes to syntax-check macros from coreutils
63768         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
63769         Use them in the relevant macros.
63771 2009-04-06  Bruno Haible  <bruno@clisp.org>
63773         Fix unportable use of bit-fields.
63774         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
63775         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
63776         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
63778 2009-04-06  Bruno Haible  <bruno@clisp.org>
63780         Avoid test failures on AIX and OSF/1.
63781         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
63782         that malloc(0) = NULL.
63783         * tests/unicase/test-u8-tolower.c (check): Likewise.
63784         * tests/unicase/test-u8-totitle.c (check): Likewise.
63785         * tests/unicase/test-u8-toupper.c (check): Likewise.
63786         * tests/unicase/test-u16-casefold.c (check): Likewise.
63787         * tests/unicase/test-u16-tolower.c (check): Likewise.
63788         * tests/unicase/test-u16-totitle.c (check): Likewise.
63789         * tests/unicase/test-u16-toupper.c (check): Likewise.
63790         * tests/unicase/test-u32-casefold.c (check): Likewise.
63791         * tests/unicase/test-u32-tolower.c (check): Likewise.
63792         * tests/unicase/test-u32-totitle.c (check): Likewise.
63793         * tests/unicase/test-u32-toupper.c (check): Likewise.
63794         * tests/uninorm/test-u8-nfc.c (check): Likewise.
63795         * tests/uninorm/test-u8-nfd.c (check): Likewise.
63796         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
63797         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
63798         * tests/uninorm/test-u16-nfc.c (check): Likewise.
63799         * tests/uninorm/test-u16-nfd.c (check): Likewise.
63800         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
63801         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
63802         * tests/uninorm/test-u32-nfc.c (check): Likewise.
63803         * tests/uninorm/test-u32-nfd.c (check): Likewise.
63804         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
63805         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
63807 2009-04-05  Bruno Haible  <bruno@clisp.org>
63809         Work around an autoconf limitation.
63810         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
63811         comment line if it would be longer than 3 KB.
63813 2009-04-05  Bruno Haible  <bruno@clisp.org>
63815         Avoid test failure with libiconv-1.13.
63816         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
63817         of the expected test results.
63819 2009-04-05  Bruno Haible  <bruno@clisp.org>
63821         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
63822         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
63823         that it should be installed.
63825 2009-04-05  Bruno Haible  <bruno@clisp.org>
63827         * gnulib-tool: New option --copy-file.
63828         (func_usage): Document it.
63829         (func_dest_tmpfilename): Moved out of func_import.
63830         (func_add_file, func_update_file): New functions, extracted from
63831         func_import.
63832         (func_import): Update.
63834 2009-04-05  Karl Berry  <karl@gnu.org>
63836         * README: prominently mention gnulib-tool.
63837         Rearrange sections so getting the code is near the top.
63839 2009-04-05  Bruno Haible  <bruno@clisp.org>
63841         * lib/unicase.h: Mention u*_cmp2.
63842         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
63843         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
63844         * lib/unicase/ulc-casecmp.c: Likewise.
63845         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
63846         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
63847         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
63848         unistr/u8-cmp.
63849         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
63850         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
63851         unistr/u16-cmp.
63852         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
63853         unistr/u32-cmp.
63855         * lib/uninorm.h: Mention u*_cmp2.
63856         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
63857         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
63858         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
63859         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
63860         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
63861         unistr/u8-cmp.
63862         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
63863         unistr/u16-cmp.
63864         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
63865         unistr/u32-cmp.
63867         New module 'unistr/u32-cmp2'.
63868         * lib/unistr/u32-cmp2.c: New file.
63869         * modules/unistr/u32-cmp2: New file.
63871         New module 'unistr/u16-cmp2'.
63872         * lib/unistr/u16-cmp2.c: New file.
63873         * modules/unistr/u16-cmp2: New file.
63875         New module 'unistr/u8-cmp2'.
63876         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
63877         * lib/unistr/u8-cmp2.c: New file.
63878         * lib/unistr/u-cmp2.h: New file.
63879         * modules/unistr/u8-cmp2: New file.
63881 2009-04-05  Bruno Haible  <bruno@clisp.org>
63883         * lib/unictype.h (uc_property_is_valid): New macro.
63884         * tests/unictype/test-pr_byname.c (main): Use it.
63886         * lib/unistr.h: Doc fixes.
63887         * lib/uniconv.h: Doc fixes.
63888         * lib/unictype.h: Doc fixes.
63890 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
63892         Port coreutils 7.2 to Solaris 8.
63894         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
63895         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
63896         for Solaris 8.  This is a bit of a hack, as it means it's the
63897         caller's responsibility to add -lnsl if needed, but most likely it
63898         won't be needed since only getaddrinfo uses this and getaddrinfo
63899         isn't needed on Solaris 8.
63901         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
63902         problem to Solaris 8 encountered with coreutils 7.2, which
63903         resulted in a message "fnmatch.c:292: warning: passing argument 4
63904         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
63905         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
63907 2009-04-03  Simon Josefsson  <simon@josefsson.org>
63909         * m4/ld-version-script.m4: Add FIXME comment.
63911 2009-04-02  Simon Josefsson  <simon@josefsson.org>
63913         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
63914         SOVERSION variable.
63916 2009-04-02  Bruno Haible  <bruno@clisp.org>
63918         * Makefile (info, html, dvi, pdf): Combine the rules.
63919         Suggested by Jim Meyering.
63921 2009-04-01  Bruno Haible  <bruno@clisp.org>
63923         * Makefile (info, html, dvi, pdf): New targets.
63924         Reported by Reuben Thomas <rrt@sc3d.org>.
63926 2009-04-01  Bruno Haible  <bruno@clisp.org>
63928         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
63929         can be put into PATH.
63930         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
63932 2009-04-01  Bruno Haible  <bruno@clisp.org>
63934         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
63936 2009-04-01  Bruno Haible  <bruno@clisp.org>
63938         Rename module 'visibility'.
63939         * modules/lib-symbol-visibility: Renamed from modules/visibility.
63940         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
63941         * doc/gnulib.texi: Update.
63942         * MODULES.html.sh (Misc): Update.
63943         * NEWS: Mention the change.
63945 2009-04-01  Simon Josefsson  <simon@josefsson.org>
63947         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
63948         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
63949         Eric Blake <ebb9@byu.net> for review.
63950         * MODULES.html.sh: Add lib-msvc-compat.
63951         * doc/gnulib.texi: Link to new section.
63952         * m4/ld-output-def.m4: New file.
63953         * doc/ld-output-def.texi: New file.
63955 2009-04-01  Simon Josefsson  <simon@josefsson.org>
63957         Rename ld-version-script to lib-symbol-versions.  Suggested by
63958         Bruno Haible <bruno@clisp.org>.
63959         * modules/ld-version-script: Renamed to lib-symbol-versions.
63960         * doc/ld-version-script.texi: Fix module name.
63961         * MODULES.html.sh: Add lib-symbol-versions.
63963 2009-03-31  Simon Josefsson  <simon@josefsson.org>
63965         * modules/u64-tests: New file.
63966         * tests/test-u64.c: New file.
63968 2009-03-04  Simon Josefsson  <simon@josefsson.org>
63970         * MODULES.html.sh: Mention u64.
63971         * modules/u64: New module.
63972         * modules/crypto/sha512: Depend on u64 module instead of providing
63973         u64.h.
63975 2009-03-27  Eric Blake  <ebb9@byu.net>
63977         test-strerror: make debugging EAI_SYSTEM easier
63978         * modules/getaddrinfo-tests (Depends-on): Add strerror.
63979         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
63980         failure was EAI_SYSTEM.
63982 2009-03-25  Bruno Haible  <bruno@clisp.org>
63984         Fix a problem with --enable-relocatable on Solaris 7.
63985         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
63986         since 2008-02-24.
63988 2009-03-25  Eric Blake  <ebb9@byu.net>
63990         test-sockets: avoid gcc warning
63991         * tests/test-sockets.c (main): Silence compiler warning.
63993 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63995         New modules nproc, pthread, contributed by Glen Lenker.
63997         * MODULES.html.sh: Add pthread, nproc.
63998         * lib/nproc.c: New file.
63999         * lib/nproc.h: New file.
64000         * lib/pthread.in.h: New file.
64001         * m4/pthread.m4: New file.
64002         * modules/nproc: New file.
64003         * modules/pthread: New file.
64005 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64007         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
64008         New variable.
64010 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
64012         filevercmp: handle simple~ and numbered.~3~ backup suffixes
64013         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
64014         * tests/test-filevercmp.c: Add tests for backup suffixes.
64016 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64018         * modules/stdlib (Depends-on): Add stdint, needed when defining
64019         struct random_data on, for example, HP-UX 10.20.  Reported by
64020         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64022 2009-03-24  Simon Josefsson  <simon@josefsson.org>
64024         * lib/readline.c (readline): Call fflush on stdout after printing
64025         prompt.
64027 2009-03-20  Bruno Haible  <bruno@clisp.org>
64029         Remove dependency from 'close' module to -lws2_32 on native Windows.
64030         * lib/close-hook.h: New file.
64031         * lib/close-hook.c: New file.
64032         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
64033         w32sock.h.
64034         (_gl_close_fd_maybe_socket): Remove function.
64035         (rpl_close): Invoke execute_all_close_hooks instead of
64036         _gl_close_fd_maybe_socket.
64037         * lib/sockets.c: Include close-hook.h, w32sock.h.
64038         (close_fd_maybe_socket): New function, essentially from lib/close.c.
64039         (close_sockets_hook): New variable.
64040         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
64041         (gl_sockets_cleanup): Unregister it.
64042         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
64043         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
64044         * modules/close-hook: New file.
64045         * modules/close (Files): Remove lib/w32sock.h.
64046         (Depends-on): Add close-hook.
64047         (Link): Remove section.
64048         * modules/sockets (Files): Add lib/w32sock.h.
64049         (Depends-on): Add close-hook.
64050         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
64051         invocation.
64052         * NEWS: Mention that LIB_CLOSE is gone.
64054 2009-03-23  Eric Blake  <ebb9@byu.net>
64056         signal-tests: test previous patch
64057         * tests/test-signal.c: New file.
64058         * modules/signal-tests: Likewise.
64060         signal.h: always support 'volatile sig_atomic_t'
64061         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
64062         (gl_SIGNAL_H_DEFAULTS): Add a default.
64063         * modules/signal (Makefile.am): Substitute if needed.
64064         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
64065         users can blindly add volatile.
64066         * doc/posix-headers/signal.texi (signal.h): Document it.
64067         Reported by Matthew Woehlke.
64069 2009-03-23  Jim Meyering  <meyering@redhat.com>
64071         pathmax: PATH_MAX: use pathconf only when available
64072         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
64073         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
64074         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
64075         This avoids a link failure in a PSP cross-compilation environment
64076         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
64078         * lib/vasnprintf.c (divide): Fix typo in comment.
64080 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64082         * gnulib-tool (func_filter_filelist): Fix comment.
64084 2009-03-20  Bruno Haible  <bruno@clisp.org>
64086         Make sockets.h self-contained.
64087         * lib/sockets.c: Include sockets.h first.
64088         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
64090 2009-03-19  Eric Blake  <ebb9@byu.net>
64092         doc: mention more functions added in cygwin 1.7.0
64093         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
64094         addition.
64095         * doc/posix-functions/log2f.texi: Likewise.
64097 2009-03-19  Jim Meyering  <meyering@redhat.com>
64099         fsusage: avoid syntax error due to statement-before-declaration
64100         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
64101         after all declarations.  Reported by Matthew Woehlke in
64102         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
64104 2009-03-18  Eric Blake  <ebb9@byu.net>
64106         build-aux/compile: sync from automake
64107         * build-aux/compile: New file, from automake.
64108         * config/srclist.txt: Mention build-aux/compile.
64110 2009-03-17  Bruno Haible  <bruno@clisp.org>
64112         * lib/git-merge-changelog.c: Fix typo in comment.
64113         Reported by Reuben Thomas <rrt@sc3d.org>.
64115 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
64117         * m4/regex.m4: update and improve help for
64118         --without-included-regex.
64120 2009-03-17  Simon Josefsson  <simon@josefsson.org>
64122         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
64123         failure on missing include files.
64125 2009-03-17  Eric Blake  <ebb9@byu.net>
64127         doc: mention more functions added in cygwin 1.7.0
64128         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
64129         addition.
64130         * doc/posix-functions/fwscanf.texi: Likewise.
64131         * doc/posix-functions/swprintf.texi: Likewise.
64132         * doc/posix-functions/swscanf.texi: Likewise.
64133         * doc/posix-functions/vfwprintf.texi: Likewise.
64134         * doc/posix-functions/vfwscanf.texi: Likewise.
64135         * doc/posix-functions/vswprintf.texi: Likewise.
64136         * doc/posix-functions/vswscanf.texi: Likewise.
64137         * doc/posix-functions/vwprintf.texi: Likewise.
64138         * doc/posix-functions/vwscanf.texi: Likewise.
64139         * doc/posix-functions/wcscasecmp.texi: Likewise.
64140         * doc/posix-functions/wcsdup.texi: Likewise.
64141         * doc/posix-functions/wcsftime.texi: Likewise.
64142         * doc/posix-functions/wcsncasecmp.texi: Likewise.
64143         * doc/posix-functions/wprintf.texi: Likewise.
64144         * doc/posix-functions/wscanf.texi: Likewise.
64145         * doc/glibc-functions/gethostbyname2.texi: Likewise.
64147 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64149         maint.mk: really add $(AM_MAKEFLAGS)
64150         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
64151         was inadvertently omitted in the last commit.
64152         Spotted by Bruno Haible.
64154         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
64155         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
64156         $(AM_MAKEFLAGS)' rather than plain `make'.
64158         gnulib-tool: execute $MAKE not make
64159         * gnulib-tool: Default $MAKE to 'make'.
64160         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
64161         than make.  Initialize $MAKE in the do-autobuild script.
64163         gnulib-tool: use $MAKE not make in generated files
64164         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
64165         make, in generated files.  Initialize $MAKE in the do-autobuild
64166         script.
64168         * top/GNUmakefile (_have-git-version-gen): Fix typo.
64170         GNUmakefile: disable parallelism only for multiple, recursive targets
64171         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
64172         additions in the Makefile.
64173         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
64174         by Automake.
64175         (.NOTPARALLEL): Only disable parallel builds if multiple targets
64176         are listed on the command line and at least one of them is
64177         listed in $(ALL_RECURSIVE_TARGETS).
64179 2009-03-14  Bruno Haible  <bruno@clisp.org>
64181         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
64182         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
64183         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
64184         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
64185         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
64186         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
64187         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
64188         unistr/u8-uctomb.
64189         * modules/unistr/u8-strchr (Depends-on): Likewise.
64190         * modules/unistr/u8-strrchr (Depends-on): Likewise.
64191         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
64192         unistr/u16-uctomb.
64193         * modules/unistr/u16-strchr (Depends-on): Likewise.
64194         * modules/unistr/u16-strrchr (Depends-on): Likewise.
64196 2009-03-12  Bruno Haible  <bruno@clisp.org>
64198         Work around select() bug on Interix 3.5.
64199         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
64200         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
64201         * m4/select.m4: New file.
64202         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
64203         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
64204         * modules/select (Files): Add m4/select.m4.
64205         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
64206         * modules/nanosleep (Depends-on): Add select.
64207         * modules/poll (Depends-on): Likewise.
64208         * doc/posix-functions/select.texi: Mention the Interix bug.
64209         Reported by Markus Duft <mduft@gentoo.org>.
64211         * lib/select.c: Renamed from lib/winsock-select.c.
64212         * modules/select (Files): Add lib/select.c, remove
64213         lib/winsock-select.c.
64214         (configure.ac): Update.
64216 2009-03-12  Jim Meyering  <meyering@redhat.com>
64218         avoid gcc warnings about unused macro definitions
64219         * lib/readtokens.c (STREQ): Remove unused definition.
64220         * lib/xmalloc.c (SIZE_MAX): Likewise.
64221         * lib/openat-die.c (N_): Likewise.
64222         * lib/mountlist.c (SIZE_MAX): Remove definition.
64223         Instead, include <stdint.h>.
64224         * lib/readutmp.c: Likewise.
64225         * modules/readutmp (Depends-on): Add stdint.
64226         * modules/mountlist (Depends-on): Add stdint.
64227         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
64229 2009-03-10  Bruno Haible  <bruno@clisp.org>
64231         Tests for module 'mbmemcasecoll'.
64232         * modules/mbmemcasecoll-tests: New file.
64233         * tests/test-mbmemcasecoll1.sh: New file.
64234         * tests/test-mbmemcasecoll2.sh: New file.
64235         * tests/test-mbmemcasecoll3.sh: New file.
64236         * tests/test-mbmemcasecoll.c: New file.
64238         New module 'mbmemcasecoll'.
64239         * lib/mbmemcasecoll.h: New file.
64240         * lib/mbmemcasecoll.c: New file.
64241         * modules/mbmemcasecoll: New file.
64243         * tests/test-mbmemcasecmp.h: New file, extracted from
64244         tests/test-mbmemcasecmp.c.
64245         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
64246         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
64247         (main): Update.
64248         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
64250 2009-03-09  Bruno Haible  <bruno@clisp.org>
64252         Tests for module 'mbmemcasecmp'.
64253         * modules/mbmemcasecmp-tests: New file.
64254         * tests/test-mbmemcasecmp1.sh: New file.
64255         * tests/test-mbmemcasecmp2.sh: New file.
64256         * tests/test-mbmemcasecmp3.sh: New file.
64257         * tests/test-mbmemcasecmp.c: New file.
64259         New module 'mbmemcasecmp'.
64260         * lib/mbmemcasecmp.h: New file.
64261         * lib/mbmemcasecmp.c: New file.
64262         * modules/mbmemcasecmp: New file.
64264 2009-03-09  Bruno Haible  <bruno@clisp.org>
64266         Tests for module 'unicase/ulc-casecoll'.
64267         * modules/unicase/ulc-casecoll-tests: New file.
64268         * tests/unicase/test-ulc-casecoll1.sh: New file.
64269         * tests/unicase/test-ulc-casecoll2.sh: New file.
64270         * tests/unicase/test-ulc-casecoll.c: New file.
64272         New module 'unicase/ulc-casecoll'.
64273         * lib/unicase.h (ulc_casecoll): New declaration.
64274         * lib/unicase/ulc-casecoll.c: New file.
64275         * modules/unicase/ulc-casecoll: New file.
64277         New module 'unicase/ulc-casexfrm'.
64278         * lib/unicase.h (ulc_casexfrm): New declaration.
64279         * lib/unicase/ulc-casexfrm.c: New file.
64280         * modules/unicase/ulc-casexfrm: New file.
64282 2009-03-09  Bruno Haible  <bruno@clisp.org>
64284         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
64285         invocations.
64287         * m4/mbscasecmp.m4: Remove file.
64288         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
64289         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
64291         * m4/mbscasestr.m4: Remove file.
64292         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
64293         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
64295         * m4/mbschr.m4: Remove file.
64296         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
64297         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
64299         * m4/mbscspn.m4: Remove file.
64300         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
64301         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
64303         * m4/mbslen.m4: Remove file.
64304         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
64305         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
64307         * m4/mbsncasecmp.m4: Remove file.
64308         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
64309         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
64311         * m4/mbsnlen.m4: Remove file.
64312         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
64313         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
64315         * m4/mbspbrk.m4: Remove file.
64316         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
64317         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
64319         * m4/mbspcasecmp.m4: Remove file.
64320         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
64321         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
64323         * m4/mbsrchr.m4: Remove file.
64324         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
64325         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
64327         * m4/mbssep.m4: Remove file.
64328         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
64329         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
64331         * m4/mbsspn.m4: Remove file.
64332         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
64333         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
64335         * m4/mbsstr.m4: Remove file.
64336         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
64337         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
64339         * m4/mbstok_r.m4: Remove file.
64340         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
64341         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
64343         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
64345         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
64346         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
64348         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
64350 2009-03-08  Bruno Haible  <bruno@clisp.org>
64352         Tests for module 'unicase/ulc-casecmp'.
64353         * modules/unicase/ulc-casecmp-tests: New file.
64354         * tests/unicase/test-ulc-casecmp1.sh: New file.
64355         * tests/unicase/test-ulc-casecmp2.sh: New file.
64356         * tests/unicase/test-ulc-casecmp.c: New file.
64358         New module 'unicase/ulc-casecmp'.
64359         * lib/unicase.h (ulc_casecmp): New declaration.
64360         * lib/unicase/ulc-casecmp.c: New file.
64361         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
64362         'const SRC_UNIT *'.
64363         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
64364         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
64365         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
64366         * modules/unicase/ulc-casecmp: New file.
64368         Tests for module 'unicase/u32-is-cased'.
64369         * modules/unicase/u32-is-cased-tests: New file.
64370         * tests/unicase/test-u32-is-cased.c: New file.
64372         Tests for module 'unicase/u16-is-cased'.
64373         * modules/unicase/u16-is-cased-tests: New file.
64374         * tests/unicase/test-u16-is-cased.c: New file.
64376         Tests for module 'unicase/u8-is-cased'.
64377         * modules/unicase/u8-is-cased-tests: New file.
64378         * tests/unicase/test-u8-is-cased.c: New file.
64379         * tests/unicase/test-is-cased.h: New file.
64381         New module 'unicase/u32-is-cased'.
64382         * lib/unicase/u32-is-cased.c: New file.
64383         * modules/unicase/u32-is-cased: New file.
64385         New module 'unicase/u16-is-cased'.
64386         * lib/unicase/u16-is-cased.c: New file.
64387         * modules/unicase/u16-is-cased: New file.
64389         New module 'unicase/u8-is-cased'.
64390         * lib/unicase/u8-is-cased.c: New file.
64391         * lib/unicase/u-is-cased.h: New file.
64392         * modules/unicase/u8-is-cased: New file.
64394         Tests for module 'unicase/u32-is-casefolded'.
64395         * modules/unicase/u32-is-casefolded-tests: New file.
64396         * tests/unicase/test-u32-is-casefolded.c: New file.
64398         Tests for module 'unicase/u16-is-casefolded'.
64399         * modules/unicase/u16-is-casefolded-tests: New file.
64400         * tests/unicase/test-u16-is-casefolded.c: New file.
64402         Tests for module 'unicase/u8-is-casefolded'.
64403         * modules/unicase/u8-is-casefolded-tests: New file.
64404         * tests/unicase/test-u8-is-casefolded.c: New file.
64405         * tests/unicase/test-is-casefolded.h: New file.
64407         New module 'unicase/u32-is-casefolded'.
64408         * lib/unicase/u32-is-casefolded.c: New file.
64409         * modules/unicase/u32-is-casefolded: New file.
64411         New module 'unicase/u16-is-casefolded'.
64412         * lib/unicase/u16-is-casefolded.c: New file.
64413         * modules/unicase/u16-is-casefolded: New file.
64415         New module 'unicase/u8-is-casefolded'.
64416         * lib/unicase/u8-is-casefolded.c: New file.
64417         * modules/unicase/u8-is-casefolded: New file.
64419         Tests for module 'unicase/u32-is-titlecase'.
64420         * modules/unicase/u32-is-titlecase-tests: New file.
64421         * tests/unicase/test-u32-is-titlecase.c: New file.
64423         Tests for module 'unicase/u16-is-titlecase'.
64424         * modules/unicase/u16-is-titlecase-tests: New file.
64425         * tests/unicase/test-u16-is-titlecase.c: New file.
64427         Tests for module 'unicase/u8-is-titlecase'.
64428         * modules/unicase/u8-is-titlecase-tests: New file.
64429         * tests/unicase/test-u8-is-titlecase.c: New file.
64430         * tests/unicase/test-is-titlecase.h: New file.
64432         New module 'unicase/u32-is-titlecase'.
64433         * lib/unicase/u32-is-titlecase.c: New file.
64434         * modules/unicase/u32-is-titlecase: New file.
64436         New module 'unicase/u16-is-titlecase'.
64437         * lib/unicase/u16-is-titlecase.c: New file.
64438         * modules/unicase/u16-is-titlecase: New file.
64440         New module 'unicase/u8-is-titlecase'.
64441         * lib/unicase/u8-is-titlecase.c: New file.
64442         * modules/unicase/u8-is-titlecase: New file.
64444         Tests for module 'unicase/u32-is-lowercase'.
64445         * modules/unicase/u32-is-lowercase-tests: New file.
64446         * tests/unicase/test-u32-is-lowercase.c: New file.
64448         Tests for module 'unicase/u16-is-lowercase'.
64449         * modules/unicase/u16-is-lowercase-tests: New file.
64450         * tests/unicase/test-u16-is-lowercase.c: New file.
64452         Tests for module 'unicase/u8-is-lowercase'.
64453         * modules/unicase/u8-is-lowercase-tests: New file.
64454         * tests/unicase/test-u8-is-lowercase.c: New file.
64455         * tests/unicase/test-is-lowercase.h: New file.
64457         New module 'unicase/u32-is-lowercase'.
64458         * lib/unicase/u32-is-lowercase.c: New file.
64459         * modules/unicase/u32-is-lowercase: New file.
64461         New module 'unicase/u16-is-lowercase'.
64462         * lib/unicase/u16-is-lowercase.c: New file.
64463         * modules/unicase/u16-is-lowercase: New file.
64465         New module 'unicase/u8-is-lowercase'.
64466         * lib/unicase/u8-is-lowercase.c: New file.
64467         * modules/unicase/u8-is-lowercase: New file.
64469         Tests for module 'unicase/u32-is-uppercase'.
64470         * modules/unicase/u32-is-uppercase-tests: New file.
64471         * tests/unicase/test-u32-is-uppercase.c: New file.
64473         Tests for module 'unicase/u16-is-uppercase'.
64474         * modules/unicase/u16-is-uppercase-tests: New file.
64475         * tests/unicase/test-u16-is-uppercase.c: New file.
64477         Tests for module 'unicase/u8-is-uppercase'.
64478         * modules/unicase/u8-is-uppercase-tests: New file.
64479         * tests/unicase/test-u8-is-uppercase.c: New file.
64480         * tests/unicase/test-is-uppercase.h: New file.
64482         New module 'unicase/u32-is-uppercase'.
64483         * lib/unicase/u32-is-uppercase.c: New file.
64484         * modules/unicase/u32-is-uppercase: New file.
64486         New module 'unicase/u16-is-uppercase'.
64487         * lib/unicase/u16-is-uppercase.c: New file.
64488         * modules/unicase/u16-is-uppercase: New file.
64490         New module 'unicase/u8-is-uppercase'.
64491         * lib/unicase/u8-is-uppercase.c: New file.
64492         * modules/unicase/u8-is-uppercase: New file.
64494         New module 'unicase/u32-is-invariant'.
64495         * lib/unicase/u32-is-invariant.c: New file.
64496         * modules/unicase/u32-is-invariant: New file.
64498         New module 'unicase/u16-is-invariant'.
64499         * lib/unicase/u16-is-invariant.c: New file.
64500         * modules/unicase/u16-is-invariant: New file.
64502         New module 'unicase/u8-is-invariant'.
64503         * lib/unicase/u8-is-invariant.c: New file.
64504         * lib/unicase/invariant.h: New file.
64505         * lib/unicase/u-is-invariant.h: New file.
64506         * modules/unicase/u8-is-invariant: New file.
64508         Tests for module 'unicase/u32-casecoll'.
64509         * modules/unicase/u32-casecoll-tests: New file.
64510         * tests/unicase/test-u32-casecoll.c: New file.
64512         Tests for module 'unicase/u16-casecoll'.
64513         * modules/unicase/u16-casecoll-tests: New file.
64514         * tests/unicase/test-u16-casecoll.c: New file.
64516         Tests for module 'unicase/u8-casecoll'.
64517         * modules/unicase/u8-casecoll-tests: New file.
64518         * tests/unicase/test-u8-casecoll.c: New file.
64520         New module 'unicase/u32-casecoll'.
64521         * lib/unicase/u32-casecoll.c: New file.
64522         * modules/unicase/u32-casecoll: New file.
64524         New module 'unicase/u16-casecoll'.
64525         * lib/unicase/u16-casecoll.c: New file.
64526         * modules/unicase/u16-casecoll: New file.
64528         New module 'unicase/u8-casecoll'.
64529         * lib/unicase/u8-casecoll.c: New file.
64530         * lib/unicase/u-casecoll.h: New file.
64531         * modules/unicase/u8-casecoll: New file.
64533         New module 'unicase/u32-casexfrm'.
64534         * lib/unicase/u32-casexfrm.c: New file.
64535         * modules/unicase/u32-casexfrm: New file.
64537         New module 'unicase/u16-casexfrm'.
64538         * lib/unicase/u16-casexfrm.c: New file.
64539         * modules/unicase/u16-casexfrm: New file.
64541         New module 'unicase/u8-casexfrm'.
64542         * lib/unicase/u8-casexfrm.c: New file.
64543         * lib/unicase/u-casexfrm.h: New file.
64544         * modules/unicase/u8-casexfrm: New file.
64546         Tests for module 'unicase/u32-casecmp'.
64547         * modules/unicase/u32-casecmp-tests: New file.
64548         * tests/unicase/test-u32-casecmp.c: New file.
64550         Tests for module 'unicase/u16-casecmp'.
64551         * modules/unicase/u16-casecmp-tests: New file.
64552         * tests/unicase/test-u16-casecmp.c: New file.
64554         Tests for module 'unicase/u8-casecmp'.
64555         * modules/unicase/u8-casecmp-tests: New file.
64556         * tests/unicase/test-u8-casecmp.c: New file.
64557         * tests/unicase/test-casecmp.h: New file.
64559         New module 'unicase/u32-casecmp'.
64560         * lib/unicase/u32-casecmp.c: New file.
64561         * modules/unicase/u32-casecmp: New file.
64563         New module 'unicase/u16-casecmp'.
64564         * lib/unicase/u16-casecmp.c: New file.
64565         * modules/unicase/u16-casecmp: New file.
64567         New module 'unicase/u8-casecmp'.
64568         * lib/unicase/u8-casecmp.c: New file.
64569         * lib/unicase/u-casecmp.h: New file.
64570         * modules/unicase/u8-casecmp: New file.
64572         Tests for module 'unicase/u32-casefold'.
64573         * modules/unicase/u32-casefold-tests: New file.
64574         * tests/unicase/test-u32-casefold.c: New file.
64576         Tests for module 'unicase/u16-casefold'.
64577         * modules/unicase/u16-casefold-tests: New file.
64578         * tests/unicase/test-u16-casefold.c: New file.
64580         Tests for module 'unicase/u8-casefold'.
64581         * modules/unicase/u8-casefold-tests: New file.
64582         * tests/unicase/test-u8-casefold.c: New file.
64584         New module 'unicase/u32-casefold'.
64585         * lib/unicase/u32-casefold.c: New file.
64586         * modules/unicase/u32-casefold: New file.
64588         New module 'unicase/u16-casefold'.
64589         * lib/unicase/u16-casefold.c: New file.
64590         * modules/unicase/u16-casefold: New file.
64592         New module 'unicase/u8-casefold'.
64593         * lib/unicase/u8-casefold.c: New file.
64594         * lib/unicase/u-casefold.h: New file.
64595         * modules/unicase/u8-casefold: New file.
64597         New module 'unicase/tocasefold'.
64598         * lib/unicase/casefold.h: New file.
64599         * lib/unicase/tocasefold.c: New file.
64600         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
64601         * modules/unicase/tocasefold: New file.
64603         Tests for module 'unicase/u32-totitle'.
64604         * modules/unicase/u32-totitle-tests: New file.
64605         * tests/unicase/test-u32-totitle.c: New file.
64607         Tests for module 'unicase/u16-totitle'.
64608         * modules/unicase/u16-totitle-tests: New file.
64609         * tests/unicase/test-u16-totitle.c: New file.
64611         Tests for module 'unicase/u8-totitle'.
64612         * modules/unicase/u8-totitle-tests: New file.
64613         * tests/unicase/test-u8-totitle.c: New file.
64615         New module 'unicase/u32-totitle'.
64616         * lib/unicase/u32-totitle.c: New file.
64617         * modules/unicase/u32-totitle: New file.
64619         New module 'unicase/u16-totitle'.
64620         * lib/unicase/u16-totitle.c: New file.
64621         * modules/unicase/u16-totitle: New file.
64623         New module 'unicase/u8-totitle'.
64624         * lib/unicase/u8-totitle.c: New file.
64625         * lib/unicase/u-totitle.h: New file.
64626         * modules/unicase/u8-totitle: New file.
64628         Tests for module 'unicase/u32-tolower'.
64629         * modules/unicase/u32-tolower-tests: New file.
64630         * tests/unicase/test-u32-tolower.c: New file.
64632         Tests for module 'unicase/u16-tolower'.
64633         * modules/unicase/u16-tolower-tests: New file.
64634         * tests/unicase/test-u16-tolower.c: New file.
64636         Tests for module 'unicase/u8-tolower'.
64637         * modules/unicase/u8-tolower-tests: New file.
64638         * tests/unicase/test-u8-tolower.c: New file.
64640         New module 'unicase/u32-tolower'.
64641         * lib/unicase/u32-tolower.c: New file.
64642         * modules/unicase/u32-tolower: New file.
64644         New module 'unicase/u16-tolower'.
64645         * lib/unicase/u16-tolower.c: New file.
64646         * modules/unicase/u16-tolower: New file.
64648         New module 'unicase/u8-tolower'.
64649         * lib/unicase/u8-tolower.c: New file.
64650         * modules/unicase/u8-tolower: New file.
64652         Tests for module 'unicase/u32-toupper'.
64653         * modules/unicase/u32-toupper-tests: New file.
64654         * tests/unicase/test-u32-toupper.c: New file.
64656         Tests for module 'unicase/u16-toupper'.
64657         * modules/unicase/u16-toupper-tests: New file.
64658         * tests/unicase/test-u16-toupper.c: New file.
64660         Tests for module 'unicase/u8-toupper'.
64661         * modules/unicase/u8-toupper-tests: New file.
64662         * tests/unicase/test-u8-toupper.c: New file.
64664         New module 'unicase/u32-toupper'.
64665         * lib/unicase/u32-toupper.c: New file.
64666         * modules/unicase/u32-toupper: New file.
64668         New module 'unicase/u16-toupper'.
64669         * lib/unicase/u16-toupper.c: New file.
64670         * modules/unicase/u16-toupper: New file.
64672         New module 'unicase/u8-toupper'.
64673         * lib/unicase/u8-toupper.c: New file.
64674         * modules/unicase/u8-toupper: New file.
64676         New module 'unicase/u32-casemap'.
64677         * lib/unicase/u32-casemap.c: New file.
64678         * modules/unicase/u32-casemap: New file.
64680         New module 'unicase/u16-casemap'.
64681         * lib/unicase/u16-casemap.c: New file.
64682         * modules/unicase/u16-casemap: New file.
64684         New module 'unicase/u8-casemap'.
64685         * lib/unicase/unicasemap.h: New file.
64686         * lib/unicase/u8-casemap.c: New file.
64687         * lib/unicase/u-casemap.h: New file.
64688         * modules/unicase/u8-casemap: New file.
64690         New module 'unicase/special-casing'.
64691         * lib/unicase/special-casing.h: New file.
64692         * lib/unicase/special-casing.c: New file.
64693         * lib/unicase/special-casing-table.gperf: New file, generated by
64694         gen-uni-tables.c.
64695         * modules/unicase/special-casing: New file.
64697         Tests for module 'unicase/locale-language'.
64698         * modules/unicase/locale-language-tests: New file.
64699         * tests/unicase/test-locale-language.sh: New file.
64700         * tests/unicase/test-locale-language.c: New file.
64702         New module 'unicase/locale-language'.
64703         * lib/unicase/locale-language.c: New file.
64704         * lib/unicase/locale-languages.gperf: New file.
64705         * modules/unicase/locale-language: New file.
64707         Generate more tables for case conversion and case folding.
64708         * lib/gen-uni-tables.c (SCC_*): New enum items.
64709         (struct special_casing_rule): New type.
64710         (casing_rules, num_casing_rules, allocated_casing_rules): New
64711         variables.
64712         (add_casing_rule, fill_casing_rules): New functions.
64713         (struct casefold_rule): New type.
64714         (casefolding_rules, num_casefolding_rules,
64715         allocated_casefolding_rules): New variables.
64716         (fill_casefolding_rules): New function.
64717         (unicode_casefold): New variable.
64718         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
64719         sort_casing_rules, output_casing_rules): New functions.
64720         (main): Accept to more arguments: SpecialCasing.txt and
64721         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
64722         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
64723         Output mapping for casefolding.
64725         * lib/unicase.h: Include stdbool.h, uninorm.h.
64726         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
64727         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
64728         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
64729         arguments.
64730         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
64731         resultp arguments.
64732         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
64733         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
64734         resultp arguments.
64735         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
64736         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
64737         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
64738         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
64739         declarations.
64740         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
64742 2009-03-08  Bruno Haible  <bruno@clisp.org>
64744         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
64745         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
64746         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
64747         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
64749 2009-03-07  Bruno Haible  <bruno@clisp.org>
64751         Adjust u*_normcmp, u*_normcoll API.
64752         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
64753         u16_normcoll, u32_normcoll): Change failure conventions.
64754         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
64755         errno and return -1.
64756         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
64758 2009-03-07  Bruno Haible  <bruno@clisp.org>
64760         Tests for module 'uninorm/u32-normcoll'.
64761         * modules/uninorm/u32-normcoll-tests: New file.
64762         * tests/uninorm/test-u32-normcoll.c: New file.
64764         Tests for module 'uninorm/u16-normcoll'.
64765         * modules/uninorm/u16-normcoll-tests: New file.
64766         * tests/uninorm/test-u16-normcoll.c: New file.
64768         Tests for module 'uninorm/u8-normcoll'.
64769         * modules/uninorm/u8-normcoll-tests: New file.
64770         * tests/uninorm/test-u8-normcoll.c: New file.
64772 2009-03-07  Bruno Haible  <bruno@clisp.org>
64774         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
64775         tests/uninorm/test-u32-normcmp.c.
64776         * tests/uninorm/test-u32-normcmp.c: Include it.
64777         (test_nonascii): New function, extracted from main. Add some more
64778         tests.
64779         (main): Invoke test_ascii and test_nonascii.
64780         * modules/uninorm/u32-normcmp-tests (Files): Add
64781         tests/uninorm/test-u32-normcmp.h.
64782         (Depends-on): Remove uninorm/u32-normcmp.
64784         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
64785         tests/uninorm/test-u16-normcmp.c.
64786         * tests/uninorm/test-u16-normcmp.c: Include it.
64787         (test_nonascii): New function, extracted from main. Add some more
64788         tests.
64789         (main): Invoke test_ascii and test_nonascii.
64790         * modules/uninorm/u16-normcmp-tests (Files): Add
64791         tests/uninorm/test-u16-normcmp.h.
64792         (Depends-on): Remove uninorm/u16-normcmp.
64794         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
64795         tests/uninorm/test-u8-normcmp.c.
64796         * tests/uninorm/test-u8-normcmp.c: Include it.
64797         (test_nonascii): New function, extracted from main. Add some more
64798         tests.
64799         (main): Invoke test_ascii and test_nonascii.
64800         * modules/uninorm/u8-normcmp-tests (Files): Add
64801         tests/uninorm/test-u8-normcmp.h.
64802         (Depends-on): Remove uninorm/u8-normcmp.
64804 2009-03-07  Bruno Haible  <bruno@clisp.org>
64806         New module 'uninorm/u32-normcoll'.
64807         * lib/uninorm/u32-normcoll.c: New file.
64808         * modules/uninorm/u32-normcoll: New file.
64810         New module 'uninorm/u16-normcoll'.
64811         * lib/uninorm/u16-normcoll.c: New file.
64812         * modules/uninorm/u16-normcoll: New file.
64814         New module 'uninorm/u8-normcoll'.
64815         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
64816         declarations.
64817         * lib/uninorm/u8-normcoll.c: New file.
64818         * lib/uninorm/u-normcoll.h: New file.
64819         * modules/uninorm/u8-normcoll: New file.
64821         New module 'uninorm/u32-normxfrm'.
64822         * lib/uninorm/u32-normxfrm.c: New file.
64823         * modules/uninorm/u32-normxfrm: New file.
64825         New module 'uninorm/u16-normxfrm'.
64826         * lib/uninorm/u16-normxfrm.c: New file.
64827         * modules/uninorm/u16-normxfrm: New file.
64829         New module 'uninorm/u8-normxfrm'.
64830         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
64831         declarations.
64832         * lib/uninorm/u8-normxfrm.c: New file.
64833         * lib/uninorm/u-normxfrm.h: New file.
64834         * modules/uninorm/u8-normxfrm: New file.
64836 2009-03-07  Bruno Haible  <bruno@clisp.org>
64838         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
64839         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
64840         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
64842 2009-03-07  Bruno Haible  <bruno@clisp.org>
64844         New module 'memxfrm'.
64845         * lib/memxfrm.h: New file.
64846         * lib/memxfrm.c: New file.
64847         * modules/memxfrm: New file.
64849 2009-03-07  Bruno Haible  <bruno@clisp.org>
64851         New module 'memcmp2'.
64852         * lib/memcmp2.h: New file.
64853         * lib/memcmp2.c: New file.
64854         * modules/memcmp2: New file.
64856 2009-03-07  Bruno Haible  <bruno@clisp.org>
64858         Tests for module 'uninorm/decomposing-form'.
64859         * modules/uninorm/decomposing-form-tests: New file.
64860         * tests/uninorm/test-decomposing-form.c: New file.
64862         New module 'uninorm/decomposing-form'.
64863         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
64864         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
64865         Add 'decomposing_variant' field.
64866         * lib/uninorm/decomposing-form.c: New file.
64867         * lib/uninorm/nfc.c (uninorm_nfc): Update.
64868         * lib/uninorm/nfd.c (uninorm_nfd): Update.
64869         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
64870         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
64871         * modules/uninorm/decomposing-form: New file.
64872         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
64873         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
64875 2009-03-07  Bruno Haible  <bruno@clisp.org>
64877         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
64878         strings.
64880 2009-03-06  Bruno Haible  <bruno@clisp.org>
64882         Tests for module 'uninorm/u32-normcmp'.
64883         * tests/uninorm/test-u32-normcmp.c: New file.
64884         * modules/uninorm/u32-normcmp-tests: New file.
64886         Tests for module 'uninorm/u16-normcmp'.
64887         * tests/uninorm/test-u16-normcmp.c: New file.
64888         * modules/uninorm/u16-normcmp-tests: New file.
64890         Tests for module 'uninorm/u8-normcmp'.
64891         * tests/uninorm/test-u8-normcmp.c: New file.
64892         * modules/uninorm/u8-normcmp-tests: New file.
64894         New module 'uninorm/u32-normcmp'.
64895         * lib/uninorm/u32-normcmp.c: New file.
64896         * modules/uninorm/u32-normcmp: New file.
64898         New module 'uninorm/u16-normcmp'.
64899         * lib/uninorm/u16-normcmp.c: New file.
64900         * modules/uninorm/u16-normcmp: New file.
64902         New module 'uninorm/u8-normcmp'.
64903         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
64904         declarations.
64905         * lib/uninorm/u8-normcmp.c: New file.
64906         * lib/uninorm/u-normcmp.h: New file.
64907         * modules/uninorm/u8-normcmp: New file.
64909 2009-03-06  Bruno Haible  <bruno@clisp.org>
64911         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
64912         Reported by Eric Blake.
64914 2009-03-06  Eric Blake  <ebb9@byu.net>
64915             Bruno Haible  <bruno@clisp.org>
64917         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
64918         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
64919         condition.
64920         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
64921         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
64922         condition.
64923         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
64925 2009-03-06  Eric Blake  <ebb9@byu.net>
64927         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
64928         to avoid compiler warnings.
64929         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
64931 2009-03-05  Bruno Haible  <bruno@clisp.org>
64933         * tests/test-ftell.c (main): Disable test beyond end of file on
64934         FreeMiNT.
64935         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
64937 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
64939         * lib/filevercmp.c: Move hidden files up in ordering.
64940         * tests/test-filevercmp.c: Add tests for hidden files.
64942 2009-03-04  Bruno Haible  <bruno@clisp.org>
64944         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
64945         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
64946         AM_CFLAGS.
64947         Reported by Simon Josefsson.
64949 2009-03-03  Bruno Haible  <bruno@clisp.org>
64951         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
64952         Reported by Simon Josefsson.
64954         * doc/ld-version-script.texi: Update node reference.
64956 2009-03-03  Bruno Haible  <bruno@clisp.org>
64958         * modules/visibility (License): Change to 'unlimited'.
64959         Suggested by Simon Josefsson.
64961 2009-03-03  Jim Meyering  <meyering@redhat.com>
64963         unlinkdir: cannot_unlink_dir may modify process state
64964         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
64965         it's neither thread-safe nor appropriate for use in a library.
64967 2009-03-03  Eric Blake  <ebb9@byu.net>
64969         test-closein: silence test under Darwin
64970         * tests/test-closein.sh: Ignore stderr from cat, since we don't
64971         care if it dies from EPIPE or EBADF.
64973 2009-03-03  Bruno Haible  <bruno@clisp.org>
64975         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
64976         earlier.
64977         * doc/visibility.texi: Fix @node and @section.
64979 2009-03-03  Simon Josefsson  <simon@josefsson.org>
64981         * doc/gnulib.texi: Link to sections for ld version script and
64982         visibility.
64983         * doc/visibility.texi: Add @node and @section.
64984         * modules/ld-version-script: New module.
64985         * m4/ld-version-script.m4: New file.
64986         * doc/ld-version-script.texi: New file.
64988 2009-03-02  David Lutterkort  <lutter@redhat.com>
64990         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
64991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64993 2009-03-02  Bruno Haible  <bruno@clisp.org>
64995         * doc/visibility.texi: Mention libtool's -export-symbols option.
64997 2009-03-02  Jim Meyering  <meyering@redhat.com>
64999         announce-gen: new option: --no-print-checksums
65000         * build-aux/announce-gen (usage): Describe it.
65001         (print_checksums): Print a newline here, not in the [*] footnote.
65002         (main): Honor it.
65004 2009-03-01  Bruno Haible  <bruno@clisp.org>
65006         Use socklen_t in the native Windows replacements prototypes.
65007         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
65008         instead of 'int'.
65009         * lib/getsockopt.c (rpl_getsockopt): Likewise.
65010         * lib/setsockopt.c (rpl_setsockopt): Likewise.
65011         * modules/getsockopt (Depends-on): Add socklen.
65012         * modules/setsockopt (Depends-on): Add socklen.
65014 2009-03-01  Bruno Haible  <bruno@clisp.org>
65016         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
65017         least 4.2.
65019 2009-03-01  Eric Blake  <ebb9@byu.net>
65020             Bruno Haible  <bruno@clisp.org>
65022         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
65023         error messages.
65024         * lib/wait-process.c (wait_subprocess): Omit error message about
65025         deadly signal sent to the child of termsigp != NULL.
65027 2009-03-01  Eric Blake  <ebb9@byu.net>
65029         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
65031 2009-03-01  Bruno Haible  <bruno@clisp.org>
65033         Avoid a gcc warning.
65034         * tests/test-sched.c (b): Make global.
65035         Reported by Eric Blake.
65037 2009-01-19  Martin Lambers  <marlam@marlam.de>
65039         Provide POSIX semantics for socket timeout options on W32.
65040         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
65041         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
65042         * modules/setsockopt: Depend on sys_time module for struct timeval.
65043         * modules/getsockopt: Depend on sys_time module for struct timeval.
65045 2009-03-01  Simon Josefsson  <simon@josefsson.org>
65047         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
65048         __USE_GNU, for consistency with netdb.in.h.
65049         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65051 2009-03-01  Bruno Haible  <bruno@clisp.org>
65053         More support for FreeMiNT.
65054         * lib/fseeko.c (rpl_fseeko): Complete last commit.
65055         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65057 2009-03-01  Bruno Haible  <bruno@clisp.org>
65059         More support for FreeMiNT.
65060         * lib/fpurge.c (fpurge): Correct last commit.
65061         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65063 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65065         Fix unportable awk script in vc-list-files.
65066         * build-aux/vc-list-files: In the replacement awk script, use
65067         substr with a second argument of 1, not zero.
65068         Report by Simon Josefsson.
65070 2009-02-28  Bruno Haible  <bruno@clisp.org>
65072         More support for FreeMiNT.
65073         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
65074         to FreeMiNT today.
65075         * lib/fwriting.c (fwriting): Likewise.
65076         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
65078 2009-02-28  Bruno Haible  <bruno@clisp.org>
65080         * tests/test-freadseek.c (main): Disable test beyond end of file on
65081         FreeMiNT.
65082         * tests/test-ftello.c (main): Likewise.
65083         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
65085 2009-02-28  Bruno Haible  <bruno@clisp.org>
65087         Add tentative support for FreeMiNT.
65088         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
65089         * lib/fpurge.c (fpurge): Likewise.
65090         * lib/freadable.c (freadable): Likewise.
65091         * lib/freading.c (freading): Likewise.
65092         * lib/freadptr.c (freadptr): Likewise.
65093         * lib/freadseek.c (freadptrinc): Likewise.
65094         * lib/fseeko.c (rpl_fseeko): Likewise.
65095         * lib/fseterr.c (fseterr): Likewise.
65096         * lib/fwritable.c (fwritable): Likewise.
65097         * lib/fwriting.c (fwriting): Likewise.
65098         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
65099         Hourihane.
65100         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65102 2009-02-28  Bruno Haible  <bruno@clisp.org>
65104         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
65105         SIGCHLD.
65106         Reported by Jim Meyering.
65108 2009-02-28  Bruno Haible  <bruno@clisp.org>
65110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
65111         Mention the results of these tests on various platforms.
65112         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
65113         order.
65114         * doc/posix-functions/printf.texi: Likewise.
65115         * doc/posix-functions/snprintf.texi: Likewise.
65116         * doc/posix-functions/sprintf.texi: Likewise.
65117         * doc/posix-functions/vfprintf.texi: Likewise.
65118         * doc/posix-functions/vprintf.texi: Likewise.
65119         * doc/posix-functions/vsnprintf.texi: Likewise.
65120         * doc/posix-functions/vsprintf.texi: Likewise.
65121         * doc/glibc-functions/obstack_printf.texi: Likewise.
65122         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
65124 2009-02-28  Bruno Haible  <bruno@clisp.org>
65126         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
65127         Reported by Loïc Minier <lool@dooz.org>.
65129 2009-02-27  Bruno Haible  <bruno@clisp.org>
65131         * gnulib-tool (func_import): Make the sed expression used to create the
65132         sed script for updating the .gitignore file POSIX compliant.
65133         Reported by Eric Blake.
65135 2009-02-27  Bruno Haible  <bruno@clisp.org>
65137         * gnulib-tool (sed): Don't alias as "sed --posix".
65138         Reported by Eric Blake.
65140 2009-02-27  Bruno Haible  <bruno@clisp.org>
65142         Avoid test link errors.
65143         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
65144         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
65145         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
65146         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
65147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65149 2009-02-27  Bruno Haible  <bruno@clisp.org>
65151         Avoid spurious "(cached)" in configure output.
65152         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
65153         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
65154         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65155         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65156         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65157         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65158         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65159         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65160         Reported by Eric Blake.
65162 2009-02-27  Eric Blake  <ebb9@byu.net>
65164         printf: fix regression in previous patch
65165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
65167 2009-02-27  Bruno Haible  <bruno@clisp.org>
65169         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
65170         value.
65171         * lib/stdint.in.h: Likewise.
65172         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
65174 2009-02-27  Eric Blake  <ebb9@byu.net>
65176         doc: mention more functions added in cygwin 1.7.0
65177         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
65178         addition.
65179         * doc/posix-functions/open_wmemstream.texi: Likewise.
65180         * doc/posix-functions/wcsnlen.texi: Likewise.
65181         * doc/posix-functions/wcsnrtombs.texi: Likewise.
65182         * doc/posix-functions/wcstod.texi: Likewise.
65183         * doc/posix-functions/wcstof.texi: Likewise.
65184         * doc/posix-functions/wcstoimax.texi: Likewise.
65185         * doc/posix-functions/wcstok.texi: Likewise.
65186         * doc/posix-functions/wcstoumax.texi: Likewise.
65188         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
65189         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
65190         * doc/posix-functions/fprintf.texi: Update.
65191         * doc/posix-functions/printf.texi: Update.
65192         * doc/posix-functions/snprintf.texi: Update.
65193         * doc/posix-functions/sprintf.texi: Update.
65194         * doc/posix-functions/vfprintf.texi: Update.
65195         * doc/posix-functions/vprintf.texi: Update.
65196         * doc/posix-functions/vsnprintf.texi: Update.
65197         * doc/posix-functions/vsprintf.texi: Update.
65198         * doc/glibc-functions/obstack_printf.texi: Update.
65199         * doc/glibc-functions/obstack_vprintf.texi: Update.
65201 2009-02-26  Eric Blake  <ebb9@byu.net>
65203         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
65204         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
65205         compilation bug by using runtime conversion.
65206         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65207         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
65208         * modules/ceill-tests (Files): Use nan.h.
65209         * modules/floorl-tests (Files): Likewise.
65210         * modules/frexpl-tests (Files): Likewise.
65211         * modules/isnanl-tests (Files): Likewise.
65212         * modules/ldexpl-tests (Files): Likewise.
65213         * modules/roundl-tests (Files): Likewise.
65214         * modules/truncl-tests (Files): Likewise.
65215         * tests/test-ceill.c (main): Use a working NaN.
65216         * tests/test-floorl.c (main): Likewise.
65217         * tests/test-frexpl.c (main): Likewise.
65218         * tests/test-isnan.c (test_long_double): Likewise.
65219         * tests/test-isnanl.h (main): Likewise.
65220         * tests/test-ldexpl.h (main): Likewise.
65221         * tests/test-roundl.h (main): Likewise.
65222         * tests/test-truncl.h (main): Likewise.
65223         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
65225 2009-02-26  Eric Blake  <ebb9@byu.net>
65226             Bruno Haible  <bruno@clisp.org>
65228         Work around a *printf bug with %ls on Solaris.
65229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
65230         precision is specified, sprintf stops converting the wide string
65231         argument when the number of bytes that have been produced by this
65232         conversion equals or exceeds the precision.
65233         * doc/posix-functions/fprintf.texi: Update.
65234         * doc/posix-functions/printf.texi: Update.
65235         * doc/posix-functions/snprintf.texi: Update.
65236         * doc/posix-functions/sprintf.texi: Update.
65237         * doc/posix-functions/vfprintf.texi: Update.
65238         * doc/posix-functions/vprintf.texi: Update.
65239         * doc/posix-functions/vsnprintf.texi: Update.
65240         * doc/posix-functions/vsprintf.texi: Update.
65241         * doc/glibc-functions/obstack_printf.texi: Update.
65242         * doc/glibc-functions/obstack_vprintf.texi: Update.
65244 2009-02-26  Eric Blake  <ebb9@byu.net>
65246         stdlib: favor compiler check of random.h
65247         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
65248         to avoid an ObjC random.h installed by Swarm.
65250 2009-02-26  Bruno Haible  <bruno@clisp.org>
65252         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
65253         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
65254         Reported by Gary V. Vaughan <gary@gnu.org>.
65256 2009-02-26  Bruno Haible  <bruno@clisp.org>
65258         Fix *printf behaviour regarding the %ls directive.
65259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
65260         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
65261         NEED_PRINTF_DIRECTIVE_LS.
65262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
65263         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65265         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
65266         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
65267         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
65268         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
65269         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65270         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65273         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
65274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65277         * doc/posix-functions/fprintf.texi: Update.
65278         * doc/posix-functions/printf.texi: Update.
65279         * doc/posix-functions/snprintf.texi: Update.
65280         * doc/posix-functions/sprintf.texi: Update.
65281         * doc/posix-functions/vfprintf.texi: Update.
65282         * doc/posix-functions/vprintf.texi: Update.
65283         * doc/posix-functions/vsnprintf.texi: Update.
65284         * doc/posix-functions/vsprintf.texi: Update.
65285         * doc/glibc-functions/obstack_printf.texi: Update.
65286         * doc/glibc-functions/obstack_vprintf.texi: Update.
65287         Reported by Eric Blake.
65289 2009-02-25  Bruno Haible  <bruno@clisp.org>
65291         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
65292         with known value.
65293         Reported by Gary V. Vaughan <gary@gnu.org>.
65295 2009-02-25  Bruno Haible  <bruno@clisp.org>
65297         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
65298         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
65299         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
65300         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
65301         Reported by Gary V. Vaughan <gary@gnu.org>.
65303 2009-02-25  Bruno Haible  <bruno@clisp.org>
65305         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
65306         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
65307         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
65308         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
65309         Reported by Gary V. Vaughan <gary@gnu.org>.
65311 2009-02-25  Eric Blake  <ebb9@byu.net>
65313         tests: skip fseek/ftell tests if ungetc is broken
65314         * m4/ungetc.m4: New file.
65315         * modules/fseek-tests: Split test, so ungetc dependency is
65316         separate from rest of test.
65317         * modules/fseeko-tests: Likewise.
65318         * modules/ftell-tests: Likewise.
65319         * modules/ftello-tests: Likewise.
65320         * tests/test-fseek.c (main): Isolate ungetc dependency.
65321         * tests/test-fseeko.c (main): Likewise.
65322         * tests/test-ftell.c (main): Likewise.
65323         * tests/test-ftello.c (main): Likewise.
65324         * tests/test-fseek2.sh: New file.
65325         * tests/test-fseeko2.sh: Likewise.
65326         * tests/test-ftell2.sh: Likewise.
65327         * tests/test-ftello2.sh: Likewise.
65329 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
65331         test-getaddrinfo: fix usage of skip return code 77
65332         * tests/test-gettaddrinfo.c: Return skip code 77 only
65333         for first occurrence of skip (4x77 is not 77)
65335 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
65337         strtod: avoid C99 decl-after-statement
65338         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
65340 2009-02-24  Eric Blake  <ebb9@byu.net>
65342         strtod: detect HP-UX 11.31 bug
65343         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
65344         Reported by Gary V. Vaughan.
65346 2009-02-23  Bruno Haible  <bruno@clisp.org>
65348         Fix invalid read past end of memory block.
65349         * lib/vasnprintf.c (DCHAR_SET): Define.
65350         (local_wcslen): Define only when needed.
65351         (local_strnlen, local_wcsnlen): New functions.
65352         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
65353         directives that involve a conversion ourselves.
65354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
65355         wcsnlen, mbrtowc, wcrtomb.
65356         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
65357         * tests/test-vasprintf-posix.c (test_function): Likewise.
65358         * tests/test-snprintf-posix.h (test_function): Likewise.
65359         * tests/test-sprintf-posix.h (test_function): Likewise.
65360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65362 2009-02-22  Bruno Haible  <bruno@clisp.org>
65364         Implement new clarified decomposition of Hangul syllables.
65365         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
65366         of type LTV, return only a pairwise decomposition.
65367         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
65368         Likewise.
65369         * tests/uninorm/test-decomposition.c (main): Updated expected result.
65370         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
65371         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
65373 2009-02-22  Bruno Haible  <bruno@clisp.org>
65375         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
65376         zero-length results and shrink excess allocated memory.
65377         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
65378         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
65379         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
65380         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
65381         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
65382         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
65383         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
65384         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
65385         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
65386         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
65387         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
65388         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
65390 2009-02-21  Bruno Haible  <bruno@clisp.org>
65392         * doc/gnulib.texi: Include safe-alloc.texi earlier.
65393         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
65394         spaces after a period. Put a space between a macro name and its
65395         argument list. Trivial rewordings.
65396         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
65397         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
65398         (main): Return 0 explicitly.
65400 2009-02-21  Bruno Haible  <bruno@clisp.org>
65402         Tests for module 'uninorm/filter'.
65403         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
65404         * modules/uninorm/filter-tests: New file.
65406         New module 'uninorm/filter'.
65407         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
65408         uninorm_filter_flush, uninorm_filter_free): New declarations.
65409         * lib/uninorm/uninorm-filter.c: New file.
65410         * modules/uninorm/filter: New file.
65412 2009-02-21  Bruno Haible  <bruno@clisp.org>
65414         Tests for module 'uninorm/nfkc'.
65415         * tests/uninorm/test-nfkc.c: New file.
65416         * tests/uninorm/test-u8-nfkc.c: New file.
65417         * tests/uninorm/test-u16-nfkc.c: New file.
65418         * tests/uninorm/test-u32-nfkc.c: New file.
65419         * tests/uninorm/test-u32-nfkc-big.sh: New file.
65420         * tests/uninorm/test-u32-nfkc-big.c: New file.
65421         * modules/uninorm/nfkc-tests: New file.
65423         New module 'uninorm/nfkc'.
65424         * lib/uninorm/nfkc.c: New file.
65425         * modules/uninorm/nfkc: New file.
65427         Tests for module 'uninorm/nfkd'.
65428         * tests/uninorm/test-nfkd.c: New file.
65429         * tests/uninorm/test-u8-nfkd.c: New file.
65430         * tests/uninorm/test-u16-nfkd.c: New file.
65431         * tests/uninorm/test-u32-nfkd.c: New file.
65432         * tests/uninorm/test-u32-nfkd-big.sh: New file.
65433         * tests/uninorm/test-u32-nfkd-big.c: New file.
65434         * modules/uninorm/nfkd-tests: New file.
65436         New module 'uninorm/nfkd'.
65437         * lib/uninorm/nfkd.c: New file.
65438         * modules/uninorm/nfkd: New file.
65440         Tests for module 'uninorm/nfc'.
65441         * tests/uninorm/test-nfc.c: New file.
65442         * tests/uninorm/test-u8-nfc.c: New file.
65443         * tests/uninorm/test-u16-nfc.c: New file.
65444         * tests/uninorm/test-u32-nfc.c: New file.
65445         * tests/uninorm/test-u32-nfc-big.sh: New file.
65446         * tests/uninorm/test-u32-nfc-big.c: New file.
65447         * modules/uninorm/nfc-tests: New file.
65449         New module 'uninorm/nfc'.
65450         * lib/uninorm/nfc.c: New file.
65451         * modules/uninorm/nfc: New file.
65453         Tests for module 'uninorm/nfd'.
65454         * tests/uninorm/test-nfd.c: New file.
65455         * tests/uninorm/test-u8-nfd.c: New file.
65456         * tests/uninorm/test-u16-nfd.c: New file.
65457         * tests/uninorm/test-u32-nfd.c: New file.
65458         * tests/uninorm/test-u32-nfd-big.sh: New file.
65459         * tests/uninorm/test-u32-nfd-big.c: New file.
65460         * tests/uninorm/test-u32-normalize-big.h: New file.
65461         * tests/uninorm/test-u32-normalize-big.c: New file.
65462         * tests/uninorm/NormalizationTest.txt: New file, created from
65463         Unicode 5.1.0 NormalizationTest.txt.
65464         * modules/uninorm/nfd-tests: New file.
65466         New module 'uninorm/nfd'.
65467         * lib/uninorm/nfd.c: New file.
65468         * modules/uninorm/nfd: New file.
65470         New module 'uninorm/u32-normalize'.
65471         * lib/uninorm/u32-normalize.c: New file.
65472         * modules/uninorm/u32-normalize: New file.
65474         New module 'uninorm/u16-normalize'.
65475         * lib/uninorm/u16-normalize.c: New file.
65476         * modules/uninorm/u16-normalize: New file.
65478         New module 'uninorm/u8-normalize'.
65479         * lib/uninorm/u8-normalize.c: New file.
65480         * lib/uninorm/normalize-internal.h: New file.
65481         * lib/uninorm/u-normalize-internal.h: New file.
65482         * modules/uninorm/u8-normalize: New file.
65484         New module 'uninorm/decompose-internal'.
65485         * lib/uninorm/decompose-internal.c: New file.
65486         * modules/uninorm/decompose-internal: New file.
65488         Tests for module 'uninorm/composition'.
65489         * tests/uninorm/test-composition.c: New file.
65490         * modules/uninorm/composition-tests: New file.
65492         New module 'uninorm/composition'.
65493         * lib/uninorm/composition.c: New file.
65494         * lib/uninorm/composition-table.gperf: New file, generated by
65495         gen-uni-tables.
65496         * modules/uninorm/composition: New file.
65498         Tests for module 'uninorm/compat-decomposition'.
65499         * tests/uninorm/test-compat-decomposition.c: New file.
65500         * modules/uninorm/compat-decomposition-tests: New file.
65502         New module 'uninorm/compat-decomposition'.
65503         * lib/uninorm/decompose-internal.h: New file.
65504         * lib/uninorm/compat-decomposition.c: New file.
65505         * modules/uninorm/compat-decomposition: New file.
65507         Tests for module 'uninorm/canonical-decomposition'.
65508         * tests/uninorm/test-canonical-decomposition.c: New file.
65509         * modules/uninorm/canonical-decomposition-tests: New file.
65511         New module 'uninorm/canonical-decomposition'.
65512         * lib/uninorm/canonical-decomposition.c: New file.
65513         * modules/uninorm/canonical-decomposition: New file.
65515         Tests for module 'uninorm/decomposition'.
65516         * tests/uninorm/test-decomposition.c: New file.
65517         * modules/uninorm/decomposition-tests: New file.
65519         New module 'uninorm/decomposition'.
65520         * lib/uninorm/decomposition.c: New file.
65521         * modules/uninorm/decomposition: New file.
65523         New module 'uninorm/decomposition-table'.
65524         * lib/uninorm/decomposition-table.h: New file.
65525         * lib/uninorm/decomposition-table.c: New file.
65526         * lib/uninorm/decomposition-table1.h: New file, generated by
65527         gen-uni-tables.
65528         * lib/uninorm/decomposition-table2.h: New file, generated by
65529         gen-uni-tables.
65530         * modules/uninorm/decomposition-table: New file.
65532         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
65533         (UC_DECOMP_*): New enumeration items.
65534         (get_decomposition): New function.
65535         (struct decomp_table): New type.
65536         (output_decomposition, output_decomposition_tables): New functions.
65537         (unicode_composition_exclusions): New variable.
65538         (fill_composition_exclusions, debug_output_composition_tables): New
65539         functions.
65540         (main): Accept one more argument. Invoke fill_composition_exclusions.
65541         Output decomposition and composition tables.
65543         New module 'uninorm/base'.
65544         * lib/uninorm.h: New file.
65545         * lib/unictype.h: Update comment.
65546         * modules/uninorm/base: New file.
65548 2009-02-21  David Lutterkort  <lutter@redhat.com>
65550         Tests for module 'safe-alloc'.
65551         * tests/test-safe-alloc.c: New file.
65552         * modules/safe-alloc-tests: New file.
65554         New module 'safe-alloc'.
65555         * lib/safe-alloc.h: New file.
65556         * lib/safe-alloc.c: New file.
65557         * m4/safe-alloc.m4: New file.
65558         * modules/safe-alloc: New file.
65559         * doc/safe-alloc.texi: New file.
65560         * doc/gnulib.texi: Include it.
65561         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65562         safe-alloc.
65564 2009-02-18  Bruno Haible  <bruno@clisp.org>
65566         Fix link error on non-glibc systems.
65567         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
65568         variable.
65569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65571 2009-02-18  Jim Meyering  <meyering@redhat.com>
65573         fts: avoid used-uninitialized error due to recent change
65574         * lib/fts.c (fts_read): Guard uses of the new member,
65575         parent->fts_n_dirs_remaining, since it's not relevant for
65576         the parent of a directory specified on the command-line.
65578 2009-02-17  James Youngman  <jay@gnu.org>
65579             Bruno Haible  <bruno@clisp.org>
65581         * m4/include_next.m4: Reformulate comment.
65583 2009-02-16  Jim Meyering  <meyering@redhat.com>
65585         fts: add #if guards so that the fts_lgpl module still builds
65586         * lib/fts.c: Guard just-added hash-table-using parts with
65587         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
65588         Reported by Simon Josefsson.
65590 2009-02-15  Bruno Haible  <bruno@clisp.org>
65592         * modules/array-mergesort-tests: New file.
65593         * tests/test-array-mergesort.c: New file.
65595         New module 'array-mergesort'.
65596         * modules/array-mergesort: New file.
65597         * lib/array-mergesort.h: New file.
65599 2009-02-15  Bruno Haible  <bruno@clisp.org>
65601         Fix 2009-02-07 commit.
65602         * lib/gen-uni-tables.c (output_predicate, output_category,
65603         output_combclass, output_bidi_category, output_decimal_digit,
65604         output_digit, output_numeric, output_mirror, output_scripts,
65605         output_ident_category, output_simple_mapping): Fix format directives.
65606         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
65608 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
65610         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
65611         fixes are available from IBM.
65613 2009-02-13  Jim Meyering  <meyering@redhat.com>
65615         fts: arrange not to stat non-directories in more cases
65616         This makes GNU find (when it doesn't need to stat each file)
65617         *much* more efficient at traversing reiserfs file systems.
65618         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
65619         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
65620         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
65621         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
65622         (leaf_optimization_applies): New function.
65623         (LCO_hash, LCO_compare): New helper functions.
65624         (link_count_optimize_ok): New function.
65625         (fts_stat): Initialize new member (if dir).
65626         (fts_read): Decrement parent's fts_n_dirs_remaining count if
65627         we've just stat'ed a directory.  Skip the stat call when possible.
65628         ---
65629         Note this AFS-related exchange:
65630         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
65631         and note find's pioctl call in find/fstype.c.
65632         But that is necessary only if you want to enable the
65633         optimization for AFS, and for now, I don't.
65635         fts: move a function definition "up" (no semantic change)
65636         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
65637         "up" to precede upcoming use of a related function.
65639 2009-02-11  Jim Meyering  <meyering@redhat.com>
65641         fts: correct internal computation of nlinks (optimization-related)
65642         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
65643         whether the current entry is a directory, so don't test it.
65645 2009-02-10  Bruno Haible  <bruno@clisp.org>
65647         Tests for module 'uniwbrk/ulc-wordbreaks'.
65648         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
65649         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
65650         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
65652         Tests for module 'uniwbrk/u32-wordbreaks'.
65653         * modules/uniwbrk/u32-wordbreaks-tests: New file.
65654         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
65656         Tests for module 'uniwbrk/u16-wordbreaks'.
65657         * modules/uniwbrk/u16-wordbreaks-tests: New file.
65658         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
65660         Tests for module 'uniwbrk/u8-wordbreaks'.
65661         * modules/uniwbrk/u8-wordbreaks-tests: New file.
65662         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
65664 2009-02-10  Bruno Haible  <bruno@clisp.org>
65666         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
65667         property.
65668         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
65669         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
65670         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
65672 2009-02-10  Simon Josefsson  <simon@josefsson.org>
65674         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
65675         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
65677 2009-02-10  Bruno Haible  <bruno@clisp.org>
65679         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
65680         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
65681         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
65682         * lib/unilbrk/u8-possible-linebreaks.c: Update.
65683         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
65684         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
65686 2009-02-09  Simon Josefsson  <simon@josefsson.org>
65688         * lib/sockets.h (gl_fd_to_handle): New function.
65690         * tests/test-sockets.c: Call gl_fd_to_handle.
65692 2009-02-09  Bruno Haible  <bruno@clisp.org>
65694         * doc/havelib.texi: Document the conventions on bi-arch systems.
65696 2009-02-08  Bruno Haible  <bruno@clisp.org>
65698         Document the AC_LIB_LINKFLAGS macro.
65699         * doc/havelib.texi: New file, mostly written on 2005-05-24.
65700         * doc/gnulib.texi: Include it.
65702 2009-02-08  Bruno Haible  <bruno@clisp.org>
65704         Fix wrong order of sections, compared to TOC.
65705         * doc/gnulib.texi: Include relocatable-maint.texi after the
65706         "Regular expressions" node, not before.
65708 2009-02-08  Bruno Haible  <bruno@clisp.org>
65710         Tests for module 'unicase/totitle'.
65711         * modules/unicase/totitle-tests: New file.
65713         Tests for module 'unicase/tolower'.
65714         * modules/unicase/tolower-tests: New file.
65716         Tests for module 'unicase/toupper'.
65717         * modules/unicase/toupper-tests: New file.
65718         * tests/unicase/test-mapping-part1.h: New file.
65719         * tests/unicase/test-mapping-part2.h: New file.
65721         New module 'unicase/totitle'.
65722         * modules/unicase/totitle: New file.
65723         * lib/unicase/totitle.c: New file.
65725         New module 'unicase/tolower'.
65726         * modules/unicase/tolower: New file.
65727         * lib/unicase/tolower.c: New file.
65729         New module 'unicase/toupper'.
65730         * modules/unicase/toupper: New file.
65731         * lib/unicase/toupper.c: New file.
65732         * lib/unicase/simple-mapping.h: New file.
65734         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
65735         (mapping_table): New structure.
65736         (output_simple_mapping): New function.
65737         (main): Invoke output_simple_mapping_test and output_simple_mapping.
65738         * modules/gen-uni-tables (Description): Update.
65739         * lib/unicase/toupper.h: New file, automatically generated by
65740         gen-uni-tables.
65741         * lib/unicase/tolower.h: New file, automatically generated by
65742         gen-uni-tables.
65743         * lib/unicase/totitle.h: New file, automatically generated by
65744         gen-uni-tables.
65745         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
65746         gen-uni-tables.
65747         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
65748         gen-uni-tables.
65749         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
65750         gen-uni-tables.
65752         New module 'unicase/base'.
65753         * modules/unicase/base: New file.
65754         * lib/unicase.h: New file.
65756 2009-02-08  Bruno Haible  <bruno@clisp.org>
65758         New module 'uniwbrk/ulc-wordbreaks'.
65759         * modules/uniwbrk/ulc-wordbreaks: New file.
65760         * lib/uniwbrk/ulc-wordbreaks.c: New file.
65762         New module 'uniwbrk/u32-wordbreaks'.
65763         * modules/uniwbrk/u32-wordbreaks: New file.
65764         * lib/uniwbrk/u32-wordbreaks.c: New file.
65766         New module 'uniwbrk/u16-wordbreaks'.
65767         * modules/uniwbrk/u16-wordbreaks: New file.
65768         * lib/uniwbrk/u16-wordbreaks.c: New file.
65770         New module 'uniwbrk/u8-wordbreaks'.
65771         * modules/uniwbrk/u8-wordbreaks: New file.
65772         * lib/uniwbrk/u8-wordbreaks.c: New file.
65773         * lib/uniwbrk/u-wordbreaks.h: New file.
65775         New module 'uniwbrk/table'.
65776         * modules/uniwbrk/table: New file.
65777         * lib/uniwbrk/wbrktable.h: New file.
65778         * lib/uniwbrk/wbrktable.c: New file.
65780         New module 'uniwbrk/wordbreak-property'.
65781         * modules/uniwbrk/wordbreak-property: New file.
65782         * lib/uniwbrk/wordbreak-property.c: New file.
65784         * lib/gen-uni-tables.c (WBP_*): New enum items.
65785         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
65786         (unicode_org_wbp): New variable.
65787         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
65788         New functions.
65789         (wbp_table): New structure.
65790         (output_wbp, output_wbrk_tables): New functions.
65791         (main): Accept additional argument. Invoke fill_org_wbp,
65792         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
65793         output_wbrk_tables.
65794         * modules/gen-uni-tables (Description): Update.
65795         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
65796         gen-uni-tables.
65798         New module 'uniwbrk/base'.
65799         * modules/uniwbrk/base: New file.
65800         * lib/uniwbrk.h: New file.
65802 2009-02-08  Bruno Haible  <bruno@clisp.org>
65804         Update to Unicode 5.1.0.
65805         * lib/gen-uni-tables.c (is_property_alphabetic): Include
65806         U+2185..U+2188.
65807         (is_property_default_ignorable_code_point): Don't include characters
65808         of category Cc or Cs and not-a-characters.
65809         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
65810         U+0D79, U+109E, U+109F, U+A60C.
65811         * lib/unictype/bidi_of.h: Regenerated.
65812         * lib/unictype/blocks.h: Regenerated.
65813         * lib/unictype/categ_C.h: Regenerated.
65814         * lib/unictype/categ_Cf.h: Regenerated.
65815         * lib/unictype/categ_Cn.h: Regenerated.
65816         * lib/unictype/categ_L.h: Regenerated.
65817         * lib/unictype/categ_Ll.h: Regenerated.
65818         * lib/unictype/categ_Lm.h: Regenerated.
65819         * lib/unictype/categ_Lo.h: Regenerated.
65820         * lib/unictype/categ_Lu.h: Regenerated.
65821         * lib/unictype/categ_M.h: Regenerated.
65822         * lib/unictype/categ_Mc.h: Regenerated.
65823         * lib/unictype/categ_Me.h: Regenerated.
65824         * lib/unictype/categ_Mn.h: Regenerated.
65825         * lib/unictype/categ_N.h: Regenerated.
65826         * lib/unictype/categ_Nd.h: Regenerated.
65827         * lib/unictype/categ_Nl.h: Regenerated.
65828         * lib/unictype/categ_No.h: Regenerated.
65829         * lib/unictype/categ_P.h: Regenerated.
65830         * lib/unictype/categ_Pd.h: Regenerated.
65831         * lib/unictype/categ_Pe.h: Regenerated.
65832         * lib/unictype/categ_Pf.h: Regenerated.
65833         * lib/unictype/categ_Pi.h: Regenerated.
65834         * lib/unictype/categ_Po.h: Regenerated.
65835         * lib/unictype/categ_Ps.h: Regenerated.
65836         * lib/unictype/categ_S.h: Regenerated.
65837         * lib/unictype/categ_Sk.h: Regenerated.
65838         * lib/unictype/categ_Sm.h: Regenerated.
65839         * lib/unictype/categ_So.h: Regenerated.
65840         * lib/unictype/categ_of.h: Regenerated.
65841         * lib/unictype/combining.h: Regenerated.
65842         * lib/unictype/ctype_alnum.h: Regenerated.
65843         * lib/unictype/ctype_alpha.h: Regenerated.
65844         * lib/unictype/ctype_graph.h: Regenerated.
65845         * lib/unictype/ctype_lower.h: Regenerated.
65846         * lib/unictype/ctype_print.h: Regenerated.
65847         * lib/unictype/ctype_punct.h: Regenerated.
65848         * lib/unictype/ctype_upper.h: Regenerated.
65849         * lib/unictype/decdigit.h: Regenerated.
65850         * lib/unictype/digit.h: Regenerated.
65851         * lib/unictype/mirror.h: Regenerated.
65852         * lib/unictype/numeric.h: Regenerated.
65853         * lib/unictype/pr_alphabetic.h: Regenerated.
65854         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
65855         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
65856         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
65857         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
65858         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
65859         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
65860         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
65861         * lib/unictype/pr_combining.h: Regenerated.
65862         * lib/unictype/pr_dash.h: Regenerated.
65863         * lib/unictype/pr_decimal_digit.h: Regenerated.
65864         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
65865         * lib/unictype/pr_deprecated.h: Regenerated.
65866         * lib/unictype/pr_diacritic.h: Regenerated.
65867         * lib/unictype/pr_extender.h: Regenerated.
65868         * lib/unictype/pr_format_control.h: Regenerated.
65869         * lib/unictype/pr_grapheme_base.h: Regenerated.
65870         * lib/unictype/pr_grapheme_extend.h: Regenerated.
65871         * lib/unictype/pr_grapheme_link.h: Regenerated.
65872         * lib/unictype/pr_id_continue.h: Regenerated.
65873         * lib/unictype/pr_id_start.h: Regenerated.
65874         * lib/unictype/pr_ideographic.h: Regenerated.
65875         * lib/unictype/pr_ignorable_control.h: Regenerated.
65876         * lib/unictype/pr_lowercase.h: Regenerated.
65877         * lib/unictype/pr_math.h: Regenerated.
65878         * lib/unictype/pr_numeric.h: Regenerated.
65879         * lib/unictype/pr_other_alphabetic.h: Regenerated.
65880         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
65881         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
65882         * lib/unictype/pr_other_id_continue.h: Regenerated.
65883         * lib/unictype/pr_other_lowercase.h: Regenerated.
65884         * lib/unictype/pr_other_math.h: Regenerated.
65885         * lib/unictype/pr_punctuation.h: Regenerated.
65886         * lib/unictype/pr_sentence_terminal.h: Regenerated.
65887         * lib/unictype/pr_soft_dotted.h: Regenerated.
65888         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
65889         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
65890         * lib/unictype/pr_unified_ideograph.h: Regenerated.
65891         * lib/unictype/pr_uppercase.h: Regenerated.
65892         * lib/unictype/pr_xid_continue.h: Regenerated.
65893         * lib/unictype/pr_xid_start.h: Regenerated.
65894         * lib/unictype/pr_zero_width.h: Regenerated.
65895         * lib/unictype/scripts.h: Regenerated.
65896         * lib/unictype/scripts_byname.gperf: Regenerated.
65897         * lib/unictype/sy_java_ident.h: Regenerated.
65898         * lib/unilbrk/lbrkprop1.h: Regenerated.
65899         * lib/unilbrk/lbrkprop2.h: Regenerated.
65900         * tests/unictype/test-categ_C.c: Regenerated.
65901         * tests/unictype/test-categ_Cf.c: Regenerated.
65902         * tests/unictype/test-categ_Cn.c: Regenerated.
65903         * tests/unictype/test-categ_L.c: Regenerated.
65904         * tests/unictype/test-categ_Ll.c: Regenerated.
65905         * tests/unictype/test-categ_Lm.c: Regenerated.
65906         * tests/unictype/test-categ_Lo.c: Regenerated.
65907         * tests/unictype/test-categ_Lu.c: Regenerated.
65908         * tests/unictype/test-categ_M.c: Regenerated.
65909         * tests/unictype/test-categ_Mc.c: Regenerated.
65910         * tests/unictype/test-categ_Me.c: Regenerated.
65911         * tests/unictype/test-categ_Mn.c: Regenerated.
65912         * tests/unictype/test-categ_N.c: Regenerated.
65913         * tests/unictype/test-categ_Nd.c: Regenerated.
65914         * tests/unictype/test-categ_Nl.c: Regenerated.
65915         * tests/unictype/test-categ_No.c: Regenerated.
65916         * tests/unictype/test-categ_P.c: Regenerated.
65917         * tests/unictype/test-categ_Pd.c: Regenerated.
65918         * tests/unictype/test-categ_Pe.c: Regenerated.
65919         * tests/unictype/test-categ_Pf.c: Regenerated.
65920         * tests/unictype/test-categ_Pi.c: Regenerated.
65921         * tests/unictype/test-categ_Po.c: Regenerated.
65922         * tests/unictype/test-categ_Ps.c: Regenerated.
65923         * tests/unictype/test-categ_S.c: Regenerated.
65924         * tests/unictype/test-categ_Sk.c: Regenerated.
65925         * tests/unictype/test-categ_Sm.c: Regenerated.
65926         * tests/unictype/test-categ_So.c: Regenerated.
65927         * tests/unictype/test-ctype_alnum.c: Regenerated.
65928         * tests/unictype/test-ctype_alpha.c: Regenerated.
65929         * tests/unictype/test-ctype_graph.c: Regenerated.
65930         * tests/unictype/test-ctype_lower.c: Regenerated.
65931         * tests/unictype/test-ctype_print.c: Regenerated.
65932         * tests/unictype/test-ctype_punct.c: Regenerated.
65933         * tests/unictype/test-ctype_upper.c: Regenerated.
65934         * tests/unictype/test-decdigit.h: Regenerated.
65935         * tests/unictype/test-digit.h: Regenerated.
65936         * tests/unictype/test-numeric.h: Regenerated.
65937         * tests/unictype/test-pr_alphabetic.c: Regenerated.
65938         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
65939         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
65940         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
65941         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
65942         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
65943         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
65944         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
65945         * tests/unictype/test-pr_combining.c: Regenerated.
65946         * tests/unictype/test-pr_dash.c: Regenerated.
65947         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
65948         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
65949         * tests/unictype/test-pr_deprecated.c: Regenerated.
65950         * tests/unictype/test-pr_diacritic.c: Regenerated.
65951         * tests/unictype/test-pr_extender.c: Regenerated.
65952         * tests/unictype/test-pr_format_control.c: Regenerated.
65953         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
65954         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
65955         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
65956         * tests/unictype/test-pr_id_continue.c: Regenerated.
65957         * tests/unictype/test-pr_id_start.c: Regenerated.
65958         * tests/unictype/test-pr_ideographic.c: Regenerated.
65959         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
65960         * tests/unictype/test-pr_lowercase.c: Regenerated.
65961         * tests/unictype/test-pr_math.c: Regenerated.
65962         * tests/unictype/test-pr_numeric.c: Regenerated.
65963         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
65964         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
65965         Regenerated.
65966         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
65967         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
65968         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
65969         * tests/unictype/test-pr_other_math.c: Regenerated.
65970         * tests/unictype/test-pr_punctuation.c: Regenerated.
65971         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
65972         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
65973         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
65974         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
65975         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
65976         * tests/unictype/test-pr_uppercase.c: Regenerated.
65977         * tests/unictype/test-pr_xid_continue.c: Regenerated.
65978         * tests/unictype/test-pr_xid_start.c: Regenerated.
65979         * tests/unictype/test-pr_zero_width.c: Regenerated.
65981         Update to Unicode 5.1.0.
65982         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
65983         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
65984         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
65985         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
65986         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
65987         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
65988         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
65989         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
65990         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
65991         (nonspacing_table_ind): Update.
65992         * tests/uniwidth/test-uc_width2.sh: Update expected result.
65994         Update to Unicode 5.1.0.
65995         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
65996         code transform.
65997         * lib/uniname/uniname.c (unicode_character_name,
65998         unicode_name_character): Add the range 0x1Fxxx to the code transform.
65999         * lib/uniname/uninames.h: Regenerated.
66000         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
66002 2009-02-07  Bruno Haible  <bruno@clisp.org>
66004         Merge gen-ctype and gen-lbrk into a single program.
66005         * lib/gen-uni-tables.c: New file, incorporating
66006         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
66007         Add directory prefixes to the names of the generated files.
66008         * lib/unictype/gen-ctype.c: Remove file.
66009         * lib/unilbrk/gen-lbrk.c: Remove file.
66010         * modules/gen-uni-tables: New file.
66011         * modules/unictype/gen-ctype: Remove file.
66012         * modules/unilbrk/gen-lbrk: Remove file.
66014 2009-02-07  Bruno Haible  <bruno@clisp.org>
66016         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
66018         New module 'unistr/u32-strcoll'.
66019         * modules/unistr/u32-strcoll: New file.
66020         * lib/unistr/u32-strcoll.c: New file.
66022         New module 'unistr/u16-strcoll'.
66023         * modules/unistr/u16-strcoll: New file.
66024         * lib/unistr/u16-strcoll.c: New file.
66026         New module 'unistr/u8-strcoll'.
66027         * modules/unistr/u8-strcoll: New file.
66028         * lib/unistr/u8-strcoll.c: New file.
66029         * lib/unistr/u-strcoll.h: New file.
66031 2009-02-07  Bruno Haible  <bruno@clisp.org>
66033         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
66034         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66035         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
66036         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
66037         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
66038         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
66040 2009-02-07  Bruno Haible  <bruno@clisp.org>
66042         Make 64-bit clean.
66043         * lib/unictype/gen-ctype.c (output_predicate, output_category,
66044         output_combclass, output_bidi_category, output_decimal_digit,
66045         output_digit, output_numeric, output_mirror, output_scripts,
66046         output_ident_category): Use proper width specifier in format strings.
66048 2009-02-07  Bruno Haible  <bruno@clisp.org>
66050         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
66051         failure behaviour.
66053 2009-02-07  Jim Meyering  <meyering@redhat.com>
66055         regex: avoid compilation failure with upcoming gcc-4.4
66056         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
66057         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
66058         "... error: integer overflow in preprocessor expression".
66060 2009-02-05  Ben Pfaff  <blp@gnu.org>
66062         Fix link errors on Windows when close module is used.
66063         * modules/close: Add $(LIB_CLOSE) to Link section.
66064         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
66065         $(LIB_CLOSE) on Windows.
66067 2009-02-05  Jim Meyering  <meyering@redhat.com>
66069         still avoid unused-parameter warnings, but do it cleanly
66070         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
66071         (get_fs_usage): Cast to void instead.
66072         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
66073         (dev_from_mount_options, read_file_system_list): Cast to void.
66074         Prompted by Bruno Haible.
66076 2009-02-04  Jim Meyering  <meyering@redhat.com>
66078         fsusage.c: correct copyright year
66079         * lib/fsusage.c: Reflect year in which the change is pushed into
66081         avoid misc. warnings
66082         * lib/fsusage.c (UNUSED_PARAM): Define.
66083         (get_fs_usage): Mark parameter "disk" as unused.
66084         * lib/getugroups.c (getgrent): Use "void" in prototype.
66085         * lib/mountlist.c: Mark unused parameters.
66086         (read_file_system_list): Declare a local with "const".
66087         * lib/nanosleep.c (getnow): Declare static.
66088         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
66090         dirfd: set errno upon failure
66091         * lib/dirfd.c: Include <errno.h>.
66092         Set errno to ENOTSUP when returning -1.
66093         * modules/dirfd (Depends-on): Add errno.
66094         Suggested by John Kodis <kodis@comcast.net>.
66096 2009-02-01  Bruno Haible  <bruno@clisp.org>
66098         Don't assume sizeof (long) >= sizeof (void *).
66099         * lib/memcmp.c: Include stdint.h.
66100         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
66101         srcp2 to 'const byte *'.
66102         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
66103         types to uintptr_t.
66104         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
66105         * modules/memcmp (Depends-on): Add stdint.
66106         Reported by Ozkan Sezer <sezeroz@gmail.com>.
66108 2009-01-30  Eric Blake  <ebb9@byu.net>
66110         fix more require-before-expand issues
66111         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
66112         expand, AC_PROG_AWK.
66113         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
66115 2009-01-28  Eric Blake  <ebb9@byu.net>
66117         version-etc: use consistent URL formatting
66118         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
66119         Improve formatting.  Use fputs for string without %.
66121 2009-01-28  Jim Meyering  <meyering@redhat.com>
66123         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
66124         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
66125         "underquoted definition of NAME" from autoconf-2.59.
66127 2009-01-28  Bruno Haible  <bruno@clisp.org>
66129         * doc/gnulib.texi: Add "Obsolete modules" to index.
66131 2009-01-28  Jim Meyering  <meyering@redhat.com>
66133         useless-if-before-free: recognize more variants
66134         * build-aux/useless-if-before-free: Also recognize e.g.,
66135         if (NULL != p) free (p);
66137 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
66139         test-getaddrinfo: skip (don't fail) this test when there's no network
66140         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
66141         on the presumption that it means you lack network access.
66143 2009-01-26  Jim Meyering  <meyering@redhat.com>
66145         fflush: avoid warnings on modern systems
66146         * lib/fflush.c (rpl_fflush): Move declarations of locals,
66147         pos and result, into scopes where they're used.
66149 2009-01-26  Eric Blake  <ebb9@byu.net>
66151         Silence warning reintroduced by recent extensions patch.
66152         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
66153         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
66154         autoconf.
66156         Backport improved autoconf semantics of AC_DEFUN_ONCE.
66157         * m4/00gnulib.m4: New file.
66158         * gnulib-tool (func_get_filelist): Always use it.
66159         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
66160         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
66162 2009-01-25  Bruno Haible  <bruno@clisp.org>
66164         Make test-quotearg work on MacOS X and AIX.
66165         * tests/test-quotearg.sh: New file.
66166         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
66167         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
66168         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
66169         include <libintl.h>.
66170         (fake_locale): Remove variable.
66171         (gettext, dgettext, dcgettext): Remove functions.
66172         (main): Instead of setting a fake locale, set a real locale. Call
66173         textdomain and bindtextdomain.
66174         * modules/quotearg-tests (Files): Add the new files.
66175         (Depends-on): Add gettext, setenv, unsetenv.
66176         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66177         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
66178         Augment TESTS_ENVIRONMENT.
66180 2009-01-25  Bruno Haible  <bruno@clisp.org>
66182         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
66183         fr_FR.ISO8859-1 locale on MacOS X.
66184         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
66185         ja_JP.eucJP locale on MacOS X.
66186         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
66187         zh_CN.GB18030 locale on MacOS X.
66189 2009-01-25  Bruno Haible  <bruno@clisp.org>
66191         Avoid link errors on MacOS X 10.3.
66192         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
66193         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
66195 2009-01-25  Bruno Haible  <bruno@clisp.org>
66197         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
66198         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
66199         * modules/pipe (Files): Remove m4/posix_spawn.m4.
66200         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
66201         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
66202         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
66203         posix_spawnattr_init, posix_spawnattr_setsigmask,
66204         posix_spawnattr_setflags, posix_spawnattr_destroy.
66206         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
66207         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
66208         * modules/execute (Files): Remove m4/posix_spawn.m4.
66209         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
66210         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
66211         posix_spawnattr_init, posix_spawnattr_setsigmask,
66212         posix_spawnattr_setflags, posix_spawnattr_destroy.
66214 2009-01-25  Bruno Haible  <bruno@clisp.org>
66216         * lib/glthread/threadlib.c: Include <stdlib.h>.
66218 2009-01-25  Bruno Haible  <bruno@clisp.org>
66220         * lib/glthread/threadlib.c (dummy): New declaration.
66222 2009-01-25  Bruno Haible  <bruno@clisp.org>
66224         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
66225         multibyte characters also for the GB18030 encoding. Don't crash when
66226         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
66228 2009-01-25  Bruno Haible  <bruno@clisp.org>
66230         Avoid redefining 'struct random_data' on OSF/1 5.1.
66231         * lib/stdlib.in.h: Include <random.h> if it exists.
66232         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
66233         HAVE_RANDOM_H. Include <random.h> when testing whether
66234         'struct random_data' exists.
66235         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
66237 2009-01-25  Bruno Haible  <bruno@clisp.org>
66239         Don't install charset.alias on MacOS X >= 10.3.
66240         * lib/localcharset.c (DARWIN7): New macro.
66241         (get_charset_aliases): Hardcode the result for Darwin7.
66242         * modules/localcharset (install-exec-local): Don't install
66243         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
66245 2009-01-25  Bruno Haible  <bruno@clisp.org>
66247         Don't install charset.alias on mingw and Cygwin.
66248         * modules/localcharset (install-exec-local): Don't install
66249         charset.alias on mingw and Cygwin, if the file does not yet exist.
66250         The result for these platforms is hardcoded in localcharset.c.
66252 2009-01-25  Bruno Haible  <bruno@clisp.org>
66254         Make it possible again to use AC_GNU_SOURCE together with gnulib.
66255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
66256         before requiring AC_USE_SYSTEM_EXTENSIONS.
66258 2009-01-25  Jim Meyering  <meyering@redhat.com>
66260         c-strtod: avoid warnings
66261         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
66262         "assignment discards qualifiers from pointer target type" warnings.
66264 2009-01-24  Bruno Haible  <bruno@clisp.org>
66266         Add support for non-UTF-8 locales on MacOS X.
66267         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
66268         canonical encodings. For Darwin 7 and newer, don't map traditional
66269         encodings to UTF-8.
66270         Reported by Vincent Lefevre <vincent@vinc17.org>
66271         at <http://savannah.gnu.org/bugs/?25235>.
66273 2009-01-24  Bruno Haible  <bruno@clisp.org>
66275         * doc/gnulib.texi (Obsolete modules): New section.
66276         Reported by Mike Frysinger <vapier@gentoo.org>.
66278 2009-01-24  Bruno Haible  <bruno@clisp.org>
66280         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
66281         (%.dvi): New rule.
66283 2009-01-24  Bruno Haible  <bruno@clisp.org>
66285         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
66286         Reported by Eric Blake.
66288 2009-01-24  Bruno Haible  <bruno@clisp.org>
66290         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
66291         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
66292         Reported by Gary V. Vaughan <gary@gnu.org>.
66294 2009-01-24  Bruno Haible  <bruno@clisp.org>
66296         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
66298 2009-01-23  Bruno Haible  <bruno@clisp.org>
66300         Make c-strtod, c-strtold usable in libraries.
66301         * lib/c-strtod.c: Include string.h instead of xalloc.h.
66302         (C_STRTOD): Call strdup instead of xstrdup.
66303         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
66304         * modules/c-strtold (Depends-on): Likewise.
66305         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
66306         * NEWS: Mention the change.
66307         Reported by Michael Gold <mgold@ncf.ca>.
66309 2009-01-23  Jim Meyering  <meyering@redhat.com>
66311         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
66312         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
66313         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
66315 2009-01-23  Simon Josefsson  <simon@josefsson.org>
66317         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
66318         GNU CoreUtils.
66319         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
66320         * modules/version-etc (Description): Update.
66322 2009-01-22  Bruno Haible  <bruno@clisp.org>
66324         Cache the C locale object.
66325         * lib/c-strtod.c (c_locale_cache): New variable.
66326         (c_locale): New function.
66327         (C_STRTOD): Use it, and don't call freelocale.
66328         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
66329         Suggested by Paolo Bonzini.
66331 2009-01-21  Bruno Haible  <bruno@clisp.org>
66333         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
66334         conditions other than overflow.
66336 2009-01-21  Bruno Haible  <bruno@clisp.org>
66338         * lib/c-strtod.c: Include errno.h.
66339         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
66340         value from STRTOD_L and STRTOD.
66342 2009-01-21  Bruno Haible  <bruno@clisp.org>
66343         and Jim Meyering  <meyering@redhat.com>
66345         nanosleep: skip configure test (fail it) for apple universal builds
66346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
66347         universal builds, assume that nanosleep does not work.
66348         * modules/nanosleep (Depends-on): Add multiarch.
66350         mktime: skip configure test (fail it) for apple universal builds
66351         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
66352         universal builds, assume that mktime does not work.
66353         * modules/mktime (Depends-on): Add multiarch.
66355 2009-01-21  Eric Blake  <ebb9@byu.net>
66357         multiarch: avoid expand-before-require warning
66358         * modules/multiarch (configure.ac): Require, rather than expand,
66359         gl_MULTIARCH.
66360         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
66361         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
66362         enforce that all clients require it.  Partial reversion of
66363         2008-12-29 patch.
66365         error: avoid expand-before-require warning
66366         * modules/errno (configure.ac): Require, rather than expand,
66367         gl_HEADER_ERRNO_H.
66368         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
66369         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
66370         enforce that all clients require it.
66372         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
66373         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
66374         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
66375         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
66377 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
66379         Revert:
66380         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66382         regex: do not depend on obsolete modules.
66383         * modules/regex: Remove memcmp and memmove.
66385 2009-01-20  Bruno Haible  <bruno@clisp.org>
66387         Make the 'link' module link on Windows NT 4.
66388         * lib/link.c (_WIN32_WINNT): Don't define.
66389         (CreateHardLinkFuncType): New type.
66390         (CreateHardLinkFunc, initialized): New variables.
66391         (initialize): New function.
66392         (link): Invoke CreateHardLink indirectly through the function pointer.
66394 2009-01-20  Bruno Haible  <bruno@clisp.org>
66396         Fix compilation failure on mingw.
66397         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
66399 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
66401         * doc/c-strtod.texi: Mention a couple of restrictions.
66403 2009-01-20  Jim Meyering  <meyering@redhat.com>
66405         gettimeofday: move more declarations out of functions
66406         * lib/gettimeofday.c: Move extern declarations of tzset and
66407         gmtime out of containing functions.  Prompted by Bruno Haible.
66409 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66411         regex: do not depend on obsolete modules.
66412         * modules/regex: Remove memcmp and memmove.
66414 2009-01-19  Bruno Haible  <bruno@clisp.org>
66416         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66417         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
66418         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66419         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
66420         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
66422 2009-01-19  Bruno Haible  <bruno@clisp.org>
66424         * tests/test-link.c: Include <errno.h>.
66425         (main): Exit with code 77 when a hard link cannot be created due to
66426         the file system.
66427         * tests/test-link.sh: Skip test when a hard link cannot be created due
66428         to the file system.
66429         Suggested by Eric Blake.
66431 2009-01-19  Martin Lambers  <marlam@marlam.de>
66433         * modules/link-tests: New file.
66434         * tests/test-link.sh: New file.
66435         * tests/test-link.c: New file.
66437 2009-01-19  Eric Blake  <ebb9@byu.net>
66439         doc: mention another function added in cygwin 1.7.0
66440         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
66441         Another new function in cygwin 1.7.
66443 2009-01-19  Bruno Haible  <bruno@clisp.org>
66445         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66446         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
66447         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
66448         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66449         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
66450         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
66451         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66452         * m4/md4.m4 (gl_MD4): Likewise.
66453         * m4/md5.m4 (gl_MD5): Likewise.
66454         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
66455         * m4/sha1.m4 (gl_SHA1): Likewise.
66456         * m4/sha256.m4 (gl_SHA256): Likewise.
66457         * m4/sha512.m4 (gl_SHA512): Likewise.
66459 2009-01-19  Bruno Haible  <bruno@clisp.org>
66461         * modules/uniname/uniname-tests (Depends-on): Add progname.
66462         * tests/uniname/test-uninames.c: Include progname.h.
66463         (main): Call set_program_name.
66465         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
66466         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
66467         (main): Call set_program_name.
66469         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
66470         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
66471         (main): Call set_program_name.
66473         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
66474         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
66475         (main): Call set_program_name.
66477         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
66478         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
66479         (main): Call set_program_name.
66481         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
66482         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
66483         (main): Call set_program_name.
66485         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
66486         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
66487         (main): Call set_program_name.
66489         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
66490         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
66491         (main): Call set_program_name.
66493         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
66494         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
66495         (main): Call set_program_name.
66497 2009-01-19  Eric Blake  <ebb9@byu.net>
66499         test-unistd: test previous patch
66500         * tests/test-unistd.c: Test *_FILENO macros.
66502         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
66503         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66504         Guarantee a definition.
66505         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
66506         * modules/unistd-safer (Depends-on): Add dependency on unistd.
66507         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
66508         * lib/dup-safer.c (STDERR_FILENO): Likewise.
66509         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66510         Likewise.
66511         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
66512         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
66513         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66514         Likewise.
66515         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
66516         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
66517         (STDERR_FILENO): Likewise.
66518         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
66519         (STDERR_FILENO): Likewise.
66520         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
66521         (STDERR_FILENO): Likewise.
66522         Reported by Elbert Pol.
66524 2009-01-19  Eric Blake  <ebb9@byu.net>
66526         doc: mention more functions added in cygwin 1.7.0
66527         * doc/posix-functions/abort.texi (abort): Update wording related
66528         to cygwin.
66529         * doc/posix-functions/daylight.texi (daylight): Likewise.
66530         * doc/posix-functions/optarg.texi (optarg): Likewise.
66531         * doc/posix-functions/optarg.texi (opterr): Likewise.
66532         * doc/posix-functions/optarg.texi (optind): Likewise.
66533         * doc/posix-functions/optarg.texi (optopt): Likewise.
66534         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
66535         worked in 1.5.x, and was withdrawn in 1.7.
66536         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
66537         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
66538         cygwin versions.
66539         * doc/posix-functions/perror.texi (perror): Likewise.
66540         * doc/posix-functions/printf.texi (printf): Likewise.
66541         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
66542         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
66543         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
66544         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
66545         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
66546         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
66547         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
66548         Likewise.
66549         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
66550         Likewise.
66551         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
66552         this function.
66553         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
66554         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
66555         Likewise.
66556         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
66557         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
66558         * doc/posix-functions/confstr.texi (confstr): Likewise.
66559         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
66560         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
66561         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
66562         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
66563         * doc/posix-functions/fputws.texi (fputws): Likewise.
66564         * doc/posix-functions/fwide.texi (fwide): Likewise.
66565         * doc/posix-functions/getwc.texi (getwc): Likewise.
66566         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
66567         * doc/posix-functions/putwc.texi (putwc): Likewise.
66568         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
66569         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
66570         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
66571         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
66572         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
66573         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
66574         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
66575         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
66576         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
66577         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
66578         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
66580 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
66582         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
66583         * lib/ioctl.c: Include <sys/ioctl.h>.
66585 2009-01-19  Simon Josefsson  <simon@josefsson.org>
66587         * modules/getdate-tests (Depends-on): Add progname.
66588         * tests/test-getdate.c: Use progname module, to avoid link errors
66589         on non-glibc systems.
66591 2009-01-18  Simon Josefsson  <simon@josefsson.org>
66593         * modules/filenamecat-tests (Depends-on): Add progname.
66594         * modules/fstrcmp-tests (Depends-on): Likewise.
66596         * tests/test-filenamecat.c: Use progname module, to avoid link
66597         errors on non-glibc systems.
66598         * tests/test-fstrcmp.c: Likewise.
66600 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
66602         gettimeofday: avoid warning: nested extern declaration of 'localtime'
66603         * lib/gettimeofday.c: Move extern declaration out of function.
66605 2009-01-18  Bruno Haible  <bruno@clisp.org>
66607         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
66608         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
66609         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
66611 2009-01-18  Bruno Haible  <bruno@clisp.org>
66613         * lib/strftime.c (MEMPCPY): Remove unused macro.
66614         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
66616 2009-01-18  Martin Lambers  <marlam@marlam.de>
66618         New module 'link'.
66619         * lib/unistd.in.h (link): New declaration.
66620         * lib/link.c: New file.
66621         * m4/link.m4: New file.
66622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
66623         HAVE_LINK.
66624         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
66625         * modules/link: New file.
66626         * doc/posix-functions/link.texi: Mention the new module.
66628 2009-01-18  Bruno Haible  <bruno@clisp.org>
66630         * tests/test-avltree_list.c (main): Call set_program_name.
66631         * tests/test-avltree_oset.c (main): Likewise.
66632         * tests/test-obstack-printf.c: Include progname.h.
66633         (main): Call set_program_name.
66634         * tests/test-quotearg.c: Include progname.h.
66635         (main): Call set_program_name.
66636         * tests/test-xmemdup0.c: Include progname.h.
66637         (main): Call set_program_name.
66639 2009-01-18  Bruno Haible  <bruno@clisp.org>
66641         New module 'alphasort'.
66642         * lib/dirent.in.h (alphasort): New declaration.
66643         * lib/alphasort.c: New file, from glibc with modifications.
66644         * m4/alphasort.m4: New file.
66645         * modules/alphasort: New file.
66646         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
66647         HAVE_ALPHASORT.
66648         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
66649         HAVE_ALPHASORT.
66650         * doc/posix-functions/alphasort.texi: Mention the new module and the
66651         portability problems.
66653 2009-01-18  Bruno Haible  <bruno@clisp.org>
66655         New module 'scandir'.
66656         * lib/dirent.in.h (scandir): New declaration.
66657         * lib/scandir.c: New file, from glibc with modifications.
66658         * m4/scandir.m4: New file.
66659         * modules/scandir: New file.
66660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
66661         HAVE_SCANDIR.
66662         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
66663         HAVE_SCANDIR.
66664         * doc/posix-functions/scandir.texi: Mention the new module and the
66665         portability problems.
66667 2009-01-17  Bruno Haible  <bruno@clisp.org>
66669         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
66670         Update documentation.
66671         (func_remove_suffix): Escape all dots in the suffix. Update
66672         documentation.
66673         (func_filter_filelist): Update documentation.
66674         Reported by Ralf Wildenhues.
66676 2009-01-17  Bruno Haible  <bruno@clisp.org>
66678         * modules/dprintf-posix-tests: New file.
66679         * tests/test-dprintf-posix.sh: New file.
66680         * tests/test-dprintf-posix.c: New file.
66682         New modules 'dprintf', 'dprintf-posix'.
66683         * lib/stdio.in.h (dprintf): New declaration.
66684         * lib/dprintf.c: New file.
66685         * m4/dprintf.m4: New file.
66686         * m4/dprintf-posix.m4: New file.
66687         * modules/dprintf: New file.
66688         * modules/dprintf-posix: New file.
66689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
66690         HAVE_DPRINTF, REPLACE_DPRINTF.
66691         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
66692         HAVE_DPRINTF, REPLACE_DPRINTF.
66693         * doc/posix-functions/dprintf.texi: Mention the new modules.
66695 2009-01-17  Bruno Haible  <bruno@clisp.org>
66697         * modules/vdprintf-posix-tests: New file.
66698         * tests/test-vdprintf-posix.sh: New file.
66699         * tests/test-vdprintf-posix.c: New file.
66701         New modules 'vdprintf', 'vdprintf-posix'.
66702         * lib/stdio.in.h (vdprintf): New declaration.
66703         * lib/vdprintf.c: New file.
66704         * m4/vdprintf.m4: New file.
66705         * m4/vdprintf-posix.m4: New file.
66706         * modules/vdprintf: New file.
66707         * modules/vdprintf-posix: New file.
66708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
66709         HAVE_VDPRINTF, REPLACE_VDPRINTF.
66710         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
66711         HAVE_VDPRINTF, REPLACE_VDPRINTF.
66712         * doc/posix-functions/vdprintf.texi: Mention the new modules.
66714 2009-01-17  Bruno Haible  <bruno@clisp.org>
66716         Fix replacement of fopen on mingw.
66717         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
66718         mingw.
66720 2009-01-17  Bruno Haible  <bruno@clisp.org>
66722         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
66723         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
66725 2009-01-17  Bruno Haible  <bruno@clisp.org>
66727         Avoid test-fflush2.sh failure on mingw.
66728         * tests/test-fflush2.c: Include binary-io.h.
66729         (main): Put standard input into binary mode.
66730         * modules/fflush-tests (Depends-on): Add binary-io.
66732 2009-01-17  Bruno Haible  <bruno@clisp.org>
66734         * lib/wchar.in.h: In another particular situation, include only the
66735         system's <wchar.h> file.
66736         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
66737         Reported by Albert Chin-A-Young <china@thewrittenword.com>
66738         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
66740 2009-01-17  Bruno Haible  <bruno@clisp.org>
66742         Support for stripping executables in --enable-relocatable.
66743         * build-aux/install-reloc: Expect one more argument, or an environment
66744         variable RELOC_STRIP_PROG. If set, strip the destination program and
66745         its wrapper.
66746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
66747         RELOC_STRIP_PROG.
66748         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
66749         to set RELOCATABLE_STRIP.
66750         * NEWS: Mention the new Makefile requirement.
66752 2009-01-17  Bruno Haible  <bruno@clisp.org>
66754         * build-aux/install-reloc: Remove debugging information left over by
66755         C compiler on MacOS X.
66757 2009-01-17  Bruno Haible  <bruno@clisp.org>
66759         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
66760         * lib/progreloc.c (find_executable): Fix type of pointer passed to
66761         _NSGetExecutablePath.
66763 2009-01-16  Jim Meyering  <meyering@redhat.com>
66765         strerror: avoid warnings about discarding "const"
66766         * lib/strerror.c (rpl_strerror): Instead of returning a const
66767         string from each and every "case", use a variable, and add a single
66768         cast after the switch.
66770 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
66772         * lib/arpa_inet.in.h: Add extern "C" block for C++.
66774 2009-01-16  Bruno Haible  <bruno@clisp.org>
66776         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
66777         array initializer syntax that also works in C++ mode.
66778         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66780 2009-01-16  Jim Meyering  <meyering@redhat.com>
66782         poll: suppress a warning
66783         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
66784         to ignore "...unsigned expression < 0 is always false" warnings.
66786 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
66788         poll: remove declarations of unused variables
66789         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
66790         sockbuf and optlen.
66792 2009-01-15  Bruno Haible  <bruno@clisp.org>
66794         Make fflush-after-ungetc POSIX compliant on BSD systems.
66795         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
66796         (clear_ungetc_buffer): Implement also for other systems.
66797         (rpl_fflush): On glibc systems, invoke
66798         clear_ungetc_buffer_preserving_position. Otherwise, invoke
66799         clear_ungetc_buffer after fetching the stream's position, not before.
66801 2009-01-15  Bruno Haible  <bruno@clisp.org>
66803         Make fflush-after-ungetc POSIX compliant on glibc systems.
66804         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
66805         after ungetc.
66806         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
66807         (rpl_fflush): On glibc systems, simply call the system's fflush
66808         function after clearing the ungetc buffer.
66809         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
66810         Instead, lseek only to the end of file, then use the system's fseeko
66811         for the rest. On glibc systems, reset the EOF indicator bit.
66813 2009-01-15  Jim Meyering  <meyering@redhat.com>
66815         openmp.m4: revert quote-adding change, for portability to older autoconf
66816         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
66817         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
66818         Simon Josefsson noticed the problem when using autoconf-2.61.
66820 2009-01-15  Bruno Haible  <bruno@clisp.org>
66822         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
66823         * tests/test-fflush2.c (ASSERT): Always fail.
66824         (main): Add two tests for fflush() after ungetc(), taking into account
66825         the Austin Group's clarification.
66826         Suggested by Eric Blake.
66828 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
66830         mktime.m4: remove K&R-style function prototypes
66831         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
66832         for the Sun C++ compiler.
66834 2009-01-14  Bruno Haible  <bruno@clisp.org>
66836         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
66837         while including <wchar.h>.
66838         * lib/wchar.in.h: In two particular situations on HP-UX, include only
66839         the system's <wchar.h> file.
66840         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66842 2009-01-14  Bruno Haible  <bruno@clisp.org>
66844         * m4/csharp.m4: Don't mention gettext on the serial number line.
66845         * m4/csharpexec.m4: Likewise.
66846         * m4/eaccess.m4: Likewise.
66847         * m4/javaexec.m4: Likewise.
66848         * m4/sig_atomic_t.m4: Likewise.
66849         * m4/tmpdir.m4: Likewise.
66850         * m4/intldir.m4: Bump gettext version.
66851         * m4/lib-ld.m4: Likewise.
66853 2009-01-14  Bruno Haible  <bruno@clisp.org>
66855         * lib/progname.c (set_program_name): Add more comments.
66856         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
66858 2009-01-14  Simon Josefsson  <simon@josefsson.org>
66860         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
66861         were sys/stat.h does not define it.
66863 2009-01-14  Jim Meyering  <meyering@redhat.com>
66865         many *.m4 files: improve m4 quoting
66866         99% of this change was performed by running the following commands:
66867         git ls-files | grep '\.m4$' | xargs perl -pi \
66868           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
66869           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
66870           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
66871           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
66872         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
66873         The remainder were to add Copyright dates, increment serial numbers,
66874         undo some changes in comments, exclude m4/intl.m4, and add quotes
66875         around the "1" in ",1" where the unusual spacing prohibited the
66876         above regexps from doing the job.  For more details, see
66877         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
66878         * m4/acl.m4: Modified.
66879         * m4/afs.m4: Likewise.
66880         * m4/alloca.m4: Likewise.
66881         * m4/argp.m4: Likewise.
66882         * m4/argz.m4: Likewise.
66883         * m4/atexit.m4: Likewise.
66884         * m4/bison-i18n.m4: Likewise.
66885         * m4/bison.m4: Likewise.
66886         * m4/byteswap.m4: Likewise.
66887         * m4/c-stack.m4: Likewise.
66888         * m4/c-strtod.m4: Likewise.
66889         * m4/calloc.m4: Likewise.
66890         * m4/canonicalize-lgpl.m4: Likewise.
66891         * m4/chown.m4: Likewise.
66892         * m4/clock_time.m4: Likewise.
66893         * m4/codeset.m4: Likewise.
66894         * m4/copy-file.m4: Likewise.
66895         * m4/csharp.m4: Likewise.
66896         * m4/csharpcomp.m4: Likewise.
66897         * m4/csharpexec.m4: Likewise.
66898         * m4/d-ino.m4: Likewise.
66899         * m4/d-type.m4: Likewise.
66900         * m4/dirfd.m4: Likewise.
66901         * m4/double-slash-root.m4: Likewise.
66902         * m4/eaccess.m4: Likewise.
66903         * m4/eealloc.m4: Likewise.
66904         * m4/environ.m4: Likewise.
66905         * m4/errno_h.m4: Likewise.
66906         * m4/euidaccess.m4: Likewise.
66907         * m4/execute.m4: Likewise.
66908         * m4/fatal-signal.m4: Likewise.
66909         * m4/fchdir.m4: Likewise.
66910         * m4/fcntl_h.m4: Likewise.
66911         * m4/fileblocks.m4: Likewise.
66912         * m4/filenamecat.m4: Likewise.
66913         * m4/findprog.m4: Likewise.
66914         * m4/flexmember.m4: Likewise.
66915         * m4/fnmatch.m4: Likewise.
66916         * m4/fopen.m4: Likewise.
66917         * m4/fpending.m4: Likewise.
66918         * m4/fprintf-posix.m4: Likewise.
66919         * m4/free.m4: Likewise.
66920         * m4/frexp.m4: Likewise.
66921         * m4/frexpl.m4: Likewise.
66922         * m4/fsusage.m4: Likewise.
66923         * m4/ftruncate.m4: Likewise.
66924         * m4/gc-camellia.m4: Likewise.
66925         * m4/gc-random.m4: Likewise.
66926         * m4/gc.m4: Likewise.
66927         * m4/getaddrinfo.m4: Likewise.
66928         * m4/getcwd-abort-bug.m4: Likewise.
66929         * m4/getcwd-path-max.m4: Likewise.
66930         * m4/getdate.m4: Likewise.
66931         * m4/getdomainname.m4: Likewise.
66932         * m4/getgroups.m4: Likewise.
66933         * m4/gethostname.m4: Likewise.
66934         * m4/gethrxtime.m4: Likewise.
66935         * m4/getline.m4: Likewise.
66936         * m4/getloadavg.m4: Likewise.
66937         * m4/getndelim2.m4: Likewise.
66938         * m4/getpass.m4: Likewise.
66939         * m4/gettext.m4: Likewise.
66940         * m4/gettime.m4: Likewise.
66941         * m4/gettimeofday.m4: Likewise.
66942         * m4/gnulib-common.m4: Likewise.
66943         * m4/group-member.m4: Likewise.
66944         * m4/host-os.m4: Likewise.
66945         * m4/iconv.m4: Likewise.
66946         * m4/iconv_open.m4: Likewise.
66947         * m4/inet_ntop.m4: Likewise.
66948         * m4/inet_pton.m4: Likewise.
66949         * m4/inline.m4: Likewise.
66950         * m4/intldir.m4: Likewise.
66951         * m4/intlmacosx.m4: Likewise.
66952         * m4/intmax.m4: Likewise.
66953         * m4/intmax_t.m4: Likewise.
66954         * m4/inttypes.m4: Likewise.
66955         * m4/inttypes_h.m4: Likewise.
66956         * m4/inttypes-pri.m4: Likewise.
66957         * m4/isapipe.m4: Likewise.
66958         * m4/isnand.m4: Likewise.
66959         * m4/isnanf.m4: Likewise.
66960         * m4/isnanl.m4: Likewise.
66961         * m4/javacomp.m4: Likewise.
66962         * m4/javaexec.m4: Likewise.
66963         * m4/jm-winsz1.m4: Likewise.
66964         * m4/jm-winsz2.m4: Likewise.
66965         * m4/lchown.m4: Likewise.
66966         * m4/lcmessage.m4: Likewise.
66967         * m4/ldexpl.m4: Likewise.
66968         * m4/lib-ld.m4: Likewise.
66969         * m4/lib-link.m4: Likewise.
66970         * m4/libsigsegv.m4: Likewise.
66971         * m4/link-follow.m4: Likewise.
66972         * m4/localcharset.m4: Likewise.
66973         * m4/locale-fr.m4: Likewise.
66974         * m4/locale-ja.m4: Likewise.
66975         * m4/locale-tr.m4: Likewise.
66976         * m4/locale-zh.m4: Likewise.
66977         * m4/lock.m4: Likewise.
66978         * m4/longlong.m4: Likewise.
66979         * m4/ls-mntd-fs.m4: Likewise.
66980         * m4/lstat.m4: Likewise.
66981         * m4/malloc.m4: Likewise.
66982         * m4/mathl.m4: Likewise.
66983         * m4/mbrtowc.m4: Likewise.
66984         * m4/mbstate_t.m4: Likewise.
66985         * m4/mbswidth.m4: Likewise.
66986         * m4/memchr.m4: Likewise.
66987         * m4/memcmp.m4: Likewise.
66988         * m4/memcpy.m4: Likewise.
66989         * m4/memmem.m4: Likewise.
66990         * m4/memmove.m4: Likewise.
66991         * m4/mempcpy.m4: Likewise.
66992         * m4/memrchr.m4: Likewise.
66993         * m4/memset.m4: Likewise.
66994         * m4/minmax.m4: Likewise.
66995         * m4/mkdir-slash.m4: Likewise.
66996         * m4/mkdtemp.m4: Likewise.
66997         * m4/mktime.m4: Likewise.
66998         * m4/mmap-anon.m4: Likewise.
66999         * m4/mountlist.m4: Likewise.
67000         * m4/nanosleep.m4: Likewise.
67001         * m4/nls.m4: Likewise.
67002         * m4/nocrash.m4: Likewise.
67003         * m4/open.m4: Likewise.
67004         * m4/openat.m4: Likewise.
67005         * m4/openmp.m4: Likewise.
67006         * m4/pathmax.m4: Likewise.
67007         * m4/perl.m4: Likewise.
67008         * m4/physmem.m4: Likewise.
67009         * m4/pipe.m4: Likewise.
67010         * m4/po.m4: Likewise.
67011         * m4/poll.m4: Likewise.
67012         * m4/posixtm.m4: Likewise.
67013         * m4/posixver.m4: Likewise.
67014         * m4/printf-frexp.m4: Likewise.
67015         * m4/printf-frexpl.m4: Likewise.
67016         * m4/printf-posix.m4: Likewise.
67017         * m4/printf-posix-rpl.m4: Likewise.
67018         * m4/printf.m4: Likewise.
67019         * m4/progtest.m4: Likewise.
67020         * m4/putenv.m4: Likewise.
67021         * m4/readline.m4: Likewise.
67022         * m4/readlink.m4: Likewise.
67023         * m4/readutmp.m4: Likewise.
67024         * m4/realloc.m4: Likewise.
67025         * m4/regex.m4: Likewise.
67026         * m4/relocatable.m4: Likewise.
67027         * m4/relocatable-lib.m4: Likewise.
67028         * m4/rename-dest-slash.m4: Likewise.
67029         * m4/rename.m4: Likewise.
67030         * m4/rmdir-errno.m4: Likewise.
67031         * m4/rmdir.m4: Likewise.
67032         * m4/roundf.m4: Likewise.
67033         * m4/roundl.m4: Likewise.
67034         * m4/rpmatch.m4: Likewise.
67035         * m4/save-cwd.m4: Likewise.
67036         * m4/selinux-selinux-h.m4: Likewise.
67037         * m4/setenv.m4: Likewise.
67038         * m4/settime.m4: Likewise.
67039         * m4/sig2str.m4: Likewise.
67040         * m4/sig_atomic_t.m4: Likewise.
67041         * m4/signalblocking.m4: Likewise.
67042         * m4/signbit.m4: Likewise.
67043         * m4/sigpipe.m4: Likewise.
67044         * m4/sockets.m4: Likewise.
67045         * m4/sockpfaf.m4: Likewise.
67046         * m4/st_dm_mode.m4: Likewise.
67047         * m4/stat-time.m4: Likewise.
67048         * m4/stdbool.m4: Likewise.
67049         * m4/stdint.m4: Likewise.
67050         * m4/stdint_h.m4: Likewise.
67051         * m4/stpcpy.m4: Likewise.
67052         * m4/stpncpy.m4: Likewise.
67053         * m4/strcase.m4: Likewise.
67054         * m4/strchrnul.m4: Likewise.
67055         * m4/strcspn.m4: Likewise.
67056         * m4/strdup.m4: Likewise.
67057         * m4/strftime.m4: Likewise.
67058         * m4/strndup.m4: Likewise.
67059         * m4/strnlen.m4: Likewise.
67060         * m4/strpbrk.m4: Likewise.
67061         * m4/strptime.m4: Likewise.
67062         * m4/strsep.m4: Likewise.
67063         * m4/strtod.m4: Likewise.
67064         * m4/strtoimax.m4: Likewise.
67065         * m4/strtok_r.m4: Likewise.
67066         * m4/strtol.m4: Likewise.
67067         * m4/strtoll.m4: Likewise.
67068         * m4/strtoul.m4: Likewise.
67069         * m4/strtoull.m4: Likewise.
67070         * m4/strtoumax.m4: Likewise.
67071         * m4/strverscmp.m4: Likewise.
67072         * m4/threadlib.m4: Likewise.
67073         * m4/timegm.m4: Likewise.
67074         * m4/tm_gmtoff.m4: Likewise.
67075         * m4/tmpdir.m4: Likewise.
67076         * m4/tmpfile.m4: Likewise.
67077         * m4/tzset.m4: Likewise.
67078         * m4/uintmax_t.m4: Likewise.
67079         * m4/unlinkdir.m4: Likewise.
67080         * m4/unlocked-io.m4: Likewise.
67081         * m4/uptime.m4: Likewise.
67082         * m4/userspec.m4: Likewise.
67083         * m4/utimbuf.m4: Likewise.
67084         * m4/utime.m4: Likewise.
67085         * m4/utimes-null.m4: Likewise.
67086         * m4/utimes.m4: Likewise.
67087         * m4/vararrays.m4: Likewise.
67088         * m4/vasnprintf.m4: Likewise.
67089         * m4/vfprintf-posix.m4: Likewise.
67090         * m4/vprintf-posix.m4: Likewise.
67091         * m4/wait-process.m4: Likewise.
67092         * m4/wchar_t.m4: Likewise.
67093         * m4/wint_t.m4: Likewise.
67094         * m4/write-any-file.m4: Likewise.
67095         * m4/yield.m4: Likewise.
67097 2009-01-13  Bruno Haible  <bruno@clisp.org>
67099         Avoid test-copy-file.sh failures when ACL support insufficient.
67100         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
67101         TESTS_ENVIRONMENT.
67102         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
67103         Reported by Jim Meyering.
67105 2009-01-13  Bruno Haible  <bruno@clisp.org>
67107         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
67108         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
67109         * modules/unistdio/u8-printf-parse (Files): Likewise.
67110         * modules/unistdio/u32-printf-parse (Files): Likewise.
67111         * modules/unistdio/ulc-printf-parse (Files): Likewise.
67113 2009-01-13  Simon Josefsson  <simon@josefsson.org>
67115         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
67116         and m4/inttypes_h.m4 too.
67118 2009-01-12  Eric Blake  <ebb9@byu.net>
67120         tests: IRIX 6.2 cc can't compile -0.0 into .data
67121         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
67122         rather than at compile-time.
67123         * tests/test-floorl.c (minus_zero): Likewise.
67124         * tests/test-frexpl.c (minus_zero): Likewise.
67125         * tests/test-isnan.c (minus_zerol): Likewise.
67126         * tests/test-isnanl.h (minus_zero): Likewise.
67127         * tests/test-ldexpl.c (minus_zero): Likewise.
67128         * tests/test-roundl.c (minus_zero): Likewise.
67129         * tests/test-signbit.c (minus_zerol): Likewise.
67130         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
67131         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
67132         * tests/test-truncl.c (minus_zero): Likewise.
67133         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
67134         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
67135         Reported by Tom G. Christensen and Nelson H. F. Beebe.
67137 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67139         regex: fix glibc bug 9697
67140         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
67141         handling.
67143 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67145         regex: fix glibc bug 697
67146         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
67147         being NULL also if there are no backreferences.
67149 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
67151         regex: merge glibc changes
67152         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
67153         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
67154         re_string_skip_chars, re_string_reconstruct): Likewise.
67155         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
67157 2009-01-07  Jim Meyering  <meyering@redhat.com>
67159         poll: filter through cppi
67160         * lib/poll.c: Indent cpp directives to reflect nesting.
67162 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
67164         poll: don't return uninitialized
67165         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
67167 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
67169         avoid compile failure on AIX 6.1
67170         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
67171         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
67173 2009-01-04  Jim Meyering  <meyering@redhat.com>
67175         remove duplicate inclusion of <stdio.h>
67176         * tests/test-fprintf-posix.c: Likewise.
67177         * tests/test-printf-posix.c: Likewise.
67178         * tests/test-snprintf-posix.c: Likewise.
67179         * tests/test-sprintf-posix.c: Likewise.
67180         * tests/test-vasprintf-posix.c: Likewise.
67181         * tests/test-vfprintf-posix.c: Likewise.
67182         * tests/test-vprintf-posix.c: Likewise.
67183         * tests/test-vsnprintf-posix.c: Likewise.
67184         * tests/test-vsprintf-posix.c: Likewise.
67186 2009-01-03  Jim Meyering  <meyering@redhat.com>
67188         gnulib-tool: fix sed-based filtering
67189         * gnulib-tool (func_filter_filelist): Remove extra backslash
67190         in sed_fff_filter definition.
67192 2009-01-02  Jim Meyering  <meyering@redhat.com>
67194         strftime: avoid compilation failure on Solaris 2.6
67195         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
67196         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
67197         Don't #define mbrlen or mbsinit, since now they're guaranteed to
67198         be available.  Reported by Tom G. Christensen.  Details in
67199         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
67201 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67202             Bruno Haible  <bruno@clisp.org>
67204         Speed up gnulib-tool by doing more string processing through shell
67205         built-ins.
67206         * gnulib-tool (fast_func_append): New variable.
67207         (func_remove_prefix, func_remove_suffix): New functions.
67208         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
67209         (func_filter_filelist): New function.
67210         (func_get_dependencies): Use func_remove_suffix instead of sed.
67211         (func_get_automake_snippet): Use func_filter_filelist instead of a
67212         subshell and sed invocation.
67214 2009-01-01  Bruno Haible  <bruno@clisp.org>
67216         Fix a security bug.
67217         * gnulib-tool (func_import, import, update): Don't allow the characters
67218         '"', '$', '`', '\' in macro arguments that become part of commands that
67219         are evaluated.
67221 2009-01-01  Bruno Haible  <bruno@clisp.org>
67223         * gnulib-tool (func_reset_sigpipe): Add more comments.
67225 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67227         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
67228         func_emit_tests_Makefile_am, func_import): Abort loops early if we
67229         already know the answer.
67231 2009-01-01  Jim Meyering  <meyering@redhat.com>
67233         * lib/version-etc.c (version_etc_va): Update copyright year.
67235 2008-12-30  Bruno Haible  <bruno@clisp.org>
67237         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
67238         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
67239         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
67241 2008-12-29  Eric Blake  <ebb9@byu.net>
67243         multiarch: avoid autoconf AC_REQUIRE bug
67244         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
67245         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
67246         2.63 and older.
67247         Reported by Bruno Haible, and analyzed in
67248         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
67250 2008-12-29  Bruno Haible  <bruno@clisp.org>
67252         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
67253         files in subdirectories correctly.
67254         Reported by Ralf Wildenhues.
67256 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67258         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
67259         rather than 'join FILE -', for Solaris join.
67261 2008-12-29  Bruno Haible  <bruno@clisp.org>
67263         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
67264         quoting.
67265         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67266         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
67267         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
67268         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
67269         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
67270         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
67271         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
67272         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
67273         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67274         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
67275         * m4/nls.m4 (AM_NLS): Likewise.
67276         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
67277         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
67278         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67279         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
67280         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
67281         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
67282         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
67283         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
67284         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
67285         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67286         * m4/xsize.m4 (gl_XSIZE): Likewise.
67287         Suggested by Jim Meyering.
67289 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67291         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
67292         * lib/parse-duration.c: use a switch instead of cascading if's.
67294 2008-12-29  Eric Blake  <ebb9@byu.net>
67296         wchar.h: supply WEOF on Irix 5.3
67297         * lib/wchar.in.h (wint_t): Also supply WEOF.
67298         * lib/wctype.in.h (wint_t): Likewise.
67299         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
67300         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
67301         Reported by Tom G. Christensen.
67303 2008-12-26  Bruno Haible  <bruno@clisp.org>
67305         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
67306         i486, i586, i686.
67308 2008-12-26  Bruno Haible  <bruno@clisp.org>
67310         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
67312 2008-12-26  Bruno Haible  <bruno@clisp.org>
67314         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
67315         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
67316         not __STDC_CONSTANT_MACROS.
67317         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
67319 2008-12-25  Bruno Haible  <bruno@clisp.org>
67321         Add support for universal builds to vasnprintf.
67322         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
67323         universal builds, guess no.
67324         * modules/vasnprintf-posix (Depends-on): Add multiarch.
67325         * modules/vasprintf-posix (Depends-on): Likewise.
67326         * modules/fprintf-posix (Depends-on): Likewise.
67327         * modules/vfprintf-posix (Depends-on): Likewise.
67328         * modules/snprintf-posix (Depends-on): Likewise.
67329         * modules/vsnprintf-posix (Depends-on): Likewise.
67330         * modules/sprintf-posix (Depends-on): Likewise.
67331         * modules/vsprintf-posix (Depends-on): Likewise.
67332         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
67333         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67334         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67335         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67336         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67337         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67338         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67340         Add support for universal builds to <inttypes.h>.
67341         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
67342         _SCNu64_PREFIX): In Apple
67343         universal builds, define directly, using _LP64.
67344         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
67345         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
67346         * modules/inttypes (Depends-on): Add multiarch.
67347         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67349         Add support for universal builds to <stdint.h>.
67350         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
67351         universal builds, define directly, using _LP64.
67352         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
67353         Apple universal builds, don't test for the size and suffix of ptrdiff_t
67354         and size_t.
67355         * modules/stdint (Depends-on): Add multiarch.
67356         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67358         New module 'multiarch'.
67359         * modules/multiarch: New file.
67360         * m4/multiarch.m4: New file.
67362 2008-12-25  Bruno Haible  <bruno@clisp.org>
67364         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
67366 2008-12-25  Bruno Haible  <bruno@clisp.org>
67368         * modules/btowc (License): Relicense under LGPLv2+.
67369         * modules/mbsinit (License): Likewise.
67370         * modules/mbrtowc (License): Likewise.
67371         * modules/wcrtomb (License): Likewise.
67372         * modules/streq (License): Likewise.
67373         Reported by David Lutterkort <lutter@redhat.com>.
67375 2008-12-23  Bruno Haible  <bruno@clisp.org>
67377         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
67379 2008-12-23  Bruno Haible  <bruno@clisp.org>
67381         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
67382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
67383         GETADDRINFO_LIB, not in LIBS.
67384         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
67385         * modules/canon-host (Link): Likewise.
67386         * NEWS: Mention the change.
67387         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
67388         GETADDRINFO_LIB.
67390 2008-12-22  Bruno Haible  <bruno@clisp.org>
67392         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
67393         * doc/posix-functions/iswalpha_l.texi: Likewise.
67394         * doc/posix-functions/iswblank_l.texi: Likewise.
67395         * doc/posix-functions/iswcntrl_l.texi: Likewise.
67396         * doc/posix-functions/iswctype_l.texi: Likewise.
67397         * doc/posix-functions/iswdigit_l.texi: Likewise.
67398         * doc/posix-functions/iswgraph_l.texi: Likewise.
67399         * doc/posix-functions/iswlower_l.texi: Likewise.
67400         * doc/posix-functions/iswprint_l.texi: Likewise.
67401         * doc/posix-functions/iswpunct_l.texi: Likewise.
67402         * doc/posix-functions/iswspace_l.texi: Likewise.
67403         * doc/posix-functions/iswupper_l.texi: Likewise.
67404         * doc/posix-functions/iswxdigit_l.texi: Likewise.
67405         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
67406         * doc/posix-functions/open_wmemstream.texi: Likewise.
67407         * doc/posix-functions/swscanf.texi: Likewise.
67408         * doc/posix-functions/towctrans_l.texi: Likewise.
67409         * doc/posix-functions/towlower.texi: Likewise.
67410         * doc/posix-functions/towlower_l.texi: Likewise.
67411         * doc/posix-functions/towupper.texi: Likewise.
67412         * doc/posix-functions/towupper_l.texi: Likewise.
67413         * doc/posix-functions/vfwprintf.texi: Likewise.
67414         * doc/posix-functions/vfwscanf.texi: Likewise.
67415         * doc/posix-functions/vswscanf.texi: Likewise.
67416         * doc/posix-functions/vwprintf.texi: Likewise.
67417         * doc/posix-functions/vwscanf.texi: Likewise.
67418         * doc/posix-functions/wcpcpy.texi: Likewise.
67419         * doc/posix-functions/wcpncpy.texi: Likewise.
67420         * doc/posix-functions/wcscasecmp.texi: Likewise.
67421         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
67422         * doc/posix-functions/wcscoll_l.texi: Likewise.
67423         * doc/posix-functions/wcsdup.texi: Likewise.
67424         * doc/posix-functions/wcsncasecmp.texi: Likewise.
67425         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
67426         * doc/posix-functions/wcsnlen.texi: Likewise.
67427         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67428         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
67429         * doc/posix-functions/wctrans_l.texi: Likewise.
67430         * doc/posix-functions/wctype_l.texi: Likewise.
67431         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
67432         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
67433         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
67434         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
67435         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
67436         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
67437         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
67438         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
67439         * doc/glibc-functions/wcschrnul.texi: Likewise.
67440         * doc/glibc-functions/wcsftime_l.texi: Likewise.
67441         * doc/glibc-functions/wcstod_l.texi: Likewise.
67442         * doc/glibc-functions/wcstof_l.texi: Likewise.
67443         * doc/glibc-functions/wcstol_l.texi: Likewise.
67444         * doc/glibc-functions/wcstold_l.texi: Likewise.
67445         * doc/glibc-functions/wcstoll_l.texi: Likewise.
67446         * doc/glibc-functions/wcstoq.texi: Likewise.
67447         * doc/glibc-functions/wcstoul_l.texi: Likewise.
67448         * doc/glibc-functions/wcstoull_l.texi: Likewise.
67449         * doc/glibc-functions/wcstouq.texi: Likewise.
67450         * doc/glibc-functions/wmempcpy.texi: Likewise.
67452 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
67453             Eric Blake  <ebb9@byu.net>
67454             Paolo Bonzini  <bonzini@gnu.org>
67455             Bruno Haible  <bruno@clisp.org>
67457         Make c-stack work on Haiku.
67458         * lib/c-stack.c (SA_ONSTACK): Define fallback.
67459         (c_stack_action): Use SA_ONSTACK flag.
67461 2008-12-22  Bruno Haible  <bruno@clisp.org>
67463         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
67465 2008-12-22  Bruno Haible  <bruno@clisp.org>
67467         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
67468         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
67469         being overridden.
67470         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
67471         New macros.
67472         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
67473         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
67474         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
67475         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
67477 2008-12-22  Bruno Haible  <bruno@clisp.org>
67479         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
67480         from test code.
67482 2008-12-22  Eric Blake  <ebb9@byu.net>
67484         Avoid gcc warnings on cygwin.
67485         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
67486         Avoid unused variable.
67487         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
67488         Likewise.
67490 2008-12-22  Bruno Haible  <bruno@clisp.org>
67492         Remove HAVE_MBRTOWC conditionals.
67493         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
67494         (mbscasecmp): Assume mbrtowc function.
67495         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
67496         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
67497         * lib/mbschr.c: Include mbuiter.h unconditionally.
67498         (mbschr): Assume mbrtowc function.
67499         * lib/mbscspn.c: Include mbuiter.h unconditionally.
67500         (mbscspn): Assume mbrtowc function.
67501         * lib/mbslen.c: Include mbuiter.h unconditionally.
67502         (mbslen): Assume mbrtowc function.
67503         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
67504         (mbsncasecmp): Assume mbrtowc function.
67505         * lib/mbsnlen.c: Include mbiter.h unconditionally.
67506         (mbsnlen): Assume mbrtowc function.
67507         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
67508         (mbspbrk): Assume mbrtowc function.
67509         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
67510         (mbspcasecmp): Assume mbrtowc function.
67511         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
67512         (mbsrchr): Assume mbrtowc function.
67513         * lib/mbssep.c: Include mbuiter.h unconditionally.
67514         (mbssep): Assume mbrtowc function.
67515         * lib/mbsspn.c: Include mbuiter.h unconditionally.
67516         (mbsspn): Assume mbrtowc function.
67517         * lib/mbsstr.c: Include mbuiter.h unconditionally.
67518         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
67519         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
67520         (mbstok_r): Assume mbrtowc function.
67521         * lib/propername.c: Include mbuiter.h unconditionally.
67522         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
67523         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
67524         (trim2): Assume mbrtowc function.
67525         * lib/mbswidth.c (mbsinit): Remove fallback definition.
67526         (mbsnwidth): Assume mbrtowc function.
67527         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
67528         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
67529         fallback definitions.
67530         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
67532 2008-12-22  Bruno Haible  <bruno@clisp.org>
67534         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
67536 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
67538         * modules/regex: Request emulations for the mb*/wc* functions we need.
67539         * m4/regex.m4: Don't look for those functions here.
67540         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
67542 2008-12-22  Bruno Haible  <bruno@clisp.org>
67544         * modules/fnmatch (Depends-on): Remove duplicated dependency.
67546 2008-12-21  Bruno Haible  <bruno@clisp.org>
67548         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
67549         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
67550         (Include): Remove conditionalization.
67551         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
67552         (Include): Remove conditionalization.
67553         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
67554         (Include): Remove conditionalization.
67555         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
67556         * m4/mbfile.m4 (gl_MBFILE): Likewise.
67557         * NEWS: Mention the change.
67558         Reported by Alan Hourihane <alanh@fairlite.co.uk>
67559         via Sergey Poznyakoff <gray@gnu.org.ua>.
67561 2008-12-21  Bruno Haible  <bruno@clisp.org>
67563         * MODULES.html.sh (Extended multibyte and wide character utilities
67564         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
67565         wcrtomb, wcsrtombs.
67566         (Support for systems lacking POSIX:2008): Add accept, bind, close,
67567         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
67568         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
67569         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
67571 2008-12-21  Bruno Haible  <bruno@clisp.org>
67573         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
67575 2008-12-21  Bruno Haible  <bruno@clisp.org>
67577         * modules/wcsnrtombs-tests: New file.
67578         * tests/test-wcsnrtombs1.sh: New file.
67579         * tests/test-wcsnrtombs2.sh: New file.
67580         * tests/test-wcsnrtombs3.sh: New file.
67581         * tests/test-wcsnrtombs4.sh: New file.
67582         * tests/test-wcsnrtombs.c: New file.
67584         New module 'wcsnrtombs'.
67585         * lib/wchar.in.h (wcsnrtombs): New declaration.
67586         * lib/wcsnrtombs.c: New file.
67587         * lib/wcsrtombs-state.c: New file.
67588         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
67589         (internal_state): Remove variable.
67590         * m4/wcsnrtombs.m4: New file.
67591         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
67592         compilation units.
67593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
67594         HAVE_WCSNRTOMBS.
67595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
67596         HAVE_WCSNRTOMBS.
67597         * modules/wcsnrtombs: New file.
67598         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
67599         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
67601 2008-12-21  Bruno Haible  <bruno@clisp.org>
67603         * modules/wcsrtombs-tests: New file.
67604         * tests/test-wcsrtombs1.sh: New file.
67605         * tests/test-wcsrtombs2.sh: New file.
67606         * tests/test-wcsrtombs3.sh: New file.
67607         * tests/test-wcsrtombs4.sh: New file.
67608         * tests/test-wcsrtombs.c: New file.
67610         New module 'wcsrtombs'.
67611         * lib/wchar.in.h (wcsrtombs): New declaration.
67612         * lib/wcsrtombs.c: New file.
67613         * m4/wcsrtombs.m4: New file.
67614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
67615         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
67616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
67617         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
67618         * modules/wcsrtombs: New file.
67619         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
67620         bugs.
67622 2008-12-21  Bruno Haible  <bruno@clisp.org>
67624         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
67625         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
67626         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
67627         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
67628         if not correct.
67629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
67630         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
67631         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67632         m4/locale-zh.m4, m4/codeset.m4.
67633         * doc/posix-functions/wcrtomb.texi: Document the bug.
67635 2008-12-21  Bruno Haible  <bruno@clisp.org>
67637         Work around a btowc() bug on IRIX 6.5.
67638         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
67639         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
67640         REPLACE_WTOBC if not.
67641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
67642         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
67643         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
67645 2008-12-21  Bruno Haible  <bruno@clisp.org>
67647         * modules/wcrtomb-tests: New file.
67648         * tests/test-wcrtomb.sh: New file.
67649         * tests/test-wcrtomb.c: New file.
67651         New module 'wcrtomb'.
67652         * lib/wchar.in.h (wcrtomb): New declaration.
67653         * lib/wcrtomb.c: New file.
67654         * m4/wcrtomb.m4: New file.
67655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
67656         HAVE_WCRTOMB.
67657         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
67658         HAVE_WCRTOMB.
67659         * modules/wcrtomb: New file.
67660         * doc/posix-functions/wcrtomb.texi: Mention the new module.
67662 2008-12-21  Bruno Haible  <bruno@clisp.org>
67664         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
67665         * modules/mbsrtowcs (Files): Likewise.
67666         * modules/wctob (Files): Likewise.
67667         * modules/c-strcase-tests (Files): Likewise.
67668         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
67669         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
67670         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
67671         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
67672         * modules/vasnprintf-posix-tests (Files): Likewise.
67674 2008-12-21  William Pursell  <bill.pursell@gmail.com>
67676         gitlog-to-changelog: pass all command-line arguments to git-log
67677         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
67678         it is sometimes convenient to filter the commits in various ways.
67679         gitlog-to-changelog only allows --since to specify a start date,
67680         but git-log itself supports many other filtering mechanisms.
67681         At the moment, I want to filter by branch name.  Rather than
67682         adding a --branch option to gitlog-to-changelog, it seems more
67683         flexible to simply pass all options directly to git-log and let
67684         git do the work.  Notice that this effectively makes --since a
67685         redundant option for gitlog-to-changelog, but removing it would
67686         require current usage to change since calls would then require
67687         an additional '--'.
67689 2008-12-21  Bruno Haible  <bruno@clisp.org>
67691         * modules/mbsnrtowcs-tests: New file.
67692         * tests/test-mbsnrtowcs1.sh: New file.
67693         * tests/test-mbsnrtowcs2.sh: New file.
67694         * tests/test-mbsnrtowcs3.sh: New file.
67695         * tests/test-mbsnrtowcs4.sh: New file.
67696         * tests/test-mbsnrtowcs.c: New file.
67698         New module 'mbsnrtowcs'.
67699         * lib/wchar.in.h (mbsnrtowcs): New declaration.
67700         * lib/mbsnrtowcs.c: New file.
67701         * lib/mbsrtowcs-state.c: New file.
67702         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
67703         (internal_state): Remove variable.
67704         * m4/mbsnrtowcs.m4: New file.
67705         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
67706         compilation units.
67707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
67708         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
67709         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
67710         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
67711         * modules/mbsnrtowcs: New file.
67712         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
67713         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
67714         portability problem.
67716 2008-12-21  Bruno Haible  <bruno@clisp.org>
67718         Work around mbsrtowcs bug.
67719         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
67720         (gl_FUNC_MBSRTOWCS): Invoke it.
67721         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67722         m4/locale-zh.m4.
67723         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
67725 2008-12-21  Bruno Haible  <bruno@clisp.org>
67727         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
67729 2008-12-21  Bruno Haible  <bruno@clisp.org>
67731         Update doc for AIX.
67732         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
67733         16-bit wchar_t type.
67734         * doc/posix-functions/btowc.texi: Likewise.
67735         * doc/posix-functions/fgetwc.texi: Likewise.
67736         * doc/posix-functions/fgetws.texi: Likewise.
67737         * doc/posix-functions/fputwc.texi: Likewise.
67738         * doc/posix-functions/fputws.texi: Likewise.
67739         * doc/posix-functions/fwide.texi: Likewise.
67740         * doc/posix-functions/fwprintf.texi: Likewise.
67741         * doc/posix-functions/fwscanf.texi: Likewise.
67742         * doc/posix-functions/getwchar.texi: Likewise.
67743         * doc/posix-functions/getwc.texi: Likewise.
67744         * doc/posix-functions/iswalnum.texi: Likewise.
67745         * doc/posix-functions/iswalpha.texi: Likewise.
67746         * doc/posix-functions/iswblank.texi: Likewise.
67747         * doc/posix-functions/iswcntrl.texi: Likewise.
67748         * doc/posix-functions/iswctype.texi: Likewise.
67749         * doc/posix-functions/iswdigit.texi: Likewise.
67750         * doc/posix-functions/iswgraph.texi: Likewise.
67751         * doc/posix-functions/iswlower.texi: Likewise.
67752         * doc/posix-functions/iswprint.texi: Likewise.
67753         * doc/posix-functions/iswpunct.texi: Likewise.
67754         * doc/posix-functions/iswspace.texi: Likewise.
67755         * doc/posix-functions/iswupper.texi: Likewise.
67756         * doc/posix-functions/iswxdigit.texi: Likewise.
67757         * doc/posix-functions/mbrtowc.texi: Likewise.
67758         * doc/posix-functions/mbsrtowcs.texi: Likewise.
67759         * doc/posix-functions/mbstowcs.texi: Likewise.
67760         * doc/posix-functions/mbtowc.texi: Likewise.
67761         * doc/posix-functions/putwchar.texi: Likewise.
67762         * doc/posix-functions/putwc.texi: Likewise.
67763         * doc/posix-functions/swprintf.texi: Likewise.
67764         * doc/posix-functions/tolower.texi: Likewise.
67765         * doc/posix-functions/toupper.texi: Likewise.
67766         * doc/posix-functions/towctrans.texi: Likewise.
67767         * doc/posix-functions/ungetwc.texi: Likewise.
67768         * doc/posix-functions/vswprintf.texi: Likewise.
67769         * doc/posix-functions/wcrtomb.texi: Likewise.
67770         * doc/posix-functions/wcscat.texi: Likewise.
67771         * doc/posix-functions/wcschr.texi: Likewise.
67772         * doc/posix-functions/wcscmp.texi: Likewise.
67773         * doc/posix-functions/wcscoll.texi: Likewise.
67774         * doc/posix-functions/wcscpy.texi: Likewise.
67775         * doc/posix-functions/wcscspn.texi: Likewise.
67776         * doc/posix-functions/wcsftime.texi: Likewise.
67777         * doc/posix-functions/wcslen.texi: Likewise.
67778         * doc/posix-functions/wcsncat.texi: Likewise.
67779         * doc/posix-functions/wcsncmp.texi: Likewise.
67780         * doc/posix-functions/wcsncpy.texi: Likewise.
67781         * doc/posix-functions/wcspbrk.texi: Likewise.
67782         * doc/posix-functions/wcsrchr.texi: Likewise.
67783         * doc/posix-functions/wcsrtombs.texi: Likewise.
67784         * doc/posix-functions/wcsspn.texi: Likewise.
67785         * doc/posix-functions/wcsstr.texi: Likewise.
67786         * doc/posix-functions/wcstod.texi: Likewise.
67787         * doc/posix-functions/wcstof.texi: Likewise.
67788         * doc/posix-functions/wcstoimax.texi: Likewise.
67789         * doc/posix-functions/wcstok.texi: Likewise.
67790         * doc/posix-functions/wcstold.texi: Likewise.
67791         * doc/posix-functions/wcstoll.texi: Likewise.
67792         * doc/posix-functions/wcstol.texi: Likewise.
67793         * doc/posix-functions/wcstombs.texi: Likewise.
67794         * doc/posix-functions/wcstoull.texi: Likewise.
67795         * doc/posix-functions/wcstoul.texi: Likewise.
67796         * doc/posix-functions/wcstoumax.texi: Likewise.
67797         * doc/posix-functions/wcswidth.texi: Likewise.
67798         * doc/posix-functions/wcsxfrm.texi: Likewise.
67799         * doc/posix-functions/wctob.texi: Likewise.
67800         * doc/posix-functions/wctomb.texi: Likewise.
67801         * doc/posix-functions/wctrans.texi: Likewise.
67802         * doc/posix-functions/wctype.texi: Likewise.
67803         * doc/posix-functions/wcwidth.texi: Likewise.
67804         * doc/posix-functions/wmemchr.texi: Likewise.
67805         * doc/posix-functions/wmemcmp.texi: Likewise.
67806         * doc/posix-functions/wmemcpy.texi: Likewise.
67807         * doc/posix-functions/wmemmove.texi: Likewise.
67808         * doc/posix-functions/wmemset.texi: Likewise.
67809         * doc/posix-functions/wprintf.texi: Likewise.
67810         * doc/posix-functions/wscanf.texi: Likewise.
67812 2008-12-21  Bruno Haible  <bruno@clisp.org>
67814         Update doc for HP-UX 11.11.
67815         * doc/posix-functions/btowc.texi: Clarify that the function is missing
67816         in HP-UX version 11.00, not in all versions of HP-UX 11.
67817         * doc/posix-functions/fwide.texi: Likewise.
67818         * doc/posix-functions/fwprintf.texi: Likewise.
67819         * doc/posix-functions/fwscanf.texi: Likewise.
67820         * doc/posix-functions/inet_ntop.texi: Likewise.
67821         * doc/posix-functions/inet_pton.texi: Likewise.
67822         * doc/posix-functions/mbrlen.texi: Likewise.
67823         * doc/posix-functions/mbrtowc.texi: Likewise.
67824         * doc/posix-functions/mbsinit.texi: Likewise.
67825         * doc/posix-functions/mbsrtowcs.texi: Likewise.
67826         * doc/posix-functions/swprintf.texi: Likewise.
67827         * doc/posix-functions/swscanf.texi: Likewise.
67828         * doc/posix-functions/towctrans.texi: Likewise.
67829         * doc/posix-functions/vfwprintf.texi: Likewise.
67830         * doc/posix-functions/vswprintf.texi: Likewise.
67831         * doc/posix-functions/vwprintf.texi: Likewise.
67832         * doc/posix-functions/wcrtomb.texi: Likewise.
67833         * doc/posix-functions/wcsrtombs.texi: Likewise.
67834         * doc/posix-functions/wcsstr.texi: Likewise.
67835         * doc/posix-functions/wctob.texi: Likewise.
67836         * doc/posix-functions/wctrans.texi: Likewise.
67837         * doc/posix-functions/wmemchr.texi: Likewise.
67838         * doc/posix-functions/wmemcmp.texi: Likewise.
67839         * doc/posix-functions/wmemcpy.texi: Likewise.
67840         * doc/posix-functions/wmemmove.texi: Likewise.
67841         * doc/posix-functions/wmemset.texi: Likewise.
67842         * doc/posix-functions/wprintf.texi: Likewise.
67843         * doc/posix-functions/wscanf.texi: Likewise.
67845 2008-12-21  Bruno Haible  <bruno@clisp.org>
67847         Work around a portability problem.
67848         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
67849         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
67851 2008-12-20  Bruno Haible  <bruno@clisp.org>
67853         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
67854         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
67855         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
67856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
67857         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
67859         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
67860         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
67861         set.
67862         (GNULIB_defined_mbstate_t): New macro.
67863         (mbsinit): Redefine if REPLACE_MBSINIT is set.
67864         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
67865         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
67866         reuses the system's mbrtowc function but works around the bugs.
67867         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
67868         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
67869         macros.
67870         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
67871         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
67872         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
67873         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
67874         REPLACE_MBSINIT if mbsinit needs to be overridden.
67875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
67876         REPLACE_MBSINIT, REPLACE_MBRTOWC.
67877         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
67878         REPLACE_MBSINIT, REPLACE_MBRTOWC.
67879         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67880         m4/locale-zh.m4.
67881         (Depends): Add mbsinit.
67882         * modules/mbsinit (Depends): Add mbrtowc.
67883         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
67885 2008-12-20  Bruno Haible  <bruno@clisp.org>
67887         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
67888         so that there are no conversion errors on AIX.
67889         * tests/test-mbsrtowcs.c (main): LIkewise.
67891 2008-12-20  Bruno Haible  <bruno@clisp.org>
67893         Work around wctob bug on Solaris <= 9.
67894         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
67895         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
67896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
67897         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
67898         * modules/wctob (Files): Add m4/locale-fr.m4.
67899         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
67901 2008-12-20  Bruno Haible  <bruno@clisp.org>
67903         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
67904         /dev/null.
67905         * tests/test-select-in.sh: Likewise.
67906         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67908 2008-12-20  Bruno Haible  <bruno@clisp.org>
67910         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
67911         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
67912         Cygwin 1.5.x.
67914 2008-12-20  Bruno Haible  <bruno@clisp.org>
67916         Ensure mbstate_t is defined on HP-UX 11.11.
67917         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
67918         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
67919         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
67920         AC_USE_SYSTEM_EXTENSIONS.
67921         * modules/fnmatch (Depends-on): Add extensions.
67922         * modules/mbrlen (Depends-on): Likewise.
67923         * modules/mbrtowc (Depends-on): Likewise.
67924         * modules/mbsinit (Depends-on): Likewise.
67925         * modules/mbsrtowcs (Depends-on): Likewise.
67926         * modules/mbswidth (Depends-on): Likewise.
67927         * modules/quotearg (Depends-on): Likewise.
67928         * modules/strftime (Depends-on): Likewise.
67930 2008-12-20  Bruno Haible  <bruno@clisp.org>
67932         Ensure wctob is declared on IRIX 6.5.
67933         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
67934         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
67935         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
67936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
67937         of HAVE_WCTOB.
67938         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
67939         HAVE_WCTOB.
67940         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
67942 2008-12-19  Bruno Haible  <bruno@clisp.org>
67944         * modules/mbsrtowcs-tests: New file.
67945         * tests/test-mbsrtowcs1.sh: New file.
67946         * tests/test-mbsrtowcs2.sh: New file.
67947         * tests/test-mbsrtowcs3.sh: New file.
67948         * tests/test-mbsrtowcs4.sh: New file.
67949         * tests/test-mbsrtowcs.c: New file.
67951         New module 'mbsrtowcs'.
67952         * lib/wchar.in.h (mbsrtowcs): New declaration.
67953         * lib/mbsrtowcs.c: New file.
67954         * m4/mbsrtowcs.m4: New file.
67955         * modules/mbsrtowcs: New file.
67956         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
67957         HAVE_MBSRTOWCS.
67958         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
67959         HAVE_MBSRTOWCS.
67960         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
67962 2008-12-19  Bruno Haible  <bruno@clisp.org>
67964         New module 'mbrlen'.
67965         * lib/wchar.in.h (mbrlen): New declaration.
67966         * lib/mbrlen.c: New file.
67967         * m4/mbrlen.m4: New file.
67968         * modules/mbrlen: New file.
67969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
67970         HAVE_MBRLEN.
67971         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
67972         HAVE_MBRLEN.
67973         * doc/posix-functions/mbrlen.texi: Document the new module.
67975 2008-12-19  Bruno Haible  <bruno@clisp.org>
67977         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
67978         * modules/mbrtowc (Depends-on): Add verify.
67979         Suggested by Paul Eggert.
67981 2008-12-18  Bruno Haible  <bruno@clisp.org>
67983         * modules/mbsinit-tests: New file.
67984         * tests/test-mbsinit.sh: New file.
67985         * tests/test-mbsinit.c: New file.
67987 2008-12-18  Bruno Haible  <bruno@clisp.org>
67989         * modules/mbrtowc-tests: New file.
67990         * tests/test-mbrtowc1.sh: New file.
67991         * tests/test-mbrtowc2.sh: New file.
67992         * tests/test-mbrtowc3.sh: New file.
67993         * tests/test-mbrtowc4.sh: New file.
67994         * tests/test-mbrtowc.c: New file.
67996         New module 'mbrtowc'.
67997         * lib/wchar.in.h (mbstate_t): Override when the system does not have
67998         mbsinit and mbrtowc.
67999         (mbrtowc): New declaration.
68000         * lib/mbrtowc.c: New file.
68001         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
68002         * modules/mbrtowc: New file.
68003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
68004         HAVE_MBRTOWC.
68005         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
68006         HAVE_MBRTOWC.
68007         * doc/posix-functions/mbrtowc.texi: Document the new module.
68009 2008-12-18  Bruno Haible  <bruno@clisp.org>
68011         New module 'wctob'.
68012         * lib/wchar.in.h (wctob): New declaration.
68013         * lib/wctob.c: New file.
68014         * m4/wctob.m4: New file.
68015         * modules/wctob: New file.
68016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
68017         HAVE_WCTOB.
68018         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
68019         * doc/posix-functions/wctob.texi: Document the new module.
68021 2008-12-18  Bruno Haible  <bruno@clisp.org>
68023         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
68024         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
68026 2008-12-18  Simon Josefsson  <simon@josefsson.org>
68028         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
68029         G. Christensen" <tgc@jupiterrise.com>.
68031         * lib/flock.c: Need to include errno.h.  Reported by "Tom
68032         G. Christensen" <tgc@jupiterrise.com>.
68034         * lib/flock.c: Need to include string.h.  Reported by "Tom
68035         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
68036         <ebb9@byu.net>.
68038 2008-12-18  Bruno Haible  <bruno@clisp.org>
68040         * m4/locale-ja.m4: New file, from GNU gettext.
68042 2008-12-17  Bruno Haible  <bruno@clisp.org>
68044         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
68045         Suggested by Eric Blake.
68047 2008-12-17  Bruno Haible  <bruno@clisp.org>
68049         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
68051 2008-12-17  Bruno Haible  <bruno@clisp.org>
68053         * lib/mbsinit.c: Include verify.h. Verify an assumption.
68054         * modules/mbsinit (Depends-on): Add verify.
68055         Suggested by Paul Eggert.
68057 2008-12-17  Bruno Haible  <bruno@clisp.org>
68059         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
68060         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
68061         gl_FUNC_MBRTOWC.
68062         * m4/mbiter.m4 (gl_MBITER): LIkewise.
68063         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
68064         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
68065         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
68066         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
68067         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
68068         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
68069         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
68070         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
68071         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
68072         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
68073         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
68074         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
68075         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
68076         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
68077         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68078         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
68079         * modules/trim (configure.ac): Likewise.
68081 2008-12-17  Bruno Haible  <bruno@clisp.org>
68083         * modules/btowc-tests: New file.
68084         * tests/test-btowc1.sh: New file.
68085         * tests/test-btowc2.sh: New file.
68086         * tests/test-btowc.c: New file.
68088         New module 'btowc'.
68089         * lib/wchar.in.h (btowc): New declaration.
68090         * lib/btowc.c: New file.
68091         * m4/btowc.m4: New file.
68092         * modules/btowc: New file.
68093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
68094         HAVE_BTOWC.
68095         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
68096         * doc/posix-functions/btowc.texi: Document the new module.
68098 2008-12-17  Bruno Haible  <bruno@clisp.org>
68100         New module 'mbsinit'.
68101         * lib/wchar.in.h (mbsinit): New declaration.
68102         * lib/mbsinit.c: New file.
68103         * m4/mbsinit.m4: New file.
68104         * modules/mbsinit: New file.
68105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
68106         HAVE_MBSINIT.
68107         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
68108         HAVE_MBSINIT.
68109         * doc/posix-functions/mbsinit.texi: Document the new module.
68111 2008-12-16  Bruno Haible  <bruno@clisp.org>
68113         * lib/unistd.in.h: Add comment.
68114         * tests/test-environ.c: Don't include <stdlib.h>.
68116 2008-12-16  Bruno Haible  <bruno@clisp.org>
68118         * lib/parse-duration.h (parse_duration): Document return value
68119         convention.
68120         * lib/parse-duration.c: Include specification header first. Add
68121         comments.
68122         (_): Remove macro.
68123         (parse_year_month_day, parse_hour_minute_second): Move side effects
68124         outside of strchr call.
68125         (parse_non_iso8601): Move side effects outside of isspace call.
68126         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
68127         call.
68129 2008-12-16  Bruno Haible  <bruno@clisp.org>
68131         * tests/test-parse-duration.sh: Produce no output when the test
68132         succeeds.
68134 2008-12-16  Bruno Haible  <bruno@clisp.org>
68136         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
68137         expressions.
68139 2008-12-15  Bruno Haible  <bruno@clisp.org>
68141         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
68142         * doc/glibc-functions/flistxattr.texi: Likewise.
68143         * doc/glibc-functions/fopencookie.texi: Likewise.
68144         * doc/glibc-functions/fremovexattr.texi: Likewise.
68145         * doc/glibc-functions/fsetxattr.texi: Likewise.
68146         * doc/glibc-functions/getxattr.texi: Likewise.
68147         * doc/glibc-functions/lgetxattr.texi: Likewise.
68148         * doc/glibc-functions/listxattr.texi: Likewise.
68149         * doc/glibc-functions/llistxattr.texi: Likewise.
68150         * doc/glibc-functions/lremovexattr.texi: Likewise.
68151         * doc/glibc-functions/lsetxattr.texi: Likewise.
68152         * doc/glibc-functions/removexattr.texi: Likewise.
68153         * doc/glibc-functions/setxattr.texi: Likewise.
68154         * doc/posix-functions/open_memstream.texi: Likewise.
68156 2008-12-15  Eric Blake  <ebb9@byu.net>
68158         Update doc for cygwin 1.7.
68159         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
68160         functions.
68161         * doc/posix-functions/fchmodat.texi: Likewise.
68162         * doc/posix-functions/fchownat.texi: Likewise.
68163         * doc/posix-functions/fdopendir.texi: Likewise.
68164         * doc/posix-functions/fmemopen.texi: Likewise.
68165         * doc/posix-functions/freeaddrinfo.texi: Likewise.
68166         * doc/posix-functions/fstatat.texi: Likewise.
68167         * doc/posix-functions/futimens.texi: Likewise.
68168         * doc/posix-functions/gai_strerror.texi: Likewise.
68169         * doc/posix-functions/getaddrinfo.texi: Likewise.
68170         * doc/posix-functions/getnameinfo.texi: Likewise.
68171         * doc/posix-functions/if_freenameindex.texi: Likewise.
68172         * doc/posix-functions/if_indextoname.texi: Likewise.
68173         * doc/posix-functions/if_nameindex.texi: Likewise.
68174         * doc/posix-functions/if_nametoindex.texi: Likewise.
68175         * doc/posix-functions/insque.texi: Likewise.
68176         * doc/posix-functions/linkat.texi: Likewise.
68177         * doc/posix-functions/llrint.texi: Likewise.
68178         * doc/posix-functions/llrintf.texi: Likewise.
68179         * doc/posix-functions/llrintl.texi: Likewise.
68180         * doc/posix-functions/lockf.texi: Likewise.
68181         * doc/posix-functions/lrintl.texi: Likewise.
68182         * doc/posix-functions/mkdirat.texi: Likewise.
68183         * doc/posix-functions/mkfifoat.texi: Likewise.
68184         * doc/posix-functions/mknodat.texi: Likewise.
68185         * doc/posix-functions/mq_close.texi: Likewise.
68186         * doc/posix-functions/mq_getattr.texi: Likewise.
68187         * doc/posix-functions/mq_notify.texi: Likewise.
68188         * doc/posix-functions/mq_open.texi: Likewise.
68189         * doc/posix-functions/mq_receive.texi: Likewise.
68190         * doc/posix-functions/mq_send.texi: Likewise.
68191         * doc/posix-functions/mq_setattr.texi: Likewise.
68192         * doc/posix-functions/mq_timedreceive.texi: Likewise.
68193         * doc/posix-functions/mq_timedsend.texi: Likewise.
68194         * doc/posix-functions/mq_unlink.texi: Likewise.
68195         * doc/posix-functions/open_memstream.texi: Likewise.
68196         * doc/posix-functions/openat.texi: Likewise.
68197         * doc/posix-functions/posix_fadvise.texi: Likewise.
68198         * doc/posix-functions/posix_fallocate.texi: Likewise.
68199         * doc/posix-functions/posix_madvise.texi: Likewise.
68200         * doc/posix-functions/posix_memalign.texi: Likewise.
68201         * doc/posix-functions/posix_openpt.texi: Likewise.
68202         * doc/posix-functions/readlinkat.texi: Likewise.
68203         * doc/posix-functions/remque.texi: Likewise.
68204         * doc/posix-functions/renameat.texi: Likewise.
68205         * doc/posix-functions/rintl.texi: Likewise.
68206         * doc/posix-functions/sem_unlink.texi: Likewise.
68207         * doc/posix-functions/shm_open.texi: Likewise.
68208         * doc/posix-functions/shm_unlink.texi: Likewise.
68209         * doc/posix-functions/signgam.texi: Likewise.
68210         * doc/posix-functions/sigset.texi: Likewise.
68211         * doc/posix-functions/stpcpy.texi: Likewise.
68212         * doc/posix-functions/stpncpy.texi: Likewise.
68213         * doc/posix-functions/strerror.texi: Likewise.
68214         * doc/posix-functions/strtod.texi: Likewise.
68215         * doc/posix-functions/symlinkat.texi: Likewise.
68216         * doc/posix-functions/unlinkat.texi: Likewise.
68217         * doc/posix-functions/utimensat.texi: Likewise.
68218         * doc/glibc-functions/bindresvport.texi: Likewise.
68219         * doc/glibc-functions/dn_expand.texi: Likewise.
68220         * doc/glibc-functions/exp10.texi: Likewise.
68221         * doc/glibc-functions/exp10f.texi: Likewise.
68222         * doc/glibc-functions/fgetxattr.texi: Likewise.
68223         * doc/glibc-functions/flistxattr.texi: Likewise.
68224         * doc/glibc-functions/fopencookie.texi: Likewise.
68225         * doc/glibc-functions/freeifaddrs.texi: Likewise.
68226         * doc/glibc-functions/fremovexattr.texi: Likewise.
68227         * doc/glibc-functions/fsetxattr.texi: Likewise.
68228         * doc/glibc-functions/getifaddrs.texi: Likewise.
68229         * doc/glibc-functions/getxattr.texi: Likewise.
68230         * doc/glibc-functions/lgetxattr.texi: Likewise.
68231         * doc/glibc-functions/listxattr.texi: Likewise.
68232         * doc/glibc-functions/llistxattr.texi: Likewise.
68233         * doc/glibc-functions/lremovexattr.texi: Likewise.
68234         * doc/glibc-functions/lsetxattr.texi: Likewise.
68235         * doc/glibc-functions/pow10.texi: Likewise.
68236         * doc/glibc-functions/pow10f.texi: Likewise.
68237         * doc/glibc-functions/rcmd_af.texi: Likewise.
68238         * doc/glibc-functions/removexattr.texi: Likewise.
68239         * doc/glibc-functions/res_init.texi: Likewise.
68240         * doc/glibc-functions/res_mkquery.texi: Likewise.
68241         * doc/glibc-functions/res_query.texi: Likewise.
68242         * doc/glibc-functions/res_querydomain.texi: Likewise.
68243         * doc/glibc-functions/res_send.texi: Likewise.
68244         * doc/glibc-functions/rresvport_af.texi: Likewise.
68245         * doc/glibc-functions/setxattr.texi: Likewise.
68246         * doc/glibc-functions/strcasestr.texi: Likewise.
68248 2008-12-15  Bruno Haible  <bruno@clisp.org>
68250         Fix compilation error on OSF/1 4.0.
68251         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
68252         <sys/time.h>, simply delegate to the system header.
68253         Reported by Daniel Richard G. <oss@teragram.com>.
68255 2008-12-15  Bruno Haible  <bruno@clisp.org>
68257         * doc/posix-functions/openat.texi: Mention the 'openat' module.
68258         * doc/posix-functions/fchmodat.texi: Likewise.
68259         * doc/posix-functions/fchownat.texi: Likewise.
68260         * doc/posix-functions/fdopendir.texi: Likewise.
68261         * doc/posix-functions/fstatat.texi: Likewise.
68262         * doc/posix-functions/mkdirat.texi: Likewise.
68263         * doc/posix-functions/unlinkat.texi: Likewise.
68265 2008-12-14  Bruno Haible  <bruno@clisp.org>
68267         Update doc for POSIX:2008.
68268         * doc/posix-functions/faccessat.texi: New file.
68269         * doc/posix-functions/fchmodat.texi: New file.
68270         * doc/posix-functions/fchownat.texi: New file.
68271         * doc/posix-functions/fdopendir.texi: New file.
68272         * doc/posix-functions/fstatat.texi: New file.
68273         * doc/posix-functions/futimens.texi: New file.
68274         * doc/posix-functions/linkat.texi: New file.
68275         * doc/posix-functions/mkdirat.texi: New file.
68276         * doc/posix-functions/mkfifoat.texi: New file.
68277         * doc/posix-functions/mknodat.texi: New file.
68278         * doc/posix-functions/open_wmemstream.texi: New file.
68279         * doc/posix-functions/openat.texi: New file.
68280         * doc/posix-functions/psiginfo.texi: New file.
68281         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
68282         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
68283         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
68284         * doc/posix-functions/readlinkat.texi: New file.
68285         * doc/posix-functions/renameat.texi: New file.
68286         * doc/posix-functions/strerror_l.texi: New file.
68287         * doc/posix-functions/symlinkat.texi: New file.
68288         * doc/posix-functions/unlinkat.texi: New file.
68289         * doc/posix-functions/utimensat.texi: New file.
68290         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68292 2008-12-14  Bruno Haible  <bruno@clisp.org>
68294         Update doc for POSIX:2008.
68295         * doc/posix-functions/alphasort.texi: Renamed from
68296         doc/glibc-functions/alphasort.texi.
68297         * doc/posix-functions/dirfd.texi: Renamed from
68298         doc/glibc-functions/dirfd.texi.
68299         * doc/posix-functions/dprintf.texi: Renamed from
68300         doc/glibc-functions/dprintf.texi.
68301         * doc/posix-functions/duplocale.texi: Renamed from
68302         doc/glibc-functions/duplocale.texi.
68303         * doc/posix-functions/fexecve.texi: Renamed from
68304         doc/glibc-functions/fexecve.texi.
68305         * doc/posix-functions/fmemopen.texi: Renamed from
68306         doc/glibc-functions/fmemopen.texi.
68307         * doc/posix-functions/freelocale.texi: Renamed from
68308         doc/glibc-functions/freelocale.texi.
68309         * doc/posix-functions/getdate_err.texi: Renamed from
68310         doc/glibc-functions/getdate_err.texi.
68311         * doc/posix-functions/isalnum_l.texi: Renamed from
68312         doc/glibc-functions/isalnum_l.texi.
68313         * doc/posix-functions/isalpha_l.texi: Renamed from
68314         doc/glibc-functions/isalpha_l.texi.
68315         * doc/posix-functions/isblank_l.texi: Renamed from
68316         doc/glibc-functions/isblank_l.texi.
68317         * doc/posix-functions/iscntrl_l.texi: Renamed from
68318         doc/glibc-functions/iscntrl_l.texi.
68319         * doc/posix-functions/isdigit_l.texi: Renamed from
68320         doc/glibc-functions/isdigit_l.texi.
68321         * doc/posix-functions/isgraph_l.texi: Renamed from
68322         doc/glibc-functions/isgraph_l.texi.
68323         * doc/posix-functions/islower_l.texi: Renamed from
68324         doc/glibc-functions/islower_l.texi.
68325         * doc/posix-functions/isprint_l.texi: Renamed from
68326         doc/glibc-functions/isprint_l.texi.
68327         * doc/posix-functions/ispunct_l.texi: Renamed from
68328         doc/glibc-functions/ispunct_l.texi.
68329         * doc/posix-functions/isspace_l.texi: Renamed from
68330         doc/glibc-functions/isspace_l.texi.
68331         * doc/posix-functions/isupper_l.texi: Renamed from
68332         doc/glibc-functions/isupper_l.texi.
68333         * doc/posix-functions/iswalnum_l.texi: Renamed from
68334         doc/glibc-functions/iswalnum_l.texi.
68335         * doc/posix-functions/iswalpha_l.texi: Renamed from
68336         doc/glibc-functions/iswalpha_l.texi.
68337         * doc/posix-functions/iswblank_l.texi: Renamed from
68338         doc/glibc-functions/iswblank_l.texi.
68339         * doc/posix-functions/iswcntrl_l.texi: Renamed from
68340         doc/glibc-functions/iswcntrl_l.texi.
68341         * doc/posix-functions/iswctype_l.texi: Renamed from
68342         doc/glibc-functions/iswctype_l.texi.
68343         * doc/posix-functions/iswdigit_l.texi: Renamed from
68344         doc/glibc-functions/iswdigit_l.texi.
68345         * doc/posix-functions/iswgraph_l.texi: Renamed from
68346         doc/glibc-functions/iswgraph_l.texi.
68347         * doc/posix-functions/iswlower_l.texi: Renamed from
68348         doc/glibc-functions/iswlower_l.texi.
68349         * doc/posix-functions/iswprint_l.texi: Renamed from
68350         doc/glibc-functions/iswprint_l.texi.
68351         * doc/posix-functions/iswpunct_l.texi: Renamed from
68352         doc/glibc-functions/iswpunct_l.texi.
68353         * doc/posix-functions/iswspace_l.texi: Renamed from
68354         doc/glibc-functions/iswspace_l.texi.
68355         * doc/posix-functions/iswupper_l.texi: Renamed from
68356         doc/glibc-functions/iswupper_l.texi.
68357         * doc/posix-functions/iswxdigit_l.texi: Renamed from
68358         doc/glibc-functions/iswxdigit_l.texi.
68359         * doc/posix-functions/isxdigit_l.texi: Renamed from
68360         doc/glibc-functions/isxdigit_l.texi.
68361         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
68362         doc/glibc-functions/mbsnrtowcs.texi.
68363         * doc/posix-functions/mkdtemp.texi: Renamed from
68364         doc/glibc-functions/mkdtemp.texi.
68365         * doc/posix-functions/newlocale.texi: Renamed from
68366         doc/glibc-functions/newlocale.texi.
68367         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
68368         doc/glibc-functions/nl_langinfo_l.texi.
68369         * doc/posix-functions/open_memstream.texi: Renamed from
68370         doc/glibc-functions/open_memstream.texi.
68371         * doc/posix-functions/opterr.texi: Renamed from
68372         doc/glibc-functions/opterr.texi.
68373         * doc/posix-functions/optind.texi: Renamed from
68374         doc/glibc-functions/optind.texi.
68375         * doc/posix-functions/optopt.texi: Renamed from
68376         doc/glibc-functions/optopt.texi.
68377         * doc/posix-functions/psignal.texi: Renamed from
68378         doc/glibc-functions/psignal.texi.
68379         * doc/posix-functions/scandir.texi: Renamed from
68380         doc/glibc-functions/scandir.texi.
68381         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
68382         doc/glibc-functions/sched_get_priority_min.texi.
68383         * doc/posix-functions/signgam.texi: Renamed from
68384         doc/glibc-functions/signgam.texi.
68385         * doc/posix-functions/stpcpy.texi: Renamed from
68386         doc/glibc-functions/stpcpy.texi.
68387         * doc/posix-functions/stpncpy.texi: Renamed from
68388         doc/glibc-functions/stpncpy.texi.
68389         * doc/posix-functions/strcasecmp_l.texi: Renamed from
68390         doc/glibc-functions/strcasecmp_l.texi.
68391         * doc/posix-functions/strcoll_l.texi: Renamed from
68392         doc/glibc-functions/strcoll_l.texi.
68393         * doc/posix-functions/strfmon_l.texi: Renamed from
68394         doc/glibc-functions/strfmon_l.texi.
68395         * doc/posix-functions/strftime_l.texi: Renamed from
68396         doc/glibc-functions/strftime_l.texi.
68397         * doc/posix-functions/strncasecmp_l.texi: Renamed from
68398         doc/glibc-functions/strncasecmp_l.texi.
68399         * doc/posix-functions/strndup.texi: Renamed from
68400         doc/glibc-functions/strndup.texi.
68401         * doc/posix-functions/strnlen.texi: Renamed from
68402         doc/glibc-functions/strnlen.texi.
68403         * doc/posix-functions/strsignal.texi: Renamed from
68404         doc/glibc-functions/strsignal.texi.
68405         * doc/posix-functions/strxfrm_l.texi: Renamed from
68406         doc/glibc-functions/strxfrm_l.texi.
68407         * doc/posix-functions/timer_gettime.texi: Renamed from
68408         doc/glibc-functions/timer_gettime.texi.
68409         * doc/posix-functions/tolower_l.texi: Renamed from
68410         doc/glibc-functions/tolower_l.texi.
68411         * doc/posix-functions/toupper_l.texi: Renamed from
68412         doc/glibc-functions/toupper_l.texi.
68413         * doc/posix-functions/towctrans_l.texi: Renamed from
68414         doc/glibc-functions/towctrans_l.texi.
68415         * doc/posix-functions/towlower_l.texi: Renamed from
68416         doc/glibc-functions/towlower_l.texi.
68417         * doc/posix-functions/towupper_l.texi: Renamed from
68418         doc/glibc-functions/towupper_l.texi.
68419         * doc/posix-functions/uselocale.texi: Renamed from
68420         doc/glibc-functions/uselocale.texi.
68421         * doc/posix-functions/vdprintf.texi: Renamed from
68422         doc/glibc-functions/vdprintf.texi.
68423         * doc/posix-functions/wcpcpy.texi:
68424         Renamed from doc/glibc-functions/wcpcpy.texi.
68425         * doc/posix-functions/wcpncpy.texi: Renamed from
68426         doc/glibc-functions/wcpncpy.texi.
68427         * doc/posix-functions/wcscasecmp.texi: Renamed from
68428         doc/glibc-functions/wcscasecmp.texi.
68429         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
68430         doc/glibc-functions/wcscasecmp_l.texi.
68431         * doc/posix-functions/wcscoll_l.texi: Renamed from
68432         doc/glibc-functions/wcscoll_l.texi.
68433         * doc/posix-functions/wcsdup.texi: Renamed from
68434         doc/glibc-functions/wcsdup.texi.
68435         * doc/posix-functions/wcsncasecmp.texi: Renamed from
68436         doc/glibc-functions/wcsncasecmp.texi.
68437         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
68438         doc/glibc-functions/wcsncasecmp_l.texi.
68439         * doc/posix-functions/wcsnlen.texi: Renamed from
68440         doc/glibc-functions/wcsnlen.texi.
68441         * doc/posix-functions/wcsnrtombs.texi: Renamed from
68442         doc/glibc-functions/wcsnrtombs.texi.
68443         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
68444         doc/glibc-functions/wcsxfrm_l.texi.
68445         * doc/posix-functions/wctrans_l.texi: Renamed from
68446         doc/glibc-functions/wctrans_l.texi.
68447         * doc/posix-functions/wctype_l.texi: Renamed from
68448         doc/glibc-functions/wctype_l.texi.
68449         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68450         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
68451         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
68452         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
68453         these subsections.
68454         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
68455         Remove sections.
68457 2008-12-14  Bruno Haible  <bruno@clisp.org>
68459         Update doc for POSIX:2008.
68460         * doc/posix-functions/*.texi: Update URL of POSIX specification.
68462 2008-12-14  Bruno Haible  <bruno@clisp.org>
68464         Update doc for POSIX:2008.
68465         * doc/pastposix-functions/bcmp.texi: Renamed from
68466         doc/posix-functions/bcmp.texi.
68467         * doc/pastposix-functions/bcopy.texi: Renamed from
68468         doc/posix-functions/bcopy.texi.
68469         * doc/pastposix-functions/bsd_signal.texi: Renamed from
68470         doc/posix-functions/bsd_signal.texi.
68471         * doc/pastposix-functions/bzero.texi: Renamed from
68472         doc/posix-functions/bzero.texi.
68473         * doc/pastposix-functions/ecvt.texi: Renamed from
68474         doc/posix-functions/ecvt.texi.
68475         * doc/pastposix-functions/fcvt.texi: Renamed from
68476         doc/posix-functions/fcvt.texi.
68477         * doc/pastposix-functions/ftime.texi: Renamed from
68478         doc/posix-functions/ftime.texi.
68479         * doc/pastposix-functions/gcvt.texi: Renamed from
68480         doc/posix-functions/gcvt.texi.
68481         * doc/pastposix-functions/getcontext.texi: Renamed from
68482         doc/posix-functions/getcontext.texi.
68483         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
68484         doc/posix-functions/gethostbyaddr.texi.
68485         * doc/pastposix-functions/gethostbyname.texi: Renamed from
68486         doc/posix-functions/gethostbyname.texi.
68487         * doc/pastposix-functions/getwd.texi: Renamed from
68488         doc/posix-functions/getwd.texi.
68489         * doc/pastposix-functions/h_errno.texi: Renamed from
68490         doc/posix-functions/h_errno.texi.
68491         * doc/pastposix-functions/index.texi: Renamed from
68492         doc/posix-functions/index.texi.
68493         * doc/pastposix-functions/makecontext.texi: Renamed from
68494         doc/posix-functions/makecontext.texi.
68495         * doc/pastposix-functions/mktemp.texi: Renamed from
68496         doc/posix-functions/mktemp.texi.
68497         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
68498         doc/posix-functions/pthread_attr_getstackaddr.texi.
68499         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
68500         doc/posix-functions/pthread_attr_setstackaddr.texi.
68501         * doc/pastposix-functions/rindex.texi: Renamed from
68502         doc/posix-functions/rindex.texi.
68503         * doc/pastposix-functions/scalb.texi: Renamed from
68504         doc/posix-functions/scalb.texi.
68505         * doc/pastposix-functions/setcontext.texi: Renamed from
68506         doc/posix-functions/setcontext.texi.
68507         * doc/pastposix-functions/swapcontext.texi: Renamed from
68508         doc/posix-functions/swapcontext.texi.
68509         * doc/pastposix-functions/ualarm.texi: Renamed from
68510         doc/posix-functions/ualarm.texi.
68511         * doc/pastposix-functions/usleep.texi: Renamed from
68512         doc/posix-functions/usleep.texi.
68513         * doc/pastposix-functions/vfork.texi: Renamed from
68514         doc/posix-functions/vfork.texi.
68515         * doc/pastposix-functions/wcswcs.texi: Renamed from
68516         doc/posix-functions/wcswcs.texi.
68517         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
68518         (Function Substitutes): Update.
68520 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68522         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
68523         m4/strerror.m4.
68525 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68526             Bruno Haible  <bruno@clisp.org>
68528         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
68530 2008-12-13  Bruno Haible  <bruno@clisp.org>
68532         * modules/strtoull (Depends-on): Remove unistd.
68534 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68536         * modules/strtoull (Depends-on): Add stdlib.
68538 2008-12-11  Simon Josefsson  <simon@josefsson.org>
68540         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
68542 2008-12-10  Jim Meyering  <meyering@redhat.com>
68544         gl_ASSERT: don't say assertions are disabled when they're not
68545         * m4/assert.m4 (gl_ASSERT): Do not make configure report
68546         "checking whether to enable assertions... no", when they are in
68547         fact enabled.  This is solely a bug in the output of configure.
68548         In spite of saying "no", NDEBUG was not defined in that case.
68549         Also, as noted by Eric Blake, leave assertions enabled upon
68550         --enable-assert=INVALID.
68552 2008-12-10  Bruno Haible  <bruno@clisp.org>
68554         Change MODULES.html to refer to POSIX:2008 where possible.
68555         * MODULES.html.sh (POSIX2008_URL): New variable.
68556         (posix_headers): Remove sys/timeb, ucontext.
68557         (posix2001_headers): New variable.
68558         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
68559         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
68560         index, makecontext, mktemp, pthread_attr_getstackaddr,
68561         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
68562         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
68563         (posix2001_functions): New variable.
68564         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
68565         otherwise.
68567 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68569         add missing include to parse-duration.c
68570         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
68571         * modules/parse-duration (Depends-on): Add xalloc.
68573         fix sed script reading maint.mk
68574         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
68575         (syntax-check-rules): Use it.
68577 2008-12-09  Bruno Haible  <bruno@clisp.org>
68579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
68580         MacOS X 10.4/PowerPC.
68581         Reported by Simon Josefsson.
68583 2008-12-08  Jim Meyering  <meyering@redhat.com>
68585         work around mingw's lack of some S_IF definitions
68586         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
68587         Reported by Simon Josefsson.
68589 2008-12-08  Bruno Haible  <bruno@clisp.org>
68591         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
68592         applied to variables. Needed on MacOS X 10.4/PowerPC.
68593         Reported by Simon Josefsson.
68595 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
68596         and Eric Blake  <ebb9@byu.net>
68598         assert: honor --enable-assert
68599         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
68600         order to honor --enable-assert, rather than treating it as a
68601         synonym for --disable-assert.
68603 2008-12-08  Jim Meyering  <meyering@redhat.com>
68605         * lib/posixtm.c: Remove now-useless declaration of mktime.
68607         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
68609 2008-12-07  Bruno Haible  <bruno@clisp.org>
68611         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
68612         test_once): Mark functions as static.
68613         * tests/test-tls.c (test_tls): Likewise.
68615 2008-12-07  Bruno Haible  <bruno@clisp.org>
68617         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
68618         iconv_register_autodetect.
68620 2008-12-07  Jim Meyering  <meyering@redhat.com>
68622         posixtm.c: avoid a warning
68623         * lib/posixtm.c (posixtime): Don't initialize tm0.
68624         It's no longer needed to placate gcc4's -Wuninitialized,
68625         and the attempt to placate would elicit a new warning.
68627         unicodeio.c: mark unused parameters
68628         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
68629         (fallback_failure_callback): Likewise.
68631 2008-12-07  Bruno Haible  <bruno@clisp.org>
68633         * gnulib-tool (func_create_testdir): When building the tests
68634         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
68635         Reported by Simon Josefsson.
68637 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68639         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
68641 2008-12-06  Bruno Haible  <bruno@clisp.org>
68643         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
68644         Suggested by Eric Blake.
68646 2008-12-06  Bruno Haible  <bruno@clisp.org>
68648         Fix a c-stack test failure on MacOS X.
68649         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
68650         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
68651         handler for SIGBUS as well.
68652         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
68653         install a signal handler for SIGBUS as well.
68654         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
68656 2008-12-06  Bruno Haible  <bruno@clisp.org>
68658         Advocacy documentation.
68659         * doc/gnulib-intro.texi (Benefits): New section.
68660         * doc/gnulib.texi: Update.
68662 2008-12-06  Bruno Haible  <bruno@clisp.org>
68664         Document the 'manywarnings' module.
68665         * doc/manywarnings.texi: New file.
68666         * doc/gnulib.texi: Include it.
68668 2008-12-05  Eric Blake  <ebb9@byu.net>
68670         tests: silence some gcc warnings
68671         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
68672         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
68673         type mismatches.
68675 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68676             Bruno Haible  <bruno@clisp.org>
68678         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
68680 2008-11-29  Jim Meyering  <meyering@redhat.com>
68682         unicodeio.c: mark unused parameters
68683         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
68684         (fallback_failure_callback): Likewise.
68686         fts: fix a thinko
68687         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
68688         (set_stat_type): Return S_IF*-valued "type" directly.
68689         Prompted by James Youngman's spotting a related bug.
68690         Confirmed by further testing through find.
68692         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
68693         * lib/fts.c (D_TYPE): Define.
68694         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
68695         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
68696         (s_ifmt_shift_bits): New function.
68697         (set_stat_type): New function.
68698         (fts_build): When not calling fts_stat, call set_stat_type
68699         to propagate dirent.d_type info to fts_read caller.
68700         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
68701         fts_statp->st_mode type information may be valid.
68703 2008-11-28  Simon Josefsson  <simon@josefsson.org>
68705         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
68706         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
68707         <sds@gnu.org>.
68709 2008-11-20  Bruno Haible  <bruno@clisp.org>
68711         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
68712         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
68713         INCLUDE_NEXT.
68714         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
68715         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
68716         * modules/math (Makefile.am): Substitute
68717         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
68718         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68720 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
68721             Bruno Haible  <bruno@clisp.org>
68723         * lib/stdint.in.h: Define all type macros so that their expansion is
68724         a single typedef'ed token. Fixes a compilation failure in Boost which
68725         does "using ::int8_t;".
68727 2008-11-18  Simon Josefsson  <simon@josefsson.org>
68729         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
68730         gl_MANYWARN_ALL_GCC.
68731         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
68732         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
68733         * modules/manywarnings: New file.
68734         * MODULES.html.sh: Mention manywarnings module.
68736 2008-11-18  Bruno Haible  <bruno@clisp.org>
68738         * doc/gnulib-tool.texi (Unit tests): New section.
68740 2008-11-18  Simon Josefsson  <simon@josefsson.org>
68742         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
68743         paths like 'lib/po/foo.po'.
68745 2008-11-17  Simon Josefsson  <simon@josefsson.org>
68747         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
68748         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
68750 2008-11-17  Simon Josefsson  <simon@josefsson.org>
68752         * m4/warnings.m4: Use CPPFLAGS to really check whether the
68753         parameter works.
68755 2008-11-17  Simon Josefsson  <simon@josefsson.org>
68757         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
68759 2008-11-17  Bruce Korb  <bkorb@gnu.org>
68761         * modules/parse-duration-tests: New file.
68762         * tests/test-parse-duration.sh: New file.
68763         * tests/test-parse-duration.c: New file.
68765         New module 'parse-duration'.
68766         * lib/parse-duration.h: New file.
68767         * lib/parse-duration.c: New file.
68768         * modules/parse-duration: New file.
68770 2008-11-17  Bruno Haible  <bruno@clisp.org>
68772         * tests/test-select-out.sh: Comment out the first pipe test.
68773         Reported by Simon Josefsson.
68775 2008-11-17  Bruno Haible  <bruno@clisp.org>
68777         * modules/getaddrinfo (Depends-on): Add servent, hostent.
68778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
68779         gl_HOSTENT.
68781 2008-11-17  Bruno Haible  <bruno@clisp.org>
68783         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
68784         -lnetwork and -lnet. Needed for Haiku and BeOS.
68786 2008-11-16  Bruno Haible  <bruno@clisp.org>
68788         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
68790 2008-11-16  Bruno Haible  <bruno@clisp.org>
68792         Avoid test failure on Haiku.
68793         * tests/test-fsync.c: Include <errno.h>.
68794         (main): Don't require that fsync (0) fails.
68796 2008-11-15  Bruno Haible  <bruno@clisp.org>
68798         New module 'hostent'.
68799         * modules/hostent: New file.
68800         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
68802 2008-11-15  Bruno Haible  <bruno@clisp.org>
68804         New module 'servent'.
68805         * modules/servent: New file.
68806         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
68808 2008-11-15  Bruno Haible  <bruno@clisp.org>
68810         Avoid generating same test program with two different rules.
68811         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
68812         test-frexp to test-frexp-nolibm.
68813         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
68814         test-frexpl to test-frexpl-nolibm.
68816 2008-11-15  Bruno Haible  <bruno@clisp.org>
68818         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
68819         $(FREXPL_LIBM).
68821 2008-11-15  Bruno Haible  <bruno@clisp.org>
68823         * lib/netdb.in.h: Activate the definitions also when the system's
68824         <netdb.h> has 'struct addrinfo'.
68825         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
68826         EAI_OVERFLOW or AI_NUMERICSERV.
68827         * doc/posix-headers/netdb.texi: Document the problem.
68829 2008-11-15  Bruno Haible  <bruno@clisp.org>
68831         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
68833         Make the 'sched' module work on platforms where <sched.h> exists but
68834         is incomplete (such as Haiku).
68835         * lib/sched.in.h; Include the system's <sched.h> if it exists.
68836         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
68837         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
68838         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
68839         HAVE_STRUCT_SCHED_PARAM.
68840         * modules/sched (Depends-on): Add include_next.
68841         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
68842         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
68843         * doc/posix-headers/sched.texi: Document the issue.
68845 2008-11-13  Jim Meyering  <meyering@redhat.com>
68847         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
68848         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
68849         test would fail due to the difference in the Report bugs to ...
68850         line.  The expected address is empty, "<>", while the actual
68851         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
68853 2008-11-12  Bruno Haible  <bruno@clisp.org>
68855         lstat: don't compile lstat.c on systems lacking lstat
68856         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
68857         which don't have lstat; this is handled by lib/sys_stat.in.h already.
68858         Reported by Daniel P. Berrange via Jim Meyering.
68860 2008-11-12  Jim Meyering  <meyering@redhat.com>
68862         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
68864 2008-11-12  Simon Josefsson  <simon@josefsson.org>
68866         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
68867         instead.
68869 2008-11-12  Bruno Haible  <bruno@clisp.org>
68871         * lib/unicodeio.c: Include unistr.h.
68872         (utf8_wctomb): Remove function.
68873         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
68875 2008-11-12  Simon Josefsson  <simon@josefsson.org>
68877         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
68878         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
68879         <bruno@clisp.org>.
68880         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
68882 2008-11-12  Simon Josefsson  <simon@josefsson.org>
68884         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
68885         * doc/gnulib.texi: Add section for warnings.
68887 2008-11-11  Bruno Haible  <bruno@clisp.org>
68889         * lib/sockets.h: Add a comment.
68891 2008-11-11  Karl Berry  <karl@gnu.org>
68893         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
68895 2008-11-11  Eric Blake  <ebb9@byu.net>
68897         fdl.texi: avoid git symlinks
68898         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
68900 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68902         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
68904 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68906         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
68907         (gl_WARN_ADD): Substitute $2 if literal.
68909 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68911         * m4/warning.m4: Remove.
68913 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68915         * m4/warnings.m4: Almost complete rewrite. :-)
68917 2008-11-10  Simon Josefsson  <simon@josefsson.org>
68919         * modules/warnings: New module.
68920         * m4/warnings.m4: New file.
68921         * MODULES.html.sh: Mention warnings module.
68922         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
68923         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68925 2008-11-10  Eric Blake  <ebb9@byu.net>
68927         fdl.texi: make a symlink to the latest version
68928         * doc/standards.texi: Revert today's earlier change.
68929         * doc/fdl-1.2.texi: Rename from old fdl.texi...
68930         * doc/fdl.texi: ...and replace this with a symlink to the newer
68931         fdl-1.3.texi.
68933 2008-11-10  Bruno Haible  <bruno@clisp.org>
68935         * tests/test-select-fd.c (main): Accept the result file name as fourth
68936         argument.
68937         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
68938         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
68940 2008-11-10  Bruno Haible  <bruno@clisp.org>
68942         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
68943         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
68944         as autoconf-substituted macros.
68945         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
68946         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
68947         gl_NETDB_H_DEFAULTS. Set these variables.
68948         * modules/netdb (Makefile.am): Substitute these variables.
68950 2008-11-10  Eric Blake  <ebb9@byu.net>
68952         standards.texi: include correct file for FDL 1.3
68953         * doc/standards.texi (GNU Free Documentation License): Change
68954         include file to pull in FDL 1.3, not 1.2.
68956         fdl.texi: revert accidental change to license
68957         * doc/fdl.texi: This is FDL 1.2, not 1.3.
68959 2008-11-10  Bruno Haible  <bruno@clisp.org>
68961         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
68962         cross-compiling guesses also when the native compile gives no result.
68964 2008-11-10  Bruno Haible  <bruno@clisp.org>
68966         * lib/spawni.c (__spawni): Force variable into the stack.
68968 2008-11-10  Bruno Haible  <bruno@clisp.org>
68970         Add support for Haiku.
68971         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
68972         glibc and BeOS, but also on Haiku.
68973         * lib/fpurge.c (fpurge): Likewise.
68974         * lib/freadable.c (freadable): Likewise.
68975         * lib/freadahead.c (freadahead): Likewise.
68976         * lib/freading.c (freading): Likewise.
68977         * lib/freadptr.c (freadptr): Likewise.
68978         * lib/freadseek.c (freadptrinc): Likewise.
68979         * lib/fseeko.c (rpl_fseeko): Likewise.
68980         * lib/fseterr.c (fseterr): Likewise.
68981         * lib/fwritable.c (fwritable): Likewise.
68982         * lib/fwriting.c (fwriting): Likewise.
68983         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
68985 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
68987         * lib/config.charset: Treat Haiku like BeOS.
68989 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
68991         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
68992         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
68994 2008-11-08  Bruno Haible  <bruno@clisp.org>
68996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
68997         AC_CACHE_CHECK.
68999 2008-11-08  Bruno Haible  <bruno@clisp.org>
69001         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
69003 2008-11-08  Bruno Haible  <bruno@clisp.org>
69005         * tests/test-select-fd.c: New file.
69006         * tests/test-select-in.sh: New file.
69007         * tests/test-select-out.sh: New file.
69008         * tests/test-select-stdin.c: New file.
69009         * modules/select-tests (Files): Add the new files.
69010         (Depends-on): Add gettimeofday.
69011         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
69012         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
69013         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
69015 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
69016             Bruno Haible  <bruno@clisp.org>
69018         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
69020 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
69022         * build-aux/pmccabe2html: Added support for C++ source files.
69024 2008-11-05  Ben Pfaff  <blp@gnu.org>
69026         Fix lib/close.c build on Windows.
69027         * modules/close (Files): Add lib/w32sock.h.
69029 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
69031         Accept Bison's NEWS format.
69032         * build-aux/announce-gen (print_news_deltas): Tweak
69033         $re_prefix.
69035 2008-11-04  Bruno Haible  <bruno@clisp.org>
69037         * modules/random_r (Maintainer): Add glibc.
69039 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69041         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
69042         by karl@freefriends.org (Karl Berry).
69043         * doc/alloca.texi: Likewise.
69044         * doc/c-ctype.texi: Likewise.
69045         * doc/c-strcase.texi: Likewise.
69046         * doc/c-strcaseeq.texi: Likewise.
69047         * doc/c-strcasestr.texi: Likewise.
69048         * doc/c-strstr.texi: Likewise.
69049         * doc/c-strtod.texi: Likewise.
69050         * doc/c-strtold.texi: Likewise.
69051         * doc/ctime.texi: Likewise.
69052         * doc/error.texi: Likewise.
69053         * doc/fdl.texi: Likewise.
69054         * doc/gcd.texi: Likewise.
69055         * doc/getdate.texi: Likewise.
69056         * doc/gnulib-intro.texi: Likewise.
69057         * doc/gnulib-tool.texi: Likewise.
69058         * doc/gnulib.texi: Likewise.
69059         * doc/inet_ntoa.texi: Likewise.
69060         * doc/maintain.texi: Likewise.
69061         * doc/make-stds.texi: Likewise.
69062         * doc/quote.texi: Likewise.
69063         * doc/regexprops-generic.texi: Likewise.
69064         * doc/standards.texi: Likewise.
69065         * doc/verify.texi: Likewise.
69066         * doc/visibility.texi: Likewise.
69067         * doc/gnulib.texi (GNU Free Documentation License): Include
69068         fdl-1.3.texi instead of fdl.texi.
69070 2008-11-04  Simon Josefsson  <simon@josefsson.org>
69072         * doc/fdl-1.3.texi: New file, from
69073         <http://www.gnu.org/licenses/fdl-1.3.texi>.
69074         * modules/fdl-1.3: Add.
69075         * MODULES.html.sh: Add fdl-1.3.
69077 2008-11-03  Bruno Haible  <bruno@clisp.org>
69079         Make determination of absolute name of header file work with AIX xlc.
69080         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
69081         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
69082         preprocessing.
69083         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
69084         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
69086 2008-11-03  Simon Josefsson  <simon@josefsson.org>
69088         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
69089         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
69090         <ludo@gnu.org>.
69092 2008-11-02  Bruno Haible  <bruno@clisp.org>
69094         Mark 'strpbrk' obsolete.
69095         * modules/strpbrk (Status, Notice): New sections.
69096         * modules/strtok_r (Depends-on): Add strpbrk.
69098 2008-11-02  Bruno Haible  <bruno@clisp.org>
69100         Mark 'strdup' obsolete.
69101         * modules/strdup (Status, Notice): New sections.
69102         * modules/findprog (Depends-on): Add strdup.
69103         * modules/getaddrinfo (Depends-on): Likewise.
69104         * modules/localename (Depends-on): Likewise.
69105         * modules/relocatable-lib (Depends-on): Likewise.
69106         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
69107         * modules/relocatable-prog (Depends-on): Likewise.
69108         * modules/trim (Depends-on): Likewise.
69109         * modules/unictype/gen-ctype (Depends-on): Likewise.
69110         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
69112 2008-11-02  Bruno Haible  <bruno@clisp.org>
69114         Mark 'strcspn' obsolete.
69115         * modules/strcspn (Status, Notice): New sections.
69117 2008-11-02  Bruno Haible  <bruno@clisp.org>
69119         Mark 'rmdir' obsolete.
69120         * modules/rmdir (Status, Notice): New sections.
69121         * modules/clean-temp (Depends-on): Add rmdir.
69122         * modules/openat (Depends-on): Likewise.
69124 2008-11-02  Bruno Haible  <bruno@clisp.org>
69126         Mark 'raise' obsolete.
69127         * modules/raise (Status, Notice): New sections.
69128         (Include): Specify <signal.h>.
69129         * modules/stdio (Depends-on): Add raise.
69130         * modules/write (Depends-on): Likewise.
69132 2008-11-02  Bruno Haible  <bruno@clisp.org>
69134         Mark 'memset' obsolete.
69135         * modules/memset (Status, Notice): New sections.
69137 2008-11-02  Bruno Haible  <bruno@clisp.org>
69139         Mark 'memmove' obsolete.
69140         * modules/memmove (Status, Notice): New sections.
69141         * modules/argp (Depends-on): Add memmove.
69142         * modules/argz (Depends-on): Likewise.
69143         * modules/canonicalize (Depends-on): Likewise.
69144         * modules/canonicalize-lgpl (Depends-on): Likewise.
69145         * modules/fts (Depends-on): Likewise.
69146         * modules/getcwd (Depends-on): Likewise.
69147         * modules/human (Depends-on): Likewise.
69148         * modules/regex (Depends-on): Likewise.
69149         * modules/striconveh (Depends-on): Likewise.
69150         * modules/trim (Depends-on): Likewise.
69151         * modules/unistr/u8-move (Depends-on): Likewise.
69152         * modules/unistr/u16-move (Depends-on): Likewise.
69153         * modules/unistr/u32-move (Depends-on): Likewise.
69155 2008-11-02  Bruno Haible  <bruno@clisp.org>
69157         Mark 'memcpy' obsolete.
69158         * modules/memcpy (Status, Notice): New sections.
69160 2008-11-02  Bruno Haible  <bruno@clisp.org>
69162         Mark 'memcmp' obsolete.
69163         * modules/memcmp (Status, Notice): New sections.
69164         * modules/argmatch (Depends-on): Add memchr.
69165         * modules/backupfile (Depends-on): Likewise.
69166         * modules/c-strcasestr (Depends-on): Likewise.
69167         * modules/crypto/des (Depends-on): Likewise.
69168         * modules/csharpcomp (Depends-on): Likewise.
69169         * modules/fnmatch (Depends-on): Likewise.
69170         * modules/git-merge-changelog (Depends-on): Likewise.
69171         * modules/isnand (Depends-on): Likewise.
69172         * modules/isnand-nolibm (Depends-on): Likewise.
69173         * modules/isnanf (Depends-on): Likewise.
69174         * modules/isnanf-nolibm (Depends-on): Likewise.
69175         * modules/isnanl (Depends-on): Likewise.
69176         * modules/isnanl-nolibm (Depends-on): Likewise.
69177         * modules/mbchar (Depends-on): Likewise.
69178         * modules/memcoll (Depends-on): Likewise.
69179         * modules/quotearg (Depends-on): Likewise.
69180         * modules/regex (Depends-on): Likewise.
69181         * modules/relocatable-prog (Depends-on): Likewise.
69182         * modules/same (Depends-on): Likewise.
69183         * modules/signbit (Depends-on): Likewise.
69184         * modules/strcasestr-simple (Depends-on): Likewise.
69185         * modules/unictype/gen-ctype (Depends-on): Likewise.
69186         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
69187         * modules/uniname/uniname (Depends-on): Likewise.
69188         * modules/unistr/u8-cmp (Depends-on): Likewise.
69190 2008-11-02  Bruno Haible  <bruno@clisp.org>
69192         Mark 'memchr' obsolete.
69193         * modules/memchr (Status, Notice): New sections.
69194         * modules/argp (Depends-on): Add memchr.
69195         * modules/base64 (Depends-on): Likewise.
69196         * modules/c-strcasestr (Depends-on): Likewise.
69197         * modules/chdir-long (Depends-on): Likewise.
69198         * modules/fnmatch (Depends-on): Likewise.
69199         * modules/getsubopt (Depends-on): Likewise.
69200         * modules/git-merge-changelog (Depends-on): Likewise.
69201         * modules/glob (Depends-on): Likewise.
69202         * modules/strcasestr-simple (Depends-on): Likewise.
69203         * modules/strnlen (Depends-on): Likewise.
69205 2008-11-02  Bruno Haible  <bruno@clisp.org>
69207         Mark 'atexit' obsolete.
69208         * modules/atexit (Status, Notice): New sections.
69209         * modules/chdir-long (Depends-on): Add atexit.
69210         * modules/wait-process (Depends-on): Likewise.
69212 2008-11-02  Bruno Haible  <bruno@clisp.org>
69214         * gnulib-tool: New option --with-obsolete.
69215         (func_usage): Document it.
69216         (func_modules_transitive_closure): Drop obsolete dependencies if
69217         incobsolete is not true.
69218         (func_import): Read and save the incobsolete variable to the cache.
69220 2008-11-02  Bruno Haible  <bruno@clisp.org>
69222         * modules/TEMPLATE-EXTENDED: New field 'Status'.
69223         * gnulib-tool: New option --extract-status.
69224         (func_usage): Document it.
69225         (sed_extract_prog): Recognize it.
69226         (func_get_status): New function.
69228 2008-10-30  Simon Josefsson  <simon@josefsson.org>
69230         * modules/sockets (License): Change from LGPL to LGPLv2+.
69232 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69234         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
69236 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69238         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69239         Mention times and sys_times.
69240         * modules/sys_times, modules/sys_times-tests: New modules.
69241         * modules/times, modules/times-tests: Likewise
69242         * m4/sys_times_h.m4: New file.
69243         * lib/sys_times.in.h: Likewise
69244         * lib/times.c: Likewise.
69245         * tests/test-sys_times.c: Likewise.
69246         * tests/test-times.c: Likewise.
69247         * doc/posix-headers/sys_times.texi: Update.
69248         * doc/posix-functions/times.texi: Update.
69250 2008-10-28  Jim Meyering  <meyering@redhat.com>
69252         * modules/tempname (Depends-on): Add lstat.
69254         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
69256 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69258         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
69259         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
69260         using idiom used elsewhere in gnulib.
69262 2008-10-27  Jim Meyering  <meyering@redhat.com>
69264         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
69266 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69268         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
69269         TESTS_ENVIRONMENT, for shell scripts that needs to call built
69270         programs.
69271         * tests/test-argp-2.sh: Use $EXEEXT when needed.
69273 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69275         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
69277 2008-10-27  Bruno Haible  <bruno@clisp.org>
69279         * tests/test-lstat.c: Include <stdio.h>.
69281 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69283         * modules/lstat-tests: New module.
69284         * tests/test-lstat.c: New file.
69286 2008-10-26  Jim Meyering  <meyering@redhat.com>
69288         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
69290 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69291             Bruno Haible  <bruno@clisp.org>
69293         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
69294         * modules/configmake (Include): Add a note that the include must come
69295         after all system headers.
69296         * lib/javaversion.c: Include configmake.h after all other includes.
69298 2008-10-26  Bruno Haible  <bruno@clisp.org>
69300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
69301         HAVE_STRUCT_RANDOM_DATA to 1.
69302         (gl_STDLIB_H): Simplify.
69304 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69306         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
69307         substitute HAVE_STRUCT_RANDOM_DATA.
69308         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
69309         random_data.
69310         * modules/stdlib (Makefile.am): Substitute
69311         HAVE_STRUCT_RANDOM_DATA.
69313 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69315         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
69316         * doc/gnulib-intro.texi (Copyright): Likewise.
69318 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69320         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
69321         findings.
69323 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
69324             Bruno Haible  <bruno@clisp.org>
69326         * lib/unistd.in.h: Include <winsock2.h>.
69327         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
69328         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
69329         Provide dummy declarations.
69330         (gethostname): Override.
69331         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
69332         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
69333         gl_PREREQ_SYS_H_WINSOCK2.
69334         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
69335         * doc/posix-functions/gethostname.texi: More details.
69337 2008-10-25  Bruno Haible  <bruno@clisp.org>
69339         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
69340         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
69341         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
69343         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
69344         here ...
69345         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
69346         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
69347         gl_UNISTD_H_DEFAULTS.
69349 2008-10-25  Eric Blake  <ebb9@byu.net>
69351         signbit: avoid spurious compiler failure
69352         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
69353         declarations inside function.
69355 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69356             Bruno Haible  <bruno@clisp.org>
69358         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
69359         * modules/random_r (Depends-on): Add stdint.
69361 2008-10-24  Bruno Haible  <bruno@clisp.org>
69363         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
69364         Eggert.
69365         * modules/strerror (License): Likewise.
69367 2008-10-24  Jim Meyering  <meyering@redhat.com>
69369         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
69370         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
69372 2008-10-24  Eric Blake  <ebb9@byu.net>
69374         getgroups: fix compilation when getgroups is available
69375         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
69376         but with <config.h> override of getgroups disabled.
69378 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69380         * doc/gnulib.texi (Header files): Add note about C++ problems.
69381         Explained by Bruno Haible <bruno@clisp.org>.
69383 2008-10-23  Bruno Haible  <bruno@clisp.org>
69385         Define a dummy SA_NODEFER macro on Interix.
69386         * lib/signal.in.h (SA_NODEFER): Define fallback.
69387         Reported by Aleksey Cheusov <cheusov@tut.by> via
69388         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
69390 2008-10-23  Bruno Haible  <bruno@clisp.org>
69392         * modules/freadahead (License): Change to LGPLv2+.
69393         Suggested by Simon Josefsson.
69395 2008-10-23  Jim Meyering  <meyering@redhat.com>
69397         random_r: new module
69398         * modules/random_r: New file.
69399         * m4/random_r.m4: New file.
69400         * lib/random_r.c: New file, from glibc.
69401         * modules/random_r-tests: New file.
69402         * tests/test-random_r.c: New file.
69403         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
69404          Declare.
69405         (RAND_MAX): Define.
69406         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
69407         * modules/stdlib: Substitute them, too.
69408         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
69409         * doc/glibc-functions/initstate_r.texi: Mention the new module.
69410         * doc/glibc-functions/random_r.texi: Likewise.
69411         * doc/glibc-functions/setstate_r.texi: Likewise.
69412         * doc/glibc-functions/srandom_r.texi: Likewise.
69413         * config/srclist.txt: Mention it.
69415 2008-10-23  David Lutterkort  <lutter@redhat.com>
69417         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
69418         link requirement
69420 2008-10-23  Jim Meyering  <meyering@redhat.com>
69422         selinux-h: mark parameters of stub functions as intentionally unused
69423         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
69424         * lib/se-context.in.h: Likewise.
69426 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69428         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
69430 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69432         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
69434 2008-10-22  Eric Blake  <ebb9@byu.net>
69436         glthread/thread: avoid compiler warning
69437         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
69438         Add unreachable abort to silence compiler.
69440 2008-10-22  Eric Blake  <ebb9@byu.net>
69442         netdb: also supply struct addrinfo for cygwin 1.5.x
69443         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
69444         older cygwin.
69445         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
69446         cygwin.
69447         * doc/posix-headers/netdb.texi (netdb.h): Document this.
69449 2008-10-22  Bruno Haible  <bruno@clisp.org>
69451         * users.txt: Update entry about pspp.
69453 2008-10-21  Bruno Haible  <bruno@clisp.org>
69455         Simplification.
69456         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
69457         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
69459         Simplification.
69460         * lib/ioctl.c (ioctl): Don't undefine.
69461         * lib/socket.c (socket): Don't undefine.
69463         Remove unused module indicator macros.
69464         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
69465         GNULIB_$1 as a C macro.
69467         * doc/posix-functions/close.texi: Undo last change.
69468         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
69469         Windows platforms.
69471 2008-10-21  Bruno Haible  <bruno@clisp.org>
69473         Add gethostname() declaration to <unistd.h>.
69474         * lib/unistd.in.h (gethostname): New declaration.
69475         * lib/gethostname.c: Include <unistd.h>.
69476         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
69477         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
69478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
69479         and HAVE_GETHOSTNAME.
69480         * modules/gethostname (Depends-on): Add unistd.
69481         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69482         (Include): Specify <unistd.h>.
69483         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
69484         HAVE_GETHOSTNAME.
69485         * tests/test-gethostname.c: Include <unistd.h> first.
69487 2008-10-21  Bruno Haible  <bruno@clisp.org>
69489         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
69490         * modules/select-tests (Depends-on): Likewise.
69491         Reported by Simon Josefsson.
69493 2008-10-21  Simon Josefsson  <simon@josefsson.org>
69495         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
69496         * lib/accept.c: New file, based on winsock.c.
69497         * lib/bind.c: New file, based on winsock.c.
69498         * lib/connect.c: New file, based on winsock.c.
69499         * lib/getpeername.c: New file, based on winsock.c.
69500         * lib/getsockname.c: New file, based on winsock.c.
69501         * lib/getsockopt.c: New file, based on winsock.c.
69502         * lib/ioctl.c: New file, based on winsock.c.
69503         * lib/listen.c: New file, based on winsock.c.
69504         * lib/recv.c: New file, based on winsock.c.
69505         * lib/recvfrom.c: New file, based on winsock.c.
69506         * lib/send.c: New file, based on winsock.c.
69507         * lib/sendto.c: New file, based on winsock.c.
69508         * lib/setsockopt.c: New file, based on winsock.c.
69509         * lib/shutdown.c: New file, based on winsock.c.
69510         * lib/socket.c: New file, based on winsock.c.
69511         * lib/w32sock.h: New file, based on winsock.c.
69512         * lib/winsock.c: Remove file.
69513         * modules/accept: Likewise.
69514         * modules/bind: Likewise.
69515         * modules/connect: Likewise.
69516         * modules/getpeername: Likewise.
69517         * modules/getsockname: Likewise.
69518         * modules/getsockopt: Likewise.
69519         * modules/ioctl: Likewise.
69520         * modules/listen: Likewise.
69521         * modules/recv: Likewise.
69522         * modules/recvfrom: Likewise.
69523         * modules/send: Likewise.
69524         * modules/sendto: Likewise.
69525         * modules/setsockopt: Likewise.
69526         * modules/shutdown: Likewise.
69527         * modules/socket: Use socket.c instead of winsock.c.
69528         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
69529         * doc/posix-functions/accept.texi: Doc fix.
69530         * doc/posix-functions/bind.texi: Doc fix.
69531         * doc/posix-functions/close.texi: Doc fix.
69532         * doc/posix-functions/connect.texi: Doc fix.
69533         * doc/posix-functions/getpeername.texi: Doc fix.
69534         * doc/posix-functions/getsockname.texi: Doc fix.
69535         * doc/posix-functions/getsockopt.texi: Doc fix.
69536         * doc/posix-functions/ioctl.texi: Doc fix.
69537         * doc/posix-functions/listen.texi: Doc fix.
69538         * doc/posix-functions/recv.texi: Doc fix.
69539         * doc/posix-functions/recvfrom.texi: Doc fix.
69540         * doc/posix-functions/send.texi: Doc fix.
69541         * doc/posix-functions/sendto.texi: Doc fix.
69542         * doc/posix-functions/setsockopt.texi: Doc fix.
69543         * doc/posix-functions/shutdown.texi: Doc fix.
69544         * doc/posix-functions/socket.texi: Doc fix.
69546 2008-10-20  Bruno Haible  <bruno@clisp.org>
69548         Take into account the role of SIGABRT_COMPAT on Windows 2008.
69549         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
69550         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
69551         as an alias for SIGABRT.
69552         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
69553         (sigaction): Map it to SIGABRT.
69554         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
69556 2008-10-20  Bruno Haible  <bruno@clisp.org>
69558         * lib/fts.c: Don't include lstat.h.
69559         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
69561         Move the lstat() declaration to <sys/stat.h>.
69562         * lib/lstat.h: Remove file.
69563         * lib/sys_stat.in.h: Add special invocation convention.
69564         (lstat): New declaration.
69565         * lib/lstat.c (orig_lstat): New function.
69566         (rpl_lstat): Use orig_lstat instead of lstat.
69567         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
69568         AC_C_INLINE. Set REPLACE_LSTAT.
69569         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
69570         and REPLACE_LSTAT.
69571         * modules/lstat (Files): Remove lib/lstat.h.
69572         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
69573         (Include): Specify <sys/stat.h> instead of lstat.h.
69574         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
69575         REPLACE_LSTAT.
69576         * NEWS: Mention the change.
69578 2008-10-20  Bruno Haible  <bruno@clisp.org>
69580         * modules/posix_spawn-tests: New file.
69581         * tests/test-posix_spawn3.c: New file.
69583 2008-10-20  Bruno Haible  <bruno@clisp.org>
69585         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
69586         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
69587         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
69588         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
69589         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
69591 2008-10-20  Bruno Haible  <bruno@clisp.org>
69593         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
69594         of posix_spawn on AIX 5.3.
69596 2008-10-20  Bruno Haible  <bruno@clisp.org>
69598         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
69600 2008-10-20  Bruno Haible  <bruno@clisp.org>
69602         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
69603         of AC_LANG_PROGRAM.
69605 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69607         * lib/netdb.in.h: Don't define GNU specific constants until they
69608         are supported or needed.  Reported by Bruno Haible
69609         <bruno@clisp.org>.
69611 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69613         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
69615 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69617         * lib/getaddrinfo.h: Remove file.
69618         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
69619         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
69620         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
69621         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
69622         * modules/netdb: Substitute GNULIB_GETADDRINFO.
69623         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
69624         * tests/test-getaddrinfo.c: Likewise.
69625         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
69626         * NEWS: Mention change.
69628 2008-10-19  Bruno Haible  <bruno@clisp.org>
69630         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
69632 2008-10-19  Bruno Haible  <bruno@clisp.org>
69634         * lib/wait-process.c: Include simply <sys/wait.h>.
69635         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
69636         WIFSTOPPED): Remove fallback definitions.
69637         * modules/wait-process (Depends-on): Add sys_wait.
69639         New module 'sys_wait'.
69640         * modules/sys_wait: New file.
69641         * lib/sys_wait.in.h: New file, partially copied from
69642         lib/wait-process.c.
69643         * m4/sys_wait_h.m4: New file.
69644         * doc/posix-headers/sys_wait.texi: Mention the new module.
69646 2008-10-19  Bruno Haible  <bruno@clisp.org>
69648         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
69650 2008-10-19  Bruno Haible  <bruno@clisp.org>
69652         Assume that waitpid() fills an 'int' status, not a 'union wait'.
69653         * lib/wait-process.c (WAIT_T): Remove type.
69654         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
69655         (wait_subprocess): Update.
69657 2008-10-19  Bruno Haible  <bruno@clisp.org>
69659         New module 'atoll'.
69660         * modules/atoll: New file.
69661         * lib/stdlib.in.h (atoll): New declaration.
69662         * lib/atoll.c: New file, from glibc with modifications.
69663         * m4/atoll.m4: New file.
69664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
69665         HAVE_ATOLL.
69666         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
69667         * doc/posix-functions/atoll.texi: Mention the new module.
69669 2008-10-19  Bruno Haible  <bruno@clisp.org>
69671         Add strtoull() declaration to <stdlib.h>.
69672         * lib/stdlib.in.h (strtoull): New declaration.
69673         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
69674         Set HAVE_STRTOULL.
69675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
69676         HAVE_STRTOULL.
69677         * modules/strtoull (Depends-on): Add stdlib.
69678         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69679         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
69680         HAVE_STRTOULL.
69682 2008-10-19  Bruno Haible  <bruno@clisp.org>
69684         Add strtoll() declaration to <stdlib.h>.
69685         * lib/stdlib.in.h (strtoll): New declaration.
69686         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
69687         Set HAVE_STRTOLL.
69688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
69689         HAVE_STRTOLL.
69690         * modules/strtoll (Depends-on): Add stdlib.
69691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69692         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
69694 2008-10-19  Bruno Haible  <bruno@clisp.org>
69696         * modules/bcopy (Depends-on): Add strings.
69697         (Include): Specify <strings.h>.
69699 2008-10-19  Bruno Haible  <bruno@clisp.org>
69701         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
69703 2008-10-19  Bruno Haible  <bruno@clisp.org>
69705         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
69706         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
69707         mingw.
69709 2008-10-19  Bruno Haible  <bruno@clisp.org>
69711         * lib/atanl.c: Don't include isnanl.h.
69712         * lib/cosl.c: Likewise.
69713         * lib/ldexpl.c: Likewise.
69714         * lib/logl.c: Likewise.
69715         * lib/sinl.c: Likewise.
69716         * lib/sqrtl.c: Likewise.
69717         * lib/tanl.c: Likewise.
69719         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
69720         * lib/isnanf.h: Remove file.
69721         * lib/isnand.h: Remove file.
69722         * lib/isnanl.h: Remove file.
69723         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
69724         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
69725         macros.
69726         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
69727         HAVE_ISNANF, don't define it as a C macro.
69728         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
69729         HAVE_ISNAND, don't define it as a C macro.
69730         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
69731         HAVE_ISNANL, don't define it as a C macro.
69732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
69733         HAVE_ISNAN[FDL].
69734         * modules/isnanf (Files): Remove lib/isnanf.h.
69735         (Depends-on): Add math.
69736         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
69737         (Include): Specify <math.h> instead of isnanf.h.
69738         * modules/isnand (Files): Remove lib/isnand.h.
69739         (Depends-on): Add math.
69740         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
69741         (Include): Specify <math.h> instead of isnand.h.
69742         * modules/isnanl (Files): Remove lib/isnanl.h.
69743         (Depends-on): Add math.
69744         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
69745         (Include): Specify <math.h> instead of isnanl.h.
69746         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
69747         HAVE_ISNAN[FDL].
69748         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
69749         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
69750         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
69751         * NEWS: Mention the change.
69753 2008-10-18  Bruno Haible  <bruno@clisp.org>
69755         Add getusershell(), setusershell(), endusershell() declarations to
69756         <unistd.h>.
69757         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
69758         declarations.
69759         * lib/getusershell.c: Include unistd.h.
69760         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
69761         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
69762         HAVE_GETUSERSHELL.
69763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
69764         and HAVE_GETUSERSHELL.
69765         * modules/getusershell (Depends-on): Add unistd, extensions.
69766         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69767         (Include): Specify <unistd.h>.
69768         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
69769         HAVE_GETUSERSHELL.
69771 2008-10-18  Bruno Haible  <bruno@clisp.org>
69773         Add a getloadavg() declaration to <stdlib.h>.
69774         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
69775         getloadavg declaration.
69776         (getloadavg): New declaration.
69777         * lib/getloadavg.c: Include <stdlib.h> first.
69778         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
69779         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
69780         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
69781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
69782         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
69783         * modules/getloadavg (Depends-on): Add stdlib, extensions.
69784         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69785         (Include): Specify <stdlib.h>.
69786         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
69787         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
69789 2008-10-18  Bruno Haible  <bruno@clisp.org>
69791         * lib/dirchownmod.c: Don't include lchmod.h.
69793         Move the lchmod() declaration to <sys/stat.h>.
69794         * lib/lchmod.h: Remove file.
69795         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
69796         (lchmod): New declaration, moved here from lib/lchown.h.
69797         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
69798         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
69799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
69800         and HAVE_LCHMOD.
69801         * modules/lchmod (Files): Remove lib/lchmod.h.
69802         (Depends-on): Add sys_stat, extensions.
69803         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
69804         (Include): Specify <sys/stat.h> instead of lchmod.h.
69805         * modules/sys_stat (Depends-on): Add link-warning.
69806         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
69807         definition of GL_LINK_WARNING.
69808         * NEWS: Mention the change.
69810 2008-10-18  Bruno Haible  <bruno@clisp.org>
69812         * lib/fchdir.c: Don't include dirfd.h.
69813         * lib/fts.c: Likewise.
69814         * lib/getcwd.c: Likewise.
69815         * lib/glob.c: Likewise.
69817         Move the dirfd() declaration to <dirent.h>.
69818         * lib/dirfd.h: Remove file.
69819         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
69820         (dirfd): New declaration.
69821         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
69822         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
69823         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
69824         HAVE_DECL_DIRFD.
69825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
69826         HAVE_DECL_DIRFD.
69827         * modules/dirfd (Files): Remove lib/dirfd.h.
69828         (Depends-on): Add dirent, extensions.
69829         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
69830         (Include): Specify <dirent.h> instead of dirfd.h.
69831         * modules/dirent (Depends-on): Add link-warning.
69832         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
69833         definition of GL_LINK_WARNING.
69834         * NEWS: Mention the change.
69836 2008-10-18  Bruno Haible  <bruno@clisp.org>
69838         Move the euidaccess() declaration to <unistd.h>.
69839         * lib/euidaccess.h: Remove file.
69840         * lib/unistd.in.h (euidaccess): New declaration.
69841         * lib/euidaccess.c: Don't include euidaccess.h.
69842         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
69843         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
69844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
69845         and HAVE_EUIDACCESS.
69846         * modules/euidaccess (Files): Remove lib/euidaccess.h.
69847         (Depends-on): Add unistd.
69848         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69849         (Include): Specify <unistd.h> instead of euidaccess.h.
69850         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
69851         HAVE_EUIDACCESS.
69852         * NEWS: Mention the change.
69854 2008-10-18  Bruno Haible  <bruno@clisp.org>
69856         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
69858         Move the getdomainname() declaration to <unistd.h>.
69859         * lib/getdomainname.h: Remove file.
69860         * lib/unistd.in.h (getdomainname): New declaration.
69861         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
69862         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
69863         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
69864         HAVE_GETDOMAINNAME.
69865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69866         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
69867         * modules/getdomainname (Files): Remove lib/getdomainname.h.
69868         (Depends-on): Add unistd, extensions.
69869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69870         (Includes): Specify <unistd.h> instead of getdomainname.h.
69871         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
69872         HAVE_GETDOMAINNAME.
69873         * NEWS: Mention the change.
69875 2008-10-18  Bruno Haible  <bruno@clisp.org>
69877         * modules/dirent: New file.
69878         * m4/dirent_h.m4: New file.
69879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
69880         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
69881         * modules/fchdir (Files): Remove lib/dirent.in.h.
69882         (Depends-on): Add dirent.
69883         (Makefile.am): Move rules to modules/dirent.
69884         * doc/posix-headers/dirent.texi: Mention the new module.
69886 2008-10-18  Bruno Haible  <bruno@clisp.org>
69888         Avoid -Wunused-parameter warnings in public gnulib header files.
69889         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
69890         macro.
69891         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
69893 2008-10-18  Bruno Haible  <bruno@clisp.org>
69895         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
69896         * doc/glibc-functions/error.texi: Mention the module 'error'.
69897         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
69898         * doc/glibc-functions/getdomainname.texi: Mention the module
69899         'getdomainname'.
69900         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
69901         * doc/glibc-functions/getpagesize.texi: Mention the module
69902         'getpagesize'.
69903         * doc/glibc-functions/getusershell.texi: Mention the module
69904         'getusershell'.
69905         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
69906         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
69907         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
69908         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
69909         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
69910         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
69911         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
69912         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
69913         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
69914         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
69915         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
69916         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
69917         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
69918         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
69920 2008-10-17  Bruno Haible  <bruno@clisp.org>
69922         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
69923         HP-UX and IRIX, use -0.0L.
69924         * tests/test-ceill.c (minus_zero): Likewise.
69925         * tests/test-floorl.c (minus_zero): Likewise.
69926         * tests/test-frexpl.c (minus_zero): Likewise.
69927         * tests/test-isnan.c (minus_zerol): Likewise.
69928         * tests/test-isnanl.h (minus_zero): Likewise.
69929         * tests/test-ldexpl.c (minus_zero): Likewise.
69930         * tests/test-roundl.c (minus_zero): Likewise.
69931         * tests/test-signbit.c (minus_zerol): Likewise.
69932         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
69933         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
69934         * tests/test-truncl.c (minus_zero): Likewise.
69935         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
69936         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
69937         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
69938         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69940 2008-10-17  Bruno Haible  <bruno@clisp.org>
69942         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
69943         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
69944         that it gets activated only for gcc >= 3.0.
69945         * lib/dirent.in.h: Likewise.
69946         * lib/errno.in.h: Likewise.
69947         * lib/fcntl.in.h: Likewise.
69948         * lib/float.in.h: Likewise.
69949         * lib/iconv.in.h: Likewise.
69950         * lib/inttypes.in.h: Likewise.
69951         * lib/locale.in.h: Likewise.
69952         * lib/math.in.h: Likewise.
69953         * lib/netdb.in.h: Likewise.
69954         * lib/netinet_in.in.h: Likewise.
69955         * lib/search.in.h: Likewise.
69956         * lib/signal.in.h: Likewise.
69957         * lib/spawn.in.h: Likewise.
69958         * lib/stdarg.in.h: Likewise.
69959         * lib/stdint.in.h: Likewise.
69960         * lib/stdio.in.h: Likewise.
69961         * lib/stdlib.in.h: Likewise.
69962         * lib/string.in.h: Likewise.
69963         * lib/strings.in.h: Likewise.
69964         * lib/sys_file.in.h: Likewise.
69965         * lib/sys_ioctl.in.h: Likewise.
69966         * lib/sys_select.in.h: Likewise.
69967         * lib/sys_socket.in.h: Likewise.
69968         * lib/sys_stat.in.h: Likewise.
69969         * lib/sys_time.in.h: Likewise.
69970         * lib/sysexits.in.h: Likewise.
69971         * lib/time.in.h: Likewise.
69972         * lib/unistd.in.h: Likewise.
69973         * lib/wchar.in.h: Likewise.
69974         * lib/wctype.in.h: Likewise.
69975         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69977 2008-10-17  Jim Meyering  <meyering@redhat.com>
69979         ignore-value: don't depend on inline module
69980         * modules/ignore-value (Depends-on): Remove 'inline'.
69981         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
69982         Suggestion from Bruno Haible.
69984 2008-10-17  Bruno Haible  <bruno@clisp.org>
69986         New implementation of condition variables for Win32.
69987         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
69988         (gl_linked_waitqueue_t): New type.
69989         (gl_cond_t): Use it.
69990         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
69991         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
69992         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
69993         (glthread_cond_init_func, glthread_cond_wait_func,
69994         glthread_cond_timedwait_func, glthread_cond_signal_func,
69995         glthread_cond_broadcast_func, glthread_cond_destroy_func):
69996         Reimplemented on the basis of gl_linked_waitqueue_t.
69997         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
69998         gl_waitqueue_t.
69999         (gl_rwlock_t): Update.
70000         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
70002 2008-10-17  Simon Josefsson  <simon@josefsson.org>
70004         * modules/recvfrom (Depends-on): Add dependency on getpeername.
70005         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70007 2008-10-17  Jim Meyering  <meyering@redhat.com>
70009         ignore-value: new module
70010         * modules/ignore-value: New file.
70011         * lib/ignore-value.h: New file.
70012         * MODULES.html.sh (Compiler warning management): New section,
70013         just for this module.  More to come.
70015 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70017         open-safer.c: avoid 'signed and unsigned in conditional...' warning
70018         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
70019         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
70021 2008-10-16  Jim Meyering  <meyering@redhat.com>
70023         openat-die.c: avoid 'no previous prototype' warning
70024         * lib/openat-die.c: Include "openat.h".
70025         Reported by Reuben Thomas <rrt@sc3d.org>.
70027 2008-10-16  Simon Josefsson  <simon@josefsson.org>
70029         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
70030         * lib/netdb.in.h: Fix typo.
70031         Reported by Bruno Haible  <bruno@clisp.org>
70033         * lib/netdb.in.h: Include sys/socket.h for platforms without
70034         netdb.h, to get structures like hostent on MinGW.
70035         * modules/netdb (Depends-on): Add sys_socket.
70037 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70039         * modules/netdb, modules/netdb-tests: New file.
70040         * m4/netdb_h.m4: New file.
70041         * lib/netdb.in.h: Add, currently just an empty file pending
70042         definitions.
70043         * tests/test-netdb.c: New file.
70044         * doc/posix-headers/netdb.texi: Mention that we replace it if
70045         needed.
70046         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70047         netdb.
70049 2008-10-15  Simon Josefsson  <simon@josefsson.org>
70051         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
70052         with code.
70054 2008-10-13  Bruno Haible  <bruno@clisp.org>
70056         * lib/glthread/cond.c (glthread_cond_wait_func,
70057         glthread_cond_timedwait_func): Add a comment.
70059 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70061         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
70062         * tests/test-select.c: Likewise,
70064 2008-10-13  Bruno Haible  <bruno@clisp.org>
70066         * lib/glthread/cond.c (glthread_cond_wait_func,
70067         glthread_cond_timedwait_func): Fix variable name.
70068         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70070 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
70072         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
70073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
70074         struct sockaddr.sa_len.
70075         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
70077 2008-10-13  Simon Josefsson  <simon@josefsson.org>
70079         * build-aux/pmccabe2html: Add css and css_url parameters.
70081 2008-10-12  Bruno Haible  <bruno@clisp.org>
70083         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
70084         calling aclx_get.
70085         Reported by Rainer Tammer <tammer@tammer.net>.
70087 2008-10-12  Bruno Haible  <bruno@clisp.org>
70089         Use msvcrt aware primitives for creation/termination of Win32 threads.
70090         * lib/glthread/thread.c: Include <process.h>.
70091         (glthread_create_func): Use _beginthreadex instead of CreateThread.
70092         (wrapper_func): Update signature.
70093         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
70095 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70096             Bruno Haible  <bruno@clisp.org>
70098         Provide a Win32 implementation of the 'cond' module.
70099         * lib/glthread/cond.h [USE_WIN32]: New implementation.
70100         * lib/glthread/cond.c (glthread_cond_init_func,
70101         glthread_cond_wait_func, glthread_cond_timedwait_func,
70102         glthread_cond_signal_func, glthread_cond_broadcast_func,
70103         glthread_cond_destroy_func) [USE_WIN32]: New functions.
70104         * modules/cond (Dependencies): Add gettimeofday.
70106 2008-10-11  Bruno Haible  <bruno@clisp.org>
70108         Make sleep work on older versions of mingw.
70109         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
70110         only whether it exists.
70111         * doc/posix-functions/sleep.texi: Mention the problem with older
70112         versions of mingw.
70114 2008-10-11  Bruno Haible  <bruno@clisp.org>
70116         New module 'shutdown'.
70117         * modules/shutdown: New file.
70118         * lib/sys_socket.in.h (shutdown): New declaration.
70119         * lib/winsock.c (shutdown): New function.
70120         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
70121         GNULIB_SHUTDOWN.
70122         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
70123         * doc/posix-functions/shutdown.texi: Document the new module.
70125 2008-10-11  Jim Meyering  <meyering@redhat.com>
70127         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
70129 2008-10-11  Bruno Haible  <bruno@clisp.org>
70131         New module 'fclose'.
70132         * modules/fclose: New file.
70133         * lib/stdio.in.h (fclose): New declaration.
70134         * lib/fclose.c: New file.
70135         * m4/fclose.m4: New file.
70136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
70137         REPLACE_FCLOSE.
70138         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
70139         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
70140         REPLACE_FCLOSE.
70141         * modules/close (Depends-on): fclose.
70142         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
70144 2008-10-11  Bruno Haible  <bruno@clisp.org>
70146         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
70147         set errno and don't call _close.
70149 2008-10-10  Bruno Haible  <bruno@clisp.org>
70151         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
70152         ACL, not afterwards. Fixes test failure on Cygwin.
70154 2008-10-09  Ben Pfaff  <blp@gnu.org>
70156         * build-aux/announce-gen: Fix gnulib version related part of usage
70157         message.  Die with a useful error message if no tarballs are
70158         found.
70160 2008-10-10  Jim Meyering  <meyering@redhat.com>
70162         bootstrap: use git's --depth=N option only if it's supported
70163         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
70164         recognize the --depth option.  Reported by Pádraig Brady.
70166 2008-10-09  Bruno Haible  <bruno@clisp.org>
70168         New module 'ioctl'.
70169         * modules/ioctl: New file.
70170         * lib/sys_socket.in.h (ioctl): Remove declaration.
70171         * lib/winsock.c: Include <sys/ioctl.h>.
70172         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
70173         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
70174         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
70175         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
70176         * doc/posix-functions/ioctl.texi: Mention the new module.
70178 2008-10-09  Bruno Haible  <bruno@clisp.org>
70180         New module 'sys_ioctl'.
70181         * lib/sys_ioctl.in.h: New file.
70182         * m4/sys_ioctl_h.m4: New file.
70183         * modules/sys_ioctl: New file.
70184         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
70186 2008-10-09  Bruno Haible  <bruno@clisp.org>
70188         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
70189         * lib/winsock.c: Include <stdarg.h>.
70190         (rpl_ioctl): Change to second argument 'int' and then varargs.
70192 2008-10-09  Bruno Haible  <bruno@clisp.org>
70194         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
70195         when the sys_socket module is present and the system has <winsock2.h>.
70197 2008-10-09  Bruno Haible  <bruno@clisp.org>
70199         * doc/posix-functions/close.texi: Mention module 'close' instead of
70200         module 'sys_socket'.
70202 2008-10-09  Bruno Haible  <bruno@clisp.org>
70204         * doc/glibc-headers/sys_ioctl.texi: New file.
70205         * doc/gnulib.texi: Include it.
70207 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70208             Bruno Haible  <bruno@clisp.org>
70210         Combine the two replacements of 'close'.
70211         * lib/sys_socket.in.h (close): Define to a reminder to include
70212         <unistd.h>.
70213         (_gl_close_fd_maybe_socket): New declaration.
70214         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
70215         * lib/winsock.c (close): Remove undefinition.
70216         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
70217         needed for the gnulib module 'close'.
70218         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
70219         define to an error symbol or to a warning, if suitable.
70220         * lib/close.c: Include <sys/socket.h>.
70221         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
70222         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
70223         UNISTD_H_HAVE_WINSOCK2_H.
70224         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
70225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70226         UNISTD_H_HAVE_WINSOCK2_H.
70227         * modules/sys_socket (Files): Add m4/unistd_h.m4.
70228         (configure.ac): Set a module indicator.
70229         (Makefile.am): Substitute GNULIB_CLOSE.
70230         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
70231         * modules/poll-tests (Depends-on): Add close.
70232         * modules/select-tests (Depends-on): Likewise.
70234 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70235             Bruno Haible  <bruno@clisp.org>
70237         New module 'close'.
70238         * modules/close: New file.
70239         * lib/unistd.in.h (close): Move declaration out of the
70240         FCHDIR_REPLACEMENT scope.
70241         (_gl_unregister_fd): New declaration.
70242         * lib/close.c: New file.
70243         * lib/fchdir.c (rpl_close): Remove function.
70244         * m4/close.m4: New file.
70245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70246         close.
70247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
70248         REPLACE_CLOSE.
70249         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
70250         REPLACE_CLOSE.
70251         * modules/fchdir (Depends-on): Add close.
70253 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70254             Bruno Haible  <bruno@clisp.org>
70256         * lib/fcntl.in.h (open): Simplify conditionals.
70257         (_gl_register_fd): New declaration.
70258         * lib/fchdir.c (rpl_open): Remove function.
70259         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
70260         also.
70261         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
70262         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70263         open.
70265 2008-10-09  Jim Meyering  <meyering@redhat.com>
70267         GNUmakefile: use the more name-space-friendly "_version"
70268         * top/GNUmakefile (_dummy): Update.
70269         (_version): Rename from "version".
70271 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70272             Bruno Haible  <bruno@clisp.org>
70274         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
70275         rpl_close.
70276         (_gl_register_fd): New function, extracted from rpl_open.
70277         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
70278         (rpl_open, rpl_opendir): Use _gl_register_fd.
70280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70282         Fix organization of 'open' replacement.
70283         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
70284         (gl_FUNC_OPEN): Use it.
70285         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
70287 2008-10-08  Bruno Haible  <bruno@clisp.org>
70289         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
70291 2008-10-08  Simon Josefsson  <simon@josefsson.org>
70293         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
70294         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
70295         listen).
70297 2008-10-08  Eric Blake  <ebb9@byu.net>
70299         GNUmakefile: add 'make version' target
70300         * top/GNUmakefile (_curr-ver): Split version update rules...
70301         (version): ...into a target.
70303 2008-10-07  Bruno Haible  <bruno@clisp.org>
70305         Use a more portable replacement expression for -0.0L.
70306         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
70307         instead of -0.0L. Fix m4 quotation.
70309         * tests/test-signbit.c: Include <float.h>.
70310         (minus_zero): New variable.
70311         (test_signbitl): Use minus_zero instead of -zero.
70312         * modules/signbit-tests (Depends-on): Add float.
70314         * tests/test-ceill.c: Include <float.h>.
70315         (zero): Remove variable.
70316         (minus_zero): New variable.
70317         (main): Use minus_zero instead of -zero.
70318         * modules/ceill-tests (Depends-on): Add float.
70320         * tests/test-floorl.c: Include <float.h>.
70321         (zero): Remove variable.
70322         (minus_zero): New variable.
70323         (main): Use minus_zero instead of -zero.
70324         * modules/floorl-tests (Depends-on): Add float.
70326         * tests/test-roundl.c: Include <float.h>.
70327         (zero): Remove variable.
70328         (minus_zero): New variable.
70329         (main): Use minus_zero instead of -zero.
70330         * modules/roundl-tests (Depends-on): Add float.
70332         * tests/test-truncl.c: Include <float.h>.
70333         (zero): Remove variable.
70334         (minus_zero): New variable.
70335         (main): Use minus_zero instead of -zero.
70336         * modules/truncl-tests (Depends-on): Add float.
70338         * tests/test-frexpl.c (zero): Remove variable.
70339         (minus_zero): New variable.
70340         (main): Use minus_zero instead of -zero.
70341         * modules/frexpl-tests (Depends-on): Add float.
70343         * tests/test-isnan.c (zerol): Remove variable.
70344         (minus_zerol): New variable.
70345         (test_long_double): Use minus_zerol instead of -zerol.
70346         * modules/isnan-tests (Depends-on): Add float.
70348         * tests/test-isnanl.h (zero): Remove variable.
70349         (minus_zero): New variable.
70350         (main): Use minus_zero instead of -zero.
70351         * modules/isnanl-nolibm-tests (Depends-on): Add float.
70352         * modules/isnanl-tests (Depends-on): Add float.
70354         * tests/test-ldexpl.c (zero): Remove variable.
70355         (minus_zero): New variable.
70356         (main): Use minus_zero instead of -zero.
70357         * modules/ldexpl-tests (Depends-on): Add float.
70359         * tests/test-snprintf-posix.h (zerol): Remove variable.
70360         (minus_zerol): New variable.
70361         (test_function): Use minus_zerol instead of -zerol.
70362         * modules/snprintf-posix-tests (Depends-on): Add float.
70363         * modules/vsnprintf-posix-tests (Depends-on): Add float.
70365         * tests/test-sprintf-posix.h (zerol): Remove variable.
70366         (minus_zerol): New variable.
70367         (test_function): Use minus_zerol instead of -zerol.
70368         * modules/sprintf-posix-tests (Depends-on): Add float.
70369         * modules/vsprintf-posix-tests (Depends-on): Add float.
70371         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
70372         (minus_zerol): New variable.
70373         (test_function): Use minus_zerol instead of -zerol.
70374         * modules/vasnprintf-posix-tests (Depends-on): Add float.
70376         * tests/test-vasprintf-posix.c (zerol): Remove variable.
70377         (minus_zerol): New variable.
70378         (test_function): Use minus_zerol instead of -zerol.
70379         * modules/vasprintf-posix-tests (Depends-on): Add float.
70381 2008-10-07  Simon Josefsson  <simon@josefsson.org>
70383         * MODULES.html.sh (Support for building documentation): Mention
70384         pmccabe2html.  Sort entries.
70386         Add pmccabe2html module, from gnupdf.
70387         * build-aux/pmccabe.css: New file.
70388         * build-aux/pmccabe2html: New file.
70389         * m4/pmccabe2html.m4: New file.
70390         * modules/pmccabe2html: New file.
70392 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
70394         flock: new module
70395         * MODULES.html.sh: Add to list of modules.
70396         * lib/flock.c: flock implementation for Windows and Unix systems
70397         which have fcntl.
70398         * doc/glibc-functions/flock.texi: Update documentation.
70399         * lib/sys_file.in.h: <sys/file.h> header file.
70400         * m4/flock.m4: M4 macros.
70401         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
70402         * modules/flock: flock module.
70403         * modules/flock-tests: flock tests module.
70404         * modules/sys_file: sys/file.h module.
70405         * tests/test-flock.c: test suite for flock.
70407 2008-10-06  Jim Meyering  <meyering@redhat.com>
70409         bootstrap: check for LT_INIT more portably still ;-)
70410         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
70411         Spotted by Bruno Haible.
70413 2008-10-06  Eric Blake  <ebb9@byu.net>
70415         test-signbit: avoid tripping Irix cc bug on -0.0L
70416         * tests/test-signbit.c (minus_zerol): Delete, and replace with
70417         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
70418         entire testsuite consistent and avoids an Irix 6.2 bug.
70420 2008-10-05  Bruno Haible  <bruno@clisp.org>
70421             Jim Meyering  <jim@meyering.net>
70423         Add an option for ignoring EPIPE during close_stdout.
70424         * lib/closeout.h: Include <stdbool.h>.
70425         (close_stdout_set_ignore_EPIPE): New declaration.
70426         * lib/closeout.c: Include <stdbool.h>.
70427         (ignore_EPIPE): New variable.
70428         (close_stdout_set_ignore_EPIPE): New function.
70429         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
70430         * lib/close-stream.c (close_stream): Mention the possible EPIPE
70431         failure.
70432         * modules/closeout (Depends-on): Add stdbool.
70434 2008-10-05  Bruno Haible  <bruno@clisp.org>
70436         * modules/accept: New file.
70437         * modules/bind: New file.
70438         * modules/connect: New file.
70439         * modules/getpeername: New file.
70440         * modules/getsockname: New file.
70441         * modules/getsockopt: New file.
70442         * modules/listen: New file.
70443         * modules/recv: New file.
70444         * modules/recvfrom: New file.
70445         * modules/send: New file.
70446         * modules/sendto: New file.
70447         * modules/setsockopt: New file.
70448         * modules/socket: New file.
70449         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
70450         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70451         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
70452         the particular module is requested. Add a link warning when the
70453         particular module is not requested.
70454         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
70455         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
70456         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
70457         the particular module is requested.
70458         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
70459         gl_SYS_SOCKET_H_DEFAULTS): New macros.
70460         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
70461         * modules/sys_socket (Depends-on): Add link-warning.
70462         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
70463         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
70464         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
70465         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
70466         GL_LINK_WARNING.
70467         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
70468         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
70469         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
70470         * doc/posix-functions/getpeername.texi: Mention the new module
70471         'getpeername'.
70472         * doc/posix-functions/getsockname.texi: Mention the new module
70473         'getsockname'.
70474         * doc/posix-functions/getsockopt.texi: Mention the new module
70475         'getsockopt'.
70476         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
70477         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
70478         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
70479         * doc/posix-functions/send.texi: Mention the new module 'send'.
70480         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
70481         * doc/posix-functions/setsockopt.texi: Mention the new module
70482         'setsockopt'.
70483         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
70484         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
70485         listen, connect, accept.
70486         * modules/select-tests (Depends-on): Likewise.
70488 2008-10-05  Bruno Haible  <bruno@clisp.org>
70490         * lib/winsock.c (strerror): Remove unused #undef.
70491         (rpl_close): Remove unused local variable.
70493         * modules/sys_socket (Depends-on); Add errno.
70495 2008-10-05  Bruno Haible  <bruno@clisp.org>
70497         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
70498         (select): Add a link warning when the 'select' module is not used.
70499         * modules/sys_select (Depends-on): Add link-warning.
70500         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
70501         Suggested by Paolo Bonzini.
70503 2008-10-05  Jim Meyering  <meyering@redhat.com>
70505         bootstrap: check for LT_INIT more portably
70506         * build-aux/bootstrap: Avoid using grep -E, since it's not
70507         portable enough.  Suggestion from Bruno Haible.
70509 2008-10-05  Bruno Haible  <bruno@clisp.org>
70511         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
70512         as being fixed by gnulib.
70514 2008-10-05  Bruno Haible  <bruno@clisp.org>
70516         * modules/select-tests: New file, mostly copied from
70517         modules/sys_select-tests.
70518         * tests/test-select.c: New file, mostly copied from
70519         tests/test-sys_select.c.
70520         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
70521         * modules/sys_select-tests (Depends-on): Remove all dependencies.
70522         (Makefile.am): Remove test_sys_select_LDADD.
70524         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
70525         to an undefined symbol, for an error message.
70526         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
70527         (gl_SYS_SELECT_H_DEFAULTS): New macro.
70528         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
70529         winsock-select.c here.
70530         * modules/sys_select (Files): Remove lib/winsock-select.c.
70531         (Depends-on): Remove alloca.
70532         (Makefile.am): Substitute GNULIB_SELECT.
70533         * modules/select: New file.
70534         * doc/posix-functions/select.texi: Update.
70536 2008-10-05  Bruno Haible  <bruno@clisp.org>
70538         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
70539         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
70540         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
70541         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
70542         getdtablesize.
70543         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
70544         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
70546 2008-10-05  Bruno Haible  <bruno@clisp.org>
70548         * modules/getdtablesize-tests: New file.
70549         * tests/test-getdtablesize.c: New file.
70551         New module 'getdtablesize'.
70552         * lib/unistd.in.h (getdtablesize): New declaration.
70553         * lib/getdtablesize.c: New file.
70554         * m4/getdtablesize.m4: New file.
70555         * modules/getdtablesize: New file.
70556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70557         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
70558         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
70559         HAVE_GETDTABLESIZE.
70560         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
70562 2008-10-05  Bruno Haible  <bruno@clisp.org>
70564         * modules/sched (Makefile.am): Fix typo.
70565         Reported by Simon Josefsson.
70567 2008-10-05  Jim Meyering  <meyering@redhat.com>
70569         bootstrap: check for LT_INIT, too
70570         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
70571         are deprecated.  Suggestion from Ralf Wildenhues.
70573 2008-10-05  Bruno Haible  <bruno@clisp.org>
70575         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
70576         overriding them by ours.
70577         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
70579 2008-10-05  Jim Meyering  <meyering@redhat.com>
70581         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
70582         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
70583         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
70585 2008-10-04  Bruno Haible  <bruno@clisp.org>
70587         * modules/dup2 (License): Change to LGPLv2+.
70588         * modules/sleep (License): Likewise.
70589         * modules/perror (License): Likewise.
70590         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
70591         Blake.
70592         * modules/signal (License): Likewise.
70593         * modules/sigprocmask (License): Likewise.
70594         * modules/raise (License): Change to LGPLv2+, with approval by Jim
70595         Meyering.
70597 2008-10-04  Bruno Haible  <bruno@clisp.org>
70599         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
70600         Reported by Rainer Tammer <tammer@tammer.net>.
70602 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
70603             Bruno Haible  <bruno@clisp.org>
70605         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
70606         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
70607         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
70609 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
70611         filevercmp: new module
70612         * lib/filevercmp.h: New function filevercmp comparing version strings.
70613         * lib/filevercmp.c: Implementation of filevercmp function.
70614         * modules/filevercmp: Module metadata.
70615         * tests/test-filevercmp.c: Unit test for new module.
70616         * modules/filevercmp-tests: Unit test metadata.
70617         * MODULES.html.sh: Add filevercmp module.
70619 2008-10-03  Bruno Haible  <bruno@clisp.org>
70621         * lib/c-ctype.h: Add comment.
70622         Reported by Jim Meyering.
70624 2008-10-02  Bruno Haible  <bruno@clisp.org>
70626         * modules/posix_spawn-internal (Depends-on): Add 'open'.
70628 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70630         * build-aux/bootstrap: Allow renaming bootstrap, and change the
70631         name of bootstrap.conf accordingly.
70633 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70635         * build-aux/bootstrap: Install git-merge-changelog configuration
70636         items into .gitconfig if needed.
70638 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70640         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
70641         git repository, and initialize/update it accordingly.
70643 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
70645         * modules/fsync-tests: New file.
70646         * tests/test-fsync.c: New file.
70648         New module 'fsync'.
70649         * lib/fsync.c: New file.
70650         * m4/fsync.m4: New file.
70651         * modules/fsync: New file.
70652         * lib/unistd.in.h (fsync): New declaration.
70653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
70654         GNULIB_FSYNC and HAVE_FSYNC.
70655         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
70656         * MODULES.html.sh (posix_functions): Add fsync.
70657         * doc/posix-functions/fsync.texi: Mention the new module.
70659 2008-10-02  Jim Meyering  <meyering@redhat.com>
70661         fts.c: sync with similar code from coreutils' remove.c
70662         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
70663         Guard also with "#if defined __linux__", since for now at least,
70664         this code is Linux-kernel-specific.
70666 2008-10-02  Jim Meyering  <meyering@redhat.com>
70668         fts: bug fixes
70669         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
70670         Include <sys/vfs.h>, not <sys/statfs.h>.
70672         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
70673         Include <sys/vfs.h>, not <sys/statfs.h>.
70675 2008-10-01  Bruno Haible  <bruno@clisp.org>
70677         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
70678         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
70679         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
70680         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
70681         * doc/posix-functions/posix_spawnp.texi: Likewise.
70682         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
70683         whether posix_spawn actually works.
70684         * m4/pipe.m4 (gl_PIPE): Likewise.
70685         * modules/execute (Files): Add m4/posix_spawn.m4.
70686         * modules/pipe (Files): Add m4/posix_spawn.m4.
70687         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
70689 2008-10-01  Jim Meyering  <meyering@redhat.com>
70691         remove trailing spaces
70692         * NEWS: Likewise.
70693         * lib/poll.c (poll): Likewise.
70694         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
70695         * lib/winsock.c (rpl_close): Likewise.
70696         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
70697         * modules/yield: Likewise.
70698         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
70699         * tests/test-sys_select.c (connect_to_socket): Likewise.
70701         fts.c: adjust a new interface to be more generally useful
70702         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
70703         (fts_build): Adjust caller.
70705 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70707         * modules/cond-tests: New file.
70708         * tests/test-cond.c: New file.
70710 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70711             Bruno Haible  <bruno@clisp.org>
70713         * modules/cond (Dependencies): Add errno, time.
70714         * lib/glthread/cond.h: Include <time.h>.
70715         (gl_cond_define, gl_cond_define_initialized): Use the same definition
70716         across platforms.
70718 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70719             Bruno Haible  <bruno@clisp.org>
70721         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
70723 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70724             Bruno Haible  <bruno@clisp.org>
70726         * modules/tls-tests (Depends-on): Add thread, yield.
70727         (configure.ac): Remove all checks.
70728         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
70729         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
70730         gl_thread_self): Remove definitions. Include glthread/thread.h and
70731         glthread/yield.h instead.
70732         (test_tls): Pass an additional NULL argument to gl_thread_join.
70734 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70735             Bruno Haible  <bruno@clisp.org>
70737         * modules/lock-tests (Depends-on): Add thread, yield.
70738         (configure.ac): Remove all checks.
70739         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
70740         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
70741         gl_thread_self): Remove definitions. Include glthread/thread.h and
70742         glthread/yield.h instead.
70743         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
70744         additional NULL argument to gl_thread_join.
70746 2008-09-30  Bruno Haible  <bruno@clisp.org>
70748         Fix the Win32 implementation of the 'thread' module.
70749         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
70750         pointer type.
70751         (gl_thread_self): Invoke gl_thread_self_func.
70752         (gl_thread_self_func): New declaration.
70753         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
70754         (do_init_self_key, init_self_key): New functions.
70755         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
70756         Remove some fields.
70757         (running_threads, running_lock): Remove variables.
70758         (get_current_thread_handle): New function.
70759         (gl_thread_self_func, wrapper_func, glthread_create_func,
70760         glthread_join_func, gl_thread_exit_func): Largely rewritten and
70761         simplified.
70763 2008-09-30  Bruno Haible  <bruno@clisp.org>
70765         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
70766         files.
70768 2008-09-30  Jim Meyering  <meyering@redhat.com>
70770         fts.m4: correct the test for statfs.f_type
70771         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
70772         when checking for statfs.f_type.
70774 2008-09-15  Simon Josefsson  <simon@josefsson.org>
70776         tests: avoid some compiler warnings
70777         * tests/test-memchr.c (main): Pass NULL indirectly.
70778         * tests/test-getdate.c (main): Remove unused variable 'ret'.
70780 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
70782         getdate.y: disallow countable dayshifts like "4 yesterday ago"
70783         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
70784         exactly specified dayshifts.
70785         (dayshift): New rule.
70786         (rel): Add dayshift.
70787         (relative_time_table) [tomorrow, yesterday, today, now]:
70788         Use tDAY_SHIFT in place of tDAY_UNIT.
70789         * tests/test-getdate.c: Add tests for now-disallowed countable
70790         dayshifts, e.g., "4 yesterday ago".
70792 2008-09-29  Bruno Haible  <bruno@clisp.org>
70794         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
70795         * tests/test-posix_spawn1.in.sh: Renamed from
70796         tests/test-posix_spawn.in.sh.
70797         * tests/test-posix_spawn2.c: New file.
70798         * tests/test-posix_spawn2.in.sh: New file.
70799         * modules/posix_spawnp-tests (Files): Update.
70800         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
70802 2008-09-29  Bruno Haible  <bruno@clisp.org>
70804         Propagate effects of putenv/setenv/unsetenv to child processes.
70805         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
70806         * lib/pipe.c (create_pipe): Likewise.
70808 2008-09-29  Bruno Haible  <bruno@clisp.org>
70810         Enable use of shell scripts as executables in mingw.
70811         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
70812         run the program as a shell script.
70813         * lib/pipe.c (create_pipe): Likewise.
70814         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
70815         resulting array.
70817 2008-09-29  Eric Blake  <ebb9@byu.net>
70819         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
70821 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
70823         * doc/posix-functions/accept.texi: Update mingw problems.
70824         * doc/posix-functions/bind.texi: Update mingw problems.
70825         * doc/posix-functions/close.texi: Update mingw problems.
70826         * doc/posix-functions/connect.texi: Update mingw problems.
70827         * doc/posix-functions/getpeername.texi: Update mingw problems.
70828         * doc/posix-functions/getsockname.texi: Update mingw problems.
70829         * doc/posix-functions/getsockopt.texi: Update mingw problems.
70830         * doc/posix-functions/ioctl.texi: Update mingw problems.
70831         * doc/posix-functions/listen.texi: Update mingw problems.
70832         * doc/posix-functions/recv.texi: Update mingw problems.
70833         * doc/posix-functions/recvfrom.texi: Update mingw problems.
70834         * doc/posix-functions/select.texi: Update mingw problems.
70835         * doc/posix-functions/send.texi: Update mingw problems.
70836         * doc/posix-functions/sendto.texi: Update mingw problems.
70837         * doc/posix-functions/setsockopt.texi: Update mingw problems.
70838         * doc/posix-functions/socket.texi: Update mingw problems.
70840 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
70841             Bruno Haible  <bruno@clisp.org>
70843         * lib/sys_select.in.h: Include sys/time.h.
70844         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
70845         * modules/sys_select: Depend on sys_time.
70846         * tests/test-sys_select.c: Test that sys/select.h defines struct
70847         timeval fully.
70849 2008-09-29  Bruno Haible  <bruno@clisp.org>
70851         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
70852         * lib/sys_select.in.h: Likewise.
70854 2008-09-29  Bruno Haible  <bruno@clisp.org>
70856         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
70858 2008-09-29  Bruno Haible  <bruno@clisp.org>
70860         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
70861         Set LIBSOCKET instead of augmenting LIBS.
70862         * modules/sockets (Link): New section.
70863         * modules/sockets-tests (test_sockets_LDADD): New variable.
70864         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
70865         * modules/poll-tests (test_poll_LDADD): New variable.
70866         * NEWS: Document the change.
70868 2008-09-29  Bruno Haible  <bruno@clisp.org>
70870         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
70871         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
70872         ARPA_INET_H directly.
70873         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70875 2008-09-28  Bruno Haible  <bruno@clisp.org>
70877         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
70878         from gl_HEADER_SYS_SOCKET.
70879         (gl_HEADER_SYS_SOCKET): Invoke it.
70880         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70882 2008-09-28  Bruno Haible  <bruno@clisp.org>
70884         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
70885         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
70886         Needed on OSF/1 4.0.
70888 2008-09-28  Bruno Haible  <bruno@clisp.org>
70890         Override open more carefully.
70891         * lib/open.c (orig_open): New function.
70892         (rpl_open): Use orig_open instead of open.
70893         * lib/fcntl.in.h: Add special invocation convention.
70894         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
70895         (gl_FUNC_OPEN): Invoke it.
70897         Override freopen more carefully.
70898         * lib/freopen.c (orig_freopen): New function.
70899         (rpl_freopen): Use orig_freopen instead of freopen.
70900         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
70901         (gl_FUNC_FREOPEN): Invoke it.
70903         Override fopen more carefully.
70904         * lib/fopen.c (orig_fopen): New function.
70905         (rpl_fopen): Use orig_fopen instead of fopen.
70906         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
70907         (gl_FUNC_FOPEN): Invoke it.
70908         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
70910 2008-09-28  Bruno Haible  <bruno@clisp.org>
70912         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
70913         SIGPIPE.
70915 2008-09-28  Bruno Haible  <bruno@clisp.org>
70917         * tests/test-sigaction.c (handler, main): Disable the check whether
70918         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
70919         glibc systems with LinuxThreads.
70921 2008-09-28  Bruno Haible  <bruno@clisp.org>
70923         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
70925         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
70926         with AIX xlc.
70927         * lib/fcntl.in.h (open): Likewise.
70928         Reported by Rainer Tammer <tammer@tammer.net>.
70930 2008-09-28  Bruno Haible  <bruno@clisp.org>
70932         * modules/posix_spawnp-tests: New file.
70933         * tests/test-posix_spawn.c: New file.
70934         * tests/test-posix_spawn.in.sh: New file.
70936         New module 'posix_spawnp'.
70937         * modules/posix_spawnp: New file.
70938         * lib/spawnp.c: New file, from GNU libc with modifications.
70939         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
70941         New module 'posix_spawn'.
70942         * modules/posix_spawn: New file.
70943         * lib/spawn.c: New file, from GNU libc with modifications.
70944         * doc/posix-functions/posix_spawn.texi: Mention the new module.
70946         New module 'posix_spawnattr_destroy'.
70947         * modules/posix_spawnattr_destroy: New file.
70948         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
70949         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
70950         module.
70952         New module 'posix_spawnattr_setsigmask'.
70953         * modules/posix_spawnattr_setsigmask: New file.
70954         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
70955         modifications.
70956         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
70957         new module.
70959         New module 'posix_spawnattr_getsigmask'.
70960         * modules/posix_spawnattr_getsigmask: New file.
70961         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
70962         modifications.
70963         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
70964         new module.
70966         New module 'posix_spawnattr_setsigdefault'.
70967         * modules/posix_spawnattr_setsigdefault: New file.
70968         * lib/spawnattr_setdefault.c: New file, from GNU libc with
70969         modifications.
70970         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
70971         new module.
70973         New module 'posix_spawnattr_getsigdefault'.
70974         * modules/posix_spawnattr_getsigdefault: New file.
70975         * lib/spawnattr_getdefault.c: New file, from GNU libc with
70976         modifications.
70977         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
70978         new module.
70980         New module 'posix_spawnattr_setschedpolicy'.
70981         * modules/posix_spawnattr_setschedpolicy: New file.
70982         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
70983         modifications.
70984         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
70985         new module.
70987         New module 'posix_spawnattr_getschedpolicy'.
70988         * modules/posix_spawnattr_getschedpolicy: New file.
70989         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
70990         modifications.
70991         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
70992         new module.
70994         New module 'posix_spawnattr_setschedparam'.
70995         * modules/posix_spawnattr_setschedparam: New file.
70996         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
70997         modifications.
70998         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
70999         new module.
71001         New module 'posix_spawnattr_getschedparam'.
71002         * modules/posix_spawnattr_getschedparam: New file.
71003         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
71004         modifications.
71005         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
71006         new module.
71008         New module 'posix_spawnattr_setpgroup'.
71009         * modules/posix_spawnattr_setpgroup: New file.
71010         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
71011         modifications.
71012         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
71013         module.
71015         New module 'posix_spawnattr_getpgroup'.
71016         * modules/posix_spawnattr_getpgroup: New file.
71017         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
71018         modifications.
71019         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
71020         module.
71022         New module 'posix_spawnattr_setflags'.
71023         * modules/posix_spawnattr_setflags: New file.
71024         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
71025         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
71026         module.
71028         New module 'posix_spawnattr_getflags'.
71029         * modules/posix_spawnattr_getflags: New file.
71030         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
71031         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
71032         module.
71034         New module 'posix_spawnattr_init'.
71035         * modules/posix_spawnattr_init: New file.
71036         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
71037         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
71038         module.
71040         New module 'posix_spawn_file_actions_destroy'.
71041         * modules/posix_spawn_file_actions_destroy: New file.
71042         * lib/spawn_faction_destroy.c: New file, from GNU libc with
71043         modifications.
71044         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
71045         the new module.
71047         New module 'posix_spawn_file_actions_addopen'.
71048         * modules/posix_spawn_file_actions_addopen: New file.
71049         * lib/spawn_faction_addopen.c: New file, from GNU libc with
71050         modifications.
71051         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
71052         the new module.
71054         New module 'posix_spawn_file_actions_adddup2'.
71055         * modules/posix_spawn_file_actions_adddup2: New file.
71056         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
71057         modifications.
71058         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
71059         the new module.
71061         New module 'posix_spawn_file_actions_addclose'.
71062         * modules/posix_spawn_file_actions_addclose: New file.
71063         * lib/spawn_faction_addclose.c: New file, from GNU libc with
71064         modifications.
71065         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
71066         the new module.
71068         New module 'posix_spawn_file_actions_init'.
71069         * modules/posix_spawn_file_actions_init: New file.
71070         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
71071         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
71072         new module.
71074         New module 'posix_spawn-internal'.
71075         * modules/posix_spawn-internal: New file.
71076         * lib/spawn_int.h: New file, from GNU libc with modifications.
71077         * lib/spawni.c: New file, from GNU libc with modifications.
71078         * m4/posix_spawn.m4: New file.
71080         New module 'spawn'.
71081         * modules/spawn: New file.
71082         * lib/spawn.in.h: New file, from GNU libc with modifications.
71083         * m4/spawn_h.m4: New file.
71084         * doc/posix-headers/spawn.texi: Mention the new module.
71086 2008-09-28  Bruno Haible  <bruno@clisp.org>
71088         * modules/sched-tests: New file.
71089         * tests/test-sched.c: New file.
71091         New module 'sched'.
71092         * modules/sched: New file.
71093         * lib/sched.in.h: New file.
71094         * m4/sched_h.m4: New file.
71095         * doc/posix-headers/sched.texi: Mention the new module.
71097 2008-09-27  Eric Blake  <ebb9@byu.net>
71099         Fix previous patch, and tweak references to $0.
71100         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
71101         (func_version, func_gnulib_dir): Don't call this program
71102         gnulib-tool.
71103         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
71104         with using $0 in function.
71105         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
71106         (func_fatal_error): Reuse the name the user invoked us with.
71108 2008-09-27  Bruno Haible  <bruno@clisp.org>
71110         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
71111         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
71112         (gl_ICONV_H): Not here.
71113         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71114         instead of assigning ICONV_H directly.
71116         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
71117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
71118         WCHAR_H directly.
71120 2008-09-27  Bruno Haible  <bruno@clisp.org>
71122         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
71123         * modules/arpa_inet (Depends-on): Add link-warning.
71124         (Makefile.am): Insert the definition of GL_LINK-WARNING.
71125         * modules/unistd (Makefile.am): Likewise.
71127 2008-09-26  Bruno Haible  <bruno@clisp.org>
71129         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
71130         variables.
71131         (func_version): Essentially copied from gnulib-tool.
71132         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
71133         func_readlink): Copied from gnulib-tool.
71135 2008-09-26  Bruno Haible  <bruno@clisp.org>
71137         * gnulib-tool (func_version): Change directory to $gnulib_dir before
71138         invoking git-version-gen.
71140 2008-09-26  Bruno Haible  <bruno@clisp.org>
71142         * posix-modules: Update to directory names changed on 2008-01-19.
71143         Remove commas in output before splitting into words. No more need to
71144         avoid 'ftruncate' since 2007-02-19.
71146 2008-09-26  Bruno Haible  <bruno@clisp.org>
71148         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
71150 2008-09-26  Bruno Haible  <bruno@clisp.org>
71152         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
71153         * modules/fwriteerror (Depends-on): Add errno.
71155 2008-09-26  Bruno Haible  <bruno@clisp.org>
71157         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
71158         * tests/test-vc-list-files-cvs.sh: Likewise.
71160 2008-09-26  Bruno Haible  <bruno@clisp.org>
71162         * doc/posix-headers/sys_resource.texi: Reorder items.
71164 2008-09-26  Jim Meyering  <meyering@redhat.com>
71166         fts: tweak inode comparison function
71167         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
71168         inode numbers, as documented.
71170         fts: sort dirent entries on inode number before traversing
71171         This avoids a quadratic, seek-related performance penalty when
71172         operating on a directory containing many entries (measurable at 10k;
71173         3.5 hours at 2 million entries with a cold cache) on certain types
71174         of file systems, including ext3 and ext4, but not tmpfs.
71175         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
71176         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
71177         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
71178         (fs_handles_readdir_ordered_dirents_efficiently): New function.
71179         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
71180         (fts_build): Set the stat.st_ino member from D_INO.
71181         If it is likely to be useful, sort dirent entries on inode number.
71183         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
71184         and the struct statfs.f_type member.
71185         * modules/fts (Depends-on): Add d-ino.
71187 2008-09-26  Bruno Haible  <bruno@clisp.org>
71189         * modules/sigpipe-die (Depends-on): Add sigpipe.
71191         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
71192         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
71193         and GNULIB_STDIO_H_SIGPIPE are set.
71194         * lib/stdio-write.c: New file.
71195         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
71196         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71197         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71198         REPLACE_STDIO_WRITE_FUNCS.
71199         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
71200         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71201         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71202         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
71203         * modules/stdio (Files): Add lib/stdio-write.c.
71204         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
71205         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
71206         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
71207         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
71208         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
71209         REPLACE_FPRINTF_POSIX.
71210         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
71211         REPLACE_PRINTF_POSIX.
71212         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
71213         REPLACE_VFPRINTF_POSIX.
71214         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
71215         REPLACE_VPRINTF_POSIX.
71216         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
71217         SIGPIPE issue.
71218         * doc/posix-functions/fputc.texi: Likewise.
71219         * doc/posix-functions/fputs.texi: Likewise.
71220         * doc/posix-functions/fwrite.texi: Likewise.
71221         * doc/posix-functions/printf.texi: Likewise.
71222         * doc/posix-functions/putc.texi: Likewise.
71223         * doc/posix-functions/putchar.texi: Likewise.
71224         * doc/posix-functions/puts.texi: Likewise.
71225         * doc/posix-functions/vfprintf.texi: Likewise.
71226         * doc/posix-functions/vprintf.texi: Likewise.
71228         * modules/safe-write (Depends-on): Add write.
71230         * modules/sigpipe-tests: New file.
71231         * tests/test-sigpipe.c: New file.
71232         * tests/test-sigpipe.sh: New file.
71234         * modules/write: New file.
71235         * lib/unistd.in.h: Include <sys/types.h>.
71236         (write): New declaration.
71237         * lib/write.c: New file.
71238         * m4/write.m4: New file.
71239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71240         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
71241         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
71242         GNULIB_WRITE, REPLACE_WRITE.
71243         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
71244         and the SIGPIPE issue.
71246         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
71247         (raise): New declaration.
71248         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
71249         (ext_signal): New function.
71250         (rpl_raise): New function.
71251         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
71252         GNULIB_SIGNAL_H_SIGPIPE.
71253         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
71254         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
71256         * modules/sigpipe: New file.
71257         * m4/sigpipe.m4: New file.
71259 2008-09-25  Derek Price  <derek@ximbiot.com>
71260             Bruno Haible  <bruno@clisp.org>
71262         * gnulib-tool (func_import): Report all license incompatibilities, not
71263         just the first one.
71265 2008-09-25  Bruno Haible  <bruno@clisp.org>
71267         * gnulib-tool (func_import): When computing the edits, consider not
71268         only the Makefile.ams that exist but also those that will be generated.
71270 2008-09-25  Simon Josefsson  <simon@josefsson.org>
71272         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
71273         fixes gnulib-tool --test warning about duplicate dependency.
71275 2008-09-25  Bruno Haible  <bruno@clisp.org>
71277         * gnulib-tool: Don't ask the user to perform edits in the generated
71278         Makefile.ams.
71279         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
71280         apply to the Makefile.am being generated.
71281         (func_emit_tests_Makefile_am): Execute edits that apply to the
71282         Makefile.am being generated.
71283         (func_import): Setup list of Makefile.am edits before emitting the
71284         Makefile.ams, not at the end.
71285         (func_create_testdir): Update.
71286         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71288 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71290         * gnulib-tool (func_import): Store the --tests-base option in the
71291         comment in gnulib-cache.m4.
71293 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
71295         * NEWS: Document increased portability that sys_select now provides.
71297         * lib/sys_select.in.h: Install select wrapper.
71298         * lib/sys_socket.in.h: Use more descriptive name when there is no
71299         select wrapper.
71300         * lib/winsock-select.c: New.
71301         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
71302         Require gl_HEADER_SYS_SOCKET.
71303         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
71304         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
71305         * tests/test-sys_select.c: Add functional tests.
71307 2008-09-24  Eric Blake  <ebb9@byu.net>
71309         open, fopen: close fd leak in last patch
71310         * lib/open.c (rpl_open): Close fd before returning error.
71311         * lib/fopen.c (rpl_fopen): Close fd before returning error.
71312         * doc/posix-functions/open.texi (open): Document that Irix also
71313         has the bug.
71314         * doc/posix-functions/fopen.texi (fopen): Likewise.
71315         Reported by Paolo Bonzini.
71317 2008-09-24  Bruno Haible  <bruno@clisp.org>
71319         Ensure that a filename ending in a slash cannot be used to access a
71320         non-directory.
71321         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
71322         to check whether it's really a directory.
71323         * lib/fopen.c: Include fcntl.h, unistd.h.
71324         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
71325         and fdopen().
71326         * modules/fopen (Depends-on): Add unistd.
71327         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
71328         * tests/test-fopen.c (main): Likewise.
71329         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
71330         * doc/posix-functions/fopen.texi: Likewise.
71331         Reported by Eric Blake.
71333 2008-09-23  Eric Blake  <ebb9@byu.net>
71335         c-stack: avoid compiler optimizations when provoking overflow
71336         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
71337         recursion harder to optimize, to ensure a stack overflow occurs.
71338         * tests/test-c-stack.c (recurse): Likewise.
71339         Borrowed from libsigsegv.
71341         c-stack: work around Irix sigaltstack bug
71342         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
71343         whether sigaltstack uses wrong end of stack_t (copied in part from
71344         libsigsegv).
71345         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
71346         Irix bug, without requiring an over-allocation.
71347         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
71348         bug.
71350         fopen: document mingw bug on directories
71351         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
71352         not allowing a stream visiting a directory, even though reading
71353         from such a stream is not portable.
71355 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71357         * lib/poll.c: Rewrite.
71358         * modules/poll: Depend on alloca.
71360 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71362         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
71363         instead define prototypes for a full set of wrappers.  Ensure
71364         that Cygwin does not use the compatibility code, which is only
71365         for MinGW.
71366         * lib/winsock.c: New.
71367         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
71368         * modules/sys_socket: Add lib/winsock.c.
71370         * modules/poll-tests: Add errno and perror.
71371         * tests/test-poll.c: Use ioctl, not ioctlsocket.
71373 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71375         * tests/test-poll.c: Downgrade minimum needed Winsock version.
71377 2008-09-23  Bruno Haible  <bruno@clisp.org>
71379         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
71380         * doc/glibc-functions/*: Likewise.
71382 2008-09-23  Simon Josefsson  <simon@josefsson.org>
71384         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
71385         success.
71387 2008-09-22  Eric Blake  <ebb9@byu.net>
71388             Bruno Haible  <bruno@clisp.org>
71390         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
71391         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
71392         supply %A but mishandle pseudo-NaN.
71393         Reported by Simon Josefsson.
71395 2008-09-21  Bruno Haible  <bruno@clisp.org>
71397         * tests/test-lock.c (main): Tweak skip message.
71398         * tests/test-tls.c (main): Likewise.
71400 2008-09-21  Bruno Haible  <bruno@clisp.org>
71402         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
71403         whether 'struct sigaction' has sa_sigaction here...
71404         (gl_PREREQ_SIG_HANDLER_H): ... not here.
71405         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
71407 2008-09-21  Bruno Haible  <bruno@clisp.org>
71409         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
71410         section.
71411         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
71412         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
71413         the new section.
71414         (Support for obsolete systems lacking POSIX:2001): New section.
71415         (String handling <string.h>): Move strdup to the new section.
71416         Suggested by Simon Josefsson and Paolo Bonzini.
71418 2008-09-21  Bruno Haible  <bruno@clisp.org>
71420         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
71421         exponents in %e and %g results on 'long double'. Needed for mingw's
71422         improved *printf functions.
71423         * tests/test-vasprintf-posix.c (test_function): Likewise.
71424         * tests/test-snprintf-posix.h (test_function): Likewise.
71425         * tests/test-sprintf-posix.h (test_function): Likewise.
71426         Reported by Eric Blake.
71428 2008-09-21  Bruno Haible  <bruno@clisp.org>
71430         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
71431         * tests/test-sprintf-posix.h (test_function): Likewise.
71433 2008-09-21  Bruno Haible  <bruno@clisp.org>
71435         * modules/getpass (Depends-on): Add strdup-posix.
71437         New module 'strdup-posix'.
71438         * modules/strdup-posix: New file.
71439         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
71440         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
71441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71442         REPLACE_STRDUP.
71443         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
71444         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
71445         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71446         strdup-posix.
71448         * modules/strdup (Depends-on): Remove malloc-posix.
71450 2008-09-20  Bruno Haible  <bruno@clisp.org>
71452         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
71453         Wildenhues.
71455 2008-09-20  Bruno Haible  <bruno@clisp.org>
71457         Ensure that wint_t gets defined on IRIX 5.3.
71458         * lib/wchar.in.h (wint_t): Define if not defined by the system.
71459         * lib/wctype.in.h (wint_t): Likewise.
71460         (__wctype_wint_t): Remove type.
71461         (isw*): Use wint_t instead of __wctype_wint_t.
71462         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
71463         * modules/wchar (Files): Add m4/wint_t.m4.
71464         (Makefile.am): Substitute HAVE_WINT_T.
71465         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
71466         * tests/test-wctype.c: Check that wint_t is defined.
71467         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
71468         * doc/posix-headers/wctype.texi: Likewise.
71469         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71471 2008-09-18  Bruno Haible  <bruno@clisp.org>
71473         * gnulib-tool (func_exit): Update comment.
71475 2008-09-18  Simon Josefsson  <simon@josefsson.org>
71477         * modules/getaddrinfo (Depends-on): Remove strdup, this module
71478         assumes strdup exists and does not depend on strdup to return
71479         ENOMEM on out of memory conditions.
71481 2008-09-18  Bruno Haible  <bruno@clisp.org>
71483         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
71484         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
71485         digits for the exponent.
71487 2008-09-18  Jim Meyering  <meyering@redhat.com>
71488             Bruno Haible  <bruno@clisp.org>
71490         * lib/vasnprintf.c (decimal_point_char): Define also if
71491         NEED_PRINTF_INFINITE_LONG_DOUBLE.
71493 2008-09-16  Bruno Haible  <bruno@clisp.org>
71494         and Eric Blake  <ebb9@byu.net>
71496         vasnprintf: support Irix 5.3
71497         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
71498         that mishandle long double infinity.
71499         Reported by Tom G. Christensen.
71501 2008-09-16  Bruno Haible  <bruno@clisp.org>
71503         * doc/glibc-functions/scandir.texi: Mention the function is missing on
71504         Solaris 9.
71505         * doc/glibc-functions/alphasort.texi: Likewise.
71506         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
71508 2008-09-16  Jim Meyering  <meyering@redhat.com>
71510         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
71511         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
71512         a umask modification leak out of a subshell.  Otherwise, the
71513         opensolaris /bin/sh would be accepted and thus cause unwarranted
71514         failures in the coreutils test suite.
71516 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
71518         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
71519         to succeed.
71521 2008-09-16  Jim Meyering  <meyering@redhat.com>
71523         avoid spurious test failure when library is built without ACL support
71524         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
71525         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
71526         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
71527         * tests/test-copy-acl.sh: Likewise.
71529 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71531         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
71532         based on character occurrence counts.
71534 2008-09-15  Eric Blake  <ebb9@byu.net>
71536         tests: avoid some compiler warnings
71537         * tests/test-memchr.c (main): Pass NULL indirectly.
71538         * tests/test-closein.c (main): Avoid unused variable.
71540 2008-09-15  Bruno Haible  <bruno@clisp.org>
71542         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
71543         are missing on OpenBSD 4.0 individually.
71544         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71546 2008-09-15  Bruno Haible  <bruno@clisp.org>
71548         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
71549         * doc/posix-functions/strerror.texi: Mention also Cygwin.
71550         * doc/posix-functions/perror.texi: Likewise.
71551         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
71552         is missing.
71553         Reported by Eric Blake.
71555         * lib/errno.in.h: Use replacement values >= 2000.
71556         Reported by Eric Blake.
71558 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71560         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
71561         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
71562         limit.
71563         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
71564         compareseq was aborted.
71566 2008-09-14  Bruno Haible  <bruno@clisp.org>
71568         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
71569         yvec_edit_count.
71570         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
71571         (fstrcmp_bounded): Simplify result computation accordingly.
71573 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71575         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
71576         (fstrcmp): Define in terms of fstrcmp_bounded.
71577         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
71578         lower_bound argument.
71579         Return quickly if the result is certainly < lower_bound.
71580         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
71582 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71584         * lib/diffseq.h (EARLY_ABORT): New macro.
71585         (compareseq): Change return type to bool. Return true when EARLY_ABORT
71586         evaluates to true.
71588 2008-09-14  Bruno Haible  <bruno@clisp.org>
71590         * modules/perror-tests: New file.
71591         * tests/test-perror.sh: New file.
71592         * tests/test-perror.c: New file.
71594         New module 'perror'.
71595         * lib/stdio.in.h (perror): New declaration.
71596         * lib/perror.c: New file.
71597         * m4/perror.m4: New file.
71598         * modules/perror: New file.
71599         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
71600         * doc/posix-functions/perror.texi: Mention the perror module.
71601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
71602         REPLACE_PERROR.
71603         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
71604         REPLACE_PERROR.
71606 2008-09-14  Bruno Haible  <bruno@clisp.org>
71608         * modules/stdio (Makefile.am): Reorder to match the order in
71609         lib/stdio.in.h.
71610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71612 2008-09-13  Bruno Haible  <bruno@clisp.org>
71614         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
71616 2008-09-13  Bruno Haible  <bruno@clisp.org>
71618         Extend strerror to cover the added errno values.
71619         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
71620         (rpl_strerror): Provide error messages for the added errno values and
71621         for the WSA* values.
71622         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
71623         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
71624         strerror.
71625         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
71626         * modules/strerror (Depends-on): Add errno.
71627         * doc/posix-functions/strerror.texi: Document the change.
71628         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
71629         and EOVERFLOW.
71631 2008-09-13  Bruno Haible  <bruno@clisp.org>
71633         * modules/EOVERFLOW: Remove file.
71634         * m4/eoverflow.m4: Remove file.
71635         * modules/EOVERFLOW-tests: Remove file.
71636         * tests/test-EOVERFLOW.c: Remove file.
71637         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
71638         * modules/ftell (Depends-on): Likewise.
71639         * modules/getdelim (Depends-on): Likewise.
71640         * modules/getugroups (Depends-on): Likewise.
71641         * modules/poll (Depends-on): Likewise.
71642         * modules/snprintf (Depends-on): Likewise.
71643         * modules/sprintf-posix (Depends-on): Likewise.
71644         * modules/vasnprintf (Depends-on): Likewise.
71645         * modules/vasprintf (Depends-on): Likewise.
71646         * modules/vfprintf-posix (Depends-on): Likewise.
71647         * modules/vsnprintf (Depends-on): Likewise.
71648         * modules/vsprintf-posix (Depends-on): Likewise.
71649         * modules/xvasprintf (Depends-on): Likewise.
71650         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71651         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
71652         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
71653         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
71654         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71655         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
71656         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
71657         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
71658         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71659         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
71660         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
71661         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
71662         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71663         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
71664         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
71665         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
71666         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71667         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
71668         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
71669         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
71670         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71671         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
71672         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
71673         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
71674         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
71675         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71676         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
71677         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
71678         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
71679         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
71680         * MODULES.html.sh: Remove EOVERFLOW.
71681         * NEWS: Mention the change.
71683 2008-09-13  Bruno Haible  <bruno@clisp.org>
71685         * modules/errno-tests: New file.
71686         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
71688         * lib/errno.in.h: New file.
71689         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
71690         * modules/errno: New file.
71691         * doc/posix-headers/errno.texi: Update documentation.
71692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
71694 2008-09-13  Bruno Haible  <bruno@clisp.org>
71696         * tests/test-poll.c: Use #if for native Windows, rather than testing
71697         __MSVCRT__.
71699 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71700             Bruno Haible  <bruno@clisp.org>
71702         * lib/glob.c: Don't include <pwd.h> on native Windows.
71703         (WINDOWS32): New macro.
71704         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
71706 2008-09-13  Bruno Haible  <bruno@clisp.org>
71708         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
71709         (ETIMEDOUT): Remove macro.
71710         (glthread_cond_timedwait_multithreaded): New declaration.
71711         (glthread_cond_timedwait): Use it.
71712         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
71713         (glthread_cond_timedwait_multithreaded): New function.
71715 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
71717         * modules/poll-tests: Do not check for io.h.
71718         * tests/test-poll.c: Check for __MSVCRT__ instead.
71720 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
71722         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
71723         * modules/poll-tests: Add inet_pton, stdbool, sockets.
71724         * tests/test-poll.c: Use them.  Use _pipe on Windows.
71726 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
71728         * modules/poll-tests: New.
71729         * tests/test-poll.c: New.
71731 2008-09-12  Eric Blake  <ebb9@byu.net>
71733         frexp: test for NetBSD failure on -0.0
71734         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
71735         not all, bugs from NetBSD 3.0 have been fixed.
71736         * doc/posix-functions/frexp.texi (frexp): Document bug.
71737         Reported by Thomas Klausner.
71739         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
71740         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
71741         literal -0.0.
71742         Reported by Jonathan C. Patschke <jp@centtech.com>.
71744 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71746         * lib/glthread/cond.h: Use dummy implementation also if
71747         USE_WIN32_THREADS.
71749 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71751         * modules/fnmatch-posix (License): Change to LGPLv2+.
71752         * modules/fnmatch-gnu (License): Likewise.
71754 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71756         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
71758 2008-09-11  Jim Meyering  <meyering@redhat.com>
71760         * users.txt: Add gtk-vnc.
71762 2008-09-08  Simon Josefsson  <simon@josefsson.org>
71764         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
71765         rotate amounts.
71767         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
71768         required for 16-bit and 8-bit rotates.
71769         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
71770         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
71771         UINT8_MAX instead of hard-coded constants.
71772         Suggested by Paul Eggert.
71774 2008-09-07  Bruno Haible  <bruno@clisp.org>
71776         * tests/test-striconveh.c (main): Check behaviour when converting from
71777         UTF-7.
71779         Make striconveh work better with stateful encodings.
71780         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
71781         that iconv does not increment the inptr when returning -1/EINVAL.
71783 2008-09-07  Bruno Haible  <bruno@clisp.org>
71785         * build-aux/config.rpath: Update according to libtool-2.2.6.
71786         * build-aux/config.libpath: Likewise.
71788 2008-09-06  Bruno Haible  <bruno@clisp.org>
71790         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
71791         * lib/freadptr.c (freadptr): Likewise.
71792         * lib/freadseek.c (freadptrinc): Likewise.
71793         Reported by Simon Josefsson.
71795 2008-09-06  Bruno Haible  <bruno@clisp.org>
71797         * modules/freadptr (License): Change to LGPLv2+.
71798         * modules/freadseek (License): Likewise.
71799         Suggested by Eric Blake.
71801         * modules/memchr2 (License): Change to LGPLv2+.
71802         Approved by Eric Blake.
71804 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71805             Bruno Haible  <bruno@clisp.org>
71807         Make gnulib-tool work with native 'sed' on AIX.
71808         * gnulib-tool (sed_noop): New variable.
71809         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
71810         func_add_or_update, func_create_testdir): Use it to initialize sed
71811         script variables.
71812         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71814 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
71815             Bruno Haible  <bruno@clisp.org>
71817         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
71818         also works after #include directives.
71820 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
71822         getdate.y: reject an out-of-range timezone value
71823         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
71824         the range [-24...+24].  When specified with only one or two digits,
71825         * tests/test-getdate.c: Tests for the fix.
71826         * doc/getdate.texi: Document this change.
71828 2008-09-03  Bruno Haible  <bruno@clisp.org>
71830         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
71832 2008-09-02  Simon Josefsson  <simon@josefsson.org>
71834         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
71835         <bruce.korb@gmail.com> with ideas from Ben Pfaff
71836         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
71837         Blake <ebb9@byu.net>.
71839         * tests/test-bitrotate.c: Add more test vectors.
71841 2008-09-02  Eric Blake  <ebb9@byu.net>
71843         vasnprintf-posix: handle large precision via %.*d
71844         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
71845         when handling it ourselves.
71846         * tests/test-vasnprintf-posix.c (test_function): Add test.
71847         * tests/test-snprintf-posix.h (test_function): Likewise.
71848         * tests/test-sprintf-posix.h (test_function): Likewise.
71849         * tests/test-vasprintf-posix.c (test_function): Likewise.
71850         Reported by Alain Guibert.
71852 2008-09-01  Eric Blake  <ebb9@byu.net>
71854         c-stack: make configure-time check more robust
71855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
71856         successful sigaction call.
71857         Reported by Tom G. Christensen.
71859 2008-09-01  Bruno Haible  <bruno@clisp.org>
71861         New module 'findprog-lgpl'.
71862         * modules/findprog-lgpl: New file.
71863         * lib/findprog-lgpl.c: New file.
71864         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
71865         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
71866         to decide whether to use strdup or xstrdup, concatenated_filename or
71867         xconcatenated_filename.
71869 2008-09-01  Bruno Haible  <bruno@clisp.org>
71871         Split module 'concat-filename' into 'concat-filename' (LGPL) and
71872         'xconcat-filename' (GPL).
71873         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
71874         (License): Change to LGPLv2+.
71875         * modules/xconcat-filename: New file.
71876         * lib/concat-filename.h (concatenated_filename): Change specification.
71877         (xconcatenated_filename): New declaration.
71878         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
71879         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
71880         memory situations.
71881         * lib/xconcat-filename.c: New file.
71882         * NEWS: Mention the change.
71883         * lib/findprog.c: Include concat-filename.h, not filename.h.
71884         (find_in_path): Use xconcatenated_filename instead of
71885         concatenated_filename.
71886         * lib/javacomp.c: Include concat-filename.h, not filename.h.
71887         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71888         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71889         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71890         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
71891         instead of concatenated_filename.
71892         * lib/javaexec.c: Include concat-filename.h, not filename.h.
71893         (execute_java_class): Use xconcatenated_filename instead of
71894         concatenated_filename.
71895         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
71896         * modules/javacomp (Depends-on): Likewise.
71897         * modules/javaexec (Depends-on): Likewise.
71899 2008-09-01  Bruno Haible  <bruno@clisp.org>
71901         Split module 'filename' into 'filename' and 'concat-filename'.
71902         * modules/filename: Keep only lib/filename.h.
71903         (License): Change to LGPLv2+.
71904         * modules/concat-filename: New file, extracted from modules/filename.
71905         * lib/filename.h (concatenated_filename): Remove declaration.
71906         * lib/concat-filename.h: New file, extracted from lib/filename.h.
71907         * lib/concat-filename.c: Include concat-filename.h.
71908         * NEWS: Mention the change.
71910 2008-09-01  Simon Josefsson  <simon@josefsson.org>
71912         * lib/bitrotate.h (rotl8, rotr8): Add.
71914         * modules/bitrotate (configure.ac): Need
71915         AC_REQUIRE([AC_C_INLINE]).
71916         (Description): Mention stdint.h.  Reported by Bruno Haible
71917         <bruno@clisp.org>.
71919         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
71920         Paolo Bonzini <bonzini@gnu.org>.
71922 2008-08-31  Bruno Haible  <bruno@clisp.org>
71924         Assume Solaris specific bi-arch conventions on Solaris systems.
71925         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
71926         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
71927         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
71928         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
71929         like acl_libdirstem.
71930         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
71931         acl_libdirstem.
71932         * NEWS: Mention the change.
71933         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
71935 2008-08-31  Jim Meyering  <meyering@redhat.com>
71937         * lib/strftime.h: Add comments describing the two added arguments.
71939         remove duplicate #include directives
71940         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
71941         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
71943 2008-08-31  Bruno Haible  <bruno@clisp.org>
71945         New module 'sigpipe-die'.
71946         * modules/sigpipe-die: New file.
71947         * lib/sigpipe-die.h: New file.
71948         * lib/sigpipe-die.c: New file.
71949         * MODULES.html.sh (Signal handling): Add sigpipe-die.
71951 2008-08-31  Bruno Haible  <bruno@clisp.org>
71953         Don't override previously installed signal handlers.
71954         * lib/fatal-signal.c (saved_sigactions): New variable.
71955         (uninstall_handlers): Reset the signal to the saved handler, not
71956         to SIG_DFL (except when ignored).
71957         (install_handlers): Save the previous handlers.
71959 2008-08-30  Bruno Haible  <bruno@clisp.org>
71961         * gnulib-tool (func_reset_sigpipe): New function.
71962         (func_get_automake_snippet, func_modules_transitive_closure,
71963         func_import): Invoke it before a join command that reads from stdin,
71964         to avoid "echo: write error: Broken pipe" error messages on stderr.
71965         Reported by Sam Steingold <sds@gnu.org>.
71967 2008-08-30  Bruno Haible  <bruno@clisp.org>
71969         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
71970         Code copied from m4/open.m4.
71971         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
71972         access and the filename ends in a slash. Code copied from lib/open.c.
71973         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
71974         * tests/test-fopen.c (main): Check against bug with trailing slash.
71976 2008-08-29  Bruno Haible  <bruno@clisp.org>
71978         Avoid some "gcc -pedantic" warnings.
71979         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
71980         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
71981         * lib/dirent.in.h: Likewise.
71982         * lib/fcntl.in.h: Likewise.
71983         * lib/float.in.h: Likewise.
71984         * lib/iconv.in.h: Likewise.
71985         * lib/inttypes.in.h: Likewise.
71986         * lib/locale.in.h: Likewise.
71987         * lib/math.in.h: Likewise.
71988         * lib/netinet_in.in.h: Likewise.
71989         * lib/search.in.h: Likewise.
71990         * lib/signal.in.h: Likewise.
71991         * lib/stdarg.in.h: Likewise.
71992         * lib/stdint.in.h: Likewise.
71993         * lib/stdio.in.h: Likewise.
71994         * lib/stdlib.in.h: Likewise.
71995         * lib/string.in.h: Likewise.
71996         * lib/strings.in.h: Likewise.
71997         * lib/sys_select.in.h: Likewise.
71998         * lib/sys_socket.in.h: Likewise.
71999         * lib/sys_stat.in.h: Likewise.
72000         * lib/sys_time.in.h: Likewise.
72001         * lib/sysexits.in.h: Likewise.
72002         * lib/time.in.h: Likewise.
72003         * lib/unistd.in.h: Likewise.
72004         * lib/wchar.in.h: Likewise.
72005         * lib/wctype.in.h: Likewise.
72006         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
72007         * modules/fchdir (Makefile.am): Likewise.
72008         * modules/fcntl (Makefile.am): Likewise.
72009         * modules/float (Makefile.am): Likewise.
72010         * modules/iconv_open (Makefile.am): Likewise.
72011         * modules/inttypes (Makefile.am): Likewise.
72012         * modules/locale (Makefile.am): Likewise.
72013         * modules/math (Makefile.am): Likewise.
72014         * modules/netinet_in (Makefile.am): Likewise.
72015         * modules/search (Makefile.am): Likewise.
72016         * modules/signal (Makefile.am): Likewise.
72017         * modules/stdarg (Makefile.am): Likewise.
72018         * modules/stdint (Makefile.am): Likewise.
72019         * modules/stdio (Makefile.am): Likewise.
72020         * modules/stdlib (Makefile.am): Likewise.
72021         * modules/string (Makefile.am): Likewise.
72022         * modules/strings (Makefile.am): Likewise.
72023         * modules/sys_select (Makefile.am): Likewise.
72024         * modules/sys_socket (Makefile.am): Likewise.
72025         * modules/sys_stat (Makefile.am): Likewise.
72026         * modules/sys_time (Makefile.am): Likewise.
72027         * modules/sysexits (Makefile.am): Likewise.
72028         * modules/time (Makefile.am): Likewise.
72029         * modules/unistd (Makefile.am): Likewise.
72030         * modules/wchar (Makefile.am): Likewise.
72031         * modules/wctype (Makefile.am): Likewise.
72032         Reported by Reuben Thomas <rrt@sc3d.org>.
72034 2008-08-29  Bruno Haible  <bruno@clisp.org>
72036         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
72037         any more.
72039 2008-08-29  Simon Josefsson  <simon@josefsson.org>
72041         * MODULES.html.sh (Misc): Add bitrotate.
72043         * modules/bitrotate: New file.
72045         * lib/bitrotate.h: New file.
72047         * modules/bitrotate-tests: New file.
72049         * tests/test-bitrotate.c: New file.
72051         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
72052         on the bitrotate module.
72054         * lib/arctwo.c: Use new bitrotate module.
72056 2008-08-29  Jim Meyering  <meyering@redhat.com>
72058         bootstrap: merge changes from coreutils
72059         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
72060         of copied files.  Remove a kludge, now that this is fixed.
72061         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
72062         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
72063         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
72065 2008-08-29  Bruno Haible  <bruno@clisp.org>
72067         * MODULES.html.sh: Remove --cvs-urls option.
72069 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
72071         maint.mk: adjust to file name change
72072         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
72074 2008-08-28  Jim Meyering  <meyering@redhat.com>
72076         * modules/getndelim2 (License): Relicense to LGPLv2+.
72077         Approved by Richard Stallman for the version of 1995, and by
72078         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
72080 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
72082         * lib/getdelim.c (flockfile, funlockfile): Make all of them
72083         dummy if one is not available.  Do not touch them if
72084         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
72085         (getc_maybe_unlocked): New.
72086         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
72088 2008-08-26  Eric Blake  <ebb9@byu.net>
72090         doc/INSTALL: resync from autoconf
72091         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
72092         (INSTALL_PRELUDE): Delete; this is done more efficiently by
72093         moving...
72094         * install.texi [!autoconf]: ...here.  Resync from autoconf.
72095         * INSTALL: Regenerate.
72096         * INSTALL.ISO: New file.
72097         * INSTALL.UTF-8: Likewise.
72099 2008-08-26  Jim Meyering  <meyering@redhat.com>
72101         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
72102         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
72103         these definitions conditional, so that they may be overridden, too.
72105 2008-08-26  Bruno Haible  <bruno@clisp.org>
72107         Generate INSTALL file variants with prettier quotes.
72108         * doc/Makefile (INSTALL_PRELUDE): New macro.
72109         (INSTALL): Use it.
72110         (INSTALL.ISO, INSTALL.UTF-8): New rules.
72112 2008-08-26  Bruno Haible  <bruno@clisp.org>
72114         Run makeinfo in an English locale.
72115         * doc/Makefile (MAKEINFO): New variable.
72117 2008-08-26  Bruno Haible  <bruno@clisp.org>
72119         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
72120         Suggested by Eric Blake.
72122 2008-08-25  Bruno Haible  <bruno@clisp.org>
72124         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
72126 2008-08-25  Eric Blake  <ebb9@byu.net>
72128         c-stack: test that stack overflow can be caught
72129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
72130         that platform allows handling stack overflow; at least OS/2 EMX
72131         has sigaltstack, but crashes before transferring control to
72132         handler on stack overflow.
72133         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
72134         check for HAVE_STACK_OVERFLOW_HANDLING.
72135         Reported by Elbert Pol.
72137 2008-08-25  Bruno Haible  <bruno@clisp.org>
72139         * doc/posix-functions/strftime.texi: Fix description of strftime
72140         module.
72142 2008-08-24  Bruno Haible  <bruno@clisp.org>
72144         * tests/uniwidth/test-uc_width2.c: New file.
72145         * tests/uniwidth/test-uc_width2.sh: New file.
72146         * modules/uniwidth/width-tests (Files): Add the new files.
72147         (TESTS): Add uniwidth/test-uc_width2.sh.
72148         (TESTS_ENVIRONMENT): New variable.
72149         (check_PROGRAMS): Add test-uc_width2.
72150         (test_uc_width2_SOURCES): New variable.
72152         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
72153         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
72154         not 0x00AB.
72155         Reported by Alexander V. Lukyanov <lav@netis.ru>.
72157 2008-08-22  Eric Blake  <ebb9@byu.net>
72159         test-lock, test-tls: mention why a test is skipped
72160         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
72161         skipped.
72162         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
72164         count-one-bits: relax license
72165         * modules/count-one-bits (License): Relicense to LGPLv2+.
72166         Suggested by Ludovic Courtès, approved by Ben Pfaff.
72168 2008-08-22  Andreas Schwab  <schwab@suse.de>
72170         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72171         Remove spurious space in assignment.
72173 2008-08-21  Simon Josefsson  <simon@josefsson.org>
72175         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
72176         Paul Eggert <eggert@CS.UCLA.EDU>.
72178 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
72180         * modules/gettext: Add m4/threadlib.m4.
72182 2008-08-19  Eric Blake  <ebb9@byu.net>
72184         test-c-stack: fix compilation failure on FreeBSD 5.0
72185         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
72186         headers before <sys/resource.h>.
72187         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
72188         the bug.
72189         Reported by Nelson H. F. Beebe.
72191         strverscmp: migrate from "strverscmp.h" to <string.h>
72192         * modules/string (Makefile.am): Add new hooks.
72193         * modules/strverscmp (Files): Remove strverscmp.h.
72194         (Depends-on): Add string.
72195         (configure.ac): Add indicator.
72196         (Include): Mention new header.
72197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
72198         defaults.
72199         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
72200         results.
72201         * lib/strverscmp.h: Delete.
72202         * lib/string.in.h (strverscmp): Provide declaration, when needed.
72203         * tests/test-strverscmp.c (includes): Adjust client.
72204         * lib/check-version.c (includes): Likewise.
72205         * NEWS: Document the change.
72207         strverscmp: add unit test
72208         * modules/strverscmp-tests: New file.
72209         * tests/test-strverscmp.c: Likewise.
72211 2008-08-19  Simon Josefsson  <simon@josefsson.org>
72213         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
72214         regarding Windows crypto stuff, from Mono.
72216 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
72218         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
72219         if present, for intel RND.  Return error on failures.
72221 2008-08-18  Ben Pfaff  <blp@gnu.org>
72223         gitlog-to-changelog: give better diagnostic for failed pipe-open
72224         * build-aux/gitlog-to-changelog: Improve error message: suggest
72225         that the version of Git may be too old.
72227 2008-08-18  Simon Josefsson  <simon@josefsson.org>
72229         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
72230         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
72232 2008-08-18  Bruno Haible  <bruno@clisp.org>
72234         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
72235         pthread_in_use().
72237 2008-08-18  Bruno Haible  <bruno@clisp.org>
72239         * lib/glthread/threadlib.c: Include <pthread.h>.
72241 2008-08-18  Bruno Haible  <bruno@clisp.org>
72243         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
72244         glthread_recursive_lock_* macros.
72245         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
72246         Fix syntax error.
72248 2008-08-18  Bruno Haible  <bruno@clisp.org>
72250         * lib/glthread/thread.c: Avoid forcing a context switch right after
72251         thread creation.
72253 2008-08-17  Bruno Haible  <bruno@clisp.org>
72255         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
72256         * lib/glthread/thread.h: Provide Win32 specific implementation.
72257         * modules/thread (Files): Add lib/glthread/thread.c.
72258         (Depends-on): Add lock.
72259         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
72261 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72263         New module 'yield'.
72264         * modules/yield: New file.
72265         * lib/glthread/yield.h: New file.
72266         * m4/yield.m4: New file.
72267         * MODULES.html.sh (Multithreading): Add yield.
72269 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72271         New module 'thread'.
72272         * modules/thread: New file.
72273         * lib/glthread/thread.h: New file.
72274         * m4/thread.m4: New file.
72275         * MODULES.html.sh (Multithreading): Add thread.
72277 2008-08-17  Bruno Haible  <bruno@clisp.org>
72279         * lib/glthread/lock.h: Include <stdlib.h> always.
72280         * lib/glthread/tls.h: Likewise.
72281         * lib/glthread/cond.h: Likewise.
72283 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72285         New module 'cond'.
72286         * modules/cond: New file.
72287         * lib/glthread/cond.h: New file.
72288         * lib/glthread/cond.c: New file.
72289         * m4/cond.m4: New file.
72290         * MODULES.html.sh (Multithreading): Add cond.
72292 2008-08-16  Eric Blake  <ebb9@byu.net>
72294         c-stack: fix regression on Irix 5.3 from 2008-06-21
72295         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
72296         sa_sigaction...
72297         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
72298         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
72299         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
72300         * modules/signal (Makefile.am): Use the value.
72301         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
72302         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
72303         * doc/posix-headers/signal.texi (signal.h): Document this
72304         portability issue.
72305         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
72306         Reported by Tom G. Christensen.
72308 2008-08-17  Bruno Haible  <bruno@clisp.org>
72310         New module 'threadlib'.
72311         * modules/threadlib: New file.
72312         * lib/glthread/threadlib.c: New file, extracted from
72313         lib/glthread/lock.c.
72314         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
72315         functions.
72316         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
72317         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
72318         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
72319         macros.
72320         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
72321         (gl_DISABLE_THREADS): Remove macro.
72322         * modules/lock (Files): Remove build-aux/config.rpath.
72323         (Depends-on): Remove havelib. Add threadlib.
72324         (configure.ac-early): Remove section.
72325         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
72326         * modules/tls (Depends-on): Remove lock. Add threadlib.
72327         (Link): New section, copied from threadlib.
72328         * MODULES.html.sh (Multithreading): Add threadlib.
72330 2008-08-14  Bruno Haible  <bruno@clisp.org>
72332         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
72333         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
72334         glthread_rwlock_unlock, glthread_rwlock_destroy,
72335         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
72336         glthread_recursive_lock_destroy): Define as macros always.
72337         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
72338         glthread_lock_lock.
72339         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
72340         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
72341         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
72342         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
72343         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
72344         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
72345         (glthread_recursive_lock_lock_func): Renamed from
72346         glthread_recursive_lock_lock.
72347         (glthread_recursive_lock_unlock_func): Renamed from
72348         glthread_recursive_lock_unlock.
72349         (glthread_recursive_lock_destroy_func): Renamed from
72350         glthread_recursive_lock_destroy.
72352 2008-08-14  Bruno Haible  <bruno@clisp.org>
72354         * lib/glthread/lock.h: Renamed from lib/lock.h.
72355         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
72356         * lib/glthread/tls.h: Renamed from lib/tls.h.
72357         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
72358         * lib/fstrcmp.c: Update includes.
72359         * lib/strsignal.c: Update includes.
72360         * modules/lock (Files, Makefile.am): Update.
72361         (Include): Change to "glthread/lock.h".
72362         * modules/tls (Files, Makefile.am): Update.
72363         (Include): Change to "glthread/tls.h".
72364         * tests/test-lock.c: Update includes.
72365         * tests/test-tls.c: Update includes.
72366         * NEWS: Mention the renamed header files.
72368 2008-08-11  Jim Meyering  <meyering@redhat.com>
72370         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
72372 2008-08-11  Eric Blake  <ebb9@byu.net>
72374         test-c-stack: avoid C99-ism
72375         * tests/test-c-stack.c (main): Fix whitespace, move declaration
72376         before statement.
72377         Reported by Alain Guibert.
72379 2008-08-10  Jim Meyering  <meyering@redhat.com>
72381         ensure that return value of uinttostr et al are not ignored
72382         * lib/inttostr.h (__GNUC_PREREQ): Define.
72383         (__attribute_warn_unused_result__): Define.
72384         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
72386 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
72388         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
72389         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
72391 2008-08-07  Jim Meyering  <meyering@redhat.com>
72393         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
72395         * modules/mkstemp (License): Relicense under LGPLv2+.
72396         * modules/tempname (License): Likewise.
72398 2008-08-06  Bruno Haible  <bruno@clisp.org>
72400         * lib/poll.c (poll): Further micro-optimization.
72402 2008-08-06  Jim Meyering  <meyering@redhat.com>
72404         inet_pton.c: use locale-independent tolower
72405         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
72406         (inet_pton6): Use c_tolower rather than tolower.
72407         * modules/inet_pton (Depends-on): Add c-ctype.
72409 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
72411         * lib/poll.c (poll): Avoid division when timeout is 0, cache
72412         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
72414 2008-08-06  Jim Meyering  <meyering@redhat.com>
72416         * modules/inet_pton (License): Relicense under LGPLv2+.
72418 2008-08-03  Bruno Haible  <bruno@clisp.org>
72420         Additional non-aborting API for lock and tls.
72421         * lib/lock.h: Include <errno.h>.
72422         (glthread_lock_init): New macro/function.
72423         (gl_lock_init): Define as wrapper around glthread_lock_init.
72424         (glthread_lock_lock): New macro/function.
72425         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
72426         (glthread_lock_unlock): New macro/function.
72427         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
72428         (glthread_lock_destroy): New macro/function.
72429         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
72430         (glthread_rwlock_init): New macro/function.
72431         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
72432         (glthread_rwlock_rdlock): New macro/function.
72433         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
72434         (glthread_rwlock_wrlock): New macro/function.
72435         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
72436         (glthread_rwlock_unlock): New macro/function.
72437         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
72438         (glthread_rwlock_destroy): New macro/function.
72439         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
72440         (glthread_recursive_lock_init): New macro/function.
72441         (gl_recursive_lock_init): Define as wrapper around
72442         glthread_recursive_lock_init.
72443         (glthread_recursive_lock_lock): New macro/function.
72444         (gl_recursive_lock_lock): Define as wrapper around
72445         glthread_recursive_lock_lock.
72446         (glthread_recursive_lock_unlock): New macro/function.
72447         (gl_recursive_lock_unlock): Define as wrapper around
72448         glthread_recursive_lock_unlock.
72449         (glthread_recursive_lock_destroy): New macro/function.
72450         (gl_recursive_lock_destroy): Define as wrapper around
72451         glthread_recursive_lock_destroy.
72452         (glthread_once): New macro/function.
72453         (gl_once): Define as wrapper around glthread_once.
72454         Update function declarations.
72455         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
72456         glthread_rwlock_init. Return error code.
72457         (glthread_rwlock_rdlock_multithreaded): Renamed from
72458         glthread_rwlock_rdlock. Return error code.
72459         (glthread_rwlock_wrlock_multithreaded): Renamed from
72460         glthread_rwlock_wrlock. Return error code.
72461         (glthread_rwlock_unlock_multithreaded): Renamed from
72462         glthread_rwlock_unlock. Return error code.
72463         (glthread_rwlock_destroy_multithreaded): Renamed from
72464         glthread_rwlock_destroy. Return error code.
72465         (glthread_recursive_lock_init_multithreaded): Renamed from
72466         glthread_recursive_lock_init. Return error code.
72467         (glthread_recursive_lock_lock_multithreaded): Renamed from
72468         glthread_recursive_lock_lock. Return error code.
72469         (glthread_recursive_lock_unlock_multithreaded): Renamed from
72470         glthread_recursive_lock_unlock. Return error code.
72471         (glthread_recursive_lock_destroy_multithreaded): Renamed from
72472         glthread_recursive_lock_destroy. Return error code.
72473         (glthread_once_call): Make static.
72474         (glthread_once_multithreaded): Renamed from glthread_once.
72475         * lib/tls.h: Include <errno.h>.
72476         (glthread_tls_key_init): New macro/function.
72477         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
72478         (glthread_tls_set): New macro/function.
72479         (gl_tls_set): Define as wrapper around glthread_tls_set.
72480         (glthread_tls_key_destroy): New macro/function.
72481         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
72482         Update function declarations.
72483         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
72484         glthread_tls_get.
72485         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72487 2008-08-04  Eric Blake  <ebb9@byu.net>
72489         gnumakefile: use space, not TAB, outside of targets
72490         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
72492 2008-08-02  Jim Meyering  <meyering@redhat.com>
72494         getdate.y: avoid locale-dependent date parsing failure
72495         In Turkish locales, getdate would fail to recognize keywords
72496         containing a lowercase "i".  The solution is not to rely on
72497         locale-sensitive case-conversion.
72498         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
72499         (lookup_word): Use c_toupper in place of toupper.
72500         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
72501         Reported by Vefa Bicakci <bicave@superonline.com> in
72502         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
72503         * modules/getdate (Depends-on): Add c-ctype.
72505 2008-08-02  Bruno Haible  <bruno@clisp.org>
72507         * gnulib-tool (func_import): When updating or creating a .gitignore
72508         file, prepend each added line with a slash, and ignore leading slashes
72509         from the existing lines.
72510         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72512 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72514         Portability fix for GNU make 3.79.1.
72515         * top/GNUmakefile: Avoid 'else COND', which older GNU make
72516         versions do not understand.
72518 2008-08-01  Bruno Haible  <bruno@clisp.org>
72520         Work around bug of HP-UX 10.20 cc with -0.0 literal.
72521         * tests/test-isnanf.h (zero): New variable.
72522         (main): Avoid literal -0.0f.
72523         * tests/test-isnand.h (zero): New variable.
72524         (main): Avoid literal -0.0.
72525         * tests/test-isnanl.h (zero): New variable.
72526         (main): Avoid literal -0.0L.
72527         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
72528         (test_float, test_double, test_long_double): Avoid literals -0.0f,
72529         -0.0, -0.0L.
72530         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
72531         (test_signbitd): Avoid literal -0.0.
72532         (test_signbitl): Avoid literal -0.0L.
72533         * tests/test-ceilf1.c (zero): New variable.
72534         (main): Avoid literal -0.0f.
72535         * tests/test-ceill.c (zero): New variable.
72536         (main): Avoid literal -0.0L.
72537         * tests/test-floorf1.c (zero): New variable.
72538         (main): Avoid literal -0.0f.
72539         * tests/test-floorl.c (zero): New variable.
72540         (main): Avoid literal -0.0L.
72541         * tests/test-roundf1.c (zero): New variable.
72542         (main): Avoid literal -0.0f.
72543         * tests/test-round1.c (zero): New variable.
72544         (main): Avoid literal -0.0.
72545         * tests/test-roundl.c (zero): New variable.
72546         (main): Avoid literal -0.0L.
72547         * tests/test-truncf1.c (zero): New variable.
72548         (main): Avoid literal -0.0f.
72549         * tests/test-trunc1.c (zero): New variable.
72550         (main): Avoid literal -0.0.
72551         * tests/test-truncl.c (zero): New variable.
72552         (main): Avoid literal -0.0L.
72553         * tests/test-frexp.c (zero): New variable.
72554         (main): Avoid literal -0.0.
72555         * tests/test-frexpl.c (zero): New variable.
72556         (main): Avoid literal -0.0L.
72557         * tests/test-ldexpl.c (zero): New variable.
72558         (main): Avoid literal -0.0L.
72559         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
72560         (zerod, zerol): New variables.
72561         (test_function): Avoid literals -0.0, -0.0L.
72562         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
72563         (zerod, zerol): New variables.
72564         (test_function): Avoid literals -0.0, -0.0L.
72565         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
72566         (zerod, zerol): New variables.
72567         (test_function): Avoid literals -0.0, -0.0L.
72568         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
72569         (zerod, zerol): New variables.
72570         (test_function): Avoid literals -0.0, -0.0L.
72571         * tests/test-strtod.c (zero): New variable.
72572         (main): Avoid literal -0.0.
72573         Reported by Jonathan C. Patschke <jp@centtech.com>.
72575 2008-07-31  Jim Meyering  <meyering@redhat.com>
72577         sha256.h: correct definition of SHA224_DIGEST_SIZE
72578         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
72579         Reported by Paulie Pena IV <paulie4@gmail.com>.
72580         Define as 224 / 8, rather than as a literal.
72581         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
72582         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
72583         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
72585 2008-07-31  Bruno Haible  <bruno@clisp.org>
72587         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
72588         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
72589         Reported by Jonathan Patschke <jp@centtech.com>.
72591 2008-07-31  Bruno Haible  <bruno@clisp.org>
72593         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
72594         Reported by Paolo Bonzini <bonzini@gnu.org>.
72596 2008-07-30  Eric Blake  <ebb9@byu.net>
72598         test-strtod: allow compilation without -lm
72599         * tests/test-strtod.c (main): Avoid link dependence on fabs.
72600         Reported by Dennis Clarke <blastwave@gmail.com>.
72602 2008-07-28  Jim Meyering  <meyering@redhat.com>
72604         bootstrap: work also when there are no .po files in po/
72605         * build-aux/bootstrap (update_po_files): Complete the change
72606         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
72608 2008-07-27  Jim Meyering  <meyering@redhat.com>
72610         * users.txt: Add zile.
72612 2008-07-26  Ben Pfaff  <blp@gnu.org>
72614         Add missing dependencies on new m4/exponent[fdl].m4 files.
72615         * modules/isnanf-nolibm: Add m4/exponentf.m4.
72616         * modules/isnand-nolibm: Add m4/exponentd.m4.
72617         * modules/isnanl-nolibm: Add m4/exponentl.m4.
72618         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
72619         m4/isnan[fdl].m4, because the macros actually used moved.
72620         Reported by Jim Meyering.
72622 2008-07-14  Ben Pfaff  <blp@gnu.org>
72624         Add isinf module.
72625         * lib/isinf.c: New file.
72626         * lib/math.in.h: Define isinf macro if we have decided to replace
72627         it.
72628         * m4/isinf.m4: New file.
72629         * m4/math_h.m4: Initialize and substitute variables for isinf
72630         module.
72631         * modules/isinf: New file.
72632         * modules/isinf-tests: New file.
72633         * modules/math: Add substitutions for new module.
72634         * tests/test-isinf.c: New file.
72635         * doc/posix-functions/isinf.texi: Mention new module.
72636         * MODULES.html.sh: Mention new module.
72638 2008-07-14  Ben Pfaff  <blp@gnu.org>
72640         Factor out some macros for use by additional modules.
72641         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
72642         exponentf.m4.
72643         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
72644         exponentd.m4.
72645         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
72646         file exponentl.m4.
72647         * m4/exponentf.m4: New file.
72648         * m4/exponentd.m4: New file.
72649         * m4/exponentl.m4: New file.
72650         * modules/isnanf: Use new file m4/exponentf.m4.
72651         * modules/isnand: Use new file m4/exponentd.m4.
72652         * modules/isnanl: Use new file m4/exponentl.m4.
72654 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
72656         mktime.c: normalize tp->tm_isdst value to -1/0/1.
72657         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
72658         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
72659         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
72661         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
72662         readlink on platforms without PATH_MAX.
72664 2008-07-21  Eric Blake  <ebb9@byu.net>
72666         Warn, not fail, on stale version.
72667         * top/GNUmakefile (_curr-ver): Tone down previous patch.
72669         Don't allow installation with stale devel version number.
72670         * top/GNUmakefile (_is-install-target): New macro.
72671         (_curr-ver): Forbid installation with stale version number.
72673 2008-07-20  Bruno Haible  <bruno@clisp.org>
72675         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
72676         TESTS_ENVIRONMENT.
72677         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
72679 2008-07-20  Bruno Haible  <bruno@clisp.org>
72681         * lib/c-stack.h (c_stack_action): Add documentation.
72682         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
72684 2008-07-20  Bruno Haible  <bruno@clisp.org>
72686         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
72687         * modules/readlink (License): Likewise.
72689 2008-07-17  Eric Blake  <ebb9@byu.net>
72691         * modules/c-stack (Link): Fix typo.
72693         Make c-stack use libsigsegv, when available.
72694         * modules/c-stack (Depends-on): Add libsigsegv.
72695         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
72696         needed.
72697         * lib/c-stack.c (SIGSTKSZ): Define fallback.
72698         (segv_handler, overflow_handler, c_stack_action)
72699         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
72700         implementation when libsigsegv is available, but only when using
72701         the library is necessary.
72702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
72703         comment, explaining why XSI check fails on Linux.
72704         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
72705         * tests/test-c-stack2.sh: Tweak skip message.
72706         * NEWS: Document new link-time requirements.
72708 2008-07-16  Eric Blake  <ebb9@byu.net>
72710         c-stack: Expose false positives when not using libsigsegv.
72711         * modules/c-stack-tests (Files): Expand test.
72712         * tests/test-c-stack.c (main): Add means to conditionally trigger
72713         non-overflow SIGSEGV.
72714         * tests/test-c-stack2.sh: New file.
72716 2008-07-14  Bruno Haible  <bruno@clisp.org>
72718         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
72719         Reported by Eric Blake.
72721 2008-07-14  Sam Steingold  <sds@gnu.org>
72722             Bruno Haible  <bruno@clisp.org>
72724         New module libsigsegv.
72725         * modules/libsigsegv: New file.
72726         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
72727         modifications.
72728         * MODULES.html.sh (Signal handling): New section.
72730 2008-07-14  Bruno Haible  <bruno@clisp.org>
72732         * modules/unictype/ctype-* (Description): Add the word "function".
72733         Improves the resulting doc in MODULES.html.
72735 2008-07-12  Ben Pfaff  <blp@gnu.org>
72737         Add longlong module.
72738         * modules/longlong: New file.
72740 2008-07-12  Bruno Haible  <bruno@clisp.org>
72742         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
72743         to empty.
72745 2008-07-10  Ben Pfaff  <blp@gnu.org>
72747         Add isnan module.
72748         * doc/posix-functions/isnan.texi: Mention new module.
72749         * lib/math.in.h: Define isnan macro if we have decided to replace
72750         it.
72751         * m4/isnan.m4: New file.
72752         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
72753         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
72754         also.
72755         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
72756         redundancy.
72757         * m4/math_h.m4: Initialize and substitute variables for isnan
72758         module.
72759         * modules/isnan: New file.
72760         * modules/isnan-tests: New file.
72761         * modules/math: Add substitutions for new module.
72762         * tests/test-isnan.c: New file.
72763         * MODULES.html.sh: Mention new module.
72765 2008-07-10  Ben Pfaff  <blp@gnu.org>
72767         Add isnanf module.
72768         * lib/isnanf.m4: New file.
72769         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
72770         (gl_HAVE_ISNANF_IN_LIBM): New macro.
72771         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
72772         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
72773         * modules/isnanf: New file.
72774         * modules/isnanf-tests: New file.
72775         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
72776         files.
72777         * tests/test-isnanf-nolibm.c: factored most of its contents into
72778         new file tests/test-isnanf.h.
72779         * tests/test-isnanf.h: New file.
72780         * tests/test-isnanf.c: New file.
72781         * MODULES.html.sh: Mention new module.
72782         * doc/glibc-functions/isnanf.texi: Mention new module.
72784 2008-07-10  Ben Pfaff  <blp@gnu.org>
72786         Add isnand module.
72787         * lib/isnand.h: New file.
72788         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
72789         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
72790         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
72791         functionality also.
72792         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
72793         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
72794         (gl_HAVE_ISNAND_IN_LIBM): New macro.
72795         * modules/isnand: New file.
72796         * modules/isnand-tests: New file.
72797         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
72798         files.
72799         * tests/test-isnand-nolibm.c: factored most of its contents into
72800         new file tests/test-isnand.h.
72801         * tests/test-isnand.h: New file.
72802         * tests/test-isnand.c: New file.
72803         * MODULES.html.sh: Mention new module.
72805 2008-07-10  Ben Pfaff  <blp@gnu.org>
72807         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
72808         * lib/isnand.h: Rename lib/isnand-nolibm.h.
72809         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
72810         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
72811         * modules/isnanf-nolibm: Update references to renamed files.
72812         * modules/isnand-nolibm: Likewise.
72813         * modules/isnanf-nolibm-tests: Likewise.
72814         * modules/isnand-nolibm-tests: Likewise.
72815         * lib/frexp.c: Likewise.
72816         * lib/isfinite.c: Likewise.
72817         * lib/signbitd.c: Likewise.
72818         * lib/signbitf.c: Likewise.
72819         * lib/vasnprintf.c: Likewise.
72820         * tests/test-ceilf1.c: Likewise.
72821         * tests/test-ceilf2.c: Likewise.
72822         * tests/test-floorf1.c: Likewise.
72823         * tests/test-floorf2.c: Likewise.
72824         * tests/test-frexp.c: Likewise.
72825         * tests/test-round1.c: Likewise.
72826         * tests/test-round2.c: Likewise.
72827         * tests/test-roundf1.c: Likewise.
72828         * tests/test-strtod.c: Likewise.
72829         * tests/test-trunc1.c: Likewise.
72830         * tests/test-trunc2.c: Likewise.
72831         * tests/test-truncf1.c: Likewise.
72832         * tests/test-truncf2.c: Likewise.
72833         * NEWS: Mention the renamed header files.
72835 2008-07-11  Jim Meyering  <meyering@redhat.com>
72837         vc-list-files: make the last-resort awk code more portable
72838         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
72839         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
72840         does not support it.
72842 2008-07-10  Eric Blake  <ebb9@byu.net>
72844         Work with tar's bootstrap.
72845         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
72846         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
72847         an m4 comment.
72849 2008-07-09  Jim Meyering  <meyering@redhat.com>
72851         posix-shell.m4: fix typo that made this test malfunction
72852         * m4/posix-shell.m4: Remove capitalization in variable name.
72854 2008-07-08  Bruno Haible  <bruno@clisp.org>
72856         * m4/onceonly.m4: Update comments.
72857         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72859 2008-07-04  Jim Meyering  <meyering@redhat.com>
72861         * users.txt: Add vc-dwim.
72862         (bison, coreutils): Use the gitweb URL.
72864 2008-07-03  Jim Meyering  <meyering@redhat.com>
72866         * users.txt: Add libffcall.  From Sam Steingold.
72868 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
72870         getdate.y: do not ignore TZ with relative day, month or year offset
72871         * lib/getdate.y (get_date): Move the tz-handling block to follow the
72872         relative-date-handling, since otherwise, the latter would clobber the
72873         sole output (an updated Start value) of the tz-handling block.
72874         * tests/test-getdate.c: Tests for the fix
72876 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72878         Recognize 'foo_LIBRARIES += libgnu.a'.
72879         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
72880         makefile snippet has already specified an installation location,
72881         also using '+='.
72883 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
72885         getdate.y: factor out common actions
72886         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
72887         Use them in place of open-coded actions.
72889 2008-07-01  Simon Josefsson  <simon@josefsson.org>
72891         Add self-test for getdate module.
72892         * modules/getdate-tests: New file.
72893         * tests/test-getdate.c: New file.
72895 2008-06-29  Bruno Haible  <bruno@clisp.org>
72897         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
72898         .gitignore.
72899         Reported by Sylvain Beucler <beuc@beuc.net>.
72901 2008-06-29  Bruno Haible  <bruno@clisp.org>
72903         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
72904         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
72906 2008-06-29  Bruno Haible  <bruno@clisp.org>
72908         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
72909         EXTRA_DIST.
72910         Reported by Sylvain Beucler <beuc@beuc.net>.
72912 2008-06-26  Jim Meyering  <meyering@redhat.com>
72914         make several modules depend on the "open" module
72915         This provides slightly increased consistency when opening-for-write
72916         the name of a non-directory spelled with a trailing slash.
72917         * modules/chdir-safer: Likewise.
72918         * modules/chown: Likewise.
72919         * modules/clean-temp: Likewise.
72920         * modules/copy-file: Likewise.
72921         * modules/fchdir: Likewise.
72922         * modules/fcntl-safer: Likewise.
72923         * modules/pipe: Likewise.
72924         * modules/utime: Likewise.
72925         Prompted by Eric Blake and Bruno Haible.
72927 2008-06-24  Andreas Schwab  <schwab@suse.de>
72929         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
72930         literals can be used as initializers for global variables.
72932 2008-06-23  Eric Blake  <ebb9@byu.net>
72934         Make gnulib-cache.m4 easier to diff.
72935         * gnulib-tool (func_import): Allow newlines when reading cached
72936         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
72938 2008-06-23  Bruno Haible  <bruno@clisp.org>
72940         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
72941         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
72942         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
72943         m4/signalblocking.m4.
72944         (gl_PREREQ_SIGACTION): Don't invoke it.
72945         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
72946         gl_PREREQ_SIG_HANDLER_H.
72947         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72948         Don't check for sigaction here.
72950 2008-06-23  Bruno Haible  <bruno@clisp.org>
72952         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
72953         (install_handlers): Don't set the SA_RESETHAND flag.
72955 2008-06-23  Bruno Haible  <bruno@clisp.org>
72957         * m4/sigaction.m4: Comment fixes.
72958         * lib/signal.in.h: Likewise.
72960 2008-06-23  Eric Blake  <ebb9@byu.net>
72962         Fix typo.
72963         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
72965         Avoid SA_ namespace.
72966         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
72967         Reported by Ralf Wildenhues.
72969         Avoid test failure due to SA_RESTORER.
72970         * tests/test-sigaction.c (SA_MASK): New macro.
72971         (main): Avoid failing due to extension flags being set.
72972         Reported by Jim Meyering.
72974         Revert use of sig-handler.h in sigprocmask.c.
72975         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
72976         it requires the existence of struct sigaction.
72977         * lib/sigprocmask.c (handler_t): Restore typedef.
72978         (rpl_signal, old_handlers): Use local type.
72980 2008-06-22  Bruno Haible  <bruno@clisp.org>
72982         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
72983         conditionally.
72984         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72986 2008-06-22  Bruno Haible  <bruno@clisp.org>
72988         * doc/posix-functions/siginterrupt.texi: Move note.
72990         * lib/signal.in.h (SA_RESTART): New macro.
72991         * lib/sigaction.c: Update comment.
72993         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
72995         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
72996         (gl_PREREQ_SIGPROCMASK): Invoke it.
72997         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
72999         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
73001         * lib/sigprocmask.c: Update a comment.
73003 2008-06-21  Eric Blake  <ebb9@byu.net>
73005         Use sigaction module rather than signal().
73006         * modules/c-stack (Depends-on): Add sigaction.
73007         * modules/fatal-signal (Depends-on): Likewise.
73008         * modules/nanosleep (Depends-on): Likewise.
73009         * modules/sigprocmask (Files): Add sig-handler.h.
73010         * modules/sigaction (Files): Likewise.
73011         * lib/sig-handler.h (get_handler): New file, suggested by Paul
73012         Eggert.
73013         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
73014         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
73015         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
73016         (init_fatal_signals): Likewise.
73017         * lib/nanosleep.c (rpl_nanosleep): Likewise.
73018         (siginterrupt): Delete fallback.
73019         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
73020         instead.
73021         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
73022         siginterrupt.
73024         New module sigaction, for mingw.
73025         * modules/sigaction: New module...
73026         * modules/sigaction-tests: ...and its test.
73027         * m4/sigaction.m4: New file.
73028         * lib/sigaction.c: Likewise.
73029         * tests/test-sigaction.c: Likewise.
73030         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
73031         * modules/signal (Makefile.am): Likewise.
73032         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
73033         needed.
73034         * doc/posix-headers/signal.texi (signal.h): Mention provided
73035         types.
73036         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
73037         that sigaction is preferable.
73038         * doc/posix-functions/sigaction.texi (sigaction): Mention new
73039         module.
73040         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73041         sigaction.
73043         Improve robustness of sigprocmask by overriding signal.
73044         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
73045         is in use.
73046         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
73047         (SIGKILL, SIGSTOP): Provide fallbacks.
73048         (rpl_signal): Implement.
73049         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
73050         signal can be called inside handlers.
73052         Fix nanosleep module on mingw.
73053         * modules/nanosleep (Depends-on): Add sys_select.
73054         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
73056         Fix licensing of sigprocmask.
73057         * modules/raise (License): Relicense as LGPL.
73059 2008-06-21  Bruno Haible  <bruno@clisp.org>
73061         * lib/propername.c (proper_name_utf8): Don't use the transliterated
73062         result if it contains question marks.
73063         Reported by Michael Geng <linux@michaelgeng.de>.
73065 2008-06-19  Bruno Haible  <bruno@clisp.org>
73067         Fix CVS-ism.
73068         * doc/gnulib.texi: Include updated-stamp.texi.
73069         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
73070         (updated-stamp.texi): New rule.
73071         (gnulib.info): Depend on it.
73072         * doc/.gitignore: Add updated-stamp.texi.
73073         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
73075 2008-06-19  Bruno Haible  <bruno@clisp.org>
73077         * doc/Makefile (gnulib.info): Update and simplify dependencies.
73078         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
73080 2008-06-19  Eric Blake  <ebb9@byu.net>
73082         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
73083         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
73084         Reported by Stepan Kasal.
73086 2008-06-18  Bruno Haible  <bruno@clisp.org>
73088         * lib/fatal-signal.c (init_fatal_signals): Add comment.
73089         Reported by Eric Blake.
73091 2008-06-18  Eric Blake  <ebb9@byu.net>
73093         Work around cygwin 1.5.25 strsignal bug.
73094         * tests/test-strsignal.c: Allow for const char *.
73095         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
73097 2008-06-18  Simon Josefsson  <simon@josefsson.org>
73099         * users.txt: Update URL to article and add author/date
73100         information.
73102 2008-06-17  Bruno Haible  <bruno@clisp.org>
73104         New macro gl_DISABLE_THREADS.
73105         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
73106         if the user did not pass --enable-threads or --disable-threads option.
73107         (gl_DISABLE_THREADS): New macro.
73108         Reported by Eric Blake <ebb9@byu.net>.
73110 2008-06-17  Bruno Haible  <bruno@clisp.org>
73112         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
73113         when the macro ignores it.
73114         Based on a patch by Eric Blake <ebb9@byu.net>.
73116 2008-06-17  Bruno Haible  <bruno@clisp.org>
73118         * modules/tls (License): Change to LGPLv2+.
73119         Reported by Eric Blake.
73121 2008-06-17  Eric Blake  <ebb9@byu.net>
73123         Simplify c-stack prerequisites.
73124         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
73125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
73126         no longer requires <ucontext.h> to exist.  Optimize setrlimit
73127         check.
73128         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
73129         <sys/resource.h>.
73131         Move c-stack test into testsuite.
73132         * modules/c-stack-tests: New file.
73133         * lib/c-stack.c [DEBUG]: Move test program...
73134         * tests/test-c-stack.c: ...into this new file.  Skip rather than
73135         fail test if sigaltstack is lacking.
73136         * tests/test-c-stack.sh: New driver file.
73138 2008-06-16  Eric Blake  <ebb9@byu.net>
73140         Use raise module consistently.
73141         * modules/fatal-signal (Depends-on): Add raise.
73142         * modules/sigprocmask (Depends-on): Likewise.
73143         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
73144         * lib/sigprocmask.c (sigprocmask): Likewise.
73145         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73146         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
73148         Fix compliance bug in sigpending.
73149         * lib/sigprocmask.c (sigpending): Return pending array via
73150         parameter, not return value.
73152 2008-06-14  Eric Blake  <ebb9@byu.net>
73154         Improve obstack-printf test code.
73155         * tests/test-obstack-printf.c (test_function): Fix comment, and
73156         simplify usage of obstack_* in macros.  Add a test for coverage.
73157         Reported by Bruno Haible.
73159 2008-06-14  Bruno Haible  <bruno@clisp.org>
73161         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
73162         array size as a constant, not as a const variable.
73163         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
73164         AC_USE_SYSTEM_EXTENSIONS.
73165         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
73166         Test whether the obstack_printf function actually exists.
73167         * modules/obstack-printf (Depends-on): Add extensions.
73168         (Include): Remove obstack.h.
73169         * modules/obstack-printf-posix (Depends-on): Add extensions.
73170         (Include): Remove obstack.h.
73172 2008-06-13  Eric Blake  <ebb9@byu.net>
73174         Add obstack-printf and obstack-printf-posix modules.
73175         * modules/obstack-printf: New file.
73176         * modules/obstack-printf-posix: Likewise.
73177         * MODULES.html.sh (Misc): Mention them.
73178         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
73179         Likewise.
73180         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
73181         Likewise.
73182         * modules/stdio (Makefile.am): Accomodate new modules.
73183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73184         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
73185         Declare.
73186         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
73187         functions.
73188         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
73189         (gl_REPLACE_OBSTACK_PRINTF): New macros
73190         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
73191         * tests/test-obstack-printf.c: New file.
73192         * modules/obstack-printf-tests: Likewise.
73193         * modules/obstack-printf-posix-tests: Likewise.
73195 2008-06-11  Bruno Haible  <bruno@clisp.org>
73197         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
73198         * lib/open.c: Include errno.h.
73199         (open): Fail when attempting to write to a file that has a trailing
73200         slash.
73201         * tests/test-open.c (main): Test against trailing slash bug.
73202         * doc/posix-functions/open.texi: Mention the trailing slash bug.
73204 2008-06-10  Bruno Haible  <bruno@clisp.org>
73206         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
73207         for $? to work inside the trap command, with various /bin/sh-s.
73208         * tests/test-vc-list-files-cvs.sh: Likewise.
73210 2008-06-10  Bruno Haible  <bruno@clisp.org>
73212         * lib/acl-internal.h: Don't include gettext.h here.
73213         * lib/set-mode-acl.c: Include gettext.h here.
73214         * lib/copy-acl.c: Likewise.
73216 2008-06-10  Bruno Haible  <bruno@clisp.org>
73218         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
73219         * lib/wait-process.c (wait_subprocess): Likewise.
73220         * lib/execute.h (execute): Add termsigp argument.
73221         * lib/execute.c (execute): Likewise.
73222         * lib/csharpcomp.c (compile_csharp_using_pnet,
73223         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
73224         * lib/csharpexec.c (execute_csharp_using_pnet,
73225         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
73226         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
73227         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
73228         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
73229         is_jikes_present): Update.
73230         * lib/javaexec.c (execute_java_class): Update.
73231         * lib/javaversion.c (execute_and_read_line): Update.
73232         * NEWS: Document the changes.
73233         Reported by Eric Blake.
73235 2008-06-10  Eric Blake  <ebb9@byu.net>
73237         Add missing include.
73238         * tests/test-strstr.c (includes): Add <signal.h>.
73239         * tests/test-strcasestr.c (includes): Likewise.
73240         * tests/test-memmem.c (includes): Likewise.
73242 2008-06-10  Bruno Haible  <bruno@clisp.org>
73244         * lib/wait-process.c (wait_subprocess): Add an assertion.
73246 2008-06-10  Bruno Haible  <bruno@clisp.org>
73248         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
73250 2008-06-10  Bruno Haible  <bruno@clisp.org>
73252         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
73253         using alarm().
73254         * tests/test-strcasestr.c (main): Likewise.
73255         * tests/test-strstr.c (main): Likewise.
73257 2008-06-09  Bruno Haible  <bruno@clisp.org>
73259         Work around the Solaris 10 ACE ACLs ABI change.
73260         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
73261         declare if ACL_NO_TRIVIAL is present.
73262         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
73263         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
73264         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
73265         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
73266         define if ACL_NO_TRIVIAL is present.
73267         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
73268         and use the current ABI.
73269         (file_has_acl): Use same #if condition as elsewhere.
73270         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
73271         in use, and use the current ABI.
73272         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
73273         Reported by Jim Meyering.
73275 2008-06-09  Eric Blake  <ebb9@byu.net>
73277         Work around environments that (stupidly) ignore SIGALRM.
73278         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
73279         before using alarm().
73280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73281         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73282         Reported by Ian Beckwith <ianb@erislabs.net>.
73284         Produce autobuild blurb earlier in log.
73285         * modules/autobuild (configure.ac-early): Move AB_INIT here.
73287 2008-06-09  Jim Meyering  <meyering@redhat.com>
73288         and Ondřej Vašík  <ovasik@redhat.com>
73290         utimens.c: correct kernel bug work-around
73291         Ondřej Vašík found that the invalid return value of 280 indicates
73292         failure, not success, and the kernel bug we're trying to work
73293         around affects not just the utimensat call, but also the fallback
73294         futimens call.
73295         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
73296         not success.
73297         [HAVE_FUTIMENS]: Use the same work-around, here.
73299 2008-06-09  Jim Meyering  <meyering@redhat.com>
73301         add more guards around definition of ACE_-related code
73302         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
73303         ALLOW and ACE_OWNER are also defined.
73305 2008-06-08  Bruno Haible  <bruno@clisp.org>
73307         * lib/acl-internal.h: Add me as co-author.
73308         * lib/file-has-acl.c: Likewise.
73309         * lib/set-mode-acl.c: Likewise.
73310         * lib/copy-acl.c: Likewise.
73312 2008-06-08  Bruno Haible  <bruno@clisp.org>
73314         Add support for AIX ACLs.
73315         * lib/acl-internal.h (acl_nontrivial): New declaration.
73316         * lib/file-has-acl.c (acl_nontrivial): New function.
73317         (file_has_acl): Add implementation using AIX 4 ACL API.
73318         * lib/set-mode-acl.c (qset_acl): Likewise.
73319         * lib/copy-acl.c (qcopy_acl): Likewise.
73321 2008-06-08  Bruno Haible  <bruno@clisp.org>
73323         Add support for HP-UX ACLs.
73324         * lib/acl-internal.h (acl_nontrivial): New declaration.
73325         * lib/file-has-acl.c (acl_nontrivial): New function.
73326         (file_has_acl): Add implementation using HP-UX 11 ACL API.
73327         * lib/set-mode-acl.c (qset_acl): Likewise.
73328         * lib/copy-acl.c (qcopy_acl): Likewise.
73330 2008-06-08  Bruno Haible  <bruno@clisp.org>
73332         Add support for Cygwin ACLs.
73333         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
73334         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
73335         the chmod_or_fchmod call.
73336         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
73338 2008-06-08  Bruno Haible  <bruno@clisp.org>
73340         Fix bug with setuid modes in Solaris 10+ code.
73341         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
73342         succeeded, when the mode contains some special bits.
73344 2008-06-08  Bruno Haible  <bruno@clisp.org>
73346         Add support for Solaris 7..10 ACLs.
73347         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
73348         declarations.
73349         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
73350         functions.
73351         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
73352         * lib/set-mode-acl.c (qset_acl): Likewise.
73353         * lib/copy-acl.c (qcopy_acl): Likewise.
73355 2008-06-08  Bruno Haible  <bruno@clisp.org>
73357         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
73358         declaration.
73359         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
73360         (acl_access_nontrivial): Remove MacOS X case.
73361         (file_has_acl): Use acl_extended_nontrivial.
73362         * lib/copy-acl.c (qcopy_acl): Likewise.
73364 2008-06-08  Bruno Haible  <bruno@clisp.org>
73366         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
73368 2008-06-08  Jim Meyering  <meyering@redhat.com>
73370         * modules/acl (Maintainer): Add Bruno Haible.
73372 2008-06-07  Bruno Haible  <bruno@clisp.org>
73374         Improve support for Tru64 ACLs.
73375         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
73376         ACL on OSF/1.
73378 2008-06-07  Bruno Haible  <bruno@clisp.org>
73380         Add support for MacOS X ACLs.
73381         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
73382         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
73383         * lib/set-mode-acl.c (qset_acl): Likewise.
73384         * lib/copy-acl.c (qcopy_acl): Likewise.
73386 2008-06-07  Bruno Haible  <bruno@clisp.org>
73388         Fix memory leak introduced on 2008-05-22.
73389         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
73390         use.
73392 2008-06-07  Bruno Haible  <bruno@clisp.org>
73394         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
73395         to construct an empty ACL.
73397 2008-06-07  Bruno Haible  <bruno@clisp.org>
73399         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
73400         precisely.
73401         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
73403 2008-06-07  Bruno Haible  <bruno@clisp.org>
73405         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
73406         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
73408 2008-06-07  Bruno Haible  <bruno@clisp.org>
73410         * doc/posix-functions/_setjmp.texi: Explain the use of this function
73411         regardless of POSIX.
73412         * doc/posix-functions/_longjmp.texi: Likewise.
73413         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
73414         SystemV platform in this case.
73416 2008-06-06  Eric Blake  <ebb9@byu.net>
73418         Document abort() bugs.
73419         * doc/posix-functions/abort.texi (abort): Mention anomalies.
73421         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
73422         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
73423         sigsetjmp.
73424         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
73425         siglongjmp, but only as a macro.
73426         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
73427         is obsolete.
73428         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
73430         Tweak documentation to cover cygwin argz bugs.
73431         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
73432         argz bug fix; no code change needed since no cygwin releases
73433         occurred between the last fix and the bug being tested.
73434         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
73435         module and recently fixed cygwin bugs.
73436         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
73437         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
73438         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
73439         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
73440         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
73441         Likewise.
73442         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
73443         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
73444         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
73445         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
73446         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
73447         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
73448         Likewise.
73450         Avoid gcc warning on cygwin.
73451         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
73452         !ACL_NO_TRIVIAL]: Avoid unused variable.
73454 2008-06-05  Eric Blake  <ebb9@byu.net>
73456         Be tolerant of UNKNOWN version in gnulib-tool test dir.
73457         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
73458         git-version-gen fails to come up with a version.
73459         Reported by Simon Josefsson.
73461 2008-06-05  Jim Meyering  <meyering@redhat.com>
73462             Paul Eggert  <eggert@cs.ucla.edu>
73464         utimens.c: work around a probable Linux kernel bug
73465         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
73466         appears to be a kernel bug that causes utimensat to return 280
73467         instead of 0, indicating success.
73469 2008-06-04  Bruno Haible  <bruno@clisp.org>
73471         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
73472         2008-06-01 commit.
73474 2008-06-04  Bruno Haible  <bruno@clisp.org>
73476         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
73477         * lib/file-has-acl.c (acl_access_nontrivial): New function.
73478         (file_has_acl): Use it. Save errno afterwards.
73479         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
73481 2008-06-03  Bruno Haible  <bruno@clisp.org>
73483         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
73484         draft code. Simplify #ifs.
73485         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
73486         Put Solaris code after POSIX-draft code. Fix comments regarding
73487         Solaris 10, HP-UX. Mention Cygwin.
73488         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
73490 2008-06-03  Eric Blake  <ebb9@byu.net>
73492         Provide fallback for older kernels.
73493         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
73494         Provide runtime fallback if kernel lacks support.
73495         Reported by Mike Frysinger.
73497 2008-06-02  Bruno Haible  <bruno@clisp.org>
73499         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
73500         it exists.
73502 2008-06-02  Bruno Haible  <bruno@clisp.org>
73504         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
73505         * lib/copy-acl.c (qcopy_acl): Update comment.
73507 2008-06-02  Bruno Haible  <bruno@clisp.org>
73509         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
73510         like ACL APIs.
73512 2008-06-02  Bruno Haible  <bruno@clisp.org>
73514         * tests/test-file-has-acl.sh: Use different code for Cygwin.
73515         * tests/test-set-mode-acl.sh: Likewise.
73516         * tests/test-copy-acl.sh: Likewise.
73517         * tests/test-copy-file.sh: Likewise.
73519 2008-06-02  Bruno Haible  <bruno@clisp.org>
73521         * tests/test-file-has-acl.sh: Remove unused code.
73523 2008-06-01  Bruno Haible  <bruno@clisp.org>
73525         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
73526         (copy_acl): Just a wrapper around qcopy_acl that emits the error
73527         messages.
73528         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
73530 2008-06-01  Bruno Haible  <bruno@clisp.org>
73532         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
73533         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
73534         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
73535         APIs.
73536         * modules/acl-tests (configure.ac): Remove tests now contained in
73537         m4/acl.m4.
73539 2008-06-02  Jim Meyering  <meyering@redhat.com>
73541         announce-gen: use a better key-server host name
73542         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
73543         it may be more consistently reliable.  Suggested by Werner Koch
73544         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
73546 2008-06-01  Bruno Haible  <bruno@clisp.org>
73548         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
73549         Reported by Voroskoi Andras <voroskoi@gmail.com>.
73551 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
73553         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
73555 2008-06-01  Bruno Haible  <bruno@clisp.org>
73557         New ACL tests.
73558         * tests/test-file-has-acl.sh: New file.
73559         * tests/test-file-has-acl.c: New file.
73560         * tests/test-set-mode-acl.sh: New file.
73561         * tests/test-set-mode-acl.c: New file.
73562         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
73563         * tests/test-copy-acl.c: New file.
73564         * modules/acl-tests: New file, based on modules/copy-file-tests.
73565         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
73566         (Depends-on): Add acl-tests.
73567         (configure.ac): Remove checks.
73568         (Makefile.am): Don't create test-sameacls program here any more.
73570 2008-06-01  Bruno Haible  <bruno@clisp.org>
73572         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
73573         * tests/test-sameacls.c: Include progname.h.
73574         (main): Invoke set_program_name. Portability fixes for MacOS X,
73575         Solaris, HP-UX.
73577 2008-06-01  Bruno Haible  <bruno@clisp.org>
73579         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
73580         function.
73581         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
73583 2008-06-01  Bruno Haible  <bruno@clisp.org>
73585         * modules/rpmatch (Depends-on): Add strdup.
73587 2008-06-01  Bruno Haible  <bruno@clisp.org>
73589         * lib/pipe.c: Include unistd-safer.h.
73590         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
73591         * modules/pipe (Depends-on): Add unistd-safer.
73593 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73595         * modules/autobuild (configure.ac): Call AB_INIT.
73597 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73599         * tests/test-getaddrinfo.c: Don't print debug messages by default.
73600         Suggested by Bruno Haible <bruno@clisp.org>.
73602 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73604         * tests/test-base64.c: Cast size_t to unsigned long when invoking
73605         printf.  Use %lu instead of %d.  Reported by Bruno Haible
73606         <bruno@clisp.org>.
73608 2008-05-29  Eric Blake  <ebb9@byu.net>
73610         Prefer new POSIX 200x interfaces over futimesat.
73611         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
73612         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
73613         when available.
73614         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
73616 2008-05-28  Bruno Haible  <bruno@clisp.org>
73618         * modules/stpcpy (License): Change to LGPLv2+.
73619         Requested by David Lutterkort <dlutter@redhat.com>.
73621 2008-05-27  Bruno Haible  <bruno@clisp.org>
73623         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
73624         current mingw.
73625         Reported by Jose E. Marchesi <jemarch@gnu.org>.
73627 2008-05-27  Bruno Haible  <bruno@clisp.org>
73629         * modules/iconv_open (Link): New section, from module 'iconv'.
73630         * modules/striconv (Link): Likewise.
73631         * modules/striconveh (Link): Likewise.
73632         * modules/xstriconv (Link): Likewise.
73633         * modules/unicodeio (Link): Likewise.
73634         * modules/propername (Link): Likewise.
73635         Reported by Jim Meyering.
73637 2008-05-26  Jim Meyering  <meyering@redhat.com>
73639         sha256: do not artificially restrict buffer length to be < 2^32
73640         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
73641         uint32_t to size_t.
73642         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
73643         to match.
73645         avoid unaligned access errors, e.g., on sparc
73646         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
73647         direct access through a possibly-unaligned uint64* pointer.
73648         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
73649         direct access through a possibly-unaligned uint32* pointer.
73650         Prompted by this patch from Tom "spot" Callaway:
73651         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
73653         sha512.c: fix typo in comment
73654         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
73656 2008-05-25  Bruno Haible  <bruno@clisp.org>
73658         * lib/set-mode-acl.c: Renamed from lib/acl.c.
73659         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
73660         (Makefile.am): Update lib_SOURCES.
73662 2008-05-25  Bruno Haible  <bruno@clisp.org>
73664         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
73666 2008-05-25  Jim Meyering  <meyering@redhat.com>
73668         useless-if-before-free: freed expr may have white-space differences
73669         * build-aux/useless-if-before-free: Recognize cases in which the
73670         freed expression differs from the tested one in embedded white
73671         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
73672         $1 was used, so we can't make any regexp shy.  Improved tests now
73673         detect this.
73675         useless-if-before-free: accept white space in the expression.
73676         * build-aux/useless-if-before-free: For now, any white space
73677         in the expression must be identical in the free argument.
73679         useless-if-before-free: efficiency tweak
73680         * build-aux/useless-if-before-free: Make the expression-matching
73681         regexp "shy".
73682         Make the *outer* regexp shy, not the expr-matching one.
73684         update code-in-comment to accept cast of free arg
73685         * build-aux/useless-if-before-free: Update regexp.
73687 2008-05-25  Bruno Haible  <bruno@clisp.org>
73689         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
73690         * modules/copy-file-tests (Files, Makefile.am): Update.
73691         * tests/test-copy-file.c (func_test_copy): Update.
73693 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
73695         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
73697 2008-05-23  Bruno Haible  <bruno@clisp.org>
73699         Improve support for ACLs on OSF/1.
73700         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
73701         Remove fallback for unknown flavors of ACLs.
73703 2008-05-22  Bruno Haible  <bruno@clisp.org>
73705         Add support for ACLs on OSF/1.
73706         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
73707         replacements.
73708         (acl_free_text): New macro fallback.
73709         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
73710         acl_free.
73711         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
73712         acl_free_text function. Require AC_C_INLINE.
73714 2008-05-22  Bruno Haible  <bruno@clisp.org>
73716         Make copy_acl work on MacOS X 10.5.
73717         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
73718         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
73719         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
73720         If MODE_INSIDE_ACL, don't assume that every system has the same text
73721         representation for ACLs as FreeBSD.
73722         * lib/copy-acl.c (copy_acl): Add support for platforms with
73723         !MODE_INSIDE_ACL.
73724         * lib/file-has-acl.c (file_has_acl): Likewise.
73725         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
73726         FreeBSD, MacOS X, or IRIX, respectively.
73728 2008-05-22  Bruno Haible  <bruno@clisp.org>
73730         * lib/acl.h: Don't include <sys/acl.h>.
73731         (GETACLCNT): Move fallback to lib/acl-internal.h.
73732         * lib/acl-internal.h: Include <sys/acl.h> here.
73733         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
73735 2008-05-22  Bruno Haible  <bruno@clisp.org>
73737         Split off copy_acl function to separate file.
73738         * lib/copy-acl.c: New file, extracted from lib/acl.c.
73739         * lib/acl.c (copy_acl): Moved function to separate file.
73740         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
73741         * modules/acl (Files): Add lib/copy-acl.c.
73742         (Makefiles.am): Augment lib_SOURCES.
73744 2008-05-22  Bruno Haible  <bruno@clisp.org>
73746         * modules/copy-file-tests: New file.
73747         * tests/test-copy-file.sh: New file.
73748         * tests/test-copy-file.c: New file.
73749         * tests/test-copy-file-sameacls.c: New file.
73751 2008-05-22  Eric Blake  <ebb9@byu.net>
73753         Avoid gcc warning.
73754         * tests/test-memcmp.c (main): Pass NULL indirectly.
73756 2008-05-21  Bruno Haible  <bruno@clisp.org>
73758         Add reference doc about ACLs.
73759         * doc/acl-resources.txt: New file.
73760         * doc/acl-cygwin.txt: New file.
73762 2008-05-21  Bruno Haible  <bruno@clisp.org>
73764         Avoid one more warning from gcc.
73765         * lib/vasnprintf.c (IF_LINT): Update comments.
73766         (VASNPRINTF): Use it also for the 'prefix' array initializer.
73768 2008-05-21  Jim Meyering  <meyering@redhat.com>
73770         avoid a warning from gcc
73771         * lib/vasnprintf.c (IF_LINT): Define.
73772         (scale10_round_decimal_long_double):
73773         Use it to avoid a "may be used uninitialized" warning.
73774         (scale10_round_decimal_double): Likewise.
73776 2008-05-21  Simon Josefsson  <simon@josefsson.org>
73778         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
73779         declared.
73781 2008-05-20  Bruno Haible  <bruno@clisp.org>
73783         * tests/test-memcmp.c (main): Test also the sign of the result. Test
73784         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
73786 2008-05-20  Simon Josefsson  <simon@josefsson.org>
73788         * modules/memcmp-tests: New file.
73789         * tests/test-memcmp.c: New file.
73791 2008-05-19  Bruno Haible  <bruno@clisp.org>
73793         * modules/propername (Notice, configure.ac): Put quoted "..." into
73794         --keyword option.
73795         * lib/propername.h: Update comments accordingly.
73796         Reported by Eric Blake.
73798 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
73800         * modules/getpass-gnu (Depends-on): Add fseeko.
73802 2008-05-19  Simon Josefsson  <simon@josefsson.org>
73804         * modules/base64-tests: New file.
73806 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
73808         * lib/base64.c (base64_decode_ctx): If a decode context structure
73809         was passed in use it to ignore newlines.  If a context structure
73810         was _not_ passed in, continue to treat newlines as garbage (this
73811         is the historical behavior).  Formerly base64_decode.
73812         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
73813         takes a decode context structure.
73814         * lib/base64.h (base64_decode): Macro for four-argument calls.
73815         (base64_decode_alloc): Likewise.
73816         * lib/base64.c (base64_decode_ctx): If a decode context structure
73817         was passed in use it to ignore newlines.  If a context structure
73818         was _not_ passed in, continue to treat newlines as garbage (this
73819         is the historical behavior).  Formerly base64_decode.
73820         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
73821         takes a decode context structure.
73822         * lib/base64.h (base64_decode): Macro for four-argument calls.
73823         (base64_decode_alloc): Likewise.
73825 2008-05-19  Jim Meyering  <meyering@redhat.com>
73827         avoid a warning from gcc
73828         * lib/trim.c (IF_LINT): Define.
73829         (trim2): Use it to avoid a "may be used uninitialized" warning.
73831         Fix doc typo.
73832         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
73834 2008-05-19  Bruno Haible  <bruno@clisp.org>
73836         * doc/glibc-functions/getpass.texi: Document limits of other
73837         implementations.
73839 2008-05-19  Simon Josefsson  <simon@josefsson.org>
73840             Bruno Haible <bruno@clisp.org>
73842         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
73844 2008-05-18  Bruno Haible  <bruno@clisp.org>
73846         * modules/propername: New file, from GNU gettext.
73847         * lib/propername.h: New file, from GNU gettext.
73848         * lib/propername.c: New file, from GNU gettext.
73849         * MODULES.html.sh (Internationalization functions): Add propername.
73851 2008-05-16  Jim Meyering  <meyering@redhat.com>
73852             Bruno Haible  <bruno@clisp.org>
73854         Avoid some warnings from "gcc -Wshadow".
73855         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
73857 2008-05-15  Eric Blake  <ebb9@byu.net>
73859         Extend previous patch to cygwin 1.7.0.
73860         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
73861         fast implementation in cygwin >= 1.7.0.
73862         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73863         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73865 2008-05-15  Bruno Haible  <bruno@clisp.org>
73867         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
73868         implementation in glibc >= 2.9.
73869         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73872 2008-05-15  Bruno Haible  <bruno@clisp.org>
73874         * MODULES.html.sh (Internationalization functions): Remove linebreak.
73875         (Unicode string functions): Add unilbrk/*.
73876         Reported by Karl Berry.
73878 2008-05-15  Eric Blake  <ebb9@byu.net>
73880         Fix violation of <stdbool.h> replacement in regex.
73881         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
73882         * lib/regexec.c (re_search_internal): Likewise.
73883         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
73885 2008-05-15  Jim Meyering  <meyering@redhat.com>
73887         avoid distracting test output when git or cvs is not found
73888         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
73889         * tests/test-vc-list-files-git.sh: Likewise.
73891 2008-05-15  Eric Blake  <ebb9@byu.net>
73893         Glibc finally accepted the memmem speedup code, bugzilla #5514.
73894         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
73895         glibc version.
73896         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
73897         * doc/posix-functions/strstr.texi (strstr): Likewise.
73898         * lib/str-two-way.h (MAX): Sychronize with glibc.
73900 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
73902         * lib/regcomp.c (optimize_utf8): Add a note on why we test
73903         opr.ctx_type.
73904         (calc_first): Initialize constraint field.
73905         (duplicate_node_closure): Use it instead of special casing ANCHORS.
73906         Fix grammar.
73907         (duplicate_node): Merge constraint field for all node types.
73908         (calc_eclosure_iter): Look at constraint field for all node types.
73909         * lib/regex_internal.c (create_cd_newstate): Don't look at
73910         opr.ctx_type.
73912 2008-05-14  Bruno Haible  <bruno@clisp.org>
73914         Help GCC to do better code generation.
73915         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
73916         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
73917         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
73918         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
73919         Declare with attribute 'malloc' if supported.
73921 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
73923         use "echo STR|wc -c" rather than unportable "expr length STR"
73924         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
73925         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
73927 2008-05-14  Jim Meyering  <meyering@redhat.com>
73929         use dd ibs=$n count=1 ... rather than less-portable head -c$n
73930         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
73931         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
73932         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
73933         via Collin Lasse.
73935 2008-05-14  Eric Blake  <ebb9@byu.net>
73937         Avoid quadratic growth in gl_LIBSOURCES.
73938         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
73939         Suggested by Bruno Haible.
73941         Test xmemdup0.
73942         * modules/xmemdup0-tests: New file.
73943         * tests/test-xmemdup0.c: Likewise.
73945 2008-05-13  Eric Blake  <ebb9@byu.net>
73947         Split xmemdup0 into its own module.
73948         * modules/xmemdup0: New file.
73949         * lib/xmemdup0.h: Likewise.
73950         * lib/xmemdup0.c: Likewise.
73951         * MODULES.html.sh (Memory management functions): Add xmemdup0.
73952         * lib/xalloc.h (xmemdup0): Remove.
73953         * lib/xmalloc.c (xmemdup0): Likewise.
73955 2008-05-13  Eric Blake  <ebb9@byu.net>
73956             Bruno Haible  <bruno@clisp.org>
73958         Reduce number of forks required during autoconf.
73959         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
73960         and gl_LIBSOURCES_DIR.
73961         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
73962         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
73963         m4_syscmd per file.
73964         <m4_foreach_w>: Move...
73965         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
73967 2008-05-13  Eric Blake  <ebb9@byu.net>
73969         * gnulib-tool: Fix various comment typos.
73971 2008-05-12  Bruno Haible  <bruno@clisp.org>
73973         Tailor the linebreaking algorithm.
73974         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
73976 2008-05-12  Bruno Haible  <bruno@clisp.org>
73978         Update to Unicode 5.0.0.
73979         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
73980         LBP_JV, LBP_JT. Redistribute values.
73981         (unilbrk_table): Change size.
73982         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
73983         Unicode TR#14 rev. 22.
73984         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
73985         LBP_JV, LBP_JT. Redistribute values.
73986         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
73987         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
73988         Update.
73989         * lib/unilbrk/lbrkprop1.h: Regenerated.
73990         * lib/unilbrk/lbrkprop2.h: Regenerated.
73991         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
73992         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
73993         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
73994         Likewise.
73995         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
73996         Likewise.
73997         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
73998         result.
73999         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
74000         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
74001         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
74002         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
74003         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
74004         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
74006 2008-05-11  Bruno Haible  <bruno@clisp.org>
74008         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
74010 2008-05-11  Bruno Haible  <bruno@clisp.org>
74012         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
74013         * modules/unilbrk/gen-lbrk: New file.
74015 2008-05-11  Bruno Haible  <bruno@clisp.org>
74017         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
74018         * m4/sha512.m4 (gl_SHA512): Likewise.
74020 2008-05-11  Jim Meyering  <meyering@redhat.com>
74022         New modules: crypto/sha256, crypto/sha512 (from coreutils)
74023         * modules/crypto/sha256: New file.
74024         * modules/crypto/sha512: Likewise.
74025         * lib/sha256.c: Likewise.
74026         * lib/sha256.h: Likewise.
74027         * lib/sha512.c: Likewise.
74028         * lib/sha512.h: Likewise.
74029         * lib/u64.h: Likewise.
74030         * m4/sha256.m4: Likewise.
74031         * m4/sha512.m4: Likewise.
74032         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
74034 2008-05-10  Bruno Haible  <bruno@clisp.org>
74036         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
74037         (Input/Output <stdio.h>): Add xprintf.
74038         (Signal handling <signal.h>): Add strsignal.
74039         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
74040         (Core language properties): Add func.
74041         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
74042         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
74043         strings.
74044         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
74045         (Input/output): New section.
74046         (File system functions): Add openat-die, stat-macros.
74047         (Networking functions): Add sockets.
74048         (Unicode string functions): Add unictype/*.
74049         (Support for building libraries and executables): Add gperf.
74050         (Support for building documentation): Add agpl-3.0.
74051         (Misc): Add nocrash.
74053 2008-05-10  Bruno Haible  <bruno@clisp.org>
74055         * modules/unictype/gen-ctype: New file.
74057 2008-05-10  Jim Meyering  <meyering@redhat.com>
74059         Make chdir-safer.c more efficient on a system with no symlinks.
74060         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
74061         also if ELOOP is zero.  Suggested by Bruno Haible.
74063         Make chdir-safer.c slightly safer.
74064         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
74065         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
74067         Avoid compile failure on systems without ELOOP (like mingw).
74068         * lib/chdir-safer.c (ELOOP): Define if not already defined.
74069         Reported by Bruno Haible.
74071 2008-05-10  Bruno Haible  <bruno@clisp.org>
74073         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
74074         (is_utf8_encoding): Use a case-insensitive comparison.
74075         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
74076         streq.
74078 2008-05-10  Bruno Haible  <bruno@clisp.org>
74080         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
74081         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
74082         * lib/unilbrk/ulc-common.h (iconv_string_length,
74083         iconv_string_keeping_offsets): Remove declarations.
74084         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
74085         Don't include <iconv.h>, streq.h, xsize.h.
74086         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
74087         conversion.
74088         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
74089         <iconv.h>, streq.h, xsize.h.
74090         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
74091         conversion.
74092         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
74093         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
74094         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
74095         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
74097 2008-05-10  Bruno Haible  <bruno@clisp.org>
74099         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
74100         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
74102         * modules/unilbrk/u32-width-linebreaks-tests: New file.
74103         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
74105         * modules/unilbrk/u16-width-linebreaks-tests: New file.
74106         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
74108         * modules/unilbrk/u8-width-linebreaks-tests: New file.
74109         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
74111         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
74112         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
74114         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
74115         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
74117         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
74118         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
74120         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
74121         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
74123 2008-05-10  Bruno Haible  <bruno@clisp.org>
74125         Split up 'linebreak' module.
74126         * lib/unilbrk.h: New file, based on lib/linebreak.h.
74127         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
74128         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
74129         modifications.
74130         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
74131         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
74132         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
74133         lib/linebreak.c.
74134         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
74135         lib/linebreak.c.
74136         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
74137         lib/linebreak.c.
74138         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
74139         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
74140         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
74141         lib/linebreak.c.
74142         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
74143         lib/linebreak.c.
74144         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
74145         lib/linebreak.c.
74146         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
74147         lib/linebreak.c.
74148         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
74149         lib/linebreak.c.
74150         * modules/unilbrk/base: New file.
74151         * modules/unilbrk/tables: New file.
74152         * modules/unilbrk/u8-possible-linebreaks: New file.
74153         * modules/unilbrk/u16-possible-linebreaks: New file.
74154         * modules/unilbrk/u32-possible-linebreaks: New file.
74155         * modules/unilbrk/ulc-common: New file.
74156         * modules/unilbrk/ulc-possible-linebreaks: New file.
74157         * modules/unilbrk/u8-width-linebreaks: New file.
74158         * modules/unilbrk/u16-width-linebreaks: New file.
74159         * modules/unilbrk/u32-width-linebreaks: New file.
74160         * modules/unilbrk/ulc-width-linebreaks: New file.
74161         * lib/linebreak.h: Remove file.
74162         * lib/linebreak.c: Remove file.
74163         * m4/linebreak.m4: Remove file.
74164         * modules/linebreak: Remove file.
74165         * NEWS: Mention the changes.
74167 2008-05-09  Eric Blake  <ebb9@byu.net>
74169         Add xmemdup0.
74170         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
74171         implementation.
74172         * lib/xmalloc.c (xmemdup0): New C implementation.
74174 2008-05-08  Bruno Haible  <bruno@clisp.org>
74176         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
74178 2008-05-07  Eric Blake  <ebb9@byu.net>
74180         Support cross-compilation of <wctype.h>.
74181         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
74182         AC_CACHE_CHECK.
74184 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
74186         * build-aux/vc-list-files: Add support for bzr.
74188 2008-05-03  Jim Meyering  <meyering@redhat.com>
74190         avoid failed assertion with tight malloc
74191         * tests/test-getndelim2.c: Correct an off-by-one assertion.
74193 2008-05-03  Simon Josefsson  <simon@josefsson.org>
74195         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
74196         are needed from arpa/inet.h.
74197         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
74198         Reported by Bruno Haible.
74200 2008-05-02  Jim Meyering  <meyering@redhat.com>
74202         avoid compilation error on FreeBSD 6
74203         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
74205 2008-05-01  Jim Meyering  <meyering@redhat.com>
74207         useless-if-before-free: correct --help's exit status description
74208         * build-aux/useless-if-before-free (usage): Like grep, exit 0
74209         for one or more matches, etc.  Reported by Bruno Haible.
74211         vc-list-files: make the stand-alone gnulib test work
74212         * modules/vc-list-files-tests (configure.ac):
74213         Define and AC_SUBST abs_aux_dir.
74214         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
74215         $(abs_top_srcdir) to each script and having each of them
74216         duplicate the work of setting PATH, set PATH here, using
74217         the new variable, abs_aux_dir instead.
74218         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
74219         * tests/test-vc-list-files-git.sh: Likewise.
74220         Reported by Bruno Haible.
74222 2008-05-01  Bruno Haible  <bruno@clisp.org>
74224         * lib/getndelim2.c (getndelim2): Fix newsize computation during
74225         reallocation. Rename 'done' to 'found_delimiter'.
74227 2008-05-01  Jim Meyering  <meyering@redhat.com>
74229         vc-list-files: accommodate /bin/sh like the one from Solaris 10
74230         * build-aux/vc-list-files: Use `...`, not $(...).
74232 2008-04-30  Jim Meyering  <meyering@redhat.com>
74234         add tests for vc-list-files
74235         * modules/vc-list-files-tests: New module.
74236         * tests/test-vc-list-files-cvs.sh: New file.
74237         * tests/test-vc-list-files-git.sh: New file.
74239         avoid a warning from gcc
74240         * lib/getndelim2.c (IF_LINT): Define.
74241         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
74243         vc-list-files: work properly with build-aux/cvsu, too
74244         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
74245         to all cvs-based clauses.
74247         vc-list-files: work properly in the CVS+awk case, too
74248         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
74250         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
74251         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
74252         take more than one file argument, so .  Add quotes, just in case $dir
74253         ever contains a shell meta-character.  Prompted by Soren Hansen in
74254         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
74256 2008-04-29  Eric Blake  <ebb9@byu.net>
74258         Optimize getndelim2 to use block operations when possible.
74259         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
74260         freadseek, and memchr2.
74261         * lib/getndelim2.c (getndelim2): Use them for block reads.
74263 2008-04-29  Bruno Haible  <bruno@clisp.org>
74265         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
74266         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74267         * modules/inet_ntop (Depends-on): Add extensions.
74268         * modules/inet_pton (Depends-on): Likewise.
74269         Reported by Simon Josefsson.
74271 2008-04-29  Jim Meyering  <meyering@redhat.com>
74273         When the is more than one match in a block, match all of them.
74274         * build-aux/useless-if-before-free: Iterate through each block
74275         until there are no more matches.
74277         Fix broken useless-if-before-free script.
74278         * build-aux/useless-if-before-free: Fix typo: missing "?" after
74279         the expression to match cast of argument to free-like function.
74281 2008-04-29  Eric Blake  <ebb9@byu.net>
74283         Use new header.
74284         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
74286 2008-04-29  Jim Meyering  <meyering@redhat.com>
74288         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
74289         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
74290         by gnulib to exist and to declare e.g., inet_ntop.
74291         Don't include "inet_ntop.h", now removed.
74293         * m4/arpa_inet_h.m4: Remove trailing blanks.
74295 2008-04-29  Eric Blake  <ebb9@byu.net>
74297         Silence valgrind on safe reads beyond potential array bounds.
74298         * lib/rawmemchr.valgrind: New file.
74299         * lib/strchrnul.valgrind: Likewise.
74300         * modules/rawmemchr (Files): Distribute new file.
74301         * modules/strchrnul (Files): Likewise.
74302         Suggested by Bruno Haible.
74304 2008-04-29  Bruno Haible  <bruno@clisp.org>
74306         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
74307         (inet_ntop, inet_pton): Change portability warning's wording.
74308         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
74309         Invoke gl_CHECK_NEXT_HEADERS.
74310         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
74311         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
74312         set ARPA_INET_H.
74313         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74314         * modules/arpa_inet (Description): No longer only for systems that
74315         lack it.
74316         (Depends-on): Add include_next.
74317         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
74318         HAVE_ARPA_INET_H.
74320 2008-04-29  Jim Meyering  <meyering@redhat.com>
74322         * modules/mkdir (License): Re-license as LGPLv2+.
74324 2008-04-29  Bruno Haible  <bruno@clisp.org>
74326         * modules/rawmemchr (Maintainer): Set to Eric.
74327         * modules/strchrnul (Maintainer): Likewise.
74329 2008-04-29  Simon Josefsson  <simon@josefsson.org>
74331         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
74332         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
74334         * modules/arpa_inet (arpa/inet.h): Use them.
74336 2008-04-28  Eric Blake  <ebb9@byu.net>
74338         Test getndelim2.
74339         * modules/getndelim2-tests: New file.
74340         * tests/test-getndelim2.c: Likewise.
74341         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
74342         stream.
74343         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
74345         * MODULES.html.sh: Document new module.
74347 2008-04-20  Bruno Haible  <bruno@clisp.org>
74349         * lib/c-stack.c (die): Use raise.
74350         * modules/c-stack (Depends-on): Add raise.
74352 2008-04-28  Bruno Haible  <bruno@clisp.org>
74354         Expect rpmatch to be declared.
74355         * lib/yesno.c (rpmatch): Remove declaration.
74357         Declare rpmatch.
74358         * lib/stdlib.in.h (rpmatch): New declaration.
74359         * lib/rpmatch.c: Include <stdlib.h> first.
74360         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
74361         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
74362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
74363         HAVE_RPMATCH.
74364         * modules/rpmatch (Depends-on): Add stdlib, extensions.
74365         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74366         (Include): Set to <stdlib.h>.
74367         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
74368         HAVE_RPMATCH.
74369         * NEWS: Document the change.
74371 2008-04-28  Bruno Haible  <bruno@clisp.org>
74373         Change rpmatch to use nl_langinfo when appropriate.
74374         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
74375         (N_): New macro.
74376         (localized_pattern): New function/macro.
74377         (try): Remove match, nomatch arguments. Copy the pattern into safe
74378         memory before caching it.
74379         (rpmatch): Use localized_pattern. Add translator comments.
74380         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
74381         Suggested by Eric Blake.
74382         * modules/rpmatch (Depends-on): Add stdbool.
74384 2008-04-28  Eric Blake  <ebb9@byu.net>
74386         Add rawmemchr module, matching glibc.
74387         * modules/string (Makefile.am): New indicator.
74388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
74389         * lib/string.in.h (rawmemchr): Declare when appropriate.
74390         * modules/rawmemchr: New file.
74391         * m4/rawmemchr.m4: Likewise.
74392         * lib/rawmemchr.c: Likewise.
74393         * modules/rawmemchr-tests: Likewise.
74394         * tests/test-rawmemchr.c: Likewise.
74395         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
74396         module.
74397         * modules/strchrnul (Depends-on): Add rawmemchr.
74398         * lib/strchrnul.c (strchrnul): Optimize a corner case.
74400         Whitespace cleanup.
74401         * tests/test-strchrnul.c: Reindent.
74402         * lib/strchrnul.c: Likewise.
74404         Optimize and test strchrnul.
74405         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
74406         * modules/strchrnul-tests: New file.
74407         * tests/test-strchrnul.c: Likewise.
74409         Remove intprops dependency.
74410         * modules/memchr (Depends-on): Remove intprops.
74411         * modules/memrchr (Depends-on): Likewise.
74412         * modules/memchr2 (Depends-on): Likewise.
74413         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
74414         * lib/memrchr.c (__memrchr): Likewise.
74415         * lib/memrchr2.c (memchr2): Likewise.
74416         Reported by Simon Josefsson.
74418 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74420         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
74421         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74423 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74425         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
74427         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
74429         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
74431         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
74432         declarations.
74433         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
74435         * m4/inet_pton.m4: Don't check for header files.
74437         * m4/inet_ntop.m4: Don't check for header files.
74439 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74441         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
74442         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
74443         trigger for cygwin).
74444         Reported by Bruno Haible  <bruno@clisp.org>.
74446 2008-04-28  Bruno Haible  <bruno@clisp.org>
74448         * doc/posix-functions/strdup.texi: Mention mingw problem.
74450 2008-04-27  Bruno Haible  <bruno@clisp.org>
74452         * modules/stat-time-tests (Depends-on): Add sleep.
74453         * tests/test-stat-time.c (force_unlink): New function.
74454         (cleanup): Use it.
74455         (test_mtime): Remove the ctime related tests.
74456         (test_ctime): New function, containing the ctime related tests.
74457         (main): Call test_ctime, except on native Windows platforms.
74459 2008-04-27  Bruno Haible  <bruno@clisp.org>
74461         * lib/rpmatch.c (rpmatch): Add some comments.
74462         Reported by James Youngman <jay@gnu.org>.
74464 2008-04-27  Bruno Haible  <bruno@clisp.org>
74466         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
74467         quiet NaNs.
74469 2008-04-27  Bruno Haible  <bruno@clisp.org>
74471         Make test-yesno.sh work on mingw.
74472         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
74473         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
74474         (main): Set stdin to binary mode.
74475         * modules/yesno-tests (Depends-on): Add binary-io.
74477 2008-04-27  Bruno Haible  <bruno@clisp.org>
74479         Fix 'isfinite' on x86, x86_64, ia64 platforms.
74480         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
74481         argument that lie outside the IEEE 854 domain.
74482         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
74483         (gl_ISFINITE): Use it.
74484         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
74486 2008-04-27  Bruno Haible  <bruno@clisp.org>
74488         Allow local renaming in config.h.
74489         * lib/memrchr.c (memrchr): Don't undefine outside libc.
74491 2008-04-27  Bruno Haible  <bruno@clisp.org>
74493         * lib/memchr.c (__memchr): Change type of 'i'.
74494         * lib/memchr2.c (memchr2): Likewise.
74496 2008-04-26  Eric Blake  <ebb9@byu.net>
74497         and Bruno Haible  <bruno@clisp.org>
74499         Optimize and test memrchr.
74500         * modules/memrchr (Depends-on): Add intprops.
74501         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
74502         * modules/memrchr-tests: New file.
74503         * tests/test-memrchr.c: New file.
74505 2008-04-26  Bruno Haible  <bruno@clisp.org>
74507         Add tentative support for DragonFly BSD.
74508         * lib/stdio-impl.h: Add macros for DragonFly BSD.
74509         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
74510         fp.
74511         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
74512         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
74513         * lib/fpurge.c (fpurge): Likewise.
74514         * lib/freadable.c (freaadable): Likewise.
74515         * lib/freadahead.c (freadahead): Likewise.
74516         * lib/freading.c (freading): Likewise.
74517         * lib/freadptr.c (freadptr): Likewise.
74518         * lib/freadseek.c (freadptrinc): Likewise.
74519         * lib/fseeko.c (fseeko): Likewise.
74520         * lib/fseterr.c (fseterr): Likewise.
74521         * lib/fwritable.c (fwritable): Likewise.
74522         * lib/fwriting.c (fwriting): Likewise.
74524 2008-04-26  Bruno Haible  <bruno@clisp.org>
74526         * lib/stdio-impl.h: New file.
74527         * lib/fbufmode.c: Include stdio-impl.h.
74528         (fbufmode): Use fp_, remove redundant #defines.
74529         * lib/fflush.c: Include stdio-impl.h.
74530         (clear_ungetc_buffer): Remove redundant #defines.
74531         * lib/fpurge.c: Include stdio-impl.h.
74532         (fpurge): Remove redundant #defines.
74533         * lib/freadable.c: Include stdio-impl.h.
74534         (freadable): Remove redundant #defines.
74535         * lib/freadahead.c: Include stdio-impl.h.
74536         (freadahead): Remove redundant #defines.
74537         * lib/freading.c: Include stdio-impl.h.
74538         (freading): Remove redundant #defines.
74539         * lib/freadptr.c: Include stdio-impl.h.
74540         (freadptr): Remove redundant #defines.
74541         * lib/freadseek.c: Include stdio-impl.h.
74542         (freadptrinc): Remove redundant #defines.
74543         * lib/fseeko.c: Include stdio-impl.h.
74544         (rpl_fseeko): Remove redundant #defines.
74545         * lib/fseterr.c: Include stdio-impl.h.
74546         (fseterr): Remove redundant #defines.
74547         * lib/fwritable.c: Include stdio-impl.h.
74548         (fwritable: Remove redundant #defines.
74549         * lib/fwriting.c: Include stdio-impl.h.
74550         (fwriting): Remove redundant #defines.
74551         * modules/fbufmode (Files): Add lib/stdio-impl.h.
74552         * modules/fflush (Files): Likewise.
74553         * modules/fpurge (Files): Likewise.
74554         * modules/freadable (Files): Likewise.
74555         * modules/freadahead (Files): Likewise.
74556         * modules/freading (Files): Likewise.
74557         * modules/freadptr (Files): Likewise.
74558         * modules/freadseek (Files): Likewise.
74559         * modules/fseeko (Files): Likewise.
74560         * modules/fseterr (Files): Likewise.
74561         * modules/fwritable (Files): Likewise.
74562         * modules/fwriting (Files): Likewise.
74564 2008-04-26  Bruno Haible  <bruno@clisp.org>
74566         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
74567         restore_seek_optimization, update_fpos_cache): New functions, extracted
74568         from rpl_fflush.
74569         (rpl_fflush): Use them.
74570         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
74571         (gl_REPLACE_FFLUSH): Use it.
74573 2008-04-26  Bruno Haible  <bruno@clisp.org>
74575         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
74576         on Solaris.
74577         * tests/test-xstrtoimax.sh: Likewise.
74578         * tests/test-xstrtoumax.sh: Likewise.
74579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74581 2008-04-26  Bruno Haible  <bruno@clisp.org>
74583         * modules/memchr-tests: New file.
74584         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
74586 2008-04-26  Eric Blake  <ebb9@byu.net>
74587             Bruno Haible  <bruno@clisp.org>
74589         * lib/memchr.c: Include intprops.h.
74590         (__memchr): Optimize parallel detection of matching bytes. Rename local
74591         variables. Add explanatory comments.
74593 2008-04-26  Bruno Haible  <bruno@clisp.org>
74595         Fix module 'memchr', broken since 2000-10-28.
74596         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
74598 2008-04-26  Bruno Haible  <bruno@clisp.org>
74600         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
74601         comments.
74603 2008-04-25  Eric Blake  <ebb9@byu.net>
74605         Use native fstatat on cygwin 1.7.0.
74606         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
74607         first.
74609 2008-04-23  Eric Blake  <ebb9@byu.net>
74611         Improve memchr2 performance.
74612         * lib/memchr2.c (memchr2): Further optimize parallel detection of
74613         NUL bytes.
74614         * modules/memchr2 (Depends-on): Use intprops.h.
74616 2008-04-23  Simon Josefsson  <simon@josefsson.org>
74618         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
74619         an inline function instead of a CPP macro.  Patch by Ben Pfaff
74620         <blp@cs.stanford.edu>.
74622 2008-04-23  Simon Josefsson  <simon@josefsson.org>
74624         * lib/arpa_inet.in.h: New file.
74626         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
74627         (Makefile.am): Sed in substitute header file.
74629         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
74630         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
74632         * modules/inet_ntop (configure.ac): Use
74633         gl_ARPA_INET_MODULE_INDICATOR.
74635         * modules/inet_pton (configure.ac): Use
74636         gl_ARPA_INET_MODULE_INDICATOR.
74638 2008-04-22  Jim Meyering  <meyering@redhat.com>
74640         * modules/verify (License): Re-license as LGPLv2+.
74642 2008-04-22  Simon Josefsson  <simon@josefsson.org>
74644         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
74645         parameter to void* as per POSIX standard (MinGW uses char*).
74647 2008-04-21  Bruno Haible  <bruno@clisp.org>
74649         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74650         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74651         Define to replacements if REPLACE_ISWCNTRL is 1.
74652         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
74653         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
74654         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
74655         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
74656         what it fixes.
74657         * doc/posix-functions/iswalpha.texi: Likewise.
74658         * doc/posix-functions/iswblank.texi: Likewise.
74659         * doc/posix-functions/iswcntrl.texi: Likewise.
74660         * doc/posix-functions/iswdigit.texi: Likewise.
74661         * doc/posix-functions/iswgraph.texi: Likewise.
74662         * doc/posix-functions/iswlower.texi: Likewise.
74663         * doc/posix-functions/iswprint.texi: Likewise.
74664         * doc/posix-functions/iswpunct.texi: Likewise.
74665         * doc/posix-functions/iswspace.texi: Likewise.
74666         * doc/posix-functions/iswupper.texi: Likewise.
74667         * doc/posix-functions/iswxdigit.texi: Likewise.
74668         Reported by Alain Guibert.
74670 2008-04-21  Bruno Haible  <bruno@clisp.org>
74672         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
74673         Patch by Alain Guibert.
74675 2008-04-21  Bruno Haible  <bruno@clisp.org>
74677         Fix test failures on mingw.
74678         * tests/test-xstrtol.c (print_no_progname): New function.
74679         (main): Install it in error_print_progname hook.
74680         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
74681         * tests/test-xstrtoimax.sh: Likewise.
74682         * tests/test-xstrtoumax.sh: Likewise.
74684 2008-04-21  Bruno Haible  <bruno@clisp.org>
74686         Fix test failure on mingw.
74687         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
74689 2008-04-21  Bruno Haible  <bruno@clisp.org>
74691         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
74692         Actually assign a value.
74694 2008-04-20  Bruno Haible  <bruno@clisp.org>
74696         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
74697         take 2.
74698         * lib/canonicalize.c (canonicalize_file_name): Elide if the
74699         'canonicalize-lgpl' module is also used.
74700         * lib/canonicalize-lgpl.c: Undo last change.
74701         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
74703 2008-04-20  Bruno Haible  <bruno@clisp.org>
74705         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
74706         config.h. Provide _mkdir based fallback for mingw.
74707         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
74708         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
74709         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
74710         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
74711         rather than defining mkdir in config.h.
74712         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
74713         (gl_SYS_STAT_H_DEFAULTS): New macro.
74714         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
74715         HAVE_IO_H any more.
74716         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
74717         HAVE_DECL_MKDIR and HAVE_IO_H.
74719 2008-04-20  Bruno Haible  <bruno@clisp.org>
74721         * lib/isapipe.c: Port to native Windows platforms.
74723 2008-04-20  Bruno Haible  <bruno@clisp.org>
74725         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
74727 2008-04-21  Eric Blake  <ebb9@byu.net>
74729         Work around preprocessors that don't handle UINTMAX_MAX.
74730         * lib/memchr2.c (memchr2): Avoid embedded #if.
74731         Reported by Alain Guibert, fix suggested by Bruno Haible.
74733 2008-04-21  Simon Josefsson  <simon@josefsson.org>
74735         * doc/posix-functions/strftime.texi (strftime): Explain better
74736         Windows incompatibility.  Suggested by Micah Cowan
74737         <micah@cowan.name>.
74739 2008-04-20  Bruno Haible  <bruno@clisp.org>
74741         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
74742         unistr/u8-mblen.
74744 2008-04-20  Bruno Haible  <bruno@clisp.org>
74746         Fix test failure on platforms with non-GNU iconv.
74747         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
74748         (U_TO_U8): Use it, rather than u16_to_u8.
74749         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
74750         units at the end of the input string.
74751         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
74753 2008-04-20  Bruno Haible  <bruno@clisp.org>
74755         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
74756         when the resulting length is 0.
74757         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
74759 2008-04-20  Bruno Haible  <bruno@clisp.org>
74761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
74762         works.
74763         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
74765 2008-04-20  Bruno Haible  <bruno@clisp.org>
74767         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
74768         * modules/tsearch-tests (configure.ac): Test for initstate function.
74770 2008-04-20  Bruno Haible  <bruno@clisp.org>
74772         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
74773         for nlink_t if missing.
74774         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
74776 2008-04-19  Bruno Haible  <bruno@clisp.org>
74778         Work around snprintf bug on Linux libc5.
74779         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
74780         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
74781         gl_SNPRINTF_SIZE1.
74782         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74783         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
74784         that test failed.
74785         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
74786         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
74787         * modules/snprintf (Files): Add m4/printf.m4.
74788         * modules/vsnprintf (Files): Likewise.
74789         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
74790         * doc/posix-functions/vsnprintf.texi: Likewise.
74792 2008-04-19  Bruno Haible  <bruno@clisp.org>
74794         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
74795         from 0.0058 to less than 10^-7.
74797 2008-04-19  Bruno Haible  <bruno@clisp.org>
74799         Fix rounding when a precision is given.
74800         * lib/vasnprintf.c (is_borderline): New function.
74801         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
74802         9...9x.
74803         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
74804         %e, %g.
74805         * tests/test-vasprintf-posix.c (test_function): Likewise.
74806         * tests/test-snprintf-posix.h (test_function): Likewise.
74807         * tests/test-sprintf-posix.h (test_function): Likewise.
74808         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
74809         * tests/test-printf-posix.h (test_function): Likewise.
74810         * tests/test-printf-posix.output: Update.
74811         Reported by John Darrington <john@darrington.wattle.id.au> via
74812         Ben Pfaff <blp@cs.stanford.edu>.
74814 2008-04-18  Simon Josefsson  <simon@josefsson.org>
74816         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
74817         Suggested by Bruno Haible <bruno@clisp.org>.
74819 2008-04-17  Bruno Haible  <bruno@clisp.org>
74821         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
74822         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
74823         implementation.
74824         Patch by Bruce Merry <bmerry@gmail.com>.
74826 2008-04-17  Simon Josefsson  <simon@josefsson.org>
74828         * doc/posix-functions/strftime.texi (strftime): Mention that %e
74829         doesn't work under Windows.
74831 2008-04-16  Bruno Haible  <bruno@clisp.org>
74833         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
74834         New macros.
74835         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
74836         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
74837         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
74838         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
74839         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
74840         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
74841         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
74842         macros.
74843         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
74844         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
74845         Northern Sotho, Uighur.
74847 2008-04-16  Bruno Haible  <bruno@clisp.org>
74849         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
74850         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
74851         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
74852         Reported by Daniel Bergström <daniel@octocode.com>.
74854 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
74855             Bruno Haible  <bruno@clisp.org>
74857         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
74858         function.
74859         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
74860         New functions, mostly extracted from gl_locale_name_default.
74861         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
74863 2008-04-16  Eric Blake  <ebb9@byu.net>
74865         Adjust strtod detection to catch glibc 2.7 bug.
74866         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
74867         Reported by John Gatewood Ham.
74869 2008-04-16  Bruno Haible  <bruno@clisp.org>
74871         Add tentative support for Linux libc5.
74872         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
74873         * lib/fpurge.c (fpurge): Likewise.
74874         * lib/freadable.c (freadable): Likewise.
74875         * lib/freadahead.c (freadahead): Likewise.
74876         * lib/freading.c (freading): Likewise.
74877         * lib/freadptr.c (freadptr): Likewise.
74878         * lib/freadseek.c (freadptrinc): Likewise.
74879         * lib/fseeko.c (rpl_fseeko): Likewise.
74880         * lib/fseterr.c (fseterr): Likewise.
74881         * lib/fwritable.c (fwritable): Likewise.
74882         * lib/fwriting.c (fwriting): Likewise.
74883         Reported by Alain Guibert <alguibert+bts@free.fr>.
74885 2008-04-15  Bruno Haible  <bruno@clisp.org>
74887         * modules/mathl (configure.ac): Define module indicator.
74889 2008-04-15  Bruno Haible  <bruno@clisp.org>
74891         * lib/logl.c (logl): Remove unused variables.
74893 2008-04-15  Bruno Haible  <bruno@clisp.org>
74895         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
74896         fails.
74898 2008-04-15  Bruno Haible  <bruno@clisp.org>
74900         * lib/trim.c (trim2): Fix argument of isspace() macro.
74902 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
74904         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
74905         to 0.
74906         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
74908 2008-04-14  Bruno Haible  <bruno@clisp.org>
74910         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
74911         AC_LANG_PROGRAM argument.
74912         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
74913         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
74914         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
74915         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74916         * m4/math_h.m4 (gl_MATH_H): Likewise.
74917         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
74918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
74919         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
74920         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
74921         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74922         * m4/regex.m4 (gl_REGEX): Likewise.
74923         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
74924         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
74925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74926         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
74927         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74928         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74929         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74930         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
74932 2008-04-14  Jim Meyering  <meyering@redhat.com>
74934         test-strtod: fix typos: s/abs/fabs/
74935         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
74937 2008-04-13  Bruno Haible  <bruno@clisp.org>
74939         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
74940         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
74941         module is also used and while not building the reloc-wrapper.
74943 2008-04-13  Bruno Haible  <bruno@clisp.org>
74945         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
74947 2008-04-13  Bruno Haible  <bruno@clisp.org>
74949         Fix AIX compilation failure introduced on 2008-04-02.
74950         * tests/test-frexp.c (exp): Undefine before redefining.
74951         * tests/test-frexpl.c (exp): Likewise.
74953 2008-04-13  Bruno Haible  <bruno@clisp.org>
74955         Work around a HP-UX stdio bug.
74956         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
74957         * tests/test-ftello.c (main): Likewise.
74958         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
74959         * doc/posix-functions/ftello.texi: Likewise.
74961 2008-04-13  Bruno Haible  <bruno@clisp.org>
74963         Make test-signbit pass on HP-UX/hppa.
74964         * tests/test-signbit.c (minus_zerol): New variable.
74965         (test_signbitl): Use it.
74967 2008-04-13  Bruno Haible  <bruno@clisp.org>
74969         Make truncl work on OSF/1 4.0.
74970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
74971         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
74972         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
74973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
74974         HAVE_DECL_TRUNCL.
74975         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
74976         HAVE_DECL_TRUNCL.
74977         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
74979 2008-04-13  Bruno Haible  <bruno@clisp.org>
74981         * lib/unictype.h: Remove trailing comma from enumeration definitions.
74983 2008-04-13  Bruno Haible  <bruno@clisp.org>
74985         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
74986         expression, so as to avoid HP-UX 11 cc compiler bug.
74988 2008-04-13  Bruno Haible  <bruno@clisp.org>
74990         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
74992 2008-04-13  Bruno Haible  <bruno@clisp.org>
74994         * lib/git-merge-changelog.c: Remove empty declaration outside of
74995         functions.
74997 2008-04-13  Bruno Haible  <bruno@clisp.org>
74999         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
75001 2008-04-13  Bruno Haible  <bruno@clisp.org>
75003         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
75004         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
75005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
75006         also if it exists but lacks definitions of the SHUT_* macros.
75007         * modules/sys_socket (Description): Update.
75008         Reported by Elbert Pol <e.pol@chello.nl>.
75010 2008-04-13  Bruno Haible  <bruno@clisp.org>
75012         * lib/localcharset.c (OS2): Don't redefine if already defined.
75013         Reported by Elbert Pol <e.pol@chello.nl>.
75015 2008-04-13  Bruno Haible  <bruno@clisp.org>
75017         * lib/binary-io.h [__EMX__]: Include <io.h>.
75018         Reported by Elbert Pol <e.pol@chello.nl>.
75020 2008-04-12  Bruno Haible  <bruno@clisp.org>
75022         * lib/fpucw.h: Enable the definitions also for x86_64.
75023         Needed for NetBSD/x86_64.
75024         Reported by Thomas Klausner <tk@giga.or.at>.
75026 2008-04-12  Bruno Haible  <bruno@clisp.org>
75028         * tests/test-strtod.c: Include isnand.h.
75029         (main): Use isnand instead of isnan.
75030         Reported by Jim Meyering.
75032 2008-04-12  Bruno Haible  <bruno@clisp.org>
75034         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
75035         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75037 2008-04-12  Jim Meyering  <meyering@redhat.com>
75039         * m4/math_h.m4 (gl_MATH_H): Fix typos.
75041 2008-04-12  Bruno Haible  <bruno@clisp.org>
75043         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
75044         Reported by Elbert Pol <e.pol@chello.nl>.
75046 2008-04-12  Eric Blake  <ebb9@byu.net>
75048         Work around Solaris 10 math.h bug.
75049         * m4/math_h.m4 (gl_MATH_H): Check for bug.
75050         (gl_MATH_H_DEFAULTS): Set up default.
75051         * modules/math (Makefile.am): Replace new indicators.
75052         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
75053         * tests/test-math.c (main): Test this.
75054         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
75055         * doc/posix-headers/math.texi (math.h): Mention bug.
75056         Reported by Nelson H. F. Beebe and Jim Meyering.
75058 2008-04-11  Bruno Haible  <bruno@clisp.org>
75060         Adapt to future versions of Apple GCC.
75061         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
75062         Reported by Peter O'Gorman <peter@pogma.com>.
75064 2008-04-11  Bruno Haible  <bruno@clisp.org>
75066         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
75068 2008-04-11  Bruno Haible  <bruno@clisp.org>
75070         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
75072         * modules/getaddrinfo-tests (Makefile.am): Define
75073         test_getaddrinfo_LDADD.
75075 2008-04-11  Bruno Haible  <bruno@clisp.org>
75077         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
75078         (init): Fix syntax error.
75079         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
75080         is declared.
75082 2008-04-11  Bruno Haible  <bruno@clisp.org>
75084         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
75085         * modules/glob (Depends-on): Add stdbool.
75087 2008-04-11  Bruno Haible  <bruno@clisp.org>
75089         * lib/trim.c: Include <string.h>.
75091 2008-04-11  Eric Blake  <ebb9@byu.net>
75093         Avoid compile failure on OS/2.
75094         * lib/regex_internal.h (internal_function): Disable optimization
75095         on OS/2 (__EMX__), where it caused compiler error.
75096         Reported by Elbert Pol.
75098 2008-04-11  Bruno Haible  <bruno@clisp.org>
75100         Flush the standard error stream before aborting. Needed on mingw.
75101         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
75102         * tests/test-array_list.c (ASSERT): Likewise.
75103         * tests/test-array_oset.c (ASSERT): Likewise.
75104         * tests/test-avltree_list.c (ASSERT): Likewise.
75105         * tests/test-avltree_oset.c (ASSERT): Likewise.
75106         * tests/test-avltreehash_list.c (ASSERT): Likewise.
75107         * tests/test-binary-io.c (ASSERT): Likewise.
75108         * tests/test-byteswap.c (ASSERT): Likewise.
75109         * tests/test-c-ctype.c (ASSERT): Likewise.
75110         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
75111         * tests/test-c-strcasestr.c (ASSERT): Likewise.
75112         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
75113         * tests/test-c-strstr.c (ASSERT): Likewise.
75114         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
75115         * tests/test-canonicalize.c (ASSERT): Likewise.
75116         * tests/test-carray_list.c (ASSERT): Likewise.
75117         * tests/test-ceilf1.c (ASSERT): Likewise.
75118         * tests/test-ceilf2.c (ASSERT): Likewise.
75119         * tests/test-ceill.c (ASSERT): Likewise.
75120         * tests/test-count-one-bits.c (ASSERT): Likewise.
75121         * tests/test-fbufmode.c (ASSERT): Likewise.
75122         * tests/test-fflush2.c (ASSERT): Likewise.
75123         * tests/test-floorf1.c (ASSERT): Likewise.
75124         * tests/test-floorf2.c (ASSERT): Likewise.
75125         * tests/test-floorl.c (ASSERT): Likewise.
75126         * tests/test-fopen.c (ASSERT): Likewise.
75127         * tests/test-fpending.c (ASSERT): Likewise.
75128         * tests/test-fprintf-posix.c (ASSERT): Likewise.
75129         * tests/test-fpurge.c (ASSERT): Likewise.
75130         * tests/test-freadable.c (ASSERT): Likewise.
75131         * tests/test-freadahead.c (ASSERT): Likewise.
75132         * tests/test-freading.c (ASSERT): Likewise.
75133         * tests/test-freadptr.c (ASSERT): Likewise.
75134         * tests/test-freadptr2.c (ASSERT): Likewise.
75135         * tests/test-freadseek.c (ASSERT): Likewise.
75136         * tests/test-freopen.c (ASSERT): Likewise.
75137         * tests/test-frexp.c (ASSERT): Likewise.
75138         * tests/test-frexpl.c (ASSERT): Likewise.
75139         * tests/test-fseek.c (ASSERT): Likewise.
75140         * tests/test-fseeko.c (ASSERT): Likewise.
75141         * tests/test-fstrcmp.c (ASSERT): Likewise.
75142         * tests/test-ftell.c (ASSERT): Likewise.
75143         * tests/test-ftello.c (ASSERT): Likewise.
75144         * tests/test-func.c (ASSERT): Likewise.
75145         * tests/test-fwritable.c (ASSERT): Likewise.
75146         * tests/test-fwriting.c (ASSERT): Likewise.
75147         * tests/test-getdelim.c (ASSERT): Likewise.
75148         * tests/test-getline.c (ASSERT): Likewise.
75149         * tests/test-i-ring.c (ASSERT): Likewise.
75150         * tests/test-iconv-utf.c (ASSERT): Likewise.
75151         * tests/test-iconv.c (ASSERT): Likewise.
75152         * tests/test-isfinite.c (ASSERT): Likewise.
75153         * tests/test-isnand.c (ASSERT): Likewise.
75154         * tests/test-isnanf.c (ASSERT): Likewise.
75155         * tests/test-isnanl.h (ASSERT): Likewise.
75156         * tests/test-ldexpl.c (ASSERT): Likewise.
75157         * tests/test-linked_list.c (ASSERT): Likewise.
75158         * tests/test-linkedhash_list.c (ASSERT): Likewise.
75159         * tests/test-localename.c (ASSERT): Likewise.
75160         * tests/test-lseek.c (ASSERT): Likewise.
75161         * tests/test-mbscasecmp.c (ASSERT): Likewise.
75162         * tests/test-mbscasestr1.c (ASSERT): Likewise.
75163         * tests/test-mbscasestr2.c (ASSERT): Likewise.
75164         * tests/test-mbscasestr3.c (ASSERT): Likewise.
75165         * tests/test-mbscasestr4.c (ASSERT): Likewise.
75166         * tests/test-mbschr.c (ASSERT): Likewise.
75167         * tests/test-mbscspn.c (ASSERT): Likewise.
75168         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
75169         * tests/test-mbspbrk.c (ASSERT): Likewise.
75170         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
75171         * tests/test-mbsrchr.c (ASSERT): Likewise.
75172         * tests/test-mbsspn.c (ASSERT): Likewise.
75173         * tests/test-mbsstr1.c (ASSERT): Likewise.
75174         * tests/test-mbsstr2.c (ASSERT): Likewise.
75175         * tests/test-mbsstr3.c (ASSERT): Likewise.
75176         * tests/test-memchr2.c (ASSERT): Likewise.
75177         * tests/test-memmem.c (ASSERT): Likewise.
75178         * tests/test-open.c (ASSERT): Likewise.
75179         * tests/test-printf-frexp.c (ASSERT): Likewise.
75180         * tests/test-printf-frexpl.c (ASSERT): Likewise.
75181         * tests/test-printf-posix.c (ASSERT): Likewise.
75182         * tests/test-quotearg.c (ASSERT): Likewise.
75183         * tests/test-rbtree_list.c (ASSERT): Likewise.
75184         * tests/test-rbtree_oset.c (ASSERT): Likewise.
75185         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
75186         * tests/test-round1.c (ASSERT): Likewise.
75187         * tests/test-roundf1.c (ASSERT): Likewise.
75188         * tests/test-roundl.c (ASSERT): Likewise.
75189         * tests/test-signbit.c (ASSERT): Likewise.
75190         * tests/test-sleep.c (ASSERT): Likewise.
75191         * tests/test-snprintf-posix.c (ASSERT): Likewise.
75192         * tests/test-snprintf.c (ASSERT): Likewise.
75193         * tests/test-sprintf-posix.c (ASSERT): Likewise.
75194         * tests/test-stat-time.c (ASSERT): Likewise.
75195         * tests/test-strcasestr.c (ASSERT): Likewise.
75196         * tests/test-strerror.c (ASSERT): Likewise.
75197         * tests/test-striconv.c (ASSERT): Likewise.
75198         * tests/test-striconveh.c (ASSERT): Likewise.
75199         * tests/test-striconveha.c (ASSERT): Likewise.
75200         * tests/test-strsignal.c (ASSERT): Likewise.
75201         * tests/test-strstr.c (ASSERT): Likewise.
75202         * tests/test-strtod.c (ASSERT): Likewise.
75203         * tests/test-trunc1.c (ASSERT): Likewise.
75204         * tests/test-trunc2.c (ASSERT): Likewise.
75205         * tests/test-truncf1.c (ASSERT): Likewise.
75206         * tests/test-truncf2.c (ASSERT): Likewise.
75207         * tests/test-truncl.c (ASSERT): Likewise.
75208         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
75209         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
75210         * tests/test-vasnprintf.c (ASSERT): Likewise.
75211         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
75212         * tests/test-vasprintf.c (ASSERT): Likewise.
75213         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
75214         * tests/test-vprintf-posix.c (ASSERT): Likewise.
75215         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
75216         * tests/test-vsnprintf.c (ASSERT): Likewise.
75217         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
75218         * tests/test-wcwidth.c (ASSERT): Likewise.
75219         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
75220         * tests/test-xprintf-posix.c (ASSERT): Likewise.
75221         * tests/test-xvasprintf.c (ASSERT): Likewise.
75222         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
75223         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
75224         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
75225         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
75226         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
75227         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
75228         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
75229         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
75230         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
75231         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
75232         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
75233         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
75234         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
75235         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
75236         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
75237         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
75238         * tests/unictype/test-block_list.c (ASSERT): Likewise.
75239         * tests/unictype/test-block_of.c (ASSERT): Likewise.
75240         * tests/unictype/test-block_test.c (ASSERT): Likewise.
75241         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
75242         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
75243         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
75244         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
75245         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
75246         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
75247         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
75248         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
75249         * tests/unictype/test-combining.c (ASSERT): Likewise.
75250         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
75251         * tests/unictype/test-digit.c (ASSERT): Likewise.
75252         * tests/unictype/test-mirror.c (ASSERT): Likewise.
75253         * tests/unictype/test-numeric.c (ASSERT): Likewise.
75254         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
75255         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
75256         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
75257         * tests/unictype/test-scripts.c (ASSERT): Likewise.
75258         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
75259         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
75260         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
75261         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
75262         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
75263         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
75264         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
75265         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
75266         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
75267         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
75268         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
75269         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
75270         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
75271         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
75272         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
75273         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
75274         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
75275         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
75276         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
75277         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
75278         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
75279         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
75280         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
75281         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
75282         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
75283         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
75284         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
75285         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
75286         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
75287         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
75288         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
75289         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
75290         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
75291         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
75292         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
75293         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
75294         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
75295         Reported by Eric Blake.
75297 2008-04-11  Bruno Haible  <bruno@clisp.org>
75299         * lib/wchar.in.h: Tweak comment.
75301 2008-04-11  Bruno Haible  <bruno@clisp.org>
75303         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
75304         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
75305         gl_COMMON.
75306         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
75308 2008-04-11  Bruno Haible  <bruno@clisp.org>
75310         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
75312 2008-04-11  Simon Josefsson  <simon@josefsson.org>
75314         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
75315         of attempting to use non-existing /dev/*random.  Based on patch
75316         from Adam Strzelecki <ono@java.pl> in
75317         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
75319 2008-04-08  Bruno Haible  <bruno@clisp.org>
75321         Add tentative support for emx+gcc.
75322         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
75323         * lib/fpurge.c (fpurge): Likewise.
75324         * lib/freadable.c (freadable): Likewise.
75325         * lib/freadahead.c (freadahead): Likewise.
75326         * lib/freading.c (freading): Likewise.
75327         * lib/freadptr.c (freadptr): Likewise.
75328         * lib/freadseek.c (freadptrinc): Likewise.
75329         * lib/fseeko.c (rpl_fseeko): Likewise.
75330         * lib/fseterr.c (fseterr): Likewise.
75331         * lib/fwritable.c (fwritable): Likewise.
75332         * lib/fwriting.c (fwriting): Likewise.
75333         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
75335 2008-04-09  Eric Blake  <ebb9@byu.net>
75337         Avoid some autoconf warnings.
75338         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
75339         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
75340         * m4/afs.m4 (gl_AFS): Likewise.
75341         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
75342         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
75343         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75344         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
75345         (gl_INTEGER_TYPE_SUFFIX): Likewise.
75346         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
75347         (AC_CHECK_DECLS_ONCE): Likewise.
75348         Rename file...
75349         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
75350         gnulib-tool requires autoconf 2.59 or better.
75351         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
75353 2008-04-08  Eric Blake  <ebb9@byu.net>
75355         Use 'git describe --match' if present (added in git 1.5.5).
75356         * build-aux/git-version-gen: Limit result to tags that match 'v*'
75357         if possible.
75359 2008-04-08  Bruno Haible  <bruno@clisp.org>
75361         Add tentative support for OpenServer.
75362         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
75363         _ptr, _cnt.
75364         * lib/fpurge.c (fpurge): Likewise.
75365         * lib/freadable.c (freadable): Likewise.
75366         * lib/freadahead.c (freadahead): Likewise.
75367         * lib/freading.c (freading): Likewise.
75368         * lib/freadptr.c (freadptr): Likewise.
75369         * lib/freadseek.c (freadptrinc): Likewise.
75370         * lib/fseeko.c (rpl_fseeko): Likewise.
75371         * lib/fseterr.c (fseterr): Likewise.
75372         * lib/fwritable.c (fwritable): Likewise.
75373         * lib/fwriting.c (fwriting): Likewise.
75374         Reported by Roger Cornelius <rac@tenzing.org> and
75375         Brian K. White <brian@aljex.com>.
75377 2008-04-06  Jim Meyering  <meyering@redhat.com>
75379         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
75381 2008-04-06  Bruno Haible  <bruno@clisp.org>
75383         Avoid possible error with non-ASCII bytes in UTF-8 locales.
75384         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
75385         * tests/test-printf-posix.sh: Likewise.
75386         * tests/test-vfprintf-posix.sh: Likewise.
75387         * tests/test-vprintf-posix.sh: Likewise.
75388         * tests/test-xprintf-posix.sh: Likewise.
75390 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75392         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
75393         hide error from 'ls', needed on OS/2.
75394         Report by Elbert Pol <elbert.pol@gmail.com>.
75396 2008-04-04  Eric Blake  <ebb9@byu.net>
75398         Make test-fseeko.c failures meaningful.
75399         * tests/test-fseeko.c: Print line number on failure.
75400         * tests/test-fseek.c: Likewise.
75401         Reported by Nelson H. F. Beebe.
75403         Improve strtod bug detection check.
75404         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
75405         required for Solaris 10.
75406         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
75408 2008-04-04  Bruno Haible  <bruno@clisp.org>
75410         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
75411         by m4/setenv.m4.
75413 2008-04-03  Eric Blake  <ebb9@byu.net>
75415         Ensure sane .version contents.
75416         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
75417         version string.
75418         * build-aux/git-version-gen: Improve documentation.
75420         Make GNU make output nicer.
75421         * top/GNUmakefile [!_have-Makefile]: Add dependency on
75422         MAKECMDGOALS to enforce message for all command line targets.  Set
75423         srcdir for use in maint.mk.
75425         Another maintainer tweak.
75426         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
75427         a target that regenerates version.
75429 2008-04-03  Jim Meyering  <meyering@redhat.com>
75431         vc-list-files: don't cause coreutils "make po-check" failure
75432         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
75434 2008-04-03  Eric Blake  <ebb9@byu.net>
75436         Allow VPATH usage of vc-list-files.
75437         * build-aux/vc-list-files (scriptversion): Add timestamp.
75438         (options): Add --help, --version, -C.
75439         (CVS): Support installed cvsu.
75441 2008-04-02  Bruno Haible  <bruno@clisp.org>
75443         Avoid some "statement with no effect" warnings from gcc.
75444         * tests/test-wctype.c (main): Explicitly ignore unused values.
75445         Reported by Jim Meyering.
75447 2008-04-02  Jim Meyering  <meyering@redhat.com>
75449         Avoid some warnings from "gcc -Wshadow".
75450         * tests/test-frexp.c (exp): Define to a different identifier.
75451         * tests/test-frexpl.c (exp): Likewise.
75453 2008-04-03  Jim Meyering  <meyering@redhat.com>
75455         bootstrap: remove dangling *.[ch] symlinks from lib
75456         * build-aux/bootstrap [dangling symlink removal]: Move find's
75457         -depth option to precede all others, to avoid a warning.
75458         Remove *.[ch] files too, and from "$source_base" (usually lib/).
75460 2008-04-02  Bruno Haible  <bruno@clisp.org>
75462         Avoid some warnings from "gcc -Wshadow".
75463         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
75464         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
75465         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
75466         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
75467         Reported by Jim Meyering.
75469 2008-04-01  Bruno Haible  <bruno@clisp.org>
75471         Fix test to work on IRIX 6.5 with cc.
75472         * tests/test-math.c (numeric_equal): New function.
75473         (main): Use it.
75475 2008-04-01  Bruno Haible  <bruno@clisp.org>
75477         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
75479 2008-04-01  Bruno Haible  <bruno@clisp.org>
75481         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
75482         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75483         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
75484         (Depends-on): Remove math.
75486         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
75487         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75488         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
75489         (Depends-on): Remove math.
75491         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
75492         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75493         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
75494         (Depends-on): Remove math.
75495         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
75496         (Depends-on): Remove math.
75498         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
75499         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75500         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
75501         (Depends-on): Remove math.
75502         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
75503         (Depends-on): Remove math.
75505         * tests/test-round1.c: Include nan.h.
75506         (main): Use NaNd instead of NAN.
75507         * modules/round-tests (Files): Add tests/nan.h.
75509         * tests/test-trunc1.c: Include nan.h.
75510         (main): Use NaNd instead of NAN.
75511         * modules/trunc-tests (Files): Add tests/nan.h.
75513         * tests/test-roundf1.c: Include nan.h.
75514         (main): Use NaNf instead of NAN.
75515         * modules/roundf-tests (Files): Add tests/nan.h.
75517         * tests/test-truncf1.c: Include nan.h.
75518         (main): Use NaNf instead of NAN.
75519         * modules/truncf-tests (Files): Add tests/nan.h.
75521         * tests/test-ceilf1.c: Include nan.h.
75522         (main): Use NaNf instead of NAN.
75523         * modules/ceilf-tests (Files): Add tests/nan.h.
75525         * tests/test-floorf1.c: Include nan.h.
75526         (main): Use NaNf instead of NAN.
75527         * modules/floorf-tests (Files): Add tests/nan.h.
75529         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
75530         (main): Use NaNf instead of NAN.
75531         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
75533         * tests/test-isnand.c: Include nan.h instead of <math.h>.
75534         (main): Use NaNd instead of NAN.
75535         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
75537         * tests/test-frexp.c: Include nan.h.
75538         (main): Use NaNd instead of NAN.
75539         * modules/frexp-tests (Files): Add tests/nan.h.
75541         * lib/isnan.c: Don't include <math.h>.
75542         (FUNC): Don't use NAN macro.
75543         * modules/isnand-nolibm (Depends-on): Remove math.
75544         * modules/isnanf-nolibm (Depends-on): Remove math.
75545         * modules/isnanl (Depends-on): Remove math.
75546         * modules/isnanl-nolibm (Depends-on): Remove math.
75548         * tests/nan.h: New file.
75550 2008-04-01  Eric Blake  <ebb9@byu.net>
75552         Fix typos.
75553         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
75554         values to be the right type.
75556         For now, cater to gnulib strtod inaccuracies.
75557         * tests/test-strtod.c (main): Allow 1-ulp error on expected
75558         fractional results.  While not as nice from a QoI perspective, it
75559         is a quicker patch than correctly implementing decimal to binary
75560         rounding.
75562 2008-03-31  Eric Blake  <ebb9@byu.net>
75564         Guarantee a definition of NAN.
75565         * lib/math.in.h (NAN): Define if missing.
75566         * tests/test-math.c (main): Test it.
75567         * doc/posix-headers/math.texi (math.h): Document this.
75568         * lib/isnan.c (rpl_isnand): Use it.
75569         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
75570         * tests/test-floorf1.c (NaN): Likewise.
75571         * tests/test-frexp.c (NaN): Likewise.
75572         * tests/test-isnand.c (NaN): Likewise.
75573         * tests/test-isnanf.c (NaN): Likewise.
75574         * tests/test-round1.c (NaN): Likewise.
75575         * tests/test-roundf1.c (NaN): Likewise.
75576         * tests/test-snprintf-posix.h (NaN): Likewise.
75577         * tests/test-sprintf-posix.h (NaN): Likewise.
75578         * tests/test-trunc1.c (NaN): Likewise.
75579         * tests/test-truncf1.c (NaN): Likewise.
75580         * tests/test-vasnprintf-posix.c (NaN): Likewise.
75581         * tests/test-vasprintf-posix.c (NaN): Likewise.
75582         * modules/isnand-nolibm (Depends-on): Add math.
75583         * modules/isnanf-nolibm (Depends-on): Likewise.
75584         * modules/isnanl (Depends-on): Likewise.
75585         * modules/isnanl-nolibm (Depends-on): Likewise.
75586         * modules/snprintf-posix-tests (Depends-on): Likewise.
75587         * modules/sprintf-posix-tests (Depends-on): Likewise.
75588         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
75589         * modules/vsprintf-posix-tests (Depends-on): Likewise.
75590         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
75591         * modules/vasprintf-posix-tests (Depends-on): Likewise.
75593 2008-03-31  Bruno Haible  <bruno@clisp.org>
75595         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
75596         * doc/posix-functions/strtod.texi: Likewise.
75598 2008-03-31  Bruno Haible  <bruno@clisp.org>
75600         * tests/test-strtod.c (main): Don't use C99 syntax.
75602 2008-03-31  Bruno Haible  <bruno@clisp.org>
75604         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
75605         Reported by Eric Blake.
75607 2008-03-31  Jim Meyering  <meyering@redhat.com>
75609         Don't compare actual signbit return values.
75610         * tests/test-strtod.c (main): Rather, compare only their
75611         zero/non-zero nature.
75613 2008-03-31  Eric Blake  <ebb9@byu.net>
75615         More strtod documentation.
75616         * doc/posix-functions/strtod.texi (strtod): Interpret more test
75617         failures as distinct bugs.
75619 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
75621         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
75622         Problem reported by Erik Benada in
75623         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
75625 2008-03-30  Bruno Haible  <bruno@clisp.org>
75627         * tests/test-strtod.c: Add comments about which assertion fails on which
75628         platform.
75629         * doc/posix-functions/strtod.texi: Add info about many more platforms.
75631 2008-03-30  Eric Blake  <ebb9@byu.net>
75633         Test signbit behavior on zeros.
75634         * tests/test-signbit.c (test_signbitf): Add tests for zero.
75635         (test_signbitd, test_signbitl): Likewise.
75637         More strtod touchups.
75638         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
75639         sign of negative underflow, for now.  Use .5, not .1.
75640         * doc/posix-functions/strtod.texi (strtod): Mention these
75641         limitations.
75642         Reported by Jim Meyering.
75644 2008-03-30  Bruno Haible  <bruno@clisp.org>
75646         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
75647         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
75649 2008-03-30  Bruno Haible  <bruno@clisp.org>
75651         Avoid failure when attempting to return empty iconv results on some
75652         platforms.
75653         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
75654         allocation, don't report ENOMEM when the resulting string is empty.
75656 2008-03-30  Bruno Haible  <bruno@clisp.org>
75658         Fix buffer overrun.
75659         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
75660         Don't consider the width for tmp_length. Check count against tmp_length
75661         before doing the padding. Ensure enough allocation during padding.
75663 2008-03-30  Eric Blake  <ebb9@byu.net>
75665         strtod touchups.
75666         * lib/strtod.c (strtod): Avoid compiler warnings.
75667         Reported by Jim Meyering.
75669 2008-03-30  Bruno Haible  <bruno@clisp.org>
75671         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
75672         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
75673         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
75674         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
75675         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
75676         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
75677         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
75678         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
75680         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
75681         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
75682         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
75683         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
75684         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
75685         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
75686         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
75687         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
75689         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
75690         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
75691         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
75692         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
75693         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
75694         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
75695         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
75696         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
75698         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
75699         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
75701         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
75702         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
75704         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
75705         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
75707         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
75708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
75709         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
75711         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
75712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
75713         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
75715         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
75716         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
75717         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
75719         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
75720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
75721         * modules/vasprintf (Depends-on): Add EOVERFLOW.
75723         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
75724         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
75725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
75726         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
75727         (Depends-on): Add EOVERFLOW.
75728         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
75729         (Depends-on): Add EOVERFLOW.
75730         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
75731         (Depends-on): Add EOVERFLOW.
75732         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
75733         (Depends-on): Add EOVERFLOW.
75734         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
75735         (Depends-on): Add EOVERFLOW.
75736         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
75737         (Depends-on): Add EOVERFLOW.
75738         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
75739         (Depends-on): Add EOVERFLOW.
75740         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
75741         (Depends-on): Add EOVERFLOW.
75743         * lib/sprintf.c (EOVERFLOW): Remove fallback.
75744         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
75745         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
75747         * lib/snprintf.c (EOVERFLOW): Remove fallback.
75748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
75749         * modules/snprintf (Depends-on): Add EOVERFLOW.
75751         * lib/poll.c (EOVERFLOW): Remove fallback.
75752         * modules/poll (Depends-on): Add EOVERFLOW.
75754         * lib/getugroups.c (EOVERFLOW): Remove fallback.
75755         * modules/getugroups (Depends-on): Add EOVERFLOW.
75757         * lib/getdelim.c (EOVERFLOW): Remove fallback.
75758         * modules/getdelim (Depends-on): Add EOVERFLOW.
75760         * lib/ftell.c (EOVERFLOW): Remove fallback.
75761         * modules/ftell (Depends-on): Add EOVERFLOW.
75763         * lib/fprintf.c (EOVERFLOW): Remove fallback.
75764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
75765         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
75767         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
75769         * modules/EOVERFLOW-tests: New file.
75770         * tests/test-EOVERFLOW.c: New file.
75772         * modules/EOVERFLOW: New file.
75773         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
75775 2008-03-30  Bruno Haible  <bruno@clisp.org>
75777         Fix bug introduced on 2007-06-10.
75778         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
75779         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
75781 2008-03-30  Bruno Haible  <bruno@clisp.org>
75783         Improve freadseek's efficiency after ungetc.
75784         * lib/freadseek.c: Include freadahead.h.
75785         (freadptrinc): New function, extracted from freadseek.
75786         (freadseek): Use it in a loop. Use freadahead to determine the number
75787         of loop iterations.
75788         * modules/freadseek (Depends-on): Add freadahead.
75789         (configure.ac): Require AC_C_INLINE.
75791 2008-03-30  Bruno Haible  <bruno@clisp.org>
75793         * lib/freadseek.c (freadseek): Don't ignore the return value of
75794         freadptr.
75796 2008-03-29  Eric Blake  <ebb9@byu.net>
75798         Add hex float support.
75799         * modules/strtod (Depends-on): Add c-ctype.
75800         (Link): Mention POW_LIB.
75801         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
75802         whitespace between 'e' and exponent.
75803         * tests/test-strtod.c (main): Enable hex float tests.
75804         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
75805         now provides.
75807         Document various strtod bugs, with some fixes.
75808         * doc/posix-functions/strtod.texi (strtod): Document bugs with
75809         "-0x", "inf", "nan", and hex constants.
75810         * doc/posix-functions/atof.texi (atof): Likewise.
75811         * modules/stdlib (Makefile.am): Support strtod.
75812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
75813         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
75814         detect additional strtod bugs.
75815         * lib/stdlib.in.h (rpl_strtod): Add declarations.
75816         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
75817         bool where appropriate.  Parse 'inf' and 'nan'.
75818         * tests/test-strtod.c: New file.
75819         * modules/strtod (Depends-on): Add stdbool, stdlib.
75820         (configure.ac): Turn on module indicator.
75821         * modules/strtod-tests: New module.
75823 2008-03-29  Eric Blake  <ebb9@byu.net>
75825         Fix ftell on mingw.
75826         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
75827         * modules/ftell-tests (Depends-on): Add binary-io.
75828         * modules/ftello-tests (Depends-on): Likewise.
75829         * tests/test-ftell.c (main): Enhance test to cover behavior after
75830         ungetc.  Enforce binary mode.
75831         * tests/test-ftello.c (main): Likewise.
75833         Pass test-freadseek on cygwin.
75834         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
75835         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
75836         ungetc buffer.
75838         * tests/test-fflush2.c (main): Fix typo.
75840 2008-03-29  Bruno Haible  <bruno@clisp.org>
75842         * tests/test-fflush2.c (main): Temporarily disable the contents of
75843         this test.
75844         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
75845         Reported by Eric Blake.
75847 2008-03-28  Simon Josefsson  <simon@josefsson.org>
75849         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
75850         (GC_SHA224_DIGEST_SIZE): Add.
75852         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
75853         (gc_hash_digest_length): Likewise.
75854         (gc_hash_buffer): Likewise.
75856 2008-03-25  Bruno Haible  <bruno@clisp.org>
75858         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
75859         detail which gettext release to use.
75860         Reported by Simon Josefsson.
75862 2008-03-26  Jim Meyering  <meyering@redhat.com>
75864         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
75865         * modules/gnumakefile (clean-GNUmakefile): Also, use
75866         test ... && ... || : syntax rather than if-then ... fi.
75868         gnumakefile: Don't double-quote-expand $(VPATH) value.
75869         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
75871 2008-03-24  Eric Blake  <ebb9@byu.net>
75873         Alter GNUmakefile to install into top directory.
75874         * modules/maintainer-makefile: Split, and add dependency...
75875         * modules/gnumakefile: to this new module.
75876         * build-aux/GNUmakefile: Move...
75877         * top/GNUmakefile: ...here.
75878         * build-aux/maint.mk: Move...
75879         * top/maint.mk: ...here.
75880         * MODULES.html.sh (Support for maintaining...): Document new
75881         module.
75883 2008-03-23  Bruno Haible  <bruno@clisp.org>
75885         * gnulib-tool: New options --vc-files, --no-vc-files.
75886         (func_usage): Document them.
75887         (vc_files): New variable.
75888         (func_import): Consider vc_files.
75889         (func_create_testdir): Set vc_files to empty.
75890         Suggested by Jim Meyering and Karl Berry.
75892 2008-03-23  Bruno Haible  <bruno@clisp.org>
75894         Fix regex compilation error on HP-UX 11.
75895         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
75896         * modules/regex (Files): Add m4/mbstate_t.m4.
75897         Reported by Ton Voon <ton.voon@altinity.com>.
75899 2008-03-23  Bruno Haible  <bruno@clisp.org>
75901         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
75903 2008-03-23  Eric Blake  <ebb9@byu.net>
75904             Bruno Haible  <bruno@clisp.org>
75906         Install files from top/ in the destination directory.
75907         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
75908         augmentation also for the files from top/.
75909         (func_import, func_create_testdir): Rewrite file names:
75910         top/filename -> filename.
75912 2008-03-23  Bruno Haible  <bruno@clisp.org>
75914         Tweak "gnulib --version" output.
75915         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
75917 2008-03-23  Bruno Haible  <bruno@clisp.org>
75919         Tweak "gnulib --version" output.
75920         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
75921         rather than contents of ChangeLog, when possible.
75923 2008-03-21  Eric Blake  <ebb9@byu.net>
75925         More --version tweaks.
75926         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
75927         date of last ChangeLog entry.
75929 2008-03-21  Jim Meyering  <meyering@redhat.com>
75931         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
75933 2008-03-20  Eric Blake  <ebb9@byu.net>
75935         VPATH fix.
75936         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
75938 2008-03-20  Simon Josefsson  <simon@josefsson.org>
75940         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
75941         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
75943 2008-03-20  Eric Blake  <ebb9@byu.net>
75945         Sync GNUmakefile with coreutils.
75946         * build-aux/GNUmakefile (have-Makefile): Rename...
75947         (_have-Makefile): ...to this, for namespace consideration.
75948         (GNUmakefile.cfg): Include, if present.
75949         (_autoreconf): Define a default.
75950         (_is-dist-target): New rule for rebuilds to pick up intra-release
75951         version.
75952         (maint-cfg.mk): Rename...
75953         (cfg.mk): ...to this.
75955 2008-03-18  Jim Meyering  <meyering@redhat.com>
75957         New script and module: mktempd
75958         * MODULES.html.sh (maint+release support): Add mktempd.
75959         * build-aux/mktempd: New file.
75960         * modules/mktempd: New file.
75962 2008-03-15  Jim Meyering  <meyering@redhat.com>
75964         Undo last change.
75965         * lib/sha1.c, lib/md5.c: 63 != ~63.
75966         Reported by Andreas Schwab.
75968         sha1.c, md5.c: Hoist a redundant expression.
75969         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
75970         "ctx->buflen" only once, before calling *_process_block.
75971         * lib/md5.c (md5_process_bytes): Likewise.
75973 2008-03-14  Eric Blake  <ebb9@byu.net>
75975         Bump copyright year in files generated by gnulib-tool.
75976         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
75977         gnulib-tool, rather than hard-coding it.
75979         Fix 'gnulib-tool --version' output to work with git.
75980         * gnulib-tool (func_gnulib_dir): New function, extracted from...
75981         (startup): ...here.
75982         (func_version): Use it to invoke git-version-gen, rather than
75983         relying on CVS keyword expansion.  Modernize wording.
75984         (cvsdatestamp, last_checkin_date, version): Kill unused
75985         variables.
75987 2008-03-12  Jim Meyering  <meyering@redhat.com>
75989         Recognize optional cast of the argument to free.
75990         * build-aux/useless-if-before-free: Update regexps.
75992         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
75994 2008-03-11  Bruno Haible  <bruno@clisp.org>
75996         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
75997         by a single package.
75998         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
75999         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
76000         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
76001         Reported by Sam Steingold <sds@gnu.org>.
76003 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76005         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
76006         repositories.
76008 2008-03-11  Bruno Haible  <bruno@clisp.org>
76010         Avoid conflicts between local macro definitions.
76011         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76012         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
76014 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
76015             Bruno Haible  <bruno@clisp.org>
76017         Make va_copy work with some version of xlc on AIX 5.1.
76018         * lib/stdarg.in.h: New file.
76019         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
76020         On AIX, use a <stdarg.h> file substitute.
76021         * modules/stdarg (Files): Add lib/stdarg.in.h.
76022         (Depends-on): Add include_next.
76023         (Makefile.am): Build a stdarg.h substitute if requested.
76024         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
76026 2008-03-10  Bruno Haible  <bruno@clisp.org>
76028         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
76029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
76030         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76032 2008-03-10  Bruno Haible  <bruno@clisp.org>
76034         * modules/stdlib (Depends-on): Add include_next, remove
76035         absolute-header.
76037 2008-03-09  Bruno Haible  <bruno@clisp.org>
76039         * lib/freadahead.h (freadahead): Document more precisely.
76040         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
76041         the sum of both buffer sizes.
76042         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
76043         * NEWS: Document the change.
76045 2008-03-09  Bruno Haible  <bruno@clisp.org>
76047         Extend freadptr to return also the buffer size.
76048         * lib/freadptr.h (freadptr): Add sizep argument.
76049         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
76050         (freadptr): Add sizep argument. Determine buffer size like freadahead
76051         does.
76052         * tests/test-freadptr.c: Don't include freadahead.h.
76053         (main): Adapt for new calling convention of freadptr.
76054         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
76055         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
76056         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
76057         tests/test-freadptr2.sh.
76058         (Depends): Remove freadahead.
76059         (TESTS): Add test-freadptr2.sh.
76060         (check_PROGRAMS): Add test-freadptr2.
76062 2008-03-09  Bruno Haible  <bruno@clisp.org>
76064         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
76065         Report and solution by Simon Josefsson.
76067 2008-03-06  Bruno Haible  <bruno@clisp.org>
76069         Make fflush after ungetc work on BSD platforms.
76070         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
76071         * tests/test-fflush2.c: New file.
76072         * tests/test-fflush2.sh: New file.
76073         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
76074         tests/test-fflush2.c.
76075         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
76076         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
76078 2008-03-06  Eric Blake  <ebb9@byu.net>
76080         Likewise for ftello.
76081         * modules/ftello (Dependencies): Add extensions.
76082         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
76084 2008-03-06  Bruno Haible  <bruno@clisp.org>
76086         * modules/fseeko (Dependencies): Add extensions.
76087         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
76088         Needed on glibc systems.
76090 2008-03-06  Bruno Haible  <bruno@clisp.org>
76092         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
76093         email address.
76094         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76096 2008-03-06  Bruno Haible  <bruno@clisp.org>
76098         * users.txt: Add libgnupdf.
76100 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
76102         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
76103         (Header File Substitutes, Function Substitutes,
76104         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
76105         (Build robot for gnulib): Fix typo.
76107 2008-03-06  Bruno Haible  <bruno@clisp.org>
76109         * doc/gnulib-tool.texi (VCS Issues): Small updates.
76110         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
76112 2008-03-06  Bruno Haible  <bruno@clisp.org>
76114         * doc/func.texi: New file, extracted from doc/gnulib.texi.
76115         * doc/gnulib.texi: Include it.
76117 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76119         * modules/func (License): Change license to unlimited; there was
76120         no LGPL parts in the module anyway.
76122 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76124         * modules/__func__: Renamed to modules/func.
76125         * modules/__func__-tests: Renamed to modules/func-tests.
76126         * tests/test-__func__.c: Renamed to tests/test-func.c.
76127         * m4/__func__.m4: Renamed to m4/func.m4.
76128         * doc/gnulib.texi (__func__): Section renamed to func.
76129         Suggested by Eric Blake <ebb9@byu.net>.
76131 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76133         * doc/gnulib.texi (__func__): Use C99 terminology when talking
76134         about __func__.  Make example self-contained.  Suggested by Eric
76135         Blake <ebb9@byu.net>.
76137         * tests/test-__func__.c (main): Avoid extraneous () around __func.
76138         Suggested by Eric Blake <ebb9@byu.net>.
76140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
76142         * modules/__func__: New file.
76143         * modules/__func__-tests: New file.
76144         * tests/test-__func__.c: New file.
76145         * m4/__func__.m4: New file.
76146         * doc/gnulib.texi (__func__): Document __func__ module.
76148 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76150         * modules/byteswap (License): Re-license as LGPLv2+.
76152 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76154         * doc/Makefile: Add pdf target.
76156 2008-03-05  Simon Josefsson  <simon@josefsson.org>
76158         * modules/inline (License): Use 'unlimited', since there are only
76159         *.m4 files in this module.
76161 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
76162             Bruno Haible  <bruno@clisp.org>
76164         Add support for HP C 7.1 on OpenVMS 8.3.
76165         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
76167 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
76169         Update VMS specifics.
76170         * lib/getopt.c [VMS]: Remove include of unixlib.h.
76172 2008-03-02  Jim Meyering  <meyering@redhat.com>
76174         Remove the last dependency on the "free" module.
76175         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
76176         Reported by Bob Proulx.
76178         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
76180         Remove useless "if" tests before free.  Deprecate "free" module.
76181         * doc/posix-functions/free.texi: Mention that this
76182         module is no longer useful.
76183         * modules/free (Notice): Say this module is obsolete.
76184         * modules/readutmp (Depends-on): Remove free.
76185         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
76186         * lib/putenv.c (putenv): Likewise.
76187         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
76188         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
76189         * tests/test-c-strcasestr.c (main): Likewise.
76190         * tests/test-c-strstr.c (main): Likewise.
76191         * tests/test-mbscasestr1.c (main): Likewise.
76192         * tests/test-mbscasestr2.c (main): Likewise.
76193         * tests/test-mbsstr1.c (main): Likewise.
76194         * tests/test-mbsstr2.c (main): Likewise.
76195         * tests/test-memmem.c (main): Likewise.
76196         * tests/test-strcasestr.c (main): Likewise.
76197         * tests/test-striconv.c (main): Likewise.
76198         * tests/test-striconveh.c (main): Likewise.
76199         * tests/test-striconveha.c (main): Likewise.
76200         * tests/test-strstr.c (main): Likewise.
76202         * build-aux/git-version-gen: Adjust a comment and the Usage string.
76204         bootstrap: sync from coreutils again
76205         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
76207 2008-03-01  Jim Meyering  <meyering@redhat.com>
76209         bootstrap: sync from coreutils
76210         * build-aux/bootstrap (update_po_files): Copy a .po file into place
76211         also when the target doesn't exist.
76213 2008-03-01  Eric Blake  <ebb9@byu.net>
76215         Fix bugs in last patch.
76216         * lib/memchr2.c (memchr2): Fix typo.
76217         * tests/test-memchr2.c: Test previous bug, and don't use GNU
76218         extension.
76219         Reported by Bruce Korb.
76221         New module 'memchr2'.
76222         * modules/memchr2: New file.
76223         * modules/memchr2-tests: Likewise.
76224         * lib/memchr2.h: Likewise.
76225         * lib/memchr2.c: Likewise, based on memchr.c.
76226         * tests/test-memchr2.c: New test.
76227         * MODULES.html.sh (String handling): Add memchr2.
76229 2008-02-29  Bruno Haible  <bruno@clisp.org>
76231         * modules/freadseek-tests: New file.
76232         * tests/test-freadseek.sh: New file.
76233         * tests/test-freadseek.c: New file.
76235         New module 'freadseek'.
76236         * modules/freadseek: New file.
76237         * lib/freadseek.h: New file.
76238         * lib/freadseek.c: New file.
76239         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
76241 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
76243         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
76244         wydawca.
76246         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
76247         program_invocation_name and program_invocation_short_name are
76248         present.
76250 2008-02-28  Bruno Haible  <bruno@clisp.org>
76252         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
76253         * tests/test-freadptr.sh: Also test non-seekable stdin.
76255 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
76257         * build-aux/bootstrap (source_base, m4_base)
76258         (doc_base, tests_base): New variables.
76259         (gnulib_tool_options): Do not hardcode base directories, use
76260         the above variables instead.
76262 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
76264         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
76266 2008-02-28  Bruno Haible  <bruno@clisp.org>
76268         * modules/freadptr-tests: New file.
76269         * tests/test-freadptr.sh: New file.
76270         * tests/test-freadptr.c: New file.
76272         New module 'freadptr'.
76273         * modules/freadptr: New file.
76274         * lib/freadptr.h: New file.
76275         * lib/freadptr.c: New file.
76276         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
76278 2008-02-26  Karl Berry  <karl@freefriends.org>
76280         Sync from Libtool:
76281         * libltdl/argz.c (argz_add, argz_count): New functions.
76282         * libltdl/argz.in.h: Declare them.
76283         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
76285 2008-02-22  Bruno Haible  <bruno@clisp.org>
76287         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
76288         is a pointer type.  Needed for HP-UX 10.
76289         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
76290         * doc/posix-functions/gmtime_r.texi: Likewise.
76291         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76293 2008-02-24  Bruno Haible  <bruno@clisp.org>
76295         * modules/environ-tests: New file.
76296         * tests/test-environ.c: New file.
76298         New module 'environ'.
76299         * modules/environ: New file.
76300         * lib/unistd.in.h (environ): New declaration.
76301         * m4/environ.m4: New file.
76302         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
76303         after use.
76304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
76305         HAVE_DECL_ENVIRON.
76306         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
76307         HAVE_DECL_ENVIRON.
76308         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
76309         wrong claim that 'environ' is missing on some systems.
76310         * modules/execute (Depends-on): Add environ.
76311         * lib/execute.c (environ): Remove fallback declaration.
76312         * modules/pipe (Depends-on): Add environ.
76313         * lib/pipe.c (environ): Remove fallback declaration.
76314         * modules/setenv (Depends-on): Add environ.
76315         * lib/setenv.c (environ): Remove fallback declaration.
76316         * modules/unsetenv (Depends-on): Add environ.
76317         * lib/unsetenv.c (environ): Remove fallback declaration.
76318         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
76319         m4/environ.m4.
76320         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
76321         (gl_PREREQ_UNSETENV): Likewise.
76323 2008-02-24  Bruno Haible  <bruno@clisp.org>
76325         * doc/posix-functions/environ.texi: Document the MacOS X problem.
76327 2008-02-20  Bob Proulx  <bob@proulx.com>
76329         Enable use of older two part flavor 'git describe'.
76330         * build-aux/git-version-gen: If using the older two part flavor of
76331         git version then recreate the third part now present in the
76332         newer three part flavor of git describe.
76334 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
76336         * lib/fts.c (fts_build): Typo correction to comment.
76338 2008-02-17  Bruno Haible  <bruno@clisp.org>
76340         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
76341         generating no-op conflicts.
76343 2008-02-17  Bruno Haible  <bruno@clisp.org>
76345         Speed up by 10%.
76346         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
76347         result_entries, rather than an index-based loop.
76349 2008-02-17  Bruno Haible  <bruno@clisp.org>
76351         Speed up by 25%.
76352         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
76353         'hashcode_cached'.
76354         (entry_create): New function.
76355         (entry_hashcode): Use the cached hashcode if possible.
76356         (read_changelog_file, try_split_merged_entry): Use entry_create.
76358 2008-02-17  Bruno Haible  <bruno@clisp.org>
76360         Speed up from O(n^2) to O(n) for long ChangeLog files.
76361         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
76362         (read_changelog_file): Change implementation of entries_reversed list
76363         to rbtreehash.
76364         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
76366 2008-02-17  Bruno Haible  <bruno@clisp.org>
76368         New option --split-merged-entry.
76369         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
76370         (find_paragraph_end, try_split_merged_entry): New functions.
76371         (long_options): Add option --split-merged-entry.
76372         (usage): Document option --split-merged-entry.
76373         (main): Implement option --split-merged-entry.
76374         Reported by Eric Blake.
76376 2008-02-17  Bruno Haible  <bruno@clisp.org>
76378         * lib/git-merge-changelog.c: Include c-strstr.h.
76379         (main): Support the "git pull --rebase" situation.
76380         * modules/git-merge-changelog (Depends-on): Add c-strstr.
76381         Reported by Eric Blake.
76383 2008-02-16  Eric Blake  <ebb9@byu.net>
76385         Avoid doubling \ in common case of "c-maybe" quoting style.
76386         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
76387         eliding outer quotes.
76388         * lib/quotearg.h: Document this.
76389         * tests/test-quotearg.c (result_strings, inputs, results_g)
76390         (flag_results, locale_results): Test it by adding a new string to
76391         each test group.
76392         (compare_strings): Test new string.
76394 2008-02-13  Eric Blake  <ebb9@byu.net>
76396         Avoid trigraph quoting in default output.
76397         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
76398         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
76399         unless explicitly requested.
76400         * tests/test-quotearg.c (flag_results, main): Add additional tests.
76402 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
76404         Don't rely on signed integer overflowing to negative value.
76405         * lib/getugroups.c (getugroups): Include <limits.h>.
76406         Instead, compare against INT_MAX, and increment only if the test passes.
76408 2008-02-13  Jim Meyering  <meyering@redhat.com>
76409         and Eric Blake  <ebb9@byu.net>
76411         Avoid shadowing warning and compile errors on Linux.
76412         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
76413         forwarding macros on Linux.
76414         (dcgettext): Define a stub, for Linux.
76415         (results_g, main): Avoid warnings.
76417 2008-02-12  Eric Blake  <ebb9@byu.net>
76419         Silence warning in last patch.
76420         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
76422         Quotearg part 4: add tests, fix c-maybe colon quoting.
76423         * lib/quotearg.h: Improve documentation.
76424         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
76425         escapes when adding outer quotes.  When quoting trigraphs, use
76426         valid C notation.  When quoting NUL, omit extra characters if next
76427         character is not digit.  Alter prototype.
76428         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
76429         callers.
76430         * modules/quotearg-tests: New module.
76431         * tests/test-quotearg.c: New test.
76433 2008-02-07  Eric Blake  <ebb9@byu.net>
76435         Quotearg part 3: add flag to control outer quote elision.
76436         * lib/quotearg.h (c_maybe_quoting_style): New style.
76437         (enum quoting_flags): Better documentation of flags.
76438         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
76439         c-maybe style.
76440         (quotearg_buffer_restyled): Handle new flag to elide outer
76441         quotes.
76443         Quotearg part 2: add flag that can control NUL elision.
76444         * lib/quotearg.h (set_quoting_flags): New prototype.
76445         * lib/quotearg.c (struct quoting_options): Add flag field.
76446         (set_quoting_flags): New function.
76447         (quotearg_buffer_restyled): Add flags parameter.
76448         (quotearg_alloc_mem): Set the flag if length cannot be returned.
76449         (quotearg_n_options): Set the flag, since length cannot be
76450         returned.
76451         (quoting_options_from_style): Default flags correctly.
76453         Quotearg part 1: more wrappers, restore quotearg_char state.
76454         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
76455         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
76456         (quotearg_colon_mem): New wrappers.
76457         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
76458         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
76459         functions.
76460         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
76461         (quotearg_colon_mem): New functions.
76463 2008-02-11  Bruno Haible  <bruno@clisp.org>
76465         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
76466         library in the current directory: it does not work with parallel make.
76467         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76469 2008-02-11  Bruno Haible  <bruno@clisp.org>
76471         * .gitattributes: New file.
76473 2008-02-11  Jim Meyering  <meyering@redhat.com>
76475         useless-if-before-free: Fix reversed exit values.
76476         * build-aux/useless-if-before-free: Use correct values
76477         for EXIT_MATCH and EXIT_NO_MATCH.
76479         * build-aux/useless-if-before-free: Close stdout carefully.
76481 2008-02-10  Bruno Haible  <bruno@clisp.org>
76483         New module 'git-merge-changelog'.
76484         * modules/git-merge-changelog: New file.
76485         * lib/git-merge-changelog.c: New file.
76487 2008-02-10  Jim Meyering  <meyering@redhat.com>
76489         useless-if-before-free: New option: --list (-l).
76491         useless-if-before-free: Don't exit immediately upon open failure.
76492         * build-aux/useless-if-before-free: Exit 2 for errors.
76493         Upon failure to open a file, don't exit immediately.
76494         Rather, just warn and continue with any remaining files.
76496 2008-02-10  Bruno Haible  <bruno@clisp.org>
76498         New abstract list operation 'node_set_value'.
76499         * lib/gl_list.h (gl_list_node_set_value): New function.
76500         (struct gl_list_implementation): New field node_set_value.
76501         * lib/gl_list.c (gl_list_node_set_value): New function.
76502         * lib/gl_array_list.c (gl_array_node_set_value): New function.
76503         (gl_array_list_implementation): Update.
76504         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
76505         (gl_carray_list_implementation): Update.
76506         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
76507         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76508         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76509         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
76510         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76511         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76512         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76513         Update.
76514         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76515         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
76516         (gl_sublist_list_implementation): Update.
76518 2008-02-10  Bruno Haible  <bruno@clisp.org>
76520         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
76521         Needed when ELEMENT is #defined to 'some_type *'.
76523 2008-02-10  Jim Meyering  <meyering@redhat.com>
76525         New script and module: useless-if-before-free
76526         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
76527         * build-aux/useless-if-before-free: New file.
76528         * modules/useless-if-before-free: New file.
76530         * build-aux/gitlog-to-changelog: Use committer date, not author date.
76532         xstrtol_error: Fix typo.
76533         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
76534         s/exit_failure/exit_status/.
76536 2008-02-09  Jim Meyering  <meyering@redhat.com>
76538         New script and module: gitlog-to-changelog
76539         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
76540         * modules/gitlog-to-changelog: New file.
76541         * build-aux/gitlog-to-changelog: New file.
76543 2008-02-08  Jim Meyering  <meyering@redhat.com>
76545         Avoid two "parameter unused" warnings.
76546         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
76547         Mark "st" as used.
76549         Use "git COMMAND", not "git-COMMAND".
76550         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
76551         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
76552         * build-aux/git-version-gen: Use "git status", not "git-status".
76554 2008-02-07  Bruno Haible  <bruno@clisp.org>
76556         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
76557         Avoids a crash on Windows Vista.
76558         Reported by Adam Strzelecki <ono@java.pl> via
76559         Simon Josefsson <simon@josefsson.org>.
76561 2008-02-06  Bruno Haible  <bruno@clisp.org>
76563         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
76564         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
76565         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
76566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
76567         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76569         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
76570         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
76571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76578         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
76579         left-adjust flag.
76580         * tests/test-snprintf-posix.h (test_function): Likewise.
76581         * tests/test-sprintf-posix.h (test_function): Likewise.
76582         * tests/test-vasprintf-posix.c (test_function): Likewise.
76583         * doc/posix-functions/fprintf.texi: Update.
76584         * doc/posix-functions/printf.texi: Update.
76585         * doc/posix-functions/snprintf.texi: Update.
76586         * doc/posix-functions/sprintf.texi: Update.
76587         * doc/posix-functions/vfprintf.texi: Update.
76588         * doc/posix-functions/vprintf.texi: Update.
76589         * doc/posix-functions/vsnprintf.texi: Update.
76590         * doc/posix-functions/vsprintf.texi: Update.
76591         Reported by Peter Fales <psfales@alcatel-lucent.com>.
76593 2008-02-06  Bruno Haible  <bruno@clisp.org>
76595         Fix bug introduced on 2008-01-26.
76596         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
76598 2008-02-06  Bruno Haible  <bruno@clisp.org>
76600         Fix bug introduced on 2007-06-10.
76601         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
76602         !NEED_PRINTF_FLAG_ZERO.
76604 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
76606         getloadavg: use libperfstat on AIX5
76607         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
76609 2008-02-03  Bruno Haible  <bruno@clisp.org>
76611         * lib/diffseq.h: Add comments about required #includes.
76612         Reported by Michael Biggs <gnulib@doubleplum.net>.
76614 2008-02-01  Bruno Haible  <bruno@clisp.org>
76616         * users.txt: Add gnuit.
76618 2008-01-31  Bruno Haible  <bruno@clisp.org>
76620         * lib/md4.c (set_uint32): Mark as inline.
76621         * lib/md5.c (set_uint32): Likewise.
76622         * lib/sha1.c (set_uint32): Likewise.
76623         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
76624         * m4/md5.m4 (gl_MD5): Likewise.
76625         * m4/sha1.m4 (gl_SHA1): Likewise.
76627 2008-01-31  Jim Meyering  <meyering@redhat.com>
76629         Use "sizeof VAR", rather than a literal "4".
76630         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
76631         * lib/md4.c (md4_read_ctx): Likewise.
76632         * lib/sha1.c (sha1_read_ctx): Likewise.
76634 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76636         * tests/test-sha1.c: New file, based on test-md5.c.
76638         * modules/crypto/sha1-tests: New file.
76640 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76642         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
76644 2008-01-31  Jim Meyering  <meyering@redhat.com>
76646         Prefer "sizeof v" over the equivalent "4".
76647         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
76648         * lib/md5.c (set_uint32): Likewise.
76649         * lib/sha1.c (set_uint32): Likewise.
76651 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76653         * lib/sha1.c (set_uint32): Mark function as static.
76655 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76657         md2: clarify comments to say that alignment is not required.
76658         * lib/md2.h: Remove warning about alignment in comment.
76659         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
76660         never been required.
76662 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76664         md4: adapt alignment constraint fix from sha1.
76665         * lib/md4.c (set_uint32): New function, from sha1.c
76666         (md4_read_ctx): Use it.
76667         (md4_finish_ctx): Doc fix.
76668         * lib/md4.h: Doc fix.
76670 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76672         md5: adapt alignment constraint fix from sha1.
76673         * lib/md5.c (set_uint32): New function, from sha1.c
76674         (md5_read_ctx): Use it.
76675         (md5_finish_ctx): Doc fix.
76676         * lib/md5.h: Doc fix.
76678 2008-01-30  Peter Palfrader  <weasel@debian.org>
76680         sha1: remove the result buffer alignment constraint
76681         * lib/sha1.c (set_uint32): New function.
76682         (sha1_read_ctx): Rewrite to remove the result buffer alignment
76683         constraint.
76684         (sha1_finish_ctx): Remove comment warning about alignment constraint.
76685         * lib/sha1.h: Likewise.
76687 2008-01-30  Andreas Schwab  <schwab@suse.de>
76688             Bruno Haible  <bruno@clisp.org>
76690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
76691         correct definition of LDBL_MIN_EXP.
76693 2008-01-30  Karl Berry  <karl@gnu.org>
76695         * config/srclist-update: try to preserve x bit on updates.
76696         * config/srclistvars.sh: update for karl.
76698 2008-01-29  Jim Meyering  <meyering@redhat.com>
76700         vasnprintf.c: Avoid warning about unused label
76701         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
76702         "overflow" label definition and associated code with the
76703         same cpp condition that guards the sole use of that label.
76705 2008-01-26  Bruno Haible  <bruno@clisp.org>
76707         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
76708         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
76709         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
76710         * lib/isnanl-nolibm.h (isnanl): Likewise.
76711         Reported by Paul Eggert <eggert@cs.ucla.edu>.
76713 2008-01-26  Bruno Haible  <bruno@clisp.org>
76715         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
76716         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
76718 2008-01-26  Bruno Haible  <bruno@clisp.org>
76720         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
76721         GCC >= 4.0 built-in.
76722         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
76724 2008-01-26  Bruno Haible  <bruno@clisp.org>
76726         Rename isnan, applicable to 'double' only, to isnand.
76727         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
76728         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
76729         (configure.ac): Update.
76730         (Include): Replace "isnan.h" with "isnand.h".
76731         * m4/isnand.m4: Renamed from m4/isnan.m4.
76732         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
76733         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
76734         instead of isnan.c.
76735         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
76736         instead of HAVE_ISNAN_IN_LIBC.
76737         (isnand): Renamed from isnan.
76738         * lib/isnand.c: New file.
76739         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
76740         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
76741         (Makefile.am): Update.
76742         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
76743         Include isnand.h instead of isnan.h.
76744         (main): Test isnand instead of isnan.
76745         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
76746         isnan-nolibm.
76747         * modules/frexp (Depends-on): Likewise.
76748         * modules/frexp-tests (Depends-on): Likewise.
76749         * modules/frexp-nolibm (Depends-on): Likewise.
76750         * modules/frexp-nolibm-tests (Depends-on): Likewise.
76751         * modules/isfinite (Depends-on): Likewise.
76752         * modules/round-tests (Depends-on): Likewise.
76753         * modules/signbit (Depends-on): Likewise.
76754         * modules/signbit-tests (Depends-on): Likewise.
76755         * modules/snprintf-posix (Depends-on): Likewise.
76756         * modules/sprintf-posix (Depends-on): Likewise.
76757         * modules/trunc-tests (Depends-on): Likewise.
76758         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76759         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76760         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76761         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76762         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76763         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76764         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76765         * modules/vasnprintf-posix (Depends-on): Likewise.
76766         * modules/vasprintf-posix (Depends-on): Likewise.
76767         * modules/vfprintf-posix (Depends-on): Likewise.
76768         * modules/vsnprintf-posix (Depends-on): Likewise.
76769         * modules/vsprintf-posix (Depends-on): Likewise.
76770         * lib/frexp.c: Include isnand.h instead of isnan.h.
76771         (ISNAN): Set to isnand instead of isnan.
76772         * lib/isfinite.c: Include isnand.h instead of isnan.h.
76773         (gl_isfinited): Use isnand instead of isnan.
76774         * lib/signbitd.c: Include isnand.h instead of isnan.h.
76775         (gl_signbitd): Use isnand instead of isnan.
76776         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
76777         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
76778         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
76779         (main): Use isnand instead of isnan.
76780         * tests/test-round1.c: Include isnand.h.
76781         (main): Use isnand instead of isnan.
76782         * tests/test-round2.c: Include isnand.h instead of isnan.h.
76783         (ISNAN): Set to isnand instead of isnan.
76784         * tests/test-trunc1.c: Include isnand.h.
76785         (main): Use isnand instead of isnan.
76786         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
76787         (equal): Use isnand instead of isnan.
76788         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
76789         isnand-nolibm.
76790         * NEWS: Mention the change.
76792 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76793             Bruno Haible  <bruno@clisp.org>
76795         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
76796         the GCC builtins for signbits are present and set
76797         REPLACE_SIGNBIT_USING_GCC if so.
76798         * lib/math.in.h (signbit): Define using GCC builtins if
76799         REPLACE_SIGNBIT_USING_GCC is set.
76800         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
76801         REPLACE_SIGNBIT_USING_GCC.
76802         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
76804 2008-01-25  Jim Meyering  <meyering@redhat.com>
76806         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
76807         * lib/poll.c: Include <config.h>, not "config.h".
76808         * tests/test-getaddrinfo.c: Likewise.
76810 2008-01-25  Simon Josefsson  <simon@josefsson.org>
76812         * modules/sockets-tests: New file.
76814 2008-01-24  Simon Josefsson  <simon@josefsson.org>
76816         * modules/sockets: New module, can be used to call WSA_Startup and
76817         WSA_Cleanup when needed.
76819         * lib/sockets.h, lib/sockets.c: New files.
76821         * m4/sockets.m4: New file.
76823         * tests/test-sockets.c: New file.
76825 2008-01-19  Bruno Haible  <bruno@clisp.org>
76827         * doc/posix-headers: Renamed from doc/headers.
76828         * doc/posix-functions: Renamed from doc/functions.
76829         * doc/gnulib.texi: Update.
76831 2008-01-19  Bruno Haible  <bruno@clisp.org>
76833         * doc/glibc-functions/strcasestr.texi: Include contents of
76834         doc/functions/strcasestr.texi, fixing the list of platforms.
76835         * doc/functions/strcasestr.texi: Remove file.
76837 2008-01-19  Bruno Haible  <bruno@clisp.org>
76839         * doc/glibc-functions/memmem.texi: Include contents of
76840         doc/functions/memmem.texi.
76841         * doc/functions/memmem.texi: Remove file.
76843 2008-01-18  Bruno Haible  <bruno@clisp.org>
76845         * doc/glibc-functions/*.texi: New files.
76846         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
76847         to use the new files.
76849 2008-01-17  Bruno Haible  <bruno@clisp.org>
76851         * tests/test-gethostname.c (main): Fix printf statement.
76853 2008-01-17  Simon Josefsson  <simon@josefsson.org>
76855         * modules/gethostname-tests: New file.
76857         * tests/test-gethostname.c: New file.
76859 2008-01-17  Simon Josefsson  <simon@josefsson.org>
76861         * lib/gethostname.c: Include string.h unconditionally, strncpy is
76862         used by the UNAME case.  Reported by Bruno Haible
76863         <bruno@clisp.org>.
76865 2008-01-17  Eric Blake  <ebb9@byu.net>
76867         Convert c-strcasestr to be more efficient.
76868         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
76869         (Depends-on): Add c-strcase, remove malloca, strnlen.
76870         * tests/test-c-strcasestr.c (main): Enhance test.
76871         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
76873 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
76875         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
76876         Use it in creating po/Makevars.
76878 2008-01-15  Simon Josefsson  <simon@josefsson.org>
76880         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
76881         Applications that requires it should initialize libgcrypt
76882         manually.
76884 2008-01-16  Simon Josefsson  <simon@josefsson.org>
76886         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
76888 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
76890         Fix problem with getdate on mingw32 reported by Simon Josefsson
76891         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
76892         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
76893         tzname", when deciding whether to declare tzname.
76894         * lib/strftime.c (tzname): Likewise.
76896 2008-01-15  Bruno Haible  <bruno@clisp.org>
76898         Work around a MacOS X 10.5 bug in frexpl().
76899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
76900         * doc/functions/frexpl.texi: Document the bug.
76901         Reported by Elias Pipping <pipping@gentoo.org>.
76903 2008-01-14  Eric Blake  <ebb9@byu.net>
76905         Touch up previous patch.
76906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
76907         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
76909         Convert strcasestr module to use Two-Way algorithm.
76910         * modules/strcasestr-simple: New module, based on the old
76911         strcasestr, but with Two-Way rather than KMP.
76912         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
76913         * lib/string.in.h (rpl_strcasestr): Declare.
76914         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
76915         performance.
76916         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
76917         * modules/string (Makefile.am): Support strcasestr.
76918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
76919         * modules/strcasestr-tests (Depends-on): Check for alarm.
76920         * tests/test-strcasestr.c: Augment test.
76921         * lib/str-two-way.h: Clean up stray macro.
76922         * NEWS: Document new module.
76923         * MODULES.html.sh (string handling): Likewise.
76924         * doc/functions/strcasestr.texi: New file.
76925         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
76926         here, since it is not a POSIX function.
76928 2008-01-14  Colin Watson  <cjwatson@debian.org>
76929             Bruno Haible  <bruno@clisp.org>
76931         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
76932         works fine; if not, set REPLACE_STRSIGNAL.
76933         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
76934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76935         REPLACE_STRSIGNAL.
76936         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
76937         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
76938         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
76940 2008-01-14  Bruno Haible  <bruno@clisp.org>
76942         * modules/strsignal (Include): Change to <string.h>.
76944 2008-01-14  Colin Watson  <cjwatson@debian.org>
76946         * modules/argp (Notice): Add a notice recommending to change
76947         XGETTEXT_OPTIONS.
76948         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
76950 2008-01-13  Colin Watson  <cjwatson@debian.org>
76952         * modules/strsignal-tests: New file.
76953         * tests/test-strsignal.c: New file.
76955         * lib/strsignal.c: New file, from glibc with modifications.
76956         * lib/siglist.h: New file, from glibc with modifications.
76957         * lib/string.in.h (strsignal): New declaration.
76958         * m4/strsignal.m4: New file.
76959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76960         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
76961         * modules/strsignal: New file.
76962         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
76963         HAVE_DECL_STRSIGNAL.
76965 2008-01-13  Bruno Haible  <bruno@clisp.org>
76967         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
76968         locale encoding is not ASCII. Needed for OpenBSD 4.0.
76969         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
76970         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
76972 2008-01-13  Bruno Haible  <bruno@clisp.org>
76974         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
76975         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
76976         * lib/argp.h (__attribute__): Likewise.
76977         * lib/c-stack.c (__attribute__): Likewise.
76978         * lib/error.h (__attribute__): Likewise.
76979         * lib/fts.c (__attribute__): Likewise.
76980         * lib/openat.h (__attribute__): Likewise.
76981         * lib/stdio.in.h (__attribute__): Likewise.
76982         * lib/string.in.h (__attribute__): Likewise.
76983         * lib/utimens.c (__attribute__): Likewise.
76984         * lib/vasnprintf.h (__attribute__): Likewise.
76985         * lib/xalloc.h (__attribute__): Likewise.
76986         * lib/xprintf.h (__attribute__): Likewise.
76987         * lib/xstrtol.h (__attribute__): Likewise.
76988         * lib/xvasprintf.h (__attribute__): Likewise.
76990 2008-01-12  Bruno Haible  <bruno@clisp.org>
76992         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
76993         * doc/glibc-headers/a.out.texi: New file.
76994         * doc/glibc-headers/aliases.texi: New file.
76995         * doc/glibc-headers/alloca.texi: New file.
76996         * doc/glibc-headers/ar.texi: New file.
76997         * doc/glibc-headers/argp.texi: New file.
76998         * doc/glibc-headers/argz.texi: New file.
76999         * doc/glibc-headers/byteswap.texi: New file.
77000         * doc/glibc-headers/crypt.texi: New file.
77001         * doc/glibc-headers/endian.texi: New file.
77002         * doc/glibc-headers/envz.texi: New file.
77003         * doc/glibc-headers/err.texi: New file.
77004         * doc/glibc-headers/error.texi: New file.
77005         * doc/glibc-headers/execinfo.texi: New file.
77006         * doc/glibc-headers/fpu_control.texi: New file.
77007         * doc/glibc-headers/fstab.texi: New file.
77008         * doc/glibc-headers/fts.texi: New file.
77009         * doc/glibc-headers/getopt.texi: New file.
77010         * doc/glibc-headers/ieee754.texi: New file.
77011         * doc/glibc-headers/ifaddrs.texi: New file.
77012         * doc/glibc-headers/libintl.texi: New file.
77013         * doc/glibc-headers/mcheck.texi: New file.
77014         * doc/glibc-headers/mntent.texi: New file.
77015         * doc/glibc-headers/obstack.texi: New file.
77016         * doc/glibc-headers/paths.texi: New file.
77017         * doc/glibc-headers/printf.texi: New file.
77018         * doc/glibc-headers/pty.texi: New file.
77019         * doc/glibc-headers/resolv.texi: New file.
77020         * doc/glibc-headers/shadow.texi: New file.
77021         * doc/glibc-headers/sysexits.texi: New file.
77022         * doc/glibc-headers/ttyent.texi: New file.
77024 2008-01-12  Jim Meyering  <meyering@redhat.com>
77026         announce-gen: emit Gnulib's git-based version string.
77027         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
77028         New option --gnulib-version=V, where V is expected to be
77029         the output of running git describe in the gnulib directory.
77030         (get_tool_versions): Request feedback on xdelta.  I suspect it's
77031         not useful, and plan to stop publishing an xdelta file with each
77032         coreutils release.
77034         * build-aux/announce-gen: Also check for lzma-compressed files.
77036 2008-01-11  Bruno Haible  <bruno@clisp.org>
77038         * tests/test-memmem.c (main): Increase maximum allowed time.
77039         * tests/test-strstr.c (main): Likewise.
77041 2008-01-11  Bruno Haible  <bruno@clisp.org>
77043         * doc/functions/memmem.texi: Add more precisions about platforms.
77044         * doc/functions/strstr.texi: Likewise.
77046 2008-01-10  Eric Blake  <ebb9@byu.net>
77048         * m4/strstr.m4: Delete cruft from copy-n-paste.
77049         Reported by Bruno Haible.
77051 2008-01-10  Bruno Haible  <bruno@clisp.org>
77053         Make c-strstr rely on strstr.
77054         * lib/c-strstr.c: Don't include str-kmp.h.
77055         (c_strstr): Define in terms of strstr.
77056         * modules/c-strstr (Files): Remove lib/str-kmp.h.
77057         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
77059 2008-01-10  Bruno Haible  <bruno@clisp.org>
77061         * doc/gnulib.texi (String Functions in C Locale): New section.
77062         * doc/c-ctype.texi: New file.
77063         * doc/c-strcase.texi: New file.
77064         * doc/c-strcaseeq.texi: New file.
77065         * doc/c-strcasestr.texi: New file.
77066         * doc/c-strstr.texi: New file.
77067         * doc/c-strtod.texi: New file.
77068         * doc/c-strtold.texi: New file.
77070 2008-01-10  Eric Blake  <ebb9@byu.net>
77072         * lib/relocatable.h: Fix a comment.
77074 2008-01-10  Eric Blake  <ebb9@byu.net>
77076         Share two-way algorithm.
77077         * lib/str-two-way.h: New file, merged from...
77078         * lib/memmem.c: ...here...
77079         * lib/strstr.c: ...and here.
77080         * modules/memmem (Files): Use it.
77081         * modules/strstr (Files): Likewise.
77083         Avoid quadratic strstr implementations.
77084         * lib/strstr.c: New file.
77085         * m4/strstr.m4: Likewise.
77086         * modules/strstr: Likewise.
77087         * modules/strstr-tests: Likewise.
77088         * tests/test-strstr.c: Likewise.
77089         * lib/string.in.h (rpl_strstr): Declare.
77090         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
77091         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
77092         * modules/string (Makefile.am): Likewise.
77093         * MODULES.html.sh (string handling): Mention new module.
77094         * doc/functions/strstr.texi (strstr): Document the bug.
77096 2008-01-10  Bruno Haible  <bruno@clisp.org>
77098         * lib/relocatable.h (relocate): State whether result is freshly
77099         allocated or not.
77100         * lib/relocatable.c (relocate): Return a freshly allocated string
77101         instead of a pointer to a privately held string.
77102         Reported by Sylvain Beucler <beuc@gnu.org>.
77104 2008-01-10  Colin Watson  <cjwatson@debian.org>
77106         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
77107         s/S_ISNLK/S_ISLNK/.
77109 2008-01-09  Bruno Haible  <bruno@clisp.org>
77111         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
77112         and other files.
77113         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
77114         if it's only a guess.
77115         * modules/memmem: Simplify by depending on memmem-simple.
77117 2008-01-09  Bruno Haible  <bruno@clisp.org>
77119         Work around OpenBSD 4.0 tdelete() bug.
77120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
77121         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
77122         macros and don't redefine the enum values.
77123         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
77124         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
77125         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
77127 2008-01-09  Bruno Haible  <bruno@clisp.org>
77129         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
77130         (main): Don't perform the tests if setlocale did not install a UTF-8
77131         locale. Needed on OpenBSD 4.0.
77132         * modules/wcwidth-tests (Depends-on): Add localcharset.
77134 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77136         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
77137         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
77138         * NEWS: announce this.
77139         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
77141 2008-01-09  Simon Josefsson  <simon@josefsson.org>
77142         and Eric Blake  <ebb9@byu.net>
77144         Add memmem-simple module.
77145         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
77146         (gl_FUNC_MEMMEM): Separate performance from presence checks.
77147         * modules/memmem-simple: New file.
77148         * modules/memmem (Description): Tweak.
77149         * MODULES.html.sh (string handling): Mention new module.
77150         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
77151         addressed by memmem-simple.
77152         * NEWS: Document the difference.
77154 2008-01-09  Eric Blake  <ebb9@byu.net>
77156         Give gcc some memmem optimization hints.
77157         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
77158         (strcasestr): Declare as pure.
77159         * modules/memmem (Maintainer): Claim my implementation.
77161 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77163         Support AIX 6.1 and higher.
77164         * build-aux/config.libpath: Likewise.
77165         * build-aux/config.rpath: Likewise.
77167 2008-01-08  Jim Meyering  <meyering@redhat.com>
77168             Bruno Haible  <bruno@clisp.org>
77170         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
77171         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
77172         Reported by Peter Fales in
77173         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
77175 2008-01-08  Bruno Haible  <bruno@clisp.org>
77177         * modules/unictype/category-of (Depends-on): Add
77178         unictype/category-none.
77179         * modules/unictype/category-and-tests (Depends-on): Add
77180         unictype/category-{L,N,Lu,Nd}.
77181         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
77182         * modules/unictype/category-or-tests (Depends-on): Add
77183         unictype/category-{L,N}.
77184         * modules/unictype/category-name-tests (Depends-on): Add
77185         unictype/category-{Z,Nl}.
77186         Reported by Simon Josefsson.
77188 2008-01-08  Bruno Haible  <bruno@clisp.org>
77190         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
77191         convention better.
77192         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
77193         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
77194         Reported by Peter Miller <millerp@canb.auug.org.au>.
77196 2008-01-08  Eric Blake  <ebb9@byu.net>
77198         Rewrite memmem to guarantee linear complexity without malloc.
77199         * lib/memmem.c (memmem): Use Two-Way rather than
77200         Knuth-Morris-Pratt, to allow O(1) space usage.
77201         (critical_factorization, two_way_short_needle)
77202         (two_way_long_needle): New functions.
77203         (knuth_morris_pratt): Delete.
77204         * modules/memmem (Depends-on): No longer need malloca or stdbool.
77205         Add stdint.
77206         * tests/test-memmem.c (main): Add tests for periodic needle and
77207         sublinear performance.
77208         * doc/functions/memmem.texi (memmem): Document other deficiencies
77209         in cygwin and older glibc.
77211 2008-01-08  Bruno Haible  <bruno@clisp.org>
77213         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
77214         augmentation.
77216 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
77218         Add a configure time option: --disable-acl.
77219         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
77220         AC_ARG_ENABLE(acl).
77222 2008-01-06  Simon Josefsson  <simon@josefsson.org>
77224         * tests/test-localename.c: Don't include obsolete "setenv.h".
77226         * modules/localename-tests (Depends-on): Need unsetenv.
77228 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77230         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
77232 2008-01-06  Colin Watson  <cjwatson@debian.org>
77234         * users.txt: Add man-db.
77236 2008-01-07  Bruno Haible  <bruno@clisp.org>
77238         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
77239         previous section name.
77241 2008-01-07  Bruno Haible  <bruno@clisp.org>
77243         * lib/progname.c (set_program_name): Don't strip off a leading
77244         "lt-" prefix outside a .libs directory.
77245         Suggested by Paul Eggert.
77247 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
77248             Bruno Haible  <bruno@clisp.org>
77250         Improve memory cleanup in 'relocatable' module.
77251         * lib/relocatable.h (compute_curr_prefix): Change return type to
77252         'char *'.
77253         * lib/relocatable.c (compute_curr_prefix): Change return type to
77254         'char *'. Free curr_installdir after use.
77255         (relocate): Free curr_prefix_better after use.
77256         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
77258 2008-01-01  Bruno Haible  <bruno@clisp.org>
77260         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
77261         failure on older glibc systems.
77262         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77264 2008-01-05  Eric Blake  <ebb9@byu.net>
77266         Avoid quadratic system memmem.
77267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
77268         Reported by Ralf Wildenhues.
77270         Fix memmem test for mingw.
77271         * modules/memmem-tests (configure.ac): Check for alarm.
77272         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
77273         it.
77274         * doc/functions/memmem.texi: New file.
77275         * doc/gnulib.texi (Function Substitutes): Add memmem.
77276         Reported by Bruno Haible.
77278 2008-01-04  Bruno Haible  <bruno@clisp.org>
77280         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
77281         Require gl_HEADER_STRINGS_H_DEFAULTS, not
77282         gl_HEADER_STRING_H_DEFAULTS.
77284 2008-01-04  Eric Blake  <ebb9@byu.net>
77286         Shorten duration of memmem test.
77287         * tests/test-memmem.c (main): Use alarm to declare failure if test
77288         is taking too long.
77289         Reported by Ralf Wildenhues.
77291 2007-12-21  Simon Josefsson  <simon@josefsson.org>
77293         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
77294         string, needed by strerror.
77296 2008-01-03  Colin Watson  <cjwatson@debian.org>
77297             Bruno Haible  <bruno@clisp.org>
77299         * doc/gnulib-tool.texi (Localization): New section.
77301 2008-01-02  Bruno Haible  <bruno@clisp.org>
77303         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
77304         variables to 'unsigned char *' type.
77305         Reported by Paul Eggert.
77307 2008-01-02  Jim Meyering  <jim@meyering.net>
77309         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
77311 2007-12-31  Jim Meyering  <jim@meyering.net>
77313         Avoid use of private FTS type name.
77314         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
77316 2007-12-30  Karl Berry  <karl@gnu.org>
77318         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
77319         work around defect in Texinfo and/or the standalone Info browser.
77321 2007-12-30  Bruno Haible  <bruno@clisp.org>
77323         Unify 5 copies of the KMP code.
77324         * lib/str-kmp.h: New file.
77325         * lib/c-strcasestr.c: Include str-kmp.h.
77326         (knuth_morris_pratt): Remove function.
77327         (c_strcasestr): Update.
77328         * lib/c-strstr.c: Include str-kmp.h.
77329         (knuth_morris_pratt): Remove function.
77330         (c_strcasestr): Update.
77331         * lib/mbscasestr.c: Include str-kmp.h.
77332         (knuth_morris_pratt_unibyte): Remove function.
77333         * lib/mbsstr.c: Include str-kmp.h.
77334         (knuth_morris_pratt_unibyte): Remove function.
77335         * lib/strcasestr.c: Include str-kmp.h.
77336         (knuth_morris_pratt): Remove function.
77337         (strcasestr): Update.
77338         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
77339         * modules/c-strstr (Files): Likewise.
77340         * modules/mbscasestr (Files): Likewise.
77341         * modules/mbsstr (Files): Likewise.
77342         * modules/strcasestr (Files): Likewise.
77343         Suggested by Paul Eggert.
77345 2007-12-30  Bruno Haible  <bruno@clisp.org>
77347         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
77348         defined.
77350 2007-12-30  Bruno Haible  <bruno@clisp.org>
77352         * lib/xmalloca.h: Include xalloc.h.
77353         (xnmalloca): New macro.
77355 2007-12-30  Bruno Haible  <bruno@clisp.org>
77357         * lib/malloca.h (nmalloca): New macro.
77358         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
77359         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
77360         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
77361         knuth_morris_pratt_multibyte): Likewise.
77362         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
77363         knuth_morris_pratt_multibyte): Likewise.
77364         * lib/memmem.c (knuth_morris_pratt): Likewise.
77365         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
77367 2007-12-25  Bruno Haible  <bruno@clisp.org>
77369         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
77370         * lib/glob.c: Don't include openat.h.
77371         (link_exists2_p): Add back the code that deals with the
77372         !GLOB_ALTDIRFUNC case.
77373         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
77374         let it do the filename concatenation.
77375         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
77376         * modules/glob (Depends-on): Remove openat.
77378 2007-12-31  Bruno Haible  <bruno@clisp.org>
77380         * modules/dirfd (License): Change to LGPLv2+.
77381         Approved by Jim Meyering.
77383 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
77385         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
77386         when multiplying M by sizeof (size_t).
77388 2007-12-10  Martin Lambers  <marlam@marlam.de>
77390         Override getpagesize on mingw.
77391         * lib/getpagesize.c: New file.
77392         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
77393         * modules/getpagesize (Files): Add lib/getpagesize.c.
77394         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
77395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77396         REPLACE_GETPAGESIZE.
77397         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
77399 2007-12-25  Bruno Haible  <bruno@clisp.org>
77401         * modules/localcharset (Notice): New field.
77402         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
77403         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
77405 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
77406             Bruno Haible  <bruno@clisp.org>
77408         Avoid using the syntax symbol() in formatted documentation.
77409         * MODULES.html.sh (func_module): When replacing symbol() with a
77410         hyperlink, remove the parentheses. Show an error if some remain.
77411         Recognize and render the '...' syntax.
77412         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
77413         Rework. Add paragraph about GCC's inlining.
77414         * doc/alloca.texi: Likewise.
77415         * doc/error.texi: Remove parentheses from symbol reference.
77416         * doc/gnulib-intro.texi: Likewise.
77417         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
77418         * modules/fnmatch (Description): Reword to say "the ... function".
77419         * modules/full-read (Description): Likewise.
77420         * modules/full-write (Description): Likewise.
77421         * modules/safe-read (Description): Likewise.
77422         * modules/safe-write (Description): Likewise.
77423         * modules/strchrnul (Description): Likewise.
77424         * modules/trim (Description): Likewise.
77425         * modules/error (Description): Remove parentheses from symbol
77426         references.
77427         * modules/verror (Description): Likewise.
77428         Reported by Karl Berry.
77430 2007-12-25  Bruno Haible  <bruno@clisp.org>
77432         Fixup after 2007-10-16 commit.
77433         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
77435 2007-12-24  Bruno Haible  <bruno@clisp.org>
77437         Make --enable-relocatable work with DESTDIR.
77438         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
77439         to compute installdir from destprog.
77440         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
77441         also set the RELOC_DESTDIR variable.
77442         Reported by Левашев Иван <octagram@bluebottle.com>.
77444 2007-12-24  Bruno Haible  <bruno@clisp.org>
77446         Fix link error due to xalloc_die().
77447         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
77448         of xreadlink.
77449         * lib/relocwrapper.c: Update comments.
77450         * build-aux/install-reloc: Remove xreadlink.c from file list.
77451         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
77452         xreadlink.c.
77453         Reported by Левашев Иван <octagram@bluebottle.com>.
77455 2007-12-24  Bruno Haible  <bruno@clisp.org>
77457         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
77458         * lib/setenv.h: Remove file.
77459         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
77460         lib/setenv.h.
77461         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
77462         (Depends-on): Add stdlib.
77463         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
77464         gl_FUNC_UNSETENV.
77465         (Include): Replace setenv.h with <stdlib.h>.
77466         * modules/unsetenv: New file.
77467         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
77468         * lib/unsetenv.c: Include <stdlib.h> first.
77469         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
77470         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
77471         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
77472         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
77473         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
77474         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
77475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
77476         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
77477         * doc/functions/unsetenv.texi: Update.
77478         * modules/xsetenv (Depends-on): Add unsetenv.
77479         * modules/getdate (Depends-on): Likewise.
77480         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
77481         * lib/xsetenv.c: Don't include setenv.h.
77482         * lib/getdate.y: Likewise.
77483         * lib/relocwrapper.c: Likewise.
77484         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
77485         (Depends-on): Add stdlib.
77486         * NEWS: Mention the changes.
77487         Reported by Левашев Иван <octagram@bluebottle.com>.
77489 2007-12-23  Bruno Haible  <bruno@clisp.org>
77491         * lib/memmem.c (memmem): Use lowercase variable names. Tab
77492         indentation.
77494 2007-12-23  Bruno Haible  <bruno@clisp.org>
77496         * lib/c-strcasestr.c: Add more comments.
77497         * lib/c-strstr.c: Likewise.
77498         * lib/mbscasestr.c: Likewise.
77499         * lib/mbsstr.c: Likewise.
77500         * lib/strcasestr.c: Likewise.
77501         * lib/memmem.c: Likewise.
77503 2007-12-23  Bruno Haible  <bruno@clisp.org>
77505         * tests/test-memmem.c: Include <string.h> first.
77507 2007-12-22  Bruno Haible  <bruno@clisp.org>
77509         * gnulib-tool (func_create_testdir): Change $auxdir while generating
77510         the contents of $testsbase.
77511         Reported by Ralf Wildenhues.
77513 2007-12-22  Bruno Haible  <bruno@clisp.org>
77515         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
77516         two variables local_ldadd_before, local_ldadd_last.
77518 2007-12-20  Eric Blake  <ebb9@byu.net>
77520         Work around circular library issue when cross-compiling.
77521         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
77522         that progname.o does not need to pull in rpl_memcmp.
77524 2007-12-19  Eric Blake  <ebb9@byu.net>
77526         Fix memmem to avoid O(n^2) worst-case complexity.
77527         * lib/memmem.c (knuth_morris_pratt): New function.
77528         (memmem): Use it if first few naive iterations fail.
77529         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
77530         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
77531         * modules/memchr (License): Likewise.
77532         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
77533         malloca.
77534         * tests/test-memmem.c: Rewrite, borrowing ideas from
77535         test-mbsstr1.c; the old version wouldn't even compile!
77536         * modules/memmem-tests: New file.
77537         * lib/string.in.h (rpl_memmem): Add declaration.
77538         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
77539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
77540         REPLACE_MEMMEM.
77542 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
77544         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
77545         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
77546         before any system include files, and undef after them all.  This
77547         should fix a problem on VMS reported by John E. Malmberg in
77548         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
77550 2007-12-17  Eric Blake  <ebb9@byu.net>
77552         Revert addition of verify, for BSD/OS.
77553         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
77554         can't handle large files, for the sake of obsolete platforms.
77555         * modules/fseeko (Depends-on): Remove verify.
77556         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
77557         * doc/functions/ftello.texi (ftello): Likewise.
77558         * doc/functions/fgetpos.texi (fgetpos): Likewise.
77559         Reported by Larry Jones.
77561 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
77563         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
77564         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
77566 2007-12-17  Jim Meyering  <meyering@redhat.com>
77568         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
77569         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
77570         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
77571         * modules/getcwd (Depends-on): Add openat.
77572         Reported by Petr Salinger.
77574 2007-12-17  Bruno Haible  <bruno@clisp.org>
77576         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
77577         avoid a segmentation fault of the configure test on x86_64 systems.
77579 2007-12-15  Jim Meyering  <meyering@redhat.com>
77581         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
77583 2007-12-13  Eric Blake  <ebb9@byu.net>
77585         Another fseek test.
77586         * tests/test-fseek.c (main): Also test ungetc handling.
77587         * tests/test-fseeko.c (main): Likewise.
77588         * modules/fseeko (Depends-on): Add verify.
77589         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
77590         large.
77591         Reported by Larry Jones.
77593         Fix fseeko on mingw.
77594         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
77595         seek.
77597         Beef up fseek tests.
77598         * tests/test-fseek.c (main): Also test eof handling.
77599         * tests/test-fseeko.c (main): Likewise.
77600         Reported by Larry Jones.
77602 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
77604         Fix fseeko on BSD-based platforms.
77605         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
77606         successful seek.
77608 2007-12-12  Eric Blake  <ebb9@byu.net>
77610         Allow circular dependency of separate libtests.a
77611         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
77612         when use_libtests.
77614 2007-12-11  Eric Blake  <ebb9@byu.net>
77616         Fix bug with -0.0L in previous patch.
77617         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
77618         * tests/test-isnan.c (main): Also test on zeroes.
77619         * tests/test-isnanf.c (main): Likewise.
77620         * tests/test-isnanl.h (main): Likewise.
77622         Detect pseudo-denormals on x86 even when cross-compiling.
77623         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
77624         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
77625         invalid bit patterns that happen to satisfy ==.
77627         Avoid link failures with separate libtests.a.
77628         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
77629         last, to satisfy circular dependencies.
77631 2007-12-11  Eric Blake  <ebb9@byu.net>
77632         and Bruno Haible  <bruno@clisp.org>
77634         Fix OpenBSD 4.0 <float.h> handling of long double.
77635         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
77636         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
77637         * doc/headers/float.texi (float.h): Document OpenBSD bug.
77639 2007-12-11  Jim Meyering  <meyering@redhat.com>
77641         * users.txt: Add libvirt.
77643         Support versions of autoconf prior to 2.59c.
77644         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
77645         if it is not already defined.
77647 2007-12-09  Bruno Haible  <bruno@clisp.org>
77649         Let 'gnulib-tool --import' collect sources needed for the tests in
77650         tests/ rather than in lib/.
77651         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
77652         argument. If true, add rules to generate libtests.a, and put libtests.a
77653         into $(LDADD). Consider source files in subdirectories and set
77654         uses_subdirs.
77655         (func_emit_initmacro_start, func_emit_initmacro_end,
77656         func_emit_initmacro_done): Pass all arguments explicitly.
77657         (func_import): Determine two module lists main_modules,
77658         testsrelated_modules. Determine use_libtests. Determine two variables
77659         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
77660         instead of just sed_transform_lib_file. Determine two variables
77661         main_files and testsrelated_files. Compute 'files' as the union of
77662         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
77663         func_add_or_update. In the generated gnulib-comp.m4, collect the
77664         object files for tests/ in different variables than those for lib/.
77665         Substitute LIBTESTS_LIBDEPS.
77666         (func_create_testdir): Combine the uses_subdirs results from
77667         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
77669 2007-12-09  Bruno Haible  <bruno@clisp.org>
77671         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
77672         the build-aux directory.
77674 2007-12-09  Bruno Haible  <bruno@clisp.org>
77676         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
77677         introduced on 2006-09-09.
77679 2007-12-07  Jim Meyering  <meyering@redhat.com>
77681         Let these macros work also with autoconf-2.59.
77682         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
77683         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
77684         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
77686 2007-12-06  Jim Meyering  <meyering@redhat.com>
77688         Avoid a configure-time syntax error in gl_FUNC_ACL.
77689         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
77690         function in each branch, before testing the cache variable.
77692 2007-12-04  Eric Blake  <ebb9@byu.net>
77694         Make scripts executable.
77695         * build-aux/config.guess: Add execute permissions.
77696         * build-aux/config.sub: Likewise.
77697         * build-aux/gendocs.sh: Likewise.
77699         Fix frexp on mingw.
77700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
77701         cross-compiling.
77702         * doc/functions/frexp.texi (frexp): Document the bug.
77704         Make cygwin fseeko check more reliable.
77705         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
77706         version numbers, rather than unrelated feature check.
77707         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
77708         * doc/functions/ftello.texi (ftello): Likewise.
77709         Reported by Bruno Haible.
77711         * m4/strerror.m4: Bump version number.
77713 2007-12-03  Bruno Haible  <bruno@clisp.org>
77715         * doc/functions/mprotect.texi: Mention the mingw problem.
77717 2007-12-03  Eric Blake  <ebb9@byu.net>
77719         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
77720         REPLACE_STRERROR is initialized before this macro.
77722 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
77724         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
77725         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
77726         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
77727         put -lsec in even for programs other than 'ls'.  This fixes a problem
77728         for gettext reported by Bruno Haible in
77729         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
77730         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
77731         Add support for Solaris 10.  This isn't efficient, but should get the
77732         job done for now.
77734 2007-12-03  James Youngman  <jay@gnu.org>
77736         * doc/regexprops-generic.texi: change "an close-group" to "a
77737         close-group" and "illegal" to "not allowed".
77739 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77741         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
77742         pr_byname.h. Needed for the rare case when the maintainer has done
77743         "make maintainer-clean" in the source directory and then attempts a
77744         build outside the source directory.
77745         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
77746         scripts_byname.h.
77748 2007-12-02  Martin Lambers  <marlam@marlam.de>
77749             Bruno Haible  <bruno@clisp.org>
77751         * lib/getpagesize.h: Remove file.
77752         * lib/unistd.in.h: Include declaration of getpagesize here.
77753         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
77754         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
77755         HAVE_SYS_PARAM_H.
77756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
77757         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
77758         * modules/getpagesize (Files): Remove lib/getpagesize.h.
77759         (Depends-on): Add unistd.
77760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
77761         (Include): Use <unistd.h> instead of getpagesize.h.
77762         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
77763         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
77764         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
77765         gl_GETPAGESIZE invocation, already handled by module dependency.
77766         * lib/pagealign_alloc.c: Don't include getpagesize.h.
77768 2007-12-02  Bruno Haible  <bruno@clisp.org>
77770         * modules/strings-tests: New file.
77771         * tests/test-strings.c: New file.
77773         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
77774         * lib/strings.in.h: New file.
77775         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
77776         * m4/strings_h.m4: New file.
77777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
77778         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
77779         * modules/strings: New file.
77780         * modules/string (Makefile.am): Update.
77781         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
77782         Reported by Karl Berry.
77784 2007-12-01  Eric Blake  <ebb9@byu.net>
77786         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
77787         accommodate fix in cygwin 1.5.25.
77789 2007-12-01  Jim Meyering  <meyering@redhat.com>
77791         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
77792         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
77793         that would inhibit utf8-optimization of a regexp containing line-
77794         or buffer-anchors, e.g., `^', `$'.
77796 2007-11-30  Bruno Haible  <bruno@clisp.org>
77798         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
77799         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
77800         glthread_recursive_lock_init.
77801         * lib/lock.c (glthread_recursive_lock_init)
77802         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
77803         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77805 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
77807         New function qset_acl, like set_acl but with syscall semantics.
77808         * lib/acl.h (qset_acl): New decl.
77809         * lib/acl.c (qset_acl): New function.
77810         (set_acl): Use new function.  Use more-consistent diagnostics.
77812 2007-11-28  Jim Meyering  <meyering@redhat.com>
77814         * modules/physmem (License): Change from GPL to LGPLv2+.
77816 2007-11-26  Bruno Haible  <bruno@clisp.org>
77818         * lib/vasnprintf.c (decode_long_double): Don't abort if the
77819         'long double' type has excess precision.
77820         Reported by Jim Meyering in
77821         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
77823 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77825         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
77826         Sync from <http://gnu.org/licenses>.
77827         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
77828         with license text from same location.
77829         * doc/maintain.texi, doc/standards.texi:  Sync from
77830         <http://savannah.gnu.org/projects/gnustandards>.
77832 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
77833         and Jim Meyering  <meyering@redhat.com>
77835         Adjust getdate' grammar to accept a slightly more regular language.
77836         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
77837         Before, the former was rejected.
77838         * lib/getdate.y (digits_to_date_time): New function, factored
77839         out of ...
77840         (number): ...here.  Just call digits_to_date_time.
77841         (hybrid): New non-terminal to handle an <unsigned number,
77842         signed relative offset> sequence consistently.
77844 2007-11-18  Jim Meyering  <meyering@redhat.com>
77846         Pull my changes from coreutils:
77847         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
77848         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
77849         use of $gnulib_tool_option_extras, so that it's separated from the
77850         preceding argument.
77852         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
77853         * build-aux/bootstrap (cp_mark_as_generated): Create any required
77854         parent destination directories before copying a file into place.
77856 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77858         bootstrap: work also with 4-argument variant of AC_INIT
77859         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
77861 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77863         Port test-getaddrinfo to Solaris.
77864         Problem reported by Bruno Haible in
77865         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
77866         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
77867         explanation of setting 'hints'.
77868         Don't reject an implementation merely because it returns EAI_SERVICE.
77869         (EAI_SERVICE): Define to 0 if not defined.
77871 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77873         The license of gnu-make and posix-shell is now "GPLed build tool".
77874         * modules/gnu-make (License): Likewise.
77875         * modules/posix-shell (License): Likewise.
77877         New module posix-shell, for determining a POSIX shell
77878         or perhaps something that is close enough to a POSIX shell.
77879         * m4/posix-shell.m4: New file.
77880         * modules/posix-shell: New file.
77882         * MODULES.html.sh: Mention new module.
77884         New module gnu-make, for determining whether we're using GNU Make.
77885         * m4/gnu-make.m4: New file.
77886         * modules/gnu-make: New file.
77887         * MODULES.html.sh: Mention new module.
77889 2007-11-14  Jim Meyering  <meyering@redhat.com>
77891         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
77892         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
77893         use this macro to create a function _definition_.
77894         Remove useless "#undef ARGMATCH_DIE".
77896 2007-11-14  Bruno Haible  <bruno@clisp.org>
77898         * lib/config.charset: Update for OpenBSD 4.1.
77899         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
77901 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
77903         Document 64-bit #if problems in stdint.texi.
77904         * doc/headers/stdint.texi (stdint.h): Mention problems with
77905         64-bit-#if, and how to work around them.
77907         Don't insist on 'long long int' support in the preprocessor.  It
77908         breaks too many things.  For example, PRIdMAX still uses a 'long
77909         long int' format with the latest Sun compiler, even though
77910         HAVE_LONG_LONG_INT isn't defined due to that compiler's
77911         preprocessor problem.  This causes the latest coreutils to dump
77912         core on Solaris 10 sparc with the Sun C compiler.
77913         Instead, fix the 2007-10-16 problem in a different way, by evaluating
77914         the troublesome expressions at configure-time, not at #if-time.
77915         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
77916         preprocessor.
77917         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
77918         compile-time C checks, done at 'configure'-time.
77919         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
77920         * modules/inttypes (Makefile): Substitute the new symbols that
77921         gl_INTTYPES_H now generates.
77922         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
77924 2007-11-12  Bruno Haible  <bruno@clisp.org>
77926         Tests for Unicode character classification functions.
77928         * modules/unictype/bidicategory-byname-tests: New file.
77929         * modules/unictype/bidicategory-name-tests: New file.
77930         * modules/unictype/bidicategory-of-tests: New file.
77931         * modules/unictype/bidicategory-test-tests: New file.
77932         * modules/unictype/block-list-tests: New file.
77933         * modules/unictype/block-of-tests: New file.
77934         * modules/unictype/block-test-tests: New file.
77935         * modules/unictype/category-C-tests: New file.
77936         * modules/unictype/category-Cc-tests: New file.
77937         * modules/unictype/category-Cf-tests: New file.
77938         * modules/unictype/category-Cn-tests: New file.
77939         * modules/unictype/category-Co-tests: New file.
77940         * modules/unictype/category-Cs-tests: New file.
77941         * modules/unictype/category-L-tests: New file.
77942         * modules/unictype/category-Ll-tests: New file.
77943         * modules/unictype/category-Lm-tests: New file.
77944         * modules/unictype/category-Lo-tests: New file.
77945         * modules/unictype/category-Lt-tests: New file.
77946         * modules/unictype/category-Lu-tests: New file.
77947         * modules/unictype/category-M-tests: New file.
77948         * modules/unictype/category-Mc-tests: New file.
77949         * modules/unictype/category-Me-tests: New file.
77950         * modules/unictype/category-Mn-tests: New file.
77951         * modules/unictype/category-N-tests: New file.
77952         * modules/unictype/category-Nd-tests: New file.
77953         * modules/unictype/category-Nl-tests: New file.
77954         * modules/unictype/category-No-tests: New file.
77955         * modules/unictype/category-P-tests: New file.
77956         * modules/unictype/category-Pc-tests: New file.
77957         * modules/unictype/category-Pd-tests: New file.
77958         * modules/unictype/category-Pe-tests: New file.
77959         * modules/unictype/category-Pf-tests: New file.
77960         * modules/unictype/category-Pi-tests: New file.
77961         * modules/unictype/category-Po-tests: New file.
77962         * modules/unictype/category-Ps-tests: New file.
77963         * modules/unictype/category-S-tests: New file.
77964         * modules/unictype/category-Sc-tests: New file.
77965         * modules/unictype/category-Sk-tests: New file.
77966         * modules/unictype/category-Sm-tests: New file.
77967         * modules/unictype/category-So-tests: New file.
77968         * modules/unictype/category-Z-tests: New file.
77969         * modules/unictype/category-Zl-tests: New file.
77970         * modules/unictype/category-Zp-tests: New file.
77971         * modules/unictype/category-Zs-tests: New file.
77972         * modules/unictype/category-and-not-tests: New file.
77973         * modules/unictype/category-and-tests: New file.
77974         * modules/unictype/category-byname-tests: New file.
77975         * modules/unictype/category-name-tests: New file.
77976         * modules/unictype/category-none-tests: New file.
77977         * modules/unictype/category-of-tests: New file.
77978         * modules/unictype/category-or-tests: New file.
77979         * modules/unictype/category-test-withtable-tests: New file.
77980         * modules/unictype/combining-class-tests: New file.
77981         * modules/unictype/ctype-alnum-tests: New file.
77982         * modules/unictype/ctype-alpha-tests: New file.
77983         * modules/unictype/ctype-blank-tests: New file.
77984         * modules/unictype/ctype-cntrl-tests: New file.
77985         * modules/unictype/ctype-digit-tests: New file.
77986         * modules/unictype/ctype-graph-tests: New file.
77987         * modules/unictype/ctype-lower-tests: New file.
77988         * modules/unictype/ctype-print-tests: New file.
77989         * modules/unictype/ctype-punct-tests: New file.
77990         * modules/unictype/ctype-space-tests: New file.
77991         * modules/unictype/ctype-upper-tests: New file.
77992         * modules/unictype/ctype-xdigit-tests: New file.
77993         * modules/unictype/decimal-digit-tests: New file.
77994         * modules/unictype/digit-tests: New file.
77995         * modules/unictype/mirror-tests: New file.
77996         * modules/unictype/numeric-tests: New file.
77997         * modules/unictype/property-alphabetic-tests: New file.
77998         * modules/unictype/property-ascii-hex-digit-tests: New file.
77999         * modules/unictype/property-bidi-arabic-digit-tests: New file.
78000         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
78001         * modules/unictype/property-bidi-block-separator-tests: New file.
78002         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
78003         * modules/unictype/property-bidi-common-separator-tests: New file.
78004         * modules/unictype/property-bidi-control-tests: New file.
78005         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
78006         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
78007         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
78008         * modules/unictype/property-bidi-european-digit-tests: New file.
78009         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
78010         * modules/unictype/property-bidi-left-to-right-tests: New file.
78011         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
78012         * modules/unictype/property-bidi-other-neutral-tests: New file.
78013         * modules/unictype/property-bidi-pdf-tests: New file.
78014         * modules/unictype/property-bidi-segment-separator-tests: New file.
78015         * modules/unictype/property-bidi-whitespace-tests: New file.
78016         * modules/unictype/property-byname-tests: New file.
78017         * modules/unictype/property-combining-tests: New file.
78018         * modules/unictype/property-composite-tests: New file.
78019         * modules/unictype/property-currency-symbol-tests: New file.
78020         * modules/unictype/property-dash-tests: New file.
78021         * modules/unictype/property-decimal-digit-tests: New file.
78022         * modules/unictype/property-default-ignorable-code-point-tests: New file.
78023         * modules/unictype/property-deprecated-tests: New file.
78024         * modules/unictype/property-diacritic-tests: New file.
78025         * modules/unictype/property-extender-tests: New file.
78026         * modules/unictype/property-format-control-tests: New file.
78027         * modules/unictype/property-grapheme-base-tests: New file.
78028         * modules/unictype/property-grapheme-extend-tests: New file.
78029         * modules/unictype/property-grapheme-link-tests: New file.
78030         * modules/unictype/property-hex-digit-tests: New file.
78031         * modules/unictype/property-hyphen-tests: New file.
78032         * modules/unictype/property-id-continue-tests: New file.
78033         * modules/unictype/property-id-start-tests: New file.
78034         * modules/unictype/property-ideographic-tests: New file.
78035         * modules/unictype/property-ids-binary-operator-tests: New file.
78036         * modules/unictype/property-ids-trinary-operator-tests: New file.
78037         * modules/unictype/property-ignorable-control-tests: New file.
78038         * modules/unictype/property-iso-control-tests: New file.
78039         * modules/unictype/property-join-control-tests: New file.
78040         * modules/unictype/property-left-of-pair-tests: New file.
78041         * modules/unictype/property-line-separator-tests: New file.
78042         * modules/unictype/property-logical-order-exception-tests: New file.
78043         * modules/unictype/property-lowercase-tests: New file.
78044         * modules/unictype/property-math-tests: New file.
78045         * modules/unictype/property-non-break-tests: New file.
78046         * modules/unictype/property-not-a-character-tests: New file.
78047         * modules/unictype/property-numeric-tests: New file.
78048         * modules/unictype/property-other-alphabetic-tests: New file.
78049         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
78050         * modules/unictype/property-other-grapheme-extend-tests: New file.
78051         * modules/unictype/property-other-id-continue-tests: New file.
78052         * modules/unictype/property-other-id-start-tests: New file.
78053         * modules/unictype/property-other-lowercase-tests: New file.
78054         * modules/unictype/property-other-math-tests: New file.
78055         * modules/unictype/property-other-uppercase-tests: New file.
78056         * modules/unictype/property-paired-punctuation-tests: New file.
78057         * modules/unictype/property-paragraph-separator-tests: New file.
78058         * modules/unictype/property-pattern-syntax-tests: New file.
78059         * modules/unictype/property-pattern-white-space-tests: New file.
78060         * modules/unictype/property-private-use-tests: New file.
78061         * modules/unictype/property-punctuation-tests: New file.
78062         * modules/unictype/property-quotation-mark-tests: New file.
78063         * modules/unictype/property-radical-tests: New file.
78064         * modules/unictype/property-sentence-terminal-tests: New file.
78065         * modules/unictype/property-soft-dotted-tests: New file.
78066         * modules/unictype/property-space-tests: New file.
78067         * modules/unictype/property-terminal-punctuation-tests: New file.
78068         * modules/unictype/property-test-tests: New file.
78069         * modules/unictype/property-titlecase-tests: New file.
78070         * modules/unictype/property-unassigned-code-value-tests: New file.
78071         * modules/unictype/property-unified-ideograph-tests: New file.
78072         * modules/unictype/property-uppercase-tests: New file.
78073         * modules/unictype/property-variation-selector-tests: New file.
78074         * modules/unictype/property-white-space-tests: New file.
78075         * modules/unictype/property-xid-continue-tests: New file.
78076         * modules/unictype/property-xid-start-tests: New file.
78077         * modules/unictype/property-zero-width-tests: New file.
78078         * modules/unictype/scripts-tests: New file.
78079         * modules/unictype/syntax-c-ident-tests: New file.
78080         * modules/unictype/syntax-c-whitespace-tests: New file.
78081         * modules/unictype/syntax-java-ident-tests: New file.
78082         * modules/unictype/syntax-java-whitespace-tests: New file.
78083         * tests/unictype/test-bidi_byname.c: New file.
78084         * tests/unictype/test-bidi_name.c: New file.
78085         * tests/unictype/test-bidi_of.c: New file.
78086         * tests/unictype/test-bidi_test.c: New file.
78087         * tests/unictype/test-block_list.c: New file.
78088         * tests/unictype/test-block_of.c: New file.
78089         * tests/unictype/test-block_test.c: New file.
78090         * tests/unictype/test-categ_and.c: New file.
78091         * tests/unictype/test-categ_and_not.c: New file.
78092         * tests/unictype/test-categ_byname.c: New file.
78093         * tests/unictype/test-categ_name.c: New file.
78094         * tests/unictype/test-categ_none.c: New file.
78095         * tests/unictype/test-categ_of.c: New file.
78096         * tests/unictype/test-categ_or.c: New file.
78097         * tests/unictype/test-categ_test_withtable.c: New file.
78098         * tests/unictype/test-combining.c: New file.
78099         * tests/unictype/test-decdigit.c: New file.
78100         * tests/unictype/test-digit.c: New file.
78101         * tests/unictype/test-mirror.c: New file.
78102         * tests/unictype/test-numeric.c: New file.
78103         * tests/unictype/test-pr_byname.c: New file.
78104         * tests/unictype/test-pr_test.c: New file.
78105         * tests/unictype/test-predicate-part1.h: New file.
78106         * tests/unictype/test-predicate-part2.h: New file.
78107         * tests/unictype/test-scripts.c: New file.
78108         * tests/unictype/test-sy_c_ident.c: New file.
78109         * tests/unictype/test-sy_java_ident.c: New file.
78111         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
78112         for Unicode 5.0.0.
78113         * tests/unictype/test-categ_Cc.c: Likewise.
78114         * tests/unictype/test-categ_Cf.c: Likewise.
78115         * tests/unictype/test-categ_Cn.c: Likewise.
78116         * tests/unictype/test-categ_Co.c: Likewise.
78117         * tests/unictype/test-categ_Cs.c: Likewise.
78118         * tests/unictype/test-categ_L.c: Likewise.
78119         * tests/unictype/test-categ_Ll.c: Likewise.
78120         * tests/unictype/test-categ_Lm.c: Likewise.
78121         * tests/unictype/test-categ_Lo.c: Likewise.
78122         * tests/unictype/test-categ_Lt.c: Likewise.
78123         * tests/unictype/test-categ_Lu.c: Likewise.
78124         * tests/unictype/test-categ_M.c: Likewise.
78125         * tests/unictype/test-categ_Mc.c: Likewise.
78126         * tests/unictype/test-categ_Me.c: Likewise.
78127         * tests/unictype/test-categ_Mn.c: Likewise.
78128         * tests/unictype/test-categ_N.c: Likewise.
78129         * tests/unictype/test-categ_Nd.c: Likewise.
78130         * tests/unictype/test-categ_Nl.c: Likewise.
78131         * tests/unictype/test-categ_No.c: Likewise.
78132         * tests/unictype/test-categ_P.c: Likewise.
78133         * tests/unictype/test-categ_Pc.c: Likewise.
78134         * tests/unictype/test-categ_Pd.c: Likewise.
78135         * tests/unictype/test-categ_Pe.c: Likewise.
78136         * tests/unictype/test-categ_Pf.c: Likewise.
78137         * tests/unictype/test-categ_Pi.c: Likewise.
78138         * tests/unictype/test-categ_Po.c: Likewise.
78139         * tests/unictype/test-categ_Ps.c: Likewise.
78140         * tests/unictype/test-categ_S.c: Likewise.
78141         * tests/unictype/test-categ_Sc.c: Likewise.
78142         * tests/unictype/test-categ_Sk.c: Likewise.
78143         * tests/unictype/test-categ_Sm.c: Likewise.
78144         * tests/unictype/test-categ_So.c: Likewise.
78145         * tests/unictype/test-categ_Z.c: Likewise.
78146         * tests/unictype/test-categ_Zl.c: Likewise.
78147         * tests/unictype/test-categ_Zp.c: Likewise.
78148         * tests/unictype/test-categ_Zs.c: Likewise.
78149         * tests/unictype/test-ctype_alnum.c: Likewise.
78150         * tests/unictype/test-ctype_alpha.c: Likewise.
78151         * tests/unictype/test-ctype_blank.c: Likewise.
78152         * tests/unictype/test-ctype_cntrl.c: Likewise.
78153         * tests/unictype/test-ctype_digit.c: Likewise.
78154         * tests/unictype/test-ctype_graph.c: Likewise.
78155         * tests/unictype/test-ctype_lower.c: Likewise.
78156         * tests/unictype/test-ctype_print.c: Likewise.
78157         * tests/unictype/test-ctype_punct.c: Likewise.
78158         * tests/unictype/test-ctype_space.c: Likewise.
78159         * tests/unictype/test-ctype_upper.c: Likewise.
78160         * tests/unictype/test-ctype_xdigit.c: Likewise.
78161         * tests/unictype/test-decdigit.h: Likewise.
78162         * tests/unictype/test-digit.h: Likewise.
78163         * tests/unictype/test-numeric.h: Likewise.
78164         * tests/unictype/test-pr_alphabetic.c: Likewise.
78165         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
78166         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
78167         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
78168         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
78169         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
78170         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
78171         * tests/unictype/test-pr_bidi_control.c: Likewise.
78172         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
78173         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
78174         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
78175         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
78176         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
78177         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
78178         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
78179         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
78180         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
78181         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
78182         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
78183         * tests/unictype/test-pr_combining.c: Likewise.
78184         * tests/unictype/test-pr_composite.c: Likewise.
78185         * tests/unictype/test-pr_currency_symbol.c: Likewise.
78186         * tests/unictype/test-pr_dash.c: Likewise.
78187         * tests/unictype/test-pr_decimal_digit.c: Likewise.
78188         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
78189         * tests/unictype/test-pr_deprecated.c: Likewise.
78190         * tests/unictype/test-pr_diacritic.c: Likewise.
78191         * tests/unictype/test-pr_extender.c: Likewise.
78192         * tests/unictype/test-pr_format_control.c: Likewise.
78193         * tests/unictype/test-pr_grapheme_base.c: Likewise.
78194         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
78195         * tests/unictype/test-pr_grapheme_link.c: Likewise.
78196         * tests/unictype/test-pr_hex_digit.c: Likewise.
78197         * tests/unictype/test-pr_hyphen.c: Likewise.
78198         * tests/unictype/test-pr_id_continue.c: Likewise.
78199         * tests/unictype/test-pr_id_start.c: Likewise.
78200         * tests/unictype/test-pr_ideographic.c: Likewise.
78201         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
78202         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
78203         * tests/unictype/test-pr_ignorable_control.c: Likewise.
78204         * tests/unictype/test-pr_iso_control.c: Likewise.
78205         * tests/unictype/test-pr_join_control.c: Likewise.
78206         * tests/unictype/test-pr_left_of_pair.c: Likewise.
78207         * tests/unictype/test-pr_line_separator.c: Likewise.
78208         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
78209         * tests/unictype/test-pr_lowercase.c: Likewise.
78210         * tests/unictype/test-pr_math.c: Likewise.
78211         * tests/unictype/test-pr_non_break.c: Likewise.
78212         * tests/unictype/test-pr_not_a_character.c: Likewise.
78213         * tests/unictype/test-pr_numeric.c: Likewise.
78214         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
78215         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
78216         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
78217         * tests/unictype/test-pr_other_id_continue.c: Likewise.
78218         * tests/unictype/test-pr_other_id_start.c: Likewise.
78219         * tests/unictype/test-pr_other_lowercase.c: Likewise.
78220         * tests/unictype/test-pr_other_math.c: Likewise.
78221         * tests/unictype/test-pr_other_uppercase.c: Likewise.
78222         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
78223         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
78224         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
78225         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
78226         * tests/unictype/test-pr_private_use.c: Likewise.
78227         * tests/unictype/test-pr_punctuation.c: Likewise.
78228         * tests/unictype/test-pr_quotation_mark.c: Likewise.
78229         * tests/unictype/test-pr_radical.c: Likewise.
78230         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
78231         * tests/unictype/test-pr_soft_dotted.c: Likewise.
78232         * tests/unictype/test-pr_space.c: Likewise.
78233         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
78234         * tests/unictype/test-pr_titlecase.c: Likewise.
78235         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
78236         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
78237         * tests/unictype/test-pr_uppercase.c: Likewise.
78238         * tests/unictype/test-pr_variation_selector.c: Likewise.
78239         * tests/unictype/test-pr_white_space.c: Likewise.
78240         * tests/unictype/test-pr_xid_continue.c: Likewise.
78241         * tests/unictype/test-pr_xid_start.c: Likewise.
78242         * tests/unictype/test-pr_zero_width.c: Likewise.
78243         * tests/unictype/test-sy_c_whitespace.c: Likewise.
78244         * tests/unictype/test-sy_java_whitespace.c: Likewise.
78246 2007-11-12  Bruno Haible  <bruno@clisp.org>
78248         Unicode character classification functions.
78249         * lib/unictype.h: New file.
78250         * modules/unictype/base: New file.
78251         * modules/unictype/category-L: New file.
78252         * modules/unictype/category-Lu: New file.
78253         * modules/unictype/category-Ll: New file.
78254         * modules/unictype/category-Lt: New file.
78255         * modules/unictype/category-Lm: New file.
78256         * modules/unictype/category-Lo: New file.
78257         * modules/unictype/category-M: New file.
78258         * modules/unictype/category-Mn: New file.
78259         * modules/unictype/category-Mc: New file.
78260         * modules/unictype/category-Me: New file.
78261         * modules/unictype/category-N: New file.
78262         * modules/unictype/category-Nd: New file.
78263         * modules/unictype/category-Nl: New file.
78264         * modules/unictype/category-No: New file.
78265         * modules/unictype/category-P: New file.
78266         * modules/unictype/category-Pc: New file.
78267         * modules/unictype/category-Pd: New file.
78268         * modules/unictype/category-Ps: New file.
78269         * modules/unictype/category-Pe: New file.
78270         * modules/unictype/category-Pi: New file.
78271         * modules/unictype/category-Pf: New file.
78272         * modules/unictype/category-Po: New file.
78273         * modules/unictype/category-S: New file.
78274         * modules/unictype/category-Sm: New file.
78275         * modules/unictype/category-Sc: New file.
78276         * modules/unictype/category-Sk: New file.
78277         * modules/unictype/category-So: New file.
78278         * modules/unictype/category-Z: New file.
78279         * modules/unictype/category-Zs: New file.
78280         * modules/unictype/category-Zl: New file.
78281         * modules/unictype/category-Zp: New file.
78282         * modules/unictype/category-C: New file.
78283         * modules/unictype/category-Cc: New file.
78284         * modules/unictype/category-Cf: New file.
78285         * modules/unictype/category-Cs: New file.
78286         * modules/unictype/category-Co: New file.
78287         * modules/unictype/category-Cn: New file.
78288         * modules/unictype/category-or: New file.
78289         * modules/unictype/category-of: New file.
78290         * modules/unictype/category-test: New file.
78291         * modules/unictype/category-test-withtable: New file.
78292         * modules/unictype/category-byname: New file.
78293         * modules/unictype/category-none: New file.
78294         * modules/unictype/category-and: New file.
78295         * modules/unictype/category-and-not: New file.
78296         * modules/unictype/category-name: New file.
78297         * modules/unictype/combining-class: New file.
78298         * modules/unictype/category-all: New file.
78299         * modules/unictype/bidicategory-all: New file.
78300         * modules/unictype/bidicategory-byname: New file.
78301         * modules/unictype/bidicategory-name: New file.
78302         * modules/unictype/bidicategory-of: New file.
78303         * modules/unictype/bidicategory-test: New file.
78304         * modules/unictype/decimal-digit: New file.
78305         * modules/unictype/digit: New file.
78306         * modules/unictype/numeric: New file.
78307         * modules/unictype/mirror: New file.
78308         * modules/unictype/property-white-space: New file.
78309         * modules/unictype/property-alphabetic: New file.
78310         * modules/unictype/property-other-alphabetic: New file.
78311         * modules/unictype/property-not-a-character: New file.
78312         * modules/unictype/property-default-ignorable-code-point: New file.
78313         * modules/unictype/property-other-default-ignorable-code-point: New
78314         file.
78315         * modules/unictype/property-deprecated: New file.
78316         * modules/unictype/property-logical-order-exception: New file.
78317         * modules/unictype/property-variation-selector: New file.
78318         * modules/unictype/property-private-use: New file.
78319         * modules/unictype/property-unassigned-code-value: New file.
78320         * modules/unictype/property-uppercase: New file.
78321         * modules/unictype/property-other-uppercase: New file.
78322         * modules/unictype/property-lowercase: New file.
78323         * modules/unictype/property-other-lowercase: New file.
78324         * modules/unictype/property-titlecase: New file.
78325         * modules/unictype/property-soft-dotted: New file.
78326         * modules/unictype/property-id-start: New file.
78327         * modules/unictype/property-other-id-start: New file.
78328         * modules/unictype/property-id-continue: New file.
78329         * modules/unictype/property-other-id-continue: New file.
78330         * modules/unictype/property-xid-start: New file.
78331         * modules/unictype/property-xid-continue: New file.
78332         * modules/unictype/property-pattern-white-space: New file.
78333         * modules/unictype/property-pattern-syntax: New file.
78334         * modules/unictype/property-join-control: New file.
78335         * modules/unictype/property-grapheme-base: New file.
78336         * modules/unictype/property-grapheme-extend: New file.
78337         * modules/unictype/property-other-grapheme-extend: New file.
78338         * modules/unictype/property-grapheme-link: New file.
78339         * modules/unictype/property-bidi-control: New file.
78340         * modules/unictype/property-bidi-left-to-right: New file.
78341         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
78342         * modules/unictype/property-bidi-arabic-right-to-left: New file.
78343         * modules/unictype/property-bidi-european-digit: New file.
78344         * modules/unictype/property-bidi-eur-num-separator: New file.
78345         * modules/unictype/property-bidi-eur-num-terminator: New file.
78346         * modules/unictype/property-bidi-arabic-digit: New file.
78347         * modules/unictype/property-bidi-common-separator: New file.
78348         * modules/unictype/property-bidi-block-separator: New file.
78349         * modules/unictype/property-bidi-segment-separator: New file.
78350         * modules/unictype/property-bidi-whitespace: New file.
78351         * modules/unictype/property-bidi-non-spacing-mark: New file.
78352         * modules/unictype/property-bidi-boundary-neutral: New file.
78353         * modules/unictype/property-bidi-pdf: New file.
78354         * modules/unictype/property-bidi-embedding-or-override: New file.
78355         * modules/unictype/property-bidi-other-neutral: New file.
78356         * modules/unictype/property-hex-digit: New file.
78357         * modules/unictype/property-ascii-hex-digit: New file.
78358         * modules/unictype/property-ideographic: New file.
78359         * modules/unictype/property-unified-ideograph: New file.
78360         * modules/unictype/property-radical: New file.
78361         * modules/unictype/property-ids-binary-operator: New file.
78362         * modules/unictype/property-ids-trinary-operator: New file.
78363         * modules/unictype/property-zero-width: New file.
78364         * modules/unictype/property-space: New file.
78365         * modules/unictype/property-non-break: New file.
78366         * modules/unictype/property-iso-control: New file.
78367         * modules/unictype/property-format-control: New file.
78368         * modules/unictype/property-dash: New file.
78369         * modules/unictype/property-hyphen: New file.
78370         * modules/unictype/property-punctuation: New file.
78371         * modules/unictype/property-line-separator: New file.
78372         * modules/unictype/property-paragraph-separator: New file.
78373         * modules/unictype/property-quotation-mark: New file.
78374         * modules/unictype/property-sentence-terminal: New file.
78375         * modules/unictype/property-terminal-punctuation: New file.
78376         * modules/unictype/property-currency-symbol: New file.
78377         * modules/unictype/property-math: New file.
78378         * modules/unictype/property-other-math: New file.
78379         * modules/unictype/property-paired-punctuation: New file.
78380         * modules/unictype/property-left-of-pair: New file.
78381         * modules/unictype/property-combining: New file.
78382         * modules/unictype/property-composite: New file.
78383         * modules/unictype/property-decimal-digit: New file.
78384         * modules/unictype/property-numeric: New file.
78385         * modules/unictype/property-diacritic: New file.
78386         * modules/unictype/property-extender: New file.
78387         * modules/unictype/property-ignorable-control: New file.
78388         * modules/unictype/property-test: New file.
78389         * modules/unictype/property-byname: New file.
78390         * modules/unictype/property-all: New file.
78391         * modules/unictype/scripts: New file.
78392         * modules/unictype/scripts-all: New file.
78393         * modules/unictype/block-of: New file.
78394         * modules/unictype/block-test: New file.
78395         * modules/unictype/block-list: New file.
78396         * modules/unictype/block-all: New file.
78397         * modules/unictype/syntax-c-whitespace: New file.
78398         * modules/unictype/syntax-java-whitespace: New file.
78399         * modules/unictype/syntax-c-ident: New file.
78400         * modules/unictype/syntax-java-ident: New file.
78401         * modules/unictype/ctype-alnum: New file.
78402         * modules/unictype/ctype-alpha: New file.
78403         * modules/unictype/ctype-cntrl: New file.
78404         * modules/unictype/ctype-digit: New file.
78405         * modules/unictype/ctype-graph: New file.
78406         * modules/unictype/ctype-lower: New file.
78407         * modules/unictype/ctype-print: New file.
78408         * modules/unictype/ctype-punct: New file.
78409         * modules/unictype/ctype-space: New file.
78410         * modules/unictype/ctype-upper: New file.
78411         * modules/unictype/ctype-xdigit: New file.
78412         * modules/unictype/ctype-blank: New file.
78413         * lib/unictype/bidi_byname.c: New file.
78414         * lib/unictype/bidi_name.c: New file.
78415         * lib/unictype/bidi_of.c: New file.
78416         * lib/unictype/bidi_test.c: New file.
78417         * lib/unictype/bitmap.h: New file.
78418         * lib/unictype/block_test.c: New file.
78419         * lib/unictype/blocks.c: New file.
78420         * lib/unictype/categ_C.c: New file.
78421         * lib/unictype/categ_Cc.c: New file.
78422         * lib/unictype/categ_Cf.c: New file.
78423         * lib/unictype/categ_Cn.c: New file.
78424         * lib/unictype/categ_Co.c: New file.
78425         * lib/unictype/categ_Cs.c: New file.
78426         * lib/unictype/categ_L.c: New file.
78427         * lib/unictype/categ_Ll.c: New file.
78428         * lib/unictype/categ_Lm.c: New file.
78429         * lib/unictype/categ_Lo.c: New file.
78430         * lib/unictype/categ_Lt.c: New file.
78431         * lib/unictype/categ_Lu.c: New file.
78432         * lib/unictype/categ_M.c: New file.
78433         * lib/unictype/categ_Mc.c: New file.
78434         * lib/unictype/categ_Me.c: New file.
78435         * lib/unictype/categ_Mn.c: New file.
78436         * lib/unictype/categ_N.c: New file.
78437         * lib/unictype/categ_Nd.c: New file.
78438         * lib/unictype/categ_Nl.c: New file.
78439         * lib/unictype/categ_No.c: New file.
78440         * lib/unictype/categ_P.c: New file.
78441         * lib/unictype/categ_Pc.c: New file.
78442         * lib/unictype/categ_Pd.c: New file.
78443         * lib/unictype/categ_Pe.c: New file.
78444         * lib/unictype/categ_Pf.c: New file.
78445         * lib/unictype/categ_Pi.c: New file.
78446         * lib/unictype/categ_Po.c: New file.
78447         * lib/unictype/categ_Ps.c: New file.
78448         * lib/unictype/categ_S.c: New file.
78449         * lib/unictype/categ_Sc.c: New file.
78450         * lib/unictype/categ_Sk.c: New file.
78451         * lib/unictype/categ_Sm.c: New file.
78452         * lib/unictype/categ_So.c: New file.
78453         * lib/unictype/categ_Z.c: New file.
78454         * lib/unictype/categ_Zl.c: New file.
78455         * lib/unictype/categ_Zp.c: New file.
78456         * lib/unictype/categ_Zs.c: New file.
78457         * lib/unictype/categ_and.c: New file.
78458         * lib/unictype/categ_and_not.c: New file.
78459         * lib/unictype/categ_byname.c: New file.
78460         * lib/unictype/categ_name.c: New file.
78461         * lib/unictype/categ_none.c: New file.
78462         * lib/unictype/categ_of.c: New file.
78463         * lib/unictype/categ_or.c: New file.
78464         * lib/unictype/categ_test.c: New file.
78465         * lib/unictype/combining.c: New file.
78466         * lib/unictype/ctype_alnum.c: New file.
78467         * lib/unictype/ctype_alpha.c: New file.
78468         * lib/unictype/ctype_blank.c: New file.
78469         * lib/unictype/ctype_cntrl.c: New file.
78470         * lib/unictype/ctype_digit.c: New file.
78471         * lib/unictype/ctype_graph.c: New file.
78472         * lib/unictype/ctype_lower.c: New file.
78473         * lib/unictype/ctype_print.c: New file.
78474         * lib/unictype/ctype_punct.c: New file.
78475         * lib/unictype/ctype_space.c: New file.
78476         * lib/unictype/ctype_upper.c: New file.
78477         * lib/unictype/ctype_xdigit.c: New file.
78478         * lib/unictype/decdigit.c: New file.
78479         * lib/unictype/digit.c: New file.
78480         * lib/unictype/identsyntaxmap.h: New file.
78481         * lib/unictype/mirror.c: New file.
78482         * lib/unictype/numeric.c: New file.
78483         * lib/unictype/pr_alphabetic.c: New file.
78484         * lib/unictype/pr_ascii_hex_digit.c: New file.
78485         * lib/unictype/pr_bidi_arabic_digit.c: New file.
78486         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
78487         * lib/unictype/pr_bidi_block_separator.c: New file.
78488         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
78489         * lib/unictype/pr_bidi_common_separator.c: New file.
78490         * lib/unictype/pr_bidi_control.c: New file.
78491         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
78492         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
78493         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
78494         * lib/unictype/pr_bidi_european_digit.c: New file.
78495         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
78496         * lib/unictype/pr_bidi_left_to_right.c: New file.
78497         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
78498         * lib/unictype/pr_bidi_other_neutral.c: New file.
78499         * lib/unictype/pr_bidi_pdf.c: New file.
78500         * lib/unictype/pr_bidi_segment_separator.c: New file.
78501         * lib/unictype/pr_bidi_whitespace.c: New file.
78502         * lib/unictype/pr_byname.c: New file.
78503         * lib/unictype/pr_byname.gperf: New file.
78504         * lib/unictype/pr_combining.c: New file.
78505         * lib/unictype/pr_composite.c: New file.
78506         * lib/unictype/pr_currency_symbol.c: New file.
78507         * lib/unictype/pr_dash.c: New file.
78508         * lib/unictype/pr_decimal_digit.c: New file.
78509         * lib/unictype/pr_default_ignorable_code_point.c: New file.
78510         * lib/unictype/pr_deprecated.c: New file.
78511         * lib/unictype/pr_diacritic.c: New file.
78512         * lib/unictype/pr_extender.c: New file.
78513         * lib/unictype/pr_format_control.c: New file.
78514         * lib/unictype/pr_grapheme_base.c: New file.
78515         * lib/unictype/pr_grapheme_extend.c: New file.
78516         * lib/unictype/pr_grapheme_link.c: New file.
78517         * lib/unictype/pr_hex_digit.c: New file.
78518         * lib/unictype/pr_hyphen.c: New file.
78519         * lib/unictype/pr_id_continue.c: New file.
78520         * lib/unictype/pr_id_start.c: New file.
78521         * lib/unictype/pr_ideographic.c: New file.
78522         * lib/unictype/pr_ids_binary_operator.c: New file.
78523         * lib/unictype/pr_ids_trinary_operator.c: New file.
78524         * lib/unictype/pr_ignorable_control.c: New file.
78525         * lib/unictype/pr_iso_control.c: New file.
78526         * lib/unictype/pr_join_control.c: New file.
78527         * lib/unictype/pr_left_of_pair.c: New file.
78528         * lib/unictype/pr_line_separator.c: New file.
78529         * lib/unictype/pr_logical_order_exception.c: New file.
78530         * lib/unictype/pr_lowercase.c: New file.
78531         * lib/unictype/pr_math.c: New file.
78532         * lib/unictype/pr_non_break.c: New file.
78533         * lib/unictype/pr_not_a_character.c: New file.
78534         * lib/unictype/pr_numeric.c: New file.
78535         * lib/unictype/pr_other_alphabetic.c: New file.
78536         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
78537         * lib/unictype/pr_other_grapheme_extend.c: New file.
78538         * lib/unictype/pr_other_id_continue.c: New file.
78539         * lib/unictype/pr_other_id_start.c: New file.
78540         * lib/unictype/pr_other_lowercase.c: New file.
78541         * lib/unictype/pr_other_math.c: New file.
78542         * lib/unictype/pr_other_uppercase.c: New file.
78543         * lib/unictype/pr_paired_punctuation.c: New file.
78544         * lib/unictype/pr_paragraph_separator.c: New file.
78545         * lib/unictype/pr_pattern_syntax.c: New file.
78546         * lib/unictype/pr_pattern_white_space.c: New file.
78547         * lib/unictype/pr_private_use.c: New file.
78548         * lib/unictype/pr_punctuation.c: New file.
78549         * lib/unictype/pr_quotation_mark.c: New file.
78550         * lib/unictype/pr_radical.c: New file.
78551         * lib/unictype/pr_sentence_terminal.c: New file.
78552         * lib/unictype/pr_soft_dotted.c: New file.
78553         * lib/unictype/pr_space.c: New file.
78554         * lib/unictype/pr_terminal_punctuation.c: New file.
78555         * lib/unictype/pr_test.c: New file.
78556         * lib/unictype/pr_titlecase.c: New file.
78557         * lib/unictype/pr_unassigned_code_value.c: New file.
78558         * lib/unictype/pr_unified_ideograph.c: New file.
78559         * lib/unictype/pr_uppercase.c: New file.
78560         * lib/unictype/pr_variation_selector.c: New file.
78561         * lib/unictype/pr_white_space.c: New file.
78562         * lib/unictype/pr_xid_continue.c: New file.
78563         * lib/unictype/pr_xid_start.c: New file.
78564         * lib/unictype/pr_zero_width.c: New file.
78565         * lib/unictype/scripts.c: New file.
78566         * lib/unictype/sy_c_ident.c: New file.
78567         * lib/unictype/sy_c_whitespace.c: New file.
78568         * lib/unictype/sy_java_ident.c: New file.
78569         * lib/unictype/sy_java_whitespace.c: New file.
78571         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
78572         Unicode 5.0.0.
78573         * lib/unictype/blocks.h: Likewise.
78574         * lib/unictype/categ_C.h: Likewise.
78575         * lib/unictype/categ_Cc.h: Likewise.
78576         * lib/unictype/categ_Cf.h: Likewise.
78577         * lib/unictype/categ_Cn.h: Likewise.
78578         * lib/unictype/categ_Co.h: Likewise.
78579         * lib/unictype/categ_Cs.h: Likewise.
78580         * lib/unictype/categ_L.h: Likewise.
78581         * lib/unictype/categ_Ll.h: Likewise.
78582         * lib/unictype/categ_Lm.h: Likewise.
78583         * lib/unictype/categ_Lo.h: Likewise.
78584         * lib/unictype/categ_Lt.h: Likewise.
78585         * lib/unictype/categ_Lu.h: Likewise.
78586         * lib/unictype/categ_M.h: Likewise.
78587         * lib/unictype/categ_Mc.h: Likewise.
78588         * lib/unictype/categ_Me.h: Likewise.
78589         * lib/unictype/categ_Mn.h: Likewise.
78590         * lib/unictype/categ_N.h: Likewise.
78591         * lib/unictype/categ_Nd.h: Likewise.
78592         * lib/unictype/categ_Nl.h: Likewise.
78593         * lib/unictype/categ_No.h: Likewise.
78594         * lib/unictype/categ_P.h: Likewise.
78595         * lib/unictype/categ_Pc.h: Likewise.
78596         * lib/unictype/categ_Pd.h: Likewise.
78597         * lib/unictype/categ_Pe.h: Likewise.
78598         * lib/unictype/categ_Pf.h: Likewise.
78599         * lib/unictype/categ_Pi.h: Likewise.
78600         * lib/unictype/categ_Po.h: Likewise.
78601         * lib/unictype/categ_Ps.h: Likewise.
78602         * lib/unictype/categ_S.h: Likewise.
78603         * lib/unictype/categ_Sc.h: Likewise.
78604         * lib/unictype/categ_Sk.h: Likewise.
78605         * lib/unictype/categ_Sm.h: Likewise.
78606         * lib/unictype/categ_So.h: Likewise.
78607         * lib/unictype/categ_Z.h: Likewise.
78608         * lib/unictype/categ_Zl.h: Likewise.
78609         * lib/unictype/categ_Zp.h: Likewise.
78610         * lib/unictype/categ_Zs.h: Likewise.
78611         * lib/unictype/categ_of.h: Likewise.
78612         * lib/unictype/combining.h: Likewise.
78613         * lib/unictype/ctype_alnum.h: Likewise.
78614         * lib/unictype/ctype_alpha.h: Likewise.
78615         * lib/unictype/ctype_blank.h: Likewise.
78616         * lib/unictype/ctype_cntrl.h: Likewise.
78617         * lib/unictype/ctype_digit.h: Likewise.
78618         * lib/unictype/ctype_graph.h: Likewise.
78619         * lib/unictype/ctype_lower.h: Likewise.
78620         * lib/unictype/ctype_print.h: Likewise.
78621         * lib/unictype/ctype_punct.h: Likewise.
78622         * lib/unictype/ctype_space.h: Likewise.
78623         * lib/unictype/ctype_upper.h: Likewise.
78624         * lib/unictype/ctype_xdigit.h: Likewise.
78625         * lib/unictype/decdigit.h: Likewise.
78626         * lib/unictype/digit.h: Likewise.
78627         * lib/unictype/mirror.h: Likewise.
78628         * lib/unictype/numeric.h: Likewise.
78629         * lib/unictype/pr_alphabetic.h: Likewise.
78630         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
78631         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
78632         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
78633         * lib/unictype/pr_bidi_block_separator.h: Likewise.
78634         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
78635         * lib/unictype/pr_bidi_common_separator.h: Likewise.
78636         * lib/unictype/pr_bidi_control.h: Likewise.
78637         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
78638         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
78639         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
78640         * lib/unictype/pr_bidi_european_digit.h: Likewise.
78641         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
78642         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
78643         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
78644         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
78645         * lib/unictype/pr_bidi_pdf.h: Likewise.
78646         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
78647         * lib/unictype/pr_bidi_whitespace.h: Likewise.
78648         * lib/unictype/pr_combining.h: Likewise.
78649         * lib/unictype/pr_composite.h: Likewise.
78650         * lib/unictype/pr_currency_symbol.h: Likewise.
78651         * lib/unictype/pr_dash.h: Likewise.
78652         * lib/unictype/pr_decimal_digit.h: Likewise.
78653         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
78654         * lib/unictype/pr_deprecated.h: Likewise.
78655         * lib/unictype/pr_diacritic.h: Likewise.
78656         * lib/unictype/pr_extender.h: Likewise.
78657         * lib/unictype/pr_format_control.h: Likewise.
78658         * lib/unictype/pr_grapheme_base.h: Likewise.
78659         * lib/unictype/pr_grapheme_extend.h: Likewise.
78660         * lib/unictype/pr_grapheme_link.h: Likewise.
78661         * lib/unictype/pr_hex_digit.h: Likewise.
78662         * lib/unictype/pr_hyphen.h: Likewise.
78663         * lib/unictype/pr_id_continue.h: Likewise.
78664         * lib/unictype/pr_id_start.h: Likewise.
78665         * lib/unictype/pr_ideographic.h: Likewise.
78666         * lib/unictype/pr_ids_binary_operator.h: Likewise.
78667         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
78668         * lib/unictype/pr_ignorable_control.h: Likewise.
78669         * lib/unictype/pr_iso_control.h: Likewise.
78670         * lib/unictype/pr_join_control.h: Likewise.
78671         * lib/unictype/pr_left_of_pair.h: Likewise.
78672         * lib/unictype/pr_line_separator.h: Likewise.
78673         * lib/unictype/pr_logical_order_exception.h: Likewise.
78674         * lib/unictype/pr_lowercase.h: Likewise.
78675         * lib/unictype/pr_math.h: Likewise.
78676         * lib/unictype/pr_non_break.h: Likewise.
78677         * lib/unictype/pr_not_a_character.h: Likewise.
78678         * lib/unictype/pr_numeric.h: Likewise.
78679         * lib/unictype/pr_other_alphabetic.h: Likewise.
78680         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
78681         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
78682         * lib/unictype/pr_other_id_continue.h: Likewise.
78683         * lib/unictype/pr_other_id_start.h: Likewise.
78684         * lib/unictype/pr_other_lowercase.h: Likewise.
78685         * lib/unictype/pr_other_math.h: Likewise.
78686         * lib/unictype/pr_other_uppercase.h: Likewise.
78687         * lib/unictype/pr_paired_punctuation.h: Likewise.
78688         * lib/unictype/pr_paragraph_separator.h: Likewise.
78689         * lib/unictype/pr_pattern_syntax.h: Likewise.
78690         * lib/unictype/pr_pattern_white_space.h: Likewise.
78691         * lib/unictype/pr_private_use.h: Likewise.
78692         * lib/unictype/pr_punctuation.h: Likewise.
78693         * lib/unictype/pr_quotation_mark.h: Likewise.
78694         * lib/unictype/pr_radical.h: Likewise.
78695         * lib/unictype/pr_sentence_terminal.h: Likewise.
78696         * lib/unictype/pr_soft_dotted.h: Likewise.
78697         * lib/unictype/pr_space.h: Likewise.
78698         * lib/unictype/pr_terminal_punctuation.h: Likewise.
78699         * lib/unictype/pr_titlecase.h: Likewise.
78700         * lib/unictype/pr_unassigned_code_value.h: Likewise.
78701         * lib/unictype/pr_unified_ideograph.h: Likewise.
78702         * lib/unictype/pr_uppercase.h: Likewise.
78703         * lib/unictype/pr_variation_selector.h: Likewise.
78704         * lib/unictype/pr_white_space.h: Likewise.
78705         * lib/unictype/pr_xid_continue.h: Likewise.
78706         * lib/unictype/pr_xid_start.h: Likewise.
78707         * lib/unictype/pr_zero_width.h: Likewise.
78708         * lib/unictype/scripts.h: Likewise.
78709         * lib/unictype/scripts_byname.gperf: Likewise.
78710         * lib/unictype/sy_c_ident.h: Likewise.
78711         * lib/unictype/sy_c_whitespace.h: Likewise.
78712         * lib/unictype/sy_java_ident.h: Likewise.
78713         * lib/unictype/sy_java_whitespace.h: Likewise.
78715         * lib/unictype/Makefile: New file.
78716         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
78717         glibc.
78718         * lib/unictype/3level.h: New file, copied from glibc.
78719         * lib/unictype/3levelbit.h: New file.
78721 2007-11-11  Bruno Haible  <bruno@clisp.org>
78723         * modules/gperf: New file.
78724         * modules/iconv_open (Depends-on): Add it.
78725         (Makefile.am): Remove the GPERF definition.
78727 2007-11-11  Bruno Haible  <bruno@clisp.org>
78729         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
78730         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
78732 2007-11-11  Bruno Haible  <bruno@clisp.org>
78734         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
78735         (usage): Remove function.
78737 2007-11-11  Bruno Haible  <bruno@clisp.org>
78739         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
78740         gl_FUNC_CEILF_LIBS.
78741         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
78742         gl_FUNC_CEIL_LIBS.
78743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
78744         gl_FUNC_CEILL_LIBS.
78745         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
78746         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
78747         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
78749 2007-11-11  Bruno Haible  <bruno@clisp.org>
78751         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
78752         roundf were declared but do not exist on functions.
78753         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
78754         roundl were declared but do not exist on functions.
78755         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
78756         HAVE_FLOORL_AND_CEILL, respectively.
78757         Needed for Sun C on Solaris 10.
78759 2007-11-11  Bruno Haible  <bruno@clisp.org>
78761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
78762         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
78763         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
78764         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
78765         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
78766         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
78767         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
78768         HAVE_DECL_ROUNDF.
78769         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
78770         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
78771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
78772         of HAVE_DECL_ROUND*.
78773         * modules/math (Makefile.am): Update.
78775 2007-11-10  Bruno Haible  <bruno@clisp.org>
78777         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
78778         ptrdiff_t as m4/intl.m4.
78780 2007-11-10  Jim Meyering  <meyering@redhat.com>
78782         Avoid link failure for the argmatch test.
78783         * tests/test-argmatch.c (usage): Define function to avoid a link
78784         failure: argmatch_die requires a usage function.
78786 2007-11-09  Bruno Haible  <bruno@clisp.org>
78788         * doc/functions/snprintf.texi: Mention BeOS deficiency.
78789         * doc/functions/vsnprintf.texi: Likewise.
78790         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
78791         with a size argument < 2.
78793 2007-11-09  Bruno Haible  <bruno@clisp.org>
78795         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
78796         buffer. Fixes an inefficiency introduced on 2007-11-03.
78798 2007-11-09  Bruno Haible  <bruno@clisp.org>
78800         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
78801         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
78803 2007-11-08  Jim Meyering  <meyering@redhat.com>
78805         Change cache variable name prefix "jm_" to "gl_" everywhere.
78806         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
78807         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
78808         * m4/uptime.m4: s/gl_/jm_/
78810 2007-11-07  Bruno Haible  <bruno@clisp.org>
78812         Update to GNU gettext 0.17.
78813         * m4/intl.m4: Update to GNU gettext 0.17.
78814         * m4/po.m4: Likewise.
78815         * modules/gettext (Files): Remove m4/ulonglong.m4.
78816         (configure.ac): Require gettext infrastructure from version 0.17.
78818 2007-11-06  Bruno Haible  <bruno@clisp.org>
78820         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
78821         symbolic values are not defined in a public header.
78822         * lib/freadable.c (freadable) [QNX]: Likewise.
78823         * lib/freadahead.c (freadahead) [QNX]: Likewise.
78824         * lib/freading.c (freading) [QNX]: Likewise.
78825         * lib/fseterr.c (fseterr) [QNX]: Likewise.
78826         * lib/fwritable.c (fwritable) [QNX]: Likewise.
78827         * lib/fwriting.c (fwriting) [QNX]: Likewise.
78828         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
78829         Reported by Alain Magloire.
78831         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
78833 2007-11-05  Bruno Haible  <bruno@clisp.org>
78835         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
78836         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
78837         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
78838         Reported by Eric Blake.
78840 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78841             Bruno Haible  <bruno@clisp.org>
78843         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
78844         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
78845         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
78846         (malloc): Undefine also before including <stdlib.h>.
78847         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
78848         Needed on OSF/1 4.0.
78850 2007-11-05  Jim Meyering  <meyering@redhat.com>
78852         git-version-gen: sync from coreutils.
78853         * build-aux/git-version-gen: Add comments.
78854         Change the first '-' to '.' in the snapshot version string,
78855         e.g., 6.9-377-08144 -> 6.9.377-08144
78856         Remove first parameter.
78857         Don't declare a version "-dirty" merely because a time
78858         stamp has changed.
78860 2007-11-04  Bruno Haible  <bruno@clisp.org>
78862         * lib/lock.h: Protect all macro definitions containing an 'if'
78863         statement through a "do { ... } while (0)".
78864         * lib/tls.h: Likewise.
78866 2007-11-04  Bruno Haible  <bruno@clisp.org>
78868         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
78870 2007-11-04  Bruno Haible  <bruno@clisp.org>
78872         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
78873         * modules/fprintf-posix (Depends-on): Add nocrash.
78874         * modules/snprintf-posix (Depends-on): Likewise.
78875         * modules/sprintf-posix (Depends-on): Likewise.
78876         * modules/vasnprintf-posix (Depends-on): Likewise.
78877         * modules/vasprintf-posix (Depends-on): Likewise.
78878         * modules/vfprintf-posix (Depends-on): Likewise.
78879         * modules/vsnprintf-posix (Depends-on): Likewise.
78880         * modules/vsprintf-posix (Depends-on): Likewise.
78881         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
78882         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78883         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78884         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78885         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78886         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78887         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78889 2007-11-04  Bruno Haible  <bruno@clisp.org>
78891         * modules/nocrash: New file.
78892         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
78893         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
78895 2007-11-04  Bruno Haible  <bruno@clisp.org>
78897         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
78898         precision handling.
78899         * tests/test-vasprintf-posix.c (test_function): Likewise.
78900         * tests/test-snprintf-posix.h (test_function): Likewise.
78901         * tests/test-sprintf-posix.h (test_function): Likewise.
78903         Fix *printf behaviour for large precisions on mingw and BeOS.
78904         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
78905         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
78906         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
78907         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78908         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78909         gl_PRINTF_PRECISION and test its result. Invoke
78910         gl_PREREQ_VASNPRINTF_PRECISION.
78911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78918         * doc/functions/fprintf.texi: Update.
78919         * doc/functions/printf.texi: Update.
78920         * doc/functions/snprintf.texi: Update.
78921         * doc/functions/sprintf.texi: Update.
78922         * doc/functions/vfprintf.texi: Update.
78923         * doc/functions/vprintf.texi: Update.
78924         * doc/functions/vsnprintf.texi: Update.
78925         * doc/functions/vsprintf.texi: Update.
78927 2007-11-04  Bruno Haible  <bruno@clisp.org>
78929         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
78931 2007-11-04  Bruno Haible  <bruno@clisp.org>
78933         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
78934         Reported by Sylvain Beucler <beuc@gnu.org>.
78936 2007-11-03  Bruno Haible  <bruno@clisp.org>
78938         * tests/test-fprintf-posix2.sh: New file.
78939         * tests/test-fprintf-posix2.c: New file.
78940         * modules/fprintf-posix-tests (Files): Add them.
78941         (TESTS): Add test-fprintf-posix2.sh.
78942         (configure.ac): Check for getrlimit and setrlimit.
78943         (check_PROGRAMS): Add test-fprintf-posix2.
78945         * tests/test-printf-posix2.sh: New file.
78946         * tests/test-printf-posix2.c: New file.
78947         * modules/printf-posix-tests (Files): Add them.
78948         (TESTS): Add test-printf-posix2.sh.
78949         (configure.ac): Check for getrlimit and setrlimit.
78950         (check_PROGRAMS): Add test-printf-posix2.
78952         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
78953         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
78954         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
78955         (decode_double): New function, copied from decode_long_double.
78956         (scale10_round_decimal_decoded): New function, extracted from
78957         scale10_round_decimal_long_double.
78958         (scale10_round_decimal_long_double): Use it.
78959         (scale10_round_decimal_double): New function.
78960         (floorlog10): New function.
78961         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
78962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
78963         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78965         gl_PRINTF_ENOMEM and test its result. Invoke
78966         gl_PREREQ_VASNPRINTF_ENOMEM.
78967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78974         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
78975         * modules/snprintf-posix (Depends-on): Likewise.
78976         * modules/sprintf-posix (Depends-on): Likewise.
78977         * modules/vasnprintf-posix (Depends-on): Likewise.
78978         * modules/vasprintf-posix (Depends-on): Likewise.
78979         * modules/vfprintf-posix (Depends-on): Likewise.
78980         * modules/vsnprintf-posix (Depends-on): Likewise.
78981         * modules/vsprintf-posix (Depends-on): Likewise.
78982         * doc/functions/fprintf.texi: Update.
78983         * doc/functions/printf.texi: Update.
78984         * doc/functions/snprintf.texi: Update.
78985         * doc/functions/sprintf.texi: Update.
78986         * doc/functions/vfprintf.texi: Update.
78987         * doc/functions/vprintf.texi: Update.
78988         * doc/functions/vsnprintf.texi: Update.
78989         * doc/functions/vsprintf.texi: Update.
78991 2007-11-03  Bruno Haible  <bruno@clisp.org>
78993         * modules/frexp-nolibm-tests: New file.
78995         * modules/frexp-nolibm: New file.
78996         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
78998 2007-11-03  Bruno Haible  <bruno@clisp.org>
79000         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
79001         value is C99 compliant.
79002         Needed for OSF/1 5.1.
79004 2007-11-03  Bruno Haible  <bruno@clisp.org>
79006         Fix out-of-memory handling of vasnprintf.
79007         * lib/printf-parse.c: Include <errno.h>.
79008         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
79009         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
79010         is already set.
79012 2007-11-02  Eric Blake  <ebb9@byu.net>
79014         Fix tests on cygwin.
79015         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
79017 2007-11-01  Bruno Haible  <bruno@clisp.org>
79019         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
79020         warning.
79021         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
79022         needed for POSIX compatibility.
79024 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79026         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
79027         for compatibility with GNU.
79029 2007-11-01  Bruno Haible  <bruno@clisp.org>
79031         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
79032         (putenv): Renamed from rpl_putenv. Change argument type from
79033         'const char *' to 'char *'.
79034         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
79035         of defining putenv in config.h, just set REPLACE_PUTENV.
79036         * modules/putenv (Depends-on): Add stdlib.
79037         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79038         (Include): Use <stdlib.h>.
79039         * lib/stdlib.in.h (putenv): New declaration.
79040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
79041         REPLACE_PUTENV.
79042         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
79043         REPLACE_PUTENV.
79044         Needed for MacOS X 10.5.0.
79045         Reported by Peter O'Gorman <peter@pogma.com>.
79047 2007-11-01  Jim Meyering  <meyering@redhat.com>
79049         Treat an empty date string exactly like "0".
79050         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
79051         if the remaining date string (to be parsed) is empty, use "0".
79052         Reported by Mischa Molhoek and discussed in this thread:
79053         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
79055 2007-10-31  Bruno Haible  <bruno@clisp.org>
79057         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
79058         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
79059         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
79060         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
79061         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
79062         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
79064 2007-10-31  Bruno Haible  <bruno@clisp.org>
79066         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
79067         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
79068         (AC_TYPE_LONG_LONG_INT): Use it.
79069         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
79070         it as well.
79071         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
79072         to m4/longlong.m4.
79073         * modules/stdint (Files): Remove m4/ulonglong.m4.
79074         * modules/strtoull (Files): Use m4/longlong.m4 instead of
79075         m4/ulonglong.m4.
79076         * modules/strtoumax (Files): Likewise.
79078 2007-10-30  Bruno Haible  <bruno@clisp.org>
79080         * modules/xvasprintf-posix: New file.
79081         Suggested by Eric Blake.
79083 2007-10-30  Bruno Haible  <bruno@clisp.org>
79085         * modules/xprintf-posix-tests: New file.
79086         * tests/test-xprintf-posix.sh: New file.
79087         * tests/test-xprintf-posix.c: New file.
79088         * tests/test-xfprintf-posix.c: New file.
79090         * modules/xprintf-posix: New file.
79092 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79094         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
79095         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
79096         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
79098 2007-10-29  Bruno Haible  <bruno@clisp.org>
79100         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
79101         contain the special marker '_cv_'.
79102         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
79103         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
79104         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
79105         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
79106         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
79107         Reported by Ralf Wildenhues.
79109 2007-10-29  Bruno Haible  <bruno@clisp.org>
79111         * gnulib-tool (func_import): When --lgpl is not specified, set
79112         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
79113         GPLv3.
79114         Reported by Simon Josefsson.
79116 2007-10-28  Bruno Haible  <bruno@clisp.org>
79118         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
79119         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
79120         HAVE_DECL_ISFINITE.
79121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
79122         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
79123         HAVE_DECL_ISFINITE.
79125 2007-10-28  Bruno Haible  <bruno@clisp.org>
79127         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
79128         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
79130 2007-10-28  Bruno Haible  <bruno@clisp.org>
79132         Fix link errors with Sun C 5.0 on Solaris 10.
79133         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
79134         function is declared but not present in the compiler's libm.
79135         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
79136         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
79137         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
79138         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
79139         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
79140         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
79141         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
79142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
79143         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
79144         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
79145         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
79146         HAVE_DECL_FLOORL.
79148 2007-10-28  Bruno Haible  <bruno@clisp.org>
79150         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
79151         gl_FUNC_FLOORL. Cache the result.
79152         (gl_FUNC_FLOORL): Use it.
79153         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
79154         gl_FUNC_CEILL. Cache the result.
79155         (gl_FUNC_CEILL): Use it.
79157         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
79158         gl_FUNC_FLOOR. Cache the result.
79159         (gl_FUNC_FLOOR): Use it.
79160         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
79161         gl_FUNC_CEIL. Cache the result.
79162         (gl_FUNC_CEIL): Use it.
79164         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
79165         gl_FUNC_FLOORF. Cache the result.
79166         (gl_FUNC_FLOORF): Use it.
79167         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
79168         gl_FUNC_CEILF. Cache the result.
79169         (gl_FUNC_CEILF): Use it.
79171 2007-10-28  Bruno Haible  <bruno@clisp.org>
79173         * gnulib-tool: Allow specifying the LGPL version number through
79174         --lgpl=2 or --lgpl=3.
79175         (func_usage): Document --lgpl with argument.
79176         Handle --lgpl=... arguments.
79177         (func_import): Recognize also gl_LGPL calls with an argument. When
79178         --lgpl=2 is used and the module's license is just LGPL, report an
79179         error. Set sed_transform_lib_file according to the lgpl variable. In
79180         the generated files, use --lgpl or gl_LGPL invocations with argument,
79181         if necessary.
79182         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
79183         an LGPv2+ license.
79184         * doc/gnulib-tool.texi (Modified imports): Update explanation of
79185         gl_LGPL macro.
79187 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79188             Bruno Haible  <bruno@clisp.org>
79190         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
79191         (u16_uctomb_aux): Likewise.
79192         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
79193         !HAVE_INLINE.
79194         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
79196 2007-10-28  Bruno Haible  <bruno@clisp.org>
79198         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
79199         Invoke AM_GETTEXT_OPTION if it exists.
79200         * modules/vasprintf: Likewise.
79201         * modules/verror: Likewise.
79202         * modules/xprintf: Likewise.
79203         * modules/xvasprintf: Likewise.
79205 2007-10-27  Ben Pfaff  <blp@gnu.org>
79207         * lib/math.in.h: Define isfinite macro and prototypes for
79208         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
79209         implementations.
79210         * m4/math_h.m4: New substitutions for isfinite module.
79211         * lib/isfinite.c: New file.
79212         * m4/isfinite.m4: New file.
79213         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
79214         * modules/isfinite: New file.
79215         * modules/isfinite-tests: New file.
79216         * tests/tests-isfinite.c: New file.
79217         * doc/functions/isfinite.texi: Mention isfinite module.
79218         * MODULES.html.sh: Mention new module.
79220 2007-10-27  Ben Pfaff  <blp@gnu.org>
79222         Ralf Wildenhues reported that Tru64 4.0D declares the round
79223         functions but does not have definitions.
79224         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
79225         cannot be found in any library, set the output variable to
79226         "missing" instead of "".
79227         * m4/round.m4: Also use our substitute if we cannot find round in
79228         any library, even if it is declared.
79229         * m4/roundf.m4: Likewise for roundf.
79230         * m4/roundl.m4: Likewise for roundl.
79231         * lib/math.in.h: Undefine roundf, round, roundl before defining
79232         their replacements, to allow for hypothetical systems where these
79233         may be defined as macros but not available in libraries.
79235 2007-10-27  Bruno Haible  <bruno@clisp.org>
79237         * doc/gnulib.texi: Invoke @firstparagraphindent.
79238         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
79239         changes in gnulib.
79240         (Source changes): New section.
79242 2007-10-26  Bruno Haible  <bruno@clisp.org>
79244         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
79245         borrowed from autoconf.
79247 2007-10-26  Bruno Haible  <bruno@clisp.org>
79249         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
79250         strerror returned the empty string. Needed on HP-UX 11.00.
79252 2007-10-24  Micah Cowan  <micah@cowan.name>
79254         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
79255         * build-aux/bootstrap: Remove support for now-unnecessary option,
79256         --cvs-user, and envvars CVS_USER, CVS_RSH.
79258 2007-10-24  Jim Meyering  <meyering@redhat.com>
79260         Avoid diagnostics from sha1sum when there is no cached checksum.
79261         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
79262         if the po.s1 file hasn't been created yet.
79264         * build-aux/bootstrap: Sync from coreutils:
79265         2007-10-24  Jim Meyering  <meyering@redhat.com>
79266         Get gnulib from the git repository, not from an obsolete cvs one.
79267         * build-aux/bootstrap: Suggestion from Micah Cowan.
79268         2007-10-04  Jim Meyering  <jim@meyering.net>
79269         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
79270         (update_po_files): Work also when there are no .po files in po/.
79272 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79274         * README: Append ".git" to git and cg examples.
79275         Problem reported by Benoit Sigoure.
79277 2007-10-23  Micah Cowan  <micah@cowan.name>
79279         * users.txt: Add wget.
79281 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79283         Fix linking of some unistdio tests on FreeBSD.
79284         * modules/unistdio/u16-vsnprintf-tests
79285         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
79286         * modules/unistdio/u16-vsprintf-tests
79287         (test_u16_vsnprintf1_LDADD): Likewise.
79288         * modules/unistdio/u32-vsnprintf-tests
79289         (test_u32_vsnprintf1_LDADD): Likewise.
79290         * modules/unistdio/u32-vsprintf-tests
79291         (test_u32_vsprintf1_LDADD): Likewise.
79292         * modules/unistdio/u8-vsnprintf-tests
79293         (test_u8_vsnprintf1_LDADD): Likewise.
79294         * modules/unistdio/u8-vsprintf-tests
79295         (test_u8_vsprintf1_LDADD): Likewise.
79296         * modules/unistdio/ulc-vsnprintf-tests
79297         (test_ulc_vsnprintf1_LDADD): Likewise.
79298         * modules/unistdio/ulc-vsprintf-tests
79299         (test_ulc_vsprintf1_LDADD): Likewise.
79301         Fix linking of some uniconv tests on FreeBSD.
79302         * modules/uniconv/u16-conv-from-enc-tests
79303         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
79304         * modules/uniconv/u16-conv-to-enc-tests
79305         (test_u16_conv_to_enc_LDADD): Likewise.
79306         * modules/uniconv/u16-strconv-from-enc-tests
79307         (test_u16_strconv_from_enc_LDADD): Likewise.
79308         * modules/uniconv/u16-strconv-to-enc-tests
79309         (test_u16_strconv_to_enc_LDADD): Likewise.
79310         * modules/uniconv/u32-conv-from-enc-tests
79311         (test_u32_conv_from_enc_LDADD): Likewise.
79312         * modules/uniconv/u32-conv-to-enc-tests
79313         (test_u32_conv_to_enc_LDADD): Likewise.
79314         * modules/uniconv/u32-strconv-from-enc-tests
79315         (test_u32_strconv_from_enc_LDADD): Likewise.
79316         * modules/uniconv/u32-strconv-to-enc-tests
79317         (test_u32_strconv_to_enc_LDADD): Likewise.
79318         * modules/uniconv/u8-conv-from-enc-tests
79319         (test_u8_conv_from_enc_LDADD): Likewise.
79320         * modules/uniconv/u8-conv-to-enc-tests
79321         (test_u8_conv_to_enc_LDADD): Likewise.
79322         * modules/uniconv/u8-strconv-from-enc-tests
79323         (test_u8_strconv_from_enc_LDADD): Likewise.
79324         * modules/uniconv/u8-strconv-to-enc-tests
79325         (test_u8_strconv_to_enc_LDADD): Likewise.
79327 2007-10-22  Bruno Haible  <bruno@clisp.org>
79329         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
79330         size.
79332 2007-10-22  Eric Blake  <ebb9@byu.net>
79334         Tweak x*printf documentation.
79335         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
79336         variable name and comments.
79337         Suggested by Bruno Haible.
79339 2007-10-22  Bruno Haible  <bruno@clisp.org>
79341         * lib/acl.c (copy_acl): Fix file name in comment.
79343 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79345         Fix Tru64 problem with stdbool.h.
79346         * lib/stdbool.in.h (false, true):
79347         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
79348         Don't declare as an enum in this situation; it runs afoul of Tru64.
79349         Problem reported by Steven M. Schweda in
79350         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
79352 2007-10-22  Eric Blake  <ebb9@byu.net>
79354         Also wrap vf?printf.
79355         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
79356         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
79357         (xvprintf, xvfprintf): New functions.
79359 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79361         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
79362         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
79364         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
79365         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
79367 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79369         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
79370         by Bruno Haible.
79372 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79374         * lib/getloadavg.c
79375         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
79376         Undef `sys' after including sys/table.h, for Tru64 4.0D.
79378         * tests/test-i-ring.c: Work for C89.
79380 2007-10-22  Bruno Haible  <bruno@clisp.org>
79382         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
79383         -1u, in preprocessor expression, so that we don't test for the bug
79384         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
79385         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
79387 2007-10-22  Eric Blake  <ebb9@byu.net>
79389         * tests/test-yesno.sh: Silence stderr during test.
79391 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79393         * modules/crypto/gc-camellia: New file.
79395         * m4/gc-camellia.m4: New file.
79397         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
79399         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
79401 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79403         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
79404         --help to stdout.  Reported by sms@antinode.org (Steven
79405         M. Schweda).
79407 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79409         * users.txt: Fix link to libksba.
79411 2007-10-21  Ben Pfaff  <blp@gnu.org>
79413         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
79414         round.c roundf implementation that depends on floorf and ceilf to
79415         be tested unconditionally.
79417 2007-10-21  Ben Pfaff  <blp@gnu.org>
79419         * m4/check-libm-func.m4: Removed.
79420         * m4/check-math-lib.m4: New file.
79421         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
79422         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
79423         definition and lack of AC_LIBOBJ([roundf]).
79424         * m4/roundl.m4: Ditto, and similarly for roundl.
79425         * modules/round: Reference new m4 file.
79426         * modules/roundf: Ditto.
79427         * modules/roundl: Ditto.
79428         * tests/test-round2.c (main): Use ROUND instead of round.
79429         Bug report from Bruno Haible.
79431 2007-10-21  Bruno Haible  <bruno@clisp.org>
79433         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
79434         context.
79436 2007-10-21  Bruno Haible  <bruno@clisp.org>
79438         * tests/test-wcwidth.c (main): Allow negative result for some control
79439         characters.
79441         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
79442         Needed on OSF/1 5.1.
79444 2007-10-21  Bruno Haible  <bruno@clisp.org>
79446         * tests/test-floorf1.c: Include isnanf.h.
79447         (main): Use isnanf() instead of isnan().
79448         * tests/test-ceilf1.c: Include isnanf.h.
79449         (main): Use isnanf() instead of isnan().
79450         * tests/test-truncf1.c: Include isnanf.h.
79451         (main): Use isnanf() instead of isnan().
79452         * tests/test-roundf1.c: Include isnanf.h.
79453         (main): Use isnanf() instead of isnan().
79455 2007-10-21  Eric Blake  <ebb9@byu.net>
79457         * users.txt: Update URL for m4.
79459 2007-10-21  Bruno Haible  <bruno@clisp.org>
79461         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
79463 2007-10-21  Bruno Haible  <bruno@clisp.org>
79465         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
79466         Git's management files if the CVS files are not present.
79468 2007-10-20  Bruno Haible  <bruno@clisp.org>
79470         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
79471         gcc-3.4.x.
79473 2007-10-20  Ben Pfaff  <blp@gnu.org>
79475         * lib/math.in.h: Declare round, roundf, roundl if we are providing
79476         implementations.
79477         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
79478         * lib/round.c: New file.
79479         * lib/roundf.c: New file.
79480         * lib/roundl.c: New file.
79481         * m4/round.m4: New file.
79482         * m4/roundf.m4: New file.
79483         * m4/roundl.m4: New file.
79484         * m4/check-libm-func-m4: New file.
79485         * modules/math: Replace round, roundf, roundl related @VARS@ in
79486         math.in.h.
79487         * modules/round: New file.
79488         * modules/round-tests: New file.
79489         * modules/roundf: New file.
79490         * modules/roundf-tests: New file.
79491         * modules/roundl: New file.
79492         * modules/roundl-tests: New file.
79493         * tests/test-round1.c: New file.
79494         * tests/test-round2.c: New file.
79495         * tests/test-roundf1.c: New file.
79496         * tests/test-roundf2.c: New file.
79497         * tests/test-roundl.c: New file.
79498         * doc/functions/round.texi: Mention round module.
79499         * doc/functions/roundf.texi: Mention roundf module.
79500         * doc/functions/roundl.texi: Mention roundl module.
79501         * MODULES.html.sh: Mention new modules.
79502         Thanks to Bruno Haible for suggestions.
79504 2007-10-20  Jim Meyering  <meyering@redhat.com>
79506         * lib/xprintf.c: Include <config.h> unconditionally.
79508         Change xprintf's license to GPL.
79509         * modules/xprintf (License): s/LGPL/GPL/, since this module
79510         depends on modules (exit and exitfail) which are GPL.
79511         Suggestion from Bruno Haible.
79513         xprintf fixes.
79514         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
79515         Use a clearer diagnostic.
79516         Patch from Bruno Haible.
79518 2007-10-20  Bruno Haible  <bruno@clisp.org>
79520         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
79521         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
79522         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79524 2007-10-20  Bruno Haible  <bruno@clisp.org>
79526         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
79527         precision in the comparison result > x - 1 or similar.
79528         * tests/test-ceilf2.c (correct_result_p): Likewise.
79529         * tests/test-truncf2.c (correct_result_p): Likewise.
79530         * tests/test-trunc2.c (correct_result_p): Likewise.
79531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79533 2007-10-20  Bruno Haible  <bruno@clisp.org>
79535         * modules/ceil: New file.
79536         * m4/ceil.m4: New file.
79537         * doc/functions/ceil.texi: Mention the 'ceil' module.
79539 2007-10-20  Bruno Haible  <bruno@clisp.org>
79541         * modules/floor: New file.
79542         * m4/floor.m4: New file.
79543         * doc/functions/floor.texi: Mention the 'floor' module.
79545 2007-10-20  Bruno Haible  <bruno@clisp.org>
79547         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
79548         of %a.
79549         * modules/floorf-tests (Depends-on): Likewise.
79550         * modules/truncf-tests (Depends-on): Likewise.
79551         * modules/trunc-tests (Depends-on): Likewise.
79552         Reported by Ben Pfaff.
79554 2007-10-19  Jim Meyering  <meyering@redhat.com>
79556         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
79557         Don't bother testing specific errno values.  Just test ferror.
79559         New module: xprintf
79560         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
79562 2007-10-19  Bruno Haible  <bruno@clisp.org>
79564         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
79565         syntax.
79566         * modules/javaexec (Makefile.am): Likewise.
79567         * modules/relocatable-prog (Makefile.am): Likewise.
79568         Suggested by Jim Meyering.
79570 2007-10-18  Bruno Haible  <bruno@clisp.org>
79572         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
79573         Reported by Jim Meyering.
79575 2007-10-18  Eric Blake  <ebb9@byu.net>
79577         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
79579 2007-10-18  Bruno Haible  <bruno@clisp.org>
79581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
79582         the format string into writable memory. Needed in Fortify conditions.
79584 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
79585             Bruno Haible  <bruno@clisp.org>
79587         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
79588         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
79589         * modules/trim (Depends-on): Add mbchar.
79590         (configure.ac): Add gl_FUNC_MBRTOWC.
79591         (Makefile.am): Augment lib_SOURCES.
79593 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79595         Modify glob.c to use fstatat and dirfd, to simplify it.
79596         Suggested by Eric Blake.
79597         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
79598         Don't include <stdbool.h>; not used.
79599         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
79600         (link_exists_p): Simplify implementation, since we can now assume
79601         dirfd and fstatat.
79602         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
79604 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79606         * gnulib-tool (func_get_dependencies): Fix sed script to
79607         match only tests.
79609 2007-10-17  Bruno Haible  <bruno@clisp.org>
79611         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
79612         allow locale names without encoding suffix.
79613         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79616 2007-10-16  Bruno Haible  <bruno@clisp.org>
79618         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
79619         * lib/getgroups.c (getgroups): Likewise.
79620         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
79622 2007-10-16  Bruno Haible  <bruno@clisp.org>
79624         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
79625         * modules/malloc-posix (License): Likewise.
79626         * modules/realloc-posix (License): Likewise.
79627         * modules/calloc-posix (License): Likewise.
79628         * modules/intprops (License): Change from GPL to LGPL, with
79629         Paul Eggert's approval.
79631 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79633         Merge glibc changes into lib/glob.c.
79635         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
79636         2007-10-15 04:59:03 UTC.  Here are the changes:
79638         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
79640         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
79642         * lib/glob.c: Add some branch prediction throughout.
79644         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
79646         [BZ #5103]
79647         * lib/glob.c (glob): Recognize patterns starting \/.
79649         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
79651         [BZ #3996]
79652         * lib/glob.c (attribute_hidden): Define if not defined.
79653         (glob): Unescape dirname, filename or username when needed and not
79654         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
79655         is NULL.  Handle unescaped [ in pattern without closing ].
79656         Don't pass GLOB_CHECK down to recursive glob for directories.
79657         (__glob_pattern_type): New function.
79658         (__glob_pattern_p): Implement using __glob_pattern_type.
79659         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
79660         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
79661         Remove unreachable code.
79663         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
79665         * lib/glob.c (glob_in_dir): Add some comments and asserts to
79666         explain why there are no leaks.
79668         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
79670         [BZ #3253]
79671         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
79672         time, rather allocate increasingly bigger arrays of pointers, if
79673         possible with alloca, if too large with malloc.
79675 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79677         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
79678         Problem reported by H.Merijn Brand in
79679         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
79680         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
79681         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79683 2007-10-15  Bruno Haible  <bruno@clisp.org>
79685         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
79686         with explicit rpl_ prefix.
79687         * lib/fopen.c (fopen): Likewise.
79688         * lib/freopen.c (freopen): Likewise.
79689         * lib/iconv.c (iconv): Likewise.
79690         * lib/iconv_close.c (iconv_close): Likewise.
79692 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79694         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
79696 2007-10-15  Bruno Haible  <bruno@clisp.org>
79698         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
79699         <stddef.h> instead of <stdlib.h> since we only need NULL.
79700         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79702 2007-10-15  Bruno Haible  <bruno@clisp.org>
79704         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
79705         Replace paragraph talking about LIBOBJS.
79706         Reported by Colin Watson <cjwatson@debian.org>.
79708 2007-10-15  Bruno Haible  <bruno@clisp.org>
79710         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
79711         <stdlib.h> before using NULL.
79713 2007-10-15  Simon Josefsson  <simon@josefsson.org>
79715         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
79716         Reported by Albert Chin <china@thewrittenword.com>.
79718 2007-10-14  Bruno Haible  <bruno@clisp.org>
79720         * modules/iconv_open-utf-tests: New file.
79721         * tests/test-iconv-utf.c: New file.
79723         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
79724         * modules/iconv_open-utf: New file.
79725         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
79726         (iconv, iconv_close): New declarations.
79727         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
79728         be defined.
79729         (iconv_open): Add special handling of conversion between UTF-8 and
79730         UTF-{16,32}{BE,LE}.
79731         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
79732         * lib/iconv_close.c: New file.
79733         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
79734         gl_FUNC_ICONV_OPEN.
79735         (gl_FUNC_ICONV_OPEN): Use it.
79736         (gl_FUNC_ICONV_OPEN_UTF): New macro.
79737         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
79738         and REPLACE_ICONV_UTF.
79739         * modules/iconv_open (Depends-on): Add c-strcase.
79740         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
79741         ICONV_CONST.
79742         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
79744 2007-10-13  Albert Chin  <china@thewrittenword.com>
79745             Bruno Haible  <bruno@clisp.org>
79747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
79748         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
79750 2007-10-13  Bruno Haible  <bruno@clisp.org>
79752         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
79753         defined, use the ISO C99 inline semantics.
79754         * lib/argp.h (ARGP_EI): Likewise.
79756 2007-10-13  Bruno Haible  <bruno@clisp.org>
79758         Handle 'inline' change in gcc 4.3.0.
79759         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
79760         argp_fmtstream_write, argp_fmtstream_set_lmargin,
79761         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
79762         argp_fmtstream_point): Disable 'extern' declaration if the function
79763         definition is going to be provided inline.
79764         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
79765         semantics, not the ISO C99 inline semantics.
79766         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
79767         'extern' declaration if the function definition is going to be provided
79768         inline.
79769         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
79770         the GNU C inline semantics, not the ISO C99 inline semantics. With
79771         GCC 4.2, avoid a warning.
79773 2007-10-13  Bruno Haible  <bruno@clisp.org>
79775         * lib/freading.h (freading): Enable the use of __freading for
79776         glibc >= 2.7.
79777         * lib/freading.c (freading): Likewise.
79779 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
79781         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
79782         "warning: C99 inline functions are not supported; using GNU89".
79784 2007-10-12  Bruno Haible  <bruno@clisp.org>
79786         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
79787         of 2.
79788         * tests/test-ceilf2.c: New file.
79789         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
79791         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
79792         * modules/ceilf-tests: Update.
79794 2007-10-12  Bruno Haible  <bruno@clisp.org>
79796         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
79797         of 2.
79798         * tests/test-floorf2.c: New file.
79799         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
79801         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
79802         * modules/floorf-tests: Update.
79804 2007-10-12  Bruno Haible  <bruno@clisp.org>
79806         * tests/test-trunc2.c: New file.
79807         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
79809         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
79810         * modules/trunc-tests: Update.
79812 2007-10-12  Bruno Haible  <bruno@clisp.org>
79814         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
79815         of 2.
79816         * tests/test-truncf2.c: New file.
79817         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
79819         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
79820         * modules/truncf-tests: Update.
79822 2007-10-11  Eric Blake  <ebb9@byu.net>
79824         Don't claim strerror is broken on Interix.
79825         * doc/functions/strerror.texi (strerror): Known broken systems are
79826         now Solaris 8, and not Interix.
79827         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
79828         Interix on cross-compile.
79829         Reported by Martin Koeppe in
79830         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
79832 2007-10-11  Bruno Haible  <bruno@clisp.org>
79834         * modules/i-ring-tests: New file.
79835         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
79836         instead of assert.
79838 2007-10-11  Bruno Haible  <bruno@clisp.org>
79840         * modules/filenamecat-tests: New file.
79841         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
79842         * lib/filenamecat.c: Remove test code.
79844 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
79846         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
79848         * lib/strerror.c: Include <string.h> always, to test interface,
79849         and to remove the need for the dummy.
79850         Include intprops.h to compute width instead of doing it ourselves
79851         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
79852         (strerror): Define it to return NULL if there's no system strerror.
79853         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
79854         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
79855         ancient pre-strerror Unix systems well any more.  Saying "unknown
79856         system error" is enough.
79857         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
79858         simpler strerror.c implementation.
79859         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
79860         Simplify the tests to reflect the simpler strerror implementation.
79861         * modules/strerror (Depends-on): Add intprops.
79863 2007-10-09  Eric Blake  <ebb9@byu.net>
79865         Silence test-fpending.
79866         * modules/fpending-tests (Files): Add wrapper script.
79867         * tests/test-fpending.sh: New file.
79869 2007-10-09  Bruno Haible  <bruno@clisp.org>
79871         * MODULES.html.sh (func_module): Don't create a hyperlink for
79872         function names like 'printf_frexp'.
79873         (Misc): Add crc, memxor.
79874         (Characteristics of floating types): New section.
79875         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
79876         isnanf-nolibm, signbit, trunc, truncf, truncl.
79877         (Enhancements for ISO C 99 functions): New subsection Input/output.
79878         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
79879         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
79880         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
79881         (Compatibility checks for POSIX:2001 functions): Add clock-time.
79882         (Enhancements for POSIX:2001 functions): Add chdir-long.
79883         (File system functions): Add areadlink, chdir-safer, read-file.
79884         Remove cycle-check.
79885         (File system as inode set): New section.
79886         (Date and time): Add gethrxtime.
79887         (Multithreading): Add openmp.
79888         (Internationalization functions): Add localename.
79889         (Unicode string functions): Add unistr/u*-mbsnlen.
79890         (Support for maintaining and releasing projects): Add git-version-gen.
79891         (Lone files): Remove directories.
79893 2007-10-08  Ben Pfaff  <blp@gnu.org>
79895         * lib/xmalloca.h: Fix typo in comment.
79897 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
79899         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
79900         when avoiding problems with integer overflow.  Use a portable test
79901         instead.
79903 2007-10-08  Simon Josefsson  <simon@josefsson.org>
79905         * modules/dummy (License): Change to LGPLv2+.
79906         * modules/float (License): Likewise
79907         * modules/realloc (License): Likewise
79908         * modules/stdlib (License): Likewise
79910 2007-10-07  Bruno Haible  <bruno@clisp.org>
79912         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
79913         * floor.c (TWO_MANT_DIG): Likewise.
79914         * ceil.c (TWO_MANT_DIG): Likewise.
79915         Reported by Ben Pfaff.
79917 2007-10-07  Bruno Haible  <bruno@clisp.org>
79919         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
79920         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
79921         * lib/frexp.c (FUNC): Likewise.
79922         * lib/printf-frexp.h (printf_frexp): Likewise.
79923         * lib/printf-frexpl.h (printf_frexpl): Likewise.
79924         * lib/printf-frexp.c (FUNC): Likewise.
79925         Suggested by Jim Meyering.
79927 2007-10-07  Jim Meyering  <meyering@redhat.com>
79929         Make xnanosleep's integer overflow test more robust.
79930         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
79931         so that gcc-4.3.0 doesn't optimize away this test for overflow.
79933 2007-10-07  Bruno Haible  <bruno@clisp.org>
79935         * NEWS: Mention the license change.
79937         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
79938         abbreviations in the modules files.
79940         Change copyright notice from GPLv2+ to GPLv3+.
79941         * README: Change copyright notice.
79942         * MODULES.html.sh: Likewise.
79943         * build-aux/bootstrap.conf: Likewise.
79944         * build-aux/config.libpath: Likewise.
79945         * build-aux/csharpcomp.sh.in: Likewise.
79946         * build-aux/csharpexec.sh.in: Likewise.
79947         * build-aux/install-reloc: Likewise.
79948         * build-aux/javacomp.sh.in: Likewise.
79949         * build-aux/javaexec.sh.in: Likewise.
79950         * build-aux/ldd.sh.in: Likewise.
79951         * build-aux/reloc-ldflags: Likewise.
79952         * build-aux/relocatable.sh.in: Likewise.
79953         * build-aux/x-to-1.in: Likewise.
79954         * check-module: Likewise.
79955         * config/srclistvars.sh: Likewise.
79956         * gnulib-tool: Likewise.
79957         * lib/acl-internal.h: Likewise.
79958         * lib/acl.c: Likewise.
79959         * lib/acl.h: Likewise.
79960         * lib/acl_entries.c: Likewise.
79961         * lib/areadlink-with-size.c: Likewise.
79962         * lib/areadlink.c: Likewise.
79963         * lib/areadlink.h: Likewise.
79964         * lib/argmatch.c: Likewise.
79965         * lib/argmatch.h: Likewise.
79966         * lib/argp-ba.c: Likewise.
79967         * lib/argp-eexst.c: Likewise.
79968         * lib/argp-fmtstream.c: Likewise.
79969         * lib/argp-fmtstream.h: Likewise.
79970         * lib/argp-fs-xinl.c: Likewise.
79971         * lib/argp-help.c: Likewise.
79972         * lib/argp-namefrob.h: Likewise.
79973         * lib/argp-parse.c: Likewise.
79974         * lib/argp-pin.c: Likewise.
79975         * lib/argp-pv.c: Likewise.
79976         * lib/argp-pvh.c: Likewise.
79977         * lib/argp-xinl.c: Likewise.
79978         * lib/argp.h: Likewise.
79979         * lib/at-func.c: Likewise.
79980         * lib/atanl.c: Likewise.
79981         * lib/backupfile.c: Likewise.
79982         * lib/backupfile.h: Likewise.
79983         * lib/basename.c: Likewise.
79984         * lib/binary-io.h: Likewise.
79985         * lib/byteswap.in.h: Likewise.
79986         * lib/c-stack.c: Likewise.
79987         * lib/c-stack.h: Likewise.
79988         * lib/c-strcasestr.c: Likewise.
79989         * lib/c-strcasestr.h: Likewise.
79990         * lib/c-strstr.c: Likewise.
79991         * lib/c-strstr.h: Likewise.
79992         * lib/c-strtod.c: Likewise.
79993         * lib/calloc.c: Likewise.
79994         * lib/canon-host.c: Likewise.
79995         * lib/canon-host.h: Likewise.
79996         * lib/canonicalize-lgpl.c: Likewise.
79997         * lib/canonicalize.c: Likewise.
79998         * lib/canonicalize.h: Likewise.
79999         * lib/ceil.c: Likewise.
80000         * lib/ceilf.c: Likewise.
80001         * lib/ceill.c: Likewise.
80002         * lib/chdir-long.c: Likewise.
80003         * lib/chdir-long.h: Likewise.
80004         * lib/chdir-safer.c: Likewise.
80005         * lib/chdir-safer.h: Likewise.
80006         * lib/chown.c: Likewise.
80007         * lib/classpath.c: Likewise.
80008         * lib/classpath.h: Likewise.
80009         * lib/clean-temp.c: Likewise.
80010         * lib/clean-temp.h: Likewise.
80011         * lib/cloexec.c: Likewise.
80012         * lib/close-stream.c: Likewise.
80013         * lib/closein.c: Likewise.
80014         * lib/closein.h: Likewise.
80015         * lib/closeout.c: Likewise.
80016         * lib/closeout.h: Likewise.
80017         * lib/concat-filename.c: Likewise.
80018         * lib/copy-file.c: Likewise.
80019         * lib/copy-file.h: Likewise.
80020         * lib/count-one-bits.h: Likewise.
80021         * lib/crc.c: Likewise.
80022         * lib/crc.h: Likewise.
80023         * lib/creat-safer.c: Likewise.
80024         * lib/csharpcomp.c: Likewise.
80025         * lib/csharpcomp.h: Likewise.
80026         * lib/csharpexec.c: Likewise.
80027         * lib/csharpexec.h: Likewise.
80028         * lib/cycle-check.c: Likewise.
80029         * lib/cycle-check.h: Likewise.
80030         * lib/diacrit.c: Likewise.
80031         * lib/diacrit.h: Likewise.
80032         * lib/diffseq.h: Likewise.
80033         * lib/dirchownmod.c: Likewise.
80034         * lib/dirent.in.h: Likewise.
80035         * lib/dirfd.c: Likewise.
80036         * lib/dirfd.h: Likewise.
80037         * lib/dirname.c: Likewise.
80038         * lib/dirname.h: Likewise.
80039         * lib/dummy.c: Likewise.
80040         * lib/dup-safer.c: Likewise.
80041         * lib/dup2.c: Likewise.
80042         * lib/eealloc.h: Likewise.
80043         * lib/error.c: Likewise.
80044         * lib/error.h: Likewise.
80045         * lib/euidaccess.c: Likewise.
80046         * lib/exclude.c: Likewise.
80047         * lib/exclude.h: Likewise.
80048         * lib/execute.c: Likewise.
80049         * lib/execute.h: Likewise.
80050         * lib/exitfail.c: Likewise.
80051         * lib/exitfail.h: Likewise.
80052         * lib/expl.c: Likewise.
80053         * lib/fatal-signal.c: Likewise.
80054         * lib/fatal-signal.h: Likewise.
80055         * lib/fbufmode.c: Likewise.
80056         * lib/fbufmode.h: Likewise.
80057         * lib/fchdir.c: Likewise.
80058         * lib/fchmodat.c: Likewise.
80059         * lib/fchownat.c: Likewise.
80060         * lib/fcntl--.h: Likewise.
80061         * lib/fcntl-safer.h: Likewise.
80062         * lib/fcntl.in.h: Likewise.
80063         * lib/fd-safer.c: Likewise.
80064         * lib/fflush.c: Likewise.
80065         * lib/file-has-acl.c: Likewise.
80066         * lib/file-set.c: Likewise.
80067         * lib/file-type.c: Likewise.
80068         * lib/file-type.h: Likewise.
80069         * lib/fileblocks.c: Likewise.
80070         * lib/filemode.c: Likewise.
80071         * lib/filemode.h: Likewise.
80072         * lib/filename.h: Likewise.
80073         * lib/filenamecat.c: Likewise.
80074         * lib/filenamecat.h: Likewise.
80075         * lib/findprog.c: Likewise.
80076         * lib/findprog.h: Likewise.
80077         * lib/float.in.h: Likewise.
80078         * lib/floor.c: Likewise.
80079         * lib/floorf.c: Likewise.
80080         * lib/floorl.c: Likewise.
80081         * lib/fopen-safer.c: Likewise.
80082         * lib/fopen.c: Likewise.
80083         * lib/fpending.c: Likewise.
80084         * lib/fpending.h: Likewise.
80085         * lib/fprintf.c: Likewise.
80086         * lib/fprintftime.h: Likewise.
80087         * lib/fpucw.h: Likewise.
80088         * lib/fpurge.c: Likewise.
80089         * lib/fpurge.h: Likewise.
80090         * lib/freadable.c: Likewise.
80091         * lib/freadable.h: Likewise.
80092         * lib/freadahead.c: Likewise.
80093         * lib/freadahead.h: Likewise.
80094         * lib/freading.c: Likewise.
80095         * lib/freading.h: Likewise.
80096         * lib/free.c: Likewise.
80097         * lib/freopen.c: Likewise.
80098         * lib/frexp.c: Likewise.
80099         * lib/frexpl.c: Likewise.
80100         * lib/fseek.c: Likewise.
80101         * lib/fseterr.c: Likewise.
80102         * lib/fseterr.h: Likewise.
80103         * lib/fstatat.c: Likewise.
80104         * lib/fstrcmp.c: Likewise.
80105         * lib/fstrcmp.h: Likewise.
80106         * lib/fsusage.c: Likewise.
80107         * lib/fsusage.h: Likewise.
80108         * lib/ftell.c: Likewise.
80109         * lib/ftello.c: Likewise.
80110         * lib/fts-cycle.c: Likewise.
80111         * lib/fts.c: Likewise.
80112         * lib/fts_.h: Likewise.
80113         * lib/full-read.c: Likewise.
80114         * lib/full-read.h: Likewise.
80115         * lib/full-write.c: Likewise.
80116         * lib/full-write.h: Likewise.
80117         * lib/fwritable.c: Likewise.
80118         * lib/fwritable.h: Likewise.
80119         * lib/fwriteerror.c: Likewise.
80120         * lib/fwriteerror.h: Likewise.
80121         * lib/fwriting.c: Likewise.
80122         * lib/fwriting.h: Likewise.
80123         * lib/gcd.c: Likewise.
80124         * lib/gcd.h: Likewise.
80125         * lib/getcwd.c: Likewise.
80126         * lib/getdate.h: Likewise.
80127         * lib/getdate.y: Likewise.
80128         * lib/getdomainname.c: Likewise.
80129         * lib/getdomainname.h: Likewise.
80130         * lib/getgroups.c: Likewise.
80131         * lib/gethostname.c: Likewise.
80132         * lib/gethrxtime.c: Likewise.
80133         * lib/gethrxtime.h: Likewise.
80134         * lib/getloadavg.c: Likewise.
80135         * lib/getndelim2.c: Likewise.
80136         * lib/getndelim2.h: Likewise.
80137         * lib/getnline.c: Likewise.
80138         * lib/getnline.h: Likewise.
80139         * lib/getopt.c: Likewise.
80140         * lib/getopt.in.h: Likewise.
80141         * lib/getopt1.c: Likewise.
80142         * lib/getopt_int.h: Likewise.
80143         * lib/getpagesize.h: Likewise.
80144         * lib/getsubopt.c: Likewise.
80145         * lib/gettime.c: Likewise.
80146         * lib/getugroups.c: Likewise.
80147         * lib/getugroups.h: Likewise.
80148         * lib/getusershell.c: Likewise.
80149         * lib/gl_anyavltree_list1.h: Likewise.
80150         * lib/gl_anyavltree_list2.h: Likewise.
80151         * lib/gl_anyhash_list1.h: Likewise.
80152         * lib/gl_anyhash_list2.h: Likewise.
80153         * lib/gl_anylinked_list1.h: Likewise.
80154         * lib/gl_anylinked_list2.h: Likewise.
80155         * lib/gl_anyrbtree_list1.h: Likewise.
80156         * lib/gl_anyrbtree_list2.h: Likewise.
80157         * lib/gl_anytree_list1.h: Likewise.
80158         * lib/gl_anytree_list2.h: Likewise.
80159         * lib/gl_anytree_oset.h: Likewise.
80160         * lib/gl_anytreehash_list1.h: Likewise.
80161         * lib/gl_anytreehash_list2.h: Likewise.
80162         * lib/gl_array_list.c: Likewise.
80163         * lib/gl_array_list.h: Likewise.
80164         * lib/gl_array_oset.c: Likewise.
80165         * lib/gl_array_oset.h: Likewise.
80166         * lib/gl_avltree_list.c: Likewise.
80167         * lib/gl_avltree_list.h: Likewise.
80168         * lib/gl_avltree_oset.c: Likewise.
80169         * lib/gl_avltree_oset.h: Likewise.
80170         * lib/gl_avltreehash_list.c: Likewise.
80171         * lib/gl_avltreehash_list.h: Likewise.
80172         * lib/gl_carray_list.c: Likewise.
80173         * lib/gl_carray_list.h: Likewise.
80174         * lib/gl_linked_list.c: Likewise.
80175         * lib/gl_linked_list.h: Likewise.
80176         * lib/gl_linkedhash_list.c: Likewise.
80177         * lib/gl_linkedhash_list.h: Likewise.
80178         * lib/gl_list.c: Likewise.
80179         * lib/gl_list.h: Likewise.
80180         * lib/gl_oset.c: Likewise.
80181         * lib/gl_oset.h: Likewise.
80182         * lib/gl_rbtree_list.c: Likewise.
80183         * lib/gl_rbtree_list.h: Likewise.
80184         * lib/gl_rbtree_oset.c: Likewise.
80185         * lib/gl_rbtree_oset.h: Likewise.
80186         * lib/gl_rbtreehash_list.c: Likewise.
80187         * lib/gl_rbtreehash_list.h: Likewise.
80188         * lib/gl_sublist.c: Likewise.
80189         * lib/gl_sublist.h: Likewise.
80190         * lib/group-member.c: Likewise.
80191         * lib/group-member.h: Likewise.
80192         * lib/hard-locale.c: Likewise.
80193         * lib/hard-locale.h: Likewise.
80194         * lib/hash-pjw.c: Likewise.
80195         * lib/hash-pjw.h: Likewise.
80196         * lib/hash-triple.c: Likewise.
80197         * lib/hash.c: Likewise.
80198         * lib/hash.h: Likewise.
80199         * lib/human.c: Likewise.
80200         * lib/human.h: Likewise.
80201         * lib/i-ring.c: Likewise.
80202         * lib/i-ring.h: Likewise.
80203         * lib/idcache.c: Likewise.
80204         * lib/imaxabs.c: Likewise.
80205         * lib/imaxdiv.c: Likewise.
80206         * lib/inet_pton.c: Likewise.
80207         * lib/inet_pton.h: Likewise.
80208         * lib/intprops.h: Likewise.
80209         * lib/inttostr.c: Likewise.
80210         * lib/inttostr.h: Likewise.
80211         * lib/inttypes.in.h: Likewise.
80212         * lib/isapipe.c: Likewise.
80213         * lib/isdir.c: Likewise.
80214         * lib/isnan.c: Likewise.
80215         * lib/isnan.h: Likewise.
80216         * lib/isnanf.c: Likewise.
80217         * lib/isnanf.h: Likewise.
80218         * lib/isnanl-nolibm.h: Likewise.
80219         * lib/isnanl.c: Likewise.
80220         * lib/isnanl.h: Likewise.
80221         * lib/javacomp.c: Likewise.
80222         * lib/javacomp.h: Likewise.
80223         * lib/javaexec.c: Likewise.
80224         * lib/javaexec.h: Likewise.
80225         * lib/javaversion.c: Likewise.
80226         * lib/javaversion.h: Likewise.
80227         * lib/javaversion.java: Likewise.
80228         * lib/lbrkprop.h: Likewise.
80229         * lib/lchmod.h: Likewise.
80230         * lib/lchown.c: Likewise.
80231         * lib/ldexpl.c: Likewise.
80232         * lib/linebreak.c: Likewise.
80233         * lib/linebreak.h: Likewise.
80234         * lib/linebuffer.c: Likewise.
80235         * lib/linebuffer.h: Likewise.
80236         * lib/locale.in.h: Likewise.
80237         * lib/logl.c: Likewise.
80238         * lib/long-options.c: Likewise.
80239         * lib/long-options.h: Likewise.
80240         * lib/lstat.c: Likewise.
80241         * lib/lstat.h: Likewise.
80242         * lib/math.in.h: Likewise.
80243         * lib/mbchar.c: Likewise.
80244         * lib/mbchar.h: Likewise.
80245         * lib/mbfile.h: Likewise.
80246         * lib/mbiter.h: Likewise.
80247         * lib/mbscasecmp.c: Likewise.
80248         * lib/mbscasestr.c: Likewise.
80249         * lib/mbschr.c: Likewise.
80250         * lib/mbscspn.c: Likewise.
80251         * lib/mbslen.c: Likewise.
80252         * lib/mbsncasecmp.c: Likewise.
80253         * lib/mbsnlen.c: Likewise.
80254         * lib/mbspbrk.c: Likewise.
80255         * lib/mbspcasecmp.c: Likewise.
80256         * lib/mbsrchr.c: Likewise.
80257         * lib/mbssep.c: Likewise.
80258         * lib/mbsspn.c: Likewise.
80259         * lib/mbsstr.c: Likewise.
80260         * lib/mbstok_r.c: Likewise.
80261         * lib/mbswidth.c: Likewise.
80262         * lib/mbswidth.h: Likewise.
80263         * lib/mbuiter.h: Likewise.
80264         * lib/memcasecmp.c: Likewise.
80265         * lib/memcasecmp.h: Likewise.
80266         * lib/memchr.c: Likewise.
80267         * lib/memcmp.c: Likewise.
80268         * lib/memcoll.c: Likewise.
80269         * lib/memcoll.h: Likewise.
80270         * lib/memcpy.c: Likewise.
80271         * lib/memrchr.c: Likewise.
80272         * lib/mkancesdirs.c: Likewise.
80273         * lib/mkdir-p.c: Likewise.
80274         * lib/mkdir-p.h: Likewise.
80275         * lib/mkdir.c: Likewise.
80276         * lib/mkdirat.c: Likewise.
80277         * lib/mkdtemp.c: Likewise.
80278         * lib/mkstemp-safer.c: Likewise.
80279         * lib/mkstemp.c: Likewise.
80280         * lib/modechange.c: Likewise.
80281         * lib/modechange.h: Likewise.
80282         * lib/mountlist.c: Likewise.
80283         * lib/mountlist.h: Likewise.
80284         * lib/mpsort.c: Likewise.
80285         * lib/nanosleep.c: Likewise.
80286         * lib/obstack.c: Likewise.
80287         * lib/obstack.h: Likewise.
80288         * lib/open-safer.c: Likewise.
80289         * lib/open.c: Likewise.
80290         * lib/openat-die.c: Likewise.
80291         * lib/openat-priv.h: Likewise.
80292         * lib/openat-proc.c: Likewise.
80293         * lib/openat.c: Likewise.
80294         * lib/openat.h: Likewise.
80295         * lib/pagealign_alloc.c: Likewise.
80296         * lib/pagealign_alloc.h: Likewise.
80297         * lib/physmem.c: Likewise.
80298         * lib/physmem.h: Likewise.
80299         * lib/pipe-safer.c: Likewise.
80300         * lib/pipe.c: Likewise.
80301         * lib/pipe.h: Likewise.
80302         * lib/posixtm.c: Likewise.
80303         * lib/posixtm.h: Likewise.
80304         * lib/posixver.c: Likewise.
80305         * lib/printf-frexp.c: Likewise.
80306         * lib/printf-frexp.h: Likewise.
80307         * lib/printf-frexpl.c: Likewise.
80308         * lib/printf-frexpl.h: Likewise.
80309         * lib/printf.c: Likewise.
80310         * lib/progname.c: Likewise.
80311         * lib/progname.h: Likewise.
80312         * lib/progreloc.c: Likewise.
80313         * lib/putenv.c: Likewise.
80314         * lib/quote.c: Likewise.
80315         * lib/quote.h: Likewise.
80316         * lib/quotearg.c: Likewise.
80317         * lib/quotearg.h: Likewise.
80318         * lib/raise.c: Likewise.
80319         * lib/readline.c: Likewise.
80320         * lib/readline.h: Likewise.
80321         * lib/readlink.c: Likewise.
80322         * lib/readtokens.c: Likewise.
80323         * lib/readtokens.h: Likewise.
80324         * lib/readtokens0.c: Likewise.
80325         * lib/readtokens0.h: Likewise.
80326         * lib/readutmp.c: Likewise.
80327         * lib/readutmp.h: Likewise.
80328         * lib/realloc.c: Likewise.
80329         * lib/relocwrapper.c: Likewise.
80330         * lib/rename-dest-slash.c: Likewise.
80331         * lib/rename.c: Likewise.
80332         * lib/rmdir.c: Likewise.
80333         * lib/rpmatch.c: Likewise.
80334         * lib/safe-read.c: Likewise.
80335         * lib/safe-read.h: Likewise.
80336         * lib/safe-write.c: Likewise.
80337         * lib/safe-write.h: Likewise.
80338         * lib/same-inode.h: Likewise.
80339         * lib/same.c: Likewise.
80340         * lib/same.h: Likewise.
80341         * lib/save-cwd.c: Likewise.
80342         * lib/save-cwd.h: Likewise.
80343         * lib/savedir.c: Likewise.
80344         * lib/savedir.h: Likewise.
80345         * lib/savewd.c: Likewise.
80346         * lib/savewd.h: Likewise.
80347         * lib/search.in.h: Likewise.
80348         * lib/setenv.c: Likewise.
80349         * lib/setenv.h: Likewise.
80350         * lib/settime.c: Likewise.
80351         * lib/sh-quote.c: Likewise.
80352         * lib/sh-quote.h: Likewise.
80353         * lib/sig2str.c: Likewise.
80354         * lib/sig2str.h: Likewise.
80355         * lib/signal.in.h: Likewise.
80356         * lib/signbitd.c: Likewise.
80357         * lib/signbitf.c: Likewise.
80358         * lib/signbitl.c: Likewise.
80359         * lib/sigprocmask.c: Likewise.
80360         * lib/sincosl.c: Likewise.
80361         * lib/sleep.c: Likewise.
80362         * lib/sprintf.c: Likewise.
80363         * lib/sqrtl.c: Likewise.
80364         * lib/stat-time.h: Likewise.
80365         * lib/stdio--.h: Likewise.
80366         * lib/stdio-safer.h: Likewise.
80367         * lib/stdlib--.h: Likewise.
80368         * lib/stdlib-safer.h: Likewise.
80369         * lib/stdlib.in.h: Likewise.
80370         * lib/stpcpy.c: Likewise.
80371         * lib/stpncpy.c: Likewise.
80372         * lib/strchrnul.c: Likewise.
80373         * lib/strcspn.c: Likewise.
80374         * lib/strerror.c: Likewise.
80375         * lib/strftime.c: Likewise.
80376         * lib/strftime.h: Likewise.
80377         * lib/striconveh.c: Likewise.
80378         * lib/striconveh.h: Likewise.
80379         * lib/striconveha.c: Likewise.
80380         * lib/striconveha.h: Likewise.
80381         * lib/stripslash.c: Likewise.
80382         * lib/strnlen1.c: Likewise.
80383         * lib/strnlen1.h: Likewise.
80384         * lib/strtod.c: Likewise.
80385         * lib/strtoimax.c: Likewise.
80386         * lib/strtok_r.c: Likewise.
80387         * lib/strtol.c: Likewise.
80388         * lib/strtoll.c: Likewise.
80389         * lib/strtoul.c: Likewise.
80390         * lib/strtoull.c: Likewise.
80391         * lib/sysexits.in.h: Likewise.
80392         * lib/tempname.c: Likewise.
80393         * lib/tempname.h: Likewise.
80394         * lib/timespec.h: Likewise.
80395         * lib/tls.c: Likewise.
80396         * lib/tls.h: Likewise.
80397         * lib/tmpdir.c: Likewise.
80398         * lib/tmpdir.h: Likewise.
80399         * lib/tmpfile-safer.c: Likewise.
80400         * lib/tmpfile.c: Likewise.
80401         * lib/trigl.c: Likewise.
80402         * lib/trigl.h: Likewise.
80403         * lib/trim.c: Likewise.
80404         * lib/trim.h: Likewise.
80405         * lib/trunc.c: Likewise.
80406         * lib/truncf.c: Likewise.
80407         * lib/truncl.c: Likewise.
80408         * lib/tsearch.c: Likewise.
80409         * lib/unicodeio.c: Likewise.
80410         * lib/unicodeio.h: Likewise.
80411         * lib/unistd--.h: Likewise.
80412         * lib/unistd-safer.h: Likewise.
80413         * lib/unistdio/ulc-fprintf.c: Likewise.
80414         * lib/unistdio/ulc-vfprintf.c: Likewise.
80415         * lib/unlinkdir.c: Likewise.
80416         * lib/unlinkdir.h: Likewise.
80417         * lib/unlocked-io.h: Likewise.
80418         * lib/unsetenv.c: Likewise.
80419         * lib/userspec.c: Likewise.
80420         * lib/utime.c: Likewise.
80421         * lib/utimecmp.c: Likewise.
80422         * lib/utimecmp.h: Likewise.
80423         * lib/utimens.c: Likewise.
80424         * lib/verify.h: Likewise.
80425         * lib/verror.c: Likewise.
80426         * lib/verror.h: Likewise.
80427         * lib/version-etc-fsf.c: Likewise.
80428         * lib/version-etc.c: Likewise.
80429         * lib/version-etc.h: Likewise.
80430         * lib/vfprintf.c: Likewise.
80431         * lib/vprintf.c: Likewise.
80432         * lib/vsprintf.c: Likewise.
80433         * lib/w32spawn.h: Likewise.
80434         * lib/wait-process.c: Likewise.
80435         * lib/wait-process.h: Likewise.
80436         * lib/wcwidth.c: Likewise.
80437         * lib/write-any-file.c: Likewise.
80438         * lib/xalloc-die.c: Likewise.
80439         * lib/xalloc.h: Likewise.
80440         * lib/xasprintf.c: Likewise.
80441         * lib/xgetcwd.c: Likewise.
80442         * lib/xgetcwd.h: Likewise.
80443         * lib/xgetdomainname.c: Likewise.
80444         * lib/xgetdomainname.h: Likewise.
80445         * lib/xgethostname.c: Likewise.
80446         * lib/xmalloc.c: Likewise.
80447         * lib/xmalloca.c: Likewise.
80448         * lib/xmalloca.h: Likewise.
80449         * lib/xmemcoll.c: Likewise.
80450         * lib/xnanosleep.c: Likewise.
80451         * lib/xreadlink.c: Likewise.
80452         * lib/xreadlink.h: Likewise.
80453         * lib/xsetenv.c: Likewise.
80454         * lib/xsetenv.h: Likewise.
80455         * lib/xstriconv.c: Likewise.
80456         * lib/xstriconv.h: Likewise.
80457         * lib/xstrndup.c: Likewise.
80458         * lib/xstrndup.h: Likewise.
80459         * lib/xstrtod.c: Likewise.
80460         * lib/xstrtod.h: Likewise.
80461         * lib/xstrtol-error.c: Likewise.
80462         * lib/xstrtol.c: Likewise.
80463         * lib/xstrtol.h: Likewise.
80464         * lib/xtime.h: Likewise.
80465         * lib/xvasprintf.c: Likewise.
80466         * lib/xvasprintf.h: Likewise.
80467         * lib/yesno.c: Likewise.
80468         * lib/yesno.h: Likewise.
80469         * posix-modules: Likewise.
80470         * tests/test-alloca-opt.c: Likewise.
80471         * tests/test-arcfour.c: Likewise.
80472         * tests/test-arctwo.c: Likewise.
80473         * tests/test-argmatch.c: Likewise.
80474         * tests/test-argp-2.sh: Likewise.
80475         * tests/test-argp.c: Likewise.
80476         * tests/test-arpa_inet.c: Likewise.
80477         * tests/test-array_list.c: Likewise.
80478         * tests/test-array_oset.c: Likewise.
80479         * tests/test-atexit.c: Likewise.
80480         * tests/test-avltree_list.c: Likewise.
80481         * tests/test-avltree_oset.c: Likewise.
80482         * tests/test-avltreehash_list.c: Likewise.
80483         * tests/test-base64.c: Likewise.
80484         * tests/test-binary-io.c: Likewise.
80485         * tests/test-byteswap.c: Likewise.
80486         * tests/test-c-ctype.c: Likewise.
80487         * tests/test-c-strcasecmp.c: Likewise.
80488         * tests/test-c-strcasestr.c: Likewise.
80489         * tests/test-c-strncasecmp.c: Likewise.
80490         * tests/test-c-strstr.c: Likewise.
80491         * tests/test-canonicalize-lgpl.c: Likewise.
80492         * tests/test-canonicalize.c: Likewise.
80493         * tests/test-carray_list.c: Likewise.
80494         * tests/test-ceilf.c: Likewise.
80495         * tests/test-ceill.c: Likewise.
80496         * tests/test-count-one-bits.c: Likewise.
80497         * tests/test-crc.c: Likewise.
80498         * tests/test-dirname.c: Likewise.
80499         * tests/test-fbufmode.c: Likewise.
80500         * tests/test-fcntl.c: Likewise.
80501         * tests/test-fflush.c: Likewise.
80502         * tests/test-floorf.c: Likewise.
80503         * tests/test-floorl.c: Likewise.
80504         * tests/test-fopen.c: Likewise.
80505         * tests/test-fprintf-posix.c: Likewise.
80506         * tests/test-fprintf-posix.h: Likewise.
80507         * tests/test-fpurge.c: Likewise.
80508         * tests/test-freadable.c: Likewise.
80509         * tests/test-freadahead.c: Likewise.
80510         * tests/test-freading.c: Likewise.
80511         * tests/test-freopen.c: Likewise.
80512         * tests/test-frexp.c: Likewise.
80513         * tests/test-frexpl.c: Likewise.
80514         * tests/test-fseek.c: Likewise.
80515         * tests/test-fseeko.c: Likewise.
80516         * tests/test-fseterr.c: Likewise.
80517         * tests/test-fstrcmp.c: Likewise.
80518         * tests/test-ftell.c: Likewise.
80519         * tests/test-ftello.c: Likewise.
80520         * tests/test-fwritable.c: Likewise.
80521         * tests/test-fwriting.c: Likewise.
80522         * tests/test-getaddrinfo.c: Likewise.
80523         * tests/test-getpass.c: Likewise.
80524         * tests/test-gettimeofday.c: Likewise.
80525         * tests/test-hmac-md5.c: Likewise.
80526         * tests/test-hmac-sha1.c: Likewise.
80527         * tests/test-iconv.c: Likewise.
80528         * tests/test-iconvme.c: Likewise.
80529         * tests/test-inttypes.c: Likewise.
80530         * tests/test-isnan.c: Likewise.
80531         * tests/test-isnanf.c: Likewise.
80532         * tests/test-isnanl-nolibm.c: Likewise.
80533         * tests/test-isnanl.c: Likewise.
80534         * tests/test-isnanl.h: Likewise.
80535         * tests/test-ldexpl.c: Likewise.
80536         * tests/test-linked_list.c: Likewise.
80537         * tests/test-linkedhash_list.c: Likewise.
80538         * tests/test-locale.c: Likewise.
80539         * tests/test-localename.c: Likewise.
80540         * tests/test-lock.c: Likewise.
80541         * tests/test-lseek.c: Likewise.
80542         * tests/test-malloca.c: Likewise.
80543         * tests/test-math.c: Likewise.
80544         * tests/test-mbscasecmp.c: Likewise.
80545         * tests/test-mbscasestr1.c: Likewise.
80546         * tests/test-mbscasestr2.c: Likewise.
80547         * tests/test-mbscasestr3.c: Likewise.
80548         * tests/test-mbscasestr4.c: Likewise.
80549         * tests/test-mbschr.c: Likewise.
80550         * tests/test-mbscspn.c: Likewise.
80551         * tests/test-mbsncasecmp.c: Likewise.
80552         * tests/test-mbspbrk.c: Likewise.
80553         * tests/test-mbspcasecmp.c: Likewise.
80554         * tests/test-mbsrchr.c: Likewise.
80555         * tests/test-mbsspn.c: Likewise.
80556         * tests/test-mbsstr1.c: Likewise.
80557         * tests/test-mbsstr2.c: Likewise.
80558         * tests/test-mbsstr3.c: Likewise.
80559         * tests/test-md5.c: Likewise.
80560         * tests/test-memmem.c: Likewise.
80561         * tests/test-netinet_in.c: Likewise.
80562         * tests/test-open.c: Likewise.
80563         * tests/test-printf-frexp.c: Likewise.
80564         * tests/test-printf-frexpl.c: Likewise.
80565         * tests/test-printf-posix.c: Likewise.
80566         * tests/test-printf-posix.h: Likewise.
80567         * tests/test-rbtree_list.c: Likewise.
80568         * tests/test-rbtree_oset.c: Likewise.
80569         * tests/test-rbtreehash_list.c: Likewise.
80570         * tests/test-read-file.c: Likewise.
80571         * tests/test-rijndael.c: Likewise.
80572         * tests/test-search.c: Likewise.
80573         * tests/test-signbit.c: Likewise.
80574         * tests/test-sleep.c: Likewise.
80575         * tests/test-snprintf-posix.c: Likewise.
80576         * tests/test-snprintf-posix.h: Likewise.
80577         * tests/test-snprintf.c: Likewise.
80578         * tests/test-sprintf-posix.c: Likewise.
80579         * tests/test-sprintf-posix.h: Likewise.
80580         * tests/test-stat-time.c: Likewise.
80581         * tests/test-stdbool.c: Likewise.
80582         * tests/test-stdint.c: Likewise.
80583         * tests/test-stdio.c: Likewise.
80584         * tests/test-stdlib.c: Likewise.
80585         * tests/test-stpncpy.c: Likewise.
80586         * tests/test-strcasestr.c: Likewise.
80587         * tests/test-striconv.c: Likewise.
80588         * tests/test-striconveh.c: Likewise.
80589         * tests/test-striconveha.c: Likewise.
80590         * tests/test-string.c: Likewise.
80591         * tests/test-sys_select.c: Likewise.
80592         * tests/test-sys_socket.c: Likewise.
80593         * tests/test-sys_stat.c: Likewise.
80594         * tests/test-sys_time.c: Likewise.
80595         * tests/test-sysexits.c: Likewise.
80596         * tests/test-time.c: Likewise.
80597         * tests/test-tls.c: Likewise.
80598         * tests/test-trunc.c: Likewise.
80599         * tests/test-truncf.c: Likewise.
80600         * tests/test-truncl.c: Likewise.
80601         * tests/test-unistd.c: Likewise.
80602         * tests/test-vasnprintf-posix.c: Likewise.
80603         * tests/test-vasnprintf-posix2.c: Likewise.
80604         * tests/test-vasnprintf.c: Likewise.
80605         * tests/test-vasprintf-posix.c: Likewise.
80606         * tests/test-vasprintf.c: Likewise.
80607         * tests/test-verify.c: Likewise.
80608         * tests/test-vfprintf-posix.c: Likewise.
80609         * tests/test-vprintf-posix.c: Likewise.
80610         * tests/test-vsnprintf-posix.c: Likewise.
80611         * tests/test-vsnprintf.c: Likewise.
80612         * tests/test-vsprintf-posix.c: Likewise.
80613         * tests/test-wchar.c: Likewise.
80614         * tests/test-wctype.c: Likewise.
80615         * tests/test-wcwidth.c: Likewise.
80616         * tests/test-xstrtol.c: Likewise.
80617         * tests/test-xvasprintf.c: Likewise.
80618         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
80619         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
80620         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
80621         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
80622         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
80623         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
80624         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
80625         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
80626         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
80627         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
80628         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
80629         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
80630         * tests/uniname/test-uninames.c: Likewise.
80631         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
80632         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
80633         * tests/unistdio/test-u16-printf1.h: Likewise.
80634         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
80635         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
80636         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
80637         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
80638         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
80639         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
80640         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
80641         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
80642         * tests/unistdio/test-u32-printf1.h: Likewise.
80643         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
80644         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
80645         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
80646         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
80647         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
80648         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
80649         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
80650         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
80651         * tests/unistdio/test-u8-printf1.h: Likewise.
80652         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
80653         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
80654         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
80655         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
80656         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
80657         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
80658         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
80659         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
80660         * tests/unistdio/test-ulc-printf1.h: Likewise.
80661         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
80662         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
80663         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
80664         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
80665         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
80666         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
80667         * tests/uniwidth/test-u16-strwidth.c: Likewise.
80668         * tests/uniwidth/test-u16-width.c: Likewise.
80669         * tests/uniwidth/test-u32-strwidth.c: Likewise.
80670         * tests/uniwidth/test-u32-width.c: Likewise.
80671         * tests/uniwidth/test-u8-strwidth.c: Likewise.
80672         * tests/uniwidth/test-u8-width.c: Likewise.
80673         * tests/uniwidth/test-uc_width.c: Likewise.
80674         * config/srclist-update: Likewise.
80675         (fixlicense): Update to GPLv3+.
80677         Change copyright notice from LGPLv2.1+ to LGPLv3+.
80678         * tests/test-tsearch.c: Change copyright notice.
80680         Change copyright notice from LGPLv2.0+ to LGPLv3+.
80681         * lib/c-strcaseeq.h: Change copyright notice.
80682         * lib/streq.h: Likewise.
80683         * lib/uniconv.h: Likewise.
80684         * lib/uniconv/u-conv-from-enc.h: Likewise.
80685         * lib/uniconv/u-conv-to-enc.h: Likewise.
80686         * lib/uniconv/u-strconv-from-enc.h: Likewise.
80687         * lib/uniconv/u-strconv-to-enc.h: Likewise.
80688         * lib/uniconv/u16-conv-from-enc.c: Likewise.
80689         * lib/uniconv/u16-conv-to-enc.c: Likewise.
80690         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
80691         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
80692         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
80693         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
80694         * lib/uniconv/u32-conv-from-enc.c: Likewise.
80695         * lib/uniconv/u32-conv-to-enc.c: Likewise.
80696         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
80697         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
80698         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
80699         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
80700         * lib/uniconv/u8-conv-from-enc.c: Likewise.
80701         * lib/uniconv/u8-conv-to-enc.c: Likewise.
80702         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
80703         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
80704         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
80705         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
80706         * lib/uniname.h: Likewise.
80707         * lib/uniname/uniname.c: Likewise.
80708         * lib/unistdio.h: Likewise.
80709         * lib/unistdio/u-asnprintf.h: Likewise.
80710         * lib/unistdio/u-asprintf.h: Likewise.
80711         * lib/unistdio/u-printf-args.c: Likewise.
80712         * lib/unistdio/u-printf-args.h: Likewise.
80713         * lib/unistdio/u-printf-parse.h: Likewise.
80714         * lib/unistdio/u-snprintf.h: Likewise.
80715         * lib/unistdio/u-sprintf.h: Likewise.
80716         * lib/unistdio/u-vasprintf.h: Likewise.
80717         * lib/unistdio/u-vsnprintf.h: Likewise.
80718         * lib/unistdio/u-vsprintf.h: Likewise.
80719         * lib/unistdio/u16-asnprintf.c: Likewise.
80720         * lib/unistdio/u16-asprintf.c: Likewise.
80721         * lib/unistdio/u16-printf-parse.c: Likewise.
80722         * lib/unistdio/u16-snprintf.c: Likewise.
80723         * lib/unistdio/u16-sprintf.c: Likewise.
80724         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
80725         * lib/unistdio/u16-u16-asprintf.c: Likewise.
80726         * lib/unistdio/u16-u16-snprintf.c: Likewise.
80727         * lib/unistdio/u16-u16-sprintf.c: Likewise.
80728         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
80729         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
80730         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
80731         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
80732         * lib/unistdio/u16-vasnprintf.c: Likewise.
80733         * lib/unistdio/u16-vasprintf.c: Likewise.
80734         * lib/unistdio/u16-vsnprintf.c: Likewise.
80735         * lib/unistdio/u16-vsprintf.c: Likewise.
80736         * lib/unistdio/u32-asnprintf.c: Likewise.
80737         * lib/unistdio/u32-asprintf.c: Likewise.
80738         * lib/unistdio/u32-printf-parse.c: Likewise.
80739         * lib/unistdio/u32-snprintf.c: Likewise.
80740         * lib/unistdio/u32-sprintf.c: Likewise.
80741         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
80742         * lib/unistdio/u32-u32-asprintf.c: Likewise.
80743         * lib/unistdio/u32-u32-snprintf.c: Likewise.
80744         * lib/unistdio/u32-u32-sprintf.c: Likewise.
80745         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
80746         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
80747         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
80748         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
80749         * lib/unistdio/u32-vasnprintf.c: Likewise.
80750         * lib/unistdio/u32-vasprintf.c: Likewise.
80751         * lib/unistdio/u32-vsnprintf.c: Likewise.
80752         * lib/unistdio/u32-vsprintf.c: Likewise.
80753         * lib/unistdio/u8-asnprintf.c: Likewise.
80754         * lib/unistdio/u8-asprintf.c: Likewise.
80755         * lib/unistdio/u8-printf-parse.c: Likewise.
80756         * lib/unistdio/u8-snprintf.c: Likewise.
80757         * lib/unistdio/u8-sprintf.c: Likewise.
80758         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
80759         * lib/unistdio/u8-u8-asprintf.c: Likewise.
80760         * lib/unistdio/u8-u8-snprintf.c: Likewise.
80761         * lib/unistdio/u8-u8-sprintf.c: Likewise.
80762         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
80763         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
80764         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
80765         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
80766         * lib/unistdio/u8-vasnprintf.c: Likewise.
80767         * lib/unistdio/u8-vasprintf.c: Likewise.
80768         * lib/unistdio/u8-vsnprintf.c: Likewise.
80769         * lib/unistdio/u8-vsprintf.c: Likewise.
80770         * lib/unistdio/ulc-asnprintf.c: Likewise.
80771         * lib/unistdio/ulc-asprintf.c: Likewise.
80772         * lib/unistdio/ulc-printf-parse.c: Likewise.
80773         * lib/unistdio/ulc-snprintf.c: Likewise.
80774         * lib/unistdio/ulc-sprintf.c: Likewise.
80775         * lib/unistdio/ulc-vasnprintf.c: Likewise.
80776         * lib/unistdio/ulc-vasprintf.c: Likewise.
80777         * lib/unistdio/ulc-vsnprintf.c: Likewise.
80778         * lib/unistdio/ulc-vsprintf.c: Likewise.
80779         * lib/unistr.h: Likewise.
80780         * lib/unistr/u-cpy-alloc.h: Likewise.
80781         * lib/unistr/u-cpy.h: Likewise.
80782         * lib/unistr/u-endswith.h: Likewise.
80783         * lib/unistr/u-move.h: Likewise.
80784         * lib/unistr/u-set.h: Likewise.
80785         * lib/unistr/u-startswith.h: Likewise.
80786         * lib/unistr/u-stpcpy.h: Likewise.
80787         * lib/unistr/u-stpncpy.h: Likewise.
80788         * lib/unistr/u-strcat.h: Likewise.
80789         * lib/unistr/u-strcpy.h: Likewise.
80790         * lib/unistr/u-strcspn.h: Likewise.
80791         * lib/unistr/u-strdup.h: Likewise.
80792         * lib/unistr/u-strlen.h: Likewise.
80793         * lib/unistr/u-strncat.h: Likewise.
80794         * lib/unistr/u-strncpy.h: Likewise.
80795         * lib/unistr/u-strnlen.h: Likewise.
80796         * lib/unistr/u-strpbrk.h: Likewise.
80797         * lib/unistr/u-strspn.h: Likewise.
80798         * lib/unistr/u-strstr.h: Likewise.
80799         * lib/unistr/u-strtok.h: Likewise.
80800         * lib/unistr/u16-check.c: Likewise.
80801         * lib/unistr/u16-chr.c: Likewise.
80802         * lib/unistr/u16-cmp.c: Likewise.
80803         * lib/unistr/u16-cpy-alloc.c: Likewise.
80804         * lib/unistr/u16-cpy.c: Likewise.
80805         * lib/unistr/u16-endswith.c: Likewise.
80806         * lib/unistr/u16-mblen.c: Likewise.
80807         * lib/unistr/u16-mbsnlen.c: Likewise.
80808         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80809         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80810         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80811         * lib/unistr/u16-mbtouc.c: Likewise.
80812         * lib/unistr/u16-mbtoucr.c: Likewise.
80813         * lib/unistr/u16-move.c: Likewise.
80814         * lib/unistr/u16-next.c: Likewise.
80815         * lib/unistr/u16-prev.c: Likewise.
80816         * lib/unistr/u16-set.c: Likewise.
80817         * lib/unistr/u16-startswith.c: Likewise.
80818         * lib/unistr/u16-stpcpy.c: Likewise.
80819         * lib/unistr/u16-stpncpy.c: Likewise.
80820         * lib/unistr/u16-strcat.c: Likewise.
80821         * lib/unistr/u16-strchr.c: Likewise.
80822         * lib/unistr/u16-strcmp.c: Likewise.
80823         * lib/unistr/u16-strcpy.c: Likewise.
80824         * lib/unistr/u16-strcspn.c: Likewise.
80825         * lib/unistr/u16-strdup.c: Likewise.
80826         * lib/unistr/u16-strlen.c: Likewise.
80827         * lib/unistr/u16-strmblen.c: Likewise.
80828         * lib/unistr/u16-strmbtouc.c: Likewise.
80829         * lib/unistr/u16-strncat.c: Likewise.
80830         * lib/unistr/u16-strncmp.c: Likewise.
80831         * lib/unistr/u16-strncpy.c: Likewise.
80832         * lib/unistr/u16-strnlen.c: Likewise.
80833         * lib/unistr/u16-strpbrk.c: Likewise.
80834         * lib/unistr/u16-strrchr.c: Likewise.
80835         * lib/unistr/u16-strspn.c: Likewise.
80836         * lib/unistr/u16-strstr.c: Likewise.
80837         * lib/unistr/u16-strtok.c: Likewise.
80838         * lib/unistr/u16-to-u32.c: Likewise.
80839         * lib/unistr/u16-to-u8.c: Likewise.
80840         * lib/unistr/u16-uctomb-aux.c: Likewise.
80841         * lib/unistr/u16-uctomb.c: Likewise.
80842         * lib/unistr/u32-check.c: Likewise.
80843         * lib/unistr/u32-chr.c: Likewise.
80844         * lib/unistr/u32-cmp.c: Likewise.
80845         * lib/unistr/u32-cpy-alloc.c: Likewise.
80846         * lib/unistr/u32-cpy.c: Likewise.
80847         * lib/unistr/u32-endswith.c: Likewise.
80848         * lib/unistr/u32-mblen.c: Likewise.
80849         * lib/unistr/u32-mbsnlen.c: Likewise.
80850         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80851         * lib/unistr/u32-mbtouc.c: Likewise.
80852         * lib/unistr/u32-mbtoucr.c: Likewise.
80853         * lib/unistr/u32-move.c: Likewise.
80854         * lib/unistr/u32-next.c: Likewise.
80855         * lib/unistr/u32-prev.c: Likewise.
80856         * lib/unistr/u32-set.c: Likewise.
80857         * lib/unistr/u32-startswith.c: Likewise.
80858         * lib/unistr/u32-stpcpy.c: Likewise.
80859         * lib/unistr/u32-stpncpy.c: Likewise.
80860         * lib/unistr/u32-strcat.c: Likewise.
80861         * lib/unistr/u32-strchr.c: Likewise.
80862         * lib/unistr/u32-strcmp.c: Likewise.
80863         * lib/unistr/u32-strcpy.c: Likewise.
80864         * lib/unistr/u32-strcspn.c: Likewise.
80865         * lib/unistr/u32-strdup.c: Likewise.
80866         * lib/unistr/u32-strlen.c: Likewise.
80867         * lib/unistr/u32-strmblen.c: Likewise.
80868         * lib/unistr/u32-strmbtouc.c: Likewise.
80869         * lib/unistr/u32-strncat.c: Likewise.
80870         * lib/unistr/u32-strncmp.c: Likewise.
80871         * lib/unistr/u32-strncpy.c: Likewise.
80872         * lib/unistr/u32-strnlen.c: Likewise.
80873         * lib/unistr/u32-strpbrk.c: Likewise.
80874         * lib/unistr/u32-strrchr.c: Likewise.
80875         * lib/unistr/u32-strspn.c: Likewise.
80876         * lib/unistr/u32-strstr.c: Likewise.
80877         * lib/unistr/u32-strtok.c: Likewise.
80878         * lib/unistr/u32-to-u16.c: Likewise.
80879         * lib/unistr/u32-to-u8.c: Likewise.
80880         * lib/unistr/u32-uctomb.c: Likewise.
80881         * lib/unistr/u8-check.c: Likewise.
80882         * lib/unistr/u8-chr.c: Likewise.
80883         * lib/unistr/u8-cmp.c: Likewise.
80884         * lib/unistr/u8-cpy-alloc.c: Likewise.
80885         * lib/unistr/u8-cpy.c: Likewise.
80886         * lib/unistr/u8-endswith.c: Likewise.
80887         * lib/unistr/u8-mblen.c: Likewise.
80888         * lib/unistr/u8-mbsnlen.c: Likewise.
80889         * lib/unistr/u8-mbtouc-aux.c: Likewise.
80890         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80891         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80892         * lib/unistr/u8-mbtouc.c: Likewise.
80893         * lib/unistr/u8-mbtoucr.c: Likewise.
80894         * lib/unistr/u8-move.c: Likewise.
80895         * lib/unistr/u8-next.c: Likewise.
80896         * lib/unistr/u8-prev.c: Likewise.
80897         * lib/unistr/u8-set.c: Likewise.
80898         * lib/unistr/u8-startswith.c: Likewise.
80899         * lib/unistr/u8-stpcpy.c: Likewise.
80900         * lib/unistr/u8-stpncpy.c: Likewise.
80901         * lib/unistr/u8-strcat.c: Likewise.
80902         * lib/unistr/u8-strchr.c: Likewise.
80903         * lib/unistr/u8-strcmp.c: Likewise.
80904         * lib/unistr/u8-strcpy.c: Likewise.
80905         * lib/unistr/u8-strcspn.c: Likewise.
80906         * lib/unistr/u8-strdup.c: Likewise.
80907         * lib/unistr/u8-strlen.c: Likewise.
80908         * lib/unistr/u8-strmblen.c: Likewise.
80909         * lib/unistr/u8-strmbtouc.c: Likewise.
80910         * lib/unistr/u8-strncat.c: Likewise.
80911         * lib/unistr/u8-strncmp.c: Likewise.
80912         * lib/unistr/u8-strncpy.c: Likewise.
80913         * lib/unistr/u8-strnlen.c: Likewise.
80914         * lib/unistr/u8-strpbrk.c: Likewise.
80915         * lib/unistr/u8-strrchr.c: Likewise.
80916         * lib/unistr/u8-strspn.c: Likewise.
80917         * lib/unistr/u8-strstr.c: Likewise.
80918         * lib/unistr/u8-strtok.c: Likewise.
80919         * lib/unistr/u8-to-u16.c: Likewise.
80920         * lib/unistr/u8-to-u32.c: Likewise.
80921         * lib/unistr/u8-uctomb-aux.c: Likewise.
80922         * lib/unistr/u8-uctomb.c: Likewise.
80923         * lib/unitypes.h: Likewise.
80924         * lib/uniwidth.h: Likewise.
80925         * lib/uniwidth/cjk.h: Likewise.
80926         * lib/uniwidth/u16-strwidth.c: Likewise.
80927         * lib/uniwidth/u16-width.c: Likewise.
80928         * lib/uniwidth/u32-strwidth.c: Likewise.
80929         * lib/uniwidth/u32-width.c: Likewise.
80930         * lib/uniwidth/u8-strwidth.c: Likewise.
80931         * lib/uniwidth/u8-width.c: Likewise.
80932         * lib/uniwidth/width.c: Likewise.
80934 2007-10-07  Bruno Haible  <bruno@clisp.org>
80936         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
80937         The file is still under LGPL (see modules/inttypes).
80939 2007-10-06  Bruno Haible  <bruno@clisp.org>
80941         * modules/trunc (Dependencies): Add 'extensions'.
80942         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
80943         Reported by Ben Pfaff <blp@gnu.org>.
80945 2007-10-06  Bruno Haible  <bruno@clisp.org>
80947         * modules/freopen-tests: New file.
80948         * tests/test-freopen.c: New file.
80950         * modules/fopen-tests: New file.
80951         * tests/test-fopen.c: New file.
80953         * modules/fopen: New file.
80954         * lib/fopen.c: New file.
80955         * m4/fopen.m4: New file.
80956         * modules/freopen: New file.
80957         * lib/freopen.c: New file.
80958         * m4/freopen.m4: New file.
80959         * lib/stdio.in.h (fopen, freopen): New declarations.
80960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
80961         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
80962         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
80963         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
80964         * doc/functions/fopen.texi: Mention the 'fopen' module.
80965         * doc/functions/freopen.texi: Mention the 'freopen' module.
80967 2007-10-06  Bruno Haible  <bruno@clisp.org>
80969         * modules/open-tests: New file.
80970         * tests/test-open.c: New file.
80972         * modules/open: New file.
80973         * lib/open.c: New file.
80974         * m4/open.m4: New file.
80975         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
80976         lib/open.c does.
80977         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
80978         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
80979         macros.
80980         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
80981         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
80982         REPLACE_OPEN.
80983         * doc/functions/open.texi: Mention the 'open' module.
80985 2007-10-04  Bruno Haible  <bruno@clisp.org>
80987         * modules/ceill-tests: New file.
80988         * tests/test-ceill.c: New file.
80990         * modules/ceill: New file.
80991         * lib/ceill.c: Replace entire file.
80992         * m4/ceill.m4: New file.
80993         * lib/math.in.h (ceill): Replace declaration.
80994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
80995         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
80996         * doc/functions/ceill.texi: Mention the 'ceill' module.
80997         * modules/mathl (Files): Remove lib/ceill.c.
80998         (Depends-on): Add ceill.
81000 2007-10-04  Bruno Haible  <bruno@clisp.org>
81002         * modules/ceilf-tests: New file.
81003         * tests/test-ceilf.c: New file.
81005         * modules/ceilf: New file.
81006         * lib/ceil.c: New file.
81007         * lib/ceilf.c: New file.
81008         * m4/ceilf.m4: New file.
81009         * lib/math.in.h (ceilf): New declaration.
81010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
81011         HAVE_DECL_CEILF.
81012         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
81013         HAVE_DECL_CEILF.
81014         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
81016 2007-10-04  Bruno Haible  <bruno@clisp.org>
81018         * modules/floorl-tests: New file.
81019         * tests/test-floorl.c: New file.
81021         * modules/floorl: New file.
81022         * lib/floorl.c: Replace entire file.
81023         * m4/floorl.m4: New file.
81024         * lib/math.in.h (floorl): Replace declaration.
81025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
81026         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
81027         * doc/functions/floorl.texi: Mention the 'floorl' module.
81028         * modules/mathl (Files): Remove lib/floorl.c.
81029         (Depends-on): Add floorl.
81031 2007-10-04  Bruno Haible  <bruno@clisp.org>
81033         * modules/floorf-tests: New file.
81034         * tests/test-floorf.c: New file.
81036         * modules/floorf: New file.
81037         * lib/floor.c: New file.
81038         * lib/floorf.c: New file.
81039         * m4/floorf.m4: New file.
81040         * lib/math.in.h (floorf): New declaration.
81041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
81042         HAVE_DECL_FLOORF.
81043         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
81044         HAVE_DECL_FLOORF.
81045         * doc/functions/floorf.texi: Mention the 'floorf' module.
81047 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
81048             Bruno Haible  <bruno@clisp.org>
81050         Advertise for the Git server instead of the CVS server.
81051         * doc/gnulib-intro.texi (Steady Development): Mention the Git
81052         repository instead of the CVS one.
81053         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
81054         about all VCS systems generically.
81055         * doc/gnulib.texi (Introduction): Capitalize `Git'.
81057 2007-10-04  Bruno Haible  <bruno@clisp.org>
81059         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
81060         means.
81061         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
81063 2007-10-04  Bruno Haible  <bruno@clisp.org>
81065         * modules/truncl-tests: New file.
81066         * tests/test-truncl.c: New file.
81068         * modules/truncl: New file.
81069         * lib/truncl.c: New file.
81070         * m4/truncl.m4: New file.
81071         * lib/math.in.h (truncl): New declaration.
81072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
81073         HAVE_DECL_TRUNCL.
81074         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
81075         HAVE_DECL_TRUNCL.
81076         * doc/functions/truncl.texi: Mention the 'truncl' module.
81078 2007-10-04  Bruno Haible  <bruno@clisp.org>
81080         * modules/truncf-tests: New file.
81081         * tests/test-truncf.c: New file.
81083         * modules/truncf: New file.
81084         * lib/trunc.c: Make paramerizable through USE_* macros.
81085         * lib/truncf.c: New file.
81086         * m4/truncf.m4: New file.
81087         * lib/math.in.h (truncf): New declaration.
81088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
81089         HAVE_DECL_TRUNCF.
81090         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
81091         HAVE_DECL_TRUNCF.
81092         * doc/functions/truncf.texi: Mention the 'truncf' module.
81094 2007-10-03  Bruno Haible  <bruno@clisp.org>
81096         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
81097         augmentation also for tests modules.
81098         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
81099         * modules/atexit-tests (Makefile.am): Likewise.
81100         * modules/binary-io-tests (Makefile.am): Likewise.
81101         * modules/c-strcase-tests (Makefile.am): Likewise.
81102         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
81103         * modules/canonicalize-tests (Makefile.am): Likewise.
81104         * modules/closein-tests (Makefile.am): Likewise.
81105         * modules/fprintf-posix-tests (Makefile.am): Likewise.
81106         * modules/freadahead-tests (Makefile.am): Likewise.
81107         * modules/fseek-tests (Makefile.am): Likewise.
81108         * modules/fseeko-tests (Makefile.am): Likewise.
81109         * modules/ftell-tests (Makefile.am): Likewise.
81110         * modules/ftello-tests (Makefile.am): Likewise.
81111         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
81112         * modules/isnanl-tests (Makefile.am): Likewise.
81113         * modules/lseek-tests (Makefile.am): Likewise.
81114         * modules/mbscasecmp-tests (Makefile.am): Likewise.
81115         * modules/mbscasestr-tests (Makefile.am): Likewise.
81116         * modules/mbschr-tests (Makefile.am): Likewise.
81117         * modules/mbscspn-tests (Makefile.am): Likewise.
81118         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
81119         * modules/mbspbrk-tests (Makefile.am): Likewise.
81120         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
81121         * modules/mbsrchr-tests (Makefile.am): Likewise.
81122         * modules/mbsspn-tests (Makefile.am): Likewise.
81123         * modules/mbsstr-tests (Makefile.am): Likewise.
81124         * modules/printf-posix-tests (Makefile.am): Likewise.
81125         * modules/snprintf-posix-tests (Makefile.am): Likewise.
81126         * modules/sprintf-posix-tests (Makefile.am): Likewise.
81127         * modules/tsearch-tests (Makefile.am): Likewise.
81128         * modules/uniname/uniname-tests (Makefile.am): Likewise.
81129         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
81130         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
81131         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
81132         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
81133         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
81134         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
81135         * modules/vprintf-posix-tests (Makefile.am): Likewise.
81136         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
81137         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
81138         * modules/xstrtoimax-tests (Makefile.am): Likewise.
81139         * modules/xstrtol-tests (Makefile.am): Likewise.
81140         * modules/xstrtoumax-tests (Makefile.am): Likewise.
81141         * modules/yesno-tests (Makefile.am): Likewise.
81143 2007-10-03  Bruno Haible  <bruno@clisp.org>
81145         * modules/trunc-tests: New file.
81146         * tests/test-trunc.c: New file.
81148         * modules/trunc: New file.
81149         * lib/trunc.c: New file.
81150         * m4/trunc.m4: New file.
81151         * lib/math.in.h (trunc): New declaration.
81152         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
81153         HAVE_DECL_TRUNC.
81154         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
81155         HAVE_DECL_TRUNC.
81156         * doc/functions/trunc.texi: Mention the 'trunc' module.
81158 2007-10-03  Bruno Haible  <bruno@clisp.org>
81160         * tests/test-fpending.c: New file, mostly copied
81161         from coreutils/lib/t-fpending.c.
81162         * modules/fpending-tests: New file.
81164 2007-10-03  Bruno Haible  <bruno@clisp.org>
81166         Port the stdio extensions to QNX (untested).
81167         * lib/fseterr.c (fseterr): Add support for QNX.
81168         * lib/fbufmode.c (fbufmode): Likewise.
81169         * lib/freadable.c (freadable): Likewise.
81170         * lib/fwritable.c (fwritable): Likewise.
81171         * lib/freading.c (freading): Likewise.
81172         * lib/fwriting.c (fwriting): Likewise.
81173         * lib/freadahead.c (freadahed): Likewise.
81174         * lib/fpurge.c (fpurge): Likewise.
81175         * lib/fseeko.c (rpl_fseeko): Likewise.
81177 2007-10-03  Bruno Haible  <bruno@clisp.org>
81178             Jim Meyering  <jim@meyering.net>
81179             Eric Blake  <ebb9@byu.net>
81181         * doc/relocatable.texi: Use @command instead of @program.
81183 2007-10-02  Jim Meyering  <jim@meyering.net>
81185         Perform one more "_.h" -> ".in.h" substitution.
81186         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
81187         instead of unistd_.h here, too.
81189 2007-10-01  Bruno Haible  <bruno@clisp.org>
81191         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
81192         Needed for the alloca-opt module.
81194 2007-09-30  Bruno Haible  <bruno@clisp.org>
81196         * lib/alloca.in.h: Renamed from lib/alloca_.h.
81197         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
81198         alloca_.h.
81199         * lib/argz.in.h: Renamed from lib/argz_.h.
81200         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
81201         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
81202         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
81203         byteswap_.h.
81204         * lib/dirent.in.h: Renamed from lib/dirent_.h.
81205         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
81206         dirent_.h.
81207         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
81208         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
81209         fcntl_.h.
81210         * lib/float.in.h: Renamed from lib/float_.h.
81211         * modules/float (Files, Makefile.am): Use float.in.h instead of
81212         float_.h.
81213         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
81214         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
81215         fnmatch_.h.
81216         * lib/getopt.in.h: Renamed from lib/getopt_.h.
81217         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
81218         getopt_.h.
81219         * lib/glob.in.h: Renamed from lib/glob_.h.
81220         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
81221         * lib/iconv.in.h: Renamed from lib/iconv_.h.
81222         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
81223         iconv_.h.
81224         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
81225         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
81226         inttypes_.h.
81227         * lib/locale.in.h: Renamed from lib/locale_.h.
81228         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
81229         locale_.h.
81230         * lib/math.in.h: Renamed from lib/math_.h.
81231         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
81232         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
81233         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
81234         of netinet_in_.h. Add dependency.
81235         * lib/poll.in.h: Renamed from lib/poll_.h.
81236         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
81237         * lib/search.in.h: Renamed from lib/search_.h.
81238         * modules/search (Files, Makefile.am): Use search.in.h instead of
81239         search_.h.
81240         * lib/signal.in.h: Renamed from lib/signal_.h.
81241         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
81242         _signal.h.
81243         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
81244         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
81245         stdbool_.h.
81246         * lib/stdint.in.h: Renamed from lib/stdint_.h.
81247         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
81248         stdint_.h.
81249         * lib/stdio.in.h: Renamed from lib/stdio_.h.
81250         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
81251         stdio_.h.
81252         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
81253         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
81254         stdlib_.h.
81255         * lib/string.in.h: Renamed from lib/string_.h.
81256         * modules/string (Files, Makefile.am): Use string.in.h instead of
81257         string_.h.
81258         * doc/gnulib-tool.texi (Initial import): Update.
81259         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
81260         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
81261         of sys_select_.h. Add dependency.
81262         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
81263         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
81264         of sys_socket_.h.
81265         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
81266         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
81267         sys_stat_.h.
81268         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
81269         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
81270         sys_time_.h.
81271         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
81272         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
81273         sysexits_.h.
81274         * lib/time.in.h: Renamed from lib/time_.h.
81275         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
81276         * lib/unistd.in.h: Renamed from lib/unistd_.h.
81277         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
81278         unistd_.h.
81279         * lib/wchar.in.h: Renamed from lib/wchar_.h.
81280         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
81281         wchar_.h.
81282         * lib/wctype.in.h: Renamed from lib/wctype_.h.
81283         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
81284         wctype_.h.
81285         * build-aux/bootstrap (slurp): Update.
81286         * lib/.cppi-disable: Update.
81288 2007-09-30  Bruno Haible  <bruno@clisp.org>
81290         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
81291         Needed on BeOS.
81293 2007-09-30  Bruno Haible  <bruno@clisp.org>
81295         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
81297 2007-09-29  Bruno Haible  <bruno@clisp.org>
81299         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
81301 2007-09-29  Bruno Haible  <bruno@clisp.org>
81303         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
81304         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
81305         * build-aux/install-reloc: Compile also areadlink.c.
81306         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
81308 2007-09-29  Bruno Haible  <bruno@clisp.org>
81310         * gnulib-tool (func_emit_initmacro_done): Indentation.
81312 2007-09-29  Bruno Haible  <bruno@clisp.org>
81314         * README: Add CVS checkout update instructions.
81315         Info from Bob Proulx <bob@proulx.com>.
81317 2007-09-28  Eric Blake  <ebb9@byu.net>
81319         Provide move-if-change.
81320         * build-aux/move-if-change: New file, based on best practice
81321         rather than any canonical upstream location.
81323 2007-09-28  Jim Meyering  <jim@meyering.net>
81325         Fix canonicalize loop-detection corner case.
81326         Do not attempt to stat the symlink values stored via seen_triple.
81327         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
81328         on linux-2.6.18, (but not 2.6.22).
81329         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
81330         triple_compare.  The former compares dev,ino,filename, while the latter
81331         would actually stat dirname(filename) when dev and ino were equal.
81332         * lib/hash-triple.c: Install <string.h>.
81333         (STREQ): Define.
81334         (triple_compare_ino_str): New function.
81335         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
81337 2007-09-28  Eric Blake  <ebb9@byu.net>
81339         Enforce that AC_REPLACE_FUNCS files exist.
81340         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
81341         override check for typos.
81343         Fix test-closein on Solaris 10.
81344         * tests/test-closein.c (main): Don't assume stdin can be inherited
81345         closed on all systems.
81346         * tests/test-closein.sh: Likewise.
81347         Reported by Piotr Tarnowski.
81349 2007-09-28  Jim Meyering  <jim@meyering.net>
81351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
81353 2007-09-27  Jim Meyering  <jim@meyering.net>
81355         canonicalize: Avoid a false-positive cycle failure.
81356         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
81357         Sort.  Remove cycle-check.
81358         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
81359         not cycle-check.h.
81360         (seen_triple): New function.
81361         (canonicalize_filename_mode): Use it instead of cycle-check.
81362         * tests/test-canonicalize.c: Add a test for this bug.
81363         * tests/test-canonicalize.sh: Set up and run the test.
81365         New module, file-set, from coreutils.
81366         * modules/file-set: Define it.
81367         * lib/file-set.c, lib/file-set.h: Implement.
81369         New module, hash-triple, from coreutils.
81370         * modules/hash-triple: Define it.
81371         * lib/hash-triple.c, lib/hash-triple.h: Implement.
81373 2007-09-25  Eric Blake  <ebb9@byu.net>
81375         Fix strerror on Interix.
81376         * lib/string_.h (strerror): Declare replacement.
81377         * doc/functions/strerror.texi (strerror): Document the Interix
81378         shortcoming.
81379         * modules/string (Makefile.am): Support new hooks.
81380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
81381         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
81382         gl_FUNC_STRERROR_SEPARATE.
81383         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
81384         * lib/strerror.c (rpl_strerror): Provide replacement.
81385         * modules/strerror (Depends-on): Add string.
81386         (configure.ac): Detect use of module.
81387         * tests/test-strerror.c: New file.
81388         * modules/strerror-tests: New test module.
81389         * modules/argp (Depends-on): Add strerror.
81390         * modules/error (Depends-on): Likewise.
81391         Reported by Martin Koeppe.
81393 2007-09-24  Bruno Haible  <bruno@clisp.org>
81395         * README: Update git instructions.
81397 2007-09-24  Eric Blake  <ebb9@byu.net>
81399         Revert fpending breakage from 2007-09-08.
81400         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
81401         __fpending.c.
81403 2007-09-24  Jim Meyering  <jim@meyering.net>
81405         filenamecat.c: Add a test.
81406         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
81407         showing how the function works when DIR is the empty string.
81409 2007-09-21  Simon Josefsson  <simon@josefsson.org>
81411         * tests/test-canonicalize.sh: Turn on executable bit.
81413 2007-09-19  Eric Blake  <ebb9@byu.net>
81415         * README: Update CVS instructions.
81417 2007-09-18  Bruno Haible  <bruno@clisp.org>
81419         * modules/areadlink: New file.
81420         * lib/areadlink.h (areadlink): New declaration.
81421         * lib/areadlink.c: New file, based on lib/xreadlink.c.
81423 2007-09-17  Jim Meyering  <jim@meyering.net>
81425         * lib/savewd.c (ESTALE) [!defined]: Define.
81426         Reported to be required on Interix by Martin Koeppe.
81428 2007-09-17  Bruno Haible  <bruno@clisp.org>
81430         * gnulib-tool (func_version): Use $version.
81432 2007-09-16  Bruno Haible  <bruno@clisp.org>
81434         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
81435         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
81436         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
81437         Reported by Greg Schafer <gschafer@zip.com.au>.
81439 2007-09-15  Bruno Haible  <bruno@clisp.org>
81441         * gnulib-tool (sed): Try a little harder to make bash understand the
81442         alias.
81443         Reported by Bruce Korb <bruce.korb@gmail.com>.
81445 2007-09-13  Eric Blake  <ebb9@byu.net>
81447         * ChangeLog: Remove conflict markers.
81449 2007-09-13  Simon Josefsson  <simon@josefsson.org>
81451         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
81452         Reported by Bruno Haible <bruno@clisp.org>.
81454 2007-09-12  Bruno Haible  <bruno@clisp.org>
81456         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
81457         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
81458         is not defined.
81460 2007-09-12  Eric Blake  <ebb9@byu.net>
81462         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
81463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
81464         Autoconf definition.
81465         * modules/euidaccess (Depends-on): Add extensions, for
81466         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
81467         * modules/fnmatch (Depends-on): Likewise.
81468         * modules/getaddrinfo (Depends-on): Likewise.
81469         * modules/getdelim (Depends-on): Likewise.
81470         * modules/getline (Depends-on): Likewise.
81471         * modules/getsubopt (Depends-on): Likewise.
81472         * modules/gettext (Depends-on): Likewise.
81473         * modules/group-member (Depends-on): Likewise.
81474         * modules/mbchar (Depends-on): Likewise.
81475         * modules/memmem (Depends-on): Likewise.
81476         * modules/mempcpy (Depends-on): Likewise.
81477         * modules/memrchr (Depends-on): Likewise.
81478         * modules/pagealign_alloc (Depends-on): Likewise.
81479         * modules/readutmp (Depends-on): Likewise.
81480         * modules/stpcpy (Depends-on): Likewise.
81481         * modules/stpncpy (Depends-on): Likewise.
81482         * modules/strchrnul (Depends-on): Likewise.
81483         * modules/strndup (Depends-on): Likewise.
81484         * modules/strsep (Depends-on): Likewise.
81485         * modules/strverscmp (Depends-on): Likewise.
81486         * modules/vasprintf (Depends-on): Likewise.
81487         * modules/wcwidth (Depends-on): Likewise.
81488         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
81489         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
81490         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
81491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
81492         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
81493         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81494         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
81495         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81496         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
81497         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
81498         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
81499         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
81500         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
81501         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
81502         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
81503         * m4/readutmp.m4 (gl_READUTMP): Likewise.
81504         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
81505         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
81506         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
81507         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
81508         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
81509         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
81510         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
81511         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
81512         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
81513         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
81514         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
81515         so that lock.m4 can be used in gettext without extensions module.
81517 2007-09-11  Bruno Haible  <bruno@clisp.org>
81519         * m4/isc-posix.m4: Remove file.
81520         Suggested by Eric Blake.
81522 2007-09-11  Eric Blake  <ebb9@byu.net>
81524         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
81526 2007-09-10  Bruno Haible  <bruno@clisp.org>
81528         * posix-modules: Fix typo in error message.
81529         Reported by Matt <mkraai@beckman.com>.
81531 2007-09-09  Bruno Haible  <bruno@clisp.org>
81533         * doc/functions/getdelim.texi: Update list of platforms lacking the
81534         function.
81535         * doc/functions/getline.texi: Likewise.
81537 2007-09-09  Jim Meyering  <jim@meyering.net>
81539         * lib/hash.c (hash_initialize): Detect calloc failure.
81540         Reported by Bruno Haible.
81542 2007-09-09  Bruno Haible  <bruno@clisp.org>
81544         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
81545         malloc or realloc fails.
81547 2007-09-09  Bruno Haible  <bruno@clisp.org>
81549         * modules/getcwd (Depends-on): Add malloc-posix.
81550         * modules/glob (Depends-on): Likewise.
81551         * modules/putenv (Depends-on): Likewise.
81552         * modules/strdup (Depends-on): Likewise.
81553         * modules/getdelim (Depends-on): Add realloc-posix.
81554         * modules/read-file (Depends-on): Likewise.
81556 2007-09-09  Bruno Haible  <bruno@clisp.org>
81558         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
81559         (gl_FUNC_MALLOC_POSIX): Require it.
81560         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
81561         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
81562         * modules/realloc (Files): Add m4/malloc.m4.
81563         * modules/calloc (Files): Likewise.
81565 2007-09-09  Bruno Haible  <bruno@clisp.org>
81567         * modules/malloc-posix: New file.
81568         * modules/malloc (Depends-on): Add malloc-posix.
81569         * lib/malloc.c: Include errno.h.
81570         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
81571         and a POSIX-compatible malloc into a single function. Set ENOMEM
81572         when returning NULL.
81573         * m4/malloc.m4: New file.
81574         * doc/functions/malloc.texi: Mention the malloc-posix module.
81575         * lib/stdlib_.h (malloc): New declaration.
81576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81577         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
81578         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
81579         and HAVE_MALLOC_POSIX.
81581 2007-09-09  Bruno Haible  <bruno@clisp.org>
81583         * modules/realloc-posix: New file.
81584         * modules/realloc (Depends-on): Add realloc-posix.
81585         * lib/realloc.c: Include errno.h.
81586         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
81587         and a POSIX-compatible realloc into a single function. Set ENOMEM
81588         when returning NULL.
81589         * m4/realloc.m4: New file.
81590         * doc/functions/realloc.texi: Mention the realloc-posix module.
81591         * lib/stdlib_.h (realloc): New declaration.
81592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81593         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
81594         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
81595         and HAVE_REALLOC_POSIX.
81597 2007-09-09  Bruno Haible  <bruno@clisp.org>
81599         * modules/calloc-posix: New file.
81600         * modules/calloc (Depends-on): Add calloc-posix.
81601         * lib/calloc.c: Include errno.h.
81602         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
81603         and a POSIX-compatible calloc into a single function. Set ENOMEM
81604         when returning NULL.
81605         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
81606         * doc/functions/calloc.texi: Mention the calloc-posix module.
81607         * lib/stdlib_.h (calloc): New declaration.
81608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81609         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
81610         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
81611         and HAVE_CALLOC_POSIX.
81613 2007-09-09  Bruno Haible  <bruno@clisp.org>
81615         Allow for modules to show an arbitrary notice.
81616         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
81617         * gnulib-tool: New option --extract-notice.
81618         (func_usage): Document it.
81619         (sed_extract_prog): Update.
81620         (func_get_notice): New function.
81621         (func_modules_notice): New function.
81622         (func_import, func_create_testdir): Invoke it.
81623         Suggested by Jim Meyering.
81625 2007-09-09  Bruno Haible  <bruno@clisp.org>
81627         * gnulib-tool: New options --verbose, --quiet.
81628         (func_usage): Document them.
81629         (verbose): New variable.
81630         (func_execute_command): New function.
81631         (func_import): Don't show the module list and the file list if
81632         $verbose < 0.
81633         (func_create_testdir): Likewise. Use func_execute_command.
81634         (func_create_megatestdir): Use func_execute_command.
81636 2007-09-08  Bruno Haible  <bruno@clisp.org>
81638         * gnulib-tool (func_import): Prefer rsync over wget when available,
81639         for fetching the PO files.
81641 2007-09-08  Bruno Haible  <bruno@clisp.org>
81643         * posix-modules: New file. Portions copied from gnulib-tool.
81644         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
81646 2007-09-08  Jim Meyering  <jim@meyering.net>
81648         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
81649         * lib/fpending.h: Rename from __fpending.h.
81650         * lib/fpending.c: Rename from __fpending.c.
81651         Include "fpending.h", not "__fpending.h".
81652         * lib/__fpending.h, lib/__fpending.c: Remove files.
81653         * modules/fpending (Files): Reflect new file names.
81654         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
81656 2007-09-08  Bruno Haible  <bruno@clisp.org>
81658         * m4/inttypes-h.m4: Remove stub file.
81660 2007-09-07  Simon Josefsson  <simon@josefsson.org>
81662         * doc/headers/stdint.texi: Discuss #include_next issue.
81664 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81666         * build-aux/bootstrap: Remove obsolete comment about wget --help.
81668 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81670         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
81671         in variable name.
81673 2007-09-03  Jim Meyering  <jim@meyering.net>
81675         New module: git-version-gen.
81676         * modules/git-version-gen: New file.
81678         Import changes from coreutils for bootstrap script.
81680         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
81682         bootstrap: uses rsync to download the .po files
81683         * build-aux/bootstrap (po_download_command_format): New global.
81684         (download_po_files): Use rsync.
81685         (update_po_files): Don't remove .po files after download,
81686         so future rsync runs can take advantage of the copies.
81688         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
81690         Solve the unnecessary-.po-file-regeneration problem once and for all.
81691         * build-aux/bootstrap (download_po_files): New function, renamed from
81692         get_translations.  Now, downloads, but doesn't update LINGUAS.
81693         (update_po_files): New function.
81695         bootstrap: Ignore more.
81696         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
81697         uniwidth to e.g., lib/.gitignore.
81698         (slurp): Handle the sys_stat_.h -> sys mapping, too.
81700         * build-aux/bootstrap: New setting: vc_ignore.
81701         (insert_sorted_if_absent): Create $file if absent.
81702         Adapt to new, possibly empty, list: $vc_ignore.
81704         bootstrap: generate more ignorable names
81705         * build-aux/bootstrap (slurp): When generating ignorable names,
81706         also map .sin to .sed, .gperf to .c, and .y to .c.
81708 2007-09-03  Jim Meyering  <jim@meyering.net>
81710         * build-aux/git-version-gen: New file, from coreutils.  For details, see
81711         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
81713 2007-09-02  Bruno Haible  <bruno@clisp.org>
81715         Fix mis-recognition of 'mcs' on QNX 6.
81716         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
81717         output contains the string "Mono".
81718         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
81719         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
81721 2007-09-01  Bruno Haible  <bruno@clisp.org>
81723         Fix collision between uniwidth/* and linebreak modules.
81724         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
81725         u32_width): Remove declarations.
81726         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
81727         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
81728         streq3, streq2, streq1, streq0): Remove functions.
81729         (STREQ): Remove macro.
81730         (is_cjk_encoding): Remove function.
81731         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
81732         (uc_width, u8_width, u16_width, u32_width): Remove functions.
81733         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
81734         * NEWS: Document the change.
81736 2007-09-01  Bruno Haible  <bruno@clisp.org>
81738         * lib/streq.h: Add double-inclusion guard.
81740 2007-09-01  Karl Berry  <karl@gnu.org>
81742         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
81744 2007-08-28  Jim Meyering  <jim@meyering.net>
81746         Rename mreadlink_with_size to areadlink_with_size.
81747         * NEWS: Document the change.
81748         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
81749         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
81750         * lib/mreadlink.h: Rename this to...
81751         * lib/areadlink.h: ...this.
81752         * modules/mreadlink-with-size: Rename this to...
81753         * modules/areadlink-with-size: ...this.
81754         * lib/canonicalize.c: Reflect the renaming.
81755         * modules/canonicalize: Likewise.
81757 2007-08-26  Bruno Haible  <bruno@clisp.org>
81759         * gnulib-tool (func_import): When deciding which files to remove,
81760         consider also dangling symbolic links.
81761         Reported by Eric Blake.
81763 2007-08-26  Bruno Haible  <bruno@clisp.org>
81765         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
81767 2007-08-23  Simon Josefsson  <simon@josefsson.org>
81769         * lib/readline.c: Don't include getline.h, the prototype is now
81770         found in stdio.h.
81772 2007-08-23  Jim Meyering  <jim@meyering.net>
81774         Getdelim touchup.
81775         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
81776         around the funlockfile call, since funlockfile never sets errno.
81777         Don't set errno upon failed realloc.
81779 2007-08-22  Eric Blake  <ebb9@byu.net>
81781         Getline touchups.
81782         * lib/getdelim.c (getdelim): Revert regression that required *n to
81783         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
81784         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
81785         getdelim, rather than whether implementation is missing.
81786         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
81787         * lib/stdio_.h (getline): Also declare if replacement is
81788         required.
81789         * doc/functions/getdelim.texi: New file.
81790         * doc/functions/getline.texi: Likewise.
81791         * doc/gnulib.texi (Function Substitutes): Add new files.
81792         Reported by Bruno Haible.
81794 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
81796         * users.txt: Add Guile.
81798 2007-08-22  Eric Blake  <ebb9@byu.net>
81800         * tests/test-getdelim.c (main): Use remove, not unlink.
81801         * tests/test-getline.c (main): Likewise.
81803         Move getline and getdelim into stdio.h, per POSIX 200x.
81804         * modules/getline (Files): Remove getline.h.
81805         (Depends-on): Add stdio.
81806         (configure.ac): Add module indicator.
81807         * modules/getdelim (Files): Remove getdelim.h.
81808         (Depends-on): Add stdio.
81809         (configure.ac): Add module indicator.
81810         * modules/stdio (Makefile.am): Work with new indicators.
81811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
81812         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
81813         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81814         * lib/getdelim.h: Delete.
81815         * lib/getline.h: Delete.
81816         * lib/stdio_.h (getdelim, getline): Declare.
81817         * modules/getdelim-tests: New module.
81818         * modules/getline-tests: Likewise.
81819         * tests/test-getdelim.c: New file.
81820         * tests/test-getline.c: Likewise.
81821         * NEWS: Document the change.
81822         * lib/getline.c: Update choice of header.
81823         * lib/csharpcomp.c: Likewise.
81824         * lib/getpass.c: Likewise.
81825         * lib/javacomp.c: Likewise.
81826         * lib/javaversion.c: Likewise.
81827         * lib/yesno.c: Likewise.
81828         * lib/getdelim.c: Likewise.
81829         (getdelim): Set errno on failure, and avoid memory leak.
81831 2007-08-19  Bruno Haible  <bruno@clisp.org>
81833         * modules/closein (Depends-on): Add freadahead.
81834         * lib/closein.c: Include freadahead.h.
81835         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
81836         is zero.
81838 2007-08-19  Bruno Haible  <bruno@clisp.org>
81840         * modules/freadahead-tests: New file.
81841         * tests/test-freadahead.sh: New file.
81842         * tests/test-freadahead.c: New file.
81844         * modules/freadahead: New file.
81845         * lib/freadahead.h: New file.
81846         * lib/freadahead.c: New file.
81847         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
81848         fbufmode, fpurge, freadable, fwritable.
81850 2007-08-19  Eric Blake  <ebb9@byu.net>
81852         Test yesno in combination with closein.
81853         * lib/yesno.c (yesno): Document use of stdin.
81854         * modules/yesno-tests (Files): New module.
81855         * tests/test-yesno.c (main): New file.
81856         * tests/test-yesno.sh: Likewise.
81858 2007-08-19  Bruno Haible  <bruno@clisp.org>
81860         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
81861         * lib/fseeko.c (rpl_fseeko): Likewise.
81862         * lib/fseterr.c (fseterr): Likewise.
81864 2007-08-19  Bruno Haible  <bruno@clisp.org>
81866         * tests/test-lseek.c (main): Disable a test for BeOS.
81867         * doc/functions/lseek.texi: Document the BeOS bug.
81869 2007-08-19  Bruno Haible  <bruno@clisp.org>
81870             Eric Blake  <ebb9@byu.net>
81872         * lib/lseek.c: Include <sys/stat.h>.
81873         (rpl_lseek): Add workaround code also for Unix platforms.
81874         Needed for BeOS.
81875         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
81876         * doc/functions/lseek.texi: Document BeOS definiency.
81878 2007-08-18  Bruno Haible  <bruno@clisp.org>
81880         * modules/fstrcmp-tests: New file.
81881         * tests/test-fstrcmp.c: New file.
81883 2007-08-18  Bruno Haible  <bruno@clisp.org>
81885         * modules/fstrcmp: New file, from GNU gettext with modifications.
81886         * lib/fstrcmp.h: New file, from GNU gettext.
81887         * lib/fstrcmp.c: New file, from GNU gettext.
81888         * MODULES.html.sh (String handling): Add fstrcmp.
81890 2007-08-18  Bruno Haible  <bruno@clisp.org>
81892         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
81893         'bool'.
81894         (diag, compareseq): Remove const from the ctxt argument.
81895         (USE_HEURISTIC): Undefine at the end.
81897 2007-08-18  Jim Meyering  <jim@meyering.net>
81899         New file: lib/idcache.h
81900         * NEWS: Mention the addition.
81901         * modules/idcache (Files): Add lib/idcache.h
81902         * lib/idcache.c: Include "idcache.h".
81903         Don't include <sys/types.h>.
81904         Add a FIXME comment.
81905         Move file-scoped "static" declarations to the top.
81906         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
81908 2007-08-17  Bruno Haible  <bruno@clisp.org>
81909         and Paul Eggert  <eggert@cs.ucla.edu>
81911         * MODULES.html.sh: Add diffseq.
81912         * modules/diffseq: New file.
81913         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
81914         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
81916 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81918         Import changes from coreutils for bootstrap script.
81920         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
81922         * build-aux/bootstrap (slurp): Work even in environments where
81923         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
81924         current code does not slurp files whose names start with ".", and
81925         this looks like it might be a troublesome area.
81927         2007-07-11  Jim Meyering  <jim@meyering.net>
81929         If there's a GPL vN copyright comment, require that N == 3.
81931         2007-07-08  Jim Meyering  <jim@meyering.net>
81933         Run the coreutils-specific code only if tests/Makefile.am.in exists.
81934         * build-aux/bootstrap (mam_template): Move definition out of loop.
81936         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
81938         * build-aux/bootstrap (symlink_to_dir): Rename function from
81939         symlink_to_gnulib.  Add a directory parameter.  Update all
81940         callers.
81941         (cp_mark_as_generated): Also check for -- and link to -- files in
81942         gl/.
81944         2007-07-08  Jim Meyering  <jim@meyering.net>
81946         Adapt to deeper hierarchy in gnulib.
81947         * build-aux/bootstrap (symlink_to_dir): If the destination
81948         directory doesn't exist, create it. This is required at least for
81949         "lib/uniwidth/cjk.h".
81951         2007-05-15  Jim Meyering  <jim@meyering.net>
81953         * build-aux/bootstrap: Now that generated Makefile.am files
81954         are no longer under version control, they must be created at
81955         bootstrap time.
81957 2007-08-14  Ben Pfaff  <blp@gnu.org>
81959         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
81961 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
81963         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
81964         given the changes below.
81965         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
81966         even on hosts that have padding bits beyond the supported 64.
81968 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
81970         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
81971         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
81972         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
81973         depends on it.
81974         (xstrtol_error): Remove.
81975         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
81976         but with a different signature.
81977         (ATTRIBUTE_NORETURN, __attribute__): New macros.
81978         * lib/xstrtol-error.c: Include exitfail.h.
81979         (xstrtol_fatal): New function, with a different signature from the
81980         old xstrtol_error, so that the caller need not worry about passing
81981         in an exit status, or about storage management of the option argument.
81982         (xstrtol_error): Now a static function.  Redo signature to
81983         implement xstrtol_fatal.  Output the correct number of hyphens in
81984         front of the option so that the caller need not worry about
81985         storage management.
81986         (N_): New macro.
81987         (_): Remove; not used now.
81988         * modules/xstrtol: Depend on getopt.
81989         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
81990         of old STRTOL_FATAL_ERROR macro.
81991         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
81992         of test program.
81993         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
81994         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
81996 2007-08-08  Eric Blake  <ebb9@byu.net>
81998         * lib/xstrtol-error.c: Add missing include.
82000         Move xstrtol messages into gnulib domain, when --pobase is used.
82001         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
82002         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
82003         * modules/xstrtol (Files): Distribute new file.
82004         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
82005         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
82006         * tests/test-xstrtol.c: ...into new file.
82007         * tests/test-xstrtoul.c: Also test xstrtoul.
82008         * tests/test-xstrtoimax.c: Also test xstrtoimax.
82009         * tests/test-xstrtoumax.c: Also test xstrtoumax.
82010         * tests/test-xstrtol.sh: Drive the tests.
82011         * tests/test-xstrtoimax.sh: Likewise.
82012         * tests/test-xstrtoumax.sh: Likewise.
82013         * modules/xstrtol-tests: New module.
82014         * modules/xstrtoimax-tests: Likewise.
82015         * modules/xstrtoumax-tests: Likewise.
82017 2007-08-08  Jim Meyering  <jim@meyering.net>
82019         New function: mfile_name_concat.
82020         * lib/filenamecat.c (mfile_name_concat): New function, just like
82021         file_name_concat, but return NULL upon failure rather than exiting
82022         with a diagnostic.
82023         * lib/filenamecat.h: Declare it.
82025 2007-08-07  Bruno Haible  <bruno@clisp.org>
82027         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
82028         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
82029         warning from gcc.
82030         Reported by Eric Blake.
82032 2007-08-07  Simon Josefsson  <simon@josefsson.org>
82034         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
82035         * modules/crypto/arcfour (License): Likewise.
82036         * modules/crypto/des-tests (License): Likewise.
82037         * modules/crypto/gc-arctwo-tests (License): Likewise.
82038         * modules/crypto/gc-des-tests (License): Likewise.
82039         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
82040         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
82041         * modules/crypto/gc-md2-tests (License): Likewise.
82042         * modules/crypto/gc-md4-tests (License): Likewise.
82043         * modules/crypto/gc-md5-tests (License): Likewise.
82044         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
82045         * modules/crypto/gc-rijndael-tests (License): Likewise.
82046         * modules/crypto/gc-sha1-tests (License): Likewise.
82047         * modules/crypto/gc-tests (License): Likewise.
82048         * modules/crypto/hmac-md5 (License): Likewise.
82049         * modules/crypto/hmac-sha1 (License): Likewise.
82050         * modules/crypto/md2-tests (License): Likewise.
82051         * modules/crypto/md4-tests (License): Likewise.
82052         * modules/crypto/md5 (License): Likewise.
82053         * modules/crypto/rijndael (License): Likewise.
82054         * modules/crypto/sha1 (License): Likewise.
82055         * modules/memxor (License): Likewise.
82057 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82058         and Bruno Haible  <bruno@clisp.org>
82060         * NEWS: Describe interface changes to human, xstrtol.
82061         * lib/human.h: Include <xstrtol.h>.
82062         (human_options): Return enum strtol_error, not int.  Remove
82063         bool arg; take int * instead.
82064         * lib/human.c: Don't include "gettext.h".
82065         (_): Remove; no longer used.
82066         Don't include <xstrtol.h>, since human.h does it.
82067         (human_options): Adjust to abovementioned interface changes.
82068         Do not report error to stderr; that's now the caller's
82069         responsibility.
82070         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
82071         interface change.
82072         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
82073         Str, Argument_type_string.  All uses changed.  Put " argument"
82074         in diagnostics to make them clearer.  Change wording of suffix
82075         message for clarity.
82076         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
82077         Argument_type_string.
82078         (STRTOL_FATAL_WARN): Remove; no longer used.
82079         * modules/human (Depends-on): Remove gettext-h.
82081 2007-08-06  Simon Josefsson  <simon@josefsson.org>
82083         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
82085 2007-07-31  Bruno Haible  <bruno@clisp.org>
82087         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
82088         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
82089         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
82091 2007-07-31  Bruno Haible  <bruno@clisp.org>
82093         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
82094         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
82096 2007-07-30  Bruno Haible  <bruno@clisp.org>
82098         * modules/base64 (License): Use the synonymous term "LGPLv2+".
82099         * modules/c-ctype (License): Likewise.
82100         * modules/c-strcase (License): Likewise.
82101         * modules/check-version (License): Likewise.
82102         * modules/iconv (License): Likewise.
82103         * modules/iconv_open (License): Likewise.
82104         * modules/read-file (License): Likewise.
82105         * modules/striconv (License): Likewise.
82106         * modules/strverscmp (License): Likewise.
82107         * modules/vasprintf (License): Likewise.
82108         * modules/crypto/des (License): Likewise.
82109         * modules/crypto/gc (License): Likewise.
82110         * modules/crypto/gc-arcfour (License): Likewise.
82111         * modules/crypto/gc-arctwo (License): Likewise.
82112         * modules/crypto/gc-des (License): Likewise.
82113         * modules/crypto/gc-hmac-md5 (License): Likewise.
82114         * modules/crypto/gc-hmac-sha1 (License): Likewise.
82115         * modules/crypto/gc-md2 (License): Likewise.
82116         * modules/crypto/gc-md4 (License): Likewise.
82117         * modules/crypto/gc-md5 (License): Likewise.
82118         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
82119         * modules/crypto/gc-random (License): Likewise.
82120         * modules/crypto/gc-rijndael (License): Likewise.
82121         * modules/crypto/gc-sha1 (License): Likewise.
82122         * modules/crypto/md2 (License): Likewise.
82123         * modules/crypto/md4 (License): Likewise.
82125 2007-07-30  Jim Meyering  <jim@meyering.net>
82127         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
82128         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
82129         it has valid stat data.  This bug would cause du not to count the
82130         sizes of inaccessible directories.
82131         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
82132         in <http://bugzilla.redhat.com/250077>.
82134 2007-07-25  Peter O'Gorman  <peter@pogma.com>
82135             Bruno Haible  <bruno@clisp.org>
82137         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
82138         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
82139         #include_next, gives a diagnostic about it, but reports no error in
82140         the exit code.
82141         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
82143 2007-07-24  Ben Pfaff  <blp@gnu.org>
82145         Improve name: "count-one-bits" is better than "popcount".
82146         * MODULES.html.sh: Update name.
82147         * lib/popcount.h: Renamed lib/count-one-bits.h.
82148         (popcount): Renamed count_one_bits.
82149         (popcountl): Renamed count_one_bits_l.
82150         (popcountll): Renamed count_one_bits_ll.
82151         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
82152         * modules/popcount: Renamed module/count-one-bits.
82153         * modules/popcount-tests: Renamed module/count-one-bits-tests.
82154         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
82156 2007-07-23  Ben Pfaff  <blp@gnu.org>
82158         * lib/popcount.h (popcount32): Reduce size of constants, to allow
82159         better code generation, and add U to large constants to avoid
82160         warnings, in non-GCC case.
82161         Suggested by Bruno Haible.
82163 2007-07-23  Ben Pfaff  <blp@gnu.org>
82165         * lib/popcount.h: Use verify_true instead of if...abort.
82166         * modules/popcount: Depend on verify module.
82167         Suggested by Jim Meyering.
82169 2007-07-23  Bruno Haible  <bruno@clisp.org>
82171         * gnulib-tool (func_import): Create a .cvsignore file also when the
82172         directory is not yet in CVS but the toplevel directory is. When
82173         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
82174         Reported by Karl Berry.
82176 2007-07-22  Ben Pfaff  <blp@gnu.org>
82178         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
82179         case.
82180         Suggested by Eric Blake.
82182 2007-07-22  Ben Pfaff  <blp@gnu.org>
82184         New module: popcount.
82185         * MODULES.html.sh: Add popcount.
82186         * modules/popcount: New file.
82187         * modules/popcount-tests: New file.
82188         * tests/test-popcount.c: New file.
82189         * lib/popcount.h: New file.
82190         * m4/popcount.m4: New file.
82192 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
82194         * build-aux/announce-gen: Update to GPLv3.
82196         * build-aux/config.guess: Update from config.
82198 2007-07-21  Bruno Haible  <bruno@clisp.org>
82200         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
82201         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
82203 2007-07-20  Jim Meyering  <jim@meyering.net>
82205         * check-module: Diagnose a self-dependency.
82207 2007-07-19  Bruno Haible  <bruno@clisp.org>
82209         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
82210         empty.
82211         Reported by Eric Blake.
82213 2007-07-18  Bruno Haible  <bruno@clisp.org>
82215         * gnulib-tool: New options --po-base, --po-domain.
82216         (func_usage): Document them.
82217         (pobase, po_domain): New variables.
82218         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
82219         DEFAULT_TEXT_DOMAIN.
82220         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
82221         (func_import): Consider pobase and po_domain. Create a po/ directory.
82222         (func_create_testdir): Set pobase and po_domain to empty.
82223         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
82224         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
82226 2007-07-18  Bruno Haible  <bruno@clisp.org>
82228         * gnulib-tool (func_get_automake_snippet): Synthesize also an
82229         EXTRA_DIST augmentation for files in build-aux/.
82231 2007-07-16  Bruno Haible  <bruno@clisp.org>
82233         * modules/lseek (License): Use the synonymous term "LGPLv2+".
82234         * modules/getdelim (License): Likewise.
82236 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82238         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
82239         * modules/d-type (License): Likewise.
82240         * modules/extensions (License): Likewise.
82241         * modules/fnmatch (License): Likewise.
82242         * modules/fseeko (License): Likewise.
82243         * modules/getaddrinfo (License): Likewise.
82244         * modules/getline (License): Likewise.
82245         * modules/getlogin_r (License): Likewise.
82246         * modules/getpass (License): Likewise.
82247         * modules/gettimeofday (License): Likewise.
82248         * modules/glob (License): Likewise.
82249         * modules/inet_ntop (License): Likewise.
82250         * modules/malloc (License): Likewise.
82251         * modules/malloca (License): Likewise.
82252         * modules/memmem (License): Likewise.
82253         * modules/mempcpy (License): Likewise.
82254         * modules/memset (License): Likewise.
82255         * modules/minmax (License): Likewise.
82256         * modules/mktime (License): Likewise.
82257         * modules/netinet_in (License): Likewise.
82258         * modules/pathmax (License): Likewise.
82259         * modules/poll (License): Likewise.
82260         * modules/regex (License): Likewise.
82261         * modules/snprintf (License): Likewise.
82262         * modules/stdbool (License): Likewise.
82263         * modules/stdint (License): Likewise.
82264         * modules/stdio (License): Likewise.
82265         * modules/strcase (License): Likewise.
82266         * modules/strcasestr (License): Likewise.
82267         * modules/strdup (License): Likewise.
82268         * modules/string (License): Likewise.
82269         * modules/strndup (License): Likewise.
82270         * modules/strnlen (License): Likewise.
82271         * modules/strpbrk (License): Likewise.
82272         * modules/strptime (License): Likewise.
82273         * modules/strsep (License): Likewise.
82274         * modules/sys_select (License): Likewise.
82275         * modules/sys_socket (License): Likewise.
82276         * modules/sys_stat (License): Likewise.
82277         * modules/sys_time (License): Likewise.
82278         * modules/time (License): Likewise.
82279         * modules/time_r (License): Likewise.
82280         * modules/timegm (License): Likewise.
82281         * modules/unistd (License): Likewise.
82282         * modules/vsnprintf (License): Likewise.
82283         * modules/wctype (License): Likewise.
82285 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82287         * modules/argz (License): LGPLv2+.
82289 2007-07-15  Karl Berry  <karl@gnu.org>
82291         * doc/gnulib.texi: revise node structure per new fdl.texi.
82293 2007-07-14  Bruno Haible  <bruno@clisp.org>
82295         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
82296         the output file.
82297         * lib/uniname/uninames.h: Regenerated.
82299 2007-07-14  Karl Berry  <karl@gnu.org>
82301         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
82302         omitting sectioning and index commands.
82304 2007-07-13  Bruno Haible  <bruno@clisp.org>
82306         New gnulib-tool option --more-symlinks.
82307         * gnulib-tool (func_usage): Document --more-symlinks.
82308         (do_copyrights): New variable.
82309         Recognize option --more-symlinks.
82310         (func_import): Don't add a copyright notice transform to
82311         sed_transform_lib_file if do_copyrights is empty.
82313 2007-07-13  Bruno Haible  <bruno@clisp.org>
82315         * lib/vasnprintf.c (decimal_point_char): Define also if
82316         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
82317         && !NEED_PRINTF_DIRECTIVE_A.
82318         Reported by Clemens Koller <clemens.koller@anagramm.de> via
82319         Gary V. Vaughan <gary@gnu.org>.
82321 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
82323         * lib/inttypes_.h: Undo previous change, since it was fixed
82324         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
82326 2007-07-13  Bruno Haible  <bruno@clisp.org>
82328         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
82329         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
82331 2007-07-13  Jim Meyering  <jim@meyering.net>
82333         df: Don't fail for Tru64's "file-on-file mount".
82334         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
82335         so we fall through and use statfs instead.  Details here:
82336         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
82337         Reported by Albert Chin.
82339 2007-07-13  Bruno Haible  <bruno@clisp.org>
82341         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
82342         * modules/configmake (License): Likewise.
82343         * modules/gettext (License): Likewise.
82344         * modules/gettext-h (License): Likewise.
82345         * modules/include_next (License): Likewise.
82346         * modules/link-warning (License): Likewise.
82347         * modules/localcharset (License): Likewise.
82348         * modules/localename (License): Likewise.
82349         * modules/lock (License): Likewise.
82350         * modules/relocatable-lib-lgpl (License): Likewise.
82351         * modules/size_max (License): Likewise.
82352         * modules/vasnprintf (License): Likewise.
82353         * modules/wchar (License): Likewise.
82354         * modules/xsize (License): Likewise.
82356 2007-07-13  Bruno Haible  <bruno@clisp.org>
82358         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
82359         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
82361 2007-07-12  Bruno Haible  <bruno@clisp.org>
82363         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
82364         in the modules files.
82366 2007-07-11  Karl Berry  <karl@gnu.org>
82368         * MODULES.html.sh (func_module): use
82369          sed -e '\|^'"${includefile}"'$|d'
82370          instead of /.../d, to avoid errors on $includefile's containing /.
82372 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82374         * gnulib-tool (func_import): Avoid duplication of --avoid
82375         statements
82376         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
82377         names to `_' in variable names.
82379 2007-07-10  Eric Blake  <ebb9@byu.net>
82381         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
82382         * NEWS: Document this change.
82384 2007-07-08  Bruno Haible  <bruno@clisp.org>
82386         Update to Unicode 5.0.
82387         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
82388         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
82389         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
82390         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
82391         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
82392         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
82393         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
82394         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
82395         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
82396         U+10A3F, U+1D242..U+1D244.
82397         (nonspacing_table_ind): Update.
82398         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
82399         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
82401 2007-07-08  Bruno Haible  <bruno@clisp.org>
82403         Update to Unicode 5.0.
82404         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
82405         code transform. Extend the name index field of unicode_name_to_code and
82406         unicode_code_to_name from 16 to 24 bits.
82407         * lib/uniname/uniname.c (unicode_character_name,
82408         unicode_name_character): Add the range 0x12xxx to the code transform.
82409         * lib/uniname/uninames.h: Regenerated.
82410         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
82412 2007-07-07  Bruno Haible  <bruno@clisp.org>
82414         * modules/wcwidth-tests: New file.
82415         * tests/test-wcwidth.c: New file.
82417         Work around MacOS X wcwidth() bug.
82418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
82419         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
82420         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
82421         original wcwidth in non-UTF-8 locales.
82422         * modules/wcwidth (Depends-on): Add localcharset, streq,
82423         uniwidth/width.
82424         * doc/functions/wcwidth.texi: Update.
82426 2007-07-07  Bruno Haible  <bruno@clisp.org>
82428         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
82429         (wcwidth): New declaration.
82430         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
82431         macros.
82432         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
82433         here. Prepare for creating <wchar.h> unconditionally.
82434         * modules/wchar (Depends-on): Add link-warning.
82435         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
82436         REPLACE_WCWIDTH, and GL_LINK_WARNING.
82437         * lib/wcwidth.h: Remove file.
82438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
82439         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
82440         * modules/wcwidth (Files): Remove lib/wcwidth.h.
82441         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
82442         (Include): Replace wcwidth.h with <wchar.h>.
82443         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
82444         * lib/mbchar.h: Don't include wcwidth.h.
82445         * lib/mbswidth.c: Likewise.
82446         * NEWS: Mention the change.
82448 2007-07-07  Bruno Haible  <bruno@clisp.org>
82450         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
82451         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
82452         definition with an external declaration.
82453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
82454         defined as a function. Remove AC_C_INLINE requirement.
82455         * modules/wcwidth (Files): Add lib/wcwidth.c.
82456         (Makefile.am): Remove redundant statement.
82458 2007-07-07  Bruno Haible  <bruno@clisp.org>
82460         * MODULES.html.sh (Unicode string functions): Add the new modules.
82462         * tests/uniwidth/test-u32-strwidth.c: New file.
82463         * modules/uniwidth/u32-strwidth-tests: New file.
82465         * lib/uniwidth/u32-strwidth.c: New file.
82466         * modules/uniwidth/u32-strwidth: New file.
82468         * tests/uniwidth/test-u16-strwidth.c: New file.
82469         * modules/uniwidth/u16-strwidth-tests: New file.
82471         * lib/uniwidth/u16-strwidth.c: New file.
82472         * modules/uniwidth/u16-strwidth: New file.
82474         * tests/uniwidth/test-u8-strwidth.c: New file.
82475         * modules/uniwidth/u8-strwidth-tests: New file.
82477         * lib/uniwidth/u8-strwidth.c: New file.
82478         * modules/uniwidth/u8-strwidth: New file.
82480         * tests/uniwidth/test-u32-width.c: New file.
82481         * modules/uniwidth/u32-width-tests: New file.
82483         * lib/uniwidth/u32-width.c: New file.
82484         * modules/uniwidth/u32-width: New file.
82486         * tests/uniwidth/test-u16-width.c: New file.
82487         * modules/uniwidth/u16-width-tests: New file.
82489         * lib/uniwidth/u16-width.c: New file.
82490         * modules/uniwidth/u16-width: New file.
82492         * tests/uniwidth/test-u8-width.c: New file.
82493         * modules/uniwidth/u8-width-tests: New file.
82495         * lib/uniwidth/u8-width.c: New file.
82496         * modules/uniwidth/u8-width: New file.
82498         * tests/uniwidth/test-uc_width.c: New file.
82499         * modules/uniwidth/width-tests: New file.
82501         * lib/uniwidth/width.c: New file, from GNU libiconv.
82502         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
82503         * modules/uniwidth/width: New file.
82505         * lib/uniwidth.h: New file, from GNU libiconv.
82506         * modules/uniwidth/base: New file.
82508 2007-07-07  Bruno Haible  <bruno@clisp.org>
82510         * lib/uniname.h: New file, from GNU gettext.
82511         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
82512         * lib/uniname/uninames.h: New file, from GNU gettext.
82513         * lib/uniname/uniname.c: New file, from GNU gettext.
82514         * tests/uniname/test-uninames.sh: New file.
82515         * tests/uniname/test-uninames.c: New file, from GNU gettext.
82516         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
82517         * modules/uniname/base: New file.
82518         * modules/uniname/uniname: New file.
82519         * modules/uniname/uniname-tests: New file.
82520         * MODULES.html.sh (Unicode string functions): Add the new modules.
82522 2007-07-06  Bruno Haible  <bruno@clisp.org>
82524         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
82526 2007-07-06  Bruno Haible  <bruno@clisp.org>
82528         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
82529         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
82530         includes <cygwin/sys_time.h> which includes <sys/select.h> which
82531         include <sys/time.h>.
82532         Reported by Eric Blake.
82534 2007-07-06  Eric Blake  <ebb9@byu.net>
82536         Fix testing canonicalize on cygwin.
82537         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
82538         Revert patch from 2007-06-19.
82539         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
82540         canonicalize module is also in use.
82541         * tests/test-canonicalize.c: New file.
82542         * tests/test-canonicalize.sh: Likewise.
82543         * modules/canonicalize-tests: Likewise.
82545 2007-07-06  Jim Meyering  <jim@meyering.net>
82547         * lib/getugroups.c (getugroups): Detect getgrent failure.
82548         Adjust comment to reflect reality: this function may return -1.
82550 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
82552         * build-aux/bootstrap (TP_URL,get_translations): Update to use
82553         the new TP address.
82554         (usage): Fix typo
82555         (gnulib_mk): New variable.
82557 2007-07-05  Jim Meyering  <jim@meyering.net>
82559         Don't let endgrent clobber errno, no matter how improbable.
82560         * lib/getugroups.c (getugroups): Save and restore errno around
82561         endgrent call.
82563         Close the group DB even when failing with 2^31 or more members.
82564         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
82566 2007-07-04  Jim Meyering  <jim@meyering.net>
82568         * lib/getugroups.h: New file.
82569         * lib/getugroups.c: Include "getugroups.h".
82570         Remove uses of "register" keyword.
82571         Move local variable, "cp", down into scope where used.
82572         Give "username" parameter the "const" attribute.
82573         * modules/getugroups (Files): Add lib/getugroups.h
82575 2007-07-04  Karl Berry  <karl@gnu.org>
82577         * MODULES.html.sh (func_all_modules): Complete rename of
82578         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
82580 2007-07-02  Bruno Haible  <bruno@clisp.org>
82582         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
82583         mode, when inttypes.h comes from gnulib.
82584         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
82586 2007-07-02  Simon Josefsson  <simon@josefsson.org>
82588         * NEWS: Mention lgpl module name change.
82590         * modules/lgpl-2.1: Renamed from lgpl.
82592         * NEWS: Mention gpl module name change.
82594         * modules/gpl-3.0: New file, based on gpl-2.0.
82596         * modules/gpl-2.0: Renamed from gpl.
82598         * modules/gpl: Fix filename, doc/gpl.texi is now found at
82599         doc/gpl-2.0.texi.
82601 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82603         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
82604         #define __STDC_LIMIT_MACROS temporarily while including
82605         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
82606         Problem reported by Joel E. Denny in
82607         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
82609 2007-07-01  Bruno Haible  <bruno@clisp.org>
82611         * lib/unistdio.h: New file.
82612         * lib/unistdio/u-asnprintf.h: New file.
82613         * lib/unistdio/u-asprintf.h: New file.
82614         * lib/unistdio/u-printf-args.c: New file.
82615         * lib/unistdio/u-printf-args.h: New file.
82616         * lib/unistdio/u-printf-parse.h: New file.
82617         * lib/unistdio/u-snprintf.h: New file.
82618         * lib/unistdio/u-sprintf.h: New file.
82619         * lib/unistdio/u-vasprintf.h: New file.
82620         * lib/unistdio/u-vsnprintf.h: New file.
82621         * lib/unistdio/u-vsprintf.h: New file.
82622         * lib/unistdio/ulc-asnprintf.c: New file.
82623         * lib/unistdio/ulc-asprintf.c: New file.
82624         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
82625         * lib/unistdio/ulc-printf-parse.c: New file.
82626         * lib/unistdio/ulc-snprintf.c: New file.
82627         * lib/unistdio/ulc-sprintf.c: New file.
82628         * lib/unistdio/ulc-vasnprintf.c: New file.
82629         * lib/unistdio/ulc-vasprintf.c: New file.
82630         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
82631         * lib/unistdio/ulc-vsnprintf.c: New file.
82632         * lib/unistdio/ulc-vsprintf.c: New file.
82633         * lib/unistdio/u8-asnprintf.c: New file.
82634         * lib/unistdio/u8-asprintf.c: New file.
82635         * lib/unistdio/u8-printf-parse.c: New file.
82636         * lib/unistdio/u8-snprintf.c: New file.
82637         * lib/unistdio/u8-sprintf.c: New file.
82638         * lib/unistdio/u8-vasnprintf.c: New file.
82639         * lib/unistdio/u8-vasprintf.c: New file.
82640         * lib/unistdio/u8-vsnprintf.c: New file.
82641         * lib/unistdio/u8-vsprintf.c: New file.
82642         * lib/unistdio/u8-u8-asnprintf.c: New file.
82643         * lib/unistdio/u8-u8-asprintf.c: New file.
82644         * lib/unistdio/u8-u8-snprintf.c: New file.
82645         * lib/unistdio/u8-u8-sprintf.c: New file.
82646         * lib/unistdio/u8-u8-vasnprintf.c: New file.
82647         * lib/unistdio/u8-u8-vasprintf.c: New file.
82648         * lib/unistdio/u8-u8-vsnprintf.c: New file.
82649         * lib/unistdio/u8-u8-vsprintf.c: New file.
82650         * lib/unistdio/u16-asnprintf.c: New file.
82651         * lib/unistdio/u16-asprintf.c: New file.
82652         * lib/unistdio/u16-printf-parse.c: New file.
82653         * lib/unistdio/u16-snprintf.c: New file.
82654         * lib/unistdio/u16-sprintf.c: New file.
82655         * lib/unistdio/u16-vasnprintf.c: New file.
82656         * lib/unistdio/u16-vasprintf.c: New file.
82657         * lib/unistdio/u16-vsnprintf.c: New file.
82658         * lib/unistdio/u16-vsprintf.c: New file.
82659         * lib/unistdio/u16-u16-asnprintf.c: New file.
82660         * lib/unistdio/u16-u16-asprintf.c: New file.
82661         * lib/unistdio/u16-u16-snprintf.c: New file.
82662         * lib/unistdio/u16-u16-sprintf.c: New file.
82663         * lib/unistdio/u16-u16-vasnprintf.c: New file.
82664         * lib/unistdio/u16-u16-vasprintf.c: New file.
82665         * lib/unistdio/u16-u16-vsnprintf.c: New file.
82666         * lib/unistdio/u16-u16-vsprintf.c: New file.
82667         * lib/unistdio/u32-asnprintf.c: New file.
82668         * lib/unistdio/u32-asprintf.c: New file.
82669         * lib/unistdio/u32-printf-parse.c: New file.
82670         * lib/unistdio/u32-snprintf.c: New file.
82671         * lib/unistdio/u32-sprintf.c: New file.
82672         * lib/unistdio/u32-vasnprintf.c: New file.
82673         * lib/unistdio/u32-vasprintf.c: New file.
82674         * lib/unistdio/u32-vsnprintf.c: New file.
82675         * lib/unistdio/u32-vsprintf.c: New file.
82676         * lib/unistdio/u32-u32-asnprintf.c: New file.
82677         * lib/unistdio/u32-u32-asprintf.c: New file.
82678         * lib/unistdio/u32-u32-snprintf.c: New file.
82679         * lib/unistdio/u32-u32-sprintf.c: New file.
82680         * lib/unistdio/u32-u32-vasnprintf.c: New file.
82681         * lib/unistdio/u32-u32-vasprintf.c: New file.
82682         * lib/unistdio/u32-u32-vsnprintf.c: New file.
82683         * lib/unistdio/u32-u32-vsprintf.c: New file.
82684         * tests/unistdio/test-ulc-asnprintf1.c: New file.
82685         * tests/unistdio/test-ulc-asnprintf1.h: New file.
82686         * tests/unistdio/test-ulc-printf1.h: New file.
82687         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
82688         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
82689         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
82690         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
82691         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
82692         * tests/unistdio/test-ulc-vasprintf1.c: New file.
82693         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
82694         * tests/unistdio/test-ulc-vsprintf1.c: New file.
82695         * tests/unistdio/test-u8-asnprintf1.c: New file.
82696         * tests/unistdio/test-u8-asnprintf1.h: New file.
82697         * tests/unistdio/test-u8-printf1.h: New file.
82698         * tests/unistdio/test-u8-vasnprintf1.c: New file.
82699         * tests/unistdio/test-u8-vasnprintf2.c: New file.
82700         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
82701         * tests/unistdio/test-u8-vasnprintf3.c: New file.
82702         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
82703         * tests/unistdio/test-u8-vasprintf1.c: New file.
82704         * tests/unistdio/test-u8-vsnprintf1.c: New file.
82705         * tests/unistdio/test-u8-vsprintf1.c: New file.
82706         * tests/unistdio/test-u16-asnprintf1.c: New file.
82707         * tests/unistdio/test-u16-asnprintf1.h: New file.
82708         * tests/unistdio/test-u16-printf1.h: New file.
82709         * tests/unistdio/test-u16-vasnprintf1.c: New file.
82710         * tests/unistdio/test-u16-vasnprintf2.c: New file.
82711         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
82712         * tests/unistdio/test-u16-vasnprintf3.c: New file.
82713         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
82714         * tests/unistdio/test-u16-vasprintf1.c: New file.
82715         * tests/unistdio/test-u16-vsnprintf1.c: New file.
82716         * tests/unistdio/test-u16-vsprintf1.c: New file.
82717         * tests/unistdio/test-u32-asnprintf1.c: New file.
82718         * tests/unistdio/test-u32-asnprintf1.h: New file.
82719         * tests/unistdio/test-u32-printf1.h: New file.
82720         * tests/unistdio/test-u32-vasnprintf1.c: New file.
82721         * tests/unistdio/test-u32-vasnprintf2.c: New file.
82722         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
82723         * tests/unistdio/test-u32-vasnprintf3.c: New file.
82724         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
82725         * tests/unistdio/test-u32-vasprintf1.c: New file.
82726         * tests/unistdio/test-u32-vsnprintf1.c: New file.
82727         * tests/unistdio/test-u32-vsprintf1.c: New file.
82728         * modules/unistdio/base: New file.
82729         * modules/unistdio/u-printf-args: New file.
82730         * modules/unistdio/ulc-asnprintf: New file.
82731         * modules/unistdio/ulc-asprintf: New file.
82732         * modules/unistdio/ulc-fprintf: New file.
82733         * modules/unistdio/ulc-printf-parse: New file.
82734         * modules/unistdio/ulc-snprintf: New file.
82735         * modules/unistdio/ulc-sprintf: New file.
82736         * modules/unistdio/ulc-vasnprintf: New file.
82737         * modules/unistdio/ulc-vasprintf: New file.
82738         * modules/unistdio/ulc-vfprintf: New file.
82739         * modules/unistdio/ulc-vsnprintf: New file.
82740         * modules/unistdio/ulc-vsprintf: New file.
82741         * modules/unistdio/u8-asnprintf: New file.
82742         * modules/unistdio/u8-asprintf: New file.
82743         * modules/unistdio/u8-printf-parse: New file.
82744         * modules/unistdio/u8-snprintf: New file.
82745         * modules/unistdio/u8-sprintf: New file.
82746         * modules/unistdio/u8-vasnprintf: New file.
82747         * modules/unistdio/u8-vasprintf: New file.
82748         * modules/unistdio/u8-vsnprintf: New file.
82749         * modules/unistdio/u8-vsprintf: New file.
82750         * modules/unistdio/u8-u8-asnprintf: New file.
82751         * modules/unistdio/u8-u8-asprintf: New file.
82752         * modules/unistdio/u8-u8-snprintf: New file.
82753         * modules/unistdio/u8-u8-sprintf: New file.
82754         * modules/unistdio/u8-u8-vasnprintf: New file.
82755         * modules/unistdio/u8-u8-vasprintf: New file.
82756         * modules/unistdio/u8-u8-vsnprintf: New file.
82757         * modules/unistdio/u8-u8-vsprintf: New file.
82758         * modules/unistdio/u16-asnprintf: New file.
82759         * modules/unistdio/u16-asprintf: New file.
82760         * modules/unistdio/u16-printf-parse: New file.
82761         * modules/unistdio/u16-snprintf: New file.
82762         * modules/unistdio/u16-sprintf: New file.
82763         * modules/unistdio/u16-vasnprintf: New file.
82764         * modules/unistdio/u16-vasprintf: New file.
82765         * modules/unistdio/u16-vsnprintf: New file.
82766         * modules/unistdio/u16-vsprintf: New file.
82767         * modules/unistdio/u16-u16-asnprintf: New file.
82768         * modules/unistdio/u16-u16-asprintf: New file.
82769         * modules/unistdio/u16-u16-snprintf: New file.
82770         * modules/unistdio/u16-u16-sprintf: New file.
82771         * modules/unistdio/u16-u16-vasnprintf: New file.
82772         * modules/unistdio/u16-u16-vasprintf: New file.
82773         * modules/unistdio/u16-u16-vsnprintf: New file.
82774         * modules/unistdio/u16-u16-vsprintf: New file.
82775         * modules/unistdio/u32-asnprintf: New file.
82776         * modules/unistdio/u32-asprintf: New file.
82777         * modules/unistdio/u32-printf-parse: New file.
82778         * modules/unistdio/u32-snprintf: New file.
82779         * modules/unistdio/u32-sprintf: New file.
82780         * modules/unistdio/u32-vasnprintf: New file.
82781         * modules/unistdio/u32-vasprintf: New file.
82782         * modules/unistdio/u32-vsnprintf: New file.
82783         * modules/unistdio/u32-vsprintf: New file.
82784         * modules/unistdio/u32-u32-asnprintf: New file.
82785         * modules/unistdio/u32-u32-asprintf: New file.
82786         * modules/unistdio/u32-u32-snprintf: New file.
82787         * modules/unistdio/u32-u32-sprintf: New file.
82788         * modules/unistdio/u32-u32-vasnprintf: New file.
82789         * modules/unistdio/u32-u32-vasprintf: New file.
82790         * modules/unistdio/u32-u32-vsnprintf: New file.
82791         * modules/unistdio/u32-u32-vsprintf: New file.
82792         * modules/unistdio/ulc-asnprintf-tests: New file.
82793         * modules/unistdio/ulc-vasnprintf-tests: New file.
82794         * modules/unistdio/ulc-vasprintf-tests: New file.
82795         * modules/unistdio/ulc-vsnprintf-tests: New file.
82796         * modules/unistdio/ulc-vsprintf-tests: New file.
82797         * modules/unistdio/u8-asnprintf-tests: New file.
82798         * modules/unistdio/u8-vasnprintf-tests: New file.
82799         * modules/unistdio/u8-vasprintf-tests: New file.
82800         * modules/unistdio/u8-vsnprintf-tests: New file.
82801         * modules/unistdio/u8-vsprintf-tests: New file.
82802         * modules/unistdio/u16-asnprintf-tests: New file.
82803         * modules/unistdio/u16-vasnprintf-tests: New file.
82804         * modules/unistdio/u16-vasprintf-tests: New file.
82805         * modules/unistdio/u16-vsnprintf-tests: New file.
82806         * modules/unistdio/u16-vsprintf-tests: New file.
82807         * modules/unistdio/u32-asnprintf-tests: New file.
82808         * modules/unistdio/u32-vasnprintf-tests: New file.
82809         * modules/unistdio/u32-vasprintf-tests: New file.
82810         * modules/unistdio/u32-vsnprintf-tests: New file.
82811         * modules/unistdio/u32-vsprintf-tests: New file.
82812         * MODULES.html.sh (Unicode string functions): Add the new modules.
82814 2007-07-01  Bruno Haible  <bruno@clisp.org>
82816         * lib/sprintf.c (sprintf): Limit the available length estimation,
82817         to avoid address wraparound.
82818         * lib/vsprintf.c (vsprintf): Likewise.
82819         * modules/sprintf-posix (Dependencies): Add stdint.
82820         * modules/vsprintf-posix (Dependencies): Likewise.
82822 2007-07-01  Bruno Haible  <bruno@clisp.org>
82824         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
82825         Windows PATH as well. Conservative double-quoting. Comments.
82827 2007-07-01  Bruno Haible  <bruno@clisp.org>
82828             Eric Blake  <ebb9@byu.net>
82829             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82831         * gnulib-tool (self_abspathname): Fix algorithm to cope with
82832         empty components in $PATH, denoting '.'.
82834 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82836         * gnulib-tool: Fix indentation.
82837         (func_create_megatestdir): Likewise.
82838         Report by Bruno Haible.
82840 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82842         Sync from Automake.
82843         * build-aux/gnupload: Fix shell portability issues with for loops.
82844         Report by Karl Berry.
82846 2007-06-29  Simon Josefsson  <simon@josefsson.org>
82848         * build-aux/maint.mk (POURL): Use translationproject.org.
82850 2007-06-27  Simon Josefsson  <simon@josefsson.org>
82851             Bruno Haible  <bruno@clisp.org>
82853         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
82854         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
82855         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
82856         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
82857         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
82859 2007-06-27  Bruno Haible  <bruno@clisp.org>
82861         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
82862         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
82864 2007-06-26  Karl Berry  <karl@gnu.org>
82866         * MODULES.html.sh: remove xreadlink-with-size.
82868 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82870         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
82871         method that I hope also handles the double-include problem noted
82872         by Bruno Haible in
82873         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
82875 2007-06-23  Bruno Haible  <bruno@clisp.org>
82877         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82878         Don't let the 'mostlyclean' target fail if the last subdirectory could
82879         not be removed.
82880         Reported by Karl Berry.
82882 2007-06-23  Bruno Haible  <bruno@clisp.org>
82884         * gnulib-tool (echo): Add a speedier workaround for ksh.
82885         * tests/test-echo.sh: Likewise.
82887 2007-06-23  Bruno Haible  <bruno@clisp.org>
82889         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
82890         * tests/test-echo.sh: Likewise.
82892 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82894         * gnulib-tool (IFS): Initialize early, so we don't set it to
82895         empty later.
82896         (self_abspathname): Rewrite algorithm to set it, reindent.
82897         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
82898         (func_create_megatestdir): Merge some sed scripts.
82900 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82902         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
82903         exposed by Sun Studio 11 cc on Solaris 8.
82905 2007-06-22  Bruno Haible  <bruno@clisp.org>
82907         * gnulib-tool (echo): Ensure the echo primitive does not interpret
82908         backslashes.
82909         * tests/test-echo.sh: New file.
82911 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82913         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
82914         simplify `sed_replace_build_aux' scripts, they are portable but
82915         echoing them with `echo' is not.
82916         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
82918 2007-06-21  Karl Berry  <karl@gnu.org>
82920         * config/srclist.txt: guess we can't handle the licenses via
82921         srclist at the moment.
82923 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82925         * MODULES.html.sh: Add include_next.
82926         * modules/include_next: New file.
82928 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82930         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
82931         INCLUDE_NEXT.
82932         (gl_CHECK_NEXT_HEADERS): New macro.
82933         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
82934         the obsolescent gl_ABSOLUTE_HEADER.
82935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
82936         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
82937         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
82938         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
82939         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
82940         * m4/math_h.m4 (gl_MATH_H): Likewise.
82941         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
82942         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
82943         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
82944         * m4/stdint.m4 (gl_STDINT_H): Likewise.
82945         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
82946         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
82947         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
82948         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
82949         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
82950         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
82951         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
82952         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
82953         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
82954         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
82955         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82956         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
82957         * m4/inttypes.m4 (gl_INTTYPES_H): Define
82958         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
82959         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
82960         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
82961         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
82962         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
82963         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
82964         * lib/float_.h: Likewise.
82965         * lib/inttypes_.h: Likewise.
82966         * lib/math_.h: Likewise.
82967         * lib/search_.h: Likewise.
82968         * lib/signal_.h: Likewise.
82969         * lib/stdint_.h: Likewise.
82970         * lib/stdio_.h: Likewise.
82971         * lib/stdlib_.h: Likewise.
82972         * lib/string_.h: Likewise.
82973         * lib/sys_stat_.h: Likewise.
82974         * lib/sys_time_.h: Likewise.
82975         * lib/time_.h: Likewise.
82976         * lib/unistd_.h: Likewise.
82977         * lib/wchar_.h: Likewise.
82978         * lib/wctype_.h: Likewise.
82979         * lib/dirent_.h: Likewise.
82980         * lib/iconv_.h: Likewise.
82981         * lib/locale_.h: Likewise.
82982         * lib/netinet_in_.h: Likewise.
82983         * lib/sys_select_.h: Likewise.
82984         * lib/sys_socket_.h: Likewise.
82985         * lib/sysexits_.h: Likewise.
82986         * modules/fcntl (Depends-on): Depend on include_next, not
82987         absolute_header.
82988         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
82989         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
82990         * modules/fchdir: Likewise.
82991         * modules/float: Likewise.
82992         * modules/iconv_open: Likewise.
82993         * modules/inttypes: Likewise.
82994         * modules/locale: Likewise.
82995         * modules/math: Likewise.
82996         * modules/netinet_in: Likewise.
82997         * modules/search: Likewise.
82998         * modules/signal: Likewise.
82999         * modules/stdint: Likewise.
83000         * modules/stdio: Likewise.
83001         * modules/stdlib: Likewise.
83002         * modules/string: Likewise.
83003         * modules/sys_select: Likewise.
83004         * modules/sys_socket: Likewise.
83005         * modules/sys_stat: Likewise.
83006         * modules/sys_time: Likewise.
83007         * modules/sysexits: Likewise.
83008         * modules/time: Likewise.
83009         * modules/unistd: Likewise.
83010         * modules/wchar: Likewise.
83011         * modules/wctype: Likewise.
83012         * modules/sys_stat: Change maintainer to "all".
83013         * modules/unistd: Likewise.
83015 2007-06-20  Karl Berry  <karl@gnu.org>
83017         * config/srclist.txt: track www changes in license files.
83019 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
83021         * build-aux/bootstrap: Remove stray dot.
83022         Make sure build_aux settings are honored when linking
83023         gnulib_extra_files.
83025 2007-06-19  Eric Blake  <ebb9@byu.net>
83027         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
83028         Allow compilation on cygwin.
83030 2007-06-19  Jim Meyering  <jim@meyering.net>
83032         xreadlink-with-size: Remove module.  No longer used.
83033         Ex-callers now use xreadlink or mreadlink-with-size.
83034         * modules/xreadlink-with-size: Remove module.
83035         * lib/xreadlink-with-size.c: Remove file.
83036         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
83037         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
83038         just before the function definition *is* accurate.
83040         Eliminate one way canonicalize_filename_mode could exit.
83041         * lib/canonicalize.c (canonicalize_filename_mode):
83042         Use mreadlink_with_size, not xreadlink_with_size.
83044 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
83046         Detect porting problems to FreeBSD/arm, which has time_t wider than
83047         long int.  Original problem reported for GNU diff by Xin Li in
83048         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
83049         * modules/getdate (Depends-on): Add intprops, verify.
83050         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
83051         is an integer type no wider than long int.
83053 2007-06-18  Jim Meyering  <jim@meyering.net>
83055         New module: mreadlink-with-size.
83056         * MODULES.html.sh: Add mreadlink-with-size.
83057         * modules/mreadlink-with-size: New module
83058         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
83059         not xreadlink-with-size.
83060         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
83062 2007-06-16  Bruno Haible  <bruno@clisp.org>
83064         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
83065         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
83066         Reported by Gary V. Vaughan <gary@gnu.org>.
83068 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
83070         Revamp lchown so that it lives in unistd.h where it belongs.
83071         * lib/lchown.h: Remove.
83072         * lib/dirchownmod.c: Don't include lib/lchown.h.
83073         * lib/fchownat.c: Likewise.
83074         * lib/openat.c: Likewise.
83075         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
83076         does not follow symlinks.
83077         (EOPNOTSUPP): Define if not defined.
83078         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
83079         is defined to 0.
83080         (lchown): New decl.
83081         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
83082         Do not check for lchown decl.
83083         Set REPLACE_LCHOWN.
83084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
83085         REPLACE_LCHOWN.
83086         * modules/chown: Make it clear it follows symlinks.
83087         * modules/lchown: Make it clear it doesn't follow symlinks.
83088         (Files): Remove lib/lchown.h
83089         (Depends-on): Add unistd.
83090         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
83091         (Include): Include <unistd.h>, not "lchown.h".
83092         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
83093         REPLACE_LCHOWN.
83095 2007-06-15  Jim Meyering  <jim@meyering.net>
83097         Change license (GPL to LGPL) of fsusage and dependents.
83098         * modules/fsusage (License): Change to LGPL.
83099         * modules/full-read (License): Likewise.
83100         * modules/full-write (License): Likewise.
83101         * modules/safe-read (License): Likewise.
83102         * modules/safe-write (License): Likewise.
83104 2007-06-14  Ben Pfaff  <blp@gnu.org>
83106         Missing part of allocsa -> malloca transition.
83107         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
83108         gl_MALLOCA.
83110 2007-06-12  Bruno Haible  <bruno@clisp.org>
83112         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
83113         to ia64, x86_64, i386.
83114         Reported by Eric Blake.
83116 2007-06-12  Bruno Haible  <bruno@clisp.org>
83118         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
83119         cross-compiling to x86_64.
83121 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
83123         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
83124         glitch reported by Ralf Wildenhues in
83125         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
83127         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
83128         Vin Shelton.
83130 2007-06-11  Bruno Haible  <bruno@clisp.org>
83132         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
83133         replacement string.
83134         Reported by Eric Blake.
83136 2007-06-10  Bruno Haible  <bruno@clisp.org>
83138         Prepare vasnprintf code for use with Unicode strings.
83139         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
83140         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
83141         TYPE_U32_STRING.
83142         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
83143         a_u32_string variants.
83144         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
83145         * lib/printf-args.c: Don't include config.h and the specification
83146         header if PRINTF_FETCHARGS is already defined.
83147         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
83148         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
83149         TYPE_U16_STRING, TYPE_U32_STRING.
83150         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
83151         u16_directive, u16_directives, u32_directive, u32_directives): New
83152         types.
83153         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
83154         New declarations.
83155         * lib/printf-parse.c: Don't include config.h and the specification
83156         header if PRINTF_PARSE is already defined. Eliminate the set of
83157         parameters for WIDE_CHAR_VERSION; the user of this file must provide
83158         them now. Include c-ctype.h.
83159         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
83160         directive and CHAR_T_ONLY_ASCII.
83161         * lib/vasnprintf.c: Don't include config.h and the specification header
83162         if VASNPRINTF is already defined.
83163         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
83164         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
83165         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
83166         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
83167         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
83168         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
83169         code accordingly.
83170         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
83171         pad_ourselves also in this case, with the 'c' and 's' directives, and
83172         with a different notion of "width".
83173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
83175 2007-06-10  Bruno Haible  <bruno@clisp.org>
83177         * modules/unistr/u32-mbsnlen: New file.
83178         * lib/unistr/u32-mbsnlen.c: New file.
83180         * modules/unistr/u16-mbsnlen: New file.
83181         * lib/unistr/u16-mbsnlen.c: New file.
83183         * modules/unistr/u8-mbsnlen: New file.
83184         * lib/unistr/u8-mbsnlen.c: New file.
83186         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
83187         declarations.
83189 2007-06-10  Bruno Haible  <bruno@clisp.org>
83191         * lib/string_.h (mbsnlen): New declaration.
83192         * lib/mbsnlen.c: New file.
83193         * m4/mbsnlen.m4: New file.
83194         * modules/mbsnlen: New file.
83195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
83196         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
83197         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
83199 2007-06-10  Bruno Haible  <bruno@clisp.org>
83201         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
83203 2007-06-10  Bruno Haible  <bruno@clisp.org>
83205         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
83206         * lib/mbuiter.h: Likewise.
83208 2007-06-10  Bruno Haible  <bruno@clisp.org>
83210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
83211         declaration.
83213 2007-06-10  Karl Berry  <karl@gnu.org>
83215         * config/srclist.txt: remove gettext entries, Bruno prefers
83216         to update individually.
83218 2007-06-10  Bruno Haible  <bruno@clisp.org>
83220         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
83221         'maxlen'. Ensure only length + width bytes are allocated, not
83222         length + 1 + width.
83224 2007-06-09  Bruno Haible  <bruno@clisp.org>
83226         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
83227         (CHAR_T): Remove macro.
83228         (VASNPRINTF): Update.
83230 2007-06-09  Bruno Haible  <bruno@clisp.org>
83232         * MODULES.html.sh (Unicode string functions): Add the new modules.
83234         * modules/uniconv/u32-conv-to-enc: New file.
83235         * lib/uniconv/u32-conv-to-enc.c: New file.
83236         * modules/uniconv/u32-conv-to-enc-tests: New file.
83237         * tests/uniconv/test-u32-conv-to-enc.c: New file.
83239         * modules/uniconv/u16-conv-to-enc: New file.
83240         * lib/uniconv/u16-conv-to-enc.c: New file.
83241         * lib/uniconv/u-conv-to-enc.h: New file.
83242         * modules/uniconv/u16-conv-to-enc-tests: New file.
83243         * tests/uniconv/test-u16-conv-to-enc.c: New file.
83245         * modules/uniconv/u8-conv-to-enc: New file.
83246         * lib/uniconv/u8-conv-to-enc.c: New file.
83247         * modules/uniconv/u8-conv-to-enc-tests: New file.
83248         * tests/uniconv/test-u8-conv-to-enc.c: New file.
83250         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83251         u32_conv_to_encoding): New declarations.
83253 2007-06-09  Bruno Haible  <bruno@clisp.org>
83255         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
83257 2007-06-09  Bruno Haible  <bruno@clisp.org>
83259         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
83260         * modules/malloca: Renamed from modules/allocsa, updated.
83261         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
83262         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
83263         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
83264         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
83265         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
83266         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
83267         * modules/xmalloca: Renamed from modules/xallocsa, updated.
83268         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
83269         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
83270         * modules/c-strcasestr (Depends-on): Update.
83271         * lib/c-strcasestr.c: Update.
83272         * modules/c-strstr (Depends-on): Update.
83273         * lib/c-strstr.c: Update.
83274         * modules/canonicalize-lgpl (Depends-on): Update.
83275         * lib/canonicalize-lgpl.c: Update.
83276         * modules/clean-temp (Depends-on): Update.
83277         * lib/clean-temp.c: Update.
83278         * modules/csharpcomp (Depends-on): Update.
83279         * lib/csharpcomp.c: Update.
83280         * modules/csharpexec (Depends-on): Update.
83281         * lib/csharpexec.c: Update.
83282         * modules/javacomp (Depends-on): Update.
83283         * lib/javacomp.c: Update.
83284         * modules/javaexec (Depends-on): Update.
83285         * lib/javaexec.c: Update.
83286         * modules/mbscasestr (Depends-on): Update.
83287         * lib/mbscasestr.c: Update.
83288         * modules/mbsstr (Depends-on): Update.
83289         * lib/mbsstr.c: Update.
83290         * modules/setenv (Depends-on): Update.
83291         * lib/setenv.c: Update.
83292         * modules/strcasestr (Depends-on): Update.
83293         * lib/strcasestr.c: Update.
83294         * modules/striconveha (Depends-on): Update.
83295         * lib/striconveha.c: Update.
83296         * modules/relocatable-prog-wrapper (Files): Update.
83297         * lib/relocwrapper.c: Update.
83298         * build-aux/install-reloc: Update.
83299         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
83301 2007-06-08  Bruno Haible  <bruno@clisp.org>
83303         Port to uClibc.
83304         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
83305         * lib/fpurge.c (fpurge): Likewise.
83306         * lib/freading.c (freading): Likewise.
83307         * lib/fseeko.c (rpl_fseeko): Likewise.
83308         * lib/fseterr.c (fseterr): Likewise.
83309         * lib/fwriting.c (fwriting): Likewise.
83310         * tests/test-fflush.c (main): Avoid a failure on uClibc.
83312 2007-06-08  Bruno Haible  <bruno@clisp.org>
83314         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
83315         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
83316         * modules/gettext (Files): Add m4/intlmacosx.m4.
83318 2007-06-07  Bruno Haible  <bruno@clisp.org>
83320         * modules/localename-tests: New file.
83321         * tests/test-localename.c: New file.
83323         New module 'localename'.
83324         * lib/localename.h: New file.
83325         * lib/localename.c: New file, from GNU gettext.
83326         * m4/localename.m4: New file.
83327         * modules/localename: New file.
83329 2007-06-07  Bruno Haible  <bruno@clisp.org>
83331         Work around the lack of <wchar.h> on some builds of uClibc.
83332         * doc/headers/wchar.texi: Update.
83333         * lib/wchar_.h: Include <wchar.h> only if it exists.
83334         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
83335         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
83336         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
83337         doesn't exist.
83338         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
83339         * modules/mbfile (Depends-on): Add wchar.
83340         * modules/mbiter (Depends-on): Likewise.
83341         * modules/mbuiter (Depends-on): Likewise.
83342         Reported by Simon Josefsson.
83344 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83346         Work around problem reported by Steven M. Schweda in
83347         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
83348         Tru64 5.1B with the Compaq compiler environment installed declares
83349         an 'isblank' function but does not define it in the C library.
83350         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
83351         * lib/regex_internal.h (isblank): Likewise.
83352         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
83353         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83355 2007-06-05  Bruno Haible  <bruno@clisp.org>
83357         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
83358         ia64.
83359         * modules/printf-safe: New file.
83360         * modules/fprintf-posix (Depends-on): Add printf-safe.
83361         * modules/printf-posix (Depends-on): Likewise.
83362         * modules/snprintf-posix (Depends-on): Likewise.
83363         * modules/sprintf-posix (Depends-on): Likewise.
83364         * modules/vasnprintf-posix (Depends-on): Likewise.
83365         * modules/vasprintf-posix (Depends-on): Likewise.
83366         * modules/vfprintf-posix (Depends-on): Likewise.
83367         * modules/vprintf-posix (Depends-on): Likewise.
83368         * modules/vsnprintf-posix (Depends-on): Likewise.
83369         * modules/vsprintf-posix (Depends-on): Likewise.
83370         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
83371         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
83372         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
83373         "no" on i386, x86_64, ia64.
83374         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
83375         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83376         on i386, x86_64, ia64.
83377         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
83378         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83379         on i386, x86_64, ia64.
83380         * tests/test-vasnprintf-posix.c: Include float.h.
83381         (LDBL80_WORDS): New macro.
83382         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83383         on i386, x86_64, ia64.
83384         * tests/test-vasprintf-posix.c: Include float.h.
83385         (LDBL80_WORDS): New macro.
83386         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83387         on i386, x86_64, ia64.
83388         * tests/test-snprintf-posix.c: Include float.h.
83389         * tests/test-sprintf-posix.c: Likewise.
83390         * tests/test-vsnprintf-posix.c: Likewise.
83391         * tests/test-vsprintf-posix.c: Likewise.
83393 2007-06-05  Bruno Haible  <bruno@clisp.org>
83395         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
83396         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
83397         non-IEEE numbers on i386, x86_64, ia64.
83398         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
83399         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
83400         * tests/test-isnanl.h: Include float.h.
83401         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
83403 2007-06-05  Bruno Haible  <bruno@clisp.org>
83405         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
83406         also the %a / %A. Handle the %a / %A code before this extra handling.
83408 2007-06-05  Bruno Haible  <bruno@clisp.org>
83410         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
83411         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
83413 2007-06-05  Bruno Haible  <bruno@clisp.org>
83415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
83416         typo in variable name.
83418 2007-06-05  Eric Blake  <ebb9@byu.net>
83420         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
83421         Reported by Simon Josefsson.
83423 2007-06-04  Bruno Haible  <bruno@clisp.org>
83425         Avoid test failures on some PowerPC platforms.
83426         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
83427         Define differently for PowerPC.
83428         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
83429         Reported by Gary V. Vaughan <gary@gnu.org>.
83431 2007-06-02  Bruno Haible  <bruno@clisp.org>
83433         Fix test-stdint failure on FreeBSD/ia64.
83434         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
83435         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
83436         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
83437         * doc/headers/stdint.texi: Update.
83439 2007-06-01  Bruno Haible  <bruno@clisp.org>
83441         * tests/test-binary-io.c (main): Pass a third argument to open().
83442         Reported by Gary V. Vaughan <gary@gnu.org>.
83444 2007-06-01  Bruno Haible  <bruno@clisp.org>
83446         * doc/functions/frexpl.texi: Update for mingw.
83448 2007-06-01  Bruno Haible  <bruno@clisp.org>
83450         * tests/test-lseek.c (main): Disable test of errno for invalid third
83451         argument.
83452         * doc/functions/lseek.texi: Update.
83453         Reported by Gary V. Vaughan <gary@gnu.org>.
83455 2007-05-28  Bruno Haible  <bruno@clisp.org>
83457         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
83459 2007-05-31  Eric Blake  <ebb9@byu.net>
83461         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
83462         cross compiling.
83464 2007-05-30  Eric Blake  <ebb9@byu.net>
83465         and Bruno Haible  <bruno@clisp.org>
83467         Work around mingw test failures exposed by m4-1.4.9b.
83468         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
83469         * tests/test-unistd.c: Disable uid_t and git_t tests for the
83470         moment.
83472 2007-05-30  Bruno Haible  <bruno@clisp.org>
83474         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
83475         assuming that they are closed. Needed on HP-UX 11.
83477 2007-05-29  Bruno Haible  <bruno@clisp.org>
83479         Fix a problem with #include_next.
83480         * lib/dirent_.h: Split the double-inclusion guard.
83481         * lib/fcntl_.h: Likewise.
83482         * lib/float_.h: Likewise.
83483         * lib/iconv_.h: Likewise.
83484         * lib/inttypes_.h: Likewise.
83485         * lib/locale_.h: Likewise.
83486         * lib/math_.h: Likewise.
83487         * lib/netinet_in_.h: Likewise.
83488         * lib/search_.h: Likewise.
83489         * lib/signal_.h: Likewise.
83490         * lib/stdint_.h: Likewise.
83491         * lib/stdio_.h: Likewise.
83492         * lib/stdlib_.h: Likewise.
83493         * lib/string_.h: Likewise.
83494         * lib/sys_select_.h: Likewise.
83495         * lib/sys_socket_.h: Likewise.
83496         * lib/sys_stat_.h: Likewise.
83497         * lib/sys_time_.h: Likewise.
83498         * lib/sysexits_.h: Likewise.
83499         * lib/time_.h: Likewise.
83500         * lib/unistd_.h: Likewise.
83501         * lib/wchar_.h: Likewise.
83502         * lib/wctype_.h: Likewise.
83504 2007-05-29  Bruno Haible  <bruno@clisp.org>
83506         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
83507         for the moment.
83509 2007-05-29  Bruno Haible  <bruno@clisp.org>
83511         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
83512         invocation.
83513         Reported by Eric Blake.
83515 2007-05-29  Bruno Haible  <bruno@clisp.org>
83517         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
83518         compiling case.
83520 2007-05-29  Eric Blake  <ebb9@byu.net>
83521             Bruno Haible  <bruno@clisp.org>
83523         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
83524         cross compiles.
83526 2007-05-28  Eric Blake  <ebb9@byu.net>
83528         * modules/closein-tests (test_closein_LDADD): Support test on
83529         cygwin with libtool.
83531 2007-05-28  Bruno Haible  <bruno@clisp.org>
83533         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
83534         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
83535         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
83536         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
83537         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
83538         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
83539         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
83540         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
83541         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
83543 2007-05-28  Eric Blake  <ebb9@byu.net>
83545         Unconditionally include <config.h> in unit tests.
83546         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
83547         * tests/test-allocsa.c, tests/test-arcfour.c,
83548         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
83549         tests/test-array_list.c, tests/test-array_oset.c,
83550         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
83551         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
83552         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
83553         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
83554         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
83555         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
83556         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
83557         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
83558         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
83559         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
83560         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
83561         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
83562         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
83563         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
83564         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
83565         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
83566         test-md5.c, test-memmem.c, test-printf-posix.c,
83567         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
83568         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
83569         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
83570         test-strcasestr.c, test-striconv.c, test-striconveh.c,
83571         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
83572         test-vasnprintf-posix2.c, test-vasnprintf.c,
83573         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
83574         test-vfprintf-posix.c, test-vprintf-posix.c,
83575         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
83576         test-xvasprintf.c: Likewise.
83578 2007-05-28  Bruno Haible  <bruno@clisp.org>
83580         * gnulib-tool (func_import): Remember the --with-tests command-line
83581         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
83582         Reported by Eric Blake.
83584 2007-05-28  Bruno Haible  <bruno@clisp.org>
83586         * modules/ftell-tests: New file.
83587         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
83588         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
83590         * lib/ftell.c: New file.
83591         * modules/ftell: New file.
83592         * m4/ftell.m4: New file.
83593         * doc/functions/ftell.texi: Update.
83594         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
83595         REPLACE_FTELL.
83596         * lib/stdio_.h (rpl_ftell): New declaration.
83597         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
83598         REPLACE_FTELL.
83600 2007-05-28  Eric Blake  <ebb9@byu.net>
83602         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
83604 2007-05-28  Bruno Haible  <bruno@clisp.org>
83606         * modules/fseek-tests: New file.
83607         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
83608         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
83610         * lib/fseek.c: New file.
83611         * modules/fseek: New file.
83612         * m4/fseek.m4: New file.
83613         * doc/functions/fseek.texi: Update.
83614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
83615         REPLACE_FSEEK.
83616         * lib/stdio_.h (rpl_fseek): New declaration.
83617         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
83618         REPLACE_FSEEK.
83620 2007-05-28  Bruno Haible  <bruno@clisp.org>
83622         * lib/stdio_.h (fflush): More comments.
83624 2007-05-28  Bruno Haible  <bruno@clisp.org>
83626         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
83627         runtime test.
83629 2007-05-28  Eric Blake  <ebb9@byu.net>
83631         Improve lseek module.
83632         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
83633         * lib/unistd_.h (lseek): Scale back link warning message.
83634         * tests/test-lseek.c: Beef up test.
83635         * tests/test-lseek.sh: Exercise more facets of lseek.
83636         Reported by Bruno Haible.
83638 2007-05-28  Bruno Haible  <bruno@clisp.org>
83640         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
83641         to define.
83643 2007-05-27  Bruno Haible  <bruno@clisp.org>
83645         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
83647 2007-05-27  Bruno Haible  <bruno@clisp.org>
83649         * modules/openmp: New file.
83650         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
83651         Noah Misch.
83653 2007-05-26  Bruno Haible  <bruno@clisp.org>
83655         * modules/chdir-long (Depends-on): Add fchdir.
83656         * modules/chdir-safer (Depends-on): Likewise.
83657         * modules/fts (Depends-on): Likewise.
83658         * modules/fts-lgpl (Depends-on): Likewise.
83659         * modules/openat (Depends-on): Likewise.
83660         * modules/savewd (Depends-on): Likewise.
83662 2007-05-24  Eric Blake  <ebb9@byu.net>
83664         Fix lseek on mingw.
83665         * modules/lseek: New module.
83666         * m4/lseek.m4: New file.
83667         * lib/lseek.c: New file.
83668         * modules/lseek-tests: New file.
83669         * tests/test-lseek.c: New file.
83670         * tests/test-lseek.sh: New file.
83671         * MODULES.html.sh: Document lseek module.
83672         * modules/fflush (Depends-on): Add lseek, fseeko.
83673         * modules/fseeko (Depends-on): Likewise.
83674         * modules/ftello (Depends-on): Likewise.
83675         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
83676         broken.
83677         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
83678         broken.
83679         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
83680         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
83681         * lib/ftello.c (rpl_ftello): Likewise.
83682         * tests/test-fseeko.c (main): Test this.
83683         * tests/test-fseeko.sh: Likewise.
83684         * tests/test-ftello.c (main): Likewise.
83685         * tests/test-ftello.sh: Likewise.
83686         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
83687         implies replacing fseek.
83688         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
83689         HAVE_FTELLO.
83690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
83691         * modules/unistd (Makefile.am): Likewise.
83692         * lib/unistd_.h (lseek): Declare a replacement.
83693         * doc/functions/lseek.texi (lseek): Document this fix.
83694         * doc/functions/fseek.texi (fseek): Likewise.
83695         * doc/functions/ftell.texi (ftell): Likewise.
83697 2007-05-24  Bruno Haible  <bruno@clisp.org>
83699         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
83700         in the printed representation of a NaN.
83701         * tests/test-vasprintf-posix.c (test_function): Likewise.
83702         * tests/test-snprintf-posix.h (test_function): Likewise.
83703         * tests/test-sprintf-posix.h (test_function): Likewise.
83704         Reported by Eric Blake.
83706 2007-05-23  Eric Blake  <ebb9@byu.net>
83708         Fix fseeko/ftello on cygwin 1.5.24.
83709         * doc/functions/fseeko.texi (fseeko): Document the fix.
83710         * doc/functions/ftello.texi (ftello): Document the fix.
83711         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
83712         * doc/functions/stdout.text (stdout): New file.
83713         * doc/functions/stderr.text (stderr): New file.
83714         * doc/gnulib.texi (Function Substitutes): Use new files.
83715         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
83716         prior to 1.7.0.
83717         * tests/test-ftello.c (main): Likewise for ftello.
83718         * tests/test-fseeko.sh: New file.
83719         * tests/test-ftello.sh: New file.
83720         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
83721         with seekable stdin.
83722         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
83723         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
83724         (gl_REPLACE_FSEEKO): New macro.
83725         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
83726         * modules/fseeko (Files): Distribute fseeko.c.
83727         * modules/ftello (Files): Distribute ftello.c.
83728         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
83729         mode.
83730         * lib/ftello.c (rpl_ftello): New file.
83731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
83732         fseeko, ftello.
83733         (gl_STDIN_LARGE_OFFSET): New macro.
83734         * modules/stdio (Makefile.am): Perform the replacement.
83735         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
83737 2007-05-23  Bruno Haible  <bruno@clisp.org>
83739         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
83740         GNULIB_POSIXCHECK is defined.
83742 2007-05-21  Bruno Haible  <bruno@clisp.org>
83744         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
83745         Check also the output for NaN arguments. When cross-compiling, guess
83746         no on IRIX.
83747         * lib/vasnprintf.c: Update comments.
83748         * tests/test-vasnprintf-posix.c (strisnan): New function.
83749         (test_function): Use it.
83750         * tests/test-vasprintf-posix.c (strisnan): New function.
83751         (test_function): Use it.
83752         * tests/test-snprintf-posix.h (strisnan): New function.
83753         (test_function): Use it.
83754         * tests/test-sprintf-posix.h (strisnan): New function.
83755         (test_function): Use it.
83756         Reported by Eric Blake.
83758 2007-05-20  Bruno Haible  <bruno@clisp.org>
83760         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
83761         numbers that fails on BeOS.
83762         * doc/functions/frexpl.texi: Update.
83764 2007-05-20  Jim Meyering  <jim@meyering.net>
83766         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
83767         forced upon us by glibc-2.6.
83769 2007-05-20  Bruno Haible  <bruno@clisp.org>
83771         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
83772         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
83773         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
83774         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
83775         NEED_PRINTF_INFINITE.
83776         (is_infinitel): New function.
83777         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
83778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
83779         gl_PREREQ_VASNPRINTF_INFINITE.
83780         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
83781         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83782         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
83783         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
83784         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
83785         gl_PREREQ_VASNPRINTF_INFINITE.
83786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83793         * doc/functions/fprintf.texi: Update.
83794         * doc/functions/printf.texi: Update.
83795         * doc/functions/snprintf.texi: Update.
83796         * doc/functions/sprintf.texi: Update.
83797         * doc/functions/vfprintf.texi: Update.
83798         * doc/functions/vprintf.texi: Update.
83799         * doc/functions/vsnprintf.texi: Update.
83800         * doc/functions/vsprintf.texi: Update.
83802 2007-05-20  Bruno Haible  <bruno@clisp.org>
83804         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
83805         was not found in libc.
83806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
83808 2007-05-20  Bruno Haible  <bruno@clisp.org>
83810         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
83811         printed as "-nan" instead of "nan".
83812         * tests/test-vasprintf-posix.c (test_function): Likewise.
83813         * tests/test-snprintf-posix.h (test_function): Likewise.
83814         * tests/test-sprintf-posix.h (test_function): Likewise.
83815         Needed for HP-UX 11.
83817 2007-05-20  Jim Meyering  <jim@meyering.net>
83819         Fix buggy test for the fchownat-deref bug.
83820         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
83821         symlink required for the run-test.  Without it, this test would
83822         always declare that fchownat doesn't work, and client code would
83823         unnecessarily use the replacement function with fixed libc.
83824         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
83825         Reported by Greg Schafer.
83827 2007-05-19  Bruno Haible  <bruno@clisp.org>
83829         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
83830         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
83831         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
83832         Needed for IRIX 6.5 and Solaris 2.5.1.
83834 2007-05-19  Bruno Haible  <bruno@clisp.org>
83836         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
83837         (test_function): Skip tests involving -0.0 on platforms where
83838         -0.0 = 0.0.
83839         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
83840         (test_function): Skip tests involving -0.0 on platforms where
83841         -0.0 = 0.0.
83842         * tests/test-snprintf-posix.h (have_minus_zero): New function.
83843         (test_function): Skip tests involving -0.0 on platforms where
83844         -0.0 = 0.0.
83845         * tests/test-sprintf-posix.h (have_minus_zero): New function.
83846         (test_function): Skip tests involving -0.0 on platforms where
83847         -0.0 = 0.0.
83848         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
83849         tests.
83850         * tests/test-printf-posix.h (test_function): Likewise.
83851         * tests/test-printf-posix.output: Remove all -0.0 related results.
83852         Needed for IRIX 6.5.
83854 2007-05-19  Bruno Haible  <bruno@clisp.org>
83856         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
83857         printed as "nan0x7fffffff" instead of "nan".
83858         * tests/test-vasprintf-posix.c (test_function): Likewise.
83859         * tests/test-snprintf-posix.h (test_function): Likewise.
83860         * tests/test-sprintf-posix.h (test_function): Likewise.
83861         * tests/test-fprintf-posix.h (NaN): Remove macro.
83862         (test_function): Remove all NaN related tests.
83863         * tests/test-printf-posix.h (NaN): Remove macro.
83864         (test_function): Remove all NaN related tests.
83865         * tests/test-printf-posix.output: Remove all NaN related results.
83866         Needed for IRIX 6.5.
83868 2007-05-19  Bruno Haible  <bruno@clisp.org>
83870         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
83871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
83873 2007-05-19  Bruno Haible  <bruno@clisp.org>
83875         * lib/float_.h: New file.
83876         * m4/float_h.m4: New file.
83877         * modules/float: New file.
83878         * modules/isnanl (Dependencies): Add float.
83879         * modules/isnanl-nolibm (Dependencies): Likewise.
83880         * modules/mathl (Dependencies): Likewise.
83881         * modules/printf-frexpl (Dependencies): Likewise.
83882         * modules/signbit (Dependencies): Likewise.
83883         * modules/vasnprintf (Dependencies): Likewise.
83884         * doc/headers/float.texi: Update.
83886 2007-05-19  Jim Meyering  <jim@meyering.net>
83888         * lib/utimens.c (gl_futimens): Rename from futimens,
83889         now that glibc-2.6 declares futimens.
83890         * lib/utimens.h: Likewise.
83892 2007-05-19  Bruno Haible  <bruno@clisp.org>
83894         Avoid test failures on mingw.
83895         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
83896         * tests/test-printf-posix.sh: Likewise.
83897         * tests/test-vfprintf-posix.sh: Likewise.
83898         * tests/test-vprintf-posix.sh: Likewise.
83900 2007-05-19  Bruno Haible  <bruno@clisp.org>
83902         Fix *printf result for NaN, Inf, -0.0 on mingw.
83903         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
83904         * lib/vasnprintf.c: Include math.h and isnan.h.
83905         (is_infinite_or_zero): New function.
83906         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
83907         values in the %f, %F, %e, %E, %g, %G directives.
83908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
83909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83910         gl_PRINTF_INFINITE and test its result. Invoke
83911         gl_PREREQ_VASNPRINTF_INFINITE.
83912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83919         * doc/functions/fprintf.texi: Update.
83920         * doc/functions/printf.texi: Update.
83921         * doc/functions/snprintf.texi: Update.
83922         * doc/functions/sprintf.texi: Update.
83923         * doc/functions/vfprintf.texi: Update.
83924         * doc/functions/vprintf.texi: Update.
83925         * doc/functions/vsnprintf.texi: Update.
83926         * doc/functions/vsprintf.texi: Update.
83928 2007-05-19  Bruno Haible  <bruno@clisp.org>
83930         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
83931         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
83932         Instead of multiplying with 10^k, set extra_zeroes to k.
83933         (scale10_round_long_double): Remove function.
83935 2007-05-18  Bruno Haible  <bruno@clisp.org>
83937         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
83938         introduced on 2007-05-06.
83940 2007-05-18  Bruno Haible  <bruno@clisp.org>
83942         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
83943         %g directives.
83944         * tests/test-vasprintf-posix.c (test_function): Likewise.
83945         * tests/test-snprintf-posix.h (test_function): Likewise.
83946         * tests/test-sprintf-posix.h (test_function): Likewise.
83948 2007-05-18  Bruno Haible  <bruno@clisp.org>
83950         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
83951         (strmatch): New function.
83952         (test_function): Test the %f directive on numbers of various exponents.
83953         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
83954         (strmatch): New function.
83955         (test_function): Test the %f directive on numbers of various exponents.
83956         * tests/test-snprintf-posix.h (strmatch): New function.
83957         (test_function): Test the %f directive on numbers of various exponents.
83958         * tests/test-sprintf-posix.h (strmatch): New function.
83959         (test_function): Test the %f directive on numbers of various exponents.
83960         * tests/test-snprintf-posix.c (SIZEOF): New macro.
83961         * tests/test-sprintf-posix.c (SIZEOF): New macro.
83962         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
83963         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
83965 2007-05-18  Bruno Haible  <bruno@clisp.org>
83967         Add support for 'long double' number output.
83968         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
83969         * lib/vasnprintf.c: Include math.h and float+.h.
83970         (mp_limb_t): New type.
83971         (GMP_LIMB_BITS): New macro.
83972         (mp_twolimb_t): New type.
83973         (GMP_TWOLIMB_BITS): New macro.
83974         (mpn_t): New type.
83975         (multiply, divide, convert_to_decimal, decode_long_double,
83976         scale10_round_long_double, scale10_round_decimal_long_double,
83977         floorlog10l): New functions.
83978         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
83979         for the %f, %F, %e, %E, %g, %G directives.
83980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
83981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83982         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
83983         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
83984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83990         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83991         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
83992         * modules/snprintf-posix (Depends-on): Likewise.
83993         * modules/sprintf-posix (Depends-on): Likewise.
83994         * modules/vasnprintf-posix (Depends-on): Likewise.
83995         * modules/vasprintf-posix (Depends-on): Likewise.
83996         * modules/vfprintf-posix (Depends-on): Likewise.
83997         * modules/vsnprintf-posix (Depends-on): Likewise.
83998         * modules/vsprintf-posix (Depends-on): Likewise.
83999         * modules/vasnprintf (Files): Add lib/float+.h.
84000         * doc/functions/fprintf.texi: Update.
84001         * doc/functions/printf.texi: Update.
84002         * doc/functions/snprintf.texi: Update.
84003         * doc/functions/sprintf.texi: Update.
84004         * doc/functions/vfprintf.texi: Update.
84005         * doc/functions/vprintf.texi: Update.
84006         * doc/functions/vsnprintf.texi: Update.
84007         * doc/functions/vsprintf.texi: Update.
84009 2007-05-18  Bruno Haible  <bruno@clisp.org>
84011         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
84013 2007-05-18  Bruno Haible  <bruno@clisp.org>
84015         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
84016         for printing 64-bit integers. Needed for mingw.
84018 2007-05-18  Bruno Haible  <bruno@clisp.org>
84020         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84021         gl_FUNC_FREXPL_WORKS.
84022         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
84024 2007-05-18  Bruno Haible  <bruno@clisp.org>
84026         * modules/frexpl-nolibm-tests: New file.
84028         * modules/frexpl-nolibm: New file.
84029         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
84031 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84033         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
84034         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84035         GCC 4.2, which otherwise issues a lot of warnings.
84036         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
84037         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
84038         Likewise.
84039         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
84040         * modules/iconv_open (iconv.h): Likewise.
84041         * modules/locale (locale.h): Likewise.
84042         * modules/netinet_in (netinet/in.h): Likewise.
84043         * modules/sys_select (sys_select.h): Likewise.
84044         * modules/sys_socket (sys/socket.h): Likewise.
84045         * modules/sys_stat (sys/stat.h): Likewise.
84046         * modules/sysexits (sysexits.h): Likewise.
84047         * modules/unistd (unistd.h): Likewise.
84049 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84051         * modules/closein-tests (Makefile.am): Distribute
84052         `test-closein.sh'.
84054 2007-05-17  Bruno Haible  <bruno@clisp.org>
84056         * tests/test-printf-posix.output: Renamed from
84057         tests/test-fprintf-posix.out.
84058         * modules/fprintf-posix-tests: Update.
84059         * modules/printf-posix-tests: Update.
84060         * modules/vfprintf-posix-tests: Update.
84061         * modules/vprintf-posix-tests: Update.
84062         * tests/test-fprintf-posix.sh: Update.
84063         * tests/test-printf-posix.sh: Update.
84064         * tests/test-vfprintf-posix.sh: Update.
84065         * tests/test-vprintf-posix.sh: Update.
84066         Reported by Ralf Wildenhues.
84068 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84070         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
84071         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
84072         GCC 4.2, which otherwise issues a lot of warnings.
84073         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
84074         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
84075         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
84076         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
84077         it should no longer be needed.
84078         * lib/string_.h: Likewise.
84079         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
84080         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
84081         * modules/inttypes (inttypes.h): Likewise.
84082         * modules/math (math.h): Likewise.
84083         * modules/search (search.h): Likewise.
84084         * modules/signal (signal.h): Likewise.
84085         * modules/stdint (stdint.h): Likewise.
84086         * modules/stdio (stdio.h): Likewise.
84087         * modules/stdlib (stdlib.h): Likewise.
84088         * modules/string (string.h): Likewise.
84089         * modules/sys_time (sys/time.h): Likewise.
84090         * modules/time (time.h): Likewise.
84091         * modules/wchar (wchar.h): Likewise.
84092         * modules/wctype (wtype.h): Likewise.
84094 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
84096         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
84098 2007-05-13  Bruno Haible  <bruno@clisp.org>
84100         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
84101         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
84102         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
84103         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
84104         (gl_PREREQ_STRTOK_R): Don't require it here.
84106 2007-05-13  Bruno Haible  <bruno@clisp.org>
84108         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
84109         when used in C++ mode.
84111 2007-05-12  Bruno Haible  <bruno@clisp.org>
84113         * lib/linebuffer.h: Tweak doc.
84114         * lib/linebuffer.c: Likewise.
84116 2007-05-12  James Youngman  <jay@gnu.org>
84118         * lib/linebuffer.c (readlinebuffer_delim): New function,
84119         like readlinebuffer, but use a caller-specified delimiter.
84120         (readlinebuffer): Just call readlinebuffer_delim with '\n'
84121         as the delimiter.
84122         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
84124 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
84126         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
84127         * modules/openat (Files): Remove openat-die.c.
84128         (Depends-on): Add openat-die.
84129         * modules/openat-die: New module.
84131 2007-05-06  Bruno Haible  <bruno@clisp.org>
84133         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
84134         Update with info about Cygwin.
84135         * doc/functions/fprintf.texi: Update.
84136         * doc/functions/printf.texi: Update.
84137         * doc/functions/snprintf.texi: Update.
84138         * doc/functions/sprintf.texi: Update.
84139         * doc/functions/vfprintf.texi: Update.
84140         * doc/functions/vprintf.texi: Update.
84141         * doc/functions/vsnprintf.texi: Update.
84142         * doc/functions/vsprintf.texi: Update.
84143         Reported by Eric Blake.
84145 2007-05-06  Bruno Haible  <bruno@clisp.org>
84147         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
84148         padding ourselves for the floating-point directives.
84149         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
84150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
84151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84152         gl_PRINTF_FLAG_ZERO and test its result. Invoke
84153         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
84154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
84156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84161         * tests/test-snprintf-posix.h (test_function): Also check the width
84162         and some flags in the %f directive.
84163         * tests/test-sprintf-posix.h (test_function): Likewise.
84164         * tests/test-vasnprintf-posix.c (test_function): Likewise.
84165         * tests/test-vasprintf-posix.c (test_function): Likewise.
84166         * doc/functions/fprintf.texi: Update.
84167         * doc/functions/printf.texi: Update.
84168         * doc/functions/snprintf.texi: Update.
84169         * doc/functions/sprintf.texi: Update.
84170         * doc/functions/vfprintf.texi: Update.
84171         * doc/functions/vprintf.texi: Update.
84172         * doc/functions/vsnprintf.texi: Update.
84173         * doc/functions/vsprintf.texi: Update.
84175 2007-05-06  Bruno Haible  <bruno@clisp.org>
84177         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
84178         pass the ' flag character to sprintf or snprintf.
84179         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
84180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
84181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84182         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
84183         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
84184         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
84186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84188         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84190         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84191         * tests/test-snprintf-posix.h (test_function): Also check the grouping
84192         flag.
84193         * tests/test-sprintf-posix.h (test_function): Likewise.
84194         * tests/test-vasnprintf-posix.c (test_function): Likewise.
84195         * tests/test-vasprintf-posix.c (test_function): Likewise.
84196         * doc/functions/fprintf.texi: Update.
84197         * doc/functions/printf.texi: Update.
84198         * doc/functions/snprintf.texi: Update.
84199         * doc/functions/sprintf.texi: Update.
84200         * doc/functions/vfprintf.texi: Update.
84201         * doc/functions/vprintf.texi: Update.
84202         * doc/functions/vsnprintf.texi: Update.
84203         * doc/functions/vsprintf.texi: Update.
84205 2007-05-01  Bruno Haible  <bruno@clisp.org>
84207         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
84209 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
84211         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
84212         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
84214 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
84216         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
84217         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
84218         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
84220 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
84222         * lib/argp-help.c (struct hol_entry): New member `ord'.
84223         (HOL_ENTRY_PTRCMP): Use ord for comparison
84224         (hol_sort): Initialize ord.
84226 2007-05-01  Bruno Haible  <bruno@clisp.org>
84228         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
84229         Reported by Eric Blake.
84230         * doc/gnulib.texi (Function Substitutes): Update.
84232 2007-05-01  Bruno Haible  <bruno@clisp.org>
84234         * doc/functions.texi: Remove file, now redundant through
84235         doc/functions/*.texi.
84237 2007-05-01  Bruno Haible  <bruno@clisp.org>
84239         * modules/argp (Depends-on): Add sleep.
84241 2007-05-01  Bruno Haible  <bruno@clisp.org>
84243         * modules/sleep-tests: New file.
84244         * tests/test-sleep.c: New file.
84246         * modules/sleep: New file.
84247         * lib/sleep.c: New file.
84248         * m4/sleep.m4: New file.
84249         * lib/unistd_.h (sleep): New declaration.
84250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
84251         HAVE_SLEEP.
84252         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
84253         * doc/functions/sleep.texi: Document the sleep module.
84255 2007-05-01  Bruno Haible  <bruno@clisp.org>
84257         * lib/sigprocmask.h: Remove file.
84258         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
84259         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
84260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
84261         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
84262         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
84263         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
84264         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
84265         HAVE_SIGSET_T as a shell variable.
84266         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
84267         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
84268         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
84269         (Depends-on): Add signal. Remove verify.
84270         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
84271         (Include): Mention <signal.h> instead of sigprocmask.h.
84272         * NEWS: Mention the change.
84273         * lib/fatal-signal.c: Don't include sigprocmask.h.
84275 2007-05-01  Bruno Haible  <bruno@clisp.org>
84277         * modules/signal: New file.
84278         * lib/signal_.h: New file.
84279         * m4/signal_h.m4: New file.
84281 2007-05-01  Bruno Haible  <bruno@clisp.org>
84283         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
84284         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
84285         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
84286         HAVE_WCTYPE_CTMP_BUG into wctype.h.
84288 2007-05-01  Bruno Haible  <bruno@clisp.org>
84290         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
84291         configure time.
84292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
84293         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
84294         * modules/sys_stat (Makefile.am): Substitute their values into
84295         sys/stat.h.
84297 2007-05-01  Bruno Haible  <bruno@clisp.org>
84299         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
84300         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
84301         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
84303 2007-05-01  Bruno Haible  <bruno@clisp.org>
84305         * doc/header/assert.texi: Undo last change: don't mention the gnulib
84306         'assert' module here.
84308 2007-05-01  Bruno Haible  <bruno@clisp.org>
84310         * doc/functions/*.texi: New files.
84311         * doc/functions/google-ranking.txt: New file.
84312         * doc/gnulib.texi (Function Substitutes): New chapter.
84313         (ctime, inet_ntoa): Remove sections.
84314         * doc/ctime.texi: Remove file.
84315         * doc/inet_ntoa.texi: Remove file.
84316         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
84317         dependencies.
84318         (%.info): New rule, specifying a --reference-limit.
84320 2007-05-01  Bruno Haible  <bruno@clisp.org>
84322         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
84324 2007-05-01  Bruno Haible  <bruno@clisp.org>
84326         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
84327         the portability of 'mkdir' to mingw systems.
84329 2007-05-01  Bruno Haible  <bruno@clisp.org>
84331         * doc/headers/google-ranking.txt: New file.
84333 2007-04-30  Eric Blake  <ebb9@byu.net>
84335         Prefer fseeko to fseek.
84336         * modules/getpass (Depends-on): Add fseeko.
84337         * lib/getpass.c (getpass): Use fseeko, not fseek.
84339 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
84341         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
84342         assumes the sorting is stable, while most qsort implementations
84343         are not.  Use argument addresses to ensure they never compare as
84344         equal.
84346         * tests/test-argp-2.sh (usage-indent test): Fix output
84347         (func_compare): Restore diff options
84348         * tests/test-argp.c: Restore #include "progname.h"
84350 2007-04-29  Bruno Haible  <bruno@clisp.org>
84352         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
84353         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84354         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
84355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84356         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
84357         (configure.ac): Define CHECK_SNPRINTF_POSIX.
84358         (TESTS, check_PROGRAMS): Add test-snprintf.
84359         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
84360         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
84361         (TESTS, check_PROGRAMS): Add test-vsnprintf.
84362         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
84363         assertions that fail on HP-UX, OSF/1, or IRIX.
84364         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
84366 2007-04-29  Bruno Haible  <bruno@clisp.org>
84368         * MODULES.html.sh (posix_functions): Remove 'contents'.
84370 2007-04-29  Karl Berry  <karl@gnu.org>
84372         * config/srclist.txt (gendocs_template_min): new entry.
84374 2007-04-29  Bruno Haible  <bruno@clisp.org>
84376         Work around fpurge bug on BSD systems.
84377         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
84378         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
84379         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
84380         fpurge to rpl_fpurge if the system already has this function.
84381         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
84382         the case where the system already has this function. Correct invariants
84383         on BSD systems.
84384         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
84385         BSD systems.
84387 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
84389         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
84390         proposed by Sven Verdoolaege.
84392         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
84393         options.
84394         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
84395         (usage and help tests): Update
84397 2007-04-29  Bruno Haible  <bruno@clisp.org>
84399         * tests/test-fflush.c (main): Use a file of size 17, not 10.
84400         Print more information in case of failure. Disable a test on BeOS.
84402 2007-04-29  Bruno Haible  <bruno@clisp.org>
84404         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
84405         This helps debugging on systems on which no gdb is available.
84407 2007-04-29  Bruno Haible  <bruno@clisp.org>
84409         * lib/freading.h: Improve comments.
84410         * lib/fwriting.h: Likewise.
84411         * tests/test-freading.c (main): Don't check freading immediately after
84412         repositioning. Needed for glibc.
84414 2007-04-29  Bruno Haible  <bruno@clisp.org>
84416         * lib/freading.c (freading): Trivial simplification.
84418 2007-04-28  Bruno Haible  <bruno@clisp.org>
84420         * tests/test-fwriting.c (main): Also test the interaction between
84421         fflush and fwriting.
84422         * modules/fwriting-tests (Depends-on): Add fflush.
84424         * tests/test-freading.c (main): Also test the interaction between
84425         fflush and freading.
84426         * modules/freading-tests (Depends-on): Add fflush.
84428 2007-04-28  Bruno Haible  <bruno@clisp.org>
84430         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
84431         fseeko and ftello.
84432         Suggested by Eric Blake.
84434 2007-04-28  Jim Meyering  <jim@meyering.net>
84436         Avoid false-negative in gl_STDINT_H's C99 conformance test.
84437         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
84438         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
84440 2007-04-27  Eric Blake  <ebb9@byu.net>
84442         * doc/headers/assert.texi (assert.h): Document assert module use.
84444 2007-04-27  Bruno Haible  <bruno@clisp.org>
84446         * doc/headers/*.texi: New files.
84447         * doc/gnulib.texi (Header File Substitutes): New chapter.
84448         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
84449         dependencies.
84450         (standards.info ,standards.html, standards.dvi): Update dependencies.
84451         (mostlyclean, clean): New targets.
84453 2007-04-27  Bruno Haible  <bruno@clisp.org>
84455         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
84456         * modules/sysexits (Files, Makefile.am): Update.
84458         * lib/sys_socket_.h: Renamed from lib/socket_.h.
84459         * modules/sys_socket (Files, Makefile.am): Update.
84461         * lib/sys_stat_.h: Renamed from lib/stat_.h.
84462         * modules/sys_stat (Files, Makefile.am): Update.
84464 2007-04-27  Eric Blake  <ebb9@byu.net>
84466         * lib/freading.h: Improve comments.
84467         * lib/fwriting.h: Likewise.
84468         * lib/fflush.c: Likewise.
84470         Fix closein for mingw.
84471         * modules/closein-tests: Add tests for closein.
84472         * tests/test-closein.c: New file.
84473         * tests/test-closein.sh: Likewise.
84474         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
84475         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
84477 2007-04-27  Bruno Haible  <bruno@clisp.org>
84479         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
84480         version is < 6.
84481         * lib/math_.h [__DECC]: Likewise.
84482         * lib/stdio_.h [__DECC]: Likewise.
84483         * lib/stdlib_.h [__DECC]: Likewise.
84484         * lib/string_.h [__DECC]: Likewise.
84485         * lib/time_.h [__DECC]: Likewise.
84486         * lib/wchar_.h [__DECC]: Likewise.
84487         * lib/wctype_.h [__DECC]: Likewise.
84489 2007-04-27  Bruno Haible  <bruno@clisp.org>
84491         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
84493 2007-04-27  Bruno Haible  <bruno@clisp.org>
84495         * lib/fflush.c: Add comments.
84496         * modules/fpurge-tests (Depends-on): Add fflush.
84497         * modules/freadable-tests (Depends-on): Likewise.
84498         * modules/fwritable-tests (Depends-on): Likewise.
84500 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
84502         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
84503         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
84504         Report by Bruno Haible <bruno@clisp.org>.
84506 2007-04-26  Eric Blake  <ebb9@byu.net>
84508         Fix fflush on mingw.
84509         * modules/fflush (Depends-on): Add freading.
84510         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
84511         but unread data.
84513 2007-04-26  Eric Blake  <ebb9@byu.net>
84514         and Bruno Haible  <bruno@clisp.org>
84516         Implement freading and fwriting.
84517         * lib/freading.c: New file.
84518         * lib/freading.h: Likewise.
84519         * m4/freading.m4: Likewise.
84520         * modules/freading: Likewise.
84521         * modules/freading-tests: Likewise.
84522         * tests/test-freading.c: Likewise.
84523         * lib/fwriting.c: New file.
84524         * lib/fwriting.h: Likewise.
84525         * m4/fwriting.m4: Likewise.
84526         * modules/fwriting: Likewise.
84527         * modules/fwriting-tests: Likewise.
84528         * tests/test-fwriting.c: Likewise.
84529         * MODULES.html.sh (File stream based Input/Output): Mention them.
84531 2007-04-26  Bruno Haible  <bruno@clisp.org>
84533         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
84534         'long' when we assume it.
84535         Suggested by Eric Blake.
84537 2007-04-26  Bruno Haible  <bruno@clisp.org>
84539         Ensure fseeko, ftello are declared on glibc systems.
84540         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
84541         * modules/fseeko (configure.ac-early): Likewise.
84542         * modules/ftello (configure.ac-early): Likewise.
84543         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
84544         AC_FUNC_FSEEKO for this.
84545         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
84546         (gl_CHECK_FSEEKO): Remove macro.
84548 2007-04-26  Bruno Haible  <bruno@clisp.org>
84550         * tests/test-fflush.c (main): Also check the ftell result after
84551         fflush and fseek/fseeko.
84552         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
84553         file descriptor position cache in the stream.
84554         * lib/fseeko.c (rpl_fseeko): Likewise.
84556 2007-04-26  Bruno Haible  <bruno@clisp.org>
84558         * modules/fflush-tests (Depends-on): Add fseeko.
84560 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
84561             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84563         * lib/argz_.h: ensure error_t definition is obtained in same
84564         mechanism system argz.h would have.
84565         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
84566         argz facilities are known bad.  Err on the side of caution if
84567         cross-compiling.
84569 2007-04-25  Eric Blake  <ebb9@byu.net>
84571         * lib/fpurge.c (includes): Use stdlib.h for free.
84572         * tests/test-fflush.c (main): Also test fflush-fseeko.
84574 2007-04-25  Bruno Haible  <bruno@clisp.org>
84576         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
84577         * lib/fseeko.c: New file.
84578         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
84579         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
84580         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
84581         gl_FUNC_FSEEKO.
84582         (gl_FUNC_FSEEKO): Invoke it.
84583         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
84584         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
84585         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
84587 2007-04-25  Bruno Haible  <bruno@clisp.org>
84589         * modules/fflush (Depends-on): Add ftello.
84591 2007-04-25  Bruno Haible  <bruno@clisp.org>
84593         * modules/ftello-tests: New file.
84594         * tests/test-ftello.c: New file.
84596         * modules/ftello: New file.
84597         * m4/ftello.m4: New file.
84598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
84599         HAVE_FTELLO.
84600         * lib/stdio_.h (ftello): New declaration.
84601         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
84602         HAVE_FTELLO.
84604 2007-04-25  Bruno Haible  <bruno@clisp.org>
84606         * modules/fseeko-tests: New file.
84607         * tests/test-fseeko.c: New file.
84609         * modules/fseeko: New file.
84610         * m4/fseeko.m4: New file.
84611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
84612         HAVE_FSEEKO.
84613         * lib/stdio_.h (fseeko): New declaration.
84614         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
84615         HAVE_FSEEKO.
84617 2007-04-25  Bruno Haible  <bruno@clisp.org>
84619         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
84621 2007-04-25  Bruno Haible  <bruno@clisp.org>
84623         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
84624         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
84625         * tests/test-unistd.c: Likewise.
84626         * tests/test-fcntl.c: Likewise.
84628 2007-04-23  Eric Blake  <ebb9@byu.net>
84630         * lib/fflush.c: Fix missing include.
84631         Reported by Bruno Haible.
84633 2007-04-23  Bruno Haible  <bruno@clisp.org>
84635         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
84636         Reported by Eric Blake.
84638 2007-04-23  Bruno Haible  <bruno@clisp.org>
84640         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
84642 2007-04-23  Bruno Haible  <bruno@clisp.org>
84644         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
84646 2007-04-23  Bruno Haible  <bruno@clisp.org>
84648         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
84649         Needed on HP-UX 11.
84651 2007-04-16  Eric Blake  <ebb9@byu.net>
84653         Make fflush rely on fpurge.
84654         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
84655         open coding all variants.
84656         * modules/fflush (Depends-on): Add fpurge and unistd.
84657         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
84658         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
84660         Fix --with-tests compilation on cygwin.
84661         * modules/argmatch-tests (Makefile.am): List gnulib library first
84662         in LDADD.
84663         * modules/argp-tests (Makefile.am): Likewise.
84664         * modules/array-list-tests (Makefile.am): Likewise.
84665         * modules/array-oset-tests (Makefile.am): Likewise.
84666         * modules/avltree-list-tests (Makefile.am): Likewise.
84667         * modules/avltree-oset-tests (Makefile.am): Likewise.
84668         * modules/avltreehash-list-tests (Makefile.am): Likewise.
84669         * modules/carray-list-tests (Makefile.am): Likewise.
84670         * modules/dirname-tests (Makefile.am): Likewise.
84671         * modules/frexp-tests (Makefile.am): Likewise.
84672         * modules/isnanl-tests (Makefile.am): Likewise.
84673         * modules/linked-list-tests (Makefile.am): Likewise.
84674         * modules/linkedhash-list-tests (Makefile.am): Likewise.
84675         * modules/lock-tests (Makefile.am): Likewise.
84676         * modules/rbtree-list-tests (Makefile.am): Likewise.
84677         * modules/rbtree-oset-tests (Makefile.am): Likewise.
84678         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
84679         * modules/tls-tests (Makefile.am): Likewise.
84680         * modules/tsearch-tests (Makefile.am): Likewise.
84681         * modules/xvasprintf-tests (Makefile.am): Likewise.
84683         Fix fpurge for cygwin.
84684         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
84685         value.
84686         * modules/fpurge-tests (Depends-on): Clean up trash.
84688 2007-04-16  Simon Josefsson  <simon@josefsson.org>
84690         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
84692         * m4/autobuild.m4: Re-indent.
84694 2007-04-13  Bruno Haible  <bruno@clisp.org>
84696         * modules/fpurge-tests: New file.
84697         * tests/test-fpurge.c: New file.
84699         * modules/fpurge: New file.
84700         * lib/fpurge.h: New file.
84701         * lib/fpurge.c: New file.
84702         * m4/fpurge.m4: New file.
84704 2007-04-13  Bruno Haible  <bruno@clisp.org>
84706         * modules/fbufmode-tests: New file.
84707         * tests/test-fbufmode.c: New file.
84709         * modules/fbufmode: New file.
84710         * lib/fbufmode.h: New file.
84711         * lib/fbufmode.c: New file.
84712         * m4/fbufmode.m4: New file.
84714 2007-04-13  Bruno Haible  <bruno@clisp.org>
84716         * modules/fwritable-tests: New file.
84717         * tests/test-fwritable.c: New file.
84719         * modules/fwritable: New file.
84720         * lib/fwritable.h: New file.
84721         * lib/fwritable.c: New file.
84722         * m4/fwritable.m4: New file.
84724 2007-04-13  Bruno Haible  <bruno@clisp.org>
84726         * modules/freadable-tests: New file.
84727         * tests/test-freadable.c: New file.
84729         * modules/freadable: New file.
84730         * lib/freadable.h: New file.
84731         * lib/freadable.c: New file.
84732         * m4/freadable.m4: New file.
84734 2007-04-13  Bruno Haible  <bruno@clisp.org>
84736         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
84737         MOSTLYCLEANFILES.
84739 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84741         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
84742         gzip bootstrap.conf to avoid dragging in i18n machinery.
84743         (gnulib_tool_option): Use it.
84745 2007-04-13  Bruno Haible  <bruno@clisp.org>
84747         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
84748         %F directives.
84749         * tests/test-vasprintf-posix.c (test_function): Likewise.
84750         * tests/test-snprintf-posix.h (test_function): Likewise.
84751         * tests/test-sprintf-posix.h (test_function): Likewise.
84752         * tests/test-fprintf-posix.h (test_function): Likewise.
84753         * tests/test-printf-posix.h (test_function): Likewise.
84754         * tests/test-fprintf-posix.out: Likewise.
84756 2007-04-13  Bruno Haible  <bruno@clisp.org>
84758         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
84759         * modules/tls-tests (configure.ac): Likewise.
84760         Reported by Arto C. Nirkko <anirkko@insel.ch>.
84762 2007-04-13  Bruno Haible  <bruno@clisp.org>
84764         * lib/tls.c (glthread_tls_get): Fix return type.
84765         Patch by Arto C. Nirkko <anirkko@insel.ch>.
84767 2007-04-12  Eric Blake  <ebb9@byu.net>
84769         * modules/gettime (Depends-on): Remove gettime.
84770         Reported by Dmitry V. Levin.
84772 2007-04-12  Bruno Haible  <bruno@clisp.org>
84774         * modules/fflush (Include): Mention <stdio.h>.
84775         * modules/strtoimax (Include): Mention <inttypes.h>.
84776         * modules/strtoumax (Include): Likewise.
84778 2007-04-12  Eric Blake  <ebb9@byu.net>
84780         * .cvsignore: New file.
84781         * .gitignore: Likewise.
84783 2007-04-12  Bruno Haible  <bruno@clisp.org>
84785         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
84786         not before, since $(LDADD) often contains libgnu.a.
84787         * modules/striconv-tests (test_striconv_LDADD): Likewise.
84788         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
84789         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
84790         Needed on Cygwin.
84792 2007-04-12  Eric Blake  <ebb9@byu.net>
84794         Work around glibc's failure to flush stdin on fclose.
84795         * lib/closein.c (close_stdin): Flush stdin before closing.
84797         Work around glibc's failure to reset seekable stdin on exit.
84798         * modules/closein: New module.
84799         * lib/closein.c: New file.
84800         * lib/closein.h: Likewise.
84801         * m4/closein.m4: Likewise.
84802         * MODULES.html.sh (File stream based Input/Output): Document it.
84804 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84806         * gnulib-tool: Rename generated 'autobuild' script to
84807         'do-autobuild' in --create-megatestdir output.
84809         * doc/gnulib.texi (Build robot for gnulib): Fix.
84811 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84813         * modules/sysexits (Depends-on): Add absolute-header.
84815 2007-04-12  Eric Blake  <ebb9@byu.net>
84817         No need to preserve errno on success.
84818         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
84819         Reported by Bruno Haible.
84821 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84823         * MODULES.html.sh (Support for maintaining and releasing
84824         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
84826 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84828         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
84830 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84832         * modules/autobuild: New module.
84834         * m4/autobuild.m4: New file.
84836 2007-04-11  Bruno Haible  <bruno@clisp.org>
84838         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
84839         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
84840         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
84841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
84842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84843         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84844         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84846         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84847         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
84849         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84850         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
84852         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84853         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84854         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
84855         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84856         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
84858         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84859         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84860         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
84861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
84864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84866         Reported by Eric Blake.
84868 2007-04-11  Bruno Haible  <bruno@clisp.org>
84870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
84872 2007-04-10  Bruno Haible  <bruno@clisp.org>
84874         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
84875         for NaN and Infinity. Needed on FreeBSD 6.1.
84876         * tests/test-vasnprintf-posix.c (test_function): Undo last change
84877         regarding results for "%010a" of Infinity and NaN.
84878         * tests/test-vasprintf-posix.c (test_function): Likewise.
84879         * tests/test-snprintf-posix.h (test_function): Likewise.
84880         * tests/test-sprintf-posix.h (test_function): Likewise.
84881         * tests/test-fprintf-posix.h (test_function): Likewise.
84882         * tests/test-printf-posix.h (test_function): Likewise.
84883         * tests/test-fprintf-posix.out: Likewise.
84885 2007-04-10  Bruno Haible  <bruno@clisp.org>
84887         * modules/locale-tests: New file.
84888         * tests/test-locale.c: New file.
84890         * modules/locale: New file.
84891         * lib/locale_.h: New file.
84892         * m4/locale_h.m4: New file.
84894 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
84895             Bruno Haible  <bruno@clisp.org>
84897         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
84898         be determined, test for availability of the copysignf, copysign,
84899         copysignl functions.
84900         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
84901         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
84902         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
84904 2007-04-09  Eric Blake  <ebb9@byu.net>
84906         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
84907         * modules/stdio (Makefile.am): Support fflush.
84908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
84909         * modules/fflush: New file.
84910         * lib/fflush.c: Likewise.
84911         * m4/fflush.m4: Likewise.
84912         * modules/fflush-tests: New test.
84913         * tests/test-fflush.c: Likewise.
84914         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
84916 2007-04-06  Bruno Haible  <bruno@clisp.org>
84918         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
84919         (VASNPRINTF): Use signbit for faster determination whether to print a
84920         minus sign.
84921         * modules/vasnprintf (Files): Remove lib/float+.h.
84922         * modules/fprintf-posix (Depends-on): Add signbit.
84923         * modules/snprintf-posix (Depends-on): Likewise.
84924         * modules/sprintf-posix (Depends-on): Likewise.
84925         * modules/vasnprintf-posix (Depends-on): Likewise.
84926         * modules/vasprintf-posix (Depends-on): Likewise.
84927         * modules/vfprintf-posix (Depends-on): Likewise.
84928         * modules/vsnprintf-posix (Depends-on): Likewise.
84929         * modules/vsprintf-posix (Depends-on): Likewise.
84931 2007-04-06  Bruno Haible  <bruno@clisp.org>
84933         * tests/test-frexp.c (main): Test also the sign bit of zero results.
84934         * tests/test-frexpl.c (main): Likewise.
84935         * tests/test-ldexpl.c (main): Likewise.
84936         * modules/frexp-tests (Depends-on): Add signbit.
84937         * modules/frexpl-tests (Depdends-on): Likewise.
84938         * modules/ldexpl-tests (Depdends-on): Likewise.
84940 2007-04-06  Bruno Haible  <bruno@clisp.org>
84942         * modules/signbit-tests: New file.
84943         * tests/test-signbit.c: New file.
84945         * modules/signbit: New file.
84946         * lib/signbitf.c: New file.
84947         * lib/signbitd.c: New file.
84948         * lib/signbitl.c: New file.
84949         * m4/signbit.m4: New file.
84950         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
84951         (signbit): New macro.
84952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
84953         REPLACE_SIGNBIT.
84954         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
84955         REPLACE_FREXPL into math.h.
84957 2007-04-06  Bruno Haible  <bruno@clisp.org>
84959         * modules/isnanf-nolibm-tests: New file.
84960         * tests/test-isnanf.c: New file.
84962         * modules/isnanf-nolibm: New file.
84963         * lib/isnanf.h: New file.
84964         * lib/isnanf.c: New file.
84965         * lib/isnan.c: Consider the USE_FLOAT macro.
84966         * m4/isnanf.m4: New file.
84968 2007-04-06  Bruno Haible  <bruno@clisp.org>
84970         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
84971         (Link): New section.
84973         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
84975 2007-04-06  Bruno Haible  <bruno@clisp.org>
84977         Assume the 'long double' type.
84978         * m4/longdouble.m4: Remove file.
84979         * config/srclist.txt: Don't mention longdouble.m4.
84980         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
84981         * lib/float+.h: Likewise.
84982         * lib/frexp.c: Likewise.
84983         * lib/printf-args.h: Likewise.
84984         * lib/printf-args.c: Likewise.
84985         * lib/printf-frexp.c: Likewise.
84986         * lib/printf-parse.c: Likewise.
84987         * lib/vasnprintf.c: Likewise.
84988         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
84989         * m4/intl.m4: Likewise.
84990         * m4/isnanl.m4: Likewise.
84991         * m4/printf.m4: Likewise.
84992         * m4/printf-frexpl.m4: Likewise.
84993         * m4/vasnprintf.m4: Likewise.
84994         * modules/allocsa (Files): Remove m4/longdouble.m4.
84995         * modules/gettext (Files): Likewise.
84996         * modules/relocatable-prog-wrapper (Files): Likewise.
84997         * modules/vasnprintf (Files): Likewise.
84998         * modules/isnanl (Files): Likewise.
84999         (Include): Simplify.
85000         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
85001         (Include): Simplify.
85002         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
85003         (Include): Simplify.
85004         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
85005         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85006         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
85007         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85008         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85009         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85010         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
85011         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85012         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
85013         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85014         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
85015         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
85016         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
85017         * tests/test-isnanl.c: Likewise.
85018         * tests/test-snprintf-posix.h: Likewise.
85019         * tests/test-sprintf-posix.h: Likewise.
85020         * tests/test-vasnprintf-posix.c: Likewise.
85021         * tests/test-vasnprintf-posix2.c: Likewise.
85022         * tests/test-vasprintf-posix.c: Likewise.
85024 2007-04-06  Bruno Haible  <bruno@clisp.org>
85026         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
85027         * lib/math_.h [__DECC]: Include the overridden include file through
85028         #include_next, outside the double-inclusion guard.
85029         * lib/stdio_.h [__DECC]: Likewise.
85030         * lib/stdlib_.h [__DECC]: Likewise.
85031         * lib/string_.h [__DECC]: Likewise.
85032         * lib/time_.h [__DECC]: Likewise.
85033         * lib/wchar_.h [__DECC]: Likewise.
85034         * lib/wctype_.h [__DECC]: Likewise.
85035         * lib/inttypes_.h [__DECC]: Likewise.
85036         Reported by Albert Chin <china@thewrittenword.com> in
85037         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
85039 2007-04-04  Eric Blake  <ebb9@byu.net>
85041         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
85042         1.5.x.
85044 2007-04-04  Bruno Haible  <bruno@clisp.org>
85046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
85047         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
85049 2007-04-04  Bruno Haible  <bruno@clisp.org>
85051         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
85052         results for "%010a" of Infinity and NaN.
85053         * tests/test-vasprintf-posix.c (test_function): Likewise.
85054         * tests/test-snprintf-posix.h (test_function): Likewise.
85055         * tests/test-sprintf-posix.h (test_function): Likewise.
85056         * tests/test-fprintf-posix.h (test_function): Remove these tests.
85057         * tests/test-printf-posix.h (test_function): Likewise.
85058         * tests/test-fprintf-posix.out: Update.
85059         Needed for FreeBSD 6.1.
85061 2007-04-04  Bruno Haible  <bruno@clisp.org>
85063         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
85064         directly used by the gnulib modules nor by gnulib-tool.
85066 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85068         * DEPENDENCIES: Give overall description of version dependency
85069         desirability.  Use more-typical names for apps.
85070         Add shell, coreutils, diffutils, grep, tar, gzip.
85072 2007-04-04  Simon Josefsson  <simon@josefsson.org>
85074         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
85076 2007-04-04  Karl Berry  <karl@gnu.org>
85078         * MODULES.html.sh (func_module): missing '.
85080 2007-04-03  Bruno Haible  <bruno@clisp.org>
85082         * modules/argmatch-tests (Makefile.am): New variable
85083         test_argmatch_LDADD.
85084         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
85085         * modules/array-list-tests (Makefile.am): New variable
85086         test_array_list_LDADD.
85087         * modules/array-oset-tests (Makefile.am): New variable
85088         test_array_oset_LDADD.
85089         * modules/avltree-list-tests (Makefile.am): New variable
85090         test_avltree_list_LDADD.
85091         * modules/avltree-oset-tests (Makefile.am): New variable
85092         test_avltree_oset_LDADD.
85093         * modules/avltreehash-list-tests (Makefile.am): New variable
85094         test_avltreehash_list_LDADD.
85095         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
85096         test_canonicalize_lgpl_LDADD.
85097         * modules/carray-list-tests (Makefile.am): New variable
85098         test_carray_list_LDADD.
85099         * modules/dirname-tests (Makefile.am): New variable
85100         test_dirname_LDADD.
85101         * modules/linked-list-tests (Makefile.am): New variable
85102         test_linked_list_LDADD.
85103         * modules/linkedhash-list-tests (Makefile.am): New variable
85104         test_linkedhash_list_LDADD.
85105         * modules/rbtree-list-tests (Makefile.am): New variable
85106         test_rbtree_list_LDADD.
85107         * modules/rbtree-oset-tests (Makefile.am): New variable
85108         test_rbtree_oset_LDADD.
85109         * modules/rbtreehash-list-tests (Makefile.am): New variable
85110         test_rbtreehash_list_LDADD.
85111         * modules/xvasprintf-tests (Makefile.am): New variable
85112         test_xvasprintf_LDADD.
85113         Reported by Eric Blake.
85115 2007-04-03  Eric Blake  <ebb9@byu.net>
85117         * DEPENDENCIES: Weaken m4 requirements.
85119 2007-04-03  Bruno Haible  <bruno@clisp.org>
85121         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
85122         * modules/isnanl-tests (configure.ac): Likewise.
85124 2007-04-03  Ben Pfaff  <blp@gnu.org>
85126         * modules/iconv_open: Add $(srcdir)/ to source directory
85127         references in Makefile fragments that call gperf, to fix VPATH
85128         builds.
85130 2007-04-03  Bruno Haible  <bruno@clisp.org>
85132         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
85133         * lib/ldexpl.c: Undo last change.
85135 2007-04-03  Bruno Haible  <bruno@clisp.org>
85137         * modules/printf-frexpl (Depends-on): Undo last change.
85138         (Files): Add m4/ldexpl.m4.
85140 2007-04-03  Bruno Haible  <bruno@clisp.org>
85142         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
85143         * modules/isnanl (Link): New section.
85145         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
85146         * modules/frexp (Link): New section.
85148         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
85149         * modules/frexpl (Link): New section.
85151         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
85152         * modules/ldexpl (Link): New section.
85154 2007-04-03  Bruno Haible  <bruno@clisp.org>
85156         * modules/TEMPLATE-EXTENDED: New file.
85157         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
85159 2007-04-03  Bruno Haible  <bruno@clisp.org>
85161         * DEPENDENCIES: New file.
85162         Suggested by Simon Josefsson.
85164 2007-04-03  Bruno Haible  <bruno@clisp.org>
85166         * doc/gnulib.texi: Escape @.
85168 2007-04-03  James Youngman  <jay@gnu.org>
85169         and Paul Eggert  <eggert@cs.ucla.edu>
85171         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
85172         birthtime on all systems that have birthtime, not just those which
85173         use st_birthtimensec rather than st_birthtim.  Putting zero in
85174         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
85175         that the birth time is not available for files on an NFS mount.
85177 2007-04-03  Simon Josefsson  <simon@josefsson.org>
85179         * modules/memxor: Move back from crypto/, suggested by Bruno.
85180         * modules/crypto/hmac-sha1: Fix memxor dependency.
85182         * modules/crypto/gc: Moved from ../.
85184 2007-04-02  Eric Blake  <ebb9@byu.net>
85186         * lib/ldexpl.c (includes): Avoid libm.
85188         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
85190 2007-04-02  Bruno Haible  <bruno@clisp.org>
85192         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
85193         on IRIX.
85195 2007-04-02  Bruno Haible  <bruno@clisp.org>
85197         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
85198         x86 or x86_64 platforms running MacOS X.
85199         Reported by Ryan Schmidt <@ryandesign.com>.
85201 2007-04-02  Bruno Haible  <bruno@clisp.org>
85203         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
85204         i386.
85206 2007-04-01  Simon Josefsson  <simon@josefsson.org>
85208         * modules/crypto/arcfour: Moved from ../.
85209         * modules/crypto/arcfour-tests: Moved from ../.
85210         * modules/crypto/arctwo: Moved from ../.
85211         * modules/crypto/arctwo-tests: Moved from ../.
85212         * modules/crypto/des: Moved from ../.
85213         * modules/crypto/des-tests: Moved from ../.
85214         * modules/crypto/gc-arcfour: Moved from ../.
85215         * modules/crypto/gc-arcfour-tests: Moved from ../.
85216         * modules/crypto/gc-arctwo: Moved from ../.
85217         * modules/crypto/gc-arctwo-tests: Moved from ../.
85218         * modules/crypto/gc-des: Moved from ../.
85219         * modules/crypto/gc-des-tests: Moved from ../.
85220         * modules/crypto/gc-hmac-md5: Moved from ../.
85221         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
85222         * modules/crypto/gc-hmac-sha1: Moved from ../.
85223         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
85224         * modules/crypto/gc-md2: Moved from ../.
85225         * modules/crypto/gc-md2-tests: Moved from ../.
85226         * modules/crypto/gc-md4: Moved from ../.
85227         * modules/crypto/gc-md4-tests: Moved from ../.
85228         * modules/crypto/gc-md5: Moved from ../.
85229         * modules/crypto/gc-md5-tests: Moved from ../.
85230         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
85231         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
85232         * modules/crypto/gc-random: Moved from ../.
85233         * modules/crypto/gc-rijndael: Moved from ../.
85234         * modules/crypto/gc-rijndael-tests: Moved from ../.
85235         * modules/crypto/gc-sha1: Moved from ../.
85236         * modules/crypto/gc-sha1-tests: Moved from ../.
85237         * modules/crypto/gc-tests: Moved from ../.
85238         * modules/crypto/hmac-md5: Moved from ../.
85239         * modules/crypto/hmac-md5-tests: Moved from ../.
85240         * modules/crypto/hmac-sha1: Moved from ../.
85241         * modules/crypto/hmac-sha1-tests: Moved from ../.
85242         * modules/crypto/md2: Moved from ../.
85243         * modules/crypto/md2-tests: Moved from ../.
85244         * modules/crypto/md4: Moved from ../.
85245         * modules/crypto/md4-tests: Moved from ../.
85246         * modules/crypto/md5: Moved from ../.
85247         * modules/crypto/md5-tests: Moved from ../.
85248         * modules/crypto/memxor: Moved from ../.
85249         * modules/crypto/rijndael: Moved from ../.
85250         * modules/crypto/rijndael-tests: Moved from ../.
85251         * modules/crypto/sha1: Moved from ../.
85253 2007-03-30  James Youngman  <jay@gnu.org>
85255         * tests/test-stat-time.c (prepare_test): use chmod() rather than
85256         rename() to change the ctime of a file (because ctime is unaffected
85257         by rename on jfs2 on AIX 5.1).
85258         (main): Start by doing cleanup, in case a previous run failed leaving
85259         test files behind.
85261 2007-03-31  Bruno Haible  <bruno@clisp.org>
85263         Support old proprietary implementations of iconv.
85264         * modules/iconv_open: New file.
85265         * lib/iconv_.h: New file.
85266         * m4/iconv_h.m4: New file.
85267         * lib/iconv_open.c: New file.
85268         * lib/iconv_open-aix.gperf: New file.
85269         * lib/iconv_open-hpux.gperf: New file.
85270         * lib/iconv_open-irix.gperf: New file.
85271         * lib/iconv_open-osf.gperf: New file.
85272         * m4/iconv_open.m4: New file.
85273         * modules/linebreak (Depends-on): Add iconv_open.
85274         * modules/striconv (Depends-on): Likewise.
85275         * modules/striconveh (Depends-on): Likewise.
85276         * modules/unicodeio (Depends-on): Likewise.
85277         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
85278         (iconv_t)(-1).
85279         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
85280         conversion if cd is (iconv_t)(-1).
85281         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
85282         is not possible.
85284 2007-03-31  Bruno Haible  <bruno@clisp.org>
85286         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85287         work on Solaris either. Protect also second use of "autodetect_jp".
85289 2007-03-31  Bruno Haible  <bruno@clisp.org>
85291         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
85292         the function is not present.
85294 2007-03-31  Bruno Haible  <bruno@clisp.org>
85296         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
85297         the function is not present.
85299 2007-03-31  Bruno Haible  <bruno@clisp.org>
85301         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
85302         a bug in HP-UX iconv_open().
85304 2007-03-31  Bruno Haible  <bruno@clisp.org>
85306         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
85307         (Mathematics <math.h>): New section, add fpieee.
85308         (Input/output <stdio.h>): Add fseterr.
85309         (Mathematics <math.h>): New section, add printf-frexp.
85310         (Container data structures): Add sublist.
85311         (Core language properties): Add fpucw, inline.
85312         (Functions for greatest-width integer types <inttypes.h>): Add
85313         imaxabs, imaxdiv, inttypes.
85314         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
85315         isnanl-nolibm, ldexp.
85316         (Mathematics <math.h>): New section, add printf-frexpl.
85317         (Support for systems lacking POSIX:2001): Add fprintf-posix,
85318         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
85319         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
85320         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
85321         (Unicode string functions): Add unistr/u*-mbtoucr.
85322         (Java): Add javacomp-script, javaexec-script.
85323         (C#): Add csharpcomp-script, csharpexec-script.
85324         (Support for building libraries and executables): Add havelib,
85325         relocatable-*.
85326         (Support for maintaining and releasing projects): Renamed from
85327         'Support for maintaining and release projects'. Add announce-gen.
85329 2007-03-31  Bruno Haible  <bruno@clisp.org>
85331         * README: Talk primarily about git.
85332         (git and CVS): Renamed from CVS.
85333         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
85334         gnulib is available through git.
85335         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
85337 2007-03-30  Bruno Haible  <bruno@clisp.org>
85339         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
85340         * lib/poll_.h: Likewise.
85341         * lib/stat_.h: Likewise.
85342         * lib/sys_time_.h: Likewise.
85343         * lib/sysexit_.h: Likewise.
85344         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
85345         * lib/stdbool_.h: Likewise.
85346         * lib/byteswap_.h: Add double-inclusion guard.
85348 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
85350         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
85352 2007-03-30  Karl Berry  <karl@gnu.org>
85354         * config/srclist-update: double space after USA in the license
85355         substitution, since that's how it's usually (?) written.
85357 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85359         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
85360         reported by Bruno Haible.
85362 2007-03-29  Bruno Haible  <bruno@clisp.org>
85364         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
85365         a bug in AIX iconv().
85367 2007-03-29  Bruno Haible  <bruno@clisp.org>
85369         * modules/ldexpl-tests: New file.
85370         * tests/test-ldexpl.c: New file.
85372 2007-03-29  Bruno Haible  <bruno@clisp.org>
85374         * lib/ldexpl.c: Include fpucw.h.
85375         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
85376         multiplication.
85377         * modules/ldexpl (Depends-on): Add fpucw.
85379 2007-03-29  Bruno Haible  <bruno@clisp.org>
85381         * modules/ldexpl: New file.
85382         * m4/ldexpl.m4: New file.
85383         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
85384         set.
85385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
85386         REPLACE_LDEXPL.
85387         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
85388         REPLACE_LDEXPL.
85389         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85390         gl_FUNC_LDEXPL_WORKS.
85391         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
85392         * modules/mathl (Files): Remove lib/ldexpl.c.
85393         (Depends-on): Add ldexpl.
85395 2007-03-29  Bruno Haible  <bruno@clisp.org>
85397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
85399 2007-03-29  Bruno Haible  <bruno@clisp.org>
85401         * tests/test-striconveh.c (main): Don't assume that a direct conversion
85402         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
85403         and possibly also HP-UX.
85404         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85405         work on AIX, IRIX, HP-UX, OSF/1.
85406         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
85407         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
85408         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
85409         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
85410         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
85411         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
85413 2007-03-29  Bruno Haible  <bruno@clisp.org>
85415         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
85417 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85419         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
85420         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
85422 2007-03-29  Eric Blake  <ebb9@byu.net>
85424         * lib/acl-internal.h: Remove redundant include.
85425         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
85426         Cygwin when a file is locked.
85428 2007-03-29  Bruno Haible  <bruno@clisp.org>
85430         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
85431         file.
85432         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
85434 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85436         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
85437         try to remove a parent directory if the child couldn't be removed
85438         (except for the first rmdir, which could fail because the child
85439         doesn't exist).  Problem reported by Jeff Blaine in
85440         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
85442 2007-03-28  Bruno Haible  <bruno@clisp.org>
85444         * lib/striconveh.c (utf8conv_carefully): New function.
85445         (mem_cd_iconveh_internal): Invoke it.
85447 2007-03-28  Bruno Haible  <bruno@clisp.org>
85449         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
85450         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
85451         input.
85452         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
85453         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
85454         unistr/u8-uctomb.
85456 2007-03-28  Bruno Haible  <bruno@clisp.org>
85458         * modules/unistr/u8-mbtoucr: New file.
85459         * lib/unistr/u8-mbtoucr.c: New file.
85460         * modules/unistr/u16-mbtoucr: New file.
85461         * lib/unistr/u16-mbtoucr.c: New file.
85462         * modules/unistr/u16-mbtoucr: New file.
85463         * lib/unistr/u16-mbtoucr.c: New file.
85464         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
85466 2007-03-27  Simon Josefsson  <simon@josefsson.org>
85467             Bruno Haible  <bruno@clisp.org>
85469         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
85470         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
85471         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
85473         * m4/stdio_h.m4: Add stubs for vasprintf too.
85475         * modules/stdio: Support vasprintf in sed command.
85477         * modules/vasprintf: Depend on stdio for prototypes.  Remove
85478         vasprintf.h.  Add stdio module indicator.
85480         * lib/stdio_.h: Declare asprintf and vasprintf, based on
85481         vasprintf.h.
85483         * lib/vasprintf.h: File removed.
85485         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
85486         * lib/vasprintf.c: Ditto.
85487         * lib/xvasprintf.c: Ditto.
85488         * tests/test-vasprintf-posix.c: Ditto.
85489         * tests/test-vasprintf.c: Ditto.
85491 2007-03-27  Bruno Haible  <bruno@clisp.org>
85493         Make vasnprintf multithread-safe.
85494         * lib/vasnprintf.c (decimal_point_char): New function.
85495         (VASNPRINTF): Use it.
85496         Suggested by Simon Josefsson.
85498 2007-03-27  Eric Blake  <ebb9@byu.net>
85500         Support sub-second birthtime on cygwin.
85501         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
85502         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
85503         (get_stat_birthtime): Also work with st_birthtim.
85505 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
85507         * lib/stat-time.h (USE_BIRTHTIME): Remove.
85508         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
85509         (get_stat_birthtime_ns): Do not try to use "spare" fields.
85510         (get_stat_birthtime_ns): Simplify compile-time tests.
85511         (get_stat_birthtime): Change the API to look like
85512         get_stat_mtime etc., except return a negative tv_nsec on error.
85513         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
85514         Don't check for "spare" fields.
85515         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
85516         or for struct stat.st_birthtime, as these tests aren't used.
85517         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
85519 2007-03-27  Bruno Haible  <bruno@clisp.org>
85521         * lib/stat-time.h: Include <sys/stat.h>.
85523 2007-03-27  James Youngman  <jay@gnu.org>
85525         * lib/stat-time.h (get_stat_birthtime): New function for
85526           retrieving st_birthtime as provided by UFS2 (hence *BSD).
85527         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
85528           and its variants.
85529         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
85530         * modules/stat-time-test: New file.
85531         * tests/test-stat-time.c: New test, devised by Bruno Haible.
85533 2007-03-26  Bruno Haible  <bruno@clisp.org>
85535         Better support of signalling NaNs.
85536         * lib/atanl.c: Include isnanl.h.
85537         (atanl): Perform test for NaN at the beginning of the function and
85538         through a call to isnanl.
85539         * lib/cosl.c: Include isnanl.h.
85540         (cosl): Perform test for NaN at the beginning of the function and
85541         through a call to isnanl.
85542         * lib/ldexpl.c: Include isnanl.h.
85543         (ldexpl): Perform test for NaN through a call to isnanl.
85544         * lib/logl.c: Include isnanl.h.
85545         (logl): Perform test for NaN at the beginning of the function and
85546         through a call to isnanl.
85547         * lib/sinl.c: Include isnanl.h.
85548         (sinl): Perform test for NaN at the beginning of the function and
85549         through a call to isnanl.
85550         * lib/sqrtl.c: Include isnanl.h.
85551         (sqrtl): Perform test for NaN at the beginning of the function and
85552         through a call to isnanl.
85553         * lib/tanl.c: Include isnanl.h.
85554         (tanl): Perform test for NaN at the beginning of the function and
85555         through a call to isnanl.
85556         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
85557         * modules/mathl (Depends-on): Add isnanl.
85559 2007-03-26  Eric Blake  <ebb9@byu.net>
85561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
85562         regression in logic sense of previous patch.
85564 2007-03-26  Bruno Haible  <bruno@clisp.org>
85566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
85567         unportable shell command "if ! ...".
85568         Reported by Ralf Wildenhues.
85570 2007-03-25  Bruno Haible  <bruno@clisp.org>
85572         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
85573         <sysexits.h> file, and only add EX_CONFIG.
85574         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
85575         absolute file name and whether it is sufficient. Substitute also
85576         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
85577         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
85578         ABSOLUTE_SYSEXITS_H into sysexits.h.
85580 2007-03-25  Bruno Haible  <bruno@clisp.org>
85582         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
85583         hints is NULL.
85585 2007-03-25  Bruno Haible  <bruno@clisp.org>
85587         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
85588         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
85590 2007-03-25  Bruno Haible  <bruno@clisp.org>
85592         * lib/vasnprintf.c: Include langinfo.h.
85593         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
85594         multithread-safe.
85595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
85596         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
85597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85600         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
85603         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85604         Reported by Simon Josefsson.
85606 2007-03-25  Bruno Haible  <bruno@clisp.org>
85608         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
85609         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
85610         * modules/vasnprintf (Depends-on): Add stdint.
85612 2007-03-25  Bruno Haible  <bruno@clisp.org>
85614         * modules/fpieee: New file.
85615         * m4/fpieee.m4: New file.
85616         * modules/isnan-nolibm (Depends-on): Add fpieee.
85617         * modules/isnanl-nolibm (Depends-on): Add fpieee.
85618         * modules/isnanl (Depends-on): Add fpieee.
85620 2007-03-25  Bruno Haible  <bruno@clisp.org>
85622         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
85624 2007-03-25  Bruno Haible  <bruno@clisp.org>
85626         Avoid test failures on IRIX 6.5.
85627         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
85628         (main): Use it.
85629         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
85630         macros.
85631         (main): Use them.
85633 2007-03-25  Bruno Haible  <bruno@clisp.org>
85635         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
85636         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
85637         exists but doesn't work.
85638         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
85639         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
85640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
85641         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
85642         math.h.
85644 2007-03-25  Bruno Haible  <bruno@clisp.org>
85646         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
85647         returns inf. Needed on IRIX 6.5.
85649 2007-03-25  Bruno Haible  <bruno@clisp.org>
85651         * tests/test-frexpl.c: Include isnanl-nolibm.h.
85652         (main): Use isnanl instead of x != x idiom.
85653         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
85655         * tests/test-frexp.c: Include isnan.h.
85656         (main): Use isnan instead of x != x idiom.
85657         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
85659 2007-03-25  Bruno Haible  <bruno@clisp.org>
85661         * tests/test-frexp.c (NaN): New function/macro.
85662         (main): Use it instead of 0.0 / 0.0.
85663         * tests/test-isnan.c (NaN): New function/macro.
85664         (main): Use it instead of 0.0 / 0.0.
85665         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
85666         (test_function): Use it instead of 0.0 / 0.0.
85667         * tests/test-vasprintf-posix.c (NaN): New function/macro.
85668         (test_function): Use it instead of 0.0 / 0.0.
85669         * tests/test-snprintf-posix.h (NaN): New function/macro.
85670         (test_function): Use it instead of 0.0 / 0.0.
85671         * tests/test-sprintf-posix.h (NaN): New function/macro.
85672         (test_function): Use it instead of 0.0 / 0.0.
85673         * tests/test-fprintf-posix.h (NaN): New function/macro.
85674         (test_function): Use it instead of 0.0 / 0.0.
85675         * tests/test-printf-posix.h (NaN): New function/macro.
85676         (test_function): Use it instead of 0.0 / 0.0.
85678         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
85680 2007-03-25  Bruno Haible  <bruno@clisp.org>
85682         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
85684 2007-03-25  Bruno Haible  <bruno@clisp.org>
85686         * lib/regexec.c (merge_state_with_log): Make static.
85688 2007-03-25  Bruno Haible  <bruno@clisp.org>
85690         * lib/trigl.c (kernel_rem_pio2): Make static.
85692 2007-03-25  Bruno Haible  <bruno@clisp.org>
85694         * lib/sincosl.c (sincosl_table): Make static.
85696 2007-03-25  Bruno Haible  <bruno@clisp.org>
85698         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
85699         if the compiler does not support C99.
85701 2007-03-25  Bruno Haible  <bruno@clisp.org>
85703         * modules/time (Makefile.am): Ensure all rule action lines start with a
85704         tab.
85706 2007-03-24  Bruno Haible  <bruno@clisp.org>
85708         * modules/tsearch-tests: New file.
85709         * tests/test-tsearch.sh: New file.
85710         * tests/test-tsearch.c: New file, mostly copied from glibc.
85712         * modules/search-tests: New file.
85713         * tests/test-search.c: New file.
85715         * modules/search: New file.
85716         * lib/search_.h: New file, incorporating lib/tsearch.h.
85717         * m4/search_h.m4: New file.
85718         * lib/tsearch.h: Remove file.
85719         * lib/tsearch.c: Include search.h instead of tsearch.h.
85720         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
85721         HAVE_TSEARCH.
85722         * modules/tsearch (Files): Remove lib/tsearch.h.
85723         (Depends-on): Add search.
85724         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
85725         (Include): Change tsearch.h into search.h.
85727 2007-03-24  Bruno Haible  <bruno@clisp.org>
85729         * modules/fpucw: New file.
85730         * lib/fpucw.h: New file.
85731         * lib/frexp.c: Include fpucw.h.
85732         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
85733         (FUNC): Use them.
85734         * lib/printf-frexp.c: Include fpucw.h.
85735         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
85736         (FUNC): Use them.
85737         * lib/vasnprintf.c: Include fpucw.h.
85738         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
85739         'long double' calculations.
85740         * tests/test-frexpl.c: Include fpucw.h.
85741         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
85742         * tests/test-printf-frexpl.c: Include fpucw.h.
85743         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
85744         * modules/frexpl (Depends-on): Add fpucw.
85745         * modules/printf-frexpl (Depends-on): Likewise.
85746         * modules/fprintf-posix (Depends-on): Likewise.
85747         * modules/snprintf-posix (Depends-on): Likewise.
85748         * modules/sprintf-posix (Depends-on): Likewise.
85749         * modules/vasnprintf-posix (Depends-on): Likewise.
85750         * modules/vasprintf-posix (Depends-on): Likewise.
85751         * modules/vfprintf-posix (Depends-on): Likewise.
85752         * modules/vsnprintf-posix (Depends-on): Likewise.
85753         * modules/vsprintf-posix (Depends-on): Likewise.
85754         * modules/frexpl-tests (Depends-on): Likewise.
85755         * modules/printf-frexpl-tests (Depends-on): Likewise.
85757 2007-03-24  Bruno Haible  <bruno@clisp.org>
85759         * lib/float+.h: New file.
85760         * lib/isnan.c: Include float+.h.
85761         (SIZE): New macro.
85762         (FUNC): Compare only SIZE bytes of the value.
85763         * lib/vasnprintf.c: Include float+.h.
85764         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
85765         SIZEOF_LDBL or SIZEOF_DBL bytes.
85766         * modules/isnan-nolibm (Files): Add lib/float+.h.
85767         * modules/isnanl-nolibm (Files): Add lib/float+.h.
85768         * modules/isnanl (Files): Add lib/float+.h.
85769         * modules/vasnprintf (Files): Add lib/float+.h.
85771 2007-03-24  Bruno Haible  <bruno@clisp.org>
85773         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
85774         include isnanl-nolibm.h.
85776 2007-03-24  Bruno Haible  <bruno@clisp.org>
85778         * tests/test-read-file.c (main): Don't produce spurious output for
85779         expected situations. Make the test fail if it encountered unexpected
85780         results.
85782 2007-03-24  Bruno Haible  <bruno@clisp.org>
85784         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
85785         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
85787 2007-03-24  Bruno Haible  <bruno@clisp.org>
85789         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
85791 2007-03-24  Bruno Haible  <bruno@clisp.org>
85793         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
85794         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
85796         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
85797         * modules/utf8-ucs4: Turn into a symbolic link to module
85798         unistr/u8-mbtouc.
85800         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
85801         utf8-ucs4-unsafe.
85802         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
85803         unistr/u8-mbtouc-unsafe.
85805         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
85806         * modules/utf16-ucs4: Turn into a symbolic link to module
85807         unistr/u16-mbtouc.
85809         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
85810         utf16-ucs4-unsafe.
85811         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
85812         unistr/u16-mbtouc-unsafe.
85814         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
85815         * modules/ucs4-utf8: Turn into a symbolic link to module
85816         unistr/u8-ubtomb.
85818         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
85819         * modules/ucs4-utf16: Turn into a symbolic link to module
85820         unistr/u16-ubtomb.
85822 2007-03-24  Bruno Haible  <bruno@clisp.org>
85824         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
85825         Enable the function only if HAVE_INLINE.
85826         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
85827         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
85828         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
85829         Enable the function only if HAVE_INLINE.
85830         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
85831         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
85832         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
85833         Enable the function only if HAVE_INLINE.
85834         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
85835         Enable the function only if HAVE_INLINE.
85836         * modules/utf8-ucs4: Update.
85837         * modules/utf8-ucs4-unsafe: Update.
85838         * modules/utf16-ucs4: Update.
85839         * modules/utf16-ucs4-unsafe: Update.
85840         * modules/ucs4-utf8: Update.
85841         * modules/ucs4-utf16: Update.
85843 2007-03-24  Bruno Haible  <bruno@clisp.org>
85845         * lib/utf8-ucs4.h: Remove file.
85846         * lib/utf8-ucs4-unsafe.h: Remove file.
85847         * lib/utf16-ucs4.h: Remove file.
85848         * lib/utf16-ucs4-unsafe.h: Remove file.
85849         * lib/ucs4-utf8.h: Remove file.
85850         * lib/ucs4-utf16.h: Remove file.
85851         * lib/unistr.h: Include their previous contents.
85852         * m4/utf-ucs4.m4: Remove file.
85853         * m4/ucs4-utf.m4: Remove file.
85854         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
85855         (Depends-on): Add unistr/base.
85856         (configure.ac): Remove gl_UTF_UCS4.
85857         (Makefile.am): Update.
85858         (Include): Change to unistr.h.
85859         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
85860         (Depends-on): Add unistr/base.
85861         (configure.ac): Remove gl_UTF_UCS4.
85862         (Makefile.am): Update.
85863         (Include): Change to unistr.h.
85864         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
85865         (Depends-on): Add unistr/base.
85866         (configure.ac): Remove gl_UTF_UCS4.
85867         (Makefile.am): Update.
85868         (Include): Change to unistr.h.
85869         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
85870         (Depends-on): Add unistr/base.
85871         (configure.ac): Remove gl_UTF_UCS4.
85872         (Makefile.am): Update.
85873         (Include): Change to unistr.h.
85874         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
85875         (Depends-on): Add unistr/base.
85876         (configure.ac): Remove gl_UCS4_UTF.
85877         (Makefile.am): Update.
85878         (Include): Change to unistr.h.
85879         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
85880         (Depends-on): Add unistr/base.
85881         (configure.ac): Remove gl_UCS4_UTF.
85882         (Makefile.am): Update.
85883         (Include): Change to unistr.h.
85884         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
85885         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
85886         utf8-ucs4-unsafe.h.
85887         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
85888         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
85889         utf16-ucs4-unsafe.h.
85890         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
85891         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
85892         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
85893         * lib/unistr/u8-strchr.c: Likewise.
85894         * lib/unistr/u8-strrchr.c: Likewise.
85895         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
85896         * lib/unistr/u16-strchr.c: Likewise.
85897         * lib/unistr/u16-strrchr.c: Likewise.
85898         * lib/striconveh.c: Update.
85899         * lib/linebreak.c: Update.
85901 2007-03-24  Bruno Haible  <bruno@clisp.org>
85903         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
85904         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
85906 2007-03-22  Bruno Haible  <bruno@clisp.org>
85908         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
85910 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85912         * MODULES.html.sh (File system functions): New module write-any-file.
85913         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
85914         * m4/write-any-file.m4: New files.
85916 2007-03-23  Eric Blake  <ebb9@byu.net>
85918         * gnulib-tool: Rearrange space-tab sequences, since some editors
85919         like to eat them.
85921 2007-03-23  Eric Blake  <ebb9@byu.net>
85923         * lib/version-etc.c (version_etc_va): Update license wording to
85924         be more concise.  Recommended by Richard Stallman.
85926 2007-03-22  Bruno Haible  <bruno@clisp.org>
85928         * lib/poll.c (MSG_PEEK): New fallback definition.
85930 2007-03-22  Bruno Haible  <bruno@clisp.org>
85932         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
85933         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
85934         (main): Update.
85935         Fixes a compilation error on BeOS.
85937 2007-03-22  Bruno Haible  <bruno@clisp.org>
85939         * modules/frexpl-tests: New file.
85940         * tests/test-frexpl.c: New file.
85942         * modules/frexpl: New file.
85943         * m4/frexpl.m4: New file.
85944         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
85945         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
85946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
85947         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
85948         (Depends-on): Add frexpl. Remove isnanl-nolibm.
85949         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
85951 2007-03-22  Bruno Haible  <bruno@clisp.org>
85953         * lib/frexpl.c: Share code with lib/frexp.c.
85954         * modules/mathl (Files): Add lib/frexp.c.
85955         (Depends-on): Add isnanl-nolibm.
85957 2007-03-22  Bruno Haible  <bruno@clisp.org>
85959         * modules/printf-frexp (Files): Add m4/frexp.m4.
85960         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
85961         only if the found frexp function actually works.
85963 2007-03-22  Bruno Haible  <bruno@clisp.org>
85965         * lib/frexp.c: Remove older implementation that uses divisions.
85967 2007-03-21  Bruno Haible  <bruno@clisp.org>
85969         * modules/frexp-tests: New file.
85970         * tests/test-frexp.c: New file.
85972         * modules/frexp: New file.
85973         * lib/frexp.c: New file.
85974         * m4/frexp.m4: New file.
85975         * lib/math_.h (frexp): New declaration.
85976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
85977         REPLACE_FREXP.
85978         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
85980 2007-03-21  Bruno Haible  <bruno@clisp.org>
85982         * modules/isnanl-tests: New file.
85983         * tests/test-isnanl.c: New file.
85985         * modules/isnanl: New file.
85986         * lib/isnanl.h: New file.
85987         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
85988         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
85989         gl_FUNC_ISNANL_WORKS.
85990         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
85991         New macros.
85993 2007-03-21  Bruno Haible  <bruno@clisp.org>
85995         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
85996         lib/isnanl.h.
85997         (Include): Update.
85998         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
85999         * lib/vasnprintf.c: Update.
86000         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
86001         tests/test-isnanl.h, remove tests/test-isnanl.c.
86002         (Makefile.am): Update.
86003         * tests/test-isnanl-nolibm.c: New file.
86004         * tests/test-isnanl.h: New file.
86005         * tests/test-isnanl.c: Remove file.
86007 2007-03-21  Jim Meyering  <jim@meyering.net>
86009         When trying to open ".", treat ESTALE like EACCES.
86010         * lib/savewd.c (savewd_save): Resort to forking not just upon
86011         failure with EACCES, but also when errno is ESTALE.
86013 2007-03-20  Bruno Haible  <bruno@clisp.org>
86015         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
86016         Needed on AIX 5.1. Reported by Matthew Woehlke.
86018 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86020         Suggestions by Bruno Haible:
86021         * lib/acl-internal.h: Include "gettext.h" rather than rolling
86022         our own.
86023         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
86024         * modules/acl (Depends-on): Add gettext.
86026 2007-03-19  Bruno Haible  <bruno@clisp.org>
86028         * modules/iconvme: Remove file.
86029         * lib/iconvme.h: Remove file.
86030         * lib/iconvme.c: Remove file.
86031         * m4/iconvme.m4: Remove file.
86033 2007-03-19  Bruno Haible  <bruno@clisp.org>
86035         * doc/relocatable-maint.texi: Break long shell script line.
86036         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86038 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86040         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
86041         handle file_has_acl.
86042         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
86043         * lib/acl.c: Move header inclusions and related macro defns into
86044         lib/acl-internal.h.
86045         (S_ISLNK): Remove defn, since that's now done for us.
86046         (file_has_acl): Move to lib/file-has-acl.c.
86047         Call acl_trivial if available.  This is the crucial part of the fix.
86048         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
86049         shared within the library.  Rewrite a bit, partly to make it compatible
86050         with the GNU coding style.
86051         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
86052         Remove unnecessary double-quotes.
86053         Don't test for acl_to_text; the build will catch that.
86054         Replace acl_entries if it doesn't exist and it is needed.
86055         Check for -lsec and acl_trivial (as used on Solaris 10).
86056         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
86057         lib/file-has-acl.c.
86058         (Depends-on): Add sys_stat, for S_ISLNK.
86060 2007-03-19  Ben Pfaff  <blp@gnu.org>
86062         * doc/gnulib.texi: Fix typos.
86063         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
86065 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
86067         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
86068         If size is zero here, buf must be zero.
86070 2007-03-19  Simon Josefsson  <simon@josefsson.org>
86072         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
86073         <bruno@clisp.org>.
86075 2007-03-18  Bruno Haible  <bruno@clisp.org>
86077         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
86078         Suggested by Eric Blake.
86080 2007-03-18  Ben Pfaff  <blp@gnu.org>
86082         * doc/relocatable.texi: Recommend using as prefix a directory
86083         that does not exist and will never be created.  Based on
86084         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
86085         and others.
86087 2007-03-17  Bruno Haible  <bruno@clisp.org>
86089         * lib/fchownat.c: Include lchown.h.
86091 2007-03-17  Bruno Haible  <bruno@clisp.org>
86093         Fix endless loop when the given allocated size was > INT_MAX.
86094         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
86095         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
86096         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
86097         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
86098         * lib/sprintf.c (sprintf): Likewise.
86100 2007-03-17  Bruno Haible  <bruno@clisp.org>
86102         * tests/test-argp-2.sh (func_compare): Output a context diff.
86104 2007-03-17  Bruno Haible  <bruno@clisp.org>
86106         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
86107         locale's decimal-point character.
86109 2007-03-17  Bruno Haible  <bruno@clisp.org>
86111         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
86112         before comparing it. Needed because on some platforms (e.g. x86) a
86113         'long double' occupies less bytes than sizeof (long double).
86115 2007-03-17  Bruno Haible  <bruno@clisp.org>
86117         * tests/test-crc.c (main): Make printf statements 64-bit clean.
86118         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
86119         * tests/test-getaddrinfo.c (simple): Likewise.
86120         * tests/test-read-file.c (main): Likewise.
86122 2007-03-17  Bruno Haible  <bruno@clisp.org>
86124         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
86126 2007-03-17  Bruno Haible  <bruno@clisp.org>
86128         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
86129         unused variable.
86131 2007-03-17  Bruno Haible  <bruno@clisp.org>
86133         * tests/test-c-strcasecmp.c: Include c-strcase.h.
86134         * tests/test-c-strncasecmp.c: Likewise.
86136 2007-03-17  Bruno Haible  <bruno@clisp.org>
86138         * modules/stdlib (Depends-on): Add unistd.
86139         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
86140         Needed for MacOS X 10.3.
86142 2007-03-17  Bruno Haible  <bruno@clisp.org>
86144         * lib/unistr/u-strdup.h: Include <stdlib.h>.
86146 2007-03-17  Bruno Haible  <bruno@clisp.org>
86148         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
86150 2007-03-17  Bruno Haible  <bruno@clisp.org>
86152         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
86153         to reflect files copied from gnulib (with or without modifications).
86154         Suggested by Jim Meyering.
86156 2007-03-17  Eric Blake  <ebb9@byu.net>
86158         * NEWS: Document stdlib change from 2007-02-18.
86160 2007-03-17  Jim Meyering  <jim@meyering.net>
86162         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
86163         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
86164         someone uses a name containing shell meta-characters.
86165         Reported by Alfred M. Szmidt.
86167         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
86169 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
86171         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
86172         and copy gettext configuration files only if configure.ac contains
86173         a use of AM_GNU_GETTEXT_VERSION.
86175 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
86177         * build-aux/bootstrap (gnulib_name): New variable.
86178         (gnulib_tool_options): Use it.
86180 2007-03-13  Simon Josefsson  <simon@josefsson.org>
86182         * tests/test-des.c: Use new namespace.
86184 2007-03-15  Bruno Haible  <bruno@clisp.org>
86186         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
86187         Reported by James Youngman <jay@gnu.org>.
86189 2007-03-15  Bruno Haible  <bruno@clisp.org>
86191         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
86192         declared prototype. Needed with cc on OSF/1 5.1.
86194 2007-03-15  Bruno Haible  <bruno@clisp.org>
86196         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
86197         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
86198         (struct gl_list_implementation): Add dispose_fn argument to the
86199         'create_empty', 'create' methods.
86200         (struct gl_list_impl_base): Add field 'dispose_fn'.
86201         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
86202         argument.
86203         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
86204         dispose_fn argument.
86205         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
86206         dispose_fn on the dropped values.
86207         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
86208         dispose_fn argument.
86209         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
86210         dropped values.
86211         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
86212         (gl_tree_remove_node): Call dispose_fn on the dropped value.
86213         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
86214         (gl_tree_remove_node): Call dispose_fn on the dropped value.
86215         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
86216         argument.
86217         (gl_tree_list_free): Call dispose_fn on the dropped values.
86218         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
86219         the dropped values.
86220         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
86221         Add dispose_fn argument.
86222         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
86223         Call dispose_fn on the dropped values.
86224         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
86225         Add dispose_fn argument.
86226         (gl_sublist_create): Initialize the 'dispose_fn' field.
86227         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
86228         * tests/test-array_list.c (main): Update.
86229         * tests/test-carray_list.c (main): Update.
86230         * tests/test-avltree_list.c (main): Update.
86231         * tests/test-rbtree_list.c (main): Update.
86232         * tests/test-avltreehash_list.c (main): Update.
86233         * tests/test-rbtreehash_list.c (main): Update.
86234         * tests/test-linked_list.c (main): Update.
86235         * tests/test-linkedhash_list.c (main): Update.
86236         * tests/test-array_oset.c (main): Update.
86238 2007-03-15  Bruno Haible  <bruno@clisp.org>
86240         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
86241         (gl_oset_create_empty): Add dispose_fn argument.
86242         (struct gl_oset_implementation): Add dispose_fn argument to
86243         'create_empty' method.
86244         (struct gl_oset_impl_base): Add dispose_fn field.
86245         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
86246         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
86247         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
86248         values.
86249         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
86250         (gl_tree_oset_free): Call dispose_fn on the dropped values.
86251         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86252         dropped value.
86253         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86254         dropped value.
86255         * tests/test-array_oset.c (main): Update.
86256         * tests/test-avltree_oset.c (main): Update.
86257         * tests/test-rbtree_oset.c (main): Update.
86258         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
86260 2007-03-13  Bruno Haible  <bruno@clisp.org>
86262         * tests/test-stdbool.c (i): Update after last patch.
86264 2007-03-12  Bruno Haible  <bruno@clisp.org>
86266         * lib/quotearg.c: Include <wctype.h> early, before the definition of
86267         the iswprint macro. Needed on Solaris 2.5.1.
86269 2007-03-12  Bruno Haible  <bruno@clisp.org>
86271         * tests/test-printf-frexp.c (main): Declare x as volatile.
86273 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86275         * doc/gnulib.texi (Build robot for gnulib): New section.
86277 2007-03-12  Jim Meyering  <jim@meyering.net>
86279         * build-aux/bootstrap: New file.
86280         * build-aux/bootstrap.conf: New file, from coreutils.
86282 2007-03-11  Bruno Haible  <bruno@clisp.org>
86284         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
86286 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86288         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
86289         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
86290         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
86292 2007-03-11  Bruno Haible  <bruno@clisp.org>
86294         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
86295         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
86297 2007-03-11  Bruno Haible  <bruno@clisp.org>
86299         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
86300         formula. Needed for SunPRO C 5.0.
86302 2007-03-11  Bruno Haible  <bruno@clisp.org>
86304         * modules/long-options (Depends-on): Add getopt.
86306 2007-03-11  Bruno Haible  <bruno@clisp.org>
86308         * modules/modechange (Depends-on): Add stdbool.
86310 2007-03-11  Bruno Haible  <bruno@clisp.org>
86312         * modules/i-ring (Depends-on): Add stdbool.
86314 2007-03-11  Bruno Haible  <bruno@clisp.org>
86316         * modules/gc-des (Depends-on): Add stdbool.
86318 2007-03-11  Bruno Haible  <bruno@clisp.org>
86320         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
86322 2007-03-11  Bruno Haible  <bruno@clisp.org>
86324         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
86326 2007-03-11  Bruno Haible  <bruno@clisp.org>
86328         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
86330 2007-03-11  Bruno Haible  <bruno@clisp.org>
86332         * lib/vasnprintf.c (sprintf): Undefine.
86334 2007-03-11  Bruno Haible  <bruno@clisp.org>
86336         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
86337         initializers in SunPRO C and Compaq C compilers.
86339 2007-03-11  Bruno Haible  <bruno@clisp.org>
86341         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
86342         decrementing code ANSI C compliant.
86344 2007-03-11  Bruno Haible  <bruno@clisp.org>
86346         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
86347         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
86349 2007-03-11  Bruno Haible  <bruno@clisp.org>
86351         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
86352         <stdbool.h> substitute doesn't pass.
86354 2007-03-11  Bruno Haible  <bruno@clisp.org>
86356         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
86358 2007-03-11  Bruno Haible  <bruno@clisp.org>
86360         * gnulib-tool (func_create_megatestdir): Create also an autobuild
86361         script, for submission to autobuild.josefsson.org.
86363 2007-03-10  Bruno Haible  <bruno@clisp.org>
86365         * modules/canonicalize-lgpl-tests: New file.
86366         * tests/test-canonicalize-lgpl.sh: New file.
86367         * tests/test-canonicalize-lgpl.c: New file.
86369         * modules/c-strcase-tests: New file.
86370         * tests/test-c-strcase.sh: New file.
86371         * tests/test-c-strcasecmp.c: New file.
86372         * tests/test-c-strncasecmp.c: New file.
86374         * modules/atexit-tests: New file.
86375         * tests/test-atexit.sh: New file.
86376         * tests/test-atexit.c: New file.
86378 2007-03-10  Bruno Haible  <bruno@clisp.org>
86380         * tests/test-binary-io.sh: Use temporary filenames that are not so
86381         likely to clash with those of other tests (in a parallel make).
86382         * tests/test-binary-io.c: Likewise.
86384 2007-03-10  Bruno Haible  <bruno@clisp.org>
86386         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
86387         fallback; use #error instead.
86388         Suggested by Simon Josefsson.
86390 2007-03-10  Bruno Haible  <bruno@clisp.org>
86392         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
86393         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
86394         first and the last.
86396 2007-03-10  Bruno Haible  <bruno@clisp.org>
86398         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
86400 2007-03-10  Bruno Haible  <bruno@clisp.org>
86402         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
86403         "make distcheck".
86404         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
86405         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
86406         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
86408 2007-03-10  Bruno Haible  <bruno@clisp.org>
86410         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
86411         variable.
86412         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
86413         variable.
86415 2007-03-09  Eric Blake  <ebb9@byu.net>
86416         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
86418         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
86419         types are not being provided by gnulib.
86420         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
86421         types are supported.
86423 2007-03-10  Bruno Haible  <bruno@clisp.org>
86425         * lib/stdio_.h (__attribute__): New macro.
86426         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
86427         vsprintf): Specify __attribute__ __format__ for GCC.
86428         Suggested by Eric Blake.
86430 2007-03-09  Bruno Haible  <bruno@clisp.org>
86432         * modules/printf-posix-tests: New file.
86433         * tests/test-printf-posix.sh: New file.
86434         * tests/test-printf-posix.c: New file.
86436         * modules/printf-posix: New file.
86437         * lib/printf.c: New file.
86438         * m4/printf-posix-rpl.m4: New file.
86439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
86440         REPLACE_PRINTF.
86441         * lib/stdio_.h (printf): New declaration.
86442         (format, __format__, ____printf____, ____scanf____, ____strftime____,
86443         ____strfmon____): New macros.
86444         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
86445         REPLACE_PRINTF.
86447 2007-03-09  Bruno Haible  <bruno@clisp.org>
86449         * tests/test-vasnprintf-posix2.sh: New file.
86450         * tests/test-vasnprintf-posix2.c: New file.
86451         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
86452         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86453         (Makefile.am): Activate test-vasnprintf-posix2.sh.
86455         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
86456         a locale dependent decimal point, rather than always '.'.
86458 2007-03-09  Eric Blake  <ebb9@byu.net>
86460         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
86461         spite of platforms like Tandem/NSK that define it to -1.
86463 2007-03-08  Bruno Haible  <bruno@clisp.org>
86465         * modules/vprintf-posix-tests: New file.
86466         * tests/test-vprintf-posix.sh: New file.
86467         * tests/test-vprintf-posix.c: New file.
86468         * tests/test-printf-posix.h: New file.
86470         * modules/vprintf-posix: New file.
86471         * lib/vprintf.c: New file.
86472         * m4/vprintf-posix.m4: New file.
86473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
86474         REPLACE_VPRINTF.
86475         * lib/stdio_.h (vprintf): New declaration.
86476         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
86477         REPLACE_VPRINTF.
86479 2007-03-08  Bruno Haible  <bruno@clisp.org>
86481         * modules/fprintf-posix-tests: New file.
86482         * tests/test-fprintf-posix.sh: New file.
86483         * tests/test-fprintf-posix.c: New file.
86485         * modules/fprintf-posix: New file.
86486         * lib/fprintf.c: New file.
86487         * m4/fprintf-posix.m4: New file.
86488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
86489         REPLACE_FPRINTF.
86490         * lib/stdio_.h (fprintf): New declaration.
86491         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
86492         REPLACE_FPRINTF.
86494 2007-03-08  Bruno Haible  <bruno@clisp.org>
86496         * modules/vfprintf-posix-tests: New file.
86497         * tests/test-vfprintf-posix.sh: New file.
86498         * tests/test-vfprintf-posix.c: New file.
86499         * tests/test-fprintf-posix.h: New file.
86500         * tests/test-fprintf-posix.out: New file.
86502         * modules/vfprintf-posix: New file.
86503         * lib/vfprintf.c: New file.
86504         * m4/vfprintf-posix.m4: New file.
86505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
86506         REPLACE_VFPRINTF.
86507         * lib/stdio_.h (vfprintf): New declaration.
86508         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
86509         REPLACE_VFPRINTF.
86511 2007-03-08  Bruno Haible  <bruno@clisp.org>
86513         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
86515 2007-03-08  Bruno Haible  <bruno@clisp.org>
86517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
86518         instead of 'expr' invocations.
86519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86522         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86523         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86524         Suggested by Paul Eggert.
86526 2007-03-08  Bruno Haible  <bruno@clisp.org>
86528         * modules/fseterr-tests: New file.
86529         * tests/test-fseterr.c: New file.
86531         * modules/fseterr: New file.
86532         * lib/fseterr.h: New file.
86533         * lib/fseterr.c: New file.
86535 2007-03-08  Bruno Haible  <bruno@clisp.org>
86537         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
86538         * lib/getopt_.h: Likewise.
86539         * lib/mbswidth.h: Likewise.
86540         * lib/setenv.h: Likewise.
86541         * lib/vasnprintf.h: Likewise.
86542         * lib/vasprintf.h: Likewise.
86543         * lib/verror.h: Likewise.
86544         * lib/xsetenv.h: Likewise.
86545         * lib/xvasprintf.h: Likewise.
86547 2007-03-08  Jim Meyering  <jim@meyering.net>
86549         * users.txt: Add parted.
86551         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
86553 2007-03-07  Bruno Haible  <bruno@clisp.org>
86555         * m4/printf.m4: Make the shell script snippets copy&pastable.
86557 2007-03-02  Bruno Haible  <bruno@clisp.org>
86559         * lib/netinet_in_.h: New file.
86560         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
86561         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
86562         * modules/netinet_in (Files): Add lib/netinet_in_.h.
86563         (Depends-on): Add absolute-header.
86564         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
86565         into netinet/in.h.
86567 2007-03-03  Bruno Haible  <bruno@clisp.org>
86569         * lib/sys_select_.h: New file.
86570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
86571         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
86572         * modules/sys_select (Files): Add lib/sys_select_.h.
86573         (Depends-on): Add absolute-header.
86574         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
86575         into sys/select.h.
86577 2007-03-02  Bruno Haible  <bruno@clisp.org>
86579         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
86580         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
86581         values.
86582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
86583         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
86584         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
86585         * modules/sys_socket (Depends-on): Add absolute-header.
86586         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
86587         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
86588         (Include): Remove requirement of inclusion of <sys/types.h>.
86590 2007-03-02  Bruno Haible  <bruno@clisp.org>
86592         * lib/byteswap_.h (bswap_32): Fix formula.
86594 2007-03-06  Bruno Haible  <bruno@clisp.org>
86596         * modules/sprintf-posix-tests: New file.
86597         * tests/test-sprintf-posix.c: New file.
86599         * modules/sprintf-posix: New file.
86600         * lib/sprintf.c: New file.
86601         * m4/sprintf-posix.m4: New file.
86602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
86603         REPLACE_SPRINTF.
86604         * lib/stdio_.h (sprintf): New declaration.
86605         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
86606         REPLACE_SPRINTF.
86608 2007-03-06  Bruno Haible  <bruno@clisp.org>
86610         * modules/vsprintf-posix-tests: New file.
86611         * tests/test-vsprintf-posix.c: New file.
86612         * tests/test-sprintf-posix.h: New file.
86614         * modules/vsprintf-posix: New file.
86615         * lib/vsprintf.c: New file.
86616         * m4/vsprintf-posix.m4: New file.
86617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
86618         REPLACE_VSPRINTF.
86619         * lib/stdio_.h (vsprintf): New declaration.
86620         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
86621         REPLACE_VSPRINTF.
86623 2007-03-06  Bruno Haible  <bruno@clisp.org>
86625         * modules/vsnprintf (Depend-on): Remove minmax.
86627 2007-03-06  Bruno Haible  <bruno@clisp.org>
86629         * modules/snprintf-posix-tests: New file.
86630         * tests/test-snprintf-posix.c: New file.
86632         * modules/snprintf-posix: New file.
86633         * m4/snprintf-posix.m4: New file.
86634         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
86635         gl_FUNC_SNPRINTF.
86636         (gl_FUNC_SNPRINTF): Invoke it.
86637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
86638         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
86639         is set.
86640         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
86642 2007-03-06  Bruno Haible  <bruno@clisp.org>
86644         * modules/vsnprintf-posix-tests: New file.
86645         * tests/test-vsnprintf-posix.c: New file.
86646         * tests/test-snprintf-posix.h: New file.
86648         * modules/vsnprintf-posix: New file.
86649         * m4/vsnprintf-posix.m4: New file.
86650         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
86651         gl_FUNC_VSNPRINTF.
86652         (gl_FUNC_VSNPRINTF): Invoke it.
86653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
86654         * lib/stdio_.h (vsnprintf): Define as a replacement if
86655         REPLACE_VSNPRINTF is set.
86656         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
86658 2007-03-06  Bruno Haible  <bruno@clisp.org>
86660         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
86661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
86663 2007-03-06  Bruno Haible  <bruno@clisp.org>
86665         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
86666         (asinl): Declare also if HAVE_DECL_ASINL is set.
86667         (atanl): Declare also if HAVE_DECL_ATANL is set.
86668         (ceill): Declare also if HAVE_DECL_CEILL is set.
86669         (cosl): Declare also if HAVE_DECL_COSL is set.
86670         (expl): Declare also if HAVE_DECL_EXPL is set.
86671         (floorl): Declare also if HAVE_DECL_FLOORL is set.
86672         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
86673         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
86674         (logl): Declare also if HAVE_DECL_LOGL is set.
86675         (sinl): Declare also if HAVE_DECL_SINL is set.
86676         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
86677         (tanl): Declare also if HAVE_DECL_TANL is set.
86678         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
86679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
86680         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
86681         declaration of frexpl, ldexpl.
86682         * modules/printf-frexpl (Depends-on): Add math.
86683         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
86685 2007-03-05  Bruno Haible  <bruno@clisp.org>
86687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
86688         frexpl and ldexpl are declared.
86689         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
86691 2007-03-05  Bruno Haible  <bruno@clisp.org>
86693         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
86694         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
86696 2007-03-05  Bruno Haible  <bruno@clisp.org>
86698         * lib/stdio_.h: Include <stddef.h>.
86700 2007-03-05  Bruno Haible  <bruno@clisp.org>
86702         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
86704 2007-03-05  Bruno Haible  <bruno@clisp.org>
86706         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
86707         NetBSD 4, from Ralf Wildenhues.
86709 2007-03-04  Bruno Haible  <bruno@clisp.org>
86711         * lib/vasprintf.h: Update #if logic for the case when the functions
86712         exist but are overridden.
86714 2007-03-04  Bruno Haible  <bruno@clisp.org>
86716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
86717         implementations: glibc-2.4 and MacOS X 10.3.
86718         * tests/test-vasnprintf-posix.c (test_function): Test also the case
86719         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
86720         * tests/test-vasprintf-posix.c (test_function): Likewise.
86722 2007-03-04  Bruno Haible  <bruno@clisp.org>
86724         * modules/vasprintf-posix-tests: New file.
86725         * tests/test-vasprintf-posix.c: New file.
86727         * modules/vasprintf-posix: New file.
86728         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
86729         defined.
86730         * m4/vasprintf-posix.m4: New file.
86731         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
86732         gl_FUNC_VASPRINTF.
86733         (gl_FUNC_VASPRINTF): Invoke it.
86734         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
86735         here.
86736         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
86738 2007-03-04  Bruno Haible  <bruno@clisp.org>
86740         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
86741         REPLACE_GETTIMEOFDAY.
86742         * modules/sys_time (Makefile.am): Likewise.
86743         * m4/sys_time_h.m4: Likewise.
86744         * m4/gettimeofday.m4: Likewise.
86746 2007-03-04  Bruno Haible  <bruno@clisp.org>
86748         * modules/vasnprintf-posix-tests: New file.
86749         * tests/test-vasnprintf-posix.c: New file.
86751         * modules/vasnprintf-posix: New file.
86752         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
86753         printf-frexpl.h.
86754         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
86755         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
86756         REPLACE_VASNPRINTF is defined.
86757         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
86758         gl_FUNC_VASNPRINTF.
86759         (gl_FUNC_VASNPRINTF): Invoke it.
86760         * m4/vasnprintf-posix.m4: New file.
86761         * m4/printf.m4: New file.
86763 2007-03-04  Bruno Haible  <bruno@clisp.org>
86765         Compile progreloc.c only if --enable-relocatable is specified.
86766         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
86767         if --enable-relocatable was specified.
86768         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
86769         lib_SOURCES.
86771 2007-03-04  Jim Meyering  <jim@meyering.net>
86773         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
86774         Use it consistently, rather than enumerating errno constants.
86776 2007-03-04  Bruno Haible  <bruno@clisp.org>
86778         * modules/xvasprintf-tests: New file.
86779         * tests/test-xvasprintf.c: New file.
86781         * modules/vasprintf-tests: New file.
86782         * tests/test-vasprintf.c: New file.
86784         * modules/vasnprintf-tests: New file.
86785         * tests/test-vasnprintf.c: New file.
86787         * modules/vsnprintf-tests: New file.
86788         * tests/test-vsnprintf.c: New file.
86790         * modules/snprintf-tests: New file.
86791         * tests/test-snprintf.c: New file.
86793 2007-03-04  Bruno Haible  <bruno@clisp.org>
86795         Compile relocatable.c only if --enable-relocatable is specified.
86796         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
86797         gl_RELOCATABLE_LIBRARY.
86798         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
86799         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
86800         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
86801         gl_RELOCATABLE_LIBRARY.
86802         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
86803         (Makefile.am): Remove lib_SOURCES.
86804         * modules/relocatable-lib-lgpl (configure.ac): Invoke
86805         gl_RELOCATABLE_LIBRARY.
86806         (Makefile.am): Remove lib_SOURCES.
86807         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
86808         always.
86809         * modules/relocatable-prog-wrapper (configure.ac): Invoke
86810         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
86812 2007-03-04  Bruno Haible  <bruno@clisp.org>
86814         * modules/argmatch-tests: New file.
86815         * tests/test-argmatch.c: New file.
86817         * tests/test-allocsa.c (main): Halve the number of loop runs.
86819         * modules/alloca-opt-tests: New file.
86820         * tests/test-alloca-opt.c: New file.
86822 2007-03-04  Jim Meyering  <jim@meyering.net>
86824         Work around difference between Linux ACLs and Solaris 10 ZFS.
86825         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
86826         for EINVAL.
86828 2007-03-03  Bruno Haible  <bruno@clisp.org>
86830         * modules/relocatable-prog (Depends-on): Add back progreloc's
86831         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
86833 2007-03-03  Bruno Haible  <bruno@clisp.org>
86835         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
86836         * modules/relocatable-lib: New file.
86838 2007-03-03  Bruno Haible  <bruno@clisp.org>
86840         * modules/relocatable-prog: Renamed from modules/relocatable.
86841         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
86843 2007-03-03  Bruno Haible  <bruno@clisp.org>
86845         * modules/relocatable-script (Files): Add doc/relocatable.texi,
86846         m4/relocatable-lib.m4.
86847         (Depends-on): Remove 'relocatable'.
86848         (configure.ac): Add gl_RELOCATABLE_NOP.
86850 2007-03-03  Bruno Haible  <bruno@clisp.org>
86852         * modules/relocatable-prog-wrapper: New file.
86853         * modules/relocatable (Depends-on): Add it. Remove all other
86854         dependencies except progname.
86855         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
86857         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
86858         (gl_FUNC_STRERROR): Nop.
86859         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
86861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
86862         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
86864         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
86865         (gl_FUNC_READLINK): Update.
86867         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
86869 2007-03-03  Bruno Haible  <bruno@clisp.org>
86871         * lib/xreadlink.c: Include <unistd.h> unconditionally.
86872         * modules/xreadlink (Depends-on): Add unistd.
86873         * modules/xreadlink-with-size (Depends-on): Likewise.
86875 2007-03-03  Bruno Haible  <bruno@clisp.org>
86877         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
86878         extracted from gt_FUNC_SETENV.
86879         (gt_FUNC_SETENV): Remove macro.
86880         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
86881         remove gt_FUNC_SETENV.
86883 2007-03-03  Bruno Haible  <bruno@clisp.org>
86885         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
86886         ENABLE_RELOCATABLE here.
86887         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
86889 2007-03-03  Bruno Haible  <bruno@clisp.org>
86891         * modules/rbtreehash-list-tests (Depends-on): Add progname.
86892         * tests/test-rbtreehash_list.c: Include progname.h.
86893         (main): Call set_program_name.
86895         * modules/rbtree-oset-tests (Depends-on): Add progname.
86896         * tests/test-rbtree_oset.c: Include progname.h.
86897         (main): Call set_program_name.
86899         * modules/rbtree-list-tests (Depends-on): Add progname.
86900         * tests/test-rbtree_list.c: Include progname.h.
86901         (main): Call set_program_name.
86903         * modules/linked-list-tests (Depends-on): Add progname.
86904         * tests/test-linked_list.c: Include progname.h.
86905         (main): Call set_program_name.
86907 2007-03-03  Bruno Haible  <bruno@clisp.org>
86909         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
86910         All uses of __restrict changed to _Restrict_.
86911         * lib/glob_.h (__restrict): Remove macro.
86913 2007-03-02  Bruno Haible  <bruno@clisp.org>
86915         * modules/gettext (configure.ac): Require gettext infrastructure
86916         from version 0.16.1.
86918 2007-03-02  Bruno Haible  <bruno@clisp.org>
86920         * modules/linkedhash-list-tests (Depends-on): Add progname.
86921         * tests/test-linkedhash_list.c: Include progname.h.
86922         (main): Call set_program_name.
86924         * modules/carray-list-tests (Depends-on): Add progname.
86925         * tests/test-carray_list.c: Include progname.h.
86926         (main): Call set_program_name.
86928         * modules/avltreehash-list-tests (Depends-on): Add progname.
86929         * tests/test-avltreehash_list.c: Include progname.h.
86930         (main): Call set_program_name.
86932         * modules/avltree-oset-tests (Depends-on): Add progname.
86933         * tests/test-avltree_oset.c: Include progname.h.
86934         (main): Call set_program_name.
86936         * modules/avltree-list-tests (Depends-on): Add progname.
86937         * tests/test-avltree_list.c: Include progname.h.
86938         (main): Call set_program_name.
86940         * modules/array-oset-tests (Depends-on): Add progname.
86941         * tests/test-array_oset.c: Include progname.h.
86942         (main): Call set_program_name.
86944         * modules/array-list-tests (Depends-on): Add progname.
86945         * tests/test-array_list.c: Include progname.h.
86946         (main): Call set_program_name.
86948         * modules/argp-tests (Depends-on): Add progname.
86949         * tests/test-argp.c: Include argp.h first. Include progname.h.
86950         (main): Call set_program_name.
86952 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
86954         * doc/gnulib-tool.texi (Initial import): Reword description of
86955         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
86956         limited effect even if defined after the first system include.
86958 2007-03-01  Bruno Haible  <bruno@clisp.org>
86960         * build-aux/config.libpath: Update to libtool-1.5.22.
86961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86963 2007-03-01  Bruno Haible  <bruno@clisp.org>
86965         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
86966         foo_CFLAGS.
86967         Reported by Ralf Wildenhues.
86969 2007-03-01  Bruno Haible  <bruno@clisp.org>
86971         * build-aux/install-reloc: Remove object files left over by some
86972         compilers.
86973         Reported by Ralf Wildenhues.
86975 2007-03-01  Bruno Haible  <bruno@clisp.org>
86977         * build-aux/install-reloc: Break long lines.
86979 2007-03-01  Bruno Haible  <bruno@clisp.org>
86981         * doc/relocatable.texi: Document that it may not work on OpenBSD.
86982         Reported by Ralf Wildenhues.
86984 2007-03-01  Bruno Haible  <bruno@clisp.org>
86986         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
86987         include ordering constraints.
86989 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86991         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
86992         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
86993         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
86994         as another example.
86995         * lib/time_.h: Fix misspelling.
86996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
86997         Require gl_HEADER_TIME_H_DEFAULTS.
86998         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
86999         * m4/time_r.m4 (gl_TIME_R): Likewise.
87000         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
87002 2007-03-01  Bruno Haible  <bruno@clisp.org>
87004         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
87005         * m4/utimens.m4 (gl_UTIMENS): Likewise.
87007 2007-03-01  Jim Meyering  <jim@meyering.net>
87009         * modules/xreadlink (Maintainer): Add my name.
87010         * modules/xreadlink-with-size (Depends-on): Alphabetize.
87012 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
87013             Bruno Haible  <bruno@clisp.org>
87015         * build-aux/install-reloc: Compile also c-ctype.c.
87016         * build-aux/relocatable.sh.in: New file.
87017         * doc/relocatable.texi: New file.
87018         * doc/relocatable-maint.texi: New file.
87019         * doc/gnulib.texi: Include relocatable-maint.texi.
87020         * lib/progreloc.c: Include unistd.h unconditionally.
87021         * lib/relocwrapper.c: Include unistd.h unconditionally.
87022         Include c-ctype.h.
87023         (add_dotbin): Use c_tolower.
87024         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
87025         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
87026         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
87027         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
87028         to m4/relocatable-lib.m4.
87029         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
87030         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
87031         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
87032         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
87033         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
87034         * modules/relocatable: New file.
87035         * modules/relocatable-lib: New file.
87036         * modules/relocatable-script: New file.
87038 2007-02-28  Bruno Haible  <bruno@clisp.org>
87040         Import --enable-relocatable infrastructure.
87041         * build-aux/config.libpath: New file, from GNU gettext.
87042         * build-aux/install-reloc: New file, from GNU gettext.
87043         * build-aux/reloc-ldflags: New file, from GNU gettext.
87044         * lib/relocatable.h: New file, from GNU gettext.
87045         * lib/relocatable.c: New file, from GNU gettext.
87046         * lib/relocwrapper.c: New file, from GNU gettext.
87047         * m4/relocatable.m4: New file, from GNU gettext.
87049 2007-02-28  Bruno Haible  <bruno@clisp.org>
87051         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
87053         * modules/xreadlink: New file, from GNU gettext with modifications.
87054         * lib/xreadlink.c: New file, from GNU gettext.
87055         * lib/xreadlink.h: Add comments.
87056         (xreadlink): New declaration.
87058         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
87059         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
87060         lib/xreadlink-with-size.c.
87061         (configure.ac): Remove gl_XREADLINK invocation.
87062         (Makefile.am): Augment lib_SOURCES.
87063         * m4/xreadlink.m4: Remove file.
87064         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
87065         (xreadlink_with_size): Renamed from xreadink.
87066         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
87067         * modules/canonicalize (Depends-on): Replace xreadlink with
87068         xreadlink-with-size.
87069         * lib/canonicalize.c (canonicalize_filename_mode): Update.
87071 2007-02-25  Jim Meyering  <jim@meyering.net>
87073         * build-aux/announce-gen: When complaining about excess arguments,
87074         list them.
87076 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87078         * README: Document signed integer overflow situation more
87079         accurately.
87081 2007-02-25  Bruno Haible  <bruno@clisp.org>
87083         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
87084         'a' or 'A' conversion.
87086 2007-02-25  Bruno Haible  <bruno@clisp.org>
87088         * modules/filename: Renamed from modules/pathname.
87089         (Files): Replace lib/pathname.h with lib/filename.h. Replace
87090         lib/concatpath.c with lib/concat-filename.c.
87091         (Makefile.am): Update.
87092         (Include): Replace pathname.h with filename.h.
87093         * lib/filename.h: Renamed from lib/pathname.h.
87094         (concatenated_filename): Renamed from concatenated_pathname.
87095         * lib/concat-filename.c: Renamed from lib/concatpath.c.
87096         (concatenated_filename): Renamed from concatenated_pathname.
87097         * lib/findprog.c: Include filename.h instead of pathname.h.
87098         (find_in_path): Update.
87099         * lib/javacomp.c: Include filename.h instead of pathname.h.
87100         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
87101         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
87102         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
87103         is_oldgcj_14_13_usable, is_javac_usable): Update.
87104         * lib/javaexec.c: Include filename.h instead of pathname.h.
87105         (execute_java_class): Update.
87106         * modules/findprog: Update.
87107         * modules/javacomp: Update.
87108         * modules/javaexec: Update.
87109         * MODULES.html.sh (File system functions): Add 'filename', remove
87110         'pathname'.
87112 2007-02-25  Bruno Haible  <bruno@clisp.org>
87114         * modules/printf-frexpl-tests: New file.
87115         * tests/test-printf-frexpl.c: New file.
87117         * modules/printf-frexpl: New file.
87118         * lib/printf-frexpl.h: New file.
87119         * lib/printf-frexpl.c: New file.
87120         * m4/printf-frexpl.m4: New file.
87122 2007-02-25  Bruno Haible  <bruno@clisp.org>
87124         * modules/printf-frexp-tests: New file.
87125         * tests/test-printf-frexp.c: New file.
87127         * modules/printf-frexp: New file.
87128         * lib/printf-frexp.h: New file.
87129         * lib/printf-frexp.c: New file.
87130         * m4/printf-frexp.m4: New file.
87132 2007-02-25  Bruno Haible  <bruno@clisp.org>
87134         Assume automake >= 1.10 for the tests.
87135         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
87136         * modules/arctwo-tests: Likewise.
87137         * modules/argp-tests: Likewise.
87138         * modules/avltree-list-tests: Likewise.
87139         * modules/avltree-oset-tests: Likewise.
87140         * modules/avltreehash-list-tests: Likewise.
87141         * modules/carray-list-tests: Likewise.
87142         * modules/crc-tests: Likewise.
87143         * modules/des-tests: Likewise.
87144         * modules/gc-arcfour-tests: Likewise.
87145         * modules/gc-arctwo-tests: Likewise.
87146         * modules/gc-des-tests: Likewise.
87147         * modules/gc-hmac-md5-tests: Likewise.
87148         * modules/gc-hmac-sha1-tests: Likewise.
87149         * modules/gc-md2-tests: Likewise.
87150         * modules/gc-md4-tests: Likewise.
87151         * modules/gc-md5-tests: Likewise.
87152         * modules/gc-pbkdf2-sha1-tests: Likewise.
87153         * modules/gc-rijndael-tests: Likewise.
87154         * modules/gc-sha1-tests: Likewise.
87155         * modules/gc-tests: Likewise.
87156         * modules/getaddrinfo-tests: Likewise.
87157         * modules/hmac-md5-tests: Likewise.
87158         * modules/hmac-sha1-tests: Likewise.
87159         * modules/linked-list-tests: Likewise.
87160         * modules/linkedhash-list-tests: Likewise.
87161         * modules/lock-tests: Likewise.
87162         * modules/md2-tests: Likewise.
87163         * modules/md4-tests: Likewise.
87164         * modules/md5-tests: Likewise.
87165         * modules/rbtree-list-tests: Likewise.
87166         * modules/rbtree-oset-tests: Likewise.
87167         * modules/rbtreehash-list-tests: Likewise.
87168         * modules/read-file-tests: Likewise.
87169         * modules/rijndael-tests: Likewise.
87170         * modules/stdint-tests: Likewise.
87171         * modules/tls-tests: Likewise.
87173 2007-02-24  Bruno Haible  <bruno@clisp.org>
87175         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
87176         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
87177         function; instead check whether isnan with a double argument links.
87178         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
87179         function; instead check whether isnan with a 'long double' argument
87180         links.
87181         Reported by Eric Blake <ebb9@byu.net>.
87183 2007-02-24  Bruno Haible  <bruno@clisp.org>
87185         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
87186         defined.
87187         * lib/isnanl.c: Remove all code. Just include isnan.c.
87188         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
87190 2007-02-25  Jim Meyering  <jim@meyering.net>
87192         Avoid conflicting types for 'unsetenv' on FreeBSD.
87193         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
87194         conflicting with FreeBSD's (5.0 and 6.1) function declaration
87195         in stdlib.h.
87197 2007-02-24  Bruno Haible  <bruno@clisp.org>
87199         * modules/isnanl-nolibm-tests: New file.
87200         * tests/test-isnanl.c: New file.
87202         * modules/isnanl-nolibm: New file.
87203         * lib/isnanl.h: New file.
87204         * lib/isnanl.c: New file.
87205         * m4/isnanl.m4: New file.
87207 2007-02-24  Bruno Haible  <bruno@clisp.org>
87209         * modules/isnan-nolibm-tests: New file.
87210         * tests/test-isnan.c: New file.
87212         * modules/isnan-nolibm: New file.
87213         * lib/isnan.h: New file.
87214         * lib/isnan.c: New file.
87215         * m4/isnan.m4: New file.
87217 2007-02-24  Bruno Haible  <bruno@clisp.org>
87219         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
87220         assume that an exponent fits in 20 bits.
87222 2007-02-24  Jim Meyering  <jim@meyering.net>
87224         * m4/regex.m4: Update the description of the configure-time option,
87225         --without-included-regex, to state accurately what the defaults are,
87226         and perhaps to give people an idea why using this option is risky.
87228 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
87230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
87231         loops on small arguments.  This attempts to avoid the problem
87232         Bruno Haible reported for AIX 4.3.2 in
87233         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
87235 2007-02-23  Bruno Haible  <bruno@clisp.org>
87237         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
87238         Needed for help2man.
87240 2007-02-23  Karl Berry  <karl@gnu.org>
87242         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
87243         exists, foo.h should be cvs-ignored, not committed.
87245 2007-02-23  Eric Blake  <ebb9@byu.net>
87247         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
87248         * lib/stat-time.h (includes): Likewise.
87249         * lib/utimecmp.c (includes): Likewise.
87250         * lib/utimens.h (includes): Likewise.
87251         * lib/getdate.y (includes): Also include "timespec.h" for use
87252         internal to the module.
87253         * modules/utimens (Depends-on): Revert yesterday's patch.
87254         * modules/nanosleep (Depends-on): Add missing dependency.
87256 2007-02-22  Bruno Haible  <bruno@clisp.org>
87258         * lib/glob.c: Don't include getlogin_r.h.
87260 2007-02-22  Jim Meyering  <jim@meyering.net>
87262         * modules/utimens (Depends-on): Add timespec, required for
87263         utimens.h's inclusion of timespec.h.
87265 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
87267         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
87268         long unreadable paths in GNU/Linux.  Problem reported by Andreas
87269         Schwab in
87270         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
87271         I'll try to think of a better way to fix the Solaris problem.
87273         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
87274         like glibc; on Solaris 10, it fails with errno == EINVAL.
87275         POSIX says the behavior is unspecified if the first argument is NULL,
87276         so play it safe and never pass NULL to the system getcwd.
87278 2007-02-21  Jim Meyering  <jim@meyering.net>
87280         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
87281         of gettimeofday.  It would conflict with the one now always
87282         provided via sys_time_.h.  Reported by Matthew Woehlke, as
87283         an IRIX 6.5 build failure.
87285 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
87287         Minor fixups to port to Solaris 10 with Sun C 5.8.
87288         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
87289         * modules/getcwd (Depends-on): Add dirfd.
87290         * lib/putenv.c (putenv): #undef it.
87291         (rpl_putenv): New decl.
87292         (malloc, free): Include <stdlib.h> rather than prototyping separately.
87294 2007-02-20  Bruno Haible  <bruno@clisp.org>
87296         * modules/stdio-tests: New file.
87297         * tests/test-stdio.c: New file.
87299         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
87300         (Depends-on): Add stdio.
87301         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87302         (Include): Use <stdio.h> instead of vsnprintf.h.
87303         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87304         HAVE_DECL_VSNPRINTF.
87305         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
87307         * modules/snprintf (Files): Remove lib/snprintf.h.
87308         (Depends-on): Add stdio.
87309         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87310         (Include): Use <stdio.h> instead of snprintf.h.
87311         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87312         HAVE_DECL_SNPRINTF.
87313         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
87314         * lib/getaddrinfo.c: Likewise.
87316         * modules/stdio: New file.
87317         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
87318         * lib/snprintf.h: Remove file.
87319         * lib/vsnprintf.h: Remove file.
87320         * lib/.cppi-disable: Remove snprintf.h.
87321         * m4/stdio_h.m4: New file.
87322         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
87324 2007-02-20  Jim Meyering  <jim@meyering.net>
87326         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
87327         used by e.g., mingw.  From Bruno Haible.
87329 2007-02-19  Bruno Haible  <bruno@clisp.org>
87331         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
87332         warnings.
87333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
87335 2007-02-19  Bruno Haible  <bruno@clisp.org>
87337         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
87338         from mingw users.
87340 2007-02-19  Bruno Haible  <bruno@clisp.org>
87342         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
87343         warnings.
87344         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
87346 2007-02-19  Jim Meyering  <jim@meyering.net>
87348         Don't use FD after a successful "fdopendir (fd)".
87349         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
87350         Reset it by calling dirfd on the just-obtained DIR*.
87352         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
87353         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
87355 2007-02-18  Bruno Haible  <bruno@clisp.org>
87357         * lib/readlink.c: Include <unistd.h>.
87358         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
87359         HAVE_READLINK.
87360         * modules/readlink (Depends-on): Add unistd.
87361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87362         (Include): Add <unistd.h>.
87364         * lib/getlogin_r.h: Remove file.
87365         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
87366         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
87367         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
87368         HAVE_DECL_GETLOGIN_R.
87369         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
87370         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87371         (Include): Use <unistd.h> instead of getlogin_r.h.
87373         * lib/getcwd.h: Remove file.
87374         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
87375         * lib/xgetcwd.c: Likewise.
87376         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
87377         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
87378         * modules/getcwd (Files): Remove lib/getcwd.h.
87379         (Depends-on): Add unistd.
87380         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87381         (Include): Use <unistd.h> instad of getcwd.h.
87383         * lib/ftruncate.c: Include <unistd.h> first.
87384         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
87385         Set HAVE_FTRUNCATE.
87386         * modules/ftruncate (Depends-on): Add unistd.
87387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87389         * lib/fchdir.c: Include <unistd.h> first.
87390         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
87391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
87392         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
87393         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87394         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
87396         * lib/dup2.c: Include <unistd.h> first.
87397         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
87398         HAVE_DUP2.
87399         * modules/dup2 (Depends-on): Add unistd.
87400         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87402         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
87403         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
87404         REPLACE_CHOWN. Don't define chown as a macro here.
87405         * modules/chown (Depends-on): Add unistd.
87406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87408         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
87409         Add definition for GL_LINK_WARNING.
87410         (chown, dup2): New declarations.
87411         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
87412         link warning.
87413         (ftruncate): New declaration.
87414         (getcwd): New declaration, taken from old getcwd.h.
87415         (getlogin_r): New declaration, taken from old getlogin_r.h.
87416         (readlink): New declaration.
87417         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
87418         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
87419         (gl_PREREQ_UNISTD): Remove macro.
87420         (gl_UNISTD_MODULE_INDICATOR): New macro.
87421         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
87422         many new variables. Don't set UNISTD_H.
87423         * modules/unistd (Description): Change.
87424         (Depends-on): Add link-warning.
87425         (configure.ac): Update.
87426         (Makefile.am): Create unistd.h always. Substitute many new variables
87427         into it.
87429 2007-02-18  Bruno Haible  <bruno@clisp.org>
87431         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
87432         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
87433         HAVE_GETSUBOPT.
87434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
87435         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
87436         * lib/getsubopt.h: Remove file.
87437         * modules/getsubopt (Files): Remove lib/getsubopt.h.
87438         (Depends-on): Add stdlib.
87439         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87440         (Includes): Use <stdlib.h> instead of getsubopt.h.
87441         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
87442         Set HAVE_GETSUBOPT.
87443         * lib/getsubopt.c: Don't include getsubopt.h.
87445 2007-02-18  Bruno Haible  <bruno@clisp.org>
87447         * modules/fchdir (Depends-on): Add dup2.
87449 2007-02-18  Bruno Haible  <bruno@clisp.org>
87451         * lib/stdlib_.h: Handle glibc's special invocation convention
87452         specially.
87454 2007-02-18  Bruno Haible  <bruno@clisp.org>
87456         * modules/stdlib-tests: New file.
87457         * tests/test-stdlib.c: New file.
87459         * modules/mkstemp (Files): Remove lib/mkstemp.h.
87460         (Depends-on): Add stdlib.
87461         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87462         (Includes): Use <stdlib.h> instead of mkstemp.h.
87463         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87464         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
87465         * lib/mkstemp.c: Don't include mkstemp.h.
87466         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
87467         * lib/stdlib--.h: Don't include mkstemp.h.
87469         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
87470         (Depends-on): Add stdlib.
87471         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87472         (Includes): Use <stdlib.h> instead of mkdtemp.h.
87473         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87474         HAVE_MKDTEMP.
87475         * lib/mkdtemp.c: Don't include mkdtemp.h.
87476         * lib/clean-temp.c: Don't include mkdtemp.h.
87478         * modules/exit (Files): Remove lib/exit.h.
87479         (Depends-on): Add stdlib.
87480         (Makefile.am): Remove lib_SOURCES.
87481         (Include): Use <stdlib.h> instead of exit.h.
87482         * lib/argmatch.c: Don't include exit.h.
87483         * lib/execute.c: Likewise.
87484         * lib/pagealign_alloc.c: Likewise.
87485         * lib/pipe.c: Likewise.
87486         * lib/wait-process.c: Likewise.
87487         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
87488         * lib/exitfail.c: Likewise.
87489         * lib/savewd.c: Likewise.
87490         * lib/xsetenv.c: Likewise.
87492         * modules/stdlib: New file.
87493         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
87494         and extra comments about mkstemp().
87495         * lib/exit.h: Remove file.
87496         * lib/mkdtemp.h: Remove file.
87497         * lib/mkstemp.h: Remove file.
87498         * m4/stdlib_h.m4: New file.
87499         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
87501 2007-02-18  Bruno Haible  <bruno@clisp.org>
87503         * modules/math-tests: New file.
87504         * tests/test-math.c: New file.
87506         * modules/math: New file.
87507         * modules/mathl (Files): Remove lib/mathl.h.
87508         (Depends-on): Add math.
87509         (Makefile.am): Don't mention mathl.h.
87510         (Include): Use <math.h> instead of mathl.h.
87511         * lib/math_.h: New file.
87512         * lib/mathl.h: Remove file.
87513         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
87514         mathl.h.
87515         * lib/asinl.c: Likewise.
87516         * lib/atanl.c: Likewise.
87517         * lib/ceill.c: Likewise.
87518         * lib/cosl.c: Likewise.
87519         * lib/expl.c: Likewise.
87520         * lib/floorl.c: Likewise.
87521         * lib/frexpl.c: Likewise.
87522         * lib/ldexpl.c: Likewise.
87523         * lib/logl.c: Likewise.
87524         * lib/sincosl.c: Likewise.
87525         * lib/sinl.c: Likewise.
87526         * lib/sqrtl.c: Likewise.
87527         * lib/tanl.c: Likewise.
87528         * lib/trigl.c: Likewise.
87529         * m4/math_h.m4: New file.
87530         * MODULES.html.sh (Mathematics): Add math.
87532 2007-02-17  Bruno Haible  <bruno@clisp.org>
87534         * modules/wctype-tests: New file.
87535         * tests/test-wctype.c: New file.
87537         * modules/wchar-tests: New file.
87538         * tests/test-wchar.c: New file.
87540         * modules/unistd-tests: New file.
87541         * tests/test-unistd.c: New file.
87543         * modules/time-tests: New file.
87544         * tests/test-time.c: New file.
87546         * modules/sysexits-tests: New file.
87547         * tests/test-sysexits.c: New file.
87549         * modules/sys_time-tests: New file.
87550         * tests/test-sys_time.c: New file.
87552         * modules/sys_stat-tests: New file.
87553         * tests/test-sys_stat.c: New file.
87555         * modules/sys_socket-tests: New file.
87556         * tests/test-sys_socket.c: New file.
87558         * modules/sys_select-tests: New file.
87559         * tests/test-sys_select.c: New file.
87561         * modules/string-tests: New file.
87562         * tests/test-string.c: New file.
87564         * modules/stdbool-tests: New file.
87565         * tests/test-stdbool.c: New file.
87567         * modules/netinet_in-tests: New file.
87568         * tests/test-netinet_in.c: New file.
87570         * modules/inttypes-tests: New file.
87571         * tests/test-inttypes.c: New file.
87573         * modules/fcntl-tests: New file.
87574         * tests/test-fcntl.c: New file.
87576         * modules/byteswap-tests: New file.
87577         * tests/test-byteswap.c: New file.
87579         * modules/arpa_inet-tests: New file.
87580         * tests/test-arpa_inet.c: New file.
87582 2007-02-17  Bruno Haible  <bruno@clisp.org>
87584         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
87585         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
87586         if the corresponding module is not enabled. Emit link warnings if
87587         the function is used nevertheless.
87588         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
87589         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
87590         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
87591         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
87592         * modules/inttypes (Depends-on): Add link-warning.
87593         (Makefile.am): Copy the contents of build-aux/link-warning.h into
87594         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
87595         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
87596         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
87597         * modules/imaxdiv (configure.ac): Likewise.
87598         * modules/strtoimax (configure.ac): Likewise.
87599         * modules/strtoumax (configure.ac): Likewise.
87601 2007-02-17  Bruno Haible  <bruno@clisp.org>
87603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
87604         gl_STRING_MODULE_INDICATOR_DEFAULTS.
87605         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
87606         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
87608 2007-02-17  Bruno Haible  <bruno@clisp.org>
87610         * modules/link-warning: New file.
87611         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
87612         * lib/string_.h (GL_LINK_WARNING): Remove definition.
87613         * modules/string (Depends-on): Add link-warning.
87614         (Makefile.am): Copy the contents of build-aux/link-warning.h into
87615         string.h.
87616         * MODULES.html.sh (Support for building libraries and executables): Add
87617         link-warning.
87619 2007-02-17  Bruno Haible  <bruno@clisp.org>
87621         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
87622         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
87623         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
87624         long lines.
87626 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
87627             Bruno Haible  <bruno@clisp.org>
87629         * modules/tmpfile: New file.
87630         * lib/tmpfile.c: New file.
87631         * m4/tmpfile.m4: New file.
87632         * MODULES.html.sh (func_all_modules): New section "Input/output".
87634 2007-02-15  Bruno Haible  <bruno@clisp.org>
87636         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
87637         (supports_delete_on_close): New function.
87638         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
87640 2007-02-14  Bruno Haible  <bruno@clisp.org>
87642         * modules/mbspcasecmp-tests: New file.
87643         * tests/test-mbspcasecmp.sh: New file.
87644         * tests/test-mbspcasecmp.c: New file.
87646         New module mbspcasecmp.
87647         * modules/mbspcasecmp: New file.
87648         * lib/mbspcasecmp.c: New file.
87649         * lib/string_.h (strncasecmp): Change warning message.
87650         (mbspcasecmp): New declaration.
87651         * m4/mbspcasecmp.m4: New file.
87652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87653         GNULIB_MBSPCASECMP.
87654         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
87655         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
87657 2007-02-14  Bruno Haible  <bruno@clisp.org>
87659         * modules/mbsncasecmp-tests: New file.
87660         * tests/test-mbsncasecmp.sh: New file.
87661         * tests/test-mbsncasecmp.c: New file.
87663         New module mbsncasecmp.
87664         * modules/mbsncasecmp: New file.
87665         * lib/mbsncasecmp.c: New file.
87666         * lib/string_.h (mbsncasecmp): New declaration.
87667         * m4/mbsncasecmp.m4: New file.
87668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87669         GNULIB_MBSNCASECMP.
87670         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
87671         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
87673 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
87675         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
87676         Verify that it doesn't overlap with our flags.
87677         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
87678         do not have the desired effect in multibyte locales; instead, use
87679         mbscasecmp.
87680         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
87681         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
87682         we don't require GNU fnmatch ourselves (if our users require it, they
87683         should do so explicitly).
87685         Fix regex code so it doesn't rely on strcasecmp.
87686         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
87687         Otherwise, include gnulib's langinfo.h.
87688         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
87689         undesirable behavior in non-C locales.  Instead, rely on localecharset.
87690         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
87691         * modules/regex (FILES): Remove m4/codeset.m4.
87692         (Depends-on): Add localcharset.  Remove strcase.
87694 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87696         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
87697         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
87699 2007-02-13  Bruno Haible  <bruno@clisp.org>
87701         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
87702         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87704 2007-02-12  Bruno Haible  <bruno@clisp.org>
87706         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
87707         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
87708         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
87709         time warning rather than a link error.
87711 2007-02-12  Bruno Haible  <bruno@clisp.org>
87713         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
87714         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
87715         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87717 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
87719         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
87720         args, not 2.
87722 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
87724         New module 'time', so that apps can include <time.h> as per
87725         POSIX and GNU instead of separate include files like time_r.h
87726         and timegm.h.  This implementation tries out a simpler approach
87727         for replacing decls in standard include files (as compared to
87728         the string module), somewhat as an experiment.
87730         * config/srclist.txt: Comment out mktime.c for now.
87731         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
87732         since it doesn't apply any more.  Use generic wording instead.
87733         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
87734         'time'.
87735         * lib/time_.h, m4/time_h.m4, modules/time: New files.
87736         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
87737         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
87738         Don't include <sys/types.h>; no longer needed since we assume C89.
87739         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
87740         * lib/strftime.c: Likewise.
87741         * lib/time_r.c: Likewise.
87742         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
87743         * lib/nanosleep.c: Include <time.h> first, to check interface.
87744         * lib/strptime.c: Likewise.
87745         * lib/time_r.c: Likewise.
87746         * lib/timegm.c: Likewise.
87747         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
87748         needed.
87749         * lib/timegm.c: Don't include timegm.h; no longer needed.
87750         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
87751         time.h now handles any problems in that area.
87752         (struct timespec, nanosleep): Remove; time.h now arranges for these.
87753         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
87754         that time.h defines struct timespec.
87755         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
87756         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
87757         handles that.
87758         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
87759         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
87760         needed.  Set REPLACE_LOCALTIME.
87761         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
87762         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
87763         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
87764         nanosleep; time_h.m4 now does that.  Don't require
87765         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
87766         module handles this now.
87767         * modules/getdate (Depends-on): Remove timespec.  Add time.
87768         * modules/nanosleep (Depends-on): Likewise.
87769         * modules/stat-time (Depends-on): Likewise.
87770         * modules/nanosleep (Include): Include time.h, not timespec.h.
87771         * modules/strptime (Files): Remove lib/strptime.h.
87772         (Depends-on): Add extensions, time.
87773         (Include): Include time.h, not strptime.h.
87774         * modules/time_r (Files): Remove lib/time_r.h.
87775         (Depends-on): Add time.
87776         (Include): Include time.h, not time_r.h.
87777         * modules/timegm: Likewise.
87778         * modules/timespec (Description): Now does timespec-related decls
87779         of our own, instead of struct timespec itself.
87780         (Depends-on): Add time; remove extensions.
87781         (Maintainer): Add self.
87782         * modules/utimecmp (Depends-on): Add time; remove timespec.
87783         * modules/utimens (Depends-on): Likewise.
87784         * modules/xnanosleep (Depends-on): Likewise.
87786 2007-02-11  Bruno Haible  <bruno@clisp.org>
87788         * lib/c-strstr.c: Include allocsa.h.
87789         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
87790         * lib/c-strcasestr.c: Include allocsa.h.
87791         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
87792         * lib/strcasestr.c: Include allocsa.h.
87793         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
87794         * lib/mbsstr.c: Include allocsa.h.
87795         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
87796         allocsa/freesa instead of malloc/free.
87797         * lib/mbscasestr.c: Include allocsa.h.
87798         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
87799         allocsa/freesa instead of malloc/free.
87800         * modules/c-strstr (Depends-on): Add allocsa.
87801         * modules/c-strcasestr (Depends-on): Likewise.
87802         * modules/strcasestr (Depends-on): Likewise.
87803         * modules/mbsstr (Depends-on): Likewise.
87804         * modules/mbscasestr (Depends-on): Likewise.
87806 2007-02-11  Bruno Haible  <bruno@clisp.org>
87808         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
87810         * modules/mbsspn-tests: New file.
87811         * tests/test-mbsspn.sh: New file.
87812         * tests/test-mbsspn.c: New file.
87814 2007-02-11  Bruno Haible  <bruno@clisp.org>
87816         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
87818         * modules/mbspbrk-tests: New file.
87819         * tests/test-mbspbrk.sh: New file.
87820         * tests/test-mbspbrk.c: New file.
87822 2007-02-11  Bruno Haible  <bruno@clisp.org>
87824         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
87825         unneeded cast.
87827         * modules/mbscspn-tests: New file.
87828         * tests/test-mbscspn.sh: New file.
87829         * tests/test-mbscspn.c: New file.
87831 2007-02-11  Bruno Haible  <bruno@clisp.org>
87833         * modules/mbscasecmp-tests: New file.
87834         * tests/test-mbscasecmp.sh: New file.
87835         * tests/test-mbscasecmp.c: New file.
87837 2007-02-11  Bruno Haible  <bruno@clisp.org>
87839         Ensure O(n) worst-case complexity of mbscasestr.
87840         * lib/mbscasestr.c: Include stdbool.h.
87841         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
87842         functions.
87843         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
87844         the bookkeeping indicates that it's worth it.
87845         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
87847         * modules/mbscasestr-tests: New file.
87848         * tests/test-mbscasestr1.c: New file.
87849         * tests/test-mbscasestr2.sh: New file.
87850         * tests/test-mbscasestr2.c: New file.
87851         * tests/test-mbscasestr3.sh: New file.
87852         * tests/test-mbscasestr3.c: New file.
87853         * tests/test-mbscasestr4.sh: New file.
87854         * tests/test-mbscasestr4.c: New file.
87855         * m4/locale-tr.m4: New file.
87857 2007-02-11  Bruno Haible  <bruno@clisp.org>
87859         Ensure O(n) worst-case complexity of mbsstr.
87860         * lib/mbsstr.c: Include stdbool.h.
87861         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
87862         functions.
87863         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
87864         bookkeeping indicates that it's worth it.
87865         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
87867         * modules/mbsstr-tests: New file.
87868         * tests/test-mbsstr1.c: New file.
87869         * tests/test-mbsstr2.sh: New file.
87870         * tests/test-mbsstr2.c: New file.
87871         * tests/test-mbsstr3.sh: New file.
87872         * tests/test-mbsstr3.c: New file.
87873         * m4/locale-fr.m4: New file.
87875 2007-02-11  Bruno Haible  <bruno@clisp.org>
87877         * lib/mbsrchr.c (mbsrchr): Fix bug.
87879         * modules/mbsrchr-tests: New file.
87880         * tests/test-mbsrchr.sh: New file.
87881         * tests/test-mbsrchr.c: New file.
87883 2007-02-11  Bruno Haible  <bruno@clisp.org>
87885         * lib/mbschr.c (mbschr): Fix bug.
87887         * modules/mbschr-tests: New file.
87888         * tests/test-mbschr.sh: New file.
87889         * tests/test-mbschr.c: New file.
87890         * m4/locale-zh.m4: New file.
87892 2007-02-11  Bruno Haible  <bruno@clisp.org>
87894         Support for copying multibyte string iterators.
87895         * lib/mbiter.h: Include <string.h>.
87896         (mbiter_multi_copy): New function.
87897         (mbi_copy): New macro.
87898         * lib/mbuiter.h: Include <string.h>.
87899         (mbuiter_multi_copy): New function.
87900         (mbui_copy): New macro.
87902 2007-02-11  Bruno Haible  <bruno@clisp.org>
87904         New module mbslen.
87905         * modules/mbslen: New file.
87906         * lib/mbslen.c: New file.
87907         * lib/string_.h (mbslen): New declaration.
87908         * m4/mbslen.m4: New file.
87909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87910         GNULIB_MBSLEN.
87911         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
87912         * MODULES.html.sh (Internationalization functions): Add mbslen.
87914 2007-02-11  Bruno Haible  <bruno@clisp.org>
87916         Ensure O(n) worst-case complexity of strcasestr substitute.
87917         * lib/strcasestr.c: Include stdbool.h.
87918         (knuth_morris_pratt): New function.
87919         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
87920         bookkeeping indicates that it's worth it.
87921         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
87923         * modules/strcasestr-tests: New file.
87924         * tests/test-strcasestr.c: New file.
87926 2007-02-11  Bruno Haible  <bruno@clisp.org>
87928         Ensure O(n) worst-case complexity of c_strcasestr.
87929         * lib/c-strcasestr.c: Include stdbool.h, string.h.
87930         (knuth_morris_pratt): New function.
87931         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
87932         the bookkeeping indicates that it's worth it.
87933         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
87935         * modules/c-strcasestr-tests: New file.
87936         * tests/test-c-strcasestr.c: New file.
87938 2007-02-11  Bruno Haible  <bruno@clisp.org>
87940         Ensure O(n) worst-case complexity of c_strstr.
87941         * lib/c-strstr.c: Include stdbool.h, string.h.
87942         (knuth_morris_pratt): New function.
87943         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
87944         bookkeeping indicates that it's worth it.
87945         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
87947         * lib/c-strstr.c: Complete rewrite for maintainability.
87949         * modules/c-strstr-tests: New file.
87950         * tests/test-c-strstr.c: New file.
87952 2007-02-11  Bruno Haible  <bruno@clisp.org>
87954         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
87955         5.2.1 and earlier, whereby \055 was treated just like the range
87956         delimiter '-'.
87957         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87959 2007-02-08  Bruno Haible  <bruno@clisp.org>
87961         * modules/regex (Depends-on): Add stdbool.
87962         Reported by Dalibor Topic <robilad@kaffe.org>.
87964 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
87966         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
87967         Prefer returning from main to exiting from it.
87968         Remove unnecessary parens after sizeof.
87970 2007-02-05  Bruno Haible  <bruno@clisp.org>
87972         New module mbssep.
87973         * modules/mbssep: New file.
87974         * lib/mbssep.c: New file.
87975         * lib/string_.h (strsep): Add a conditional link warning.
87976         (mbssep): New declaration.
87977         * m4/mbssep.m4: New file.
87978         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87979         GNULIB_MBSSEP.
87980         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
87981         * MODULES.html.sh (Internationalization functions): Add mbssep.
87983 2007-02-05  Bruno Haible  <bruno@clisp.org>
87985         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
87986         Optimize search in case of 1 delimiter.
87988 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
87990         * lib/acl.h: Include sys/types.h before sys/acl.h.
87992 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
87994         Merge upstream fix for glibc bugzilla #3957:
87996         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
87998         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
87999         bit for RE_HAT_LISTS_NOT_NEWLINE.
88000         (build_charclass_op): Remove bogus comment.
88002 2007-02-05  Simon Josefsson  <simon@josefsson.org>
88004         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
88006 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88008         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
88009         * lib/memmem.c [!defined _LIBC]: Include config.h.
88011 2007-02-04  Bruno Haible  <bruno@clisp.org>
88013         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
88014         warning message.
88016 2007-02-04  Bruno Haible  <bruno@clisp.org>
88018         New module mbstok_r.
88019         * modules/mbstok_r: New file.
88020         * lib/mbstok_r.c: New file.
88021         * lib/string_.h (strtok_r): Change argument names to match the
88022         comments. Add a conditional link warning.
88023         (mbstok_r): New declaration.
88024         * m4/mbstok_r.m4: New file.
88025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88026         GNULIB_MBSTOK_R.
88027         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
88028         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
88030 2007-02-04  Bruno Haible  <bruno@clisp.org>
88032         New module mbsspn.
88033         * modules/mbsspn: New file.
88034         * lib/mbsspn.c: New file.
88035         * lib/string_.h (strspn): Add a conditional link warning.
88036         (mbsspn): New declaration.
88037         * m4/mbsspn.m4: New file.
88038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88039         GNULIB_MBSSPN.
88040         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
88041         * MODULES.html.sh (Internationalization functions): Add mbsspn.
88043 2007-02-04  Bruno Haible  <bruno@clisp.org>
88045         New module mbspbrk.
88046         * modules/mbspbrk: New file.
88047         * lib/mbspbrk.c: New file.
88048         * lib/string_.h (strpbrk): Add a conditional link warning.
88049         (mbspbrk): New declaration.
88050         * m4/mbspbrk.m4: New file.
88051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88052         GNULIB_MBSPBRK.
88053         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
88054         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
88056 2007-02-04  Bruno Haible  <bruno@clisp.org>
88058         New module mbscspn.
88059         * modules/mbscspn: New file.
88060         * lib/mbscspn.c: New file.
88061         * lib/string_.h (strcspn): Add a conditional link warning.
88062         (mbscspn): New declaration.
88063         * m4/mbscspn.m4: New file.
88064         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88065         GNULIB_MBSCSPN.
88066         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
88067         * MODULES.html.sh (Internationalization functions): Add mbscspn.
88069 2007-02-04  Bruno Haible  <bruno@clisp.org>
88071         New module mbscasestr, reduced goal of strcasestr.
88072         * modules/mbscasestr: New file.
88073         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
88074         (mbscasestr): Renamed from strcasestr.
88075         * lib/strcasestr.c: Don't include mbuiter.h.
88076         (strcasestr): Remove support for multibyte locales.
88077         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
88078         Change the conditional link warning.
88079         (mbscasestr): New declaration.
88080         * m4/mbscasestr.m4: New file.
88081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
88082         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
88083         REPLACE_STRCASESTR.
88084         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
88085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88086         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
88087         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
88088         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
88089         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
88090         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
88091         (Depends-on): Remove mbuiter.
88092         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
88094 2007-02-04  Bruno Haible  <bruno@clisp.org>
88096         Simplify handling of strncasecmp.
88097         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
88098         the conditional link warning.
88099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88100         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
88101         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
88102         * modules/strcase (configure.ac): Don't invoke
88103         gl_STRING_MODULE_INDICATOR.
88104         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
88106 2007-02-04  Bruno Haible  <bruno@clisp.org>
88108         New module mbscasecmp, reduced goal of strcasecmp.
88109         * modules/mbscasecmp: New file.
88110         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
88111         (mbscasecmp): Renamed from strcasecmp.
88112         * lib/strcasecmp.c: Don't include mbuiter.h.
88113         (strcasecmp): Remove support for multibyte locales.
88114         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
88115         Change the conditional link warning.
88116         (mbscasecmp): New declaration.
88117         * m4/mbscasecmp.m4: New file.
88118         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
88119         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
88120         REPLACE_STRCASECMP.
88121         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
88122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88123         GNULIB_MBSCASECMP.
88124         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
88125         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
88126         * modules/strcase (Files): Remove m4/mbrtowc.m4.
88127         (Depends-on): Remove mbuiter.
88128         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
88130 2007-02-04  Bruno Haible  <bruno@clisp.org>
88132         New module mbsstr. Remove module strstr.
88133         * modules/mbsstr: New file.
88134         * modules/strstr: Remove file.
88135         * lib/mbsstr.c: Renamed from lib/strstr.c.
88136         (mbsstr): Renamed from strstr.
88137         * lib/string_.h (strstr): Remove declaration. Change the conditional
88138         link warning.
88139         (mbsstr): New declaration.
88140         * m4/mbsstr.m4: New file.
88141         * m4/strstr.m4: Remove file.
88142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
88143         REPLACE_STRSTR.
88144         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
88145         Don't initialize GNULIB_STRSTR.
88146         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
88147         substitute GNULIB_STRSTR and REPLACE_STRSTR.
88148         * MODULES.html.sh (Internationalization functions): Add mbsstr.
88149         (Support for systems lacking ANSI C 89): Remove strstr.
88151 2007-02-04  Bruno Haible  <bruno@clisp.org>
88153         New module mbsrchr.
88154         * modules/mbsrchr: New file.
88155         * lib/mbsrchr.c: New file.
88156         * lib/string_.h (strrchr): Add a conditional link warning.
88157         (mbsrchr): New declaration.
88158         * m4/mbsrchr.m4: New file.
88159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88160         GNULIB_MBSRCHR.
88161         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
88162         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
88164 2007-02-04  Bruno Haible  <bruno@clisp.org>
88166         New module mbschr.
88167         * modules/mbschr: New file.
88168         * lib/mbschr.c: New file.
88169         * lib/string_.h (strchr): Add a conditional link warning.
88170         (mbschr): New declaration.
88171         * m4/mbschr.m4: New file.
88172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
88173         GNULIB_MBSCHR.
88174         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
88175         * MODULES.html.sh (Internationalization functions): Add mbschr.
88177 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
88179         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
88181         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
88183 2007-02-04  Bruno Haible  <bruno@clisp.org>
88185         New module description section 'configure.ac-early'.
88186         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
88187         (func_get_autoconf_early_snippet): New function.
88188         (func_import, func_create_testdir): Use it. Remove special cases for
88189         modules 'extensions' and 'lock'.
88190         * modules/extensions (configure.ac-early): Require
88191         gl_USE_SYSTEM_EXTENSIONS.
88192         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
88194 2007-02-04  Bruno Haible  <bruno@clisp.org>
88196         Make use of gcj-4.3's -fsource and -ftarget option.
88197         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
88198         and if so try the options -fsource and -ftarget.
88199         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
88200         source_version, ftarget_option, target_version arguments.
88201         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
88202         (is_envjavac_oldgcj_14_14_usable): Renamed from
88203         is_envjavac_gcj_14_14_usable.
88204         (is_envjavac_oldgcj_14_13_usable): Renamed from
88205         is_envjavac_gcj_14_13_usable.
88206         (is_gcj_present): Update.
88207         (is_gcj_43, is_gcj43_usable): New functions.
88208         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
88209         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
88210         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
88211         try the options -fsource and -ftarget.
88213 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88215         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
88216         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
88217         larger value.
88219 2007-02-03  Jim Meyering  <jim@meyering.net>
88221         Give tools a better chance to allocate space for very large buffers.
88222         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
88224         Make pwd and readlink work also when run with an unreadable parent dir
88225         on systems with openat support.
88226         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
88227         provided getcwd function, even when we have openat support.
88228         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
88230 2007-02-02  Bruno Haible  <bruno@clisp.org>
88232         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88233         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
88234         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
88235         portability problems if one of these functions is only used on specific
88236         platforms.
88237         Reported by Paul Eggert.
88239 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
88241         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
88242         is causing more trouble than it's curing.
88243         * lib/regex_internal.h (__mempcpy): Remove.
88244         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
88245         (and make the code a tad smaller to boot).
88246         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
88248 2007-02-02  Jim Meyering  <jim@meyering.net>
88250         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
88251         section, not in the Makefile.am: one.
88253 2007-02-02  Eric Blake  <ebb9@byu.net>
88255         * lib/strchrnul.c: Always include config.h first.
88257         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
88258         gnulib strstr is not necessary here.
88260 2007-02-02  Simon Josefsson  <simon@josefsson.org>
88262         * m4/socklen.m4: Fix typo.
88264 2007-02-02  Eric Blake  <ebb9@byu.net>
88266         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
88267         * modules/netinet_in (Makefile.am): Likewise.
88269 2007-02-01  Bruno Haible  <bruno@clisp.org>
88271         * lib/string_.h (GL_LINK_WARNING): New macro.
88272         (strcasecmp, strstr, strcasestr): If provided by the system,
88273         conditionally define as a macro that leads to a warning instead of to
88274         an error.
88275         (strncasecmp): Conditionally define as a macro that leads to a warning.
88277 2007-02-01  Karl Berry  <karl@gnu.org>
88279         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
88281 2007-02-01  Bruno Haible  <bruno@clisp.org>
88283         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
88284         renamings.
88286 2007-02-01  Eric Blake  <ebb9@byu.net>
88288         * modules/regex (Depends-on): Revert dependence on mempcpy.
88289         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
88290         module's definition of mempcpy.
88291         Reported by Paul Eggert.
88293 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88295         * lib/string_.h: If the gnulib module XYZ is not present, undefine
88296         the symbol XYZ before redefining it.  This fixes a problem with
88297         programs that don't use XYZ, when compiled on systems that define
88298         XYZ to something else.
88300 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
88302         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
88303         occurs when "mkdir -m foo" creates a setgid directory that is (1)
88304         writeable to group or other and (2) is intended to have a special
88305         mode bit that is set or cleared.  In such a case, the directory
88306         should be neither group- nor other-writeable until the special
88307         mode bits are right.
88309 2007-01-31  Eric Blake  <ebb9@byu.net>
88311         * modules/mountlist (Depends-on): Add strstr.
88313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
88314         bug.
88315         * modules/string (Makefile.am): Remove redundant replacement.
88316         * modules/regex (Depends-on): Add mempcpy.
88318 2007-01-31  Bruno Haible  <bruno@clisp.org>
88320         New module description field 'Link'.
88321         * gnulib-tool (func_usage): Document --extract-link-directive.
88322         (sed_extract_prog): Recognize 'Link' directive.
88323         (func_get_link_directive): New function.
88324         (func_import): Show summary of link directives.
88325         Handle --extract-link-directive option.
88326         * modules/acl (Link): New section.
88327         * modules/clock-time (Link): New section.
88328         * modules/euidaccess (Link): New section.
88329         * modules/gettext (Link): New section.
88330         * modules/iconv (Link): New section.
88331         * modules/lock (Link): New section.
88332         * modules/nanosleep (Link): New section.
88333         * modules/readline (Link): New section.
88335 2007-01-27  Bruno Haible  <bruno@clisp.org>
88337         Enforce the use of gnulib modules for unportable <string.h> functions.
88338         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
88339         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
88340         (gl_HEADER_STRING_H_BODY): Require it.
88341         * lib/string_.h: If the gnulib module XYZ is not present, redefine
88342         the symbol XYZ to one that gives a link error.
88343         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
88344         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
88345         * modules/mempcpy (configure.ac): Likewise.
88346         * modules/memrchr (configure.ac): Likewise.
88347         * modules/stpcpy (configure.ac): Likewise.
88348         * modules/stpncpy (configure.ac): Likewise.
88349         * modules/strcase (configure.ac): Likewise.
88350         * modules/strcasestr (configure.ac): Likewise.
88351         * modules/strchrnul (configure.ac): Likewise.
88352         * modules/strdup (configure.ac): Likewise.
88353         * modules/strndup (configure.ac): Likewise.
88354         * modules/strnlen (configure.ac): Likewise.
88355         * modules/strpbrk (configure.ac): Likewise.
88356         * modules/strsep (configure.ac): Likewise.
88357         * modules/strstr (configure.ac): Likewise.
88358         * modules/strtok_r (configure.ac): Likewise.
88360 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
88362         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
88364 2007-01-30  Jim Meyering  <jim@meyering.net>
88366         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
88368 2007-01-29  Bruno Haible  <bruno@clisp.org>
88370         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
88371         * lib/execute.c: Likewise.
88372         * lib/pipe.c: Likewise.
88373         * lib/printf-args.h: Likewise.
88374         * lib/printf-args.c: Likewise.
88375         * lib/printf-parse.c: Likewise.
88376         * lib/vasnprintf.c: Likewise.
88378 2007-01-29  Eric Blake  <ebb9@byu.net>
88380         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
88381         declaration.
88383 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
88385         * lib/strptime.h (strptime): Use 'restrict' for args where
88386         POSIX requires this.
88387         * lib/strptime.c (strptime): Likewise.
88388         Change license notice from LGPL to GPL, since gnulib-tool will
88389         change this as needed.
88390         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
88391         defined.
88392         Include "strptime.h" first, to check interface.
88393         Do not #undef _LIBC and _NL_CURRENT.
88394         Do not include <stdlib.h>; no longer needed.
88395         Include "time_r.h" and declare ptime_locale_status
88396         only if _LIBC is not defined.
88397         (__P): Remove unused macro.
88398         (match_string): Bring back glibc version, but use it only if _LIBC
88399         is defined.
88400         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
88401         Remove unnecessary assertion and abort() call.
88402         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
88403         * m4/strptime.m4: Fix serial number comment.
88404         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
88405         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
88406         (Depends-on): Add time_r.
88408 2007-01-29  Bruno Haible  <bruno@clisp.org>
88410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88411         strptime.
88412         * modules/strptime (Depends-on): Add stdbool.
88413         * lib/strptime.h: Include <time.h> always. Add comments.
88415 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88417         * modules/strptime: New file.
88418         * lib/strptime.h: New file.
88419         * lib/strptime.c: New file.
88420         * m4/strptime.m4: New file.
88422 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88424         * MODULES.html.sh: New module mpsort.
88425         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
88427         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
88428         a circularity problem with HP-UX ia64 reported by Bob Proulx in
88429         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
88430         All uses changed.
88431         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
88432         All uses changed.
88433         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
88434         to _Restrict_.
88435         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
88436         the parameter matches the prototype.
88438 2007-01-28  Jim Meyering  <jim@meyering.net>
88440         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
88441         sys/time.h here, reverting that part of the previous patch:
88442         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
88444 2007-01-28  Bruno Haible  <bruno@clisp.org>
88446         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
88447         value of $(SYS_TIME_H).
88448         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
88449         remove it conditionally, too. [added by Jim Meyering]
88450         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
88451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
88452         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
88453         GETTIMEOFDAY_REPLACEMENT to 1.
88455 2007-01-28  Bruno Haible  <bruno@clisp.org>
88457         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
88458         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
88459         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
88460         Set UNISTD_H instead of UNISTD_H2.
88461         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
88463 2007-01-28  Bruno Haible  <bruno@clisp.org>
88465         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
88466         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
88468 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88470         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
88471         (func_create_testdir): Ensure C locale for `grep' and `tr'
88472         character ranges.
88473         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
88474         ACLOCAL_AMFLAGS parsing state machine.
88476 2007-01-27  Bruno Haible  <bruno@clisp.org>
88478         * modules/unistr/base: Update.
88480 2007-01-27  Bruno Haible  <bruno@clisp.org>
88482         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
88483         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
88484         * modules/unistr/u32-mbtouc-unsafe: Renamed from
88485         modules/unistr/u32-mbtouc.
88486         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
88487         * lib/unistr.h: Update.
88488         * lib/linebreak.c: Update.
88489         * modules/unistr/u32-mbtouc: Renamed from
88490         modules/unistr/u32-mbtouc-safe.
88491         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
88492         * lib/unistr.h: Update.
88493         * lib/unistr/u32-to-u8.c: Update.
88494         * lib/unistr/u32-to-u16.c: Update.
88496 2007-01-27  Bruno Haible  <bruno@clisp.org>
88498         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
88499         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
88500         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
88501         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
88502         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
88503         * modules/unistr/u16-mbtouc-unsafe: Renamed from
88504         modules/unistr/u16-mbtouc.
88505         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
88506         * lib/unistr.h: Update.
88507         * lib/linebreak.c: Update.
88508         * modules/linebreak: Update.
88509         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
88510         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
88511         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
88512         * modules/unistr/u16-mbtouc: Renamed from
88513         modules/unistr/u16-mbtouc-safe.
88514         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
88515         * lib/unistr.h: Update.
88516         * lib/unistr/u16-to-u8.c: Update.
88517         * modules/unistr/u16-to-u8: Update.
88518         * lib/unistr/u16-to-u32.c: Update.
88519         * modules/unistr/u16-to-u32: Update.
88521 2007-01-27  Bruno Haible  <bruno@clisp.org>
88523         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
88524         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
88525         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
88526         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
88527         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
88528         * modules/unistr/u8-mbtouc-unsafe: Renamed from
88529         modules/unistr/u8-mbtouc.
88530         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
88531         * lib/unistr.h: Update.
88532         * lib/striconveh.c: Update.
88533         * modules/striconveh: Update.
88534         * lib/linebreak.c: Update.
88535         * modules/linebreak: Update.
88536         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
88537         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
88538         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
88539         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
88540         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
88541         * lib/unistr.h: Update.
88542         * lib/striconveh.c: Update.
88543         * modules/striconveh: Update.
88544         * lib/unistr/u8-to-u16.c: Update.
88545         * modules/unistr/u8-to-u16: Update.
88546         * lib/unistr/u8-to-u32.c: Update.
88547         * modules/unistr/u8-to-u32: Update.
88549 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88551         Sync from Libtool.
88552         * lib/argz.c: Do not include strings.h nor memory.h, include
88553         string.h unconditionally.  Patch by Simon Josefsson.
88555 2007-01-27  Bruno Haible  <bruno@clisp.org>
88557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
88558         from gl_HEADER_STRING_H_BODY.
88559         (gl_HEADER_STRING_H_BODY): Require it.
88560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
88561         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
88562         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
88563         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
88564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88565         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
88566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88567         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
88568         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
88569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
88570         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
88571         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
88572         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
88573         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88574         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88576 2007-01-27  Bruno Haible  <bruno@clisp.org>
88578         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
88579         check_PROGRAMS into noinst_PROGRAMS.
88580         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
88581         check_PROGRAMS in this case.
88582         (func_import): Set for_test to false.
88583         (func_create_testdir): Set for_test to true.
88585 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88586             Bruno Haible  <bruno@clisp.org>
88588         * modules/strcasestr (Files): Remove lib/strcasestr.h.
88589         (Depends-on): Add string.
88590         (Includes): Use <string.h> instead of strcasestr.h.
88591         * modules/string (Makefile.am): Also substitute the value of
88592         REPLACE_STRCASESTR.
88593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
88594         assume strcasestr is declared in <string.h> not <strings.h>. Also
88595         set REPLACE_STRCASESTR.
88596         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
88597         REPLACE_STRCASESTR.
88598         * lib/strcasestr.h: Remove file.
88599         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
88600         * lib/string_.h (strcasestr): New declaration.
88602 2007-01-27  Bruno Haible  <bruno@clisp.org>
88604         * lib/string_.h: Use 'extern'.
88606 2007-01-27  Jim Meyering  <jim@meyering.net>
88608         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
88609         of set-but-not-used local, "q".
88611         * lib/mempcpy.c: Include <config.h> before <string.h>.
88612         This fixes a compilation error on HP-UX, due to the system's
88613         "restrict"-using mempcpy prototype.
88615 2007-01-26  Bruno Haible  <bruno@clisp.org>
88617         Small optimization.
88618         * lib/javacomp.c: Include c-strstr.h.
88619          (is_envjavac_gcj): Use c_strstr instead of strstr.
88620         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
88622 2007-01-26  Bruno Haible  <bruno@clisp.org>
88624         * MODULES.html.sh (Unicode string functions): Add the new modules.
88626         * modules/uniconv/u32-strconv-to-locale: New file.
88627         * lib/uniconv/u32-strconv-to-locale.c: New file.
88629         * modules/uniconv/u16-strconv-to-locale: New file.
88630         * lib/uniconv/u16-strconv-to-locale.c: New file.
88632         * modules/uniconv/u8-strconv-to-locale: New file.
88633         * lib/uniconv/u8-strconv-to-locale.c: New file.
88635         * modules/uniconv/u32-strconv-from-locale: New file.
88636         * lib/uniconv/u32-strconv-from-locale.c: New file.
88638         * modules/uniconv/u16-strconv-from-locale: New file.
88639         * lib/uniconv/u16-strconv-from-locale.c: New file.
88641         * modules/uniconv/u8-strconv-from-locale: New file.
88642         * lib/uniconv/u8-strconv-from-locale.c: New file.
88644         * modules/uniconv/u32-strconv-to-enc: New file.
88645         * lib/uniconv/u32-strconv-to-enc.c: New file.
88646         * modules/uniconv/u32-strconv-to-enc-tests: New file.
88647         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
88649         * modules/uniconv/u16-strconv-to-enc: New file.
88650         * lib/uniconv/u16-strconv-to-enc.c: New file.
88651         * lib/uniconv/u-strconv-to-enc.h: New file.
88652         * modules/uniconv/u16-strconv-to-enc-tests: New file.
88653         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
88655         * modules/uniconv/u8-strconv-to-enc: New file.
88656         * lib/uniconv/u8-strconv-to-enc.c: New file.
88657         * modules/uniconv/u8-strconv-to-enc-tests: New file.
88658         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
88660         * modules/uniconv/u32-strconv-from-enc: New file.
88661         * lib/uniconv/u32-strconv-from-enc.c: New file.
88662         * modules/uniconv/u32-strconv-from-enc-tests: New file.
88663         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
88665         * modules/uniconv/u16-strconv-from-enc: New file.
88666         * lib/uniconv/u16-strconv-from-enc.c: New file.
88667         * modules/uniconv/u16-strconv-from-enc-tests: New file.
88668         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
88670         * modules/uniconv/u8-strconv-from-enc: New file.
88671         * lib/uniconv/u8-strconv-from-enc.c: New file.
88672         * lib/uniconv/u-strconv-from-enc.h: New file.
88673         * modules/uniconv/u8-strconv-from-enc-tests: New file.
88674         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
88676         * modules/uniconv/u32-conv-from-enc: New file.
88677         * lib/uniconv/u32-conv-from-enc.c: New file.
88678         * modules/uniconv/u32-conv-from-enc-tests: New file.
88679         * tests/uniconv/test-u32-conv-from-enc.c: New file.
88681         * modules/uniconv/u16-conv-from-enc: New file.
88682         * lib/uniconv/u16-conv-from-enc.c: New file.
88683         * lib/uniconv/u-conv-from-enc.h: New file.
88684         * modules/uniconv/u16-conv-from-enc-tests: New file.
88685         * tests/uniconv/test-u16-conv-from-enc.c: New file.
88687         * modules/uniconv/u8-conv-from-enc: New file.
88688         * lib/uniconv/u8-conv-from-enc.c: New file.
88689         * modules/uniconv/u8-conv-from-enc-tests: New file.
88690         * tests/uniconv/test-u8-conv-from-enc.c: New file.
88692         * modules/uniconv/base: New file.
88693         * lib/uniconv.h: New file.
88695 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
88697         * doc/gnulib-tool.texi (Initial import): Update to match current
88698         behavior with strdup module.
88699         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
88700         * lib/memmem.h: Remove; all uses removed.  This is now done
88701         by <string.h>.
88702         * lib/mempcpy.h: Likewise.
88703         * lib/memrchr.h: Likewise.
88704         * lib/stpcpy.h: Likewise.
88705         * lib/stpncpy.h: Likewise.
88706         * lib/strcase.h: Likewise.
88707         * lib/strchrnul.h: Likewise.
88708         * lib/strdup.h: Likewise.
88709         * lib/strndup.h: Likewise.
88710         * lib/strnlen.h: Likewise.
88711         * lib/strpbrk.h: Likewise.
88712         * lib/strsep.h: Likewise.
88713         * lib/strstr.h: Likewise.
88714         * lib/strtok_r.h: Likewise.
88715         * lib/string_.h: New file.
88716         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
88717         Rely on <string.h> instead.
88718         * lib/canon-host.c: Likewise.
88719         * lib/chdir-long.c: Likewise.
88720         * lib/concatpath.c: Likewise.
88721         * lib/exclude.c: Likewise.
88722         * lib/fchdir.c: Likewise.
88723         * lib/getaddrinfo.c: Likewise.
88724         * lib/getcwd.c: Likewise.
88725         * lib/getsubopt.c: Likewise.
88726         * lib/glob.c: Likewise.
88727         * lib/hard-locale.c: Likewise.
88728         * lib/iconvme.c: Likewise.
88729         * lib/javacomp.c: Likewise.
88730         * lib/mempcpy.c: Likewise.
88731         * lib/memrchr.c: Likewise.
88732         * lib/regex_internal.h: Likewise.
88733         * lib/stpncpy.c: Likewise.
88734         * lib/strcasecmp.c: Likewise.
88735         * lib/strchrnul.c: Likewise.
88736         * lib/strdup.c: Likewise.
88737         * lib/striconv.c: Likewise.
88738         * lib/striconveh.c: Likewise.
88739         * lib/striconveha.c: Likewise.
88740         * lib/strncasecmp.c: Likewise.
88741         * lib/strndup.c: Likewise.
88742         * lib/strnlen.c: Likewise.
88743         * lib/strsep.c: Likewise.
88744         * lib/strstr.c: Likewise.
88745         * lib/strtok_r.c: Likewise.
88746         * lib/userspec.c: Likewise.
88747         * lib/w32spawn.h: Likewise.
88748         * lib/xstrndup.c: Likewise.
88749         * lib/mountlist.c (strstr): Remove decl.
88750         * m4/string_h.m4: New file.
88751         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
88752         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
88753         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
88754         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
88755         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
88756         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
88757         Set REPLACE_STRCASECMP if necessary.
88758         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
88759         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
88760         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
88761         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
88762         HAVE_DECL_STRDUP if necessary.
88763         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
88764         since gl_FUNC_STRNDUP does that now.
88765         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
88766         Check for decl here...
88767         (gl_PREREQ_STRNLEN): ... not here.
88768         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
88769         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
88770         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
88771         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
88772         necessary.
88773         * modules/string: New file.
88774         * modules/memmem (Files): Remove special-purpose include file.
88775         (Depends-on): Add string.
88776         (Include): Include <string.h>, not the removed file.
88777         * modules/mempcpy: Likewise.
88778         * modules/memrchr: Likewise.
88779         * modules/stpcpy: Likewise.
88780         * modules/stpncpy: Likewise.
88781         * modules/strcase: Likewise.
88782         * modules/strchrnul: Likewise.
88783         * modules/strdup: Likewise.
88784         * modules/strndup: Likewise.
88785         * modules/strnlen: Likewise.
88786         * modules/strpbrk: Likewise.
88787         * modules/strsep: Likewise.
88788         * modules/strstr: Likewise.
88789         * modules/strtok_r: Likewise.
88790         * tests/test-dirname.c: Don't include "strdup.h", since
88791         <string.h> now suffices.
88792         * tests/test-memmem.c: Don't include "memmem.h", since
88793         <string.h> now suffices.
88795 2007-01-25  Bruno Haible  <bruno@clisp.org>
88797         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
88798         *resultp is 0.
88800         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
88801         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
88802         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
88803         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
88805         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
88806         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
88807         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
88808         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
88809         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
88810         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
88812 2007-01-24  Bruno Haible  <bruno@clisp.org>
88814         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
88815         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
88816         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
88817         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
88818         gl_FUNC_FTS_CORE.
88819         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
88820         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
88821         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88822         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
88823         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
88824         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
88825         gl_FUNC_FCHOWNAT.
88826         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
88827         gl_FUNC_STRFTIME.
88828         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
88829         Reported by Ralf Wildenhues.
88831 2007-01-24  Bruno Haible  <bruno@clisp.org>
88833         Drop AC_REQUIRE calls that are redundant with the module dependencies.
88834         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
88835         gl_GETADDRINFO.
88836         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
88837         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
88838         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
88840 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
88842         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
88843         Don't use 'exit'; just return from 'main'.
88844         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
88846         * lib/fnmatch_.h: Readjust white space and comments to match
88847         glibc, to avoid spurious diffs.
88849 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88851         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
88852         2004-12-01 change by Jakub Jelinek, since this code won't compile
88853         if !LIBC.  Problem reported by Bob Proulx.
88855 2007-01-23  Bruno Haible  <bruno@clisp.org>
88857         * lib/striconveh.c: Include c-strcaseeq.h.
88858         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
88859         * modules/striconveh (Depends-on): Add c-strcaseeq.
88861 2007-01-23  Bruno Haible  <bruno@clisp.org>
88863         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
88865         * modules/c-strcaseeq: New file.
88866         * lib/c-strcaseeq.h: New file.
88868         * modules/streq: New file.
88869         * lib/streq.h: New file.
88871 2007-01-23  Bruno Haible  <bruno@clisp.org>
88873         * modules/striconveha-tests: New file.
88874         * tests/test-striconveha.c: New file.
88876         * lib/striconveha.h: Include <stdbool.h>.
88877         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
88878         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
88879         (mem_iconveha_notranslit): Renamed from mem_iconveha.
88880         (mem_iconveha): New function.
88881         (str_iconveha_notranslit): Renamed from str_iconveha.
88882         (str_iconveha): New function.
88883         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
88884         c-strcase.
88886 2007-01-23  Bruno Haible  <bruno@clisp.org>
88888         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
88889         encodings without forgiving before trying any encoding with handler.
88890         (str_iconveha): Try all encodings without forgiving before trying any
88891         encoding with handler.
88893 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88895         Import the following changes from libc.
88897         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
88899         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
88901         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88903         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
88904         normal_bracket label.
88906         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
88908         [BZ #361]
88909         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
88910         to normal_bracket after fetching the next character.
88912 2007-01-22  Bruno Haible  <bruno@clisp.org>
88914         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
88915         argument.
88916         * lib/striconveh.c (iconv_carefully_1): New function.
88917         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
88918         argument.
88919         (str_cd_iconveh): Update.
88920         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
88921         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
88922         * tests/test-striconveh.c (MAGIC): New macro.
88923         (new_offsets): New function.
88924         (main): Test call with and without offsets.
88926 2007-01-22  Bruno Haible  <bruno@clisp.org>
88928         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
88929         * modules/sys_select (Makefile.am): Likewise.
88930         * modules/sys_socket (Makefile.am): Likewise.
88931         * modules/sys_time (Makefile.am): Likewise.
88933 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
88935         * modules/gettimeofday (License): Change from GPL to LGPL, since
88936         gettimeofday is a library function.
88938 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88940         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
88942 2007-01-21  Bruno Haible  <bruno@clisp.org>
88944         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
88946 2007-01-21  Bruno Haible  <bruno@clisp.org>
88948         * modules/striconveha: New file.
88949         * lib/striconveha.h: New file.
88950         * lib/striconveha.c: New file.
88951         * MODULES.html.sh (Internationalization functions): Add striconveha.
88952         * lib/striconv.c (str_iconv): Optimize the case of an empty input
88953         string.
88954         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
88956 2007-01-21  Bruno Haible  <bruno@clisp.org>
88958         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
88959         * lib/striconveh.c (str_iconveh): Likewise.
88961 2007-01-21  Bruno Haible  <bruno@clisp.org>
88963         * lib/striconveh.h (mem_iconveh): New declaration.
88964         * lib/striconveh.c (mem_iconveh): New function.
88965         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
88967 2007-01-21  Bruno Haible  <bruno@clisp.org>
88969         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
88971         * lib/striconveh.h (mem_cd_iconveh): Change specification.
88972         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
88973         original result buffer.
88974         (str_cd_iconveh): Update.
88975         * tests/test-striconveh.c (main): Update.
88977         * lib/striconv.h (mem_cd_iconv): Change specification.
88978         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
88979         result buffer.
88980         (str_cd_iconv): Update.
88981         * tests/test-striconv.c (main): Update.
88983 2007-01-21  Bruno Haible  <bruno@clisp.org>
88985         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
88987 2007-01-20  Jim Meyering  <jim@meyering.net>
88989         * lib/userspec.c (parse_with_separator): If a user or group string
88990         starts with "+", skip the corresponding name-to-ID look-up, since
88991         such a look-up must fail: user and group names may not include "+".
88993 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88995         * lib/poll.c: Include sys/time.h and time.h unconditionally,
88996         since we now assume the sys_time module.
88997         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
88998         check for sys/time.h; no longer needed.
88999         * modules/poll (Depends-on): Depend on sys_time.
89001 2007-01-18  Bruno Haible  <bruno@clisp.org>
89003         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
89004         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89006         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
89007         gettimeofday.
89009         * tests/test-gettimeofday.c: Include <time.h>.
89010         (dummy): Remove variable.
89012         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
89013         gl_HEADER_SYS_TIME_H.
89014         (gl_HEADER_SYS_TIME_H): New macro.
89016         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
89017         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
89019         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
89020         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
89022         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
89023         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89024         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
89025         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
89026         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89028         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
89029         last change; it caused a compilation error when cross-compiling to
89030         Cygwin.
89032 2007-01-18  Jim Meyering  <jim@meyering.net>
89034         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
89035         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
89036         than the race-prone "test -d sys || mkdir sys".
89037         (configure.ac): Use AC_PROG_MKDIR_P.
89038         * modules/sys_select: Likewise.
89039         * modules/sys_socket: Likewise.
89040         * modules/sys_time: Likewise.
89042 2007-01-18  Eric Blake  <ebb9@byu.net>
89044         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
89045         replace gettimeofday.
89046         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
89047         name, to avoid infinite recursion.
89049 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
89051         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
89052         module sys_time.
89053         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
89054         assume timespec.h defines struct timeval.
89055         * lib/settime.c: Likewise.
89056         * lib/utimens.c: Likewise.
89057         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
89058         since we now assume the gettimeofday module.
89059         * lib/tempname.c (__gen_tempname): Likewise.
89060         * lib/gettimeofday.h: Remove.
89061         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
89062         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
89063         Include <time.h>, for 'time()'.
89064         (localtime_buffer_addr): Also use this workaround if
89065         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
89066         to simplify the uses.  All uses changed.
89067         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
89068         that #undef is inside {}, and 'const' follows type name consistently.
89069         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
89070         (gettimeofday): Do not use the maximum possible value for
89071         tv->tv_usec, since that might break usages other than ls.c.
89072         Instead, we'll leave ls.c alone.  This undoes today's patch
89073         by Bruno.  Add a compile-time warning for 1s-clock resolution;
89074         we've never observed the problem but might as well keep the
89075         canary.
89076         * lib/nanosleep.c: Include timespec.h first, for interface check.
89077         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
89078         now assume the sys_time module.
89079         * lib/tempname.c: Likewise.
89080         * lib/timespec.h: Likewise.
89081         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
89082         needed.
89083         * lib/strftime.c: Likewise.
89084         * lib/timespec.h: Likewise.
89085         * lib/posixtm.c: Include posixtm.h first, for interface check.
89086         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
89087         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
89088         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
89089         * lib/sys_time_.h: New file.
89090         * lib/timespec.h (struct timespec): Use long int, not long.
89091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
89092         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
89093         Remove obsolescent call to AC_HEADER_TIME.
89094         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
89095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
89096         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
89097         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
89098         Likewise.
89099         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
89100         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
89101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
89102         into the sys_time module.  Check for gettimeofday just once.
89103         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
89104         for gettimeofday signature to just check the signature.  Merely
89105         compile it, since linking doesn't test signature.  Improve test for
89106         whether gettimeofday.o is actually needed.
89107         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
89108         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
89109         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
89110         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89111         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
89112         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
89113         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
89114         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
89115         than worrying about sys/time.h.
89116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89117         Don't bother worrying about TIME_WITH_SYS_TIME.
89118         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
89119         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
89120         * m4/sys_time_h.m4: New file.
89121         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
89122         Don't include sys/time.h.  Return from main rather than exiting.
89123         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
89124         all uses changed.
89125         * modules/gethrxtime (Depends-on): Add sys_time.
89126         * modules/gettime (Depends-on): Likewise.
89127         * modules/gettimeofday (Depends-on): Likewise.
89128         * modules/nanosleep (Depends-on): Likewise.
89129         * modules/settime (Depends-on): Likewise.
89130         * modules/tempname (Depends-on): Likewise.
89131         * modules/utimens (Depends-on): Likewise.
89132         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
89133         (Include): Change back to <sys/time.h>.
89134         (Maintainer): Add self.
89135         * modules/sys_time: New file.
89136         * modules/tempname (Depends-on): Add gettimeofday.
89137         * tests/test-gettimeofday.c: Include <sys/time.h>
89138         rather than gettimeofday.h.
89140 2007-01-17  Bruno Haible  <bruno@clisp.org>
89142         * gnulib-tool (func_get_license): Revert last patch. Instead, let
89143         the license default to GPL.
89144         (func_create_testdir): Don't complain if a module is LGPL and its
89145         tests module depends on GPLed modules.
89147 2007-01-17  Bruno Haible  <bruno@clisp.org>
89149         * lib/gettimeofday.c (gettimeofday): Add code for the case
89150         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
89151         maximum possible value for tv->tv_usec, rather than the minimum one.
89153 2005-10-08  Martin Lambers  <marlam@marlam.de>
89154 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
89155 2007-01-16  Bruno Haible  <bruno@clisp.org>
89157         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
89158         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
89159         gl_FUNC_GETTIMEOFDAY.
89160         (Include): Add gettimeofday.h.
89161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
89162         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
89163         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
89164         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
89165         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
89166         * lib/gettimeofday.h: New file.
89167         * lib/gettimeofday.c: Include <sys/timeb.h>.
89168         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
89169         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
89170         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
89171         fall back on time().
89173         * tests/test-gettimeofday.c: New file.
89174         * modules/gettimeofday-tests: New file.
89176 2007-01-16  Eric Blake  <ebb9@byu.net>
89178         * modules/fnmatch (Depends-on): Depend on wchar.
89179         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
89180         * m4/fnmatch.m4: Likewise.
89181         * modules/mbchar (Makefile.am): Assume <wchar.h>.
89182         * m4/mbchar.m4: Likewise.
89183         * modules/mbswidth (Depends-on): Depend on wchar.
89184         * lib/mbswidth.c: Assume <wchar.h>.
89185         * m4/mbswidth.m4: Likewise.
89186         * modules/quotearg (Depends-on): Depend on wchar.
89187         * lib/quotearg.c: Assume <wchar.h>.
89188         * m4/quotearg.m4: Likewise.
89189         * modules/regex (Depends-on): Depend on wchar.
89190         * lib/regex_internal.h: Assume <wchar.h>.
89191         * m4/regex.m4: Likewise.
89192         * modules/stdint (Depends-on): Depend on wchar.
89193         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
89194         * m4/stdint.m4: Likewise.
89195         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
89196         * modules/strftime (Depends-on): Depend on wchar.
89197         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
89198         * modules/strtol (Depends-on): Depend on wchar.
89199         * lib/strtol.c: Assume <wchar.h>.
89200         * modules/wcwidth (Depends-on): Depend on wchar.
89201         * lib/wcwidth.h: Assume <wchar.h>.
89202         * m4/wcwidth.m4: Likewise.
89204 2007-01-16  Bruno Haible  <bruno@clisp.org>
89206         * modules/csharpexec-script: New, created from...
89207         * modules/csharpexec: ... this.
89209 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
89211         * modules/javaexec-script: New, created from...
89212         * modules/javaexec: ... this.
89214 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89216         * modules/poll (Dependencies): Add sys_select.
89218 2007-01-15  Jim Meyering  <jim@meyering.net>
89220         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
89221         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
89222         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
89223         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
89225 2007-01-15  Bruno Haible  <bruno@clisp.org>
89227         * modules/striconveh: New file.
89228         * lib/striconveh.h: New file.
89229         * lib/striconveh.c: New file.
89230         * MODULES.html.sh (Internationalization functions): Add striconveh.
89232         * modules/striconveh-tests: New file.
89233         * tests/test-striconveh.c: New file.
89235 2007-01-15  Bruno Haible  <bruno@clisp.org>
89237         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
89238         not from GNU libiconv or GNU libc.
89240 2007-01-15  Bruno Haible  <bruno@clisp.org>
89242         * doc/gnulib-intro.texi (Copyright): Explain the different license
89243         terms for module descriptions, autoconf macros, tests, documentation.
89245 2007-01-14  Bruno Haible  <bruno@clisp.org>
89247         * modules/striconv-tests: New file.
89248         * tests/test-striconv.c: New file.
89250 2007-01-14  Bruno Haible  <bruno@clisp.org>
89252         * modules/iconv-tests: New file.
89253         * tests/test-iconv.c: New file.
89255 2007-01-14  Bruno Haible  <bruno@clisp.org>
89257         * gnulib-tool (func_get_license): For test modules, use the license of
89258         the main module.
89260 2007-01-14  Bruno Haible  <bruno@clisp.org>
89262         * modules/iconv (Include): Clarify that <iconv.h> can only be included
89263         if iconv is found to exist.
89265 2007-01-14  Bruno Haible  <bruno@clisp.org>
89267         * modules/c-ctype-tests: New file.
89268         * tests/test-c-ctype.c: New file.
89270 2007-01-14  Bruno Haible  <bruno@clisp.org>
89272         * modules/binary-io-tests: New file.
89273         * tests/test-binary-io.sh: New file.
89274         * tests/test-binary-io.c: New file.
89276 2007-01-14  Bruno Haible  <bruno@clisp.org>
89278         * modules/array-oset-tests: New file.
89279         * tests/test-array_oset.c: New file.
89281 2007-01-14  Bruno Haible  <bruno@clisp.org>
89283         * modules/array-list-tests: New file.
89284         * tests/test-array_list.c: New file.
89286 2007-01-14  Bruno Haible  <bruno@clisp.org>
89288         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
89289         and make.
89290         Reported by Simon Josefsson in
89291         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
89293 2007-01-14  Bruno Haible  <bruno@clisp.org>
89295         * modules/allocsa-tests: New file.
89296         * tests/test-allocsa.c: New file.
89298 2007-01-14  Bruno Haible  <bruno@clisp.org>
89300         * modules/fchdir (Depends-on): Add absolute-header.
89301         * modules/unistd (Depends-on): Likewise.
89303 2006-12-30  Bruno Haible  <bruno@clisp.org>
89305         * modules/fchdir: New file.
89306         * modules/unistd (Files): Add lib/unistd_.h.
89307         (Makefile.am): Generate unistd.h from unistd_.h.
89308         * lib/fchdir.c: New file.
89309         * lib/dirent_.h: New file.
89310         * lib/unistd_.h: New file.
89311         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
89312         * m4/fchdir.m4: New file.
89313         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
89314         (gl_HEADER_UNISTD): Invoke it.
89315         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
89316         function.
89317         * lib/backupfile.c (opendir, closedir): Undefine.
89318         * lib/chown.c (open, close): Undefine.
89319         * lib/clean-temp.c (open, close): Undefine.
89320         * lib/copy-file.c (open, close): Undefine.
89321         * lib/execute.c (open, close): Undefine.
89322         * lib/fsusage.c (open, close): Undefine.
89323         * lib/gc-gnulib.c (open, close): Undefine.
89324         * lib/getcwd.c (opendir, closedir): Undefine.
89325         * lib/glob.c (opendir, closedir): Undefine.
89326         * lib/javacomp.c (open, close): Undefine.
89327         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
89328         * lib/openat-proc.c (open, close): Undefine.
89329         * lib/pagealign_alloc.c (open, close): Undefine.
89330         * lib/pipe.c (open, close): Undefine.
89331         * lib/progreloc.c (open, close): Undefine.
89332         * lib/savedir.c (opendir, closedir): Undefine.
89333         * lib/utime.c (open, close): Undefine.
89334         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
89336 2007-01-10  Bruno Haible  <bruno@clisp.org>
89338         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
89340 2007-01-12  Eric Blake  <ebb9@byu.net>
89342         Provide a robust <wchar.h>.  Further simplifications are now
89343         possible in other modules, but not included here.
89344         * modules/wchar: New module.
89345         * m4/wchar.m4: New file.
89346         * lib/wchar_.h: Likewise.
89347         * modules/mbchar (Depends-on): Depend on wchar, as the first use
89348         of the new module.
89349         * MODULES.html.sh (Extended multibyte and wide character utilities):
89350         New section.
89352 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
89354         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
89355         to a reasonable default for memory allocation.
89356         (xreadlink): Don't allocate a huge buffer, to work around a buggy
89357         file system that reports garbage st_size values for symlinks.
89358         Problem reported by Liyang Hu.
89360 2007-01-11  Simon Josefsson  <simon@josefsson.org>
89362         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
89363         Emacs .#* auto-save files).
89365 2007-01-11  Bruno Haible  <bruno@clisp.org>
89367         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
89368         directory.
89370 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
89372         Use @...@ consistently in lib/wctype_.h.
89373         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
89374         on it being set to 1 or 0.
89375         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
89376         go back to AC_SUBSTing it.
89377         * modules/wctype (Makefile.am): Undo previous change.
89379 2007-01-10  Eric Blake  <ebb9@byu.net>
89381         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
89382         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
89383         * modules/wctype (Makefile.am): Likewise.
89384         Reported by Chris McGuire.
89386 2007-01-10  Jim Meyering  <jim@meyering.net>
89388         fts.c: a small readability/maintainability improvement
89389         * lib/fts.c (fts_read): Make this code slightly more readable and
89390         maintainable by hoisting the "sp->fts_cur = p" assignments to
89391         immediately follow the statements that set P.  Derived from
89392         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
89394 2007-01-10  Eric Blake  <ebb9@byu.net>
89396         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
89397         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
89398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
89399         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
89400         Reported by Chris McGuire.
89402 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89404         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
89405         in sed script.
89407 2007-01-09  Bruno Haible  <bruno@clisp.org>
89409         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
89410         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
89411         variables.
89412         (func_module): Use them.
89414 2007-01-09  Bruno Haible  <bruno@clisp.org>
89416         * modules/unistr/base: New file.
89417         * lib/unistr.h: New file.
89419         * modules/unistr/u8-to-u16: New file.
89420         * lib/unistr/u8-to-u16.c: New file.
89422         * modules/unistr/u8-to-u32: New file.
89423         * lib/unistr/u8-to-u32.c: New file.
89425         * modules/unistr/u16-to-u8: New file.
89426         * lib/unistr/u16-to-u8.c: New file.
89428         * modules/unistr/u16-to-u32: New file.
89429         * lib/unistr/u16-to-u32.c: New file.
89431         * modules/unistr/u32-to-u8: New file.
89432         * lib/unistr/u32-to-u8.c: New file.
89434         * modules/unistr/u32-to-u16: New file.
89435         * lib/unistr/u32-to-u16.c: New file.
89437         * modules/unistr/u8-check: New file.
89438         * modules/unistr/u16-check: New file.
89439         * modules/unistr/u32-check: New file.
89440         * lib/unistr/u8-check.c: New file.
89441         * lib/unistr/u16-check.c: New file.
89442         * lib/unistr/u32-check.c: New file.
89444         * modules/unistr/u8-chr: New file.
89445         * modules/unistr/u16-chr: New file.
89446         * modules/unistr/u32-chr: New file.
89447         * lib/unistr/u8-chr.c: New file.
89448         * lib/unistr/u16-chr.c: New file.
89449         * lib/unistr/u32-chr.c: New file.
89451         * modules/unistr/u8-cmp: New file.
89452         * modules/unistr/u16-cmp: New file.
89453         * modules/unistr/u32-cmp: New file.
89454         * lib/unistr/u8-cmp.c: New file.
89455         * lib/unistr/u16-cmp.c: New file.
89456         * lib/unistr/u32-cmp.c: New file.
89458         * modules/unistr/u8-cpy: New file.
89459         * modules/unistr/u16-cpy: New file.
89460         * modules/unistr/u32-cpy: New file.
89461         * lib/unistr/u8-cpy.c: New file.
89462         * lib/unistr/u16-cpy.c: New file.
89463         * lib/unistr/u32-cpy.c: New file.
89464         * lib/unistr/u-cpy.h: New file.
89466         * modules/unistr/u8-cpy-alloc: New file.
89467         * modules/unistr/u16-cpy-alloc: New file.
89468         * modules/unistr/u32-cpy-alloc: New file.
89469         * lib/unistr/u8-cpy-alloc.c: New file.
89470         * lib/unistr/u16-cpy-alloc.c: New file.
89471         * lib/unistr/u32-cpy-alloc.c: New file.
89472         * lib/unistr/u-cpy-alloc.h: New file.
89474         * modules/unistr/u8-endswith: New file.
89475         * modules/unistr/u16-endswith: New file.
89476         * modules/unistr/u32-endswith: New file.
89477         * lib/unistr/u8-endswith.c: New file.
89478         * lib/unistr/u16-endswith.c: New file.
89479         * lib/unistr/u32-endswith.c: New file.
89480         * lib/unistr/u-endswith.h: New file.
89482         * modules/unistr/u8-mblen: New file.
89483         * modules/unistr/u16-mblen: New file.
89484         * modules/unistr/u32-mblen: New file.
89485         * lib/unistr/u8-mblen.c: New file.
89486         * lib/unistr/u16-mblen.c: New file.
89487         * lib/unistr/u32-mblen.c: New file.
89489         * modules/unistr/u8-mbtouc: New file.
89490         * modules/unistr/u16-mbtouc: New file.
89491         * modules/unistr/u32-mbtouc: New file.
89492         * lib/unistr/u8-mbtouc.c: New file.
89493         * lib/unistr/u16-mbtouc.c: New file.
89494         * lib/unistr/u32-mbtouc.c: New file.
89496         * modules/unistr/u8-mbtouc-safe: New file.
89497         * modules/unistr/u16-mbtouc-safe: New file.
89498         * modules/unistr/u32-mbtouc-safe: New file.
89499         * lib/unistr/u8-mbtouc-safe.c: New file.
89500         * lib/unistr/u16-mbtouc-safe.c: New file.
89501         * lib/unistr/u32-mbtouc-safe.c: New file.
89503         * modules/unistr/u8-move: New file.
89504         * modules/unistr/u16-move: New file.
89505         * modules/unistr/u32-move: New file.
89506         * lib/unistr/u8-move.c: New file.
89507         * lib/unistr/u16-move.c: New file.
89508         * lib/unistr/u32-move.c: New file.
89509         * lib/unistr/u-move.h: New file.
89511         * modules/unistr/u8-next: New file.
89512         * modules/unistr/u16-next: New file.
89513         * modules/unistr/u32-next: New file.
89514         * lib/unistr/u8-next.c: New file.
89515         * lib/unistr/u16-next.c: New file.
89516         * lib/unistr/u32-next.c: New file.
89518         * modules/unistr/u8-prev: New file.
89519         * modules/unistr/u16-prev: New file.
89520         * modules/unistr/u32-prev: New file.
89521         * lib/unistr/u8-prev.c: New file.
89522         * lib/unistr/u16-prev.c: New file.
89523         * lib/unistr/u32-prev.c: New file.
89525         * modules/unistr/u8-set: New file.
89526         * modules/unistr/u16-set: New file.
89527         * modules/unistr/u32-set: New file.
89528         * lib/unistr/u8-set.c: New file.
89529         * lib/unistr/u16-set.c: New file.
89530         * lib/unistr/u32-set.c: New file.
89531         * lib/unistr/u-set.h: New file.
89533         * modules/unistr/u8-startswith: New file.
89534         * modules/unistr/u16-startswith: New file.
89535         * modules/unistr/u32-startswith: New file.
89536         * lib/unistr/u8-startswith.c: New file.
89537         * lib/unistr/u16-startswith.c: New file.
89538         * lib/unistr/u32-startswith.c: New file.
89539         * lib/unistr/u-startswith.h: New file.
89541         * modules/unistr/u8-stpcpy: New file.
89542         * modules/unistr/u16-stpcpy: New file.
89543         * modules/unistr/u32-stpcpy: New file.
89544         * lib/unistr/u8-stpcpy.c: New file.
89545         * lib/unistr/u16-stpcpy.c: New file.
89546         * lib/unistr/u32-stpcpy.c: New file.
89547         * lib/unistr/u-stpcpy.h: New file.
89549         * modules/unistr/u8-stpncpy: New file.
89550         * modules/unistr/u16-stpncpy: New file.
89551         * modules/unistr/u32-stpncpy: New file.
89552         * lib/unistr/u8-stpncpy.c: New file.
89553         * lib/unistr/u16-stpncpy.c: New file.
89554         * lib/unistr/u32-stpncpy.c: New file.
89555         * lib/unistr/u-stpncpy.h: New file.
89557         * modules/unistr/u8-strcat: New file.
89558         * modules/unistr/u16-strcat: New file.
89559         * modules/unistr/u32-strcat: New file.
89560         * lib/unistr/u8-strcat.c: New file.
89561         * lib/unistr/u16-strcat.c: New file.
89562         * lib/unistr/u32-strcat.c: New file.
89563         * lib/unistr/u-strcat.h: New file.
89565         * modules/unistr/u8-strchr: New file.
89566         * modules/unistr/u16-strchr: New file.
89567         * modules/unistr/u32-strchr: New file.
89568         * lib/unistr/u8-strchr.c: New file.
89569         * lib/unistr/u16-strchr.c: New file.
89570         * lib/unistr/u32-strchr.c: New file.
89572         * modules/unistr/u8-strcmp: New file.
89573         * modules/unistr/u16-strcmp: New file.
89574         * modules/unistr/u32-strcmp: New file.
89575         * lib/unistr/u8-strcmp.c: New file.
89576         * lib/unistr/u16-strcmp.c: New file.
89577         * lib/unistr/u32-strcmp.c: New file.
89579         * modules/unistr/u8-strcpy: New file.
89580         * modules/unistr/u16-strcpy: New file.
89581         * modules/unistr/u32-strcpy: New file.
89582         * lib/unistr/u8-strcpy.c: New file.
89583         * lib/unistr/u16-strcpy.c: New file.
89584         * lib/unistr/u32-strcpy.c: New file.
89585         * lib/unistr/u-strcpy.h: New file.
89587         * modules/unistr/u8-strcspn: New file.
89588         * modules/unistr/u16-strcspn: New file.
89589         * modules/unistr/u32-strcspn: New file.
89590         * lib/unistr/u8-strcspn.c: New file.
89591         * lib/unistr/u16-strcspn.c: New file.
89592         * lib/unistr/u32-strcspn.c: New file.
89593         * lib/unistr/u-strcspn.h: New file.
89595         * modules/unistr/u8-strdup: New file.
89596         * modules/unistr/u16-strdup: New file.
89597         * modules/unistr/u32-strdup: New file.
89598         * lib/unistr/u8-strdup.c: New file.
89599         * lib/unistr/u16-strdup.c: New file.
89600         * lib/unistr/u32-strdup.c: New file.
89601         * lib/unistr/u-strdup.h: New file.
89603         * modules/unistr/u8-strlen: New file.
89604         * modules/unistr/u16-strlen: New file.
89605         * modules/unistr/u32-strlen: New file.
89606         * lib/unistr/u8-strlen.c: New file.
89607         * lib/unistr/u16-strlen.c: New file.
89608         * lib/unistr/u32-strlen.c: New file.
89609         * lib/unistr/u-strlen.h: New file.
89611         * modules/unistr/u8-strmblen: New file.
89612         * modules/unistr/u16-strmblen: New file.
89613         * modules/unistr/u32-strmblen: New file.
89614         * lib/unistr/u8-strmblen.c: New file.
89615         * lib/unistr/u16-strmblen.c: New file.
89616         * lib/unistr/u32-strmblen.c: New file.
89618         * modules/unistr/u8-strmbtouc: New file.
89619         * modules/unistr/u16-strmbtouc: New file.
89620         * modules/unistr/u32-strmbtouc: New file.
89621         * lib/unistr/u8-strmbtouc.c: New file.
89622         * lib/unistr/u16-strmbtouc.c: New file.
89623         * lib/unistr/u32-strmbtouc.c: New file.
89625         * modules/unistr/u8-strncat: New file.
89626         * modules/unistr/u16-strncat: New file.
89627         * modules/unistr/u32-strncat: New file.
89628         * lib/unistr/u8-strncat.c: New file.
89629         * lib/unistr/u16-strncat.c: New file.
89630         * lib/unistr/u32-strncat.c: New file.
89631         * lib/unistr/u-strncat.h: New file.
89633         * modules/unistr/u8-strncmp: New file.
89634         * modules/unistr/u16-strncmp: New file.
89635         * modules/unistr/u32-strncmp: New file.
89636         * lib/unistr/u8-strncmp.c: New file.
89637         * lib/unistr/u16-strncmp.c: New file.
89638         * lib/unistr/u32-strncmp.c: New file.
89640         * modules/unistr/u8-strncpy: New file.
89641         * modules/unistr/u16-strncpy: New file.
89642         * modules/unistr/u32-strncpy: New file.
89643         * lib/unistr/u8-strncpy.c: New file.
89644         * lib/unistr/u16-strncpy.c: New file.
89645         * lib/unistr/u32-strncpy.c: New file.
89646         * lib/unistr/u-strncpy.h: New file.
89648         * modules/unistr/u8-strnlen: New file.
89649         * modules/unistr/u16-strnlen: New file.
89650         * modules/unistr/u32-strnlen: New file.
89651         * lib/unistr/u8-strnlen.c: New file.
89652         * lib/unistr/u16-strnlen.c: New file.
89653         * lib/unistr/u32-strnlen.c: New file.
89654         * lib/unistr/u-strnlen.h: New file.
89656         * modules/unistr/u8-strpbrk: New file.
89657         * modules/unistr/u16-strpbrk: New file.
89658         * modules/unistr/u32-strpbrk: New file.
89659         * lib/unistr/u8-strpbrk.c: New file.
89660         * lib/unistr/u16-strpbrk.c: New file.
89661         * lib/unistr/u32-strpbrk.c: New file.
89662         * lib/unistr/u-strpbrk.h: New file.
89664         * modules/unistr/u8-strrchr: New file.
89665         * modules/unistr/u16-strrchr: New file.
89666         * modules/unistr/u32-strrchr: New file.
89667         * lib/unistr/u8-strrchr.c: New file.
89668         * lib/unistr/u16-strrchr.c: New file.
89669         * lib/unistr/u32-strrchr.c: New file.
89671         * modules/unistr/u8-strspn: New file.
89672         * modules/unistr/u16-strspn: New file.
89673         * modules/unistr/u32-strspn: New file.
89674         * lib/unistr/u8-strspn.c: New file.
89675         * lib/unistr/u16-strspn.c: New file.
89676         * lib/unistr/u32-strspn.c: New file.
89677         * lib/unistr/u-strspn.h: New file.
89679         * modules/unistr/u8-strstr: New file.
89680         * modules/unistr/u16-strstr: New file.
89681         * modules/unistr/u32-strstr: New file.
89682         * lib/unistr/u8-strstr.c: New file.
89683         * lib/unistr/u16-strstr.c: New file.
89684         * lib/unistr/u32-strstr.c: New file.
89685         * lib/unistr/u-strstr.h: New file.
89687         * modules/unistr/u8-strtok: New file.
89688         * modules/unistr/u16-strtok: New file.
89689         * modules/unistr/u32-strtok: New file.
89690         * lib/unistr/u8-strtok.c: New file.
89691         * lib/unistr/u16-strtok.c: New file.
89692         * lib/unistr/u32-strtok.c: New file.
89693         * lib/unistr/u-strtok.h: New file.
89695         * modules/unistr/u8-uctomb: New file.
89696         * modules/unistr/u16-uctomb: New file.
89697         * modules/unistr/u32-uctomb: New file.
89698         * lib/unistr/u8-uctomb.c: New file.
89699         * lib/unistr/u16-uctomb.c: New file.
89700         * lib/unistr/u32-uctomb.c: New file.
89702         * MODULES.html.sh (Unicode string functions): Add the new modules.
89704 2007-01-08  Bruno Haible  <bruno@clisp.org>
89706         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
89707         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
89708         subdirectories.
89710 2007-01-08  Karl Berry  <karl@gnu.org>
89712         * doc/error.texi: mention that main() fns must set program_name
89713         when progname is used.
89715 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
89717         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
89718         WCTYPE_H is empty, for the benefit of builds from non-distclean
89719         directories.  Problem reported by Eric Blake in
89720         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
89722 2007-01-08  Bruno Haible  <bruno@clisp.org>
89724         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
89725         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
89726         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
89727         PROVIDE_CANONICALIZE_FILENAME_MODE.
89728         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
89730 2007-01-08  Bruno Haible  <bruno@clisp.org>
89732         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
89733         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
89734         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
89735         * lib/fts.c: Likewise.
89736         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
89738 2006-12-25  Bruno Haible  <bruno@clisp.org>
89740         * modules/utf8-ucs4-safe: New file.
89741         * lib/utf8-ucs4-safe.h: New file.
89742         * lib/unistr/utf8-ucs4-safe.c: New file.
89744         * modules/utf16-ucs4-safe: New file.
89745         * lib/utf16-ucs4-safe.h: New file.
89746         * lib/unistr/utf16-ucs4-safe.c: New file.
89748         * MODULES.html.sh (Unicode string functions): Add the new modules.
89750 2007-01-08  Bruno Haible  <bruno@clisp.org>
89752         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
89753         (Depends-on): Add unitypes.
89754         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
89755         (u8_mbtouc_aux): Move out to separate file.
89756         (u8_mbtouc): Use ucs4_t, uint8_t types.
89757         * lib/unistr/utf8-ucs4.c: New file.
89759         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
89760         (Depends-on): Add unitypes.
89761         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
89762         (u16_mbtouc_aux): Move out to separate file.
89763         (u16_mbtouc): Use ucs4_t, uint16_t types.
89764         * lib/unistr/utf16-ucs4.c: New file.
89766         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
89767         (Depends-on): Add unitypes.
89768         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
89769         (u8_uctomb_aux): Move out to separate file.
89770         (u8_uctomb): Use ucs4_t, uint8_t types.
89771         * lib/unistr/ucs4-utf8.c: New file.
89773         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
89774         (Depends-on): Add unitypes.
89775         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
89776         (u16_uctomb_aux): Move out to separate file.
89777         (u16_uctomb): Use ucs4_t, uint16_t types.
89778         * lib/unistr/ucs4-utf16.c: New file.
89780 2006-12-25  Bruno Haible  <bruno@clisp.org>
89782         * modules/unitypes: New file.
89783         * lib/unitypes.h: New file.
89784         * MODULES.html.sh (func_all_modules): New section "Unicode string
89785         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
89786         this section. Add unitypes.
89788 2007-01-08  Bruno Haible  <bruno@clisp.org>
89790         Avoid variable names that conflict with those from libtool.
89791         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
89792         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
89793         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
89794         library_names_spec to acl_library_names_spec, hardcode_* to
89795         acl_hardcode_*.
89796         Reported by Ralf Wildenhues.
89798 2007-01-08  Bruno Haible  <bruno@clisp.org>
89800         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
89801         definition.
89802         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
89803         definition.
89804         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
89805         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
89806         definition.
89807         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
89808         definition.
89809         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
89810         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
89811         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
89812         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
89813         definition.
89814         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
89815         definition.
89816         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
89817         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
89818         GC_USE_<algorithm>.
89819         * lib/gc-libgcrypt.c: Likewise.
89820         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
89821         * modules/gc-arctwo (configure.ac): Likewise.
89822         * modules/gc-des (configure.ac): Likewise.
89823         * modules/gc-hmac-md5 (configure.ac): Likewise.
89824         * modules/gc-hmac-sha1 (configure.ac): Likewise.
89825         * modules/gc-md2 (configure.ac): Likewise.
89826         * modules/gc-md4 (configure.ac): Likewise.
89827         * modules/gc-md5 (configure.ac): Likewise.
89828         * modules/gc-random (configure.ac): Likewise.
89829         * modules/gc-rijndael (configure.ac): Likewise.
89830         * modules/gc-sha1 (configure.ac): Likewise.
89832 2007-01-08  Bruno Haible  <bruno@clisp.org>
89834         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
89835         macro definition.
89836         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
89837         definition.
89838         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
89839         definition.
89840         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
89841         * modules/fcntl-safer (configure.ac): Likewise.
89842         * modules/fopen-safer (configure.ac): Likewise.
89843         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
89844         GNULIB_FWRITEERROR macro definition.
89846 2007-01-08  Bruno Haible  <bruno@clisp.org>
89848         * m4/gnulib-common.m4: New file.
89849         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
89850         (func_get_filelist): Add m4/gnulib-common.m4.
89852 2007-01-08  Bruno Haible  <bruno@clisp.org>
89854         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
89855         command.
89857 2007-01-08  Jim Meyering  <jim@meyering.net>
89859         Use a more robust test for a "can't happen" condition.
89860         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
89861         narrowed the st_size value.  Presuming the "can't happen" condition
89862         is true, that narrowing could conceivably convert an invalid st_size
89863         value into a valid one.  Instead, use a change based on Matthew
89864         Woehlke's original patch.
89866         Slight readability improvement: use an assert-like macro
89867         in place of literal "abort ()" uses.
89868         * lib/fts.c (fts_assert): Define.
89869         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
89870         Use this macro instead of a bare 'abort'.
89872 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
89874         Don't worry about using IRIX 5.3's wctype.h broken definitions;
89875         simply work around them.
89876         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
89877         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
89878         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
89879         declaring.
89880         Don't bother to define as macros, since the standard doesn't require it.
89881         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
89882         longer worry about IRIX 5.3.
89883         (HAVE_WCTYPE_CTMP_BUG): Remove.
89885 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89887         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
89888         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
89889         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
89890         Problems reported by Georg Schwarz for IRIX 5.3.
89892         * gnulib-tool (autoconf_minversion): Take the maximum version number
89893         found, not the minimum.  Problem reported by James Youngman.
89895 2007-01-03  Karl Berry  <karl@gnu.org>
89897         * doc/error.texi: new file, explaining interaction with progname.
89898         * doc/gnulib.texi: include it.  Update copyright.
89900 2007-01-03  Simon Josefsson  <simon@josefsson.org>
89902         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
89903         AC_CANONICAL_HOST, to improve autobuild outputs.
89905 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
89906             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
89908         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
89909         sockets, server sockets, and other file descriptors.  Count errors
89910         to compute the return value.  Reorder the code a bit to be easier
89911         to follow.  Don't set event bits that were not requested (except
89912         POLLERR and POLLHUP).
89914 2007-01-01  Bruno Haible  <bruno@clisp.org>
89916         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
89918 2007-01-03  Jim Meyering  <jim@meyering.net>
89920         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
89922 2007-01-02  Bruno Haible  <bruno@clisp.org>
89924         * modules/settime (Include): Require timespec.h.
89925         * modules/nanosleep (Include): Likewise.
89927 2007-01-01  Bruno Haible  <bruno@clisp.org>
89929         * gnulib-tool (func_emit_copyright_notice): Bump year.
89930         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
89932 2007-01-01  Bruno Haible  <bruno@clisp.org>
89934         Improve support for OpenBSD.
89935         * build-aux/config.rpath (libname_spec): Export.
89936         (library_names_spec): New variable. Export.
89937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
89938         library_names_spec from the config.rpath output. Locate shared library
89939         through the name pattern in library_names_spec.
89941 2007-01-01  Eric Blake  <ebb9@byu.net>
89943         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
89945 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
89947         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
89948         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
89949         assume the C locale, and avoid an "eval" that could cause trouble.
89950         Problem with SORT reported by Bob Proulx.
89952         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
89953         Define.  Trivial patch from Henning Nielsen Lund, originally
89954         sent to bug-grep@gnu.org today.
89956 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
89958         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
89959         struct stat.  Problem reported by Henning Nielsen Lund.
89960         * lib/acl.c: Include acl.h first, to check interface.  Don't
89961         bother to include sys/types.h and sys/stat.h again.
89963 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89965         Import the following change from libc; problem reported by
89966         Sven Verdoolaege.
89968         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
89970         [BZ #1373]
89971         * lib/argp.h: Remove __NTH for __argp_usage inline function.
89973 2006-12-28  Jim Meyering  <jim@meyering.net>
89975         * build-aux/announce-gen: Do not assume that the package
89976         builds any of tar.gz, tar.bz2, and .xdelta files.
89977         Suggestion from Simon Josefsson.
89979 2006-12-28  Simon Josefsson  <simon@josefsson.org>
89981         * modules/announce-gen: New file.
89983 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
89985         * lib/mbchar.h: Just include <wctype.h>; the wctype module
89986         handles its gotchas now.
89987         * lib/mbswidth.c: Likewise.
89988         * lib/wcwidth.h: Likewise.
89989         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
89990         and iswcntrl; the wctype module does this stuff now.
89991         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
89993         * modules/mbchar (Depends-on): Add wctype.
89994         * modules/mbswidth (Depends-on): Likewise.
89995         * modules/wcwidth (Depends-on): Likewise.
89997 2006-12-27  Eric Blake  <ebb9@byu.net>
89999         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
90000         module uses more than what <wctype.h> is required to provide.
90002 2006-12-26  Eric Blake  <ebb9@byu.net>
90004         * gnulib-tool (sed_extract_prog): Avoid space-tab.
90006 2006-12-26  Eric Blake  <ebb9@byu.net>
90008         * modules/absolute-header: New module.
90009         * modules/fcntl (Depends-on): Depend on it.
90010         * modules/inttypes (Depends-on): Likewise.
90011         * modules/stdint (Depends-on): Likewise.
90012         * modules/sys_stat (Depends-on): Likewise.
90013         * modules/wctype (Depends-on): Likewise.
90014         * MODULES.html.sh (Support for building libraries and
90015         executables): Document it.
90017 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
90019         * gnulib-tool (SED): Remove, undoing previous change.
90020         The problem was that it broke coreutils on Solaris, because
90021         "sed --posix" leaked into a makefile.
90022         (sed): New alias, if 'alias' and GNU sed.
90024 2006-12-24  Jim Meyering  <jim@meyering.net>
90026         Work around an fchownat bug in glibc-2.4:
90027         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
90028         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
90029         in spite of the -P option.
90030         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
90031         New macros.
90032         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
90033         * modules/openat (Files): Add lib/fchownat.c.
90034         * lib/openat.c (fchownat): Don't define here.  Move to...
90035         * lib/fchownat.c: ...this new file.
90037 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
90039         Fix bug reported by Bruno Haible in
90040         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
90041         where quotearg.c didn't compile on Mac OS X 10.2 because it
90042         lacks <wchar.h> and wint_t.
90043         * lib/wctype_.h (__wctype_wint_t): New type.
90044         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
90045         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
90046         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
90047         Arg is now of type __wctype_wint_t, not wint_t.
90048         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
90049         substitute HAVE_WINT_T.
90050         * modules/wctype (Files): Add m4/wint_t.m4.
90051         (wctype.h): Substitute HAVE_WINT_T.
90053 2006-12-23  Bruno Haible  <bruno@clisp.org>
90055         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
90057 2006-12-23  Bruno Haible  <bruno@clisp.org>
90059         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
90060         S_ISLNK.
90061         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
90062         mingw.
90064 2006-12-22  Bruno Haible  <bruno@clisp.org>
90066         * lib/copy-file.c: Include acl.h.
90067         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
90068         Close the file descriptors only after being done with copy_acl.
90069         * modules/copy-file (Depends-on): Add acl.
90071 2006-12-22  Bruno Haible  <bruno@clisp.org>
90073         * gnulib-tool (SED): New variable.
90074         Use $SED instead of sed everywhere.
90076 2006-12-22  Bruno Haible  <bruno@clisp.org>
90078         * modules/no-c++: New file.
90079         * m4/no-c++.m4: New file.
90080         * MODULES.html.sh (Support for building libraries and executables):
90081         Add no-c++.
90083 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
90085         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
90086         Include <limits.h>, and use its INT_MAX to rewrite the
90087         j loop so that it does not overflow 'int'.  Problem reported by
90088         Ralf Wildenhues in
90089         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
90090         Play it safe by shifting left by 1 rather than multiplying by 2,
90091         as GCC is less likely to optimize this away when the value
90092         is signed (when it assumes overflow leads to undefined behavior).
90093         Also, don't assume time_t uses two's complement.
90095 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
90097         * MODULES.html.sh: New module wctype.
90098         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
90099         * lib/fnmatch.c: Don't bother to include <wchar.h> before
90100         <wctype.h>, since the new wctype module should fix this.
90101         * lib/quotearg.c: Include <wctype.h> unconditionally, since
90102         the wctype module should arrange for it.
90103         * lib/regex_internal.h: Likewise.
90104         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
90105         since the wctype module should handle this now.
90106         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
90107         * modules/fnmatch (Depends-on): Add wctype.
90108         * modules/quotearg (Depends-on): Likewise.
90109         * modules/regex (Depends-on): Likewise.
90111 2006-12-19  Bruno Haible  <bruno@clisp.org>
90113         * lib/strdup.h [C++]: Wrap definitions in extern "C".
90114         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
90116 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90118         * modules/savewd (Depends-on): Fix dependency on fcntl.
90120 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
90122         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
90123         conforms to C99, rather than relying on the user's environment
90124         setting of STDINT_H.
90126 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
90127         and Eric Blake  <ebb9@byu.net>
90129         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
90130         This is more consistent with the other defines here.
90131         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
90132         Port to z/OS.  Problem reported by Paul Gilmartin.
90133         Change local vars to use gl_ prefix rather than ac_.
90134         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
90135         with other defines.
90136         * modules/double-slash-root: New module.
90137         * modules/dirname (Files): Remove m4/double-slash-root.m4.
90138         (Depends-on): Add double-slash-root.
90139         * MODULES.html.sh (File system functions): Mention new module.
90141 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
90143         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
90144         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
90145         This is for the benefit of gzip, which doesn't do i18n.
90147 2006-12-12  Jim Meyering  <jim@meyering.net>
90149         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
90150         Reported by Andreas Schwab <schwab@suse.de>.
90152 2006-12-12  Bruno Haible  <bruno@clisp.org>
90154         Merge these changes.
90155         2006-09-05  Bruno Haible  <bruno@clisp.org>
90156         * lib/iconvme.c (iconv_string): No need to save and restore errno when
90157         iconv_alloc succeeded.
90158         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
90159         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
90160         test for " && dest " at the end - dest is always != NULL there. Call
90161         iconv with 4xNULL arguments initially, to reset the state. Call iconv
90162         with 2xNULL arguments, also to flush the state storage. Handle the
90163         IRIX iconv behaviour. Realloc the final result, to throw away unused
90164         memory.
90166 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
90168         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
90169         and fchmodat unconditionally, since glibc 2.4 has them.
90170         Problem reported by Arkadiusz Miskiewicz.
90172 2006-12-10  Bruno Haible  <bruno@clisp.org>
90174         * gnulib-tool (func_import): Show the include files only for those
90175         modules that are copied and specified.
90176         Reported by Karl Berry.
90178 2006-12-08  Jim Meyering  <jim@meyering.net>
90180         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
90181         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
90183         * build-aux/announce-gen: Add two new options, both optional:
90184         --bootstrap-tools=TOOL_LIST
90185               a comma-separated list of tools, e.g.,
90186               autoconf,automake,bison,gnulib
90187         --gnulib-snapshot-date=DATE
90188               if gnulib is in the bootstrap tool list,
90189               then report this as the snapshot date.
90190               If not specified, use the current date/time.
90191               If you specify a date here, be sure it's UTC.
90193 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90195         * tests/test-argp-2.sh: Fix test to match actual output.
90196         (func_compare): Fix sed script to be portable.
90198 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
90200         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
90201         workaround for this case.  It is not autoconfigured now; offhand
90202         it's hard to see how to autoconfigure it.
90204 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
90206         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
90207         a directory that is about to be chowned.  Such a directory's
90208         initial file permissions should permit the owner only and this
90209         should not be changed until after the chown, since the group and
90210         other bits would be incorrect if they granted permission before
90211         the chown.
90213         Fix porting problem for iswctype reported by Georg Schwarz in:
90214         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
90215         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
90216         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
90217         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
90218         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
90220 2006-12-03  Jim Meyering  <jim@meyering.net>
90222         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
90223         p->fts_statp may not yet be defined.
90224         (fts_read): Instead, set it in the caller, once p->fts_statp is
90225         sure to be defined, and corresponds to a top-level directory.
90226         This bug made du -x fail.  Here's the coreutils test case:
90227         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
90228         Reported by Mike Frysinger.
90230 2006-12-01  Jim Meyering  <jim@meyering.net>
90232         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
90233         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
90234         Reported by Simon Josefsson.
90236 2006-11-30  Jim Meyering  <jim@meyering.net>
90238         * m4/warning.m4: Use the all-permissive copyright notice
90239         recommended by RMS (rather than LGPL).
90240         * m4/vararrays.m4: Likewise.
90241         * m4/flexmember.m4: Likewise.
90243 2006-11-29  Bruno Haible  <bruno@clisp.org>
90245         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90246         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
90247         using +=.
90248         Reported by Simon Josefsson <simon@josefsson.org>.
90250 2006-11-28  James Youngman  <jay@gnu.org>
90252         * README: Advise users that they might find the bug-gnulib@gnu.org
90253         and autotools-announce@gnu.org mailing lists useful.
90255 2006-11-28  Bruno Haible  <bruno@clisp.org>
90257         * m4/ptrdiff_max.m4: Remove file.
90259 2006-11-21  Bruno Haible  <bruno@clisp.org>
90261         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
90262         _AC_COMPUTE_INT.
90263         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90264         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
90265         _AC_COMPUTE_INT.
90266         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90267         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
90268         _AC_COMPUTE_INT.
90269         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90271 2006-11-28  Jim Meyering  <jim@meyering.net>
90273         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
90274         warning from "gcc -Wshadow" about shadowing the builtin.
90276 2006-11-27  Bruno Haible  <bruno@clisp.org>
90278         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
90279         _AC_COMPUTE_INT.
90280         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90282 2006-11-27  Bruno Haible  <bruno@clisp.org>
90283             Paul Eggert  <eggert@cs.ucla.edu>
90285         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
90287 2006-11-26  Bruno Haible  <bruno@clisp.org>
90289         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90290         noinst_LTLIBRARIES.
90292 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
90293             Bruno Haible  <bruno@clisp.org>
90295         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
90296         if compiling with "gcc -ansi".
90298 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
90300         Fix some incompatibilities with gcc -ansi -pedantic.
90301         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
90302         if compiling pedantically with GCC, unless it's C99 or later.
90303         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
90304         it mishandles gcc -ansi -pedantic as well.
90305         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
90306         if gcc -pedantic.
90307         * lib/regexec.c (check_node_accept_bytes): Don't use auto
90308         initializers for struct if -pedantic, unless it's C99 or later.
90310 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
90312         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
90313         Don't close an fd more than once. Identical atimes indicate
90314         success, not failure.
90316 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
90318         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
90320 2006-11-23  Jim Meyering  <jim@meyering.net>
90322         * build-aux/announce-gen: New file.  From coreutils.
90324 2006-11-22  Jim Meyering  <jim@meyering.net>
90326         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
90327         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
90328         (fts_read): Use a temporary to narrow the overused st_size member
90329         before using it in a switch statement.  Reported by Matthew Woehlke.
90331         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
90332         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
90334 2006-11-20  Bruno Haible  <bruno@clisp.org>
90336         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
90337         changequote instead of pairs of brackets.
90338         Reported by Andreas Schwab <schwab@suse.de>.
90340 2006-11-21  Jim Meyering  <jim@meyering.net>
90342         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
90343         so as to remain compatible with older compilers.
90344         Patch from Michael Deutschmann.
90346 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90348         * MODULES.html.sh (File system functions): Add openat.
90350         * lib/openat.h (rpl_fstatat): New macro, if
90351         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
90352         (fstatat): Define to rpl_fstatat under the same conditions,
90353         unless COMPILING_FSTATAT.
90354         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
90355         seems to have the bug.
90356         * lib/fstatat.c: New file.
90357         * modules/openat (Files): Add it.
90359 2006-11-20  Bruno Haible  <bruno@clisp.org>
90361         * Makefile: New file.
90363 2006-11-20  Jim Meyering  <jim@meyering.net>
90365         The beginnings of syntax-related checks for gnulib.
90366         * lib/Makefile: New file.
90367         * lib/t-idcache: New script.  Ensure that the two halves of
90368         idcache.c stay in sync.
90370         * lib/idcache.c: Adjust comments in user- and group- portions to
90371         be more accurate, and to be consistent with one another.
90373 2006-11-20  Jim Meyering  <jim@meyering.net>
90375         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
90376         continue using the flexible array member (thus, this module performs
90377         half as many malloc calls), with the addition that...
90378         (getgroup, getuser): Consistently record a non-match via an empty
90379         "name" string, and map an empty string match to a NULL return value.
90380         * modules/idcache (Depends-on): Re-add flexmember.
90382         * lib/idcache.c (getuser): Remove all uses of the register keyword.
90383         (getuidbyname, getgroup, getgidbyname): Likewise.
90385         Use cleaner syntax: NULL rather than 0.
90386         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
90388 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90390         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
90391         It mishandled the case where the group was missing.
90392         Problem reported by Greg Schafer.
90393         * modules/idcache: Likewise.
90395 2006-11-18  Jim Meyering  <jim@meyering.net>
90397         * check-module (%exempt_header): Add exception for some
90398         conditionally-included headers.
90400         * modules/i-ring (Depends-on): Add verify.
90401         (License): Change to LGPL.
90403 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90405         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
90406         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
90407         and inttostr.h.  Use snprintf rather than uinttostr, so that
90408         LGPLed code doesn't depend on GPLed.
90410 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90412         * modules/inline (License): Change from GPL to LGPL.
90414 2006-11-17  Jim Meyering  <jim@meyering.net>
90416         * modules/d-type (License): Switch to LGPL.
90418 2006-11-15  Bruno Haible  <bruno@clisp.org>
90420         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
90422 2006-11-15  Eric Blake  <ebb9@byu.net>
90424         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
90425         the module dependency.
90427 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90428             Bruno Haible  <bruno@clisp.org>
90430         * gnulib-tool (func_create_testdir): Add license consistency check.
90432 2006-11-15  Eric Blake  <ebb9@byu.net>
90434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
90435         random "(cached)" in configure output.
90437 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90439         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
90440         test for conforming inttypes.h is both announced and cached.
90442         * MODULES.html.sh (seen_modules, seen_files): New variables.
90443         (func_module): Rewrite to use a few less gnulib-tool and sed
90444         invocations.  Avoid a couple of quadratic algorithms for ...
90445         (missed_modules, missed_files): ... these, with ...
90446         (func_append, func_tmpdir): ... these new functions, from
90447         gnulib-tool.  Analogously, install traps for cleanup.
90449         * tests/test-gc.c (main): Remove unused variables.
90450         * tests/test-read-file.c: Include stdlib.h, for 'free'.
90452 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
90454         * modules/inttostr (License): Change to LGPL.
90456 2006-11-14  Eric Blake  <ebb9@byu.net>
90458         * modules/tempname (License): Change to LGPL.
90460 2006-11-14  Eric Blake  <ebb9@byu.net>
90462         * doc/functions.texi (Function Portability): *printf functions on
90463         Cygwin now understand all POSIX size specifiers.
90465 2006-11-14  Bruno Haible  <bruno@clisp.org>
90467         * modules/c-ctype (License): Change to LGPL.
90469 2006-11-12  Bruno Haible  <bruno@clisp.org>
90471         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
90472         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
90473         for GNOME libraries, for which the include files are installed in
90474         subdirectories of $prefix/include.
90476 2006-11-12  Bruno Haible  <bruno@clisp.org>
90478         * m4/lib-link.m4: Require at least autoconf-2.54.
90479         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
90480         name to underscores for the --with option.
90482 2006-11-13  Bruno Haible  <bruno@clisp.org>
90484         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
90485         the tests directory.
90486         Reported by Ralf Wildenhues.
90488 2006-11-13  Bruno Haible  <bruno@clisp.org>
90490         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
90491         (func_emit_initmacro_end): Undo the override here.
90492         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
90493         Works around the famous automake error in coreutils.
90495 2006-11-13  Eric Blake  <ebb9@byu.net>
90497         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
90498         element, not its node.
90500 2006-11-12  Bruno Haible  <bruno@clisp.org>
90502         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
90503         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
90505 2006-11-12  Bruno Haible  <bruno@clisp.org>
90507         * gnulib-tool: New option --local-symlink.
90508         (func_usage): Document it.
90509         (lsymbolic): New variable.
90510         (func_import, func_create_testdir): If --symlink was not specified,
90511         test whether --local-symlink was specified and the file comes from
90512         the local_gnulib_dir.
90514 2006-11-12  Bruno Haible  <bruno@clisp.org>
90516         * gnulib-tool (func_ln): New function.
90517         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
90519 2006-11-12  Bruno Haible  <bruno@clisp.org>
90521         Finish support for source files in subdirectories.
90522         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
90523         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
90524         AUTOMAKE_OPTIONS.
90525         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
90527 2006-11-12  Bruno Haible  <bruno@clisp.org>
90529         * gnulib-tool (func_get_automake_snippet): Synthesize also an
90530         EXTRA_lib_SOURCES augmentation.
90531         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
90533 2006-11-12  Jim Meyering  <jim@meyering.net>
90535         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
90536         file descriptors.  This also averts a failure on systems with
90537         native openat support when a traversed directory lacks "x" access.
90538         * lib/fts_.h: Include "i-ring.h"
90539         (struct FTS) [fts_fd_ring]: New member.
90540         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
90541         (FCHDIR): Add parentheses.
90542         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
90543         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
90544         When descending, rather than simply closing the previous
90545         fts_cwd_fd value, push that file descriptor onto the ring.
90546         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
90547         (fts_open): Initialize the new fd_ring member.
90548         (fts_close): Clear the ring.
90549         (fts_safe_changedir): When possible, use our new fd_ring to skip
90550         the diropen and fstat and dev/ino comparison that would normally
90551         accompany a virtual `chdir ("..")'.
90553         * modules/fts (Depends-on): Add i-ring.
90554         * modules/i-ring: New module.
90555         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
90556         * m4/i-ring.m4: New file.
90558 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90560         * gnulib-tool (func_create_testdir): Fix replacement of
90561         `build-aux' in configure.ac.  Run autotools in gltests
90562         subdirectory.
90563         (func_create_testdir, func_create_megatestdir, test): There is
90564         no need for '--force' in most autotool invocations in a new
90565         tree.  Actually fail the whole test if any of the tools, or the
90566         configure or make stages fail.
90568         Sync from Automake.
90569         * build-aux/gnupload: Revert last change.  Add pointer to upload
90570         instructions of the GNU Maintenance Instructions.
90571         Suggestion by Karl Berry.
90573 2006-11-10  Jim Meyering  <jim@meyering.net>
90575         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
90577 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90579         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
90580         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
90581         (bind_textdomain_codeset) [! ENABLE_NLS]:
90582         Evaluate all the arguments.  That way, callers get compatible behavior
90583         if the arguments have side effects.  Also, it avoids some GCC
90584         diagnostics in some cases; Joel E. Denny reported problems when Bison
90585         was configured with --enable-gcc-warnigs.
90587 2006-11-10  Jim Meyering  <jim@meyering.net>
90589         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
90590         relevant options in CFLAGS (like -O, -fno-inline) are taken into
90591         account.
90593 2006-11-10  Jim Meyering  <jim@meyering.net>
90595         * modules/inline: New file/module.
90596         * modules/xalloc (Files): Remove m4/inline.m4.
90597         (Depends-on): Add inline, instead.
90598         * modules/oset: Likewise.
90599         * modules/list: Likewise.
90601 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90603         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
90604         Problem reported by Matthew Woehlke.
90606 2006-11-09  Bruno Haible  <bruno@clisp.org>
90608         * lib/tempname.c (gen_tempname): Remove variant that invokes
90609         __gen_tempname.
90610         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
90611         __gen_tempname.
90613 2006-11-08  Bruno Haible  <bruno@clisp.org>
90615         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
90616         to 'yes' instead of 'cross-compiling'.
90618 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
90620         * lib/quotearg.h (quotearg_free): New decl.
90621         * lib/quotearg.c (quotearg_free): New function.
90622         (slot0, nslots, slotvec0, slotvec):
90623         Now file-scope so that quotearg_free can get at them.
90625 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90627         Sync from Automake.
90628         * build-aux/gnupload: Add missing 'gnu' to example URL.
90629         Report by Karl Berry.
90631 2006-11-08  Bruno Haible  <bruno@clisp.org>
90633         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
90634         Suggested by Paul Eggert.
90636 2006-11-08  Jim Meyering  <jim@meyering.net>
90638         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
90639         It's already included if !_LIBC.
90640         (fts_safe_changedir): Add a comment.
90642 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
90644         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
90645         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
90646         Matthew Woehlke.
90648         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
90649         definitions up, to avoid colliding with change below.
90650         (static_inline) [HAVE_INLINE]: New macro.
90651         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
90652         Provide extern decls when !HAVE_INLINE.  Do not define unless
90653         static_inline is defined, either by us or by xmalloc.c.  Use
90654         static_inline rather than static inline.
90655         (XCALLOC): Optimize sizeof(T) = 1 case.
90656         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
90658 2006-11-07  Bruno Haible  <bruno@clisp.org>
90660         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
90661         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
90662         AC_C_INLINE.
90663         * modules/xalloc (Files): Add m4/inline.m4.
90665 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90667         * README: Fix typo.
90668         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
90669         (Miscellanous Notes): ...from this.
90671 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
90673         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
90674         Mention that offsetof should be used instead of sizeof.
90675         From Bruno Haible.
90677 2006-11-07  Bruno Haible  <bruno@clisp.org>
90679         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
90681 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
90683         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
90684         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
90685         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
90686         (gl_tree_add_before, gl_tree_add_after):
90687         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
90688         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
90689         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90690         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
90691         (gl_linked_add_after, gl_linked_add_at): Likewise.
90692         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
90693         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
90694         (gl_tree_add_before, gl_tree_add_after): Likewise.
90695         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
90696         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
90697         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
90699 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90701         * lib/gl_oset.h: Use C comment style, not C++ comment style.
90703 2006-11-06  Bruno Haible  <bruno@clisp.org>
90705         * m4/inline.m4: New file.
90706         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
90707         * modules/list (Files): Add m4/inline.m4.
90708         * modules/oset (Files): Likewise.
90710 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
90712         * lib/idcache.c: Include <stddef.h>, for offsetof.
90713         (struct userid.name): Change from char * to a flexible array member.
90714         All uses changed.
90715         * modules/idcache (Depends-on): Add flexmember.
90717         * MODULES.html.sh (Core language properties): New module flexmember.
90718         * modules/flexmember, m4/flexmember.m4: New files.
90720         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
90721         inline functions that are identical with the old xnmalloc_inline,
90722         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
90723         that we can avoid some unnecessary integer multiplications and
90724         divisions in the common case where the element size is known at
90725         compile time.
90726         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
90727         needed.
90728         (xnboundedmalloc): Remove.
90729         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
90730         arguments, for consistency with rest of this header.
90731         (xcharalloc): Rewrite using XNMALLOC.
90732         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
90733         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
90734         versions have been moved to lib/xalloc.h and renamed to be the
90735         non-*_inline versions.
90736         (xmalloc, xrealloc): Implement without reference to the xnmalloc
90737         and xnrealloc functions, since those functions are now inline and
90738         now call us.
90739         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
90740         renaming described above.
90741         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
90742         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
90743         captures the dependency in AC_C_INLINE.
90745         New module canonicalize-lgpl, proposed by Charles Wilson in
90746         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
90747         with a few small changes afterwards.
90748         * MODULES.html.sh (File system functions): New module
90749         canonicalize-lgpl.
90750         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
90751         and canonicalize_file_name.
90752         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
90753         * modules/canonicalize-lgpl: New files.
90755 2006-11-05  Bruno Haible  <bruno@clisp.org>
90757         * gnulib-tool (func_import, func_create_testdir): Create directories
90758         also for files in subdirectories of lib/.
90760 2006-11-05  Bruno Haible  <bruno@clisp.org>
90762         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
90763         ANSI C compliant.
90765 2006-11-03  Bruno Haible  <bruno@clisp.org>
90767         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
90768         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
90769         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
90770         (xnboundedmalloc): New inline function.
90771         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
90772         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
90773         xmalloc.
90774         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
90775         xmalloc.
90776         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
90777         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
90778         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
90779         xmalloc.
90780         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
90781         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
90782         xmalloc.
90783         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
90784         gl_tree_add_after): Use XMALLOC instead of xmalloc.
90785         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
90786         xmalloc.
90787         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
90788         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
90789         gl_tree_add_after): Use XMALLOC instead of xmalloc.
90790         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
90791         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
90792         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
90793         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
90795 2006-11-03  Bruno Haible  <bruno@clisp.org>
90797         * lib/c-ctype.h [C++]: Define functions without name mangling.
90798         * lib/fwriteerror.h [C++]: Likewise.
90799         * lib/gcd.h [C++]: Likewise.
90800         * lib/linebreak.h [C++]: Likewise.
90802 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90804         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
90805         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
90806         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
90807         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
90808         Check for functions and headers just once.
90809         Check for declaration of canonicalize_file_name.
90810         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
90812 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
90814         * gnulib-tool (func_import): Fix typo in actioncmd.
90816 2006-11-02  Bruno Haible  <bruno@clisp.org>
90818         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
90819         newline sequence in the Makefile.am snippet as a space, like "make"
90820         does.
90821         Reported by Roger Persson <perrog@gmail.com>.
90823 2006-11-01  Bruno Haible  <bruno@clisp.org>
90825         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
90826         already declared in <string.h>.
90827         * lib/strcase.h (strncasecmp): Don't declare it if yes.
90829 2006-11-01  Bruno Haible  <bruno@clisp.org>
90831         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
90832         * lib/strcase.h: Include <string.h>.
90833         (strcasecmp): Define to rpl_strcasecmp here.
90835 2006-11-01  Bruno Haible  <bruno@clisp.org>
90837         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
90839 2006-11-01  Eric Blake  <ebb9@byu.net>
90841         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
90843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
90845 2006-10-29  Bruno Haible  <bruno@clisp.org>
90847         Make it compile in C++ mode.
90848         * lib/full-write.c (full_rw): Add a cast.
90850 2006-11-01  Bruno Haible  <bruno@clisp.org>
90852         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
90853         be POSIX compliant.
90854         Reported by Roger Persson <perrog@gmail.com>.
90856 2006-11-01  Eric Blake  <ebb9@byu.net>
90858         * lib/getopt_.h: Fix comments.
90860 2006-10-31  Eric Blake  <ebb9@byu.net>
90862         * modules/tmpdir (Depends-on): Add sys_stat.
90863         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
90864         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
90865         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
90866         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
90867         tempname.
90869 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
90871         Avoid some C++ diagnostics reported by Bruno Haible.
90872         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
90873         xmalloc.
90874         (quotearg_alloc): Use xcharalloc rather than xmalloc.
90875         (struct slotvec): Move to top level.
90876         (quotearg_n_options): Rewrite to avoid xmalloc.
90877         * lib/xalloc.h (xcharalloc): New function.
90878         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
90879         [defined __cplusplus]: Add function template that provides result
90880         type propagation.  This part of the change is from Bruno Haible.
90882 2006-10-29  Bruno Haible  <bruno@clisp.org>
90884         Make it compile in C++ mode.
90885         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
90886         * lib/strnlen1.c (strnlen1): Cast memchr result.
90887         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
90888         * lib/clean-temp.c (string_equals, string_hash): Add casts.
90889         (create_temp_dir): Rename local variable 'template'.
90890         (compile_csharp_using_sscli): Add cast.
90891         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
90892         * lib/findprog.c (find_in_path): Likewise.
90893         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
90894         * lib/wait-process.c (register_slave_subprocess): Likewise.
90896 2006-10-22  Bruno Haible  <bruno@clisp.org>
90898         * modules/tsearch: New file.
90899         * lib/tsearch.h: New file.
90900         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
90901         * m4/tsearch.m4: New file.
90902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
90904 2006-10-29  Eric Blake  <ebb9@byu.net>
90906         * lib/arcfour.c: Assume config.h.
90907         * lib/arctwo.c: Likewise.
90908         * lib/base64.c: Likewise.
90909         * lib/check-version.c: Likewise.
90910         * lib/crc.c: Likewise.
90911         * lib/des.c: Likewise.
90912         * lib/gc-gnulib.c: Likewise.
90913         * lib/gc-libgcrypt.c: Likewise.
90914         * lib/gc-pbkdf2-sha1.c: Likewise.
90915         * lib/getaddrinfo.c: Likewise.
90916         * lib/getdelim.c: Likewise.
90917         * lib/getline.c: Likewise.
90918         * lib/hmac-md5.c: Likewise.
90919         * lib/hmac-sha1.c: Likewise.
90920         * lib/iconvme.c: Likewise.
90921         * lib/md2.c: Likewise.
90922         * lib/md4.c: Likewise.
90923         * lib/memxor.c: Likewise.
90924         * lib/read-file.c: Likewise.
90925         * lib/readline.c: Likewise.
90926         * lib/rijndael-alg-fst.c: Likewise.
90927         * lib/rijndael-api-fst.c: Likewise.
90928         * lib/xgetdomainname.c: Likewise.
90930 2006-10-28  Eric Blake  <ebb9@byu.net>
90932         * lib/xstrndup.c: Assume config.h.
90934 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
90936         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
90937         stat-macros.h is now for our own macros, whereas stat_h is for
90938         macros in the <sys/stat.h> name space.
90939         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
90940         (STAT_MACROS_H): Remove.
90941         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
90942         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
90943         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
90944         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
90945         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
90946         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
90947         Move these macros to ...
90948         * lib/stat_.h: here.  Don't include stat-macros.h.
90949         * lib/canonicalize.c: Don't include stat-macros.h.
90950         * lib/chown.c: Likewise.
90951         * lib/euidaccess.c: Likewise.
90952         * lib/file-type.c: Likewise.
90953         * lib/filemode.c: Likewise.
90954         * lib/glob.c: Likewise.
90955         * lib/isapipe.c: Likewise.
90956         * lib/lchown.c: Likewise.
90957         * lib/lstat.c: Likewise.
90958         * lib/mkdir-p.c: Likewise.
90959         * lib/rmdir.c: Likewise.
90960         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
90961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
90962         unless mkdir isn't declared, to speed up 'configure'.
90963         Always create sys/stat.h, since it's unlikely any real sys/stat.h
90964         would define all the S_* symbols.
90965         * modules/canonicalize (Depends-on):
90966         Depend on sys_stat, not stat-macros.
90967         * modules/chown: Likewise.
90968         * modules/euidaccess: Likewise.
90969         * modules/filemode: Likewise.
90970         * modules/file-type: Likewise.
90971         * modules/glob: Likewise.
90972         * modules/isapipe: Likewise.
90973         * modules/lchown: Likewise.
90974         * modules/lstat: Likewise.
90975         * modules/mkancesdirs: Likewise.
90976         * modules/rmdir: Likewise.
90977         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
90978         * modules/modechange: Likewise.
90979         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
90980         (configure.ac): Remove gl_STAT_MACROS.
90981         * modules/sys_stat (Depends-on): Remove stat-macros.
90983 2006-10-27  Bruno Haible  <bruno@clisp.org>
90985         * m4/signed.m4: Remove file.
90986         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
90987         invocation.
90988         * modules/vasnprintf (Files): Remove m4/signed.m4.
90990 2006-10-27  Bruno Haible  <bruno@clisp.org>
90992         Update to GNU gettext 0.16.
90993         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
90994         m4/inttypes-h.m4, m4/signed.m4.
90995         * m4/gettext.m4: Update to GNU gettext 0.16.
90996         * m4/intl.m4: New file, from GNU gettext.
90997         * m4/intldir.m4: New file, from GNU gettext.
90998         * config/srclist.txt: Update
91000 2006-10-27  Eric Blake  <ebb9@byu.net>
91002         * MODULES.html.sh: Document tempname.
91003         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
91004         dependencies.
91005         (Files): Move lib/tempname.c...
91006         * modules/tempname: ...to this new module.
91007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
91008         (gl_PREREQ_TEMPNAME): Move...
91009         * m4/tempname.m4: ...to this new file.
91010         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
91011         * modules/sys_stat (Depends-on): Add stat-macros.
91012         * lib/stat_.h (includes): Pick up stat macros.
91013         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
91014         if stat macros are broken.
91015         * lib/tempname.c (includes): No need to include "stat-macros.h".
91016         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
91017         (direxists, __path_search) [!_LIBC]: Don't compile these in
91018         gnulib; the tmpdir module covers that.
91019         * lib/tempname.h: New file.
91021 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
91023         * COPYING: Explain how gnulib-tool converts licence headers.
91024         Almost all wording by Eric Blake.
91026 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
91028         * lib/mbchar.h (is_basic_table): Make read-only.
91029         * lib/mbchar.c (is_basic_table): Likewise.
91030         Reported by John Darrington.
91032 2006-10-25  Bruno Haible  <bruno@clisp.org>
91034         * lib/progname.h (set_program_name): Undefine before defining.
91036 2006-10-25  Bruno Haible  <bruno@clisp.org>
91038         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
91039         false for non-gcc C++ compilers.
91040         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91042 2006-10-24  Bruno Haible  <bruno@clisp.org>
91044         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
91045         iconv implementations like Irix iconv.
91047 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91049         * modules/vararrays: New file.
91050         * m4/vararrays.m4: New file, taken from diffutils.
91051         * MODULES.html.sh: New module vararrays.
91053 2006-10-24  Karl Berry  <karl@gnu.org>
91055         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
91056         Don't call GNU Unix.
91058 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91060         * users.txt: Add Libtool.
91062         Sync from Libtool:
91064         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91066         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
91067         to gnulib's policy of including config.h unconditionally.
91069 2006-10-24  Bruno Haible  <bruno@clisp.org>
91071         * modules/wcwidth (Files): Add m4/wint_t.m4.
91072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
91073         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
91075 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
91077         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
91078         to pacify GCC with some -W flags enabled.  Problem reported by
91079         Bruno Haible.
91081 2006-10-24  Jim Meyering  <jim@meyering.net>
91083         * MODULES.html.sh: Remove uinttostr.  It's not a module.
91084         Reported by Karl Berry.
91086 2006-10-23  Bruno Haible  <bruno@clisp.org>
91088         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
91090 2006-10-24  Bruno Haible  <bruno@clisp.org>
91092         * lib/gl_list.h: Use C comment style, not C++ comment style.
91094 2006-10-23  Eric Blake  <ebb9@byu.net>
91096         * lib/getaddrinfo.c (includes): Add missing include.
91098 2006-10-23  Bruno Haible  <bruno@clisp.org>
91099             Paul Eggert  <eggert@cs.ucla.edu>
91101         Ability to rename obstack_free.
91102         * lib/obstack.h (__obstack_free): New macro. Declare instead of
91103         obstack_free.
91104         (obstack_free): Invoke the __obstack_free macro.
91105         * lib/obstack.c (obstack_free): Use __obstack_free macro.
91107 2006-10-23  Bruno Haible  <bruno@clisp.org>
91108             Paul Eggert  <eggert@cs.ucla.edu>
91110         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
91111         __argc, __argv from the declaration. (They are defined as macros on
91112         mingw.)
91114 2006-10-22  Bruno Haible  <bruno@clisp.org>
91116         * doc/gnulib-intro.texi: New file.
91117         * doc/gnulib.texi: Include it.
91119 2006-10-21  Bruno Haible  <bruno@clisp.org>
91121         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
91122         "Introduction", "Miscellanous Notes", "Particular Modules".
91124 2006-10-21  Bruno Haible  <bruno@clisp.org>
91126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91127         Change mostlyclean-local rule to avoid sh syntax error from bash
91128         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
91130 2006-10-23  Jim Meyering  <jim@meyering.net>
91132         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
91133         in place of snprintf.
91135         * modules/inttostr (Files): Add lib/uinttostr.c.
91136         * lib/uinttostr.c (inttostr): New file/function.
91137         * lib/inttostr.h (uinttostr): Declare.
91138         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
91139         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
91140         Add uinttostr.
91141         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
91143 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
91145         * lib/canonicalize.c (ELOOP): Define if not already defined.
91146         Problem reported by Bruno Haible in
91147         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
91149 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
91151         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
91152         Problem reported by Perry Smith and Ville Laurikari.
91154         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
91155         uses.
91157 2006-10-19  Bruno Haible  <bruno@clisp.org>
91159         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
91160         for mingw.
91162 2006-10-19  Bruno Haible  <bruno@clisp.org>
91164         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
91165         Needed for mingw.
91167 2006-10-19  Bruno Haible  <bruno@clisp.org>
91169         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
91171 2006-10-19  Bruno Haible  <bruno@clisp.org>
91173         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
91174         it.
91176 2006-10-19  Bruno Haible  <bruno@clisp.org>
91178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
91179         invocation.
91181 2006-10-19  Bruno Haible  <bruno@clisp.org>
91183         * gnulib-tool (func_create_testdir): Don't include ftruncate and
91184         mountlist by default.
91186 2006-10-16  Bruno Haible  <bruno@clisp.org>
91188         * lib/c-strstr.c: Include c-strstr.h.
91190 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
91192         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
91193         in a slash.
91195 2006-10-18  Bruno Haible  <bruno@clisp.org>
91197         * lib/lock.h [C++]: Wrap definitions in extern "C".
91199 2006-10-18  Bruno Haible  <bruno@clisp.org>
91201         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
91202         gl_LIBOBJS list.
91204 2006-10-18  Bruno Haible  <bruno@clisp.org>
91206         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
91208 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
91210         * lib/xstrtol.h: Include gettext.h.
91211         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
91212         Problem reported by Eric Blake.
91213         * modules/xstrtol (Depends-on): Add gettext-h.
91215 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
91217         * lib/strftime.c (advance): New macro.
91218         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
91219         incomplete type, so you can't add 0 to it.  Problem and patch
91220         reported by Eelco Dolstra for dietlibc.
91222 2006-10-18  Jim Meyering  <jim@meyering.net>
91224         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
91225         type for a local, and rename it: s/up/user_proc/.
91227 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
91229         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
91230         READ_UTMP_USER_PROCESS.
91231         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
91233 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91235         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
91236         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
91238 2006-10-17  Eric Blake  <ebb9@byu.net>
91240         * lib/sigprocmask.c (sigprocmask): Fix typo.
91242         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
91244         * modules/clean-temp (Makefile.am): Don't add to make output...
91245         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
91246         config.h.
91248 2006-10-17  Bruno Haible  <bruno@clisp.org>
91250         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
91251         differently if DEFAULT_TEXT_DOMAIN is set.
91253 2006-10-16  Bruno Haible  <bruno@clisp.org>
91255         * lib/clean-temp.c: Include fwriteerror.h.
91257 2006-10-16  Bruno Haible  <bruno@clisp.org>
91259         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
91261 2006-10-16  Bruno Haible  <bruno@clisp.org>
91263         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
91264         * lib/sigprocmask.h: Include <sys/types.h>.
91265         (sigset_t): Use the system's definition if present.
91267 2006-10-17  Eric Blake  <ebb9@byu.net>
91269         * lib/xvasprintf.c (includes): Assume config.h.
91270         * lib/xasprintf.c (includes): Likewise.
91272 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91274         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
91275         at least as wide as intmax_t.
91277 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
91279         (Imported from Automake.)
91280         * build-aux/gnupload: Update to version 1.1 of directive file.
91282 2006-10-16  Eric Blake  <ebb9@byu.net>
91284         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
91285         match Automake 1.10a.
91287 2006-10-14  Bruno Haible  <bruno@clisp.org>
91289         * modules/sigprocmask: New file.
91290         * lib/sigprocmask.h: New file.
91291         * lib/sigprocmask.c: New file.
91292         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
91293         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
91294         request sigprocmask.o.
91295         (gl_PREREQ_SIGPROCMASK): New macro.
91296         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
91297         (Depends-on): Add sigprocmask.
91298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
91299         gt_SIGNALBLOCKING. Test for 'raise' only once.
91300         * lib/fatal-signal.c: Include sigprocmask.h.
91301         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
91302         unblock_fatal_signals): Define always.
91303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91304         sigprocmask.
91306 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
91308         Sync from Automake.
91309         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
91310         which incorrectly sets the mode of an existing destination
91311         directory.  In some cases the unpatched install-sh could do the
91312         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
91313         system.  We hope this is rare in practice, but it's clearly worth
91314         fixing.  Problem reported by Alex Unleashed in
91315         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
91316         Also, don't bother to check for -m bugs unless we're using -m;
91317         suggested by Stepan Kasal.
91319 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91321         Sync from Automake.
91322         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
91323         `-c' flag, so they appear at the same position as in %FASTDEP%
91324         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
91325         which ignores unknown options only after the first non-option.
91326         Bug report against M4 by Nelson H. F. Beebe.
91328 2006-10-13  Jim Meyering  <jim@meyering.net>
91330         Fix a bug in yesterday's change.
91331         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
91332         p->fts_statp->st_dev would be used uninitialized.
91333         Ensures that we always call fts_stat on the very first entry.
91334         Miklos Szeredi reported that find -xdev stopped working.
91336 2006-10-12  Bruno Haible  <bruno@clisp.org>
91338         * gnulib-tool (func_get_automake_snippet): Append an automatically
91339         computed EXTRA_DIST augmentation.
91340         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
91341         * modules/alloca-opt (Makefile.am): Likewise.
91342         * modules/allocsa (Makefile.am): Likewise.
91343         * modules/arcfour (Makefile.am): Likewise.
91344         * modules/arctwo (Makefile.am): Likewise.
91345         * modules/argmatch (Makefile.am): Likewise.
91346         * modules/argz (Makefile.am): Likewise.
91347         * modules/atexit (Makefile.am): Likewise.
91348         * modules/backupfile (Makefile.am): Likewise.
91349         * modules/byteswap (Makefile.am): Likewise.
91350         * modules/c-strtod (Makefile.am): Likewise.
91351         * modules/c-strtold (Makefile.am): Likewise.
91352         * modules/calloc (Makefile.am): Likewise.
91353         * modules/canon-host (Makefile.am): Likewise.
91354         * modules/canonicalize (Makefile.am): Likewise.
91355         * modules/chdir-long (Makefile.am): Likewise.
91356         * modules/chdir-safer (Makefile.am): Likewise.
91357         * modules/check-version (Makefile.am): Likewise.
91358         * modules/chown (Makefile.am): Likewise.
91359         * modules/cloexec (Makefile.am): Likewise.
91360         * modules/close-stream (Makefile.am): Likewise.
91361         * modules/closeout (Makefile.am): Likewise.
91362         * modules/crc (Makefile.am): Likewise.
91363         * modules/csharpexec (Makefile.am): Likewise.
91364         * modules/cycle-check (Makefile.am): Likewise.
91365         * modules/des (Makefile.am): Likewise.
91366         * modules/dev-ino (Makefile.am): Likewise.
91367         * modules/dirfd (Makefile.am): Likewise.
91368         * modules/dirname (Makefile.am): Likewise.
91369         * modules/dup2 (Makefile.am): Likewise.
91370         * modules/eealloc (Makefile.am): Likewise.
91371         * modules/error (Makefile.am): Likewise.
91372         * modules/euidaccess (Makefile.am): Likewise.
91373         * modules/exclude (Makefile.am): Likewise.
91374         * modules/exitfail (Makefile.am): Likewise.
91375         * modules/fcntl-safer (Makefile.am): Likewise.
91376         * modules/fcntl (Makefile.am): Likewise.
91377         * modules/file-type (Makefile.am): Likewise.
91378         * modules/fileblocks (Makefile.am): Likewise.
91379         * modules/filemode (Makefile.am): Likewise.
91380         * modules/filenamecat (Makefile.am): Likewise.
91381         * modules/fnmatch (Makefile.am): Likewise.
91382         * modules/fopen-safer (Makefile.am): Likewise.
91383         * modules/fpending (Makefile.am): Likewise.
91384         * modules/fprintftime (Makefile.am): Likewise.
91385         * modules/free (Makefile.am): Likewise.
91386         * modules/fsusage (Makefile.am): Likewise.
91387         * modules/ftruncate (Makefile.am): Likewise.
91388         * modules/fts (Makefile.am): Likewise.
91389         * modules/gc-arcfour (Makefile.am): Likewise.
91390         * modules/gc-des (Makefile.am): Likewise.
91391         * modules/gc-hmac-md5 (Makefile.am): Likewise.
91392         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
91393         * modules/gc-md4 (Makefile.am): Likewise.
91394         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91395         * modules/gc-sha1 (Makefile.am): Likewise.
91396         * modules/gc (Makefile.am): Likewise.
91397         * modules/getaddrinfo (Makefile.am): Likewise.
91398         * modules/getcwd (Makefile.am): Likewise.
91399         * modules/getdelim (Makefile.am): Likewise.
91400         * modules/getdomainname (Makefile.am): Likewise.
91401         * modules/getgroups (Makefile.am): Likewise.
91402         * modules/gethostname (Makefile.am): Likewise.
91403         * modules/gethrxtime (Makefile.am): Likewise.
91404         * modules/getline (Makefile.am): Likewise.
91405         * modules/getloadavg (Makefile.am): Likewise.
91406         * modules/getlogin_r (Makefile.am): Likewise.
91407         * modules/getndelim2 (Makefile.am): Likewise.
91408         * modules/getopt (Makefile.am): Likewise.
91409         * modules/getpagesize (Makefile.am): Likewise.
91410         * modules/getpass-gnu (Makefile.am): Likewise.
91411         * modules/getpass (Makefile.am): Likewise.
91412         * modules/getsubopt (Makefile.am): Likewise.
91413         * modules/gettime (Makefile.am): Likewise.
91414         * modules/gettimeofday (Makefile.am): Likewise.
91415         * modules/getugroups (Makefile.am): Likewise.
91416         * modules/getusershell (Makefile.am): Likewise.
91417         * modules/glob (Makefile.am): Likewise.
91418         * modules/group-member (Makefile.am): Likewise.
91419         * modules/hard-locale (Makefile.am): Likewise.
91420         * modules/hash (Makefile.am): Likewise.
91421         * modules/hmac-md5 (Makefile.am): Likewise.
91422         * modules/hmac-sha1 (Makefile.am): Likewise.
91423         * modules/human (Makefile.am): Likewise.
91424         * modules/idcache (Makefile.am): Likewise.
91425         * modules/imaxabs (Makefile.am): Likewise.
91426         * modules/imaxdiv (Makefile.am): Likewise.
91427         * modules/inet_ntop (Makefile.am): Likewise.
91428         * modules/inet_pton (Makefile.am): Likewise.
91429         * modules/intprops (Makefile.am): Likewise.
91430         * modules/inttostr (Makefile.am): Likewise.
91431         * modules/inttypes (Makefile.am): Likewise.
91432         * modules/isapipe (Makefile.am): Likewise.
91433         * modules/javaversion (Makefile.am): Likewise.
91434         * modules/lchmod (Makefile.am): Likewise.
91435         * modules/lchown (Makefile.am): Likewise.
91436         * modules/localcharset (Makefile.am): Likewise.
91437         * modules/long-options (Makefile.am): Likewise.
91438         * modules/lstat (Makefile.am): Likewise.
91439         * modules/malloc (Makefile.am): Likewise.
91440         * modules/mathl (Makefile.am): Likewise.
91441         * modules/mbchar (Makefile.am): Likewise.
91442         * modules/md2 (Makefile.am): Likewise.
91443         * modules/md4 (Makefile.am): Likewise.
91444         * modules/md5 (Makefile.am): Likewise.
91445         * modules/memcasecmp (Makefile.am): Likewise.
91446         * modules/memchr (Makefile.am): Likewise.
91447         * modules/memcmp (Makefile.am): Likewise.
91448         * modules/memcoll (Makefile.am): Likewise.
91449         * modules/memcpy (Makefile.am): Likewise.
91450         * modules/memmem (Makefile.am): Likewise.
91451         * modules/memmove (Makefile.am): Likewise.
91452         * modules/mempcpy (Makefile.am): Likewise.
91453         * modules/memrchr (Makefile.am): Likewise.
91454         * modules/memset (Makefile.am): Likewise.
91455         * modules/memxor (Makefile.am): Likewise.
91456         * modules/mkancesdirs (Makefile.am): Likewise.
91457         * modules/mkdir-p (Makefile.am): Likewise.
91458         * modules/mkdir (Makefile.am): Likewise.
91459         * modules/mkdtemp (Makefile.am): Likewise.
91460         * modules/mkstemp (Makefile.am): Likewise.
91461         * modules/mktime (Makefile.am): Likewise.
91462         * modules/modechange (Makefile.am): Likewise.
91463         * modules/mountlist (Makefile.am): Likewise.
91464         * modules/nanosleep (Makefile.am): Likewise.
91465         * modules/obstack (Makefile.am): Likewise.
91466         * modules/openat (Makefile.am): Likewise.
91467         * modules/pagealign_alloc (Makefile.am): Likewise.
91468         * modules/pathmax (Makefile.am): Likewise.
91469         * modules/physmem (Makefile.am): Likewise.
91470         * modules/poll (Makefile.am): Likewise.
91471         * modules/posixtm (Makefile.am): Likewise.
91472         * modules/posixver (Makefile.am): Likewise.
91473         * modules/putenv (Makefile.am): Likewise.
91474         * modules/quote (Makefile.am): Likewise.
91475         * modules/quotearg (Makefile.am): Likewise.
91476         * modules/raise (Makefile.am): Likewise.
91477         * modules/read-file (Makefile.am): Likewise.
91478         * modules/readline (Makefile.am): Likewise.
91479         * modules/readlink (Makefile.am): Likewise.
91480         * modules/readtokens (Makefile.am): Likewise.
91481         * modules/readutmp (Makefile.am): Likewise.
91482         * modules/realloc (Makefile.am): Likewise.
91483         * modules/regex (Makefile.am): Likewise.
91484         * modules/rename-dest-slash (Makefile.am): Likewise.
91485         * modules/rename (Makefile.am): Likewise.
91486         * modules/rijndael (Makefile.am): Likewise.
91487         * modules/rmdir (Makefile.am): Likewise.
91488         * modules/rpmatch (Makefile.am): Likewise.
91489         * modules/safe-read (Makefile.am): Likewise.
91490         * modules/safe-write (Makefile.am): Likewise.
91491         * modules/same-inode (Makefile.am): Likewise.
91492         * modules/same (Makefile.am): Likewise.
91493         * modules/save-cwd (Makefile.am): Likewise.
91494         * modules/savedir (Makefile.am): Likewise.
91495         * modules/setenv (Makefile.am): Likewise.
91496         * modules/settime (Makefile.am): Likewise.
91497         * modules/sha1 (Makefile.am): Likewise.
91498         * modules/sig2str (Makefile.am): Likewise.
91499         * modules/snprintf (Makefile.am): Likewise.
91500         * modules/stat-macros (Makefile.am): Likewise.
91501         * modules/stat-time (Makefile.am): Likewise.
91502         * modules/stdbool (Makefile.am): Likewise.
91503         * modules/stdint (Makefile.am): Likewise.
91504         * modules/stdlib-safer (Makefile.am): Likewise.
91505         * modules/stpcpy (Makefile.am): Likewise.
91506         * modules/stpncpy (Makefile.am): Likewise.
91507         * modules/strcase (Makefile.am): Likewise.
91508         * modules/strcasestr (Makefile.am): Likewise.
91509         * modules/strchrnul (Makefile.am): Likewise.
91510         * modules/strcspn (Makefile.am): Likewise.
91511         * modules/strdup (Makefile.am): Likewise.
91512         * modules/strerror (Makefile.am): Likewise.
91513         * modules/strftime (Makefile.am): Likewise.
91514         * modules/strndup (Makefile.am): Likewise.
91515         * modules/strnlen (Makefile.am): Likewise.
91516         * modules/strpbrk (Makefile.am): Likewise.
91517         * modules/strsep (Makefile.am): Likewise.
91518         * modules/strstr (Makefile.am): Likewise.
91519         * modules/strtod (Makefile.am): Likewise.
91520         * modules/strtoimax (Makefile.am): Likewise.
91521         * modules/strtok_r (Makefile.am): Likewise.
91522         * modules/strtol (Makefile.am): Likewise.
91523         * modules/strtoll (Makefile.am): Likewise.
91524         * modules/strtoul (Makefile.am): Likewise.
91525         * modules/strtoull (Makefile.am): Likewise.
91526         * modules/strtoumax (Makefile.am): Likewise.
91527         * modules/strverscmp (Makefile.am): Likewise.
91528         * modules/sys_socket (Makefile.am): Likewise.
91529         * modules/sys_stat (Makefile.am): Likewise.
91530         * modules/sysexits (Makefile.am): Likewise.
91531         * modules/time_r (Makefile.am): Likewise.
91532         * modules/timegm (Makefile.am): Likewise.
91533         * modules/timespec (Makefile.am): Likewise.
91534         * modules/tmpfile-safer (Makefile.am): Likewise.
91535         * modules/trim (Makefile.am): Likewise.
91536         * modules/unistd-safer (Makefile.am): Likewise.
91537         * modules/unlinkdir (Makefile.am): Likewise.
91538         * modules/unlocked-io (Makefile.am): Likewise.
91539         * modules/userspec (Makefile.am): Likewise.
91540         * modules/utime (Makefile.am): Likewise.
91541         * modules/utimecmp (Makefile.am): Likewise.
91542         * modules/utimens (Makefile.am): Likewise.
91543         * modules/vasnprintf (Makefile.am): Likewise.
91544         * modules/vasprintf (Makefile.am): Likewise.
91545         * modules/vsnprintf (Makefile.am): Likewise.
91546         * modules/xalloc (Makefile.am): Likewise.
91547         * modules/xgetcwd (Makefile.am): Likewise.
91548         * modules/xnanosleep (Makefile.am): Likewise.
91549         * modules/xreadlink (Makefile.am): Likewise.
91550         * modules/xstrtod (Makefile.am): Likewise.
91551         * modules/xstrtol (Makefile.am): Likewise.
91552         * modules/xstrtold (Makefile.am): Likewise.
91553         * modules/yesno (Makefile.am): Likewise.
91554         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
91556 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
91558         * modules/error (Makefile.am): Distribute files through
91559         EXTRA_DIST, not lib_SOURCES.
91561 2006-10-12  Eric Blake  <ebb9@byu.net>
91563         * modules/error (Makefile.am): Distribute files in /lib.
91564         * modules/obstack (Makefile.am): Likewise.
91566 2006-10-12  Bruno Haible  <bruno@clisp.org>
91568         * modules/acl (Makefile.am): Distribute all files in lib/ through
91569         EXTRA_DIST.
91570         * modules/arcfour (Makefile.am): Likewise.
91571         * modules/arctwo (Makefile.am): Likewise.
91572         * modules/argmatch (Makefile.am): Likewise.
91573         * modules/argz (Makefile.am): Likewise.
91574         * modules/atexit (Makefile.am): Likewise.
91575         * modules/backupfile (Makefile.am): Likewise.
91576         * modules/c-strtod (Makefile.am): Likewise.
91577         * modules/c-strtold (Makefile.am): Likewise.
91578         * modules/calloc (Makefile.am): Likewise.
91579         * modules/canon-host (Makefile.am): Likewise.
91580         * modules/canonicalize (Makefile.am): Likewise.
91581         * modules/chdir-long (Makefile.am): Likewise.
91582         * modules/chdir-safer (Makefile.am): Likewise.
91583         * modules/check-version (Makefile.am): Likewise.
91584         * modules/chown (Makefile.am): Likewise.
91585         * modules/cloexec (Makefile.am): Likewise.
91586         * modules/close-stream (Makefile.am): Likewise.
91587         * modules/closeout (Makefile.am): Likewise.
91588         * modules/crc (Makefile.am): Likewise.
91589         * modules/cycle-check (Makefile.am): Likewise.
91590         * modules/des (Makefile.am): Likewise.
91591         * modules/dirfd (Makefile.am): Likewise.
91592         * modules/dirname (Makefile.am): Likewise.
91593         * modules/dup2 (Makefile.am): Likewise.
91594         * modules/euidaccess (Makefile.am): Likewise.
91595         * modules/exclude (Makefile.am): Likewise.
91596         * modules/exitfail (Makefile.am): Likewise.
91597         * modules/fcntl-safer (Makefile.am): Likewise.
91598         * modules/file-type (Makefile.am): Likewise.
91599         * modules/fileblocks (Makefile.am): Likewise.
91600         * modules/filemode (Makefile.am): Likewise.
91601         * modules/filenamecat (Makefile.am): Likewise.
91602         * modules/fnmatch (Makefile.am): Likewise.
91603         * modules/fopen-safer (Makefile.am): Likewise.
91604         * modules/fpending (Makefile.am): Likewise.
91605         * modules/fprintftime (Makefile.am): Likewise.
91606         * modules/free (Makefile.am): Likewise.
91607         * modules/fsusage (Makefile.am): Likewise.
91608         * modules/ftruncate (Makefile.am): Likewise.
91609         * modules/fts (Makefile.am): Likewise.
91610         * modules/gc (Makefile.am): Likewise.
91611         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91612         * modules/getaddrinfo (Makefile.am): Likewise.
91613         * modules/getcwd (Makefile.am): Likewise.
91614         * modules/getdelim (Makefile.am): Likewise.
91615         * modules/getdomainname (Makefile.am): Likewise.
91616         * modules/getgroups (Makefile.am): Likewise.
91617         * modules/gethostname (Makefile.am): Likewise.
91618         * modules/gethrxtime (Makefile.am): Likewise.
91619         * modules/getline (Makefile.am): Likewise.
91620         * modules/getloadavg (Makefile.am): Likewise.
91621         * modules/getlogin_r (Makefile.am): Likewise.
91622         * modules/getopt (Makefile.am): Likewise.
91623         * modules/getpass (Makefile.am): Likewise.
91624         * modules/getpass-gnu (Makefile.am): Likewise.
91625         * modules/getsubopt (Makefile.am): Likewise.
91626         * modules/gettime (Makefile.am): Likewise.
91627         * modules/gettimeofday (Makefile.am): Likewise.
91628         * modules/getugroups (Makefile.am): Likewise.
91629         * modules/getusershell (Makefile.am): Likewise.
91630         * modules/glob (Makefile.am): Likewise.
91631         * modules/group-member (Makefile.am): Likewise.
91632         * modules/hard-locale (Makefile.am): Likewise.
91633         * modules/hash (Makefile.am): Likewise.
91634         * modules/hmac-md5 (Makefile.am): Likewise.
91635         * modules/hmac-sha1 (Makefile.am): Likewise.
91636         * modules/human (Makefile.am): Likewise.
91637         * modules/idcache (Makefile.am): Likewise.
91638         * modules/imaxabs (Makefile.am): Likewise.
91639         * modules/imaxdiv (Makefile.am): Likewise.
91640         * modules/inet_ntop (Makefile.am): Likewise.
91641         * modules/inet_pton (Makefile.am): Likewise.
91642         * modules/inttostr (Makefile.am): Likewise.
91643         * modules/isapipe (Makefile.am): Likewise.
91644         * modules/lchown (Makefile.am): Likewise.
91645         * modules/long-options (Makefile.am): Likewise.
91646         * modules/lstat (Makefile.am): Likewise.
91647         * modules/malloc (Makefile.am): Likewise.
91648         * modules/mathl (Makefile.am): Likewise.
91649         * modules/mbchar (Makefile.am): Likewise.
91650         * modules/md2 (Makefile.am): Likewise.
91651         * modules/md4 (Makefile.am): Likewise.
91652         * modules/md5 (Makefile.am): Likewise.
91653         * modules/memcasecmp (Makefile.am): Likewise.
91654         * modules/memchr (Makefile.am): Likewise.
91655         * modules/memcmp (Makefile.am): Likewise.
91656         * modules/memcoll (Makefile.am): Likewise.
91657         * modules/memcpy (Makefile.am): Likewise.
91658         * modules/memmem (Makefile.am): Likewise.
91659         * modules/memmove (Makefile.am): Likewise.
91660         * modules/mempcpy (Makefile.am): Likewise.
91661         * modules/memrchr (Makefile.am): Likewise.
91662         * modules/memset (Makefile.am): Likewise.
91663         * modules/memxor (Makefile.am): Likewise.
91664         * modules/mkancesdirs (Makefile.am): Likewise.
91665         * modules/mkdir (Makefile.am): Likewise.
91666         * modules/mkdir-p (Makefile.am): Likewise.
91667         * modules/mkdtemp (Makefile.am): Likewise.
91668         * modules/mkstemp (Makefile.am): Likewise.
91669         * modules/mktime (Makefile.am): Likewise.
91670         * modules/modechange (Makefile.am): Likewise.
91671         * modules/mountlist (Makefile.am): Likewise.
91672         * modules/nanosleep (Makefile.am): Likewise.
91673         * modules/openat (Makefile.am): Likewise.
91674         * modules/pagealign_alloc (Makefile.am): Likewise.
91675         * modules/physmem (Makefile.am): Likewise.
91676         * modules/poll (Makefile.am): Likewise.
91677         * modules/posixtm (Makefile.am): Likewise.
91678         * modules/posixver (Makefile.am): Likewise.
91679         * modules/putenv (Makefile.am): Likewise.
91680         * modules/quote (Makefile.am): Likewise.
91681         * modules/quotearg (Makefile.am): Likewise.
91682         * modules/raise (Makefile.am): Likewise.
91683         * modules/read-file (Makefile.am): Likewise.
91684         * modules/readline (Makefile.am): Likewise.
91685         * modules/readlink (Makefile.am): Likewise.
91686         * modules/readtokens (Makefile.am): Likewise.
91687         * modules/readutmp (Makefile.am): Likewise.
91688         * modules/realloc (Makefile.am): Likewise.
91689         * modules/regex (Makefile.am): Likewise.
91690         * modules/rename (Makefile.am): Likewise.
91691         * modules/rename-dest-slash (Makefile.am): Likewise.
91692         * modules/rijndael (Makefile.am): Likewise.
91693         * modules/rmdir (Makefile.am): Likewise.
91694         * modules/rpmatch (Makefile.am): Likewise.
91695         * modules/safe-read (Makefile.am): Likewise.
91696         * modules/safe-write (Makefile.am): Likewise.
91697         * modules/same (Makefile.am): Likewise.
91698         * modules/save-cwd (Makefile.am): Likewise.
91699         * modules/savedir (Makefile.am): Likewise.
91700         * modules/setenv (Makefile.am): Likewise.
91701         * modules/settime (Makefile.am): Likewise.
91702         * modules/sha1 (Makefile.am): Likewise.
91703         * modules/sig2str (Makefile.am): Likewise.
91704         * modules/snprintf (Makefile.am): Likewise.
91705         * modules/stdlib-safer (Makefile.am): Likewise.
91706         * modules/stpcpy (Makefile.am): Likewise.
91707         * modules/stpncpy (Makefile.am): Likewise.
91708         * modules/strcase (Makefile.am): Likewise.
91709         * modules/strcasestr (Makefile.am): Likewise.
91710         * modules/strchrnul (Makefile.am): Likewise.
91711         * modules/strcspn (Makefile.am): Likewise.
91712         * modules/strdup (Makefile.am): Likewise.
91713         * modules/strerror (Makefile.am): Likewise.
91714         * modules/strftime (Makefile.am): Likewise.
91715         * modules/strndup (Makefile.am): Likewise.
91716         * modules/strnlen (Makefile.am): Likewise.
91717         * modules/strpbrk (Makefile.am): Likewise.
91718         * modules/strsep (Makefile.am): Likewise.
91719         * modules/strstr (Makefile.am): Likewise.
91720         * modules/strtod (Makefile.am): Likewise.
91721         * modules/strtoimax (Makefile.am): Likewise.
91722         * modules/strtok_r (Makefile.am): Likewise.
91723         * modules/strtol (Makefile.am): Likewise.
91724         * modules/strtoll (Makefile.am): Likewise.
91725         * modules/strtoul (Makefile.am): Likewise.
91726         * modules/strtoull (Makefile.am): Likewise.
91727         * modules/strtoumax (Makefile.am): Likewise.
91728         * modules/strverscmp (Makefile.am): Likewise.
91729         * modules/time_r (Makefile.am): Likewise.
91730         * modules/timegm (Makefile.am): Likewise.
91731         * modules/tmpfile-safer (Makefile.am): Likewise.
91732         * modules/unistd-safer (Makefile.am): Likewise.
91733         * modules/unlinkdir (Makefile.am): Likewise.
91734         * modules/userspec (Makefile.am): Likewise.
91735         * modules/utime (Makefile.am): Likewise.
91736         * modules/utimecmp (Makefile.am): Likewise.
91737         * modules/utimens (Makefile.am): Likewise.
91738         * modules/vasnprintf (Makefile.am): Likewise.
91739         * modules/vasprintf (Makefile.am): Likewise.
91740         * modules/vsnprintf (Makefile.am): Likewise.
91741         * modules/xalloc (Makefile.am): Likewise.
91742         * modules/xgetcwd (Makefile.am): Likewise.
91743         * modules/xnanosleep (Makefile.am): Likewise.
91744         * modules/xreadlink (Makefile.am): Likewise.
91745         * modules/xstrtod (Makefile.am): Likewise.
91746         * modules/xstrtol (Makefile.am): Likewise.
91747         * modules/xstrtold (Makefile.am): Likewise.
91748         * modules/yesno (Makefile.am): Likewise.
91750 2006-10-12  Jim Meyering  <jim@meyering.net>
91752         * m4/getloadavg.m4: Revert the change below.
91754         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
91755         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
91756         fail with a symlink, which is what coreutils' ./bootstrap now
91757         creates by default.
91759 2006-10-12  Bruno Haible  <bruno@clisp.org>
91761         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
91762         mingw.
91763         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
91764         MSVC and mingw explicitly.
91766 2006-10-11  Simon Josefsson  <jas@extundo.com>
91767             Bruno Haible  <bruno@clisp.org>
91769         Add support for multiple gnulib-tool invocations in the scope of a
91770         single configure.ac file.
91771         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
91772         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
91773         with the same contents as the _LIBADD variable.
91774         (func_emit_initmacro_start, func_emit_initmacro_end,
91775         func_emit_initmacro_done): New functions.
91776         (func_import, func_create_testdir): Invoke them. Allow the identifiers
91777         gl_LIBOBJS and gl_LTLIBOBJS.
91779 2006-10-11  Bruno Haible  <bruno@clisp.org>
91781         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
91782         (func_create_testdir): Don't create po/Makefile.am, don't invoke
91783         autoreconf. Instead, invoke autopoint explicitly but move back the
91784         *.m4 files from gnulib.
91786 2006-10-11  Bruno Haible  <bruno@clisp.org>
91788         * gnulib-tool (func_usage): Make module names after --create-testdir
91789         optional.
91790         (func_create_testdir): If no module was specified, use nearly all
91791         modules.
91793 2006-10-12  Jim Meyering  <jim@meyering.net>
91795         Big performance improvement for fts-based tools that use FTS_NOSTAT.
91796         Avoid spurious inode-mismatch problems on non-POSIX file systems.
91797         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
91798         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
91799         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
91800         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
91801         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
91802         (fts_set_stat_required): New function.
91803         (fts_open): Defer the calls to fts_stat, if possible or requested.
91804         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
91805         into fts_stat itself.
91806         (fts_read): Perform any required (deferred) fts_stat call.
91807         (fts_build): Likewise, for the directory we're about to open and read.
91808         In the readdir loop, carefully decide whether each entry will require
91809         an eventual call to fts_stat, using dirent.d_type info if available.
91810         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
91811         a command line argument into this function.  Update all callers.
91812         Map a return value of FTS_DOT to FTS_D for a command line argument.
91813         * modules/fts (Depends-on): Add d-type.  Alphabetize.
91814         Thanks to Miklos Szeredi for his tenacity and for the initial
91815         bug report about "find" failing on a FUSE-based file system.
91817         * lib/fts.c (fts_open): Use consistent indentation.
91819 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
91821         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
91822         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
91823         reported by Jim Meyering.  All uses of cache variables renamed
91824         to match Autoconf's.
91825         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
91826         the other one.
91828         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
91829         Fix misspelling in diagnostic.
91831 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
91833         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
91834         defined.  Problem reported by Matthew Woehlke.
91836         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
91837         Add support for Tandem NonStop R series.
91838         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
91839         Use new macro.
91841         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
91842         (has_trailing_slash): Omit size arg; all callers changed.
91843         Omit 'inline', since it doesn't help performance and we'd
91844         need to configure it.
91845         Don't count //, ///, etc. as having a trailing slash.
91846         As a side effect, this removes a C99ism reported by Matthew Woehlke.
91847         (rpl_rename_dest_slash): On failure, use rename's errno rather
91848         than (in some cases) an incorrect or junk errno.
91849         Simplify code by removing need to compute length; this does
91850         cause it to make two passes instead of one over the file name,
91851         but it's worth it.
91853         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
91854         change, since Autoconf's version may no longer be appropriate now
91855         that we are using CVS Autoconf's version.  Add support for Tandem.
91857 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
91858             Bruno Haible  <bruno@clisp.org>
91860         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
91861         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
91862         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
91863         gl_AC_TYPE_LONG_LONG.
91865         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
91866         instead of HAVE_LONG_LONG.
91867         * lib/printf-args.c (printf_fetchargs): Likewise.
91868         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
91869         * lib/vasnprintf.c (VASNPRINTF): Likewise.
91870         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
91871         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
91872         gl_AC_TYPE_LONG_LONG.
91874 2006-10-11  Bruno Haible  <bruno@clisp.org>
91876         * m4/longlong.m4: Add comments.
91877         * m4/ulonglong.m4: Likewise.
91879 2006-10-10  Bruno Haible  <bruno@clisp.org>
91881         Make it possible to #define stpcpy, strdup to aliases.
91882         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
91883         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
91885 2006-10-10  Bruno Haible  <bruno@clisp.org>
91887         Make it possible to #define gcd to an alias.
91888         * lib/gcd.c: Include config.h.
91890 2006-10-10  Bruno Haible  <bruno@clisp.org>
91892         Make it possible to #define c_isascii to an alias.
91893         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
91894         defined. Undefine the macros before defining them, to avoid gcc
91895         warnings.
91896         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
91897         define NO_C_CTYPE_MACROS early.
91899 2006-10-10  Bruno Haible  <bruno@clisp.org>
91901         Make it possible to #define set_program_name to an alias.
91902         * lib/progname.c: Don't undefine set_program_name; instead, undefine
91903         ENABLE_RELOCATABLE early.
91905 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
91907         Port to Tandem NSK OSS, which has 64-bit signed int but at most
91908         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
91909         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
91910         More generally, don't assume that 64-bit signed int is available
91911         if unsigned int is, and vice versa.
91912         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
91913         unsigned symbols, not on their signed counterparts.
91914         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
91915         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
91916         (UINT64_C, UINTMAX_C):
91917         Likewise.
91918         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
91919         unsigned counterparts.
91920         (Have_long_long, Unsigned): New macros.
91921         (Int): Renamed from INT.
91922         (strtoimax): Use the new macros.
91923         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
91924         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
91925         * modules/inttypes (inttypes.h): Substitute
91926         HAVE_UNSIGNED_LONG_LONG_INT.
91927         * modules/stdint (stdint.h): Likewise.
91928         (Files): Add m4/ulonglong.m4.
91930 2006-10-10  Bruno Haible  <bruno@clisp.org>
91932         Fix a gcc -Wshadow warning.
91933         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
91934         to 'bucket'.
91935         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
91936         gl_linked_indexof_from_to): Likewise.
91937         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
91938         Likewise.
91939         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
91940         Likewise.
91941         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
91942         Reported by Eric Blake.
91944 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
91946         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
91947         for NetBSD.  Problem reported by Bruno Haible.
91949 2006-10-09  Jim Meyering  <jim@meyering.net>
91951         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
91952         Patch from Bruno Haible.
91954 2006-10-09  Jim Meyering  <jim@meyering.net>
91956         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
91957         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
91958         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
91960 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91962         Don't include <config.h> twice; this doesn't work in some cases,
91963         e.g., when config.h has "#define intmax_t long long int" and
91964         we include <config.h>, <inttypes.h>, <config.h> in that order.
91965         Problem reported by Matthew Woehlke in:
91966         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
91967         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
91968         * lib/fts-cycle.c: Don't include config.h.
91969         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
91970         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
91971         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
91972         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
91973         inttypes.h.
91974         * lib/xstrtoumax.c: Likewise.
91975         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
91976         __strtol and the like, so that this module is more like its siblings.
91977         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
91978         Remove; no longer needed now that we assume gnulib inttypes.h.
91980 2006-10-08  Bruno Haible  <bruno@clisp.org>
91982         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
91983         option.
91985 2006-10-07  Jim Meyering  <jim@meyering.net>
91987         * modules/inttypes (inttypes.h): Revert what seems to have been
91988         an inadvertent part of today's change: use "|", not "/" in the
91989         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
91991 2006-10-07  Bruno Haible  <bruno@clisp.org>
91993         * modules/sublist: New file.
91995 2006-10-07  Bruno Haible  <bruno@clisp.org>
91997         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
91998         * modules/argz (argz.h): Likewise.
91999         * modules/arpa_inet (arpa/inet.h): Likewise.
92000         * modules/byteswap (byteswap.h): Likewise.
92001         * modules/configmake (configmake.h): Likewise.
92002         * modules/fcntl (fcntl.h): Likewise.
92003         * modules/fnmatch (fnmatch.h): Likewise.
92004         * modules/getopt (getopt.h): Likewise.
92005         * modules/glob (glob.h): Likewise.
92006         * modules/inttypes (inttypes.h): Likewise.
92007         * modules/netinet_in (netinet/in.h): Likewise.
92008         * modules/poll (poll.h): Likewise.
92009         * modules/stdbool (stdbool.h): Likewise.
92010         * modules/stdint (stdint.h): Likewise.
92011         * modules/sys_select (sys/select.h): Likewise.
92012         * modules/sys_socket (sys/socket.h): Likewise.
92013         * modules/sys_stat (sys/stat.h): Likewise.
92014         * modules/sysexits (sysexits.h): Likewise.
92015         * modules/unistd (unistd.h): Likewise.
92016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92017         Add a "DO NOT EDIT" comment to the generated file.
92018         (func_import): Likewise for gnulib-comp.m4.
92020 2006-10-07  Bruno Haible  <bruno@clisp.org>
92022         * lib/gl_sublist.h: New file.
92023         * lib/gl_sublist.c: New file.
92025 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
92027         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
92028         name (relative to the original working directory) and the file
92029         name component (relative to the temporary working directory).  All
92030         callers changed.
92031         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
92032         * lib/mkdir-p.c (make_dir_parents): Likewise.
92033         * lib/mkdir-p.h (make_dir_parents): Likewise.
92035 2006-10-06  Eric Blake  <ebb9@byu.net>
92037         Define several macros for use by the clean-temp module.
92038         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
92039         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
92040         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
92042         * lib/clean-temp.h (close_stream_temp): New declaration.
92043         * lib/clean-temp.c (includes): Pull in headers according to what
92044         other modules are in use.
92045         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
92047 2006-10-06  Bruno Haible  <bruno@clisp.org>
92049         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
92050         instead of fopen, fwriteerror.
92052 2006-10-06  Bruno Haible  <bruno@clisp.org>
92054         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
92055         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
92056         int.
92057         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
92058         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
92059         Return an error indicator.
92060         Suggested by Eric Blake.
92062 2006-10-06  Bruno Haible  <bruno@clisp.org>
92064         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
92065         Reported by Eric Blake.
92067 2006-10-06  Bruno Haible  <bruno@clisp.org>
92069         * modules/closeout (Description): Mention stderr too.
92071 2006-10-06  Bruno Haible  <bruno@clisp.org>
92072         and Paul Eggert  <eggert@cs.ucla.edu>
92074         * lib/closeout.c (close_stdout): Also close stderr.
92075         * lib/closeout.h: Update comment.
92077 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
92079         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
92080         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
92081         * lib/dirchownmod.c: Include lchown.h.
92082         * lib/lchown.c: Don't include files that lchown.h now includes.
92083         Don't declare chown, since lchown.h now does that.
92084         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
92085         (lchown): Define to rpl_chown if lchown is declared but
92086         does not exist.  Declare using a prototype if lchown is not
92087         declared.  Add a copyright notice.
92088         * lib/mkstemp.h: Include <unistd.h>.
92089         * lib/openat.c: Include lchown.h.
92091         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
92092         we now test for that separately.
92093         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
92094         rather than O_NOFOLLOW, when testing whether it's possible to
92095         avoid a race condition reliably.
92096         * lib/savewd.c (savewd_chdir): Likewise.
92098         Remove macros that are no longer needed now that stdint.h is
92099         reliable.
92100         * lib/fsusage.c (UINTMAX_MAX): Remove.
92101         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
92102         * lib/utimecmp.c (SIZE_MAX): Remove.
92104         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
92106         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
92107         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
92108         O_NOATIME works.
92110 2006-10-05  Bruno Haible  <bruno@clisp.org>
92112         * lib/gl_list.h (gl_sortedlist_search_from_to,
92113         gl_sortedlist_indexof_from_to): New declarations.
92114         (gl_list_implementation): New fields sortedlist_search_from_to,
92115         sortedlist_indexof_from_to.
92116         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
92117         inline functions.
92118         * lib/gl_list.c (gl_sortedlist_search_from_to,
92119         gl_sortedlist_indexof_from_to): New functions.
92120         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
92121         function.
92122         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
92123         (gl_array_sortedlist_search_from_to): New function.
92124         (gl_array_list_implementation): Update.
92125         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
92126         function.
92127         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
92128         (gl_carray_sortedlist_search_from_to): New function.
92129         (gl_carray_list_implementation): Update.
92130         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
92131         gl_linked_sortedlist_indexof_from_to): New functions.
92132         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92133         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92134         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
92135         gl_tree_sortedlist_indexof_from_to): New functions.
92136         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92137         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92138         Update.
92139         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92140         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
92141         Update.
92143 2006-10-05  Bruno Haible  <bruno@clisp.org>
92145         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
92146         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
92147         (struct gl_list_implementation): Add fields search_from_to,
92148         indexof_from_to. Remove fields search, indexof.
92149         (gl_list_search): Use the search_from_to method.
92150         (gl_list_search_from, gl_list_search_from_to): New functions.
92151         (gl_list_indexof): Use the indexof_from_to method.
92152         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
92153         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
92154         (gl_list_search_from, gl_list_search_from_to): New functions.
92155         (gl_list_indexof): Use the indexof_from_to method.
92156         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
92157         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
92158         gl_array_indexof. Add start_index, end_index arguments.
92159         (gl_array_search_from_to): Renamed from gl_array_search. Add
92160         start_index, end_index arguments.
92161         (gl_array_remove, gl_array_list_implementation): Update.
92162         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
92163         gl_carray_indexof. Add start_index, end_index arguments.
92164         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
92165         start_index, end_index arguments.
92166         (gl_carray_remove, gl_carray_list_implementation): Update.
92167         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
92168         gl_linked_search. Add start_index, end_index arguments.
92169         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
92170         start_index, end_index arguments.
92171         (gl_linked_remove): Update.
92172         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92173         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92174         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
92175         field to 'size_t'.
92176         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
92177         gl_tree_search. Add start_index, end_index arguments.
92178         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
92179         start_index, end_index arguments.
92180         (gl_tree_remove): Update.
92181         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92182         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92183         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
92184         function.
92185         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
92186         gl_tree_search. Add start_index, end_index arguments.
92187         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
92188         start_index, end_index arguments.
92189         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92190         Update.
92191         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92193 2006-10-05  Bruno Haible  <bruno@clisp.org>
92195         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
92197         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
92198         fwriteerror_temp): New declarations.
92199         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
92200         (descriptors): New variable.
92201         (cleanup): First, close the descriptors.
92202         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
92203         fclose_temp, fwriteerror_temp): New functions.
92205 2006-10-04  Jim Meyering  <jim@meyering.net>
92207         * lib/fts.c (fts_open): Tiny comment change.
92209 2006-10-04  Bruno Haible  <bruno@clisp.org>
92211         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
92212         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
92213         gl_LOCK_BODY.
92214         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
92215         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
92216         gl_LOCK_EARLY_BODY.
92217         (gl_LOCK): Require gl_LOCK_BODY.
92219 2006-10-04  Bruno Haible  <bruno@clisp.org>
92221         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
92222         (gl_oset_search_atleast): New declaration.
92223         (struct gl_oset_implementation): Add field 'search_atleast'.
92224         (gl_oset_search_atleast): New inline function.
92225         * lib/gl_oset.c (gl_oset_search_atleast): New function.
92226         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
92227         (gl_array_oset_implementation): Update.
92228         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
92229         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
92230         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
92232 2006-10-04  Bruno Haible  <bruno@clisp.org>
92234         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
92236 2006-10-03  Bruno Haible  <bruno@clisp.org>
92238         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
92239         from gl_avltreehash_list_implementation.
92241 2006-10-03  Bruno Haible  <bruno@clisp.org>
92243         * lib/gl_oset.c (gl_oset_add): Fix return type.
92245 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
92247         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
92249 2006-10-02  Eric Blake  <ebb9@byu.net>
92251         * modules/strnlen (Depends-on): Add extensions.
92253 2006-10-02  Eric Blake  <ebb9@byu.net>
92255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
92256         definition in 2.60+.
92258 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
92260         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
92261         checks.
92263 2006-10-02  Bruno Haible  <bruno@clisp.org>
92265         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
92266         to the AUTOMAKE_OPTIONS.
92267         Reported by Jim Meyering.
92269 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
92271         Work around bug in Solaris 10 /proc file system:
92272         /proc/self/fd/NNN/.. isn't the parent directory of
92273         the directory whose file descriptor is NNN.  This needs to
92274         be worked around at run time, not compile time, since a
92275         program might be built on Solaris 8, where things work, and
92276         run on Solaris 10.
92277         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
92278         to use the following interface instead:
92279         (OPENAT_BUFFER_SIZE): New macro.
92280         (openat_proc_name): New function.
92281         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
92282         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
92283         Likewise.
92284         * lib/openat-proc.c: New file.
92285         * modules/openat (Files): Add lib/openat-proc.c.
92286         (Depends-on): Add same-inode, stdbool.
92287         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
92289 2006-09-29  Bruno Haible  <bruno@clisp.org>
92291         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
92292         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
92293         argument. Set stdout_closed before testing for ferror, not after.
92294         (fwriteerror, fwriteerror_no_ebadf): New functions.
92296 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92298         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
92300 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
92302         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
92303         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
92305 2006-09-28  Jim Meyering  <jim@meyering.net>
92307         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
92308         Include <unistd.h>.
92310 2006-09-28  Bruno Haible  <bruno@clisp.org>
92312         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
92313         * modules/linkedhash-list (Depends-on): Likewise.
92314         * modules/rbtreehash-list (Depends-on): Likewise.
92316 2006-09-28  Bruno Haible  <bruno@clisp.org>
92318         * lib/strndup.h: Simplify the redefinition of strndup.
92319         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
92320         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
92322 2006-09-28  Bruno Haible  <bruno@clisp.org>
92324         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
92325         * lib/gl_linkedhash_list.c: Likewise.
92326         * lib/gl_rbtreehash_list.c: Likewise.
92328 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
92330         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
92331         getaddrinfo.
92333         * lib/__fpending.h: Don't include <stdio_ext.h> unless
92334         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
92335         it causes <stdio_ext.h> to cause a compile-time error.
92336         Problem reported by Nelson H. F. Beebe.
92337         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
92338         of HAVE_DECL___PENDING.
92340         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
92341         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
92342         declaration.
92344 2006-09-27  Jim Meyering  <jim@meyering.net>
92346         This file could end up with a definition for a function
92347         named __strndup, rather than rpl_strndup on a system with
92348         incomplete weak_alias support.
92349         * lib/strndup.c (strndup): Rename from __strndup.
92350         Remove #defines that used to map __strndup to strndup.
92351         Don't use K&R prototypes.
92352         Remove LIBC-related code, since this file is not sync'd with glibc.
92353         * lib/strndup.h: Revamp, accordingly.
92354         * m4/strndup.m4: Modernize.
92356 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
92358         * modules/savewd (Depends-on): Add 'raise'.
92359         * lib/savewd.c: Include <signal.h>, for 'raise'.
92361 2006-09-26  Jim Meyering  <jim@meyering.net>
92363         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
92364         when we detect Darwin 8.7.0's acl_get_file bug.
92365         Rearrange to perform the new (below) run-test while $LIBS
92366         contains any acl-related library.  Set USE_ACL at the end.
92367         (gl_ACL_GET_FILE): New function.
92369 2006-09-26  Eric Blake  <ebb9@byu.net>
92371         * lib/verror.c: Include <config.h> unconditionally.
92373 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
92375         * modules/clock-time (Maintainer): Add self.
92376         * modules/getlogin_r (Depends-on): Add extensions.
92378 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92380         * modules/clock-time: New module.
92381         * modules/nanosleep (Depends-on): Add clock-time.
92382         * modules/gethrxtime (Depends-on): Likewise.
92383         * modules/gettime (Depends-on): Likewise.
92384         * modules/settime (Depends-on): Likewise.
92386         * modules/fts-lgpl: Depend on openat.
92387         * modules/mkancesdirs: Depend on savewd.
92388         * modules/mkdir-p: Likewise.
92390 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92392         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
92394         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
92395         `gl_have_arbitrary_file_name_length_limit' to
92396         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
92397         actually works between configure runs.
92399 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92400             Bruno Haible  <bruno@clisp.org>
92402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
92404 2006-09-25  Jim Meyering  <jim@meyering.net>
92406         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
92407         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
92409 2006-09-25  Eric Blake  <ebb9@byu.net>
92411         * gnulib-tool (func_import, func_create_testdir): Fix typos in
92412         exec's in 2006-09-18 patch when shuffling fds.
92414 2006-09-25  Bruno Haible  <bruno@clisp.org>
92416         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
92417         Reported by Jim Meyering.
92419 2006-09-24  Jim Meyering  <jim@meyering.net>
92421         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
92422         compare a pointer against a literal "0".  That caused failures with
92423         at least HP-UX's hpcc.
92425 2006-09-22  Simon Josefsson  <jas@extundo.com>
92427         * modules/gc-sha1:
92428         * modules/gc-md4:
92429         * modules/gc-hmac-sha1:
92430         * modules/gc-hmac-md5:
92431         * modules/gc-des:
92432         * modules/gc-arcfour: Distribute more files.
92434 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92436         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
92437         (gl_linked_iterator_from_to): Initialize struct completely.
92438         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
92439         (gl_tree_iterator_from_to): Likewise
92440         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
92441         * lib/gl_array_list.c [lint] (gl_array_iterator)
92442         (gl_array_iterator_from_to): Likewise.
92443         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
92444         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
92445         (gl_carray_iterator_from_to): Likewise.
92447         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
92448         * lib/md4.c (md4_process_block): Remove unused variable.
92449         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
92450         parentheses for clarity.
92452 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92454         * modules/bison-i18n (Depends-on): Add gettext.
92456 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92458         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
92459         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
92460         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
92461         also add missing comma that caused broken test.
92462         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
92463         stdlib.h, for `abort'.
92464         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
92465         variables.
92466         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
92467         include unistd.h if present, for `rmdir'.
92468         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
92469         variables.
92470         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
92471         in the process include standard headers for prototypes.
92472         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
92473         gets declared on GNU/Linux.
92474         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
92475         unistd.h, for `rmdir'.
92476         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
92478         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
92479         always true.
92480         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
92482         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
92484 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92486         * gnulib-tool (func_version): Create output all at once.  This
92487         may help avoid triggering unnecessary SIGPIPEs, and at any
92488         rate it doesn't hurt.
92490 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92491             Bruno Haible  <bruno@clisp.org>
92493         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
92494         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92495         * m4/signed.m4 (bh_C_SIGNED): Likewise.
92497         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
92498         (gl_FUNC_VASPRINTF): Invoke it.
92500 2006-09-22  Bruno Haible  <bruno@clisp.org>
92502         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
92503         getloadavg.c as first argument.
92505 2006-09-22  Bruno Haible  <bruno@clisp.org>
92507         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
92508         at the beginning of the gl_INIT macro.
92509         * modules/getloadavg (configure.ac): Pass $gl_source_base to
92510         gl_GETLOADAVG.
92512 2006-09-22  Bruno Haible  <bruno@clisp.org>
92514         * gnulib-tool (func_create_megatestdir): Don't include the config-h
92515         module.
92516         Suggested by Ralf Wildenhues.
92518 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
92520         Import this patch from libc:
92522         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
92524         * lib/regex_internal.c (re_string_reconstruct): Handle
92525         offset < pstr->valid_raw_len && pstr->offsets_needed case.
92526         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
92527         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
92528         re_string_context_at.
92530         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
92531         now requires it.
92532         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
92533         gl_REGEX now does it for us.
92534         (gl_REGEX): Add test taken from
92535         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
92537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
92538         Check that large offsets work.  Modernize Autoconf usages.
92539         Prefer "yes" to mean a good thing rather than a bad.
92540         Don't put "#define mkstemp" in config.h, as this might interfere
92541         with standard system headers that "#define mkstemp mkstemp64".
92543         * modules/mkstemp (Depends-on): Add extensions, so that
92544         mkstemp is visible on some platforms.
92545         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
92546         (Include): Change to "mkstemp.h" from <stdlib.h>.
92547         (Files): Add mkstemp.h.
92549         * lib/mkstemp.h: New file, since some standard headers
92550         #define mkstemp.
92551         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
92552         Include "mkstemp.h".
92553         Make the _LIBC code resemble glibc original more,
92554         e.g., use K&R style.
92555         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
92556         (mkstemp): Remove, since mkstemp.h does this for us.
92557         * lib/stdlib--.h: Include mkstemp.h.
92559         Import this patch from libc:
92561         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
92563         * lib/tempname.c (__gen_tempname): Change attempts_min
92564         into a macro.  Use preprocessor to decide how to initialize
92565         attempts [Coverity CID 67].
92567 2006-09-20  Bruno Haible  <bruno@clisp.org>
92569         * lib/mkdtemp.c: Import from libc.
92570         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
92571                 * sysdeps/posix/tempname.c (__gen_tempname): Change
92572                 attempts_min into a macro.  Use preprocessor to decide how to
92573                 initialize attempts [Coverity CID 67].
92574         2001-11-27  Paul Eggert  <eggert@twinsun.com>
92575                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
92576                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
92578 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92580         * gnulib-tool (func_exit): New function, to allow to pass the
92581         exit status portably through the trap.  Use everywhere.
92582         (--help, --version): Signal a write error.
92583         (trap): catch SIGPIPE, for write errors.
92584         Exit at the end of the trap, with the correct exit status.
92586 2006-09-19  Karl Berry  <karl@gnu.org>
92588         * doc/gnulib.texi: note about the license texinfo files.
92590 2006-09-19  Eric Blake  <ebb9@byu.net>
92592         * gnulib-tool: Avoid space-tab.
92594 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
92596         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
92597         that prevented coreutils 6.1 from building.  Problem reported
92598         by Petter Reinholdtsen.
92600 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
92602         * gnulib-tool (avoidlist): Fix typo that broke options like
92603         --avoid=lock that are used by coreutils bootstrap.
92605 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
92607         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
92608         more systematically.
92610 2006-09-18  Jim Meyering  <jim@meyering.net>
92612         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
92614 2006-09-18  Bruno Haible  <bruno@clisp.org>
92616         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
92618 2006-09-18  Bruno Haible  <bruno@clisp.org>
92620         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
92621         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
92622         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
92623         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
92624         * m4/gettext.m4: Require autoconf >= 2.52.
92625         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
92626         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
92627         of gl_cv_header_inttypes_h.
92629 2006-09-18  Bruno Haible  <bruno@clisp.org>
92631         * lib/javaversion.c: Include configmake.h.
92633 2006-09-18  Bruno Haible  <bruno@clisp.org>
92635         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
92636         avoid that the while loops be executed in a subshell.
92638 2006-09-18  Bruno Haible  <bruno@clisp.org>
92640         * MODULES.html.sh (func_module): Break long lines.
92641         Suggested by Bruce Korb <bkorb@gnu.org>.
92643 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92645         Speed up by a factor of 1.12.
92646         * gnulib-tool (nl): New variable.
92647         (func_import): Rewrite include directive extraction to only read each
92648         directive once.
92650 2006-09-17  Bruno Haible  <bruno@clisp.org>
92652         * modules/javaversion (Makefile.am): Remove DEFS setting.
92653         (Depends-on): Add configmake, for PKGDATADIR definition.
92655 2006-09-17  Bruno Haible  <bruno@clisp.org>
92657         * gnulib-tool (func_create_testdir): Rewrite all files at once.
92659 2006-09-17  Bruno Haible  <bruno@clisp.org>
92661         * gnulib-tool (func_append): New function, stolen from libtool.m4.
92662         (func_modules_transitive_closure, func_modules_add_dummy,
92663         func_modules_to_filelist, func_import, func_create_testdir,
92664         func_create_megatestdir, ...): Use it wherever possible.
92665         Suggested by Ralf Wildenhues.
92667 2006-09-16  Karl Berry  <karl@gnu.org>
92669         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
92670         to avoid sectioning errors.
92671         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
92672         [ifinfo]: blank line after @center-ed titles.
92673         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
92674         Spell FSF address consistently with others.
92675         (These changes approved by rms.)
92677 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92679         Speed up by a factor of 1.61.
92680         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
92681         already checked module names again.
92683 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92685         Speed up by a factor of 1.13.
92686         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
92687         for new_files, and the input to func_add_or_update.
92689 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92691         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
92692         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
92694 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
92696         * modules/mkancesdirs (Depends-on): Add fcntl.
92697         * modules/savewd: New file.
92698         * MODULES.html.sh (File system functions): Add savewd.
92700         * modules/configmake (Makefile.am): Add support for the
92701         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
92703 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
92705         * m4/savewd.m4: New file.
92707 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
92709         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
92710         (dirchownmod): New arg FD.  All callers changed.
92711         Use FD rather than opening the directory ourself, as opening is
92712         now the caller's responsibility.
92713         * lib/dirchownmod.h: Likewise.
92714         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
92715         hosts that require <sys/types.h> before <sys/stat.h>.  Include
92716         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
92717         (test_dir): Remove.
92718         (mkancesdirs): Return length of prefix of FILE that has already
92719         been made, or -2 if there is a child doing the work.  Redo
92720         algorithm so that it is O(N) rather than O(N**2).  Optimize away
92721         ".", and treat ".." specially since it might stray back into
92722         already-created areas.  Use a subprocess if necessary.  New arg
92723         WD; all users changed.  MAKE_DIR function should now return 1
92724         if it creates a directory that is not readable.  Return -2 if
92725         a child process is spun off.
92726         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
92727         Adjust signature to match code.
92728         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
92729         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
92730         all users changed.
92731         * lib/savewd.c, lib/savewd.h: New files.
92733 2006-09-15  Jim Meyering  <jim@meyering.net>
92735         * modules/rename-dest-slash: New module.
92736         * MODULES.html.sh (posix_compat): Add it here.
92738         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
92740 2006-09-15  Jim Meyering  <jim@meyering.net>
92742         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
92743         file.
92745         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
92747 2006-09-15  Jim Meyering  <jim@meyering.net>
92749         * lib/rename-dest-slash.c (has_trailing_slash): Use
92750         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
92751         (rpl_rename_dest_slash): Perform the cheaper trailing slash
92752         test before testing whether SRC is a directory.
92753         Suggestions from Bruno Haible.
92755         Avoid a warning about an unused variable.
92756         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
92757         into the #ifdef block where it's used.
92759         * lib/rename-dest-slash.c: New file.
92761 2006-09-14  Bruno Haible  <bruno@clisp.org>
92763         * lib/allocsa.c: Include <config.h> unconditionally.
92764         * lib/asnprintf.c: Likewise.
92765         * lib/asprintf.c: Likewise.
92766         * lib/c-strcasecmp.c: Likewise.
92767         * lib/c-strcasestr.c: Likewise.
92768         * lib/c-strncasecmp.c: Likewise.
92769         * lib/c-strstr.c: Likewise.
92770         * lib/classpath.c: Likewise.
92771         * lib/clean-temp.c: Likewise.
92772         * lib/concatpath.c: Likewise.
92773         * lib/copy-file.c: Likewise.
92774         * lib/csharpcomp.c: Likewise.
92775         * lib/csharpexec.c: Likewise.
92776         * lib/execute.c: Likewise.
92777         * lib/fatal-signal.c: Likewise.
92778         * lib/findprog.c: Likewise.
92779         * lib/fwriteerror.c: Likewise.
92780         * lib/gl_array_list.c: Likewise.
92781         * lib/gl_array_oset.c: Likewise.
92782         * lib/gl_avltree_list.c: Likewise.
92783         * lib/gl_avltree_oset.c: Likewise.
92784         * lib/gl_avltreehash_list.c: Likewise.
92785         * lib/gl_carray_list.c: Likewise.
92786         * lib/gl_linked_list.c: Likewise.
92787         * lib/gl_linkedhash_list.c: Likewise.
92788         * lib/gl_list.c: Likewise.
92789         * lib/gl_oset.c: Likewise.
92790         * lib/gl_rbtree_list.c: Likewise.
92791         * lib/gl_rbtree_oset.c: Likewise.
92792         * lib/gl_rbtreehash_list.c: Likewise.
92793         * lib/imaxabs.c: Likewise.
92794         * lib/imaxdiv.c: Likewise.
92795         * lib/javacomp.c: Likewise.
92796         * lib/javaexec.c: Likewise.
92797         * lib/javaversion.c: Likewise.
92798         * lib/linebreak.c: Likewise.
92799         * lib/localcharset.c: Likewise.
92800         * lib/lock.c: Likewise.
92801         * lib/mbchar.c: Likewise.
92802         * lib/mbswidth.c: Likewise.
92803         * lib/mkdtemp.c: Likewise.
92804         * lib/pipe.c: Likewise.
92805         * lib/printf-args.c: Likewise.
92806         * lib/printf-parse.c: Likewise.
92807         * lib/progname.c: Likewise.
92808         * lib/progreloc.c: Likewise.
92809         * lib/readlink.c: Likewise.
92810         * lib/sh-quote.c: Likewise.
92811         * lib/stpcpy.c: Likewise.
92812         * lib/stpncpy.c: Likewise.
92813         * lib/strcasecmp.c: Likewise.
92814         * lib/strcasestr.c: Likewise.
92815         * lib/strcspn.c: Likewise.
92816         * lib/striconv.c: Likewise.
92817         * lib/strncasecmp.c: Likewise.
92818         * lib/strnlen1.c: Likewise.
92819         * lib/strstr.c: Likewise.
92820         * lib/strtok_r.c: Likewise.
92821         * lib/tls.c: Likewise.
92822         * lib/tmpdir.c: Likewise.
92823         * lib/unicodeio.c: Likewise.
92824         * lib/unsetenv.c: Likewise.
92825         * lib/vasnprintf.c: Likewise.
92826         * lib/vasprintf.c: Likewise.
92827         * lib/wait-process.c: Likewise.
92828         * lib/xallocsa.c: Likewise.
92829         * lib/xsetenv.c: Likewise.
92830         * lib/xstriconv.c: Likewise.
92832 2006-09-13  Simon Josefsson  <jas@extundo.com>
92834         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
92835         that internally, suggested by Ralf Wildenhues
92836         <Ralf.Wildenhues@gmx.de>.
92838 2006-09-13  Simon Josefsson  <jas@extundo.com>
92840         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
92841         @LIBOBJS@.
92842         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92844 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
92846         * lib/_fpending.c: Include <config.h> unconditionally, since we no
92847         longer worry about uses that don't define HAVE_CONFIG_H.
92848         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
92849         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
92850         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
92851         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
92852         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
92853         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
92854         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
92855         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
92856         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
92857         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
92858         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
92859         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
92860         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
92861         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
92862         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
92863         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
92864         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
92865         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
92866         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
92867         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
92868         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
92869         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
92870         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
92871         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
92872         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
92873         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
92874         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
92875         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
92876         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
92877         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
92878         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
92879         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
92880         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
92881         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
92882         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
92883         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
92884         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
92885         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
92886         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
92887         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
92888         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
92889         Likewise.
92891 2006-09-13  Eric Blake  <ebb9@byu.net>
92893         * lib/getopt.c: Fix typo in last commit.
92895 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92897         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
92898         dgettext.
92900 2006-09-12  Jim Meyering  <jim@meyering.net>
92902         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
92903         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
92904         Reported by Nelson H. F. Beebe.
92906 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
92908         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
92909         program_invocation_name and program_invocation_short_name are
92910         initialized.
92911         * lib/argp-namefrob.h: Move declarations of program_invocation_name
92912         and program_invocation_short_name to argp.h, so they are visible
92913         to user programs.
92914         * lib/argp.h: Likewise
92916 2006-09-10  Bruno Haible  <bruno@clisp.org>
92918         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
92919         m4/inttypes_h.m4, m4/uintmax_t.m4.
92921 2006-09-10  Bruno Haible  <bruno@clisp.org>
92923         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
92924         gl_AC_TYPE_UINTMAX_T.
92926 2006-09-10  Bruno Haible  <bruno@clisp.org>
92928         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
92930 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
92932         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
92933         convention.  Text proposed by Bruno Haible.
92934         (struct argp_option): Document the use of N_() wrappers.
92936         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
92937         '\v', and translate the two parts separately, instead of feeding
92938         the whole string to gettext.  This allows to exclude
92939         '\v' from the strings visible to the translator by writing doc
92940         strings as N_("..") "\v" N_("..").
92942 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
92944         * config/srclist.txt: Undo latest change; the bug was fixed.
92946 2006-09-09  Bruno Haible  <bruno@clisp.org>
92948         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
92949         assignments if building a library without libtool.
92950         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
92951         in func_emit_lib_Makefile_am.
92952         (func_import): When building a static library libfoo.a, arrange to
92953         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
92954         (func_create_testdir): Likewise.
92955         * modules/gc (configure.ac, Makefile.am): If building statically,
92956         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
92957         * modules/iconvme (configure.ac, Makefile.am): Likewise.
92958         * modules/striconv (configure.ac, Makefile.am): Likewise.
92959         Based on a suggestion by Ralf Wildenhues.
92961 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92963         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
92964         Check for unistd.h too, since Autoconf doesn't assume POSIX.
92965         Also:
92967         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92968         Add year_2050_test to catch glibc bug 2821
92969         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
92971         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92972         Prefer #ifdef to #if.
92974         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
92975         Return from 'main' instead of calling 'exit'.
92977 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92979         * lib/mktime.c (guess_time_tm): Fix bug where mktime
92980         returned the maximum time_t value rather than (time_t) -1.
92981         Problem originally reported by William Bardwell
92982         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
92984         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
92985         Moved to here ...
92986         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
92987         ... from here.
92989 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92991         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
92992         2821 is fixed.
92994 2006-09-08  Jim Meyering  <jim@meyering.net>
92996         Don't make generated files read-only.  That would bother too many
92997         people.  However, do retain the ability to work when targets are
92998         read-only: remove the destination and temporary files before writing
92999         them (when generated via sed or echo), or by using the -f option for
93000         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
93001         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93002         * modules/byteswap, modules/configmake, modules/fcntl:
93003         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93004         * modules/localcharset, modules/netinet_in, modules/poll:
93005         * modules/stdbool, modules/stdint, modules/sys_select:
93006         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93008 2006-09-08  Jim Meyering  <jim@meyering.net>
93010         Avoid new build failure on FreeBSD 6.0.
93011         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
93012         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
93013         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
93015 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93017         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
93019 2006-09-07  Jim Meyering  <jim@meyering.net>
93021         Fix global typo in last change: use chmod u-w, not chmod u-x.
93022         Spotted by Paul Eggert and Bruce Korb.
93023         * modules/alloca-opt, modules/argz, modules/arpa_inet:
93024         * modules/byteswap, modules/configmake, modules/fcntl:
93025         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
93026         * modules/localcharset, modules/netinet_in, modules/poll:
93027         * modules/stdbool, modules/stdint, modules/sys_select:
93028         * modules/sys_socket, modules/sys_stat, modules/sysexits:
93030 2006-09-06  Jim Meyering  <jim@meyering.net>
93032         Make generated files be read-only.
93033         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
93034         Ensure that each generated file is now read-only.
93035         * modules/argz: Likewise.
93036         * modules/arpa_inet: Likewise.
93037         * modules/byteswap: Likewise.
93038         * modules/configmake: Likewise.
93039         * modules/fcntl: Likewise.
93040         * modules/fnmatch: Likewise.
93041         * modules/getopt: Likewise.
93042         * modules/glob: Likewise.
93043         * modules/inttypes: Likewise.
93044         * modules/netinet_in: Likewise.
93045         * modules/poll: Likewise.
93046         * modules/stdbool: Likewise.
93047         * modules/stdint: Likewise.
93048         * modules/sys_select: Likewise.
93049         * modules/sys_socket: Likewise.
93050         * modules/sys_stat: Likewise.
93051         * modules/sysexits: Likewise.
93052         * modules/localcharset: Same as above, but continue using temporary
93053         file named "t-$@" (why different?) rather than the "$@-t" used
93054         everywhere else.
93056         * modules/sysexits (Makefile.am): Replace literal occurrences
93057         of "sysexit.h" more readable, and more consistent, "$@".
93059 2006-09-06  Bruno Haible  <bruno@clisp.org>
93061         * modules/striconv: New file.
93062         * modules/xstriconv: New file.
93063         * MODULES.html.sh (Internationalization functions): Add striconv,
93064         xstriconv.
93066 2006-09-06  Bruno Haible  <bruno@clisp.org>
93068         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
93069         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
93070         not using libtool correctly.
93072 2006-09-06  Bruno Haible  <bruno@clisp.org>
93074         * lib/striconv.h: New file.
93075         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
93076         iconvstring.c.
93077         * lib/xstriconv.h: New file.
93078         * lib/xstriconv.c: New file.
93080 2006-09-06  Bruno Haible  <bruno@clisp.org>
93082         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
93083         lib_..._LDFLAGS.
93085 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93087         * lib/argz_.h: Sync from Libtool.
93089         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
93090                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93092         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
93094 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
93096         * modules/trim: New file.
93098 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
93100         * lib/trim.h: New file.
93101         * lib/trim.c: New file.
93103 2006-09-05  Bruno Haible  <bruno@clisp.org>
93105         * MODULES.html.sh (String handling): Add trim.
93107 2006-09-04  Karl Berry  <karl@gnu.org>
93109         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
93110         until next release.
93112 2006-09-03  Bruno Haible  <bruno@clisp.org>
93114         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
93115         correctly.
93117 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93119         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
93120         not gl_GETLOADAVG.  Omit unneeded semicolons.
93121         Problems reported by Ralf Wildenhues in
93122         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
93123         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
93124         at the end, which is the usual gnulib style.
93126         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
93127         of doing all the work ourselves.
93128         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
93129         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
93131 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93133         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
93134         Problem reported by Ralf Wildenhues in
93135         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
93137         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
93138         HAVE_STRUCT_STATFS_F_FSTYPENAME.
93140 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
93142         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
93143         yesterday's patch by changing test -n to test -z.
93145 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93147         * modules/getloadavg (Files): Add m4/getloadavg.m4.
93148         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
93149         the former is now obsolescent.
93151         * modules/chdir-long (Depends-on): Add fcntl.
93153 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93155         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
93156         obsolescent, and programs should use gnulib instead.
93157         * m4/getloadavg.m4: New file, with contents taken from Autoconf
93158         but with prefixes changed.
93160 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
93162         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
93163         or stdbool.h, because they might not exist while configuring.
93165         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
93166         Don't include unistd.h or limits.h; not needed, since chdir-long.h
93167         does that for us.
93168         (O_DIRECTORY): Remove.
93170 2006-08-31  Eric Blake  <ebb9@byu.net>
93172         * gnulib-tool: Don't let emacs change spaces to TAB.
93174 2006-08-31  Bruno Haible  <bruno@clisp.org>
93176         * gnulib-tool: When calling func_import more than once, do it in a
93177         subshell.
93178         Reported by Eric Blake <ebb9@byu.net>.
93180 2006-08-31  Bruno Haible  <bruno@clisp.org>
93182         * gnulib-tool (nl): Remove variable.
93183         (sed_transform_lib_file): Use more robust test for config-h module.
93184         (func_import): Fix typo in 2006-08-25 patch.
93186 2006-08-31  Bruno Haible  <bruno@clisp.org>
93188         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
93189         specified, augment Makefile.am variables instead of assigning them.
93191 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93193         Work around a bug in both the Linux and SunOS 64-bit kernels:
93194         nanosleep mishandles sleeps for longer than 2**31 seconds.
93195         Problem reported by Frank v Waveren in
93196         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
93197         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
93198         Check for nanosleep bug.
93199         (LIB_NANOSLEEP): Append clock_gettime library if needed.
93201 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93203         Work around a bug in both the Linux and SunOS 64-bit kernels:
93204         nanosleep mishandles sleeps for longer than 2**31 seconds.
93205         Problem reported by Frank v Waveren in
93206         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
93207         * lib/nanosleep.c (BILLION): New constant.
93208         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
93209         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
93210         implementation.
93212 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93214         * modules/nanosleep (Depends-on): Add gettime.
93216 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
93217         and Simon Josefsson  <jas@extundo.com>
93218         and Oskar Liljeblad  <oskar@osk.mine.nu>
93220         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
93221         * gnulib-tool (func_import): New license type 'unmodifiable license
93222         text'.
93223         * modules/fdl: Use it.  Longer description.
93224         * module/gpl, module/lgpl: New files.
93226 2006-08-30  Jim Meyering  <jim@meyering.net>
93228         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
93229         shadowing the parameter.
93231 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93233         Sync from Libtool:
93235         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93237         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
93238         sharing with gnulib.  Report by Eric Blake.
93240 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93242         * modules/isapipe: New file.
93243         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
93245 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93247         * modules/configmake (Makefile.am): Add a comment, and omit
93248         the CONFIGMAKE_ prefix from generated macro names.  Suggested
93249         by Bruno Haible.
93251 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93253         * m4/isapipe.m4: New file.
93255 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93257         * lib/isapipe.c, lib/isapipe.h: New files.
93259 2006-08-29  Jim Meyering  <jim@meyering.net>
93261         * modules/configmake (Makefile.am): Make configmake.h depend on
93262         Makefile.  Otherwise, a stale configmake.h could hang around.
93264 2006-08-29  Eric Blake  <ebb9@byu.net>
93266         * lib/error.c (error_at_line, print_errno_message): Match libc, after
93267         resolution of upstream bug 3044.
93269 2006-08-29  Bruno Haible  <bruno@clisp.org>
93271         * modules/localcharset (Depends-on): Add configmake.
93272         (Makefile.am): Remove setting of LIBDIR through DEFS.
93274 2006-08-29  Bruno Haible  <bruno@clisp.org>
93276         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
93277         defined.
93279 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93281         * modules/fcntl: New file.
93282         * modules/chdir-safer (Depends-on): Add fcntl.
93283         * modules/fts: Likewise.
93284         * modules/mkdir-p: Likewise.
93286         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
93287         This undoes the most recent change, since we're now addressing the
93288         problem in a different way.
93290         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
93291         into output, since the output might be called Makefile.am even
93292         if $makefile_name is something different.
93293         (func_import): Use $makefile_am rather than
93294         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
93295         empty.
93297         * modules/inttypes (Files): Add m4/inttypes-h.m4.
93299 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93301         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
93302         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
93303         recent change to stdint.m4, since we're now addressing the problem in a
93304         different way.
93306 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93308         * m4/fcntl_h.m4: New file.
93310 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93312         * lib/fcntl_.h: New file.
93313         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
93314         the fcntl module.
93315         * lib/dirchownmod.c: Likewise.
93316         * lib/fts.c: Likewise.
93318         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
93319         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
93320         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
93321         just before including <inttypes.h>, to avoid circular inclusion.
93323 2006-08-28  Jim Meyering  <jim@meyering.net>
93325         * doc/visibility.texi: Actually read and correct the grammar of the
93326         sentence affected by yesterday's change.
93328 2006-08-28  Eric Blake  <ebb9@byu.net>
93330         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
93331         needs wrapper.
93333 2006-08-28  Eric Blake  <ebb9@byu.net>
93335         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
93337 2006-08-28  Eric Blake  <ebb9@byu.net>
93339         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
93341 2006-08-28  Bruno Haible  <bruno@clisp.org>
93343         * modules/c-strstr: New file, from GNU gettext.
93344         * MODULES.html.sh (String handling): Add c-strstr.
93346 2006-08-28  Bruno Haible  <bruno@clisp.org>
93348         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
93349         macros.
93350         Reported by Eric Blake.
93352 2006-08-28  Bruno Haible  <bruno@clisp.org>
93354         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
93355         (VASNPRINTF): Return a string of length > INT_MAX without failing.
93356         * lib/vasprintf.c: Include errno.h, limits.h.
93357         (EOVERFLOW): New fallback definition.
93358         (vasprintf): Test here whether the string length is > INT_MAX.
93359         * lib/vsnprintf.c: Include errno.h, limits.h.
93360         (EOVERFLOW): New fallback definition.
93361         (vsnprintf): Fix bug when generated string was too long for the buffer.
93362         Test here whether the string length is > INT_MAX.
93364 2006-08-28  Bruno Haible  <bruno@clisp.org>
93366         * lib/inttypes_.h (SCNX*): Remove definitions.
93367         Reported by Eric Blake.
93369 2006-08-28  Bruno Haible  <bruno@clisp.org>
93371         * lib/c-strstr.h: New file, from GNU gettext.
93372         * lib/c-strstr.c: New file, from GNU gettext.
93374 2006-08-28  Bruno Haible  <bruno@clisp.org>
93376         * gnulib-tool: Reorder some statements.
93378 2006-08-28  Bruno Haible  <bruno@clisp.org>
93380         * gnulib-tool: New option --makefile-name.
93381         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
93382         $makefile_name.
93383         (func_import): Write $makefile_name to the cache file, and read it from
93384         there unless explicitly specified. Use $makefile_name as file name
93385         instead of Makefile.am. Adjust the recommendations accordingly.
93387 2006-08-28  Bruno Haible  <bruno@clisp.org>
93389         * gnulib-tool (func_verify_module): Check against misapplying patch.
93391 2006-08-28  Bruno Haible  <bruno@clisp.org>
93393         * gnulib-tool (func_relativize, func_relconcat): New functions.
93394         Give an error if --local-dir is given with --update.
93395         Remove trailing slashes from $local_gnulib_dir.
93396         (func_import): Store the relativized $local_gnulib_dir in
93397         gnulib-cache.m4, and read it from there if not specified explicitly.
93399 2006-08-28  Bruno Haible  <bruno@clisp.org>
93401         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
93402         is the current directory. Respect also $local_gnulib_dir.
93404 2006-08-28  Bruno Haible  <bruno@clisp.org>
93405             Simon Josefsson  <jas@extundo.com>
93407         BeOS portability.
93408         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
93410 2006-08-27  Jim Meyering  <jim@meyering.net>
93412         * doc/visibility.texi: Remove duplicate word: "pointer".
93414 2006-08-26  Bruno Haible  <bruno@clisp.org>
93416         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
93417         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
93418         (Makefile.am): Create inttypes.h from inttypes_.h.
93419         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
93421         * modules/imaxabs: New file.
93423         * modules/imaxdiv: New file.
93425 2006-08-26  Bruno Haible  <bruno@clisp.org>
93427         * m4/inttypes.m4: New file.
93428         * m4/_inttypes_h.m4: Remove file.
93429         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
93430         PRI_MACROS_BROKEN.
93431         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
93433         * m4/imaxabs.m4: New file.
93435         * m4/imaxdiv.m4: New file.
93437 2006-08-26  Bruno Haible  <bruno@clisp.org>
93439         * lib/inttypes_.h: New file.
93440         * lib/inttypes.h: Remove file.
93441         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
93443         * lib/imaxabs.c: New file.
93445         * lib/imaxdiv.c: New file.
93447 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93449         New config-h module, so that "make" output needn't be cluttered
93450         by -DHAVE_CONFIG_H.
93451         * MODULES.html.sh (Support for building libraries and executables):
93452         Add config-h.
93453         * modules/config-h: New file.
93454         * gnulib-tool (nl, sed_transform_lib_file): New vars.
93455         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
93456         the config-h module is used.
93458         New configmake module, so that "make" output needn't be cluttered
93459         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
93460         * MODULES.html.sh (Support for building libraries and executables):
93461         Add configmake.
93462         * modules/configmake: New file.
93464 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93466         * m4/config-h.m4: New file.
93468 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93470         * config/srclist.txt: Add elisp-comp.
93472 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93474         * MODULES.html.sh (Support for building libraries and executables):
93475         Add elisp-comp.
93476         * build-aux/elisp-comp: New file.
93477         * modules/elisp-comp: New file.
93479 2006-08-24  Bruno Haible  <bruno@clisp.org>
93481         * gnulib-tool (func_create_testdir): Use non-default values of
93482         sourcebase and m4base.
93484 2006-08-24  Bruno Haible  <bruno@clisp.org>
93486         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
93487         HTML structure.
93489 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
93491         * modules/openat (Depends-on): Add lchown.
93493 2006-08-23  Bruno Haible  <bruno@clisp.org>
93495         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
93496         of gl_LOCK_EARLY instead of gl_LOCK.
93498 2006-08-23  Bruno Haible  <bruno@clisp.org>
93500         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
93501         on OSF/1 to no.
93502         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
93504 2006-08-23  Bruno Haible  <bruno@clisp.org>
93506         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
93507         as unusable.
93509         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
93510         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
93511         (gl_LOCK): New macro.
93513 2006-08-22  Simon Josefsson  <jas@extundo.com>
93515         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
93516         to md5 module.
93518 2006-08-22  Simon Josefsson  <jas@extundo.com>
93520         * MODULES.html.sh: Add "Support for maintaining and release
93521         projects".
93523         * build-aux/gnupload: New file, from coreutils.
93525 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93527         Avoid the need for AC_LIBSOURCES in m4 macros.
93528         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
93529         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
93530         * modules/check-version (EXTRA_DIST): Add check-version.h.
93531         * modules/crc (EXTRA_DIST): Add crc.h.
93532         * modules/des (EXTRA_DIST): Add des.h.
93533         * modules/gc (EXTRA_DIST): Add gc.h.
93534         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
93535         * modules/getline (EXTRA_DIST): Add getline.h.
93536         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
93537         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
93538         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
93539         * modules/md2 (EXTRA_DIST): Add md2.h.
93540         * modules/md4 (EXTRA_DIST): Add md4.h.
93541         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
93542         * modules/read-file (EXTRA_DIST): Add read-file.h.
93543         * modules/readline (EXTRA_DIST): Add readline.h.
93544         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
93545         rijndael-api-fst.h.
93547 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93549         * m4/rijndael.m4 (gl_ARCFOUR):
93550         * m4/arctwo.m4 (gl_ARCTWO):
93551         * m4/check-version.m4 (gl_CHECK_VERSION):
93552         * m4/crc.m4 (gl_CRC):
93553         * m4/des.m4 (gl_DES):
93554         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
93555         * m4/gc.m4 (gl_GC):
93556         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
93557         * m4/getline.m4 (gl_FUNC_GETLINE):
93558         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
93559         * m4/hmac-md5.m4 (gl_HMAC_MD5):
93560         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
93561         * m4/md2.m4 (gl_MD2):
93562         * m4/md4.m4 (gl_MD4):
93563         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
93564         * m4/read-file.m4 (gl_FUNC_READ_FILE):
93565         * m4/readline.m4 (gl_FUNC_READLINE):
93566         * m4/rijndael.m4 (gl_RIJNDAEL):
93567         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
93568         to get the necessary .h files and whatnot.
93570 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93572         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
93573         gnulib rather than the other way around.
93574         * config/srclistvars.sh (COREUTILS): Remove.
93576 2006-08-22  Jim Meyering  <jim@meyering.net>
93578         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
93580         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
93582 2006-08-22  Eric Blake  <ebb9@byu.net>
93584         * modules/regexprops-generic: New file.
93585         * MODULES.html.sh (Support for building documentation): List it.
93587 2006-08-22  Eric Blake  <ebb9@byu.net>
93589         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
93590         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
93591         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
93592         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
93594 2006-08-22  Bruno Haible  <bruno@clisp.org>
93596         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
93597         and lib_LTLIBRARIES like the other lib_* variables.
93599 2006-08-22  Bruno Haible  <bruno@clisp.org>
93601         * build-aux/x-to-1.in: New file, from GNU gettext.
93603 2006-08-22  Bruno Haible  <bruno@clisp.org>
93605         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
93606         <utmpx.h> exists.
93608 2006-08-22  Bruno Haible  <bruno@clisp.org>
93610         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
93611         <utmpx.h> exists.
93613 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93615         BeOS portability.
93616         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
93617         exist.
93618         Problem reported by Bruno Haible.
93620 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93622         Avoid the need for AC_LIBSOURCES in m4 macros.
93623         * modules/acl (EXTRA_DIST): Add acl.h.
93624         * modules/argmatch (Files): Add m4/argmatch.m4.
93625         (configure.ac): Add gl_ARGMATCH.
93626         (EXTRA_DIST): Renamed from lib_SOURCES, for
93627         consistency with the other modules.  Remove argmatch.c.
93628         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
93629         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
93630         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
93631         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
93632         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
93633         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
93634         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
93635         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
93636         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
93637         * modules/closeout (EXTRA_DIST): Add closeout.h.
93638         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
93639         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
93640         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
93641         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
93642         dirname.h; remove basename.c and stripslash.c.
93643         * modules/exclude (EXTRA_DIST): Add exclude.h.
93644         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
93645         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
93646         * modules/file-type (EXTRA_DIST): Add file-type.h.
93647         * modules/filemode (EXTRA_DIST): Add filemode.h.
93648         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
93649         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
93650         * modules/fpending (EXTRA_DIST): Add __fpending.h.
93651         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
93652         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
93653         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
93654         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
93655         * modules/getdate (EXTRA_DIST): Add getdate.c.
93656         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
93657         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
93658         * modules/getpass (EXTRA_DIST): Add getpass.h.
93659         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
93660         * modules/group-member (EXTRA_DIST): Add group-member.h.
93661         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
93662         * modules/hash (EXTRA_DIST): Add hash.h.
93663         * modules/human (EXTRA_DIST): Add human.h.
93664         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
93665         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
93666         * modules/lchown (EXTRA_DIST): Add lchown.h.
93667         * modules/long-options (EXTRA_DIST): Add long-options.h.
93668         * modules/lstat (EXTRA_DIST): Add lstat.h.
93669         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
93670         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
93671         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
93672         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
93673         * modules/memxor (EXTRA_DIST): Add memxor.h.
93674         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
93675         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
93676         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
93677         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
93678         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
93679         * modules/physmem (EXTRA_DIST): Add physmem.h.
93680         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
93681         * modules/posixver (EXTRA_DIST): Add posixver.h.
93682         * modules/quote (EXTRA_DIST): Add quote.h.
93683         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
93684         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
93685         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
93686         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
93687         regex_internal.h regexec.c.
93688         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
93689         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
93690         * modules/same (EXTRA_DIST): Add same.h.
93691         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
93692         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
93693         * modules/savedir (EXTRA_DIST): Add savedir.h.
93694         * modules/sha1 (EXTRA_DIST): Add sha1.h.
93695         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
93696         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
93697         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
93698         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
93699         * modules/strdup (EXTRA_DIST): Add strdup.h.
93700         * modules/strftime (EXTRA_DIST): Add strftime.h.
93701         * modules/strndup (EXTRA_DIST): Add strndup.h.
93702         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
93703         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
93704         * modules/time_r (EXTRA_DIST): Add time_r.h.
93705         * modules/timespec (EXTRA_DIST): Add timespec.h.
93706         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
93707         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
93708         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
93709         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
93710         * modules/userspec (EXTRA_DIST): Add userspec.h.
93711         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
93712         * modules/utimens (EXTRA_DIST): Add utimens.h.
93713         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
93714         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
93715         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
93716         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
93717         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
93718         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
93719         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
93720         * modules/yesno (EXTRA_DIST): Add yesno.h.
93722 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93724         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
93726         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
93727         * m4/dev-ino.m4, same-inode.m4: Remove.
93729         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
93730         * m4/acl.m4 (AC_FUNC_ACL):
93731         * m4/backupfile.m4 (gl_BACKUPFILE):
93732         * m4/c-strtod.m4 (gl_C99_STRTOLD):
93733         * m4/canon-host.m4 (gl_CANON_HOST):
93734         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
93735         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
93736         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
93737         * m4/cloexec.m4 (gl_CLOEXEC):
93738         * m4/close-stream.m4 (gl_CLOSE_STREAM):
93739         * m4/closeout.m4 (gl_CLOSEOUT):
93740         * m4/dirfd.m4 (gl_FUNC_DIRFD):
93741         * m4/dirname.m4 (gl_DIRNAME):
93742         * m4/exclude.m4 (gl_EXCLUDE):
93743         * m4/exitfail.m4 (gl_EXITFAIL):
93744         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
93745         * m4/file-type.m4 (gl_FILE_TYPE):
93746         * m4/filemode.m4 (gl_FILEMODE):
93747         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
93748         * m4/fpending.m4 (gl_FUNC_FPENDING):
93749         * m4/fprintftime.m4 (gl_FPRINTFTIME):
93750         * m4/fts.m4 (gl_FUNC_FTS):
93751         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
93752         * m4/getdate.m4 (gl_GETDATE):
93753         * m4/gethrxtime.m4 (gl_GETHRXTIME):
93754         * m4/getpagesize.m4 (gl_GETPAGESIZE):
93755         * m4/getpass.m4 (gl_FUNC_GETPASS):
93756         * m4/gettime.m4 (gl_GETTIME):
93757         * m4/getugroups.m4 (gl_GETUGROUPS):
93758         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
93759         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
93760         * m4/hard-locale.m4 (gl_HARD_LOCALE):
93761         * m4/hash.m4 (gl_HASH):
93762         * m4/idcache.m4 (gl_IDCACHE):
93763         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
93764         * m4/lchown.m4 (gl_FUNC_LCHOWN):
93765         * m4/long-options.m4 (gl_LONG_OPTIONS):
93766         * m4/lstat.m4 (gl_FUNC_LSTAT):
93767         * m4/md5.m4 (gl_MD5):
93768         * m4/memcasecmp.m4 (gl_MEMCASECMP):
93769         * m4/memcoll.m4 (gl_MEMCOLL):
93770         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
93771         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
93772         * m4/memxor.m4 (gl_MEMXOR):
93773         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
93774         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
93775         * m4/modechange.m4 (gl_MODECHANGE):
93776         * m4/mountlist.m4 (gl_MOUNTLIST):
93777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93778         * m4/openat.m4 (gl_FUNC_OPENAT):
93779         * m4/pathmax.m4 (gl_PATHMAX):
93780         * m4/physmem.m4 (gl_PHYSMEM):
93781         * m4/posixtm.m4 (gl_POSIXTM):
93782         * m4/posixver.m4 (gl_POSIXVER):
93783         * m4/quote.m4 (gl_QUOTE):
93784         * m4/quotearg.m4 (gl_QUOTEARG):
93785         * m4/readtokens.m4 (gl_READTOKENS):
93786         * m4/readutmp.m4 (gl_READUTMP):
93787         * m4/regex.m4 (gl_REGEX):
93788         * m4/safe-read.m4 (gl_SAFE_READ):
93789         * m4/safe-write.m4 (gl_SAFE_WRITE):
93790         * m4/same.m4 (gl_SAME):
93791         * m4/save-cwd.m4 (gl_SAVE_CWD):
93792         * m4/savedir.m4 (gl_SAVEDIR):
93793         * m4/settime.m4 (gl_SETTIME):
93794         * m4/sha1.m4 (gl_SHA1):
93795         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
93796         * m4/stat-macros.m4 (gl_STAT_MACROS):
93797         * m4/stat-time.m4 (gl_STAT_TIME):
93798         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
93799         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
93800         * m4/strdup.m4 (gl_FUNC_STRDUP):
93801         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
93802         * m4/strndup.m4 (gl_FUNC_STRNDUP):
93803         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
93804         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
93805         * m4/time_r.m4 (gl_TIME_R):
93806         * m4/timespec.m4 (gl_TIMESPEC):
93807         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
93808         * m4/unlinkdir.m4 (gl_UNLINKDIR):
93809         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
93810         * m4/userspec.m4 (gl_USERSPEC):
93811         * m4/utimecmp.m4 (gl_UTIMECMP):
93812         * m4/utimens.m4 (gl_UTIMENS):
93813         * m4/xalloc.m4 (gl_XALLOC):
93814         * m4/xgetcwd.m4 (gl_XGETCWD):
93815         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
93816         * m4/xreadlink.m4 (gl_XREADLINK):
93817         * m4/xstrtod.m4 (gl_XSTRTOD):
93818         * m4/yesno.m4 (gl_YESNO):
93819         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
93820         to get the necessary .h files and whatnot.
93822 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
93823             Bruno Haible  <bruno@clisp.org>
93825         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
93826         /bin/sh understanding of '!' conditional negation.
93828 2006-08-21  Jim Meyering  <jim@meyering.net>
93830         * modules/openat (Depends-on): Really alphabetize.
93832         * modules/acl (Depends-on): Add error and quote.
93834         * check-module (find_included_lib_files): Add at-func.c to the
93835         ok-to-include-more-than-once white list.
93837         * modules/openat (Depends-on): Add lstat.  Alphabetize.
93839 2006-08-21  Bruno Haible  <bruno@clisp.org>
93841         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93842         Emit a pkgdata_DATA variable only if some snippets add contents to it.
93843         Reported by Martin Lambers <marlam@marlam.de>.
93845 2006-08-21  Bruno Haible  <bruno@clisp.org>
93847         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
93848         specify an installation location, don't emit a noinst_LIBRARIES or
93849         noinst_LTLIBRARIES assignment.
93851 2006-08-21  Bruno Haible  <bruno@clisp.org>
93853         BeOS portability.
93854         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
93855         BeOS has mbrtowc() but no <wctype.h>.
93857 2006-08-21  Bruno Haible  <bruno@clisp.org>
93859         BeOS portability.
93860         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
93861         exist.
93863 2006-08-21  Bruno Haible  <bruno@clisp.org>
93865         BeOS portability.
93866         * lib/mbchar.h: Include <wctype.h> only if it exists.
93868 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
93870         Remove files that are no longer needed by their respective modules.
93871         * m4/obstack.m4: Remove.
93872         * m4/strerror_r.m4: Remove.
93873         * m4/uint32_t.m4: Remove.
93874         * m4/uintptr_t.m4: Remove.
93875         * m4/ullong_max.m4: Remove.
93876         * m4/xstrtoimax.m4: Remove.
93877         * m4/xstrtoumax.m4: Remove.
93879         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
93880         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
93881         dependencies now capture this.
93883         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
93884         Do not use AC_LIBSOURCES, since gnulib modules now do this.
93885         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
93886         * m4/human.m4 (gl_HUMAN): Likewise.
93887         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
93888         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
93890         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
93892         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
93893         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
93894         stdint.
93895         * m4/human.m4 (gl_HUMAN): Likewise.
93896         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
93897         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
93898         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
93899         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
93900         * m4/xstrtol (gl_XSTRTOL): Likewise.
93902         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
93903         AC_TYPE_LONG_LONG_INT.
93904         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
93905         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
93906         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
93907         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
93909         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
93910         on stdbool.
93912         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
93913         (gl_PREREQ_XSTRTOUL): Remove.
93915         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
93917         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
93918         mode.
93920 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
93922         Add and change modules to make it easier for coreutils to use
93923         gnulib-tool.
93924         * modules/backupfile (Files): Remove m4/d-ino.m4.
93925         (Depends-on): Add d-ino.
93926         * modules/cycle-check (Depends-on): Add stdint.
93927         (lib_SOURCES): Add cycle-check.h.
93928         * modules/d-ino: New module.
93929         * modules/d-type: New module.
93930         * modules/error (Files): Remove m4/strerror_r.m4.
93931         * modules/filemode (Files): Add m4/st_dm_mode.m4.
93932         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
93933         m4/inttypes_h.m4, m4/uintmax_t.m4.
93934         (Depends-on): Add stdint.
93935         (lib_SOURCES): Add fsusage.h.
93936         * modules/getcwd (Files): Remove d-ino.m4.
93937         (Depends-on): Add d-ino.
93938         * modules/getndelim2 (Depends-on): Add stdint.
93939         * modules/glob (Files): Remove m4/d-type.m4.
93940         (Depends-on): Add d-type.
93941         * modules/host-os: New module.
93942         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
93943         m4/inttypes_h.m4, m4/uintmax_t.m4.
93944         * Depends-on: Add stdint.
93945         (lib_SOURCES): Add human.h.
93946         * modules/inttostr (Files): Remove m4/intmax_t.m4,
93947         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
93948         m4/uintmax_t.m4, m4/ulonglong.m4.
93949         (Depends-on): Add stdint.
93950         (EXTRA_DIST): Add inttostr.h.
93951         * modules/lchmod: New module.
93952         * modules/link-follow: New module.
93953         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
93954         (Depends-on): Add lchmod.
93955         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
93956         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
93957         (Depends-on): Add stdint.
93958         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
93959         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
93960         (Depends-on): Add stdint.
93961         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
93962         * modules/perl: New module.
93963         * modules/regex (Depends-on): Add stdint.
93964         * modules/rmdir-errno: New module.
93965         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
93966         m4/intmax_t.m4.
93967         (Depends-on): Add stdint.
93968         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
93969         m4/uintmax_t.m4.
93970         (Depends-on): Add stdint.
93971         * modules/unlink-busy: New module.
93972         * modules/utimecmp (Depends-on): Add stdint.
93973         * modules/uptime: New module.
93974         * modules/winsz-ioctl: New module.
93975         * modules/winsz-termios: New module.
93976         * modules/xnanosleep (Depends-on): Add nanosleep.
93977         * modules/ullong_max: Remove.
93978         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
93979         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
93980         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
93981         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
93982         (Depends-on): Add inttypes.
93983         (lib_SOURCES): Add xstrtol.h.
93984         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
93985         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
93986         * MODULES.html.sh: Move 'assert' into the assert section.
93987         Move 'dummy' into the linking section.
93988         Remove ullong_max.
93989         Add section for compatibility checks for POSIX:2001 functions,
93990         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
93991         winsz-ioctl, and winsz-termios into it.
93992         Add lchmod.
93993         Add top-level Misc section and put host-os, perl, and uptime
93994         into it.
93996 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
93998         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
93999         now assume the stdint module.  Do not include inttypes.h.
94000         * lib/fsusage.h: Likewise.
94001         * lib/getndelim2.c: Likewise.
94002         * lib/human.h: Likewise.
94003         * lib/inttostr.h: Likewise.
94004         * lib/obstack.c: Likewise.
94005         * lib/regex_internal.h: Likewise.
94006         * lib/tempname.c: Likewise.
94007         * lib/utimecmp.c: Likewise.
94008         * lib/xstrtol.h: Likewise.
94010         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
94012         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
94013         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
94014         * lib/xtime.h: Likewise.
94016 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94018         * modules/openat (Files): Add lib/fchmodat.c.
94019         Fixes problem reported by Jay Youngman.
94021 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
94023         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
94024         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
94026 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
94027             Bruno Haible  <bruno@clisp.org>
94029         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
94030         and is a script that invokes bison. Tighten the code. Add comments.
94032 2006-08-18  Jim Meyering  <jim@meyering.net>
94034         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
94035         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
94036         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
94037         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
94039 2006-08-18  Bruno Haible  <bruno@clisp.org>
94041         * modules/bison-i18n: New file.
94042         * MODULES.html.sh (Internationalization functions): Add it.
94044 2006-08-18  Bruno Haible  <bruno@clisp.org>
94046         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
94047         sys/statvfs.h. When getmntinfo was found, check its declaration and
94048         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
94050 2006-08-18  Bruno Haible  <bruno@clisp.org>
94052         * m4/bison-i18n.m4: New file, from bison.
94054 2006-08-18  Bruno Haible  <bruno@clisp.org>
94056         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
94057         (ME_DUMMY): Treat "kernfs" as a dummy.
94058         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
94060 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
94062         Update from coreutils.
94064         2006-08-15  Jim Meyering  <jim@meyering.net>
94066         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
94068         2006-01-17  Jim Meyering  <jim@meyering.net>
94070         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
94072         2006-01-11  Jim Meyering  <jim@meyering.net>
94074         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
94075         Check for the lchmod function.
94077 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
94079         Update from coreutils.
94081         * lib/__fpending.h: Add copyright notice.
94082         * lib/fprintftime.h: Likewise.
94083         * lib/savedir.c: Use (C) in copyright notice.
94084         * lib/savedir.h: Likewise.
94086         2006-08-15  Jim Meyering  <jim@meyering.net>
94088         * lib/at-func.c: New file, with the logic of all emulated at-functions.
94089         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
94090         in support of the EXPECTED_ERRNO macro.
94091         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
94092         definitions.  Instead, define the appropriate symbols and include
94093         "at-func.c".
94094         * lib/mkdirat.c (mkdirat): Likewise.
94095         * lib/fchmodat.c (fchmodat): Likewise.
94096         (ENOSYS): Remove definition.
94097         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
94098         it.  Don't include "unistd--.h" -- it wasn't ever used.
94100         2006-01-17  Jim Meyering  <jim@meyering.net>
94102         Rewrite fts.c not to change the current working directory,
94103         by using openat, fstatat, fdopendir, etc..
94105         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
94106         (HAVE_OPENAT_SUPPORT): Define.
94107         [_LIBC] (fchdir): Don't undef or define; no longer used.
94108         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
94109         Now, this `function' always succeeds, and consumes its file descriptor
94110         parameter -- so callers must not close such FDs.  Update callers.
94111         (diropen_fd, opendirat, cwd_advance_fd): New functions.
94112         (diropen): Add parameter, SP.  Adjust all callers.
94113         Implement using diropen_fd, rather than open.
94114         (fts_open): Initialize new member, fts_cwd_fd.
94115         Remove fts_rft-setting code.
94116         (fts_close): Close fts_cwd_fd, if necessary.
94117         (__opendir2): Define in terms of opendir or opendirat,
94118         depending on whether the FST_NOCHDIR flag is set.
94119         (fts_build): Since fts_safe_changedir consumes its FD, and since
94120         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
94121         and close the dup'd file descriptor upon failure.
94122         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
94123         (fts_safe_changedir): Tweak semantics to reflect that this function
94124         now calls cwd_advance_fd and hence consumes its FD argument.
94125         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
94126         [struct FTS] (fts_rft): Remove now-unused member.
94127         [struct FTS] (fts_cycle.state): Improve comment.
94129         * lib/openat.c (openat_needs_fchdir): New function.
94130         * lib/openat.h (openat_needs_fchdir): Declare it.
94132 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
94134         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
94135         Problem and fix reported by Pádraig Brady in
94136         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
94138 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94140         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
94142 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94144         * lib/memcoll.c (memcoll): Optimize for the common case where the
94145         arguments are bytewise equal.
94147 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
94149         * doc/regexprops-generic.texi: Add a copyright notice.
94151 2006-08-15  Bruno Haible  <bruno@clisp.org>
94153         * modules/tmpdir (License): Change to LGPL.
94155 2006-08-15  Bruno Haible  <bruno@clisp.org>
94157         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
94158         module.
94160 2006-08-14  Simon Josefsson  <jas@extundo.com>
94162         * config/srclist.txt: Add gnupload.
94164 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94166         Change copyright notice from LGPL 2 to GPL 2, since that's the
94167         standard form used in the gnulib repository.
94168         * tests/test-lock.c: Likewise.
94169         * tests/test-stdint.c: Likewise.
94170         * tests/test-tls.c: Likewise.
94172         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
94173         prelude-manager.  User shorter URLs for GNU projects, without '?'.
94174         Add copyright notice.
94176         * check-module: Add copyright notice.  Output a copyright
94177         notice if "--version" is specified.
94178         * modules/COPYING: New file.
94179         * tests/test-getaddrinfo.c: Add copyright notice.
94180         * tests/test-verify.c: Likewise.
94182 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94184         Change copyright notice from LGPL 2 to GPL 2, since that's the
94185         standard form used in the gnulib repository.
94186         * lib/lock.c: LGPL -> GPL.
94187         * lib/lock.h: Likewise.
94188         * lib/strnlen1.c: Likewise.
94189         * lib/strnlen1.h: Likewise.
94190         * lib/tls.c: Likewise.
94191         * lib/tls.h: Likewise.
94192         * lib/tmpdir.c: Likewise.
94194         * lib/TODO: Remove; this belongs only in coreutils.
94196 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94198         Add copyright notices to long-enough files that lack them, since
94199         otherwise the files aren't clearly free.  Use the same notice that
94200         getdate.texi already uses.
94201         * doc/alloca-opt.texi: Add copyright notice.
94202         * doc/alloca.texi: Likewise.
94203         * doc/ctime.texi: Likewise.
94204         * doc/functions.texi: Likewise.
94205         * doc/gcd.texi: Likewise.
94206         * doc/gnulib-tool.texi: Likewise.
94207         * doc/inet_ntoa.texi: Likewise.
94208         * doc/visibility.texi: Likewise.
94210         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
94211         * doc/quote.texi: Add copyright notice.
94213         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
94214         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
94215         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
94216         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
94217         is now obsolete, and give a pointer to the Sun list.
94218         Add copyright notice.
94220 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94222         * config/srclistvars.sh: Add copyright notice.
94224 2006-08-14  Eric Blake  <ebb9@byu.net>
94226         Import the following change from libc:
94228         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
94230         Upstream bug 2997.
94231         * lib/misc/error.c: Add space between program name and message if file
94232         name is missing.
94234 2006-08-12  Karl Berry  <karl@gnu.org>
94236         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
94237         remove, these originate in gnulib now.
94239 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94241         * doc/Makefile (standards.info standards.html standards.dvi):
94242         Also depend on make-stds.texi.
94244 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
94246         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
94247         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
94249         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
94250         in wchar_t.  Problem reported by Eric Blake.
94252         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
94253         LEN is smaller than SIZE.  Suggested by Bruno Haible.
94254         Also, help the compiler to keep LEN in a register.
94256 2006-08-11  Eric Blake  <ebb9@byu.net>
94258         * users.txt: Sort.  Add tar.
94260 2006-08-11  Bruno Haible  <bruno@clisp.org>
94262         * users.txt: New file.
94264 2006-08-11  Bruno Haible  <bruno@clisp.org>
94266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
94267         before <wchar.h>. Needed for OSF/1 and BSD/OS.
94269 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94271         * modules/snprintf (Depends-on): Remove minmax.
94272         (Maintainer): Add self and Bruno.
94274 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94276         * lib/.cppi-disable: Add snprintf.h, socket_.h.
94277         * lib/snprintf.c: Include <errno.h> and <limits.h>.
94278         (EOVERFLOW): Define if the system does not.
94279         Do not include "minmax.h"; it wasn't used.
94280         (snprintf): Don't assume size_t promotes to an unsigned type.
94281         Fix bug when generated string was too long for the buffer: the
94282         buffer's contents are supposed to be the initial prefix of the
94283         output.  Don't assume vasnprintf returns EOVERFLOW if the size
94284         exceeds INT_MAX; do the check ourselves.
94286         Import the following changes from libc:
94288         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
94290         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
94291         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
94292         set wc to the byte which couldn't be converted.
94293         (re_string_reconstruct): Don't clear valid_raw_len before calling
94294         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
94295         tip_context using re_string_context_at.
94297         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
94299         * lib/posix/regex.h: g++ still cannot handled [restrict].
94301         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
94303         * lib/posix/regex.h: Remove special handling for VMS.
94305 2006-08-10  Jim Meyering  <jim@meyering.net>
94307         * modules/same-inode: New module.
94308         * modules/dev-ino: New module.
94309         * modules/cycle-check: Depend on these modules, rather than simply
94310         including their .h files.
94311         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
94312         required via m4/cycle-check.m4.
94313         * modules/same: Depend on new same-inode module, rather than
94314         including same-inode.h.
94315         * modules/chdir-safer: New file.
94317         * modules/chown (Depends-on): Add stat-macros.
94319 2006-08-10  Jim Meyering  <jim@meyering.net>
94321         * m4/cycle-check.m4: New file.
94322         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
94323         * m4/dev-ino.m4, m4/same-inode.m4: New files.
94325 2006-08-10  Eric Blake  <ebb9@byu.net>
94327         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
94328         in from original proposal.
94330 2006-08-10  Eric Blake  <ebb9@byu.net>
94331         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94333         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
94334         namespace.
94336 2006-08-10  Bruno Haible  <bruno@clisp.org>
94338         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
94339         as well.
94341 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94343         Sync from coreutils.
94345         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
94347         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
94348         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
94350 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94352         * modules/restrict: Remove; no longer needed now that we assume
94353         Autoconf 2.59 or later.
94354         * MODULES.html.sh: Remove 'restrict'.
94355         * modules/argp (Depends-on): Remove 'restrict'.
94356         * modules/base64 (Depends-on): Likewise.
94357         * modules/gc (Depends-on): Likewise.
94358         * modules/getaddrinfo (Depends-on): Likewise.
94359         * modules/glob (Depends-on): Likewise.
94360         * modules/inet_ntop (Depends-on): Likewise.
94361         * modules/inet_pton (Depends-on): Likewise.
94362         * modules/memxor (Depends-on): Likewise.
94363         * modules/regex (Depends-on): Likewise.
94364         * modules/strtok_r (Depends-on): Likewise.
94365         * modules/time_r (Depends-on): Likewise.
94367 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94369         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
94370         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
94371         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94372         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
94373         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
94374         * m4/memxor.m4 (gl_MEMXOR): Likewise.
94375         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
94376         gl_C_RESTRICT replaced by AC_C_RESTRICT.
94378         Merge from coreutils.
94379         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
94380         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
94381         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
94382         * m4/time_r.m4 (gl_TIME_R): Likewise.
94384 2006-08-09  Karl Berry  <karl@gnu.org>
94386         * config/srclist.txt: no more gettext-tools, per Bruno.
94388 2006-08-08  Eric Blake  <ebb9@byu.net>
94390         * modules/verror: New module.
94391         * MODULES.html.sh: Document it.
94393 2006-08-08  Eric Blake  <ebb9@byu.net>
94395         * lib/verror.h, lib/verror.c: New files.
94397 2006-08-08  Eric Blake  <ebb9@byu.net>
94399         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
94400         verror_at_line output complies with GNU Coding Standards even when
94401         file is NULL.
94403 2006-08-07  Bruno Haible  <bruno@clisp.org>
94405         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
94406         versions of AIX.
94407         Reported by Ralf Wildenhues.
94409 2006-08-07  Bruno Haible  <bruno@clisp.org>
94411         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
94412         in an AC_DEFUN. Needed so that the autoconf snippets can use
94413         AC_REQUIRE.
94415 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94417         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94418         Initialize pkgdata_DATA.
94419         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
94420         overriding it.
94422 2006-08-06  Eric Blake  <ebb9@byu.net>
94424         * lib/error.h: Fold in some upstream changes from glibc.
94425         * lib/error.c: Likewise.
94427 2006-08-04  Bruno Haible  <bruno@clisp.org>
94429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94430         Make the mostlyclean-local rule depend on mostlyclean-generic.
94431         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
94433 2006-07-31  Bruno Haible  <bruno@clisp.org>
94435         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
94436         <stdlib.h>, <string.h>.
94438 2006-07-30  Bruno Haible  <bruno@clisp.org>
94440         * modules/readlink (License): Change to LGPL.
94442 2006-07-30  Bruno Haible  <bruno@clisp.org>
94444         * modules/javaversion (Makefile.am): Distribute javaversion.java and
94445         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
94446         set PKGDATADIR to point to it.
94448 2006-07-30  Bruno Haible  <bruno@clisp.org>
94450         * modules/csharpexec (configure.ac): Comment out macro invocation.
94451         * modules/javaexec (configure.ac): Likewise.
94452         * modules/javacomp-script (configure.ac): Likewise.
94454         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
94456 2006-07-30  Bruno Haible  <bruno@clisp.org>
94458         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
94459         linked-list.
94461 2006-07-30  Bruno Haible  <bruno@clisp.org>
94463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
94465 2006-07-30  Bruno Haible  <bruno@clisp.org>
94467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94468         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
94469         get removed.
94471 2006-07-29  Bruno Haible  <bruno@clisp.org>
94473         Make it possible for gnulib-tool to work with locally modified or
94474         augmented gnulib repositories.
94475         * gnulib-tool (func_usage): Document --local-dir option.
94476         (local_gnulib_dir): New variable.
94477         Handle --local-dir option.
94478         (func_lookup_file): New function.
94479         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
94480         (func_get_description, func_get_filelist, func_get_description,
94481         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
94482         func_get_automake_snippet, func_get_include_directive,
94483         func_get_license, func_get_maintainer): Use func_lookup_file.
94484         (func_import, func_create_testdir): Use func_lookup_file.
94486 2006-07-29  Bruno Haible  <bruno@clisp.org>
94488         * modules/setenv (Depends-on): Add unistd.
94490 2006-07-29  Bruno Haible  <bruno@clisp.org>
94492         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
94494 2006-07-29  Bruno Haible  <bruno@clisp.org>
94496         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
94498 2006-07-29  Bruno Haible  <bruno@clisp.org>
94500         * gnulib-tool (import, update): If there is no Makefile.am, look at
94501         aclocal.m4, instead of bailing out.
94503 2006-07-29  Bruno Haible  <bruno@clisp.org>
94505         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
94506         Categorize the options by when they are useful.
94508 2006-07-29  Bruno Haible  <bruno@clisp.org>
94510         * gnulib-tool (func_usage): Document option --no-libtool.
94511         Handle option --no-libtool.
94512         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
94513         for changed semantics of $libtool variable.
94514         (func_import): Likewise. If libtool is not used, show this through
94515         an option --no-libtool.
94516         (func_create_testdir): Update.
94518 2006-07-29  Bruno Haible  <bruno@clisp.org>
94520         * gnulib-tool (func_import): Extend error message about missing
94521         --doc-base.
94523 2006-07-29  Bruno Haible  <bruno@clisp.org>
94525         * gnulib-tool (func_import): Don't create the $docbase directory if
94526         there is no file to store there.
94528 2006-07-29  Bruno Haible  <bruno@clisp.org>
94530         * gnulib-tool (autoconf_minversion): If a --dir option is given and
94531         relevant, look for configure.ac there, not in the current directory.
94532         Also use a simple search for AC_PREREQ, not "autoconf --trace".
94534 2006-07-29  Bruno Haible  <bruno@clisp.org>
94536         * gnulib-tool (SORT): New variable.
94537         (func_usage): Undocument --assume-autoconf option.
94538         Remove --assume-autoconf option handling.
94539         (autoconf_minversion): Determine from the contents of configure.ac.
94540         (func_import): Remove autoconf_minversion handling.
94541         Suggested by Eric Blake.
94543 2006-07-29  Bruno Haible  <bruno@clisp.org>
94545         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
94547 2006-07-29  Bruno Haible  <bruno@clisp.org>
94549         * config/srclist.txt (*setenv.[ch]): Remove rules.
94551 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94553         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
94555 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94557         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
94558         arpa/inet.h.
94560 2006-07-28  Simon Josefsson  <jas@extundo.com>
94562         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
94563         * modules/inet_pton (Depends-on): Likewise.
94565 2006-07-28  Simon Josefsson  <jas@extundo.com>
94567         * m4/netinet_in_h.m4: New file.
94569 2006-07-28  Simon Josefsson  <jas@extundo.com>
94571         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
94572         #include's.
94574 2006-07-28  Simon Josefsson  <jas@extundo.com>
94576         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
94577         #include's.
94579 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
94581         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
94582         setgid on directories only if they set these bits.
94583         * lib/modechange.h: Remove obsolete comment about masks.
94585 2006-07-28  Eric Blake  <ebb9@byu.net>
94587         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
94588         macro expansion.
94590 2006-07-28  Bruno Haible  <bruno@clisp.org>
94592         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
94594 2006-07-28  Bruno Haible  <bruno@clisp.org>
94596         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
94598 2006-07-28  Bruno Haible  <bruno@clisp.org>
94600         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94601         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94602         Define fallbacks.
94603         Avoids link error on FreeBSD 4.x.
94604         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94606         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
94607         encoding.
94608         * lib/mbswidth.c (iswcntrl): Likewise.
94610 2006-07-27  Bruno Haible  <bruno@clisp.org>
94612         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
94613         test.
94615 2006-07-27  Bruno Haible  <bruno@clisp.org>
94617         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
94618         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
94619         defined.
94621 2006-07-26  Eric Blake  <ebb9@byu.net>
94623         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
94625 2006-07-26  Eric Blake  <ebb9@byu.net>
94627         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
94628         like mingw that lack mkstemp.
94629         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
94630         avoid compilation warning on mingw.
94632 2006-07-26  Bruno Haible  <bruno@clisp.org>
94634         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
94635         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
94636         INT_FAST*_MIN, INTPTR_MIN.
94638 2006-07-25  Bruno Haible  <bruno@clisp.org>
94640         * modules/version-etc (Depends-on): Add stdarg.
94642 2006-07-25  Bruno Haible  <bruno@clisp.org>
94644         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
94645         complex commands.
94647 2006-07-25  Bruno Haible  <bruno@clisp.org>
94649         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
94650         defined in <stdarg.h> or config.h.
94652 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
94654         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
94655         (gl_STDIO_SAFER): Remove.
94657 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
94659         * MODULES.html.sh (File stream based Input/Output):
94660         Add fopen-safer, tmpfile-safer; remove stdio-safer.
94661         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
94662         * modules/fopen-safer, modules/tmpfile-safer: New files.
94663         * modules/stdio-safer: Remove.
94665 2006-07-24  Bruno Haible  <bruno@clisp.org>
94667         * modules/tmpdir: New file.
94668         * MODULES.html.sh (File system functions): Add it.
94670 2006-07-24  Bruno Haible  <bruno@clisp.org>
94672         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
94673         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
94675 2006-07-24  Bruno Haible  <bruno@clisp.org>
94677         * modules/clean-temp: New file.
94679 2006-07-24  Bruno Haible  <bruno@clisp.org>
94681         * m4/tmpdir.m4: New file, from GNU gettext.
94683 2006-07-24  Bruno Haible  <bruno@clisp.org>
94685         * lib/tmpdir.h: New file, from GNU gettext.
94686         * lib/tmpdir.c: New file, from GNU gettext.
94688 2006-07-24  Bruno Haible  <bruno@clisp.org>
94690         * lib/clean-temp.h: New file, from GNU gettext.
94691         * lib/clean-temp.c: New file, from GNU gettext.
94693 2006-07-23  Eric Blake  <ebb9@byu.net>
94695         * modules/stdio-safer (Files): Add tmpfile-safer.c.
94696         (Depends-on): Add binary-io.
94698 2006-07-23  Eric Blake  <ebb9@byu.net>
94700         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
94702 2006-07-23  Eric Blake  <ebb9@byu.net>
94704         * lib/tmpfile-safer.c: New file.
94705         * lib/stdio-safer.h (fopen_safer): Add prototype.
94706         * lib/stdio--.h (tmpfile): Make safer.
94708 2006-07-23  Bruno Haible  <bruno@clisp.org>
94710         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
94711         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
94712         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
94713         gl_linked_remove_at): Use it.
94715 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94716         and Simon Josefsson <jas@extundo.com>
94718         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
94720         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
94722 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94724         * modules/close-stream: New file.
94725         * modules/closeout (Description): Make it clear that it exits
94726         with a diagnostic on error.
94727         (Depends-on): Add close-stream.  Remove fpending, stdbool.
94728         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
94730 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94732         * m4/close-stream.m4: New file.
94734 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94736         * lib/close-stream.c, lib/close-stream.h: New files.
94738 2006-07-22  Bruno Haible  <bruno@clisp.org>
94740         Merge from GNU gettext 0.15.
94742         2006-05-01  Bruno Haible  <bruno@clisp.org>
94744                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
94746         2006-07-22  Bruno Haible  <bruno@clisp.org>
94748                 * modules/javaversion: New file.
94749                 * MODULES.html.sh (Java): Add javaversion.
94751         2006-03-12  Bruno Haible  <bruno@clisp.org>
94753                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
94755         2005-12-04  Bruno Haible  <bruno@clisp.org>
94757                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
94758                 (untested).
94760         2006-06-21  Bruno Haible  <bruno@clisp.org>
94762                 Avoid warnings from recent versions of mcs.
94763                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
94764                 -o, -L, -r any more. Use options documented since mcs-1.0
94765                 instead. Similarly for -g.
94767         2005-12-04  Bruno Haible  <bruno@clisp.org>
94769                 * build-aux/csharpcomp.sh.in: Suffix for resources is
94770                 .resources, not .resource.
94772         2005-07-09  Bruno Haible  <bruno@clisp.org>
94774                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
94775                 add a .dll suffix.
94776                 Reported by Mark Junker <mjscod@gmx.de>.
94778         2006-07-22  Bruno Haible  <bruno@clisp.org>
94780                 * modules/gettext: Upgrade to gettext-0.15.
94781                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
94782                 m4/visibility.m4.
94783                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
94785 2006-07-22  Bruno Haible  <bruno@clisp.org>
94787         Merge from GNU gettext 0.15.
94789         2006-03-25  Bruno Haible  <bruno@clisp.org>
94791                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
94793         2006-07-21  Bruno Haible  <bruno@clisp.org>
94795                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
94796                 "1.1".
94798         2006-05-09  Bruno Haible  <bruno@clisp.org>
94800                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
94801                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
94802                 for the conftestver execution.
94804         2006-05-01  Bruno Haible  <bruno@clisp.org>
94806                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
94807                 optional target-version argument. Verify that the compiler
94808                 groks source of the specified source-version, or add -source
94809                 option as necessary. Verify that the compiler produces
94810                 bytecode in the specified target-version, or add -target and
94811                 -source options as necessary. Make the result of the test
94812                 available as variable CONF_JAVAC. Also log error output in
94813                 config.log.
94815         2006-03-11  Bruno Haible  <bruno@clisp.org>
94817                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
94819         2006-05-09  Bruno Haible  <bruno@clisp.org>
94821                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
94822                 CLASSPATH_SEPARATOR to a semicolon.
94824         2006-03-12  Bruno Haible  <bruno@clisp.org>
94826                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
94827                 available as variable CONF_JAVA, for subsequent autoconf
94828                 tests. Also log error output in config.log.
94830         2006-07-19  Bruno Haible  <bruno@clisp.org>
94832                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
94833                 that getline works on glibc2 systems. Needed to avoid trouble
94834                 in relocatable.c.
94835                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
94837         2005-12-04  Bruno Haible  <bruno@clisp.org>
94839                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
94840                 launcher (untested).
94842         2005-12-04  Bruno Haible  <bruno@clisp.org>
94844                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
94846         2006-07-22  Bruno Haible  <bruno@clisp.org>
94848                 * gettext.m4: Update from GNU gettext-0.15.
94849                 * nls.m4: Likewise.
94850                 * po.m4: Likewise.
94851                 * inttypes-pri.m4: Likewise.
94852                 * inttypes-h.m4: Renamed from inttypes.m4.
94853                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
94855 2006-07-22  Bruno Haible  <bruno@clisp.org>
94857         Merge from GNU gettext 0.15.
94859         2005-07-05  Bruno Haible  <bruno@clisp.org>
94861                 * printf-args.c (printf_fetchargs): Work around broken
94862                 definition of wint_t on mingw.
94864         2005-02-12  Bruno Haible  <bruno@clisp.org>
94866                 * xallocsa.h: Add extern "C" for C++.
94868         2006-05-17  Bruno Haible  <bruno@clisp.org>
94870                 Cygwin portability.
94871                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
94873         2006-04-30  Bruno Haible  <bruno@clisp.org>
94875                 * progreloc.c: Include <mach-o/dyld.h> if available.
94876                 (find_executable): Use _NSGetExecutablePath when possible.
94878         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
94880                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
94881                 function.
94883         2005-12-29  Bruno Haible  <bruno@clisp.org>
94885                 * progreloc.c (set_program_name_and_installdir): Fix
94886                 compilation error.
94888         2005-12-04  Bruno Haible  <bruno@clisp.org>
94890                 Cygwin portability.
94891                 * progreloc.c: Include <windows.h> also on Cygwin.
94892                 (find_executable): Add support for Cygwin.
94893                 (set_program_name_and_installdir): Handle also platforms with
94894                 nonempty EXEEXT.
94896         2006-07-11  Bruno Haible  <bruno@clisp.org>
94898                 * javacomp.c: Fix a comment.
94899                 Reported by Jim Meyering.
94901         2006-04-30  Bruno Haible  <bruno@clisp.org>
94903                 * javacomp.h (compile_java_class): Add source_version,
94904                 target_version arguments.
94905                 * javacomp.c: Rewritten to choose only a compiler that
94906                 respects the specified source_version and target_version.
94908         2006-06-27  Bruno Haible  <bruno@clisp.org>
94910                 Assume correct S_ISDIR macro.
94911                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
94913         2006-07-22  Bruno Haible  <bruno@clisp.org>
94915                 * javaversion.h: New file, from GNU gettext.
94916                 * javaversion.c: New file, from GNU gettext.
94917                 * javaversion.java: New file, from GNU gettext.
94918                 * javaversion.class: New file, from GNU gettext.
94920         2006-05-17  Bruno Haible  <bruno@clisp.org>
94922                 Cygwin portability.
94923                 * javaexec.c (execute_java_class): Test for jview program
94924                 also on Cygwin.
94926         2006-04-09  Bruno Haible  <bruno@clisp.org>
94928                 * fatal-signal.c: Don't include string.h.
94929                 (at_fatal_signal): Use a copying loop instead of memcpy.
94931         2005-12-04  Bruno Haible  <bruno@clisp.org>
94933                 * csharpexec.c: Add support for 'clix' launcher (untested).
94934                 (execute_csharp_using_sscli): New function.
94935                 (execute_csharp_program): Call it.
94937         2006-06-21  Bruno Haible  <bruno@clisp.org>
94939                 Avoid warnings from recent versions of mcs.
94940                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
94941                 -o, -L, -r any more. Use options documented since mcs-1.0
94942                 instead. Similarly for -g.
94944         2005-07-09  Bruno Haible  <bruno@clisp.org>
94946                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
94947                 add a .dll suffix.
94948                 Reported by Mark Junker <mjscod@gmx.de>.
94950         2006-06-17  Bruno Haible  <bruno@clisp.org>
94952                 * config.charset: Update for NetBSD 3.0.
94954         2006-05-17  Bruno Haible  <bruno@clisp.org>
94956                 Cygwin portability.
94957                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
94959         2006-05-16  Bruno Haible  <bruno@clisp.org>
94961                 * localcharset.c [CYGWIN]: Include <windows.h>.
94962                 (get_charset_aliases): For Cygwin, return the same CPxxx
94963                 aliases list as under WIN32.
94964                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
94965                 the environment variables. Fall back to GetACP().
94967         2006-04-05  Bruno Haible  <bruno@clisp.org>
94969                 * config.charset: Update Juan Manuel Guerrero's address.
94971         2005-02-12  Bruno Haible  <bruno@clisp.org>
94973                 * allocsa.h: Add extern "C" for C++.
94975         2005-02-10  Bruno Haible  <bruno@clisp.org>
94977                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
94978                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
94980         2006-07-22  Bruno Haible  <bruno@clisp.org>
94982                 * gettext.h: Update to GNU gettext-0.15.
94984 2006-07-22  Bruno Haible  <bruno@clisp.org>
94986         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
94987         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
94988         lib-prefix.m4, longdouble.m4, ssize_t.m4.
94990 2006-07-21  Eric Blake  <ebb9@byu.net>
94992         * modules/stdlib-safer: New file.
94993         * MODULES.html.sh (File stream based Input/Output): Add
94994         stdlib-safer.
94996 2006-07-21  Eric Blake  <ebb9@byu.net>
94998         * lib/stdlib-safer.h: New file from coreutils, required by
94999         stdlib--.h.
95001 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
95003         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
95005 2006-07-20  Bruno Haible  <bruno@clisp.org>
95007         * gnulib-tool: Recognize new option --assume-autoconf.
95008         (autoconf_minversion): New variable.
95009         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
95011 2006-07-20  Bruno Haible  <bruno@clisp.org>
95013         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
95015 2006-07-19  Derek R. Price  <derek@ximbiot.com>
95017         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
95018         Reindent and repaginate.
95020 2006-07-19  Derek Price  <derek@ximbiot.com>
95022         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
95023         Correct grammar.
95025 2006-07-17  Bruno Haible  <bruno@clisp.org>
95027         * modules/list: New file.
95028         * modules/array-list: New file.
95029         * modules/carray-list, modules/carray-list-tests: New files.
95030         * modules/linked-list, modules/linked-list-tests: New files.
95031         * modules/avltree-list, modules/avltree-list-tests: New files.
95032         * modules/rbtree-list, modules/rbtree-list-tests: New files.
95033         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
95034         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
95035         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
95036         * modules/oset: New file.
95037         * modules/array-oset: New file.
95038         * modules/avltree-oset, modules/avltree-oset-tests: New files.
95039         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
95040         * tests/test-carray_list.c: New file.
95041         * tests/test-linked_list.c: New file.
95042         * tests/test-avltree_list.c: New file.
95043         * tests/test-rbtree_list.c: New file.
95044         * tests/test-linkedhash_list.c: New file.
95045         * tests/test-avltreehash_list.c: New file.
95046         * tests/test-rbtreehash_list.c: New file.
95047         * tests/test-avltree_oset.c: New file.
95048         * tests/test-rbtree_oset.c: New file.
95049         * MODULES.html.sh (Container data structures): New section.
95051 2006-07-17  Bruno Haible  <bruno@clisp.org>
95053         * m4/gl_list.m4: New file.
95055 2006-07-17  Bruno Haible  <bruno@clisp.org>
95057         * lib/gl_list.h: New file.
95058         * lib/gl_list.c: New file.
95059         * lib/gl_array_list.h: New file.
95060         * lib/gl_array_list.c: New file.
95061         * lib/gl_carray_list.h: New file.
95062         * lib/gl_carray_list.c: New file.
95063         * lib/gl_linked_list.h: New file.
95064         * lib/gl_linked_list.c: New file.
95065         * lib/gl_anylinked_list1.h: New file.
95066         * lib/gl_anylinked_list2.h: New file.
95067         * lib/gl_avltree_list.h: New file.
95068         * lib/gl_avltree_list.c: New file.
95069         * lib/gl_anyavltree_list1.h: New file.
95070         * lib/gl_anyavltree_list2.h: New file.
95071         * lib/gl_rbtree_list.h: New file.
95072         * lib/gl_rbtree_list.c: New file.
95073         * lib/gl_anyrbtree_list1.h: New file.
95074         * lib/gl_anyrbtree_list2.h: New file.
95075         * lib/gl_anytree_list1.h: New file.
95076         * lib/gl_anytree_list2.h: New file.
95077         * lib/gl_linkedhash_list.h: New file.
95078         * lib/gl_linkedhash_list.c: New file.
95079         * lib/gl_anyhash_list1.h: New file.
95080         * lib/gl_anyhash_list2.h: New file.
95081         * lib/gl_avltreehash_list.h: New file.
95082         * lib/gl_avltreehash_list.c: New file.
95083         * lib/gl_rbtreehash_list.h: New file.
95084         * lib/gl_rbtreehash_list.c: New file.
95085         * lib/gl_anytreehash_list1.h: New file.
95086         * lib/gl_anytreehash_list2.h: New file.
95088         * lib/gl_oset.h: New file.
95089         * lib/gl_oset.c: New file.
95090         * lib/gl_array_oset.h: New file.
95091         * lib/gl_array_oset.c: New file.
95092         * lib/gl_avltree_oset.h: New file.
95093         * lib/gl_avltree_oset.c: New file.
95094         * lib/gl_rbtree_oset.h: New file.
95095         * lib/gl_rbtree_oset.c: New file.
95096         * lib/gl_anytree_oset.h: New file.
95098 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95100         * m4/mkancesdirs.m4: New file.
95101         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
95102         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
95103         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
95104         it.
95106 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95108         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
95109         * lib/mkancesdirs.h: New files.
95110         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
95111         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
95112         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
95113         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
95114         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
95115         callers changed.  Revamp internals significantly, by not
95116         attempting to create directories that are temporarily more
95117         permissive than the final results.  Do not attempt to use
95118         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
95119         This removes some race conditions, fixes some bugs, and simplifies
95120         things.  Use new dirchownmod function to do owner and mode changes.
95121         * lib/mkdir-p.h: Likewise.
95122         * lib/modechange.c (octal_to_mode): New function.
95123         (struct mode_change): New member mentioned.
95124         (make_node_op_equals): New arg mentioned.  All callers changed.
95125         (mode_compile): Keep track of which mode bits the user has explicitly
95126         mentioned.
95127         (mode_adjust): New arg DIR, so that we implement the X op correctly.
95128         New arg PMODE_BITS, to keep track of which mode bits the user
95129         mentioned; it treats S_ISUID and S_ISGID speciall.
95130         All callers changed.
95131         * lib/modechange.h: Likewise.
95133 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
95135         * MODULES.html.sh: Add mkancestors.
95136         * modules/mkancesdirs: New module.
95137         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
95138         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
95139         The chdir-safer and afs files are now orphans; I'll remove them
95140         unless someone speaks up.
95141         Add lib/dirchownmod.c, lib/dirchownmod.h.
95142         (Depends-on): Remove alloca, chown, save-cwd, dirname.
95143         Add lchown, mkancesdirs.
95144         (Maintainer): Add self.
95146 2006-07-15  Karl Berry  <karl@gnu.org>
95148         * gnulib-tool: help message wording/arrangement.
95150 2006-07-14  Simon Josefsson  <jas@extundo.com>
95152         * doc/gnulib.texi (Libtool and Windows): New section.
95154 2006-07-12  Simon Josefsson  <jas@extundo.com>
95156         * modules/gendocs (License): Fix license, approved by Karl.
95158 2006-07-12  Eric Blake  <ebb9@byu.net>
95160         * MODULES.html.sh: Add gendocs.
95162 2006-07-11  Eric Blake  <ebb9@byu.net>
95164         * modules/fdl: New module, to install doc/fdl.texi.
95165         * MODULES.html.sh: Add new section for documentation modules.
95166         * gnulib-tool: Avoid space-tab.
95167         (--doc-base): New option, to manage files from doc.
95169 2006-07-11  Eric Blake  <ebb9@byu.net>
95171         * m4/absolute-header.m4: Fix comments to match recent change.
95173 2006-07-11  Eric Blake  <ebb9@byu.net>
95175         * gnulib-tool: List --doc-base before --tests-base.
95177 2006-07-11  Derek R. Price  <derek@ximbiot.com>
95179         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
95181 2006-07-11  Bruno Haible  <bruno@clisp.org>
95183         * README: Mention where to put documentation.
95185 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95187         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
95189 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
95191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
95192         to stdint.m4.
95194 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
95196         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
95197         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
95198         "no/such/file/stdint.h" when there is no such file, so that
95199         the resulting C code can be parsed by dodgy compilers.
95200         Problems reported by Bob Proulx.
95202 2006-07-10  Derek R. Price  <derek@ximbiot.com>
95204         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
95205         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
95206         macros into the GNU _D_EXACT_NAMLEN.
95207         * lib/savedir.c:  Likewise.
95208         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
95210 2006-07-10  Derek R. Price  <derek@ximbiot.com>
95211         and Paul Eggert  <eggert@cs.ucla.edu>
95213         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
95214         * m4/savedir.m4:
95215         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
95216         macros into the GNU _D_EXACT_NAMLEN.
95218 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95220         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
95221         around the absolute name, to work around a problem with the HP-UX
95222         11.23 native C compiler, reported by Bob Proulx.
95224 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95226         * doc/maintain.texi, make-stds.texi: Sync from
95227         <http://savannah.gnu.org/projects/gnustandards>.
95229 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95231         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
95233 2006-07-09  Jim Meyering  <jim@meyering.net>
95235         * m4/glob.m4: Remove a doubled word in a comment.
95237 2006-07-09  Jim Meyering  <jim@meyering.net>
95239         * lib/argp-pv.c: Remove a doubled word in a comment.
95240         * lib/check-version.c (check_version): Likewise.
95241         * lib/javacomp.c (compile_java_class): Likewise.
95243 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
95245         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
95246         for the benefit of people using Autoconf 2.60.  If you want to
95247         support older Autoconf versions you can copy m4/onceonly_2_57.m4
95248         (or m4/onceonly.m4, if pre-2.57) manually.
95250 2006-07-08  Jim Meyering  <jim@meyering.net>
95252         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
95253         comment.
95254         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
95255         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
95256         comment.
95258 2006-07-08  Jim Meyering  <jim@meyering.net>
95260         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
95262 2006-07-07  Simon Josefsson  <jas@extundo.com>
95264         * tests/test-crc.c: Change expected crc value, the test vector
95265         were probably computed using the old broken crc.c?
95267 2006-07-06  Simon Josefsson  <jas@extundo.com>
95269         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
95270         now the canonical place for the M4 file).
95272         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
95273         from the sys_socket dependency now.
95275         * modules/inet_pton (Files): Ditto.
95277         * modules/inet_ntop (Files): Ditto.
95279 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95281         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
95282         not gl_PREREQ_GETUSERSHELL.
95284 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95286         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
95287         with only one argument, for Autoconf 2.60.
95288         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
95289         expand to nothing, so add a shell command to avoid syntax error.
95290         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95292 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95294         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
95296 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95298         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
95299         no longer needed.  Check for isblank decl.
95300         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
95301         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
95302         of existence.
95304 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95306         * lib/getloadavg.c: Use __VMS, not VMS.
95307         * lib/getopt.c: Likewise.
95308         * lib/getpagesize.h: Likewise.
95309         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
95310         and probably does not work.
95312 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95314         * lib/.cppi-disable: Add wcwidth.
95315         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
95316         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
95317         (ISGRAPH): Remove.  All uses changed to isgraph.
95318         (FOLD) [!defined _LIBC]: Remove special case.
95319         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
95320         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
95321         HAVE_ISBLANK.
95322         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
95323         case.
95325 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
95327         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
95328         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
95329         brackets.  Other minor changes to suppress some compiler
95330         warnings.
95332 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95333         and Paul Eggert  <eggert@cs.ucla.edu>
95335         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
95336         of invoking obsolescent AC_HEADER_DIRENT macro.
95337         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
95338         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
95339         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
95340         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
95341         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
95342         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95343         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
95344         * m4/readdir.m4: Remove; no longer needed.
95346 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95347         and Paul Eggert  <eggert@cs.ucla.edu>
95349         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
95350         Don't worry about this obsolete case any more.
95351         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
95352         directories.
95353         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
95354         worry about this obsolete case any more.
95355         * lib/fts.c: Likewise.
95356         * lib/getcwd.c: Likewise.
95357         * lib/glob.h: Likewise.
95358         * lib/savedir.c: Likewise.
95360 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95362         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
95363         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
95364         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
95365         needed.
95366         All uses removed.
95367         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95368         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95369         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
95370         needed.
95371         * m4/getdate.m4 (gl_GETDATE): Likewise.
95372         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95373         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95374         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95375         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95376         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95377         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95378         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
95379         needed.
95381 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95383         * lib/memcasecmp.c: Include <limits.h>.
95384         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
95385         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
95386         Don't assume isdigit succeeds only on '0' through '9'.
95388 2006-07-05  Eric Blake  <ebb9@byu.net>
95390         * modules/getaddrinfo (Depends-on): Add snprintf.
95392 2006-07-05  Eric Blake  <ebb9@byu.net>
95394         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
95395         to avoid 'header present but could not be compiled' on cygwin.
95397 2006-07-05  Eric Blake  <ebb9@byu.net>
95399         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
95400         missing from netdb.h.
95401         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
95403 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95405         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
95406         no longer needed.
95407         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
95408         * m4/getdate.m4 (gl_GETDATE): Likewise.
95409         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95410         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95411         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95412         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95413         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95415 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95417         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
95418         All uses of is_space replaced by isspace.
95419         * lib/exit.h: Don't talk about STDC_HEADERS.
95420         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
95421         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
95422         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
95423         replaced by isprint etc.
95424         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
95425         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95426         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
95427         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
95428         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
95429         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95431 2006-07-05  Bruno Haible  <bruno@clisp.org>
95433         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
95434         the function exists, before testing against AIX.
95435         Reported by Martin Lambers <marlam@marlam.de>.
95437 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95439         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
95440         From Mark D. Baushke.
95442 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
95445         to the absolute name, not just one, to bypass Sun C 5.8's
95446         "warning: #include of /usr/include/... may be non-portable".
95448 2006-07-04  Eric Blake  <ebb9@byu.net>
95450         * modules/dirname-tests: New test module.
95451         * tests/test-dirname.c: New file, replacing dirname.c
95452         TEST_DIRNAME section that was recently deleted.
95454 2006-07-04  Bruno Haible  <bruno@clisp.org>
95456         Assume ANSI C header files and <ctype.h> functions.
95457         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
95458         (mbsnwidth): Use isprint, iscntrl instead.
95460 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95462         Merge from coreutils.
95463         * MODULES.html.sh: Add xstrtold.
95464         * modules/xstrtold: New file.
95465         * modules/cycle-check (Files): Add lib/same-inode.h.
95466         * modules/dirname (Files): Add m4/double-slash-root.m4.
95467         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
95468         * modules/mkdir-p (Files): Add lib/same-inode.h.
95469         * modules/same (Files): Add lib/same-inode.h.
95471 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95473         * m4/absolute-header.m4: Renamed from full-header-path.m4.
95474         This is to keep the terminology clean; POSIX talks about
95475         "absolute pathnames", not "full pathnames", but the GNU
95476         Coding Standards say to use "path" for something else;
95477         so use "absolute" to keep both sides happy.
95478         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
95479         Set gl_absolute_header, not gl_full_header_path.
95480         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
95481         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
95482         All uses changed.
95484         Merge from coreutils.
95486         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
95488         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
95489         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
95490         want to require the building of c-strtod.o.
95491         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
95492         needs -lm directly.
95493         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
95495         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
95497         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
95498         --as-needed option if available.  Problem reported by Albert Chin in
95499         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
95500         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
95501         cc merely issues a bunch of annoying warnings for --as-needed
95502         (this problem was reported by Bob Proulx).  Also, try linking with
95503         -lm to detect a bug in binutils 2.16 (this problem was reported
95504         by Ralf Wildenhues).
95506         2006-06-18  Jim Meyering  <jim@meyering.net>
95508         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
95509         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
95510         macro.
95511         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
95512         also check for glibc-2.4's abort-inducing bug.
95514         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
95515         Low-probability clean-up should be to use rmdir to get rid of
95516         the just-created directory, not unlink.
95518         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
95519         configure fail, and request a bug report to inform us about it.
95520         Add a comment that, barring reports to the contrary, in 2007 we'll
95521         assume ftruncate is universally available.
95523         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
95525         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
95527         2006-03-12  Jim Meyering  <jim@meyering.net>
95529         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
95530         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
95531         * m4/same.m4 (gl_SAME): Likewise.
95532         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
95534         2006-03-11  Eric Blake  <ebb9@byu.net>
95536         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
95537         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
95538         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
95539         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
95541 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95543         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
95544         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
95545         reported by Mark D. Baushke, one in
95546         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
95548         Merge from coreutils.
95550         * lib/.cppi-disable: Add stdint_.h.
95551         * lib/.cvsignore: Add stdint.h.
95553         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
95555         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
95556         both double and long double versions.
95557         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
95558         * lib/xstrtold.c: New file.
95559         * lib/xstrtod.h (xstrtold): New decl.
95561         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
95563         * lib/filemode.c (setst): Remove.
95564         (strmode): Rewrite to avoid setst.  This makes the code shorter,
95565         (arguably) clearer, and the generated code is a bit smaller on my
95566         Debian GNU/Linux stable x86 host.
95568         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
95570         * lib/filemode.c: Include "filemode.h" first, to test the interface.
95571         Assume that filemode.h includes sys/types.h and sys/stat.h.
95572         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
95573         (ftypelet): Reorder to put common cases first, for efficiency.
95574         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
95575         to do 'M'.
95576         (strmode): Renamed from mode_string, and now stores 12 bytes instead
95577         of 10, for compatibility with FreeBSD.  All callers changed.
95578         (filemodestring): Now stores 12 bytes instead of 10, and sets file
95579         types that can't be deduced solely from st_mode.  First arg is now a
95580         const pointer.
95581         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
95582         (strmode): Renamed from mode_string.
95583         (filemodestring): New decl.
95584         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
95585         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
95586         needed.
95587         (S_ISPORT, S_ISWHT): New macros, if not already defined.
95589         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
95591         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
95592         fsusage.h now does that.  Include fsusage.h first, to test interface.
95593         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
95594         at most one method (the old code could have generated decls that
95595         didn't conform to C89, not that this was ever exercised).
95596         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
95598         2006-03-19  Jim Meyering  <jim@meyering.net>
95600         Work even in a chroot where d_ino values for entries in "/"
95601         don't match the stat.st_ino values for the same names.
95602         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
95603         number, iterate through all entries again, using lstat instead.
95604         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
95605         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
95607         * lib/getcwd.c (__getcwd): Clarify a comment.
95608         Use memcpy in place of a call to strcpy.
95610         2006-03-12  Jim Meyering  <jim@meyering.net>
95612         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
95613         matches that of the current directory (which we're about to chdir ".."
95614         out of), then save the dev-ino of the parent, instead.
95616         * lib/same-inode.h (SAME_INODE): New file/macro.
95617         * lib/chdir-safer.c (SAME_INODE): Remove definition.
95618         Include "same-inode.h", instead.
95619         * lib/same.c: Likewise.
95620         * lib/cycle-check.h: Include "same-inode.h".
95621         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
95622         * lib/cycle-check.c (SAME_INODE): Remove definition.
95623         * lib/root-dev-ino.h: Include "same-inode.h".
95625         2006-03-11  Eric Blake  <ebb9@byu.net>
95627         * lib/same.c (same_name): s/base_name/last_component/
95628         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
95629         * lib/filenamecat.c (file_name_concat): Likewise.
95631         2006-03-11  Eric Blake  <ebb9@byu.net>,
95632                     Paul Eggert  <eggert@cs.ucla.edu>
95634         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
95635         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
95636         drive prefix.
95637         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
95638         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
95639         (last_component): New method.
95640         * lib/dirname.c (dir_len): Determine when drive letters need a
95641         subsequent slash.  Preserve // when it is special.
95642         (dir_name): Don't append dot when drive letter is absolute.
95643         [TEST_DIRNAME]: Move into a full-blown gnulib test.
95644         * lib/basename.c (base_name): New semantics - malloc the result.
95645         Preserve // when it is special.  Preserve relative files that look
95646         like drive letters.
95647         (base_len): Preserve // when it is special.
95648         (last_component): New method, similar to old base_name semantics.
95649         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
95650         base_name.  Strip redundant slashes from ///.
95652 2006-07-03  Jim Meyering  <jim@meyering.net>
95654         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
95655         macro is used before the first cycle_check call.
95657 2006-07-03  Eric Blake  <ebb9@byu.net>
95659         * modules/dirname (Depends-on): Add xstrndup.
95661 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
95663         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
95664         test cases, so that config.log is a bit easier to follow.
95666 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
95668         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
95669         both are 64 bits, since this seems to be the tradition, and this
95670         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
95671         we ever run into a host that prefers long long to long in this
95672         case, we'll need another configure-time test.  Problem reported by
95673         Jim Meyering.
95675 2006-07-02  Eric Blake  <ebb9@byu.net>
95677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
95679 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
95681         * modules/inttypes (Depends-on): No longer depends on stdint.
95682         * modules/stdint (Description): Say more about assumptions.
95683         Say that the fast types might differ.  Say macros are used.
95684         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
95685         (Makefile.am): Revise list of substituted symbols to match
95686         new stdint.m4.
95687         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
95688         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
95689         * tests/test-stdint.c (verify_same_types)
95690         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
95691         the code conforms to C99/C89.
95692         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
95693         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
95695 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
95697         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
95698         but fix a bug, by requiring at least 64 bits.
95699         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
95700         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
95701         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
95702         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95704         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
95705         changes.  Make 2.59 a prerequisite.  Check and substitute for
95706         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
95707         inttypes.h.  Do not use special include files; just use the
95708         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
95709         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
95710         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
95711         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
95712         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
95713         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
95714         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
95715         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
95716         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
95717         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
95718         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
95719         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
95720         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
95721         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
95722         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
95723         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
95724         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
95725         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
95726         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
95727         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
95728         WINT_MAX.  Check for C99 conformance more strictly, by detecting
95729         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
95730         not check for things that C99 does not require, e.g., int8_t.  If
95731         a test isn't needed unless <stdint.h> isn't working, and is
95732         unlikely to be needed for any other reason, then don't do it
95733         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
95734         size_t, since we assume C89 freestanding at least.  Do not check
95735         for sig_atomic_t, wchar_t, or wint_t, since the code now does
95736         the right thing even if the types are not defined.  Instead use:
95737         (gl_STDINT_TYPE_PROPERTIES): New macro.
95738         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
95739         testing whether <sys/types.h> clashes, as Autoconf does this for
95740         us now.  All uses removed.
95741         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
95742         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
95743         (gl_CHECK_TYPE_SAME):
95744         Remove; no longer needed.
95745         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
95746         exists, since we'll return 0 anyway in that case.
95747         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
95749 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
95751         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
95752         possible collision with system files.
95753         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
95754         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
95755         WCHAR_MIN and WCHAR_MAX in this case.
95756         (<stddef.h>): Do not include; no longer needed.
95757         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
95758         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
95759         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
95760         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
95761         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
95762         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
95763         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
95764         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
95765         !defined(__c99))]: Include in this case too, since it's harmless
95766         now.
95767         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
95768         dangerous to do so.
95769         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
95770         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
95771         (_STDINT_MIN, _STDINT_MAX): New macros.
95772         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
95773         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
95774         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
95775         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
95776         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
95777         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
95778         macros, not typedefs; this simplifies things quite a bit.
95779         Use long int for all types narrower than int64_t.
95780         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
95781         Define in terms of long long int or int64_t or long int,
95782         not int64_t or int32_t.  This saves some compile-time testing.
95783         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
95784         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
95785         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
95786         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
95787         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
95788         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
95789         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
95790         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
95791         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
95792         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
95793         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
95794         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
95795         undef any previous version and define our own version, for
95796         simplicity and consistency with the new macros for types.
95797         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
95798         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
95799         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
95800         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
95801         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
95802         @WINT_T_SUFFIX@ to keep things simple here.
95803         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
95804         Simplify by assuming typical 8/16/32/64 host, since we're
95805         already doing that elsewhere anyway.
95806         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
95807         and assume long long int is 64 bits if available.  This
95808         speeds up 'configure'.
95810 2006-07-01  Eric Blake  <ebb9@byu.net>
95812         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
95813         Reported by Andreas Buening.
95815 2006-07-01  Eric Blake  <ebb9@byu.net>
95817         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
95819 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
95821         * lib/getaddrinfo.c: fixed typo
95823 2006-06-29  Jim Meyering  <jim@meyering.net>
95825         * modules/strftime (Maintainer): Add my name, since with the
95826         FPRINTFTIME changes strftime.c has forked from glibc.
95828 2006-06-29  Eric Blake  <ebb9@byu.net>
95830         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
95832 2006-06-29  Eric Blake  <ebb9@byu.net>
95834         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
95836 2006-06-29  Eric Blake  <ebb9@byu.net>
95838         * lib/stat_.h: New file.
95840 2006-06-29  Eric Blake  <ebb9@byu.net>
95842         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
95843         unused static function.
95845 2006-06-29  Eric Blake  <ebb9@byu.net>
95847         * doc/functions.texi (Function Portability): Document missing lstat
95848         on mingw.
95850 2006-06-29  Eric Blake  <ebb9@byu.net>
95852         * MODULES.html.sh: Add sys_stat.
95853         * modules/sys_stat: New module.
95854         * modules/mkstemp (Depends-on): Add sys_stat.
95856 2006-06-29  Derek R. Price  <derek@ximbiot.com>
95858         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
95860 2006-06-29  Derek R. Price  <derek@ximbiot.com>
95862         * m4/c-bs-a.m4: Removed.
95864 2006-06-29  Derek R. Price  <derek@ximbiot.com>
95866         * lib/strftime.c: Assume strftime() exists.
95868 2006-06-29  Derek Price  <derek@ximbiot.com>
95870         * modules/c-bs-a: Removed - \a is C89.
95871         * MODULES.html.sh: Remove c-bs-a.
95873 2006-06-29  Bruno Haible  <bruno@clisp.org>
95875         * modules/wcwidth (License): Change to LGPL.
95877 2006-06-28  Simon Josefsson  <jas@extundo.com>
95879         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
95880         on _WIN32.
95882         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
95883         getnameinfo.
95885 2006-06-28  Simon Josefsson  <jas@extundo.com>
95887         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
95889 2006-06-28  Simon Josefsson  <jas@extundo.com>
95891         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
95892         functions there.  It will succeed on Windows XP, but on Windows
95893         2000 and (presumably) earlier, it will fail, and use the internal
95894         re-implementation.
95895         (use_win32_p): New function.
95896         (getaddrinfo): Use strtoul on servname, to support numeric ports.
95897         Support AI_NUMERICSERV to disable getservbyname.
95898         (getnameinfo): New function, only supports
95899         NI_NUMERICHOST|NI_NUMERICSERV for now.
95901         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
95902         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
95903         getnameinfo.
95905 2006-06-28  Eric Blake  <ebb9@byu.net>
95907         * modules/wcwidth: New file.
95908         * modules/mbchar (Depends-on): Add wcwidth.
95909         * modules/mbswidth (Depends-on): Add wcwidth.
95910         * MODULES.html.sh: Add wcwidth.
95912 2006-06-28  Eric Blake  <ebb9@byu.net>
95914         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
95915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
95917 2006-06-28  Eric Blake  <ebb9@byu.net>
95919         * lib/xvasprintf.h: Fix comments.
95921 2006-06-28  Eric Blake  <ebb9@byu.net>
95923         * lib/mbchar.h (wcwidth): Include wcwidth.h.
95924         * lib/mbswidth.c (wcwidth): Move from here...
95925         * lib/wcwidth.h: ...to this new file.
95927 2006-06-28  Derek R. Price  <derek@ximbiot.com>
95929         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
95931         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
95932         it's obsolete.
95933         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
95935 2006-06-28  Derek R. Price  <derek@ximbiot.com>
95937         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
95938         Autoconf 2.60 says this stuff was obsolete.
95940 2006-06-28  Bruno Haible  <bruno@clisp.org>
95942         * modules/wcwidth (Files): Add m4/wchar_t.m4.
95944 2006-06-28  Bruno Haible  <bruno@clisp.org>
95946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
95947         gt_TYPE_WCHAR_T.
95949 2006-06-28  Bruno Haible  <bruno@clisp.org>
95951         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
95952         declaration for wcwidth.
95953         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
95955 2006-06-28  Bruno Haible  <bruno@clisp.org>
95957         * lib/mkdtemp.c [MINGW]: Include <io.h>.
95958         (mkdir): Define using _mkdir.
95960 2006-06-28  Bruno Haible  <bruno@clisp.org>
95962         * lib/getaddrinfo.h: Fix POSIX URL.
95963         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
95964         _WIN32.
95965         (use_win32_p): Make static.
95966         (getaddrinfo): Reject service name if it is empty or does not consist
95967         solely of decimal digits, or if its value is > 65535.
95968         (getnameinfo): Remove useless casts.
95970 2006-06-27  Simon Josefsson  <jas@extundo.com>
95972         * modules/sys_select: New file, suggested by Bruno Haible, Paul
95973         Eggert and Martin Lambers.
95975 2006-06-27  Simon Josefsson  <jas@extundo.com>
95977         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
95978         Eggert and Martin Lambers.
95980 2006-06-27  Bruno Haible  <bruno@clisp.org>
95982         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
95983         result to 0, not to empty.
95984         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
95986 2006-06-27  Bruno Haible  <bruno@clisp.org>
95988         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
95990 2006-06-26  Simon Josefsson  <jas@extundo.com>
95992         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
95993         present.
95995 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
95997         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
95998         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
95999         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
96001 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
96003         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
96005 2006-06-26  Bruno Haible  <bruno@clisp.org>
96007         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
96009 2006-06-26  Bruno Haible  <bruno@clisp.org>
96011         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
96013 2006-06-26  Bruno Haible  <bruno@clisp.org>
96015         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
96016         SGI C compiler in pre-C99 mode.
96017         Suggested by Mark D. Baushke and Larry Jones.
96019 2006-06-26  Bruno Haible  <bruno@clisp.org>
96021         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
96022         WCHAR_MAX.
96023         Reported by Mark D. Baushke and Larry Jones.
96025 2006-06-26  Bruno Haible  <bruno@clisp.org>
96027         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
96028         in pre-C99 mode.
96029         Suggested by Mark D. Baushke and Larry Jones.
96031 2006-06-23  Simon Josefsson  <jas@extundo.com>
96032             Bruno Haible  <bruno@clisp.org>
96034         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
96035         Emit mostlyclean-local rule.
96036         (func_emit_tests_Makefile_am): Likewise.
96037         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
96039 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
96041         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
96043 2006-06-23  Bruno Haible  <bruno@clisp.org>
96045         * tests/test-stdint.c: Update to match ISO C 99 Technical
96046         Corrigendum 1.
96048 2006-06-23  Bruno Haible  <bruno@clisp.org>
96050         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
96052 2006-06-23  Bruno Haible  <bruno@clisp.org>
96054         * lib/stdint_.h: Treat IRIX like OpenBSD.
96056 2006-06-23  Bruno Haible  <bruno@clisp.org>
96058         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
96059         ISO C 99 Technical Corrigendum 1.
96061 2006-06-22  Simon Josefsson  <jas@extundo.com>
96063         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
96064         MinGW.
96066 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
96068         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
96069         needed.  Some compiler complained about some of them.  Problem reported
96070         by Larry Jones in
96071         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
96073 2006-06-21  Simon Josefsson  <jas@extundo.com>
96075         * tests/test-getaddrinfo.c: New file.
96077         * modules/getaddrinfo-tests: New file.
96079         * MODULES.html.sh: Add inet_pton.
96081         * modules/inet_pton: New file.
96083 2006-06-21  Simon Josefsson  <jas@extundo.com>
96085         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
96086         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
96087         of using the (limited) gnulib implementation on Windows XP.
96089         * m4/inet_pton.m4: New file.
96091 2006-06-21  Simon Josefsson  <jas@extundo.com>
96093         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
96094         variable.
96096         * lib/socket_.h: Don't define WINVER.
96098         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
96099         slightly modified to work in gnulib.
96101 2006-06-21  Simon Josefsson  <jas@extundo.com>
96103         * doc/gnulib.texi (Windows sockets): Add.
96105 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
96107         * lib/read-file.c (fread_file): Start with buffer allocation of
96108         0 bytes rather than 1 byte; this simplifies the code.
96109         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
96110         code to free buffer and save/restore errno.
96111         (internal_read_file): Remove unused local.
96113 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
96115         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
96116         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
96117         Problem reported by Denis Excoffier in
96118         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
96120 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96122         * modules/sys_socket, modules/socklen: Include sys/types since
96123         FreeBSD 4.x's sys/socket.h needs it.
96125 2006-06-19  Simon Josefsson  <jas@extundo.com>
96127         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
96129 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
96131         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
96133 2006-06-19  Bruno Haible  <bruno@clisp.org>
96135         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
96136         and FULL_PATH_INTTYPES_H in angle brackets.
96137         Reported by Mark D. Baushke <mdb@gnu.org>.
96139 2006-06-17  Eric Blake  <ebb9@byu.net>
96141         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
96142         errno.
96144 2006-06-17  Bruno Haible  <bruno@clisp.org>
96146         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
96147         <sys/inttypes.h>.
96149 2006-06-17  Bruno Haible  <bruno@clisp.org>
96151         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
96152         whether errno is declared. Assume <errno.h> declares errno.
96154 2006-06-17  Bruno Haible  <bruno@clisp.org>
96156         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
96158 2006-06-17  Bruno Haible  <bruno@clisp.org>
96160         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
96161         problem on Solaris 2.5.1.
96163 2006-06-16  Eric Blake  <ebb9@byu.net>
96165         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
96166         * lib/unicodeio.c [!defined errno]: Likewise.
96167         * lib/strtol.c [!defined errno]: Likewise.
96168         * lib/strtod.c [!defined errno]: Likewise.
96170 2006-06-15  Eric Blake  <ebb9@byu.net>
96172         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
96174 2006-06-15  Eric Blake  <ebb9@byu.net>
96176         * config/srclist.txt (ssize_t.m4): Lose sync.
96178 2006-06-15  Bruno Haible  <bruno@clisp.org>
96180         * modules/stdint (Files): Include m4/full-header-path.m4,
96181         m4/size_max.m4, m4/wchar_t.m4.
96182         (Makefile.am): Many more substitutions.
96183         * modules/stdint-tests: New file.
96184         * tests/test-stdint.c: New file.
96186 2006-06-15  Bruno Haible  <bruno@clisp.org>
96188         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
96189         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
96190         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
96191         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
96192         gl_CHECK_TYPE_SAME): New macros.
96194 2006-06-15  Bruno Haible  <bruno@clisp.org>
96196         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
96198 2006-06-15  Bruno Haible  <bruno@clisp.org>
96200         * lib/stdint_.h: Rewritten to be fully auto-configured.
96201         Fixes bug on HP-UX/IA64.
96203 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
96205         * lib/getdate.y (__attribute__): Don't define if already defined.
96206         Problem reported by Larry Jones.
96207         * lib/utimens.c (__attribute__): Likewise.
96209 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
96211         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
96212         reported by Andreas Schwab.
96214 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96215             Bruno Haible  <bruno@clisp.org>
96217         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
96218         check for the declaration of strnlen and a run test that exposes the
96219         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
96220         rpl_strndup.
96222 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96223             Bruno Haible  <bruno@clisp.org>
96225         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
96227 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96229         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
96230         compile test, for Tru64 4.0D.
96232 2006-05-28  Karl Berry  <karl@gnu.org>
96234         * config/srclist.txt (printf-args.c): lose sync.
96236 2006-05-26  Martin Lambers  <marlam@marlam.de>
96238         * lib/getpass.c: Updates the test for the native W32 API, and adds
96239         missing includes, thus fixing compilation warnings.
96241 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
96243         * lib/exclude.c (exclude_fnmatch): New function.
96244         (excluded_file_name): Call exclude_fnmatch.
96245         * lib/exclude.h (excluded_file_name): New prototype
96247 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
96249         * lib/tempname.c (small_open, large_open): New macros.
96250         (__open, __open64) [!_LIBC]: Remove.
96251         (__gen_tempname): Use small_open and large_open instead of __open
96252         and __open64.  This fixes a portability bug on HP-UX 11.11i
96253         reported by Simon Wing-Tang in
96254         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
96256 2006-05-24  Bruno Haible  <bruno@clisp.org>
96258         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
96259         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
96260         Reported by Thorsten Maerz <torte@netztorte.de> via
96261         Aaron Stone <aaron@serendipity.cx>.
96263 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96265         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
96266         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
96267         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
96268         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
96269         not really conditional on the cache.
96270         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
96272 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96274         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
96275         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
96276         (my_usleep): Don't mishandle maximum value.
96278 2006-05-19  Jim Meyering  <jim@meyering.net>
96280         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
96282 2006-05-17  Bruno Haible  <bruno@clisp.org>
96284         Cygwin portability.
96285         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
96287 2006-05-17  Bruno Haible  <bruno@clisp.org>
96289         * lib/stdint_.h: Fix recognition of Cygwin.
96291 2006-05-15  Bruno Haible  <bruno@clisp.org>
96293         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
96294         on libtool patch by Ralf Wildenhues.
96296 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96298         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
96299         test for C99 conformance; (bool) 0.5 is an integer constant
96300         expression, but (bool) -0.5 is not.  Problem reported by Fedor
96301         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
96303 2006-05-11  Simon Josefsson  <jas@extundo.com>
96305         * m4/xvasprintf.m4: Fix obvious typo.
96307 2006-05-11  Jim Meyering  <jim@meyering.net>
96309         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
96310         James Lemley.
96312 2006-05-10  Simon Josefsson  <jas@extundo.com>
96314         * lib/md4.c: Typo fix, update copyright years.
96315         (K1, K2): Don't use L because it turn computations into 64-bit on
96316         64-bit platforms.
96318 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
96320         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
96321         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
96322         unwanted sign propagation, e.g., on hosts with 64-bit int.
96323         There still are some problems with reeelly weird theoretical hosts
96324         (e.g., 33-bit int) but it's not worth worrying about now.
96325         * lib/sha1.c (rol): Likewise.
96326         (K1, K2, K3, K4): Remove unnecessary L suffix.
96328 2006-05-10  Bruno Haible  <bruno@clisp.org>
96330         * lib/des.c: Cast to avoid warnings.
96332 2006-05-09  Bruno Haible  <bruno@clisp.org>
96334         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
96335         (Depends-on): Depend also on xsize, stdarg.
96336         (configure.ac): Add gl_XVASPRINTF.
96338 2006-05-09  Bruno Haible  <bruno@clisp.org>
96340         * m4/xvasprintf.m4: New file.
96342 2006-05-09  Bruno Haible  <bruno@clisp.org>
96344         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
96345         (EOVERFLOW): Define fallback value.
96346         (xstrcat): New function.
96347         (xvasprintf): Recognize the special case of a string concatenation.
96349 2006-05-08  Eric Blake  <ebb9@byu.net>
96351         * gnulib-tool (func_version): Base copyright year on CVS date.
96352         (func_emit_copyright_notice): New function.
96353         (func_emit_lib_Makefile_am): Use it.
96354         (func_emit_tests_Makefile_am): Likewise.
96355         (func_import): Likewise.
96357 2006-05-08  Bruno Haible  <bruno@clisp.org>
96359         * modules/stdarg: New file.
96360         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
96362 2006-05-08  Bruno Haible  <bruno@clisp.org>
96364         * m4/stdarg.m4: New file, from GNU gettext.
96366 2006-05-08  Bruno Haible  <bruno@clisp.org>
96368         * config/srclist.txt (build-aux/config.rpath): different from latest
96369         release.
96371 2006-05-08  Bruno Haible  <bruno@clisp.org>
96373         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
96375 2006-05-05  Jim Meyering  <jim@meyering.net>
96377         * m4/warning.m4: New file, derived from bison's file by the same name.
96379 2006-05-03  Bruno Haible  <bruno@clisp.org>
96381         * lib/stdint_.h: Shorter URL.
96382         * lib/inttypes.h: Likewise.
96384 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96386         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
96388 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96390         * lib/verify.h: Document the internals better.  Most of this change
96391         was written by Bruno Haible.
96393 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96395         * doc/verify.texi: New file, partly based on a proposal by
96396         Bruno Haible.
96398 2006-05-02  Bruno Haible  <bruno@clisp.org>
96400         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
96401         test from here...
96402         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
96404 2006-04-29  Bruno Haible  <bruno@clisp.org>
96406         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
96407         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
96409 2006-04-29  Bruno Haible  <bruno@clisp.org>
96411         * gnulib-tool: Make --update option actually work.
96413 2006-04-29  Bruno Haible  <bruno@clisp.org>
96415         * doc/gcd.texi: New file.
96416         * doc/gnulib.texi: Include it.
96418 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
96420         * lib/getdate.y (get_date): When adding relative date, start with the
96421         initial time, not with the result of the first mktime call.
96423 2006-04-25  Bruno Haible  <bruno@clisp.org>
96425         * gnulib-tool (func_import): Output the include directives in three
96426         blocks, sorted separately.
96427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96429 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96431         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
96432         to define main with arguments, for C++.  Reported by Eric Blake.
96433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
96434         Prefer 'int main ()' to 'int main (void)', for C++.
96435         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
96436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
96437         for 'main', for C99 and C++.
96439 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
96442         Don't assume that exit status -1 is valid.
96443         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
96444         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96445         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
96446         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
96447         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
96448         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
96449         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
96450         functions can be used without declaring them, or that you can
96451         exit with status -1.
96452         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
96454 2006-04-24  Karl Berry  <karl@gnu.org>
96456         * config/srclist.txt (longdouble.m4): sync lost.
96458 2006-04-24  Eric Blake  <ebb9@byu.net>
96460         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
96462 2006-04-24  Bruno Haible  <bruno@clisp.org>
96464         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
96465         poll() implementation in AIX.
96466         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96468 2006-04-24  Bruno Haible  <bruno@clisp.org>
96470         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
96471         assigned exactly once.
96473 2006-04-23  Claudio Fontana  <claudio@gnu.org>
96474             Bruno Haible  <bruno@clisp.org>
96476         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
96477         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
96478         for AM_CPPFLAGS.
96480 2006-04-23  Bruno Haible  <bruno@clisp.org>
96482         * modules/copy-file: Depend on unistd.
96483         * modules/execute: Likewise.
96484         * modules/fatal-signal: Likewise.
96485         * modules/findprog: Likewise.
96486         * modules/mkdtemp : Likewise.
96487         * modules/pipe: Likewise.
96488         * modules/wait-process: Likewise.
96490 2006-04-23  Bruno Haible  <bruno@clisp.org>
96492         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
96493         condition was already detected.
96494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96496 2006-04-23  Bruno Haible  <bruno@clisp.org>
96498         * lib/copy-file.c: Include <unistd.h> unconditionally.
96499         * lib/execute.c: Likewise.
96500         * lib/fatal-signal.c: Likewise.
96501         * lib/findprog.c: Likewise.
96502         * lib/mkdtemp.c: Likewise.
96503         * lib/pipe.h: Likewise.
96504         * lib/pipe.c: Likewise.
96505         * lib/wait-process.h: Likewise.
96507 2006-04-23  Bruno Haible  <bruno@clisp.org>
96509         * gnulib-tool (func_usage): Fix --import description. Document
96510         --update.
96511         (func_import): Create temporary file in a temporary directory, if
96512         --dry-run is specified. Silence errors from 'grep' when there are no
96513         m4 files in $m4dir.
96514         (func_create_testdir): Silence errors from 'grep' when there are no
96515         m4 files in $m4dir.
96516         Reported by Karl Berry <karl@freefriends.org>.
96518 2006-04-20  Bruno Haible  <bruno@clisp.org>
96520         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
96521         one argument, so that the code will be portable to Autoconf 2.60.
96522         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
96523         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
96524         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
96526 2006-04-19  Derek Price  <derek@ximbiot.com>
96527             Eric Blake  <ebb9@byu.net>
96529         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
96530         rather than "/full/path.h".  Update comment to match.  Shorten &
96531         generalize m4_translit call via AS_TR_CPP.
96533 2006-04-19  Derek Price  <derek@ximbiot.com>
96534             Eric Blake  <ebb9@byu.net>
96536         * lib/inttypes.h: Correct grammar in comment.
96538 2006-04-18  Derek Price  <derek@ximbiot.com>
96539             Paul Eggert  <eggert@cs.ucla.edu>
96541         * modules/inttypes: New file.
96542         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
96544 2006-04-18  Derek Price  <derek@ximbiot.com>
96545             Paul Eggert  <eggert@cs.ucla.edu>
96547         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
96548         New files.
96550 2006-04-18  Derek Price  <derek@ximbiot.com>
96551             Paul Eggert  <eggert@cs.ucla.edu>
96553         * lib/inttypes.h: New file.
96554         * lib/strtoimax.c: Assume <inttypes.h>.
96556 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
96558         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
96559         isn't mounted.  Problem reported by Kir Kolyshkin.
96561 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
96563         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
96564         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
96565         Derek R. Price.
96566         * lib/regex.h (RE_DUP_MAX): Update comment to match current
96567         implementation.
96569 2006-04-12  Eric Blake  <ebb9@byu.net>
96571         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
96572         is now done automatically by the corresponding Autoconf macro.
96574 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
96576         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
96577         time_r.h.
96579 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96581         Merge regex changes from libc, removing some of our
96582         POSIX-conformance changes that were rejected and redoing them in a
96583         less-intrusive way.
96585         * lib/regcomp.c (re_compile_internal, init_dfa):
96586         Length arg is now size_t, not Idx.  All uses changed.
96587         (peek_token): Forward decl now says internal_function.
96588         (__re_error_msgid, __re_error_msgid_idx):
96589         Now static rather than extern with attribute_hidden.
96590         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
96591         For some reason libc prefers K&R style defns for external functions.
96592         (regerror) [!defined _LIBC]: Likewise.
96593         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
96594         (seek_collating_symbol_entry, lookup_collation_sequence_value):
96595         (build_range_exp, build_collating_symbol):
96596         Use K&R-style defn.
96597         (re_compile_fastmap): Use '\0' to memset, not 0.
96598         (utf8_sb_map): Make the calculations more obvious.
96599         (init_dfa, parse_bracket_exp, build_charclass_op):
96600         Call calloc and cast result, as glibc does.
96601         (init_word_char, fetch_token, peek_token, peek_token_bracket):
96602         (build_range_exp, build_collating_symbol):
96603         Now internal functions.
96605         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
96607         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
96608         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
96609         Don't depend on VMS; depend on __VMS instead, for POSIX
96610         namespace cleanness.
96611         (regoff_t): Define to ssize_t, not long int.
96613         Remove the REG_ macros named below.  Instead, make the old names
96614         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
96615         __USE_GNU_REGEX.
96616         (REG_BACKSLASH_ESCAPE_IN_LISTS):
96617         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
96618         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
96619         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
96620         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
96621         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
96622         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
96623         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
96624         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
96625         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
96626         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
96627         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
96628         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
96629         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
96630         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
96631         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
96632         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
96633         (REG_NREGS):
96634         Remove.  All uses replaced by the old RE_* names.
96635         (RE_BACKSLASH_ESCAPE_IN_LISTS):
96636         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
96637         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
96638         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
96639         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
96640         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
96641         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
96642         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
96643         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
96644         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
96645         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
96646         Don't bother having these macros be independent of each others'
96647         values, since they no longer exist in the POSIX name space.
96649         Rename the following member names back to their old names,
96650         unless !__USE_GNU_REGEX.  All uses changed back.
96651         (buffer): Renamed from re_buffer.
96652         (allocated): Renamed from re_allocated.
96653         (used): Renamed from re_used.
96654         (syntax): Renamed from re_syntax.
96655         (fastmap): Renamed from re_fastmap.
96656         (translate): Renamed from re_translate.
96657         (can_be_null): Renamed from re_can_be_null.
96658         (regs_allocated): Renamed from re_regs_allocated.
96659         (fastmap_accurate): Renamed from re_fastmap_accurate.
96660         (no_sub): Renamed from re_no_sub.
96661         (not_bol): Renamed from re_not_bol.
96662         (not_eol): Renamed from re_not_eol.
96663         (newline_anchor): Renamed from re_newline_anchor.
96664         (num_regs): Renamed from rm_num_regs.
96665         (start): Renamed from rm_start.
96666         (end): Renamed from rm_end.
96668         (free_state): Move up a bit.
96670         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
96671         #define to be empty.
96672         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
96673         when that is what is intended.
96674         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
96675         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
96676         (MAX): New macro.
96677         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
96678         All uses changed back to re_malloc, etc.  It's now the caller's
96679         responsibility to check for overflow; all callers changed.
96680         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
96681         (re_x2nrealloc): Remove.
96682         (free_state): Remove decl.
96684         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
96685         (re_set_registers, re_exec):
96686         Use K&R-style defn.
96688         2006-01-31  Roland McGrath  <roland@redhat.com>
96690         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
96691         Reported by Mike Frysinger <vapier@gentoo.org>.
96693         2006-01-15  Andreas Jaeger  <aj@suse.de>
96695         [BZ #1950]
96696         * lib/regex_internal.c (re_string_reconstruct): Adjust for
96697         build_wcs_upper_buffer change.
96698         (build_wcs_upper_buffer): Change return type.
96700         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
96702         * lib/regex_internal.h: Include <stdint.h> if available.
96704         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
96706         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
96708         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
96710         * lib/regcomp.c: Adjust for changed secondary hash function.
96712         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
96714         * lib/regex.h: Pretty printing.
96715         Clean up namespace a bit.
96717         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
96719         * lib/regexec.c (update_cur_sifted_state, check_arrival,
96720         check_arrival_add_next_nodes): Avoid using uninitialized variable.
96722         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
96723                     Ulrich Drepper  <drepper@redhat.com>
96725         [BZ #1302]
96726         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
96727         changed.
96728         (bitset_word_t): Renamed from bitset_word.  All uses changed.
96730         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
96732         [BZ #281]
96733         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
96734         * lib/regcomp.c: Remove unnecessary uses of
96735         unsigned RE_TRANSLATE_TYPE.
96736         * lib/regex_internal.h: Likewise.
96737         * lib/regex_internal.c: Likewise.
96738         * lib/regexec.c: Likewise.
96739         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
96741         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
96743         * lib/regexec.c (find_recover_state): Remove unnecessary
96744         initialization.
96745         (transit_state_bkref): Make DFA a const pointer.
96746         (get_subexp): Likewise.
96747         (check_arrival): Likewise.
96748         (update_cur_sifted_state): Likewise.
96749         (re_search_internal): Likewise.
96750         (prune_impossible_nodes): Likewise.
96751         (acquire_init_state_context): Likewise.
96752         (proceed_next_node): Likewise.
96753         (set_regs): Likewise.
96754         (free_fail_stack_return): Likewise.
96755         (check_arrival_expand_ecl): Mark DFA parameter as const.
96756         (check_arrival_expand_ecl_sub): Likewise.
96757         (check_subexp_limits): Likewise.
96758         (sub_epsilon_src_nodes):  Likewise.
96759         (add_epsilon_src_nodes):  Likewise.
96760         (merge_state_array): Likewise.
96761         (update_regs): Likewise.
96762         (build_trtable): Likewise.
96763         (sift_states_backward): Mark MCTX parameter as const.
96764         (build_sifted_states): Likewise.
96765         (update_cur_sifted_state): Likewise.
96766         (sift_states_mkref): Likewise.
96767         (check_arrival_expand_ecl): Mark eclosure as const.
96768         (check_dst_limits_calc_pos_1): Likewise.
96769         * lib/regex_internal.h (re_match_context_t): Make dfa a const
96770         pointer.
96772         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
96774         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
96775         (transit_state_sb): Likewise.
96776         (transit_state_mb): Likewise.
96777         (sift_states_iter_mb): Likewise.
96778         (check_arrival_add_next_nodes): Likewise.
96779         (check_node_accept_bytes): Change first parameter to pointer-to-const.
96780         [_LIBC] (re_search_2_stub): Use mempcpy.
96782         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
96783         mbrtowc for very simple UTF-8 case.
96785         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
96786         a pointer-to-const.
96787         (re_acquire_state_context): Likewise.
96788         * lib/regex_internal.h: Adjust prototypes.
96790         * lib/regex.c: Prevent using C++ compilers.
96792         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
96793         (re_acquire_state_context): Likewise.
96795 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96797         * modules/regex (Depends-on): Add ssize_t.
96799 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96801         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
96802         translation table.
96804 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96806         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
96808 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
96809             Bruno Haible  <bruno@clisp.org>
96811         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
96812         <sys/types.h> and <inttypes.h>.
96814 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96816         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
96817         `__error_t_defined', so argp.h will not typedef the former.
96819 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
96821         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
96822         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
96823         glibc names.  Even if glibc is changed to conform to POSIX, the
96824         traditional names will be available anyway, since regex depends on
96825         the extensions module.  Also, fix a longstanding typo in the
96826         implementation of Spencer ERE test #75 from grep 2.3.  Problems
96827         reported by Emanuele Giaquinta.  Also, change sense of cached
96828         variable, so that the message makes sense.
96830 2006-03-24  Simon Josefsson  <jas@extundo.com>
96832         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
96833         including some doc fixes.
96834         (base64_encode_alloc): Fix +1 bug on allocation failures.
96836 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96838         * lib/base64.c (base64_encode): Do not read past end of array with
96839         unsanitized input on systems with CHAR_BIT > 8.
96841 2006-03-24  Eric Blake  <ebb9@byu.net>
96843         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
96845 2006-03-22  Karl Berry  <karl@gnu.org>
96847         * config/srclist.txt (*setenv.[ch]): get from coreutils.
96848         * config/srclistvars.sh (COREUTILS): new var.
96850 2006-03-17  Jim Meyering  <jim@meyering.net>
96852         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
96853         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
96855 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
96857         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
96858         no longer needs it.  Instead, check that regoff_t is as least
96859         as wide as ptrdiff_t.
96861         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
96862         so that our regex.h stays compatible with the installed regex.
96863         This is helpful for installers who configure --without-included-regex.
96864         Problem reported by Emanuele Giaquinta.
96866 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
96868         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
96869         Typedef to long int, not to off_, as POSIX will likely change
96870         in that direction.
96872 2006-03-15  Eric Blake  <ebb9@byu.net>
96874         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
96876 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
96878         * lib/argp-help.c (validate_uparams): Fix typo
96879         * lib/argp-parse.c (argp_default_options): Consistently begin help
96880         messages with a lowercase letter.
96882 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
96884         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
96885         overrun buffers and shouldn't be used (much as gets shouldn't be
96886         used).
96887         * lib/time_r.c (asctime_r, ctime_r): Likewise.
96889 2006-03-08  Simon Josefsson  <jas@extundo.com>
96891         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
96892         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96894 2006-03-08  Simon Josefsson  <jas@extundo.com>
96896         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
96897         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96899 2006-03-08  Simon Josefsson  <jas@extundo.com>
96901         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
96902         signal that configure disabled the device.
96904 2006-03-08  Simon Josefsson  <jas@extundo.com>
96906         * build-aux/maint.mk: Fix refresh-po, to handle no translated
96907         languages.
96909 2006-03-07  Simon Josefsson  <jas@extundo.com>
96911         * modules/getopt (Depends-on): Add unistd.
96913         * modules/unistd: New file.
96915 2006-03-07  Simon Josefsson  <jas@extundo.com>
96917         * modules/gc-random: New file.
96919 2006-03-07  Simon Josefsson  <jas@extundo.com>
96921         * m4/unistd_h.m4: New file.
96923 2006-03-07  Simon Josefsson  <jas@extundo.com>
96925         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
96926         test to be side-effect free by storing the result in the cache
96927         variable gl_cv_lib_readline, and moving the assignment of
96928         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
96929         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96931 2006-03-07  Simon Josefsson  <jas@extundo.com>
96933         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
96934         error on missing devices (the functions will return an error).
96936         * m4/gc.m4: Move random stuff to gc-random.m4
96938 2006-03-07  Simon Josefsson  <jas@extundo.com>
96940         * lib/unistd_.h: New file.
96942 2006-03-07  Simon Josefsson  <jas@extundo.com>
96944         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
96946 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
96948         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
96949         Problem reported by Juan Manuel Guerrero.
96951 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
96953         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
96954         the unistd module.
96955         * lib/getlogin_r.c: Likewise.
96956         * lib/getlogin_r.h: Likewise.
96957         * lib/glob.c: Likewise.
96958         * lib/pagealign_alloc.c: Likewise.
96959         * lib/unistd_.h: Remove; no longer needed.
96961 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
96963         * MODULES.html.sh (Support for systems lacking POSIX:2001):
96964         Add unistd.
96965         * modules/c-stack (Depends-on): Add unistd.
96966         * modules/getlogin_r: Likewise.
96967         * modules/glob: Likewise.
96968         * modules/pagealign_alloc: Likewise.
96969         * modules/unistd (Files): Remove lib/unistd_.h.
96970         (EXTRA_DIST): Remove.
96971         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
96972         need unistd_.h.
96973         (MOSTLYCLEANFILES): Remove unistd.h-t.
96975 2006-03-03  Simon Josefsson  <jas@extundo.com>
96977         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
96979 2006-03-03  Simon Josefsson  <jas@extundo.com>
96981         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
96982         libidn and bison.
96984 2006-03-03  Simon Josefsson  <jas@extundo.com>
96986         * build-aux/maint.mk: Add indent target.
96988 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
96990         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
96991         our replacement poll.h in any case, to avoid a differing
96992         declaration from a system header.  Seen on AIX.
96994 2006-03-01  Simon Josefsson  <jas@extundo.com>
96996         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
96997         <kasal@ucw.cz>.
96999 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97001         * modules/gettime (Depends-on): Add extensions module.
97002         * modules/nanosleep (Depends-on): Likewise.
97003         * modules/settime (Depends-on): Likewise.
97005 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97007         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
97008         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
97009         pedantically.
97010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
97011         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
97013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
97014         not "==".  Reported by Ralf Wildenhues.
97016 2006-03-01  Karl Berry  <karl@gnu.org>
97018         * doc/Copyright/request-*: new files, synced from gnuorg.
97020 2006-03-01  Karl Berry  <karl@gnu.org>
97022         * config/srclist.txt (Copyright/*): new entries.
97024 2006-02-28  Simon Josefsson  <jas@extundo.com>
97026         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
97028 2006-02-27  Simon Josefsson  <jas@extundo.com>
97030         * lib/base64.h: Indent #define's.  From Jim Meyering
97031         <jim@meyering.net>.
97033 2006-02-27  Jim Meyering  <jim@meyering.net>
97035         Revert the change of 2006-02-24, so these files can continue
97036         to be sync'd from gettext.
97037         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
97038         of `config.h'.
97040 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
97042         * modules/intprops: New file.
97043         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
97044         Add intprops.
97045         * modules/getloadavg (Files): Remove lib/intprops.h.
97046         (Depends-on): Add intprops.
97047         * modules/human: Likewise.
97048         * modules/inttostr: Likewise.
97049         * modules/openat: Likewise.
97050         * modules/sig2str: Likewise.
97051         * modules/userspec: Likewise.
97052         * modules/utimecmp: Likewise.
97053         * modules/xnanosleep: Likewise.
97054         * modules/xstrtol: Likewise.
97056 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
97058         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
97059         * modules/lock-tests (TESTS): Use $(EXEEXT).
97060         * modules/tls-tests: Likewise.
97061         * modules/argp-tests: Likewise.
97062         (check_PROGRAMS): New var, replacing...
97063         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
97065 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97067         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
97068         `config.h'.
97070 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
97072         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
97074 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97076         Sync from coreutils.
97077         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
97078         gl_CHDIR_SAFER.
97080 2006-02-22  Jim Meyering  <jim@meyering.net>
97082         Sync from coreutils.
97083         * m4/chdir-safer.m4: New file.
97085 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
97087         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
97088         AT_FDCWD exceeds INT_MAX.
97089         * lib/openat.h (AT_FDCWD): Likewise.
97091 2006-02-17  Eric Blake  <address@hidden>
97093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
97095 2006-02-16  Simon Josefsson  <jas@extundo.com>
97097         * modules/getaddrinfo (Depends-on): Add sys_socket.
97099 2006-02-15  Simon Josefsson  <jas@extundo.com>
97101         * build-aux/maint.mk: Add dsyntax-check rule.
97103 2006-02-15  Eric Blake  <ebb9@byu.net>
97105         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
97106         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
97107         'present but cannot compile' warnings on cygwin.
97108         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
97109         use ws2tcpip.h if sys/socket.h works.
97110         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
97111         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
97113 2006-02-14  Simon Josefsson  <jas@extundo.com>
97115         * modules/maintainer-makefile (Files): Rename.
97117         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
97118         and (the local) Makefile.cfg to maint-cfg.mk.
97120         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
97121         to the latter.
97123         * modules/maintainer-makefile: New module.
97125         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
97126         severaly stripped to make it possible to build it up from scratch
97127         with reliable tests.
97129         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
97130         fixes to permit overriding the default actions when configure and
97131         makefile are not available.
97133 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
97135         Sync from coreutils.
97136         * modules/lstat (Depends-on): Don't depend on xalloc.
97137         (License): Change from GPL to LGPL, since this is now simply a
97138         replacement for a libc function.
97140 2006-02-14  Jim Meyering  <jim@meyering.net>
97142         Sync from coreutils.
97144         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
97145         failure on deficient systems, and simplify gnulib lgpl dependencies.
97146         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
97147         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
97149         * lib/xalloc-die.c: Remove unused definition of N_.
97151 2006-02-14  Jim Meyering  <jim@meyering.net>
97153         Sync from coreutils.
97154         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
97155         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
97156         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
97157         double-quote uses of that variable, to accommodate the rare case in
97158         which getmntent is available in none of the libraries checked.  This
97159         happens at least on FreeBSD 5.0.
97161 2006-02-13  Simon Josefsson  <jas@extundo.com>
97163         * gnulib-tool (Usage): Fix --import, from
97164         karl@freefriends.org (Karl Berry).
97166 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
97168         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
97170 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
97172         * lib/argp-namefrob.h: Restore changes accidentally lost during the
97173         "autoupdate" on 2005-12-12.
97175 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
97177         * modules/closeout (Depends-on): Remove atexit.
97179 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
97181         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
97182         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
97184 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
97186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
97187         __EXTENSIONS__ if this causes compilation to fail.  Problem
97188         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
97189         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
97191 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
97193         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
97194         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
97195         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
97196         All uses changed.
97198 2006-01-26  Simon Josefsson  <jas@extundo.com>
97200         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
97201         prototype is visible on mingw32.
97203         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
97204         for mingw32.
97206         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
97207         mingw32).
97209 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
97211         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
97212         attempt to open for write; this always fails, at least on POSIX
97213         hosts.  This reinstates the 2006-01-09 change, which was
97214         inadvertently removed.
97216 2006-01-26  Bruno Haible  <bruno@clisp.org>
97218         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
97219         Reported by Paul Eggert.
97221 2006-01-26  Bruno Haible  <bruno@clisp.org>
97222             Paul Eggert  <eggert@cs.ucla.edu>
97224         * lib/stdbool_.h (_Bool)
97225         [(! (defined __cplusplus || defined __BEOS__)
97226           && !defined __GNUC__
97227           && !(defined __HP_cc || defined __xlc__
97228                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
97229                || defined __sgi))]:
97230         #define to signed char in these cases too; this simplifies
97231         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
97232         etc., separately) and makes it more conservative.
97234 2006-01-25  Simon Josefsson  <jas@extundo.com>
97236         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
97237         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
97238         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
97240 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97242         * lib/argp-namefrob.h: Bugfix. Remove stray #
97244 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97246         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
97247         so that we test the test.
97248         Check for yet another HP-UX cc bug involving *bool |= bool.
97250 2006-01-25  Karl Berry  <karl@gnu.org>
97252         * config/srclist.txt (vasnprintf.c): sync lost.
97254 2006-01-25  Jim Meyering  <jim@meyering.net>
97256         Sync from the stable (b5) branch of coreutils:
97258         * lib/fts.c (fts_children): Don't let close() clobber errno from
97259         failed fchdir().
97261         * lib/fts.c (fts_stat): When following a symlink-to-directory,
97262         don't necessarily interpret stat-fails+lstat-succeeds as indicating
97263         a dangling symlink.  That can also happen at least for ELOOP.
97264         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
97265         FYI, this bug predates the inclusion of fts.c in coreutils.
97267         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
97268         in their own block, so pre-c99 compilers don't object.
97270         Avoid the double-free (first in fts_read, second in fts_close) that
97271         would occur when an `active' directory is made inaccessible (e.g.,
97272         via chmod a-x) during a traversal.
97273         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97274         before returning.  Reproduce this failure by
97275         mkdir -p a/b; cd a; chmod a-x . b
97276         Reported by Stavros Passas.
97278 2006-01-25  Jim Meyering  <jim@meyering.net>
97280         * lib/fileblocks.c: Remove more useless parentheses.
97281         * lib/readutmp.h: Likewise.
97283 2006-01-25  Bruno Haible  <bruno@clisp.org>
97285         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
97286         warnings.
97287         Reported by Paul Eggert.
97289 2006-01-25  Bruno Haible  <bruno@clisp.org>
97291         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
97292         rid of a trap command. For Solaris sh.
97293         Reported by Mark D. Baushke <mdb@gnu.org>.
97295 2006-01-24  Simon Josefsson  <jas@extundo.com>
97297         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
97298         Bruno.
97300 2006-01-24  Karl Berry  <karl@gnu.org>
97302         * config/srclist.txt (argp-namefrob.h): sync lost.
97304 2006-01-24  Jim Meyering  <jim@meyering.net>
97306         * modules/openat (Files): Add lib/intprops.h.
97307         From Mark D. Baushke.
97309 2006-01-24  Jim Meyering  <jim@meyering.net>
97311         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
97312         Reported by Mark D. Baushke.
97314 2006-01-24  Jim Meyering  <jim@meyering.net>
97316         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
97318 2006-01-24  Bruno Haible  <bruno@clisp.org>
97320         * modules/strnlen (Maintainer): Change from glibc to all.
97322 2006-01-24  Bruno Haible  <bruno@clisp.org>
97324         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
97325         Patch by Paul Eggert.
97327 2006-01-24  Bruno Haible  <bruno@clisp.org>
97329         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
97330         already has it.
97331         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
97332         2005-11-26.
97334         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
97335         'signed char' to avoid problems with the built-in _Bool type.
97336         Reported by Paul Eggert on 2005-11-26.
97338 2006-01-24  Bruno Haible  <bruno@clisp.org>
97340         * gnulib-tool (func_import): Avoid constructing complicated sed
97341         expressions inside backquote.
97342         Report and solution by Mark D. Baushke <mdb@gnu.org>.
97344 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
97346         These changes imported from libc.
97347         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
97348         test and two separate function calls.
97349         * lib/strndup.c (__strndup): Add libc_hidden_def.
97351 2006-01-23  Simon Josefsson  <jas@extundo.com>
97353         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
97354         Remove the test_*_SOURCES variable: automake infers it by default.
97355         * modules/tls-tests: Likewise.
97357 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97359         Work around porting bugs reported by Dieter in
97360         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
97361         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
97362         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
97363         Include "getopt.h" first, to check interface.
97364         (getenv): Declare only if defined HAVE_DECL_GETENV &&
97365         !HAVE_DECL_GETENV.
97366         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
97367         (__strndup): Revert to K&R-style function dfns, the glibc style.
97368         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
97369         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
97370         Include strnlen.h first, to get prototype properly.
97371         (strnlen): Renamed from __strnlen.
97372         Remove weak alias.
97374 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97376         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
97378 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97380         * config/srclist.txt: Adjust to reflect glibc reorganization.
97381         This affects only comments.
97383 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97385          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
97386          Reported by Bruce Korb <bkorb@gnu.org>.
97388 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
97390         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
97391         to pacify gcc -Wswitch-default.
97393 2006-01-22  Bruno Haible  <bruno@clisp.org>
97395         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
97396         temporary buffer for sprintf, take into account the precision also
97397         for 'd', 'i', 'u', 'o', 'x', 'X'.
97399 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97401         * modules/argp-tests: New module
97402         * tests/test-argp.c: New file
97403         * tests/test-argp-2.sh: New file
97405 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97407         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
97408         (__argp_base_name): Removed
97409         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
97410         typo.
97411         (__argp_base_name): Provide macro definition or extern declaration
97412         depending on the configuration
97414 2006-01-20  Simon Josefsson  <jas@extundo.com>
97416         * modules/inet_ntop (Depends-on): Depend on sys_socket.
97418 2006-01-20  Simon Josefsson  <jas@extundo.com>
97420         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
97422 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97424         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
97425         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
97426         Suggested by Bruno Haible.
97428 2006-01-20  Karl Berry  <karl@gnu.org>
97430         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
97431         until changes propagate, I guess.
97433 2006-01-19  Simon Josefsson  <jas@extundo.com>
97435         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
97437 2006-01-19  Simon Josefsson  <jas@extundo.com>
97439         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
97441 2006-01-19  Simon Josefsson  <jas@extundo.com>
97443         * gnulib-tool: Set check_PROGRAMS.
97445         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97446         modules/des-tests, modules/gc-arcfour-tests,
97447         modules/gc-arctwo-tests, modules/gc-des-tests,
97448         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97449         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97450         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97451         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97452         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97453         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
97454         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
97455         test_*_SOURCES.
97457 2006-01-18  Simon Josefsson  <jas@extundo.com>
97459         * modules/socklen (Depends-on): Depend on sys_socket.
97461 2006-01-18  Simon Josefsson  <jas@extundo.com>
97463         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97464         modules/des-tests, modules/gc-arcfour-tests,
97465         modules/gc-arctwo-tests, modules/gc-des-tests,
97466         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97467         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97468         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97469         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97470         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97471         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
97472         $(EXEEXT) to automake TESTS variable, for mingw32.
97474 2006-01-17  Simon Josefsson  <jas@extundo.com>
97476         * modules/socklen (Include): Need sys/socket.h.
97478 2006-01-17  Bruno Haible  <bruno@clisp.org>
97480         * modules/ssize_t (Include): Add <sys/types.h>.
97482 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
97484         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
97485         it's not portable and it doesn't work with cross-compiles.
97486         Problem reported by Bruno Haible.  Fix missing-$ typo in
97487         'test "gl_cv_ignore_unused_libraries" ...' that prevented
97488         -zignore from being used with Sun's C compiler.
97490 2006-01-12  Simon Josefsson  <jas@extundo.com>
97492         * lib/base64.c: Fix warning, reported by Bruno Haible
97493         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
97495 2006-01-12  Bruno Haible  <bruno@clisp.org>
97497         * modules/ldd: New file.
97498         * build-aux/ldd.sh.in: New file.
97499         * MODULES.html.sh (Support for building libraries and executables): Add
97500         ldd.
97502 2006-01-12  Bruno Haible  <bruno@clisp.org>
97504         * m4/ldd.m4: New file.
97506 2006-01-12  Bruno Haible  <bruno@clisp.org>
97508         * gnulib-tool (func_import, func_create_testdir): Don't go into an
97509         endless loop while replacing $auxdir with build-aux.
97511 2006-01-11  Simon Josefsson  <jas@extundo.com>
97513         * lib/stdint_.h (SIZE_MAX): Add missing (.
97515 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
97517         Sync from coreutils.
97518         * lib/md5.c: Fix commentary typos.
97519         (alignof, UNALIGNED_P): No need for a GCC-specific version.
97520         * lib/md5.h (__attribute__): Remove; unused.
97521         * lib/sha1.c: Fix commentary to match md5 better.
97522         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
97523         so that we don't need to worry about alignment.  All uses changed.
97524         This merges the 2005-10-28 md5 change into sha1.
97526 2006-01-11  Jim Meyering  <jim@meyering.net>
97528         Sync from coreutils.
97529         * lib/md5.c (OP): Fix spacing.
97531 2006-01-11  Bruno Haible  <bruno@clisp.org>
97533         Ensure automatic ordering between gl_LOCK and gl_ARGP.
97534         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
97535         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
97537 2006-01-11  Bruno Haible  <bruno@clisp.org>
97539         Ensure automatic ordering between gl_LOCK and gl_ARGP.
97540         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
97541         the "early" section as well.
97543 2006-01-11  Bruno Haible  <bruno@clisp.org>
97545         Avoid "ar: no archive members specified" error on MacOS X.
97546         * gnulib-tool (func_modules_add_dummy): New function.
97547         (func_import, func_create_testdir): Invoke it.
97549 2006-01-11  Bruno Haible  <bruno@clisp.org>
97551         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
97552         with $auxdir in AC_CONFIG_FILES statements.
97554 2006-01-11  Bruno Haible  <bruno@clisp.org>
97556         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97557         Initialize also noinst_HEADERS to empty.
97559 2006-01-11  Bruno Haible  <bruno@clisp.org>
97561         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
97562         variables.
97563         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
97564         autoreconf.
97566 2006-01-11  Bruno Haible  <bruno@clisp.org>
97568         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
97569         overridable by the user.
97570         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97572 2006-01-10  Simon Josefsson  <jas@extundo.com>
97574         * modules/sys_socket: New file.
97576 2006-01-10  Simon Josefsson  <jas@extundo.com>
97578         * m4/sys_socket_h.m4: New file.
97580 2006-01-10  Simon Josefsson  <jas@extundo.com>
97582         * lib/socket_.h: New file.
97584 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97586         * modules/readutmp (Maintainer): Add myself.
97588 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97590         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
97591         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
97592         People who are still concerned with buggy memcmp implementations
97593         can invoke gl_FUNC_MEMCMP themselves.
97595 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97597         * lib/regex_internal.h (BITSET_WORD_BITS):
97598         Work around a bug in 64-bit PGC (before version 6.1-2), where the
97599         preprocessor mishandles large unsigned values as if they were signed.
97600         Problem reported by Claudio Fontana in
97601         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
97603 2006-01-10  Jim Meyering  <jim@meyering.net>
97605         Avoid the double-free (first in fts_read, second in fts_close) that
97606         would occur when an `active' directory is made inaccessible (e.g.,
97607         via chmod a-x) during a traversal.
97608         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97609         before returning.  Reproduce this failure by
97610         mkdir -p a/b; cd a; chmod a-x . b
97611         Reported by Stavros Passas.
97613         Sync from coreutils.
97614         * lib/sha1.c: Tweak grammar in a comment.
97616 2006-01-10  Jim Meyering  <jim@meyering.net>
97618         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
97619         Patch by Joerg Sonnenberger.
97621 2006-01-10  Bruno Haible  <bruno@clisp.org>
97623         * modules/readutmp: Depend on module free.
97624         * modules/strtok_r: Depend on module restrict.
97626 2006-01-10  Bruno Haible  <bruno@clisp.org>
97628         * modules/gettext (configure.ac): Add an invocation of
97629         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
97631 2006-01-10  Bruno Haible  <bruno@clisp.org>
97633         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
97634         Reported by Werner Lemberg <wl@gnu.org>.
97636 2006-01-10  Bruno Haible  <bruno@clisp.org>
97638         * lib/localcharset.c: Update from GNU gettext.
97640 2006-01-10  Bruno Haible  <bruno@clisp.org>
97642         * lib/argp.h (__const): Remove macro. Use const instead.
97643         * lib/argp-fmtstream.h (__const): Likewise.
97644         * lib/glob_.h (__const): Remove macro.
97645         * lib/glob-libc.h: Use const instead of __const.
97647 2006-01-10  Bruno Haible  <bruno@clisp.org>
97649         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
97650         variable.
97651         Needed to avoid an automake error regarding the 'gettext' module.
97653 2006-01-09  Simon Josefsson  <jas@extundo.com>
97655         * modules/inet_ntop (Depends-on): Add restrict.
97657 2006-01-09  Simon Josefsson  <jas@extundo.com>
97659         * modules/gc-rijndael-tests (License): Put under LGPL.
97661         * modules/gc-des-tests (License): Likewise.
97663         * modules/gc-arcfour-tests (License): Likewise.
97665         * modules/gc-arctwo-tests (License): Likewise.
97667         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
97669         * modules/gc-hmac-sha1-tests (Files): Likewise.
97671         * modules/gc-hmac-md5-tests (License): Likewise.
97673         * modules/gc-sha1-tests (License): Likewise.
97675         * modules/gc-md5-tests (License): Likewise.
97677         * modules/gc-md4-tests (License): Likewise.
97679         * modules/gc-md2-tests (License): Likewise.
97681         * modules/gc-tests (License): Likewise.
97683         * modules/des-tests (License): Likewise.
97685         * modules/md4-tests (License): Likewise.
97687         * modules/md2-tests (License): Likewise.
97689 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97691         Sync from coreutils:
97693         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
97694         * modules/lib-ignore: New file.
97695         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
97696         chdir-safer.m4, lchmod.m4.
97697         * modules/openat: Add mkdirat.c, openat-priv.h.
97699 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97701         Sync from coreutils.
97702         * m4/lib-ignore.m4: New file.
97703         * m4/lchmod.m4: New file.
97705 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97707         Sync from coreutils.
97708         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
97709         for write access: POSIX says that must fail.
97710         * lib/fts.c (diropen): Likewise.
97711         * lib/save-cwd.c (save_cwd): Likewise.
97712         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
97713         well, for minor improvements on hosts that lack O_DIRECTORY.
97714         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
97715         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
97716         Fall back on chown if open failed with EACCES.
97718         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
97719         Report an error at compile-time if only a 1-second nominal clock
97720         resolution is found.
97722         * lib/lchmod.h: New file.
97723         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
97724         (make_dir_parents): Use lchown rather than chown, and
97725         lchmod rather than chmod.
97727         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
97728         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
97729         "proc" reported by n0dalus.
97731         * lib/mountlist.c: Include <limits.h>.
97732         (dev_from_mount_options)
97733         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
97734         New function.  It no longer assumes "dev=" has the System V meaning
97735         on Linux (since it doesn't).  It also parses "dev=" more carefully.
97736         (read_file_system_list)
97737         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
97738         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
97739         dev= in that case.
97741         * lib/posixtm.h (PDS_PRE_2000): New macro.
97742         * lib/posixtm.c (year): Arg is now syntax_bits rather than
97743         allow_century.  All usages changed.  Reject dates outside the range
97744         1969-1999 if PDS_PRE_2000 is used.
97746 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97748         Sync from coreutils.
97749         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
97750         (Time of day items): Mention the possibility of leap seconds.
97751         Problem reported by Dr. David Alan Gilbert.
97753 2006-01-09  Jim Meyering  <jim@meyering.net>
97755         Sync from coreutils.
97757         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
97759         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
97761         * lib/modechange.c (mode_compile): Reject an invalid mode string
97762         that starts with an octal digit.  From Andreas Gruenbacher.
97764         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
97765         and dup to open_safer and dup_safer, respectively.
97766         (openat_permissive): Fix typo in comment.
97768         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
97769         "gettext.h"; either no longer needed or are guaranteed by openat.h.
97770         (_): Remove; no longer needed.
97771         (openat): Renamed from rpl_openat; no need for rpl_openat
97772         since openat.h renames openat for us.
97773         Replace most of the body with a call to openat_permissive,
97774         to avoid duplicate code.
97775         Port to (probably hypothetical) environments were mode_t is
97776         wider than int.
97777         (openat_permissive): Require mode arg, so that we can check
97778         types better.  Put it just after flags.  Change cwd failure
97779         indicator from pointer-to-bool to pointer-to-errno-value.
97780         All callers changed.
97781         Invoke openat_save_fail and/or openat_restore_fail if
97782         cwd_errno is null, so that openat can call us.
97783         (openat_permissive, fdopendir, fstatat, unlinkat):
97784         Simplify errno handling to avoid some duplicate code,
97785         as it's OK to set errno on success.
97786         * lib/openat.h: Revamp code so that function macros depend on
97787         __OPENAT_PREFIX only, not also on AT_FDCWD.
97788         (openat_ro): Remove.  Caller changed to use openat_permissive.
97789         (openat_permissive): Now a macro, if not a function.
97790         (openat_restore_fail, openat_save_fail): Now always functions,
97791         since mkdirat needs them even if __OPENAT_PREFIX is defined.
97793         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
97794         and openat.c.
97795         * lib/mkdirat.c: Include openat-priv.h.
97796         Remove definitions of macros defined therein.
97797         * lib/openat.c: Likewise.
97799         * lib/mkdirat.c (mkdirat): New file and function.
97800         * lib/openat.h (mkdirat): Declare.
97802         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
97804         * lib/openat.h (openat_permissive): Declare.
97805         (openat_ro): Define.
97807         * lib/openat.c (EXPECTED_ERRNO): New macro.
97808         (openat_permissive): New function -- used in remove.c rewrite.
97809         (all functions): Set errno just before returning, only if there
97810         was an actual failure.
97811         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
97813         Emulate openat-family functions using Linux's procfs, if possible.
97814         Idea and some code based on Ulrich Drepper's glibc changes.
97816         * lib/openat.c: (BUILD_PROC_NAME): New macro.
97817         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
97818         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
97819         before falling back on save_cwd and restore_cwd.
97820         (fdopendir, fstatat, unlinkat): Likewise.
97822         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
97823         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
97825         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
97826         as second argument to va_arg.  Otherwise, some versions of gcc
97827         warn that `if this code is reached, the program will abort'.
97829 2006-01-09  Jim Meyering  <jim@meyering.net>
97831         Sync from coreutils.
97832         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
97833         Require openat-priv.h.
97835 2006-01-09  Bruno Haible  <bruno@clisp.org>
97837         * modules/strnlen (Include): Use strnlen.h.
97839 2006-01-09  Bruno Haible  <bruno@clisp.org>
97841         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
97843 2006-01-09  Bruno Haible  <bruno@clisp.org>
97845         * lib/sysexit_.h (EX_OK): New macro.
97846         Suggested by Martin Lambers <marlam@marlam.de>.
97848 2006-01-09  Bruno Haible  <bruno@clisp.org>
97850         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
97851         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
97853 2006-01-09  Bruno Haible  <bruno@clisp.org>
97855         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
97856         numbers.
97858 2006-01-09  Bruno Haible  <bruno@clisp.org>
97860         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
97861         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
97862         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
97863         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
97865 2006-01-09  Bruno Haible  <bruno@clisp.org>
97867         * build-aux/javacomp.sh.in: New file, moved from lib/.
97868         * modules/javacomp-script (Files): Update.
97869         (configure.ac): Add AC_CONFIG_FILES invocation.
97870         (EXTRA_DIST): Remove variable.
97872         * build-aux/javaexec.sh.in: New file, moved from lib/.
97873         * modules/javaexec (Files): Update.
97874         (configure.ac): Add AC_CONFIG_FILES invocation.
97875         (EXTRA_DIST): Remove javaexec.sh.in.
97877         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
97878         * modules/csharpcomp-script (Files): Update.
97879         (configure.ac): Add AC_CONFIG_FILES invocation.
97880         (EXTRA_DIST): Remove variable.
97882         * build-aux/csharpexec.sh.in: New file, moved from lib/.
97883         * modules/csharpexec (Files): Update.
97884         (configure.ac): Add AC_CONFIG_FILES invocation.
97885         (EXTRA_DIST): Remove csharpexec.sh.in.
97887 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
97889         Sync from coreutils.
97891         Add POSIX ACL support
97892         * lib/acl.h (copy_acl, set_acl): Add declarations.
97893         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
97894         systems other than Linux.
97895         (chmod_or_fchmod): New function: use fchmod when possible,
97896         and chmod otherwise.
97897         (file_has_acl): Add a POSIX ACL implementation, with a
97898         Linux-specific subcase.
97899         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
97900         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
97901         acls are unsupported.
97902         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
97903         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
97904         are unsupported.
97906 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
97908         Sync from coreutils.
97909         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
97911 2006-01-07  Bruno Haible  <bruno@clisp.org>
97913         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
97914         gl_EARLY.
97916 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
97918         * lib/strftime.c (tzname): Don't declare if it is already #defined.
97919         Problem reported for Mingw by Mark Junker.
97921 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
97923         * README: Gnulib normally doesn't generate a tarball.
97925 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
97927         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
97928         long int, not int, for nanosecond counts, so that people who are
97929         used to POSIX struct timespec won't be surprised.  Reported by Jim
97930         Meyering.
97932 2005-12-28  Bruno Haible  <bruno@clisp.org>
97934         * build-aux/config.rpath: Update from GNU gettext.
97936 2005-12-16  Jim Meyering  <jim@meyering.net>
97938         * modules/fprintftime: New module.
97939         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
97941 2005-12-16  Jim Meyering  <jim@meyering.net>
97943         * m4/fprintftime.m4: New file.
97945 2005-12-16  Jim Meyering  <jim@meyering.net>
97947         * lib/fprintftime.c, lib/fprintftime.h: New files.
97949 2005-12-15  Simon Josefsson  <jas@extundo.com>
97951         * modules/socklen (configure.ac): Fix M4 macro name, to align with
97952         new m4/socklen.m4.
97954 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97956         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
97957         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
97959 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97961         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
97962         * lib/argp-help.c (fill_in_uparams): Check if the constructed
97963         struct uparams is valid. Fall back to the default values if it is
97964         not.
97966 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97968         * modules/argp (Files): Add argp-pin.c
97969         (Depends-on): dirname
97970         (lib_SOURCES): Add argp-pin.c
97972 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97974         * m4/argp.m4:  Check if program_invocation_name and
97975         program_invocation_short_name are declared and define appropriate
97976         macros if they are not.
97978 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97980         * lib/argp-help.c (__argp_base_name): New function
97981         (__argp_short_program_name): Rewrite using __argp_base_name
97982         * lib/argp-namefrob.h: Define program_invocation_name and
97983         program_invocation_short_name if requested
97984         (__argp_base_name): Add prototype
97985         * lib/argp-parse.c (argp_def): Use gettext wrappers
97986         (argp_default_parser): Use __argp_base_name
97987         * lib/argp-pin.c: New file. Defines program_invocation_name and
97988         program_invocation_short_name on systems that lack them.
97990 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
97992         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
97993         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
97994         porting problem reported by Georg Schwarz in
97995         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
97997 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
97999         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
98000         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
98001         porting problem reported by Georg Schwarz in
98002         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
98004 2005-12-05  Bruno Haible  <bruno@clisp.org>
98006         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
98007         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
98008         Reported by Mark Junker <mjscod@gmx.de>.
98010 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
98012         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
98013         Use implementation from Albert Chin, with some
98014         comments/corrections by Stepan Kasal and myself.
98016 2005-12-02  Bruno Haible  <bruno@clisp.org>
98018         * gnulib-tool (func_import): Accept GPLed build tool modules when
98019         --lgpl is given.
98020         * modules/csharpcomp-script: New file.
98021         * modules/csharpcomp: Depend on it.
98022         * modules/javacomp-script: New file.
98023         * modules/javacomp: Depend on it.
98024         Suggested by Simon Josefsson.
98026 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
98028         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
98029         statement, to work around an HP-UX 10.20 compiler bug reported by
98030         Peter O'Gorman.
98032 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98034         * modules/savedir (Depends-on): Add openat.
98036 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
98038         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
98039         (uintmax_t) [defined uintmax_t]: Do not declare.
98040         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
98041         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
98042         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
98043         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
98044         sake of portability to weird hosts that C allows (though we don't
98045         know of any practical examples).
98047         * lib/savedir.h (fdsavedir): New decl.
98048         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
98049         contains most of the former guts of savedir.
98050         (savedir): Use savedirstream.
98051         Include "openat.h".
98053 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
98055         * modules/obstack (Files): Add m4/ulonglong.m4.
98056         Problem reported by Davide Angelocola.
98058 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98060         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
98061         coreutils no longer futzes with rounding modes.
98063 2005-11-14  Jim Meyering  <jim@meyering.net>
98065         * lib/mkstemp-safer.c: Include <config.h>, required for possible
98066         replacement of mkstemp.
98068 2005-11-10  Simon Josefsson  <jas@extundo.com>
98070         * lib/readline.c: Remove EOL.
98072 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98074         * modules/gethrxtime (Depends-on): Add gettime.
98076 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98078         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
98079         or gettimeofday; no longer needed.
98081 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
98083         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
98084         time business.
98085         (gethrxtime) [! (HAVE_NANOUPTIME
98086         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
98087         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
98088         our own approximation.
98090 2005-11-08  Eric Blake  <ebb9@byu.net>
98092         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
98094 2005-11-08  Eric Blake  <ebb9@byu.net>
98096         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
98098 2005-11-04  Bruno Haible  <bruno@clisp.org>
98100         * gnulib-tool: Implement --update mode.
98102 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98104         Fix porting problem reported by Theodoros V. Kalamatianos.
98105         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
98106         Don't assume that futimes failing means we must fail.
98108 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
98110         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
98111         variables to suggest the intended function of the PATH_MAX check.
98113 2005-10-30  Kean Johnston  <jkj@sco.com>
98115         Trivial changes to support SCO systems.
98116         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
98117         as PATH_MAX.
98118         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
98119         where __ptr is null when no I/O is pending.
98121 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
98123         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
98124         leave errno alone.  Problem reported by Dmitry V. Levin.
98126 2005-10-28  Simon Josefsson  <jas@extundo.com>
98128         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
98129         Test more.
98131         * tests/test-gc-md2.c, tests/test-md2.c: New files.
98133         * modules/md2, modules/md2-tests: New files.
98135 2005-10-28  Simon Josefsson  <jas@extundo.com>
98137         * m4/inet_ntop.m4: More tests.
98139         * m4/gc-md2.m4, md2.m4: New file.
98141 2005-10-28  Simon Josefsson  <jas@extundo.com>
98143         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
98144         "restrict" keywords, as per POSIX.  Protect the function
98145         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
98146         Don't use K&R prototypes.  Check the sprintf return values.
98147         Re-define EAFNOSUPPORT if not present.  Indent.
98149         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
98150         suggested by Bruno Haible <bruno@clisp.org>.
98152         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
98154         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
98156         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
98157         libgcrypt).
98159         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
98161         * lib/md2.h, lib/md2.c: New files.
98163 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
98165         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
98166         errno alone.  Problem reported by Frederic Jolliton.
98168 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
98170         * modules/verify (License): Change from GPL to LGPL.  This is a
98171         tiny module and there are apparently near-equivalents that are
98172         under the BSD license.
98174 2005-10-24  Simon Josefsson  <jas@extundo.com>
98176         * modules/sha1: Relicense to LGPL.
98178 2005-10-24  Simon Josefsson  <jas@extundo.com>
98180         * lib/md4.h: Shrink buffer size, now that we changed the type.
98182 2005-10-23  Simon Josefsson  <jas@extundo.com>
98184         * gnulib-tool (func_import): Fix --tests-base.
98186 2005-10-22  Simon Josefsson  <jas@extundo.com>
98188         * modules/arcfour (Depends-on): Need stdint.
98190 2005-10-22  Simon Josefsson  <jas@extundo.com>
98192         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
98193         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
98195 2005-10-22  Simon Josefsson  <jas@extundo.com>
98197         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
98198         suggested by Bruno Haible <bruno@clisp.org>.
98200 2005-10-22  Simon Josefsson  <jas@extundo.com>
98202         * lib/crc.h: Include stddef.h, for size_t.
98204 2005-10-22  Simon Josefsson  <jas@extundo.com>
98206         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
98207         arcfour_context struct (simplify test vector testing in GNU
98208         Shishi).
98210 2005-10-21  Simon Josefsson  <jas@extundo.com>
98212         * modules/des, modules/des-tests: New files.
98214         * modules/gc-des, modules/gc-des-tests: New files.
98216         * tests/test-des.c, tests/test-gc-des.c: New file.
98218 2005-10-21  Simon Josefsson  <jas@extundo.com>
98220         * modules/arctwo, modules/arctwo-tests: New files.
98222         * tests/test-arctwo.c: New file.
98224         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
98226         * tests/test-gc-arctwo.c: New file.
98228 2005-10-21  Simon Josefsson  <jas@extundo.com>
98230         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
98231         Bruno Haible <bruno@clisp.org>.
98233         * m4/gc-des.m4: New file.
98235 2005-10-21  Simon Josefsson  <jas@extundo.com>
98237         * m4/arctwo.m4: New file.
98239         * m4/gc-arctwo.m4: New file.
98241 2005-10-21  Simon Josefsson  <jas@extundo.com>
98243         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
98244         block.
98246 2005-10-21  Simon Josefsson  <jas@extundo.com>
98248         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
98249         <bruno@clisp.org>.
98251         * lib/hmac-sha1.c (hmac_sha1): Likewise.
98253         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
98254         Bruno Haible <bruno@clisp.org>.
98256         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
98257         <bruno@clisp.org>.
98259 2005-10-21  Simon Josefsson  <jas@extundo.com>
98261         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
98263 2005-10-21  Simon Josefsson  <jas@extundo.com>
98265         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
98267 2005-10-21  Simon Josefsson  <jas@extundo.com>
98269         * lib/des.h, lib/des.c: New files.
98271         * lib/gc-gnulib.c: Support DES.c
98273 2005-10-21  Simon Josefsson  <jas@extundo.com>
98275         * lib/arctwo.h, lib/arctwo.c: New files.
98277         * lib/gc-gnulib.c: Support ARCTWO.
98279 2005-10-21  Simon Josefsson  <jas@extundo.com>
98281         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
98282         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98284 2005-10-21  Simon Josefsson  <jas@extundo.com>
98286         * gnulib-tool (func_import, func_create_testdir): Define automake
98287         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
98288         Makefile.am snippet),
98289         suggested by Bruno Haible <bruno@clisp.org>.
98291         * modules/gc (Makefile.am): Use it.
98293 2005-10-21  Bruno Haible  <bruno@clisp.org>
98295         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
98296         patch.
98298 2005-10-19  Simon Josefsson  <jas@extundo.com>
98300         * tests/test-gc-rijndael.c: New file.
98302         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
98304 2005-10-19  Simon Josefsson  <jas@extundo.com>
98306         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
98307         interface too.
98309 2005-10-19  Simon Josefsson  <jas@extundo.com>
98311         * tests/test-gc-arcfour.c: New file.
98313         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
98315 2005-10-19  Simon Josefsson  <jas@extundo.com>
98317         * modules/gc-md4, modules/gc-md4-tests: New file.
98319         * tests/test-gc-md4.c: New file.
98321 2005-10-19  Simon Josefsson  <jas@extundo.com>
98323         * m4/gc-md4.m4: New file.
98325 2005-10-19  Simon Josefsson  <jas@extundo.com>
98327         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
98328         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
98329         <kasal@ucw.cz>.
98331 2005-10-19  Simon Josefsson  <jas@extundo.com>
98333         * m4/gc-arcfour.m4: New file.
98335         * m4/gc-rijndael.m4: New file.
98337 2005-10-19  Simon Josefsson  <jas@extundo.com>
98339         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
98341 2005-10-19  Simon Josefsson  <jas@extundo.com>
98343         * lib/gc-gnulib.c: Support ARCFOUR.
98345 2005-10-19  Simon Josefsson  <jas@extundo.com>
98347         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
98348         support.
98350         * lib/gc.h: Add ECB enum type.
98352         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
98354 2005-10-18  Simon Josefsson  <jas@extundo.com>
98356         * tests/test-md5.c: New file.
98358         * modules/md5-tests: New file.
98360 2005-10-18  Simon Josefsson  <jas@extundo.com>
98362         * tests/test-md4.c: New file.
98364         * modules/md4, modules/md4-tests: New files.
98366 2005-10-18  Simon Josefsson  <jas@extundo.com>
98368         * m4/md4.m4: New file.
98370 2005-10-18  Simon Josefsson  <jas@extundo.com>
98372         * lib/md4.h, lib/md4.c: New files, based on md5.?.
98374 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
98376         * gnulib-tool (func_create_testdir): Omit the second check whether
98377         BUILT_SOURCES in nonempty.
98379 2005-10-17  Simon Josefsson  <jas@extundo.com>
98381         * tests/test-rijndael.c: New file.
98383 2005-10-17  Simon Josefsson  <jas@extundo.com>
98385         * modules/sha1: Depend on stdint instead of md5.
98387         * modules/md5: Depend on stdint, remove uint32_t.
98389 2005-10-17  Simon Josefsson  <jas@extundo.com>
98391         * modules/gc-sha1-tests: New file.
98393         * tests/test-gc-sha1.c: New file.
98395 2005-10-17  Simon Josefsson  <jas@extundo.com>
98397         * m4/md5.m4: Remove call to uint32_t.m4.
98399 2005-10-17  Simon Josefsson  <jas@extundo.com>
98401         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
98403         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
98404         md5.h.
98406         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
98408         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
98410 2005-10-17  Simon Josefsson  <jas@extundo.com>
98412         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
98414 2005-10-17  Simon Josefsson  <jas@extundo.com>
98416         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
98418 2005-10-17  Simon Josefsson  <jas@extundo.com>
98420         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
98422         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
98424 2005-10-17  Bruno Haible  <bruno@clisp.org>
98426         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
98427         that it can also be used in a test.
98429 2005-10-16  Bruno Haible  <bruno@clisp.org>
98431         * gnulib-tool (func_emit_tests_Makefile_am): Also define
98432         TESTS_ENVIRONMENT, so that individual tests can augment it.
98434         * gnulib-tool (func_create_testdir): Use an intermediate target for
98435         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
98436         macros, like $(ALLOCA_H), which cannot be passed through the command
98437         line.
98439 2005-10-15  Simon Josefsson  <jas@extundo.com>
98441         * modules/rijndael-tests: New file.
98443         * modules/rijndael: New file.
98445 2005-10-15  Simon Josefsson  <jas@extundo.com>
98447         * m4/rijndael.m4: New file.
98449 2005-10-15  Simon Josefsson  <jas@extundo.com>
98451         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
98453         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
98455 2005-10-14  Simon Josefsson  <jas@extundo.com>
98457         * tests/test-arcfour.c: New file.
98459         * modules/arcfour, modules/arcfour-tests: New files.
98461 2005-10-14  Simon Josefsson  <jas@extundo.com>
98463         * m4/arcfour.m4: New file.
98465 2005-10-14  Simon Josefsson  <jas@extundo.com>
98467         * lib/arcfour.h, lib/arcfour.c: New files.
98469 2005-10-14  Roland McGrath  <roland@redhat.com>
98471         Import from libc.  [BZ #1331]
98472         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
98473         macro argument.
98474         Reported by Matej Vela <vela@debian.org>.
98476 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
98478         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
98479         include <wchar.h>; no longer needed.
98481 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
98483         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
98485 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
98486         and  Ulrich Drepper  <drepper@redhat.com>
98488         Import from libc.
98489         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
98490         instead of inline stream orientation test and two separate
98491         function calls.  Pay no attention to USE_IN_LIBIO.
98493 2005-10-13  Simon Josefsson  <jas@extundo.com>
98495         * modules/gc-hmac-md5-tests: New file.
98497         * tests/test-gc-hmac-sha1.c: New file.
98499         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
98501         * modules/gc-hmac-md5-tests: New file.
98503         * tests/test-gc-md5.c: New file.
98505         * modules/gc-md5-tests: New file.
98507 2005-10-13  Simon Josefsson  <jas@extundo.com>
98509         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
98510         Move memory allocation outside of loop.
98512 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
98514         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
98515         intermediate directory is in a read-only file system.  Problem
98516         reported by Eric Blake.
98518 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
98520         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
98522 2005-10-12  Simon Josefsson  <jas@extundo.com>
98524         * tests/test-hmac-sha1.c: New file.
98526         * modules/hmac-sha1-tests: New file.
98528         * modules/hmac-sha1: New file.
98530 2005-10-12  Simon Josefsson  <jas@extundo.com>
98532         * modules/gc-sha1: New file.
98534 2005-10-12  Simon Josefsson  <jas@extundo.com>
98536         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
98538         * tests/test-gc-pbkdf2-sha1.c: New file.
98540 2005-10-12  Simon Josefsson  <jas@extundo.com>
98542         * modules/gc-md5, modules/gc-hmac-md5: New files.
98544         * modules/gc (Files): Remove md5, memxor and hmac files.
98546 2005-10-12  Simon Josefsson  <jas@extundo.com>
98548         * m4/gc-pbkdf2-sha1.m4: New file.
98550         * m4/gc-hmac-sha1.m4: New file.
98552         * m4/gc-sha1: New file.
98554         * m4/hmac-sha1.m4: New file.
98556 2005-10-12  Simon Josefsson  <jas@extundo.com>
98558         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
98560         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
98562 2005-10-12  Simon Josefsson  <jas@extundo.com>
98564         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
98565         suggested by Bruno Haible <bruno@clisp.org>.
98567 2005-10-12  Simon Josefsson  <jas@extundo.com>
98569         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
98571 2005-10-12  Simon Josefsson  <jas@extundo.com>
98573         * lib/gc-pbkdf2-sha1.c: New file.
98575         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
98577 2005-10-12  Simon Josefsson  <jas@extundo.com>
98579         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
98581         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
98583 2005-10-12  Simon Josefsson  <jas@extundo.com>
98585         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
98586         GC_USE_HMAC_MD5, respectively.
98588         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
98589         (gc_md5): Fix typo.
98591         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
98593         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
98595         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
98597 2005-10-12  Bruno Haible  <bruno@clisp.org>
98599         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
98600         Reported by Stepan Kasal <kasal@ucw.cz>.
98602 2005-10-11  Simon Josefsson  <jas@extundo.com>
98604         * tests/test-crc.c: New file.
98606         * modules/crc, modules/crc-tests: New files.
98608 2005-10-11  Simon Josefsson  <jas@extundo.com>
98610         * m4/crc.m4: New file.
98612 2005-10-11  Simon Josefsson  <jas@extundo.com>
98614         * lib/gc.h: Add gc_hash and gc_hash_buffer.
98616         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
98618         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
98620 2005-10-11  Simon Josefsson  <jas@extundo.com>
98622         * lib/crc.h, lib/crc.c: New files.
98624         * lib/gc.h (gc_hash_buffer): Add doc.
98626 2005-10-11  Bruno Haible  <bruno@clisp.org>
98628         * modules/c-strcasestr: New file.
98629         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
98631 2005-10-11  Bruno Haible  <bruno@clisp.org>
98633         * modules/c-strcase: New file.
98634         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
98636 2005-10-11  Bruno Haible  <bruno@clisp.org>
98638         * lib/strcasecmp.c: Include limits.h.
98639         (strcasecmp): Avoid integer overflow on exotic platforms.
98640         * lib/strncasecmp.c: Include limits.h.
98641         (strncasecmp): Avoid integer overflow on exotic platforms.
98642         Reported by Paul Eggert.
98644 2005-10-11  Bruno Haible  <bruno@clisp.org>
98646         * lib/c-strcasestr.h: New file, from GNU gettext.
98647         * lib/c-strcasestr.c: New file, from GNU gettext.
98649 2005-10-11  Bruno Haible  <bruno@clisp.org>
98651         * lib/c-strcase.h: New file, from GNU gettext.
98652         * lib/c-strcasecmp.c: New file, from GNU gettext.
98653         * lib/c-strncasecmp.c: New file, from GNU gettext.
98655 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
98657         * modules/mempcpy (License): GPL -> LGPL.
98658         * modules/strchrnul (License): Likewise.
98659         * modules/sysexits (License): Likewise.
98661 2005-10-08  Simon Josefsson  <jas@extundo.com>
98663         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
98665 2005-10-07  Simon Josefsson  <jas@extundo.com>
98667         * m4/memxor.m4: Remove gl_C_RESTRICT call.
98669 2005-10-06  Simon Josefsson  <jas@extundo.com>
98671         * tests/test-hmac-md5.c: New file.
98673         * modules/hmac-md5-tests: New file.
98675         * modules/hmac-md5: New file.
98677 2005-10-06  Simon Josefsson  <jas@extundo.com>
98679         * m4/hmac-md5.m4: New file.
98681         * m4/memxor.m4: Require gl_C_RESTRICT.
98683 2005-10-06  Simon Josefsson  <jas@extundo.com>
98685         * lib/memxor.c (memxor): Avoid casts and warnings.
98687 2005-10-06  Simon Josefsson  <jas@extundo.com>
98689         * lib/hmac-md5.c: New file.
98691         * lib/hmac.h: New file.
98693 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
98695         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
98696         promotes to int, not unsigned int, to catch the AIX 5.3
98697         compiler bug.
98699 2005-10-05  Simon Josefsson  <jas@extundo.com>
98701         * modules/memxor: New file.
98703         * modules/iconv (Files): Move config.rpath to havelib, it is used
98704         there.
98706         * modules/havelib (Files): Add config.rpath.
98708 2005-10-05  Simon Josefsson  <jas@extundo.com>
98710         * m4/memxor.m4: New file.
98712 2005-10-05  Simon Josefsson  <jas@extundo.com>
98714         * lib/memxor.c (memxor): Fix compiler error.
98716         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
98717         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
98719         * lib/memxor.h, lib/memxor.c: New files.
98721         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
98722         we assume all systems have it, suggested by Jim Meyering
98723         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
98724         any systems lack sys/socket.h; mingw32 is known to lack it, but we
98725         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
98726         same reasons.
98728 2005-10-05  Simon Josefsson  <jas@extundo.com>
98730         * config/srclist.txt: Add glibc bug 1423 for md5.h.
98732 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
98734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
98735         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
98736         needed, since the source code now assumes these .h files.
98738 2005-10-05  Derek Price  <derek@ximbiot.com>
98740         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
98742 2005-10-05  Bruno Haible  <bruno@clisp.org>
98744         * modules/stdint (License): Change to LGPL.
98746 2005-10-04  Simon Josefsson  <jas@extundo.com>
98748         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
98749         D. Baushke" <mdb@gnu.org>.
98751 2005-10-04  Bruno Haible  <bruno@clisp.org>
98753         * lib/verify.h (verify_true): Provide alternative definition for C++.
98755 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
98757         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
98758         (SSIZE_MAX): New macro, if not already defined.
98759         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
98760         than 2 GiB.
98762 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
98764         Sync from coreutils.
98765         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
98766         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
98767         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
98768         ULLONG_MAX doesn't work with 2.7.2.1.
98770 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
98772         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
98773         From Ben Pfaff.
98775         * modules/exclude (Depends-on): Depend on verify.
98776         * modules/strtoimax (Depends-on): Likewise.
98777         * modules/utimecmp (Depends-on): Likewise.
98779 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
98781         * lib/exclude.c: Include verify.h.
98782         (verify): Remove.  All callers changed to use verify.h's version.
98783         * lib/strtoimax.c: Likewise.
98784         * lib/utimecmp.c: Likewis.e
98786         Sync from coreutils.
98787         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
98788         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
98789         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
98790         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
98791         bother returning ENOSYS if settimeofday or stime fails; just let
98792         them return whatever errno they want to return.
98793         * lib/utimens.c: Include unistd.h, for dup2.
98794         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
98795         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
98797 2005-10-02  Jim Meyering  <jim@meyering.net>
98799         Sync from coreutils.
98800         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
98801         from glibc-2.2.5 that fails for read-only files.
98803 2005-10-02  Jim Meyering  <jim@meyering.net>
98805         Sync from coreutils.
98806         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
98807         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
98808         `#if HAVE_CONFIG_H'.
98809         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
98810         Remove AT_FDCWD test.
98811         Do not consume the fd unless successful.
98812         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
98813         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
98814         block, so that we don't even try to compile it if settimeofday is
98815         available.  This works around a compilation failure on OSF1 V5.1,
98816         due to stime requiring a `long int*' while tv_sec is `int'.
98818 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
98820         Sync from coreutils.
98821         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
98822         against `yes', rather than just testing for nonempty.
98824 2005-10-01  Simon Josefsson  <jas@extundo.com>
98826         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
98827         and Darwin.
98829         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
98830         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
98831         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
98832         freeaddrinfo and gai_strerror are declared by the POSIX headers.
98833         Check if struct addrinfo is declared.
98835 2005-10-01  Simon Josefsson  <jas@extundo.com>
98837         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
98838         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
98839         AI_* and EAI_* definitions.  Protect function declarations.
98841 2005-10-01  Jim Meyering  <jim@meyering.net>
98843         Sync from coreutils.
98845         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
98846         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
98847         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
98848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
98849         in the inet and nsl libraries.  Required on Solaris 5.7.
98851 2005-10-01  Jim Meyering  <jim@meyering.net>
98853         Sync from coreutils.
98854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
98855         in the inet and nsl libraries.  Required on Solaris 5.7.
98857 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
98859         * lib/getdelim.c (getdelim): Remove unused variables.
98861 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
98863         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
98864         so that the code works even with ancient cpp.  Portability problem
98865         with GCC 2.7.2.1 reported by Thomas M.Ott.
98867 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
98869         * modules/regex (Depends-on): Add strcase.
98871         * modules/gethostname (Licence): Change from GPL to LGPL, since
98872         gethostname.c is a trivial implementation of a standard library
98873         function.
98874         * modules/poll (License): Change from GPL to LGPL, since it's
98875         derived from LGPL code.
98877 2005-09-27  Jim Meyering  <jim@meyering.net>
98879         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
98880         HAVE_CONFIG_H.
98882         * lib/intprops.h (signed_type_or_expr__): Define.
98883         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
98884         for unsigned types.
98886 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
98888         * lib/verify.h (verify_expr): Remove, replacing with:
98889         (verify_true): New macro that returns true instead of void.
98890         (verify_type__): Remove.
98891         (verify): Use verify_true rather than verify_type__.
98893 2005-09-26  Bruno Haible  <bruno@clisp.org>
98895         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
98896         is necessary.
98897         (lib_SOURCES): Remove mbchar.c.
98898         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
98899         (Files): Add m4/mbrtowc.m4.
98900         * modules/mbiter: Likewise.
98901         * modules/mbuiter: Likewise.
98903 2005-09-26  Bruno Haible  <bruno@clisp.org>
98905         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
98906         compile mbchar.c if they are not both present.
98907         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
98908         * m4/mbiter.m4 (gl_MBITER): Likewise.
98909         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
98910         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
98911         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
98913 2005-09-25  Jim Meyering  <jim@meyering.net>
98915         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
98916         also uses socklen_t.
98918 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
98920         * lib/utimens.c (ENOSYS): Define if not already defined.
98921         (futimens): Support having a null PATH if the file descriptor
98922         is nonnegative.
98924         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
98925         Remove.
98926         (__attribute): Define to empty unless GCC 3.1 or later.
98927         This works around a core dump on OpenBSD 3.4, which has GCC
98928         2.95.3, which dumps core when given __attribute__(()).  It also
98929         simplifies other tests, since we really don't want to bother with
98930         worrying about which ancient version of GCC supported what.
98931         Original problem reported by Yoann Vandoorselaere, with part of
98932         the fix suggested by Derek Price.
98934 2005-09-24  Jim Meyering  <jim@meyering.net>
98936         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
98937         so we can once again use a positive bitfield width of 1 -- now we
98938         don't have to explain why we were using a bitfield width of 2.
98940 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
98942         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
98943         and similarly for the other external symbols.  Problem reported
98944         by James Gallager.
98946         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
98947         bug reported by Jim Meyering.
98949         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
98950         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
98951         not needed, since socklen is a prerequisite module.
98953 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
98955         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
98956         Problem reported by Eric Blake.
98957         (getaddrinfo): Initialize se so that it's not garbage.
98958         Redo internal storage allocation so that it doesn't make unportable
98959         assumptions about alignment.
98960         Fix a memory leak.
98962         * lib/utimens.c (futimens): Use futimesat if available.
98963         Prefer it to futimes since it doesn't have the futimes bug.
98965         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
98966         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
98967         Instead, declare a function that returns a pointer to an array,
98968         and use verify_type__ to declare the size of the array.
98969         Problem and germ of a solution reported by Bruno Haible.
98970         (verify_type__): Use 2, not 1, for bitfield size, to avoid
98971         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
98973 2005-09-23  Jim Meyering  <jim@meyering.net>
98975         Sync from coreutils.
98976         Correct build failure (socklen_t not defined) on at least
98977         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
98978         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
98980 2005-09-23  Jim Meyering  <jim@meyering.net>
98982         * modules/getaddrinfo (Depends-on): Add socklen.
98984 2005-09-23  Bruno Haible  <bruno@clisp.org>
98986         * tests/test-verify.c: New file.
98988 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
98990         Sync from coreutils.
98992         * modules/argmatch (Depends-on): Add verify.
98993         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
98994         unistd-safer.
98995         * modules/save-cwd (Depends-on): Likewise.
98997         * modules/openat (Files): Add lib/openat-die.c.
98998         (Depends-on): Remove error, exitfail.
98999         Add dirname.
99001         * modules/verify: New file.
99002         * MODULES.html.sh (Diagnostics <assert.h>): New section,
99003         with "verify" module.
99005 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99007         Sync from coreutils.
99009         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
99010         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
99011         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
99012         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
99013         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
99014         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
99015         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
99016         Don't bother checking for string.h, stdlib.h, unistd.h.
99017         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
99018         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
99019         module's job.
99020         * m4/jm-macros.m4 (gl_MACROS): Likewise.
99021         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
99023         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
99024         (gl_GETDATE): Use it.
99026         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
99028 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99030         Sync from coreutils.
99032         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
99033         stat-time.h.
99034         * lib/argmatch.h: Include verify.h
99035         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
99036         (ARGMATCH_ASSERT): Remove; unused.
99037         * lib/canonicalize.c: Assume STDC_HEADERS.
99038         * lib/exclude.c: Include "strcase.h".
99039         * lib/regex_internal.h [!defined _LIBC]: Likewise.
99040         * lib/getusershell.c: Include stdio--.h rather than stdio.h
99041         and stdio-safer.h.
99042         (getusershell): Call fopen, not fopen_safer.
99043         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
99044         Do not include unistd-safer.h.
99045         (save_cwd): Don't call fd_safer; no longer needed
99046         now that we include fcntl--.h.
99048         * lib/getdate.y (relative_time): New type.
99049         (RELATIVE_TIME_0): New constant.
99050         (parser_control): Use relative_time instead of doing it ourselves.
99051         (%union): Add new relative_time rel member.
99052         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
99053         Now typeless.
99054         (relunit, relunit_snumber): Now of type rel.
99055         (zone, rel, relunit, get_date): Adjust to above changes.
99057         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
99058         Do not include unistd-safer.h.
99059         (getloadavg): Don't call fd_safer; no longer needed
99060         now that we include fcntl--.h.
99062         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
99063         (make_dir_parents): Treat ENOSYS like EEXIST.
99065         Improve quality of diagnostics on restore_cwd failure.
99066         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
99067         (make_dir_parents): Last arg is now int * (for errno), not bool *.
99068         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
99069         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
99070         each time through the loop.  Do not diagnose restore_cwd failure;
99071         that is the caller's job (and perhaps the caller does not care).
99073         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
99074         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
99075         If the file already exists but is not a directory, don't bother
99076         to try to make its parents.
99077         Close potential file descriptor leak if we can't chdir("/") (!).
99078         Don't always return true if chdir($PWD) fails; return true only
99079         if the requested action was done successfully (except for the
99080         chdir($PWD)).
99081         Don't log final directory unless we actually made it.
99082         Refactor to avoid duplicate code to fix up permissions.
99083         Don't attempt to fix up parent permissions if chdir($PWD) fails.
99085         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
99086         to make it a bit faster and (I hope) clearer.
99087         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
99088         Fix bug in formats like %2N.
99090         * lib/verify.h: New file.
99092 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
99094         Sync from coreutils.
99095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
99097 2005-09-22  Jim Meyering  <jim@meyering.net>
99099         Sync from coreutils.
99101         * m4/lstat.m4 (gl_FUNC_LSTAT):
99102         Use AC_LIBSOURCES to require lstat.c and lstat.h.
99103         Remove obsolete comment.
99104         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
99105         * m4/xstrtod.m4: Likewise.
99107         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
99109 2005-09-22  Jim Meyering  <jim@meyering.net>
99111         Sync from coreutils.
99113         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
99115         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
99116         the .tm_year member, since otherwise gcc-4.0 would now warn about
99117         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
99119         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
99120         order to avoid an unsuppressible warning from gcc on 64-bit systems.
99122         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
99123         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
99124         when run in a time zone for which daylight savings time is in effect
99125         for the starting date.
99127         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
99128         stop us from restricting permissions of just-created absolute-named
99129         directories.
99130         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
99131         to restore initial working directory.
99132         * lib/mkdir-p.c (make_dir_parents): New parameter:
99133         different_working_dir, to tell caller if/when we change the working
99134         directory and are unable to return to the initial one.
99135         * lib/mkdir-p.h (make_dir_parents): Update prototype.
99136         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
99137         `return false'.  This fixes a bug introduced on 2004-07-30.
99139         * lib/openat.c (fdopendir): Be sure to close the supplied
99140         file descriptor before returning.  This makes our replacement
99141         implementation a little closer to Solaris's, where fdopendir
99142         ties the file descriptor to the returned DIR* pointer.
99143         * lib/openat.c (unlinkat): New function.
99144         * lib/openat.h (unlinkat): Add prototype.
99145         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
99146         (openat_restore_fail): Rename from openat_restore_die.
99147         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
99149         Provide an alternative to exiting immediately upon save_cwd or
99150         restore_cwd failure.  Now, an application can arrange e.g.,
99151         to perform a longjump in that case.
99152         * lib/openat.c: Include dirname.h.
99153         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
99154         (rpl_openat, fdopendir, fstatat): Call openat_save_die
99155         and openat_restore_die rather than calling error directly.
99156         Don't include "error.h" or "exitfail.h"; they're no longer needed.
99158         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
99159         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
99160         define.
99162         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
99163         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
99164                             int utc, int nanoseconds);
99165         Background:
99166         date should not have to allocate a megabyte of virtual memory to
99167         handle a format argument like +%1048575T.  When implemented with
99168         strftime, it must allocate such a buffer, use strftime to fill it
99169         in, print it, then free it.
99170         With fprintftime, it simply prints everything and exits.
99171         With no need for memory allocation, that's one fewer way to fail.
99172         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
99173         optional field width, not before, so we accept %9:z, not %:9z.
99174         (my_strftime): Be sure to use L_('x') for literals.
99176         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
99177         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
99178         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
99179         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
99180         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
99181         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
99182         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
99183         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
99184         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
99185         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
99186         * lib/xgethostname.c, lib/xreadlink.c:
99187         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
99189         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
99190         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
99191         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
99192         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
99193         and don't include <sys/file.h>).
99195 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
99197         Sync from coreutils.
99199         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
99200         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
99201         [!LDAV_DONE]: Avoid unused variable warning.
99203 2005-09-21  Bruno Haible  <bruno@clisp.org>
99205         * lib/unicodeio.h (unicode_to_mb): New declaration.
99207 2005-09-20  Derek Price  <derek@ximbiot.com>
99209         * lib/getaddrinfo.c: Don't include <netdb.h> included from
99210         getaddrinfo.h.
99212 2005-09-20  Bruno Haible  <bruno@clisp.org>
99214         * gnulib-tool: Remove trailing slashes from the values specified for
99215         --source-base, --m4-base, --tests-base, --aux-dir.
99216         Suggested by Simon Josefsson <jas@extundo.com>.
99218 2005-09-20  Bruno Haible  <bruno@clisp.org>
99220         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
99221         func_modules_to_filelist, func_import, func_create_testdir): Make all
99222         sorting results locale-independent, so that gnulib-cache.m4 doesn't
99223         change when gnulib-tool is invoked in a different locale.
99225 2005-09-19  Simon Josefsson  <jas@extundo.com>
99227         * m4/socklen.m4: Fix typo.
99229 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99231         Use a consistent style for including <config.h>.
99232         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
99233         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
99234         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
99235         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
99236         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
99237         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
99238         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
99239         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
99240         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
99241         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
99242         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
99243         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
99244         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
99245         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
99246         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
99247         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
99248         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
99249         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
99250         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
99251         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
99252         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
99253         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
99254         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
99255         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
99256         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
99257         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
99258         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
99259         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
99260         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
99261         lib/xstrtoumax.c, lib/yesno.c:
99262         Standardize inclusion of config.h.
99263         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
99264         lib/inttostr.h:  Removed inclusion of config.h from header files.
99265         * lib/inttostr.c:  Adjusted in-tree users.
99266         * lib/timespec.h: Remove superfluous warning to include config.h.
99267         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
99268         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
99269         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
99270         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
99271         config.h with HAVE_CONFIG_H.
99273 2005-09-19  Jim Meyering  <jim@meyering.net>
99275         * modules/pathmax (License): Change to LGPL.
99277 2005-09-19  Derek Price  <derek@ximbiot.com>
99279         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
99281 2005-09-19  Bruno Haible  <bruno@clisp.org>
99283         * gnulib-tool (import): Provide default for --tests-base.
99285 2005-09-19  Bruno Haible  <bruno@clisp.org>
99287         * doc/quote.texi: New file, extracted from gnulib.texi.
99288         * doc/ctime.texi: New file, extracted from gnulib.texi.
99289         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
99290         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
99291         * doc/gnulib.texi: Include them.
99293 2005-09-18  Bruno Haible  <bruno@clisp.org>
99295         Portability fix.
99296         * gnulib-tool (func_readlink): New function.
99297         (func_ln_if_changed): Use it.
99299 2005-09-18  Bruno Haible  <bruno@clisp.org>
99301         * gnulib-tool: Support --with-tests also with --import.
99302         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
99303         (func_import): Use variables $testsbase and $inctests. Emit a
99304         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
99305         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
99306         SUBDIRS += $testsdir.
99307         (func_create_testdir): Update.
99309 2005-09-18  Bruno Haible  <bruno@clisp.org>
99311         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
99312         instead of $dry_run.
99313         (func_cp_if_changed, func_mv_if_changed): Remove functions.
99314         (func_ln_if_changed): Don't handle dry-run here.
99315         (func_import): In dry-run mode, detect more precisely which actions
99316         would be performed, and don't use "...ing" verbs.
99318 2005-09-18  Bruno Haible  <bruno@clisp.org>
99320         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
99321         (func_import): Use join on two temporary files instead of three nested
99322         loops, in order to determine which files are new or old.
99324 2005-09-18  Bruno Haible  <bruno@clisp.org>
99326         * gnulib-tool (func_import): Comment out code that spits out the
99327         new files with --dry-run.
99329 2005-09-18  Bruno Haible  <bruno@clisp.org>
99331         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
99333 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99335         * lib/stat-time.h: New file.
99336         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
99337         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
99338         in a different way.
99339         (timespec_cmp): New function.
99340         * lib/utimecmp.c: Include stat-time.h.
99341         (SYSCALL_RESOLUTION): Depend on whether various struct stat
99342         members exist, not on the obsolescent ST_MTIM_NSEC.
99343         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
99345 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99347         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
99349 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99351         * MODULES.html.sh (File system functions): Add stat-time.
99352         * modules/stat-time: New file.
99353         * modules/timespec (Files): Remove m4/st_mtim.m4; this
99354         is now done in a different way, by the stat-time module.
99355         * modules/utimecmp (Depends-on): Add stat-time.
99357 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
99359         * m4/st_mtim.m4: Remove.  Superseded by...
99360         * m4/stat-time.m4: New file.
99361         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
99362         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
99364 2005-09-15  Derek Price  <derek@ximbiot.com>
99366         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
99368 2005-09-15  Derek Price  <derek@ximbiot.com>
99370         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
99371         * lib/regex_internal.c: Ditto, using this...
99372         (__GNUC_PREREQ): ...new macro.
99373         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
99374         using...
99375         (__GNUC_PREREQ): ...this new macro.
99377         * lib/strstr.h: Include string.h. Define strstr as a macro here.
99379 2005-09-15  Derek Price  <derek@ximbiot.com>
99380             Paul Eggert  <eggert@cs.ucla.edu>
99382         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
99383         changes, consolidating in...
99384         * lib/regex_internal.h: ...this file.
99386 2005-09-13  Jim Meyering  <jim@meyering.net>
99388         * lib/canon-host.c: Filter through gnu indent and reword comments
99389         slightly.
99390         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
99392 2005-09-13  Derek Price  <derek@ximbiot.com>
99394         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
99395         failure.
99396         Reported by Jim Meyering  <jim@meyering.net>.
99398 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99400         * lib/base64.c: Typo.
99401         (base64_encode): Put b64str in initialized data section.
99403 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
99405         Merge glibc and coreutils changes into gnulib, plus a few
99406         extra fixes.
99407         * lib/md5.c: Use #error rather than a string.
99408         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
99409         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
99410         (__attribute__): Define to empty for non recent-GCC.
99411         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
99412         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
99413         Renamed from their non-__ counterparts, with new macros replacing
99414         them if not _LIBC.  Add __THROW attribute.
99415         (rol): Remove.
99416         (struct md5_ctx): Align buffer if using GCC.
99417         * lib/sha1.h (struct sha1_ctx): Likewise.
99418         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
99419         The old name was backwards.
99420         (NOTSWAP): Remove; not used.
99421         (rol): New macro, moved here from md5.h.
99422         (sha1_process_block): Remove a FIXME that doesn't make sense.
99424 2005-09-12  Derek Price  <derek@ximbiot.com>
99426         Return usable errors from canon-host.
99427         * lib/canon-host.h: New file.
99428         * lib/canon-host.c (canon_host): Wrap...
99429         (canon_host_r): ...this new function, which now relies exclusively on
99430         getaddrinfo.
99431         (ch_strerror): New function.
99432         (last_cherror): New global.
99433         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
99434         interface.
99435         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
99436         void *.
99437         (freeaddrinfo): Free ai->ai_canonname when set.
99439 2005-09-12  Derek Price  <derek@ximbiot.com>
99441         Make canon-host require getaddrinfo.
99442         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
99443         AC_LIBSOURCE canon-host.h.  Call...
99444         (gl_PREREQ_CANON_HOST): ...this new function, which requires
99445         gl_GETADDRINFO.
99446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
99448 2005-09-12  Derek Price  <derek@ximbiot.com>
99450         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
99451         LGPL.
99452         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
99454 2005-09-12  Derek Price  <derek@ximbiot.com>
99456         * lib/gai_strerror.c: Include config.h when available.  Include
99457         getaddrinfo.h before other headers to test interface.
99458         Reported by Larry Jones <lawrence.jones@ugs.com>.
99460 2005-09-12  Derek Price  <derek@ximbiot.com>
99461             Paul Eggert  <eggert@cs.ucla.edu>
99463         * modules/glob (Files): Add glob-libc.h.
99465 2005-09-12  Derek Price  <derek@ximbiot.com>
99466             Paul Eggert  <eggert@cs.ucla.edu>
99468         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
99469         glob_.h, glob-libc.h.
99470         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
99472 2005-09-12  Derek Price  <derek@ximbiot.com>
99473             Paul Eggert  <eggert@cs.ucla.edu>
99475         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
99476         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
99477         protecting things that should be done only in gnulib contexts.
99478         * lib/glob_.h: New file, containing only the glob things needed for
99479         gnulib.
99480         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
99481         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
99482         (glob, globfree, glob_pattern_p): Now defined simply in terms of
99483         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
99484         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
99485         and to respect the namespace rules better.
99487 2005-09-08  Simon Josefsson  <jas@extundo.com>
99489         * modules/socklen: New file.
99491 2005-09-08  Simon Josefsson  <jas@extundo.com>
99493         * m4/socklen.m4: New file.
99495 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99497         * modules/utimens (Files): Add m4/utimbuf.m4, since
99498         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
99499         Reported by Sergey Poznyakoff.
99501 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99503         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
99504         definitions, since that's the preferred style in glibc.
99505         Fix a minor spacing issue, and update copyright notice to match
99506         glibc's.
99508 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99510         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
99512 2005-09-06  Simon Josefsson  <jas@extundo.com>
99514         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
99515         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
99517 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99519         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
99520         warning.
99522 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99524         * config/srclist.txt: Add glibc bug 1302.
99526 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
99528         Change bitset word type from unsigned int to unsigned long int,
99529         as this has better performance on typical 64-bit hosts.
99530         Port bitset code to hosts with unusual word sizes.
99531         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
99532         (build_collating_symbol):
99533         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
99534         argument is a bitset.  This is merely a style issue, but it makes
99535         it clearer that an entire array is expected.
99536         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
99537         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
99538         Port to the case where bitset_word is not the same as unsigned int.
99539         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
99540         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
99541         Likewise.
99542         * lib/regexec.c (check_dst_limits_calc_pos_1,
99543         check_subexp_matching_top):
99544         (build_trtable, group_nodes_into_DFAstates):
99545         Likewise.
99546         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
99547         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
99548         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
99549         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
99550         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
99551         * lib/regcomp.c (optimize_subexps, lower_subexp):
99552         Work even if bitset_word has holes in its bitwise representation.
99553         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
99554         * lib/regexec.c (check_dst_limits_calc_pos_1,
99555         check_subexp_matching_top):
99556         Likewise.
99557         * lib/regex_internal.c (re_string_reconstruct):
99558         Don't assume UCHAR_MAX == 255.
99559         * lib/regex_internal.h (bitset_set_all): Likewise.
99560         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
99561         All uses changed.
99562         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
99563         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
99564         All uses changed.
99565         (BITSET_WORD_MAX): New macro.
99566         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
99567         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
99568         (bitset_empty, bitset_copy):
99569         Prefer sizeof (bitset) to multiplying it out ourselves.
99570         (bitset_not_merge): Remove; unused.
99571         (bitset_contain): Return bool, not unsigned int with one bit on.
99572         All callers changed.
99573         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
99574         alignment than re_node_set; do this by defining a new internal
99575         type struct dests_alloc and using it to allocate memory.
99577 2005-09-05  Bruno Haible  <bruno@clisp.org>
99579         * gnulib-tool (func_import): Fix comparison in handling of symbolic
99580         links.
99582 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
99584         * modules/size_max (Makefile.am): Add size_max.h
99586 2005-09-04  Derek Price  <derek@ximbiot.com>
99588         * gnulib-tool (func_import): Fix reversed $symbolic logic.
99590 2005-09-03  Simon Josefsson  <jas@extundo.com>
99592         * gnulib-tool: Fix typo.
99594 2005-09-03  Simon Josefsson  <jas@extundo.com>
99596         * config/srclist.txt: Add glibc bug 1293.
99598 2005-09-03  Derek Price  <derek@ximbiot.com>
99600         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
99601         From Larry Jones <lawrence.jones@ugs.com>.
99603 2005-09-02  Simon Josefsson  <jas@extundo.com>
99605         * modules/socklen: New file.
99607 2005-09-02  Simon Josefsson  <jas@extundo.com>
99609         * modules/havelib: New module.
99611         * modules/gettext, modules/iconv, modules/lock, modules/readline:
99612         Use havelib.
99614 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
99616         Check for arithmetic overflow when calculating sizes, to prevent
99617         some buffer-overflow issues.  These patches are conservative, in the
99618         sense that when I couldn't determine whether an overflow was possible,
99619         I inserted a run-time check.
99620         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
99621         macros.
99622         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
99623         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
99624         (re_xnrealloc, re_x2nrealloc): New inline functions.
99625         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
99626         parse_bracket_exp):
99627         (build_equiv_class, build_charclass): Check for arithmetic overflow
99628         in size expression calculations.
99629         * lib/regex_internal.c (re_string_realloc_buffers):
99630         (build_wcs_upper_buffer, re_node_set_add_intersect):
99631         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
99632         (re_dfa_add_node, register_state): Likewise.
99633         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
99634         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
99635         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
99636         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
99638 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
99640         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
99641         m4/ulonglong.m4.  Problem reported by Martin Lambers.
99643 2005-09-02  Bruno Haible  <bruno@clisp.org>
99645         Support for lib vs. lib64 distinction on biarch platforms.
99646         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
99647         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
99648         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
99650 2005-09-02  Bruno Haible  <bruno@clisp.org>
99652         * gnulib-tool (import): In the other first-use case, provide defaults
99653         as well.
99655 2005-09-02  Bruno Haible  <bruno@clisp.org>
99657         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
99658         patches not yet found in the latest gettext release.
99660 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
99662         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
99663         to avoid a collision with bits/local_lim.h in glibc.
99664         All uses changed.  Problem reported by Dmitry V. Levin in
99665         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
99667         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
99668         bugs in int versus size_t comparisons.
99669         (re_string_context_at): Fix bug where the code assumed that
99670         Idx is signed.
99672         Use bool where appropriate.
99673         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
99674         All callers changed.
99675         (calc_eclosure_iter): Likewise, for ROOT arg.
99676         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
99677         (build_charclass_op): Likewise, for NON_MATCH arg.
99678         * lib/regex_internal.c (re_string_allocate, re_string_construct):
99679         (re_string_construct_common): Likewise, for ICASE arg.
99680         * lib/regexec.c (re_search_2_stub, re_search_stub):
99681         Likewise, for RET_LEN arg.
99682         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
99683         (set_regs): Likewise, for FL_BACKTRACK arg.
99684         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
99685         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
99686         (calc_eclosure_iter, parse_bracket_exp):
99687         Use bool for internal variables that are booleans.
99688         * lib/regexec.c (re_search_internal, check_matching,
99689         proceed_next_node):
99690         (set_regs, build_sifted_states, sift_states_bkref):
99691         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
99692         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
99693         (find_collation_sequence_value):
99694         Likewise.
99695         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
99696         (re_node_set_compare):
99697         Return bool, not int. All callers changed.
99698         * lib/regexec.c (check_halt_node_context, check_dst_limits):
99699         (build_trtable, check_node_accept): Likewise.
99700         * lib/regex_internal.h: Include stdbool.h.
99702         Fix bugs uncovered when converting to bool.
99703         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
99704         failure instead of charging ahead blindly.
99705         * lib/regex_internal.c (register_state): Likewise.
99706         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
99707         for freeing internal storage.
99708         (group_nodes_into_DFA_states): Use unsigned int, not int, for
99709         bitset pieces used as boolean, to avoid undefined behavior
99710         on hosts that do int overflow checking.
99712 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
99714         * config/srclist.txt: Add glibc bugs 1285-1287.
99716 2005-09-01  Jim Meyering  <jim@meyering.net>
99718         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
99719         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
99720         Require gl_STAT_MACROS, too.
99722 2005-09-01  Bruno Haible  <bruno@clisp.org>
99724         * gnulib-tool (import): In the first-use case, provide defaults.
99726 2005-09-01  Bruno Haible  <bruno@clisp.org>
99728         * gnulib-tool (func_import): Remove the .tmp files.
99730 2005-09-01  Bruno Haible  <bruno@clisp.org>
99732         * gnulib-tool (func_import): Fix handling of symbolic links.
99734 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99736         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
99737         old glibc regex code mishandles strings longer than 2**31 bytes.
99738         This patch fixes this when the regex code is used in gnulib
99739         (i.e., outside glibc).
99741         This patch should not affect the use of the regex code inside
99742         glibc.  No doubt this problem also needs to be handled for glibc
99743         as well, but the result will be an incompatible change to the
99744         glibc ABI, and the old ABI will have to be supported too.  That
99745         can be the subject for another patch.
99747         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
99748         governing whether the rest of this patch is active.  By default,
99749         the macro is disabled and the patch has no effect.
99750         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
99751         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
99752         (struct re_pattern_buffer, re_search, re_search_2, re_match):
99753         (re_match_2, re_set_registers): Use the new types.
99754         * lib/regex_internal.h (Idx, re_hashval_t): New types.
99755         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
99756         New macros.
99757         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
99758         (re_string_context_at, bin_tree_t, re_dfastate_t):
99759         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
99760         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
99761         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
99762         (re_string_char_size_at, re_string_wchar_at):
99763         (re_string_elem_size_at):
99764         Use the new types and macros to port to 64-bit hosts.
99765         Use unsigned types for internal values, so that the code
99766         mostly works even for arrays larger than SSIZE_MAX.
99767         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
99768         (search_duplicated_node, calc_eclosure_iter, fetch_number):
99769         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
99770         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
99771         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
99772         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
99773         (calc_inveclosure, parse_dup_op, build_range_exp):
99774         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
99775         (fetch_number, create_token_tree, mark_opt_subexp):
99776         Likewise.
99777         * lib/regex_internal.c (re_string_construct_common,
99778         create_ci_newstate):
99779         (create_cd_newstate, re_string_allocate, re_string_construct):
99780         (re_string_realloc_buffers, build_wcs_upper_buffer):
99781         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
99782         (re_string_reconstruct, re_string_peek_byte_case):
99783         (re_string_fetch_byte_case, re_string_context_at):
99784         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
99785         (re_node_set_init_copy, re_node_set_add_intersect):
99786         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
99787         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
99788         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
99789         (re_acquire_state, re_acquire_state_context, register_state):
99790         Likewise.
99791         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
99792         search_cur_bkref_entry):
99793         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
99794         (re_search_internal, re_search_2_stub, re_search_stub)
99795         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
99796         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
99797         (update_cur_sifted_state, check_dst_limits):
99798         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
99799         (check_subexp_limits, sift_states_bkref, merge_state_array):
99800         (check_subexp_matching_top, get_subexp, get_subexp_sub):
99801         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
99802         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
99803         (expand_bkref_cache, check_node_accept_bytes):
99804         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
99805         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
99806         (acquire_init_state_context, check_halt_node_context):
99807         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
99808         (sift_states_backward, clean_state_log_if_needed):
99809         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
99810         (find_recover_state, transit_state_sb, transit_state_mb):
99811         (transit_state_bkref, build_trtable, match_ctx_clean):
99812         Likewise.
99813         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
99814         to work around an assumption that REG_MISSING is negative.
99816         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
99817         (seek_collating_symbol_entry) [defined _LIBC]:
99818         (lookup_collation_sequence_value) [defined _LIBC]:
99819         (build_range_exp, build_collating_symbol) [defined _LIBC]:
99820         Use prototypes rather than old-style function definitions.
99821         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
99822         (transit_state_sb) [0]:
99823         (find_collation_sequence_value) [defined _LIBC]: Likewise.
99825         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
99826         rm_eo.
99828         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
99829         (optimize_subexps, lower_subexp):
99830         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
99831         since the signed shift might overflow.  Use 1u<<31 instead.
99832         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
99833         Likewise.
99834         * lib/regexec.c (check_dst_limits_calc_pos_1,
99835         check_subexp_matching_top): Likewise.
99837         * lib/regcomp.c (optimize_subexps, lower_subexp):
99838         Use CHAR_BIT rather than 8, for clarity.
99839         * lib/regexec.c (check_dst_limits_calc_pos_1):
99840         (check_subexp_matching_top): Likewise.
99841         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
99842         have to worry about portability issues when shifting it left.
99843         Remove no-longer-needed test for table_size > 0.
99844         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
99845         in a word, as the resulting behavior is undefined.
99846         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
99847         in one case, a <= should have been an <, and in another case the
99848         whole test was missing.
99849         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
99850         the standard name CHAR_BIT.
99851         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
99852         this is not true on one's complement and signed-magnitude hosts.
99854         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
99855         next_last_offset.
99856         (struct re_dfa_t): Remove unused member states_alloc.
99857         * lib/regcomp.c (init_dfa): Don't initialize unused members.
99859 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99861         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
99862         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
99863         and large-file glibc and in 32-bit large-file Solaris.
99865 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99867         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
99868         lengths fit in regoff_t; this isn't true if regoff_t is the same
99869         width as size_t.
99870         * lib/regex.c (re_search_internal): 5th arg is LAST_START
99871         (= START + RANGE) instead of RANGE.  This avoids overflow
99872         problems when regoff_t is the same width as size_t.
99873         All callers changed.
99874         (re_search_2_stub): Check for overflow when adding the
99875         sizes of the two strings.
99876         (re_search_stub): Check for overflow when adding START
99877         to RANGE; if it occurs, substitute the extreme value.
99879 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99881         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
99883 2005-08-31  Jim Meyering  <jim@meyering.net>
99885         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
99886         a pointer-to-const.
99887         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
99888         (register_state): Likewise.
99889         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
99890         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
99891         (group_nodes_into_DFAstates): Likewise.
99893 2005-08-31  Jim Meyering  <jim@meyering.net>
99895         * check-module: Add a FIXME comment.
99897 2005-08-31  Eric Blake  <ebb9@byu.net>
99899         * modules/unistd-safer (Files): Add unistd--.h.
99900         * modules/stdio-safer (Files): Add stdio--.h.
99902 2005-08-31  Derek Price  <derek@ximbiot.com>
99904         * lib/getdelim.c (getdelim): Return EOF on EOF.
99905         Reported by Larry Jones <lawrence.jones@ugs.com>.
99907 2005-08-31  Bruno Haible  <bruno@clisp.org>
99909         Avoid unnecessary diffs in the generated lib/Makefile.am.
99910         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
99911         the generated files.
99912         (func_import): Don't set cmd.
99914 2005-08-31  Bruno Haible  <bruno@clisp.org>
99916         * lib/strstr.c: Include <stddef.h>, for NULL.
99917         * lib/strcasestr.c: Likewise.
99918         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99920 2005-08-31  Bruno Haible  <bruno@clisp.org>
99922         * gnulib-tool: New option --macro-prefix.
99923         (func_import): Use macro_prefix.
99924         (import): Handle option --macro-prefix.
99926 2005-08-31  Bruno Haible  <bruno@clisp.org>
99928         * gnulib-tool (import): Rename most ac_* variables to cached_*.
99929         Also use new variables cached_lgpl, cached_libtool.
99931 2005-08-31  Bruno Haible  <bruno@clisp.org>
99933         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
99934         always instantiating them.
99936 2005-08-31  Bruno Haible  <bruno@clisp.org>
99938         * gnulib-tool (func_import): Read the previous cached settings
99939         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
99940         earlier added by gnulib but are now dropped. Warn when a gnulib file
99941         overwrites a non-gnulib file.
99943 2005-08-31  Bruno Haible  <bruno@clisp.org>
99945         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
99946         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
99947         projects that don't keep autogenerated files in CVS. Put into
99948         actioncmd only the specified modules, not the transitive closure.
99950 2005-08-31  Bruno Haible  <bruno@clisp.org>
99952         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
99953         Create directories that shall be filled.
99954         (import): Don't look for gl_* macros in configure.ac. Recurse across
99955         all directories containing a gnulib-cache.m4 files, if meaningful.
99957 2005-08-31  Bruno Haible  <bruno@clisp.org>
99959         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
99960         (import): Set seen_libtool when we see gl_LIBTOOL.
99962 2005-08-31  Bruno Haible  <bruno@clisp.org>
99964         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
99965         declaration macro definitions from generated gnulib.m4.
99967 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
99969         * lib/iconvme.h: Add prototype for iconv_alloc.
99971 2005-08-29  Simon Josefsson  <jas@extundo.com>
99973         * lib/iconvme.c: Fix errno.
99975 2005-08-29  Bruno Haible  <bruno@clisp.org>
99977         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
99978         that it works when the directory contains spaces.
99980 2005-08-29  Bruno Haible  <bruno@clisp.org>
99982         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
99984 2005-08-29  Bruno Haible  <bruno@clisp.org>
99986         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
99987         Emit more advice.
99989 2005-08-29  Bruno Haible  <bruno@clisp.org>
99990         and Stepan Kasal  <kasal@ucw.cz>
99992         * check-module: If more parameters are given, check each of them
99993         separately; add more exceptions, as noted by Jim Meyering.
99994         (check_module): New procedure.
99995         (%exempt_header): Now contains all exceptions.
99997 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
99999         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
100001 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
100003         * lib/iconvme.c: Split iconv_string into iconv_alloc.
100005 2005-08-28  Bruno Haible  <bruno@clisp.org>
100007         * m4/gnulib-tool.m4: New file.
100009 2005-08-27  Jim Meyering  <jim@meyering.net>
100011         * modules/unistd-safer (Files): Add pipe-safer.c.
100012         * modules/fcntl-safer (Files): Add creat-safer.c.
100014 2005-08-27  Jim Meyering  <jim@meyering.net>
100016         * m4/stdlib-safer.m4: New file.  From coreutils.
100017         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
100018         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
100019         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
100020         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
100021         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
100023 2005-08-27  Jim Meyering  <jim@meyering.net>
100025         * lib/fopen-safer.c: Merge minor changes from coreutils.
100026         * lib/dup-safer.c: Likewise.
100027         * lib/fd-safer.c: Likewise.
100029         Merge from coreutils.
100030         * lib/stdio--.h: New file.
100031         * lib/stdlib--.h: New file.
100032         * lib/mkstemp-safer.c: New file.
100034         GNU tar needs these.
100035         * lib/pipe-safer.c: New file.
100036         * lib/creat-safer.c: New file.
100037         * lib/fcntl--.h (creat): Define to creat_safer.
100038         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
100039         * lib/unistd--.h (pipe): Define to pipe_safer.
100040         * lib/unistd-safer.h: Declare pipe_safer.
100042 2005-08-26  Simon Josefsson  <jas@extundo.com>
100044         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
100045         Haible <bruno@clisp.org>.
100047 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
100049         * lib/regex_internal.h: Remove all references to
100050         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
100051         or better.
100052         (bitset_not, bitset_merge, bitset_not_merge):
100053         (bitset_mask, re_string_allocate, re_string_construct):
100054         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
100055         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
100056         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
100057         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
100058         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100059         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100060         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
100061         (re_acquire_state_context):
100062         Remove unnecessary forward decls.
100063         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
100064         Put __attribute at function definition,
100065         now that the function decl has been removed.
100066         * lib/regex_internal.c (re_string_peek_byte_case):
100067         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
100068         Likewise.
100070 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
100072         * m4/regex.m4: Add AC_PREREQ(2.50).
100073         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
100075 2005-08-25  Simon Josefsson  <jas@extundo.com>
100077         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
100078         __fsetlocking.
100080 2005-08-25  Simon Josefsson  <jas@extundo.com>
100082         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
100083         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
100084         GLIBC specific code.
100086 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100088         Make regex safe for g++.  This fixes one real bug (an "err"
100089         that should have been "*err").  g++ problem reported by
100090         Sam Steingold.
100091         * lib/regex_internal.h (re_calloc): New macro, consistent with
100092         re_malloc etc.  All callers of calloc changed to use re_calloc.
100093         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
100094         not int.  All callers changed.
100095         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
100096         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
100097         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
100098         (find_recover_state): Change "err" to "*err"; this fixes what
100099         appears to be a real bug.
100100         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
100101         versus int.
100103 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100105         * modules/regex (Depends-on): Add malloc, since the code
100106         assumes that !malloc(0) means failure.
100108 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100110         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
100112         alloca modernization/simplification for regex.
100113         * lib/regex.c: Remove portability cruft for alloca.  This no longer
100114         needs to be at the start of the file, and can be moved into
100115         regex_internal.h and simplified.
100116         * lib/regex_internal.h: Include <alloca.h>.
100117         (__libc_use_alloca) [!defined _LIBC]: New macro.
100118         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
100119         now works outside glibc.
100121 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
100123         * config/srclist.txt: Add glibc bugs 1241, 1245.
100125 2005-08-25  Jim Meyering  <jim@meyering.net>
100127         * lib/open-safer.c: Include <config.h>.
100128         Otherwise, we'd lose LARGEFILE support in any file using
100129         e.g. "fcntl--.h"
100131 2005-08-25  Bruno Haible  <bruno@clisp.org>
100133         * m4/minmax.m4: Require autoconf 2.52.
100134         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
100135         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
100136         alternatives of translit over the alphabet.
100137         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
100139 2005-08-24  Simon Josefsson  <jas@extundo.com>
100141         * tests/test-getpass.c: New file.
100143 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100145         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
100146         for GNU regex features.
100148 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100150         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
100151         * lib/regex.h (regerror): Likewise.
100153         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
100154         requires this.  (The code never needed it.)
100156         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
100157         All uses of recently-renamed identifiers changed to use the new,
100158         POSIX-compliant names.  The code will build and run just fine
100159         without these changes, but it's better to eat our own dog food
100160         and use the standard-conforming names.
100162         * lib/regex.h: Fix a multitude of POSIX name space violations.
100163         These changes have an effect only for programs that define
100164         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
100165         do not change anything for programs compiled in the normal way.
100166         Also, there is no effect on the ABI.
100168         (_REGEX_SOURCE): New macro.
100169         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
100170         defined and _GNU_SOURCE is not; this fixes a name space violation.
100172         Rename the following macros to obey POSIX requirements.
100173         The old names are still visible as macros if _REGEX_SOURCE is defined.
100174         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
100175         RE_BACKSLASH_ESCAPE_IN_LISTS.
100176         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
100177         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
100178         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
100179         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
100180         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
100181         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
100182         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
100183         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
100184         (REG_INTERVALS): renamed from RE_INTERVALS.
100185         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
100186         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
100187         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
100188         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
100189         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
100190         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
100191         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
100192         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
100193         RE_UNMATCHED_RIGHT_PAREN_ORD.
100194         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
100195         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
100196         (REG_DEBUG): renamed from RE_DEBUG.
100197         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
100198         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
100199         unusual, since we can't clash with the POSIX REG_ICASE.
100200         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
100201         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
100202         (REG_NO_SUB): renamed from RE_NO_SUB.
100203         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
100204         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
100205         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
100206         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
100207         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
100208         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
100209         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
100210         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
100211         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
100212         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
100213         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
100214         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
100215         RE_SYNTAX_POSIX_MINIMAL_BASIC.
100216         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
100217         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
100218         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
100219         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
100220         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
100221         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
100222         (REG_FIXED): Renamed from REGS_FIXED.
100223         (REG_NREGS): Renamed from RE_NREGS.
100225         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
100226         of other REG_* macros, since POSIX says the user is allowed to
100227         #undef these macros selectively.
100229         (reg_errcode_t): Update comment stating what other tables need
100230         to be consistent.
100232         Rename the following enum values to obey POSIX requirements.
100233         The old names are still visible as macros.
100234         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
100235         is not defined, since GNU is supposed to be a superset of POSIX as
100236         much as possible, and since we want reg_errcode_t to be a signed
100237         type for implementation consistency.
100238         (_REG_NOERROR): Renamed from REG_NOERROR.
100239         (_REG_NOMATCH): Renamed from REG_NOMATCH.
100240         (_REG_BADPAT): Renamed from REG_BADPAT.
100241         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
100242         (_REG_ECTYPE): Renamed from REG_ECTYPE.
100243         (_REG_EESCAPE): Renamed from REG_EESCAPE.
100244         (_REG_ESUBREG): Renamed from REG_ESUBREG.
100245         (_REG_EBRACK): Renamed from REG_EBRACK.
100246         (_REG_EPAREN): Renamed from REG_EPAREN.
100247         (_REG_EBRACE): Renamed from REG_EBRACE.
100248         (_REG_BADBR): Renamed from REG_BADBR.
100249         (_REG_ERANGE): Renamed from REG_ERANGE.
100250         (_REG_ESPACE): Renamed from REG_ESPACE.
100251         (_REG_BADRPT): Renamed from REG_BADRPT.
100252         (_REG_EEND): Renamed from REG_EEND.
100253         (_REG_ESIZE): Renamed from REG_ESIZE.
100254         (_REG_ERPAREN): Renamed from REG_ERPAREN.
100255         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
100256         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
100257         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
100258         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
100260         (_REG_RE_NAME, _REG_RM_NAME): New macros.
100261         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
100262         changed.  But support the old name if the new one is not defined
100263         and if _REGEX_SOURCE.
100265         Change the following member names in struct re_pattern_buffer.
100266         The old names are still supported if !_REGEX_SOURCE.
100267         The new names are always supported, regardless of _REGEX_SOURCE.
100268         (re_buffer): Renamed from buffer.
100269         (re_allocated): Renamed from allocated.
100270         (re_used): Renamed from used.
100271         (re_syntax): Renamed from syntax.
100272         (re_fastmap): Renamed from fastmap.
100273         (re_translate): Renamed from translate.
100274         (re_can_be_null): Renamed from can_be_null.
100275         (re_regs_allocated): Renamed from regs_allocated.
100276         (re_fastmap_accurate): Renamed from fastmap_accurate.
100277         (re_no_sub): Renamed from no_sub.
100278         (re_not_bol): Renamed from not_bol.
100279         (re_not_eol): Renamed from not_eol.
100280         (re_newline_anchor): Renamed from newline_anchor.
100282         Change the following member names in struct re_registers.
100283         The old names are still supported if !_REGEX_SOURCE.
100284         The new names are always supported, regardless of _REGEX_SOURCE.
100285         (rm_num_regs): Renamed from num_regs.
100286         (rm_start): Renamed from start.
100287         (rm_end): Renamed from end.
100289         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
100290         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
100291         Prepend __ to parameter names.
100293         Undo yesterday's changes.
100295 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100297         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
100298         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
100299         lib/regex.c.
100301 2005-08-24  Jim Meyering  <jim@meyering.net>
100303         Sync from coreutils.
100304         * m4/fcntl-safer.m4: New file.
100306         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
100307         and object files for this module.
100309 2005-08-24  Jim Meyering  <jim@meyering.net>
100311         Sync from coreutils.
100312         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
100314 2005-08-24  Jim Meyering  <jim@meyering.net>
100316         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
100317         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
100319 2005-08-24  Jim Meyering  <jim@meyering.net>
100321         * modules/fcntl-safer: New module.
100322         * modules/fts (Depends-on): Add fcntl-safer.
100323         * MODULES.html.sh (File descriptor based Input/Output):
100324         Add fcntl-safer.
100326 2005-08-24  Bruno Haible  <bruno@clisp.org>
100328         Support for unit test modules.
100329         * modules/README: Mention tests modules.
100330         * modules/TEMPLATE-TESTS: New file.
100331         * gnulib-tool: New options --extract-tests-module, --with-tests and
100332         --tests-base (unused for the moment).
100333         (testsbase, inctests): New variables.
100334         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
100335         (func_verify_module): Exclude TEMPLATE-TESTS.
100336         (func_verify_nontests_module, func_verify_tests_module): New functions.
100337         (func_get_dependencies): Add implicit dependency for tests modules.
100338         (func_get_tests_module): New function.
100339         (func_modules_transitive_closure): When --with-tests was specified,
100340         include the unit tests as well, unless explicitly avoided.
100341         (func_emit_lib_Makefile_am): Ignore the tests modules here.
100342         (func_emit_tests_Makefile_am): New function.
100343         (func_create_testdir): When --with-tests was specified, emit a
100344         tests/ directory.
100345         * MODULES.html.sh (Future developments): Update.
100347 2005-08-24  Bruno Haible  <bruno@clisp.org>
100349         * modules/tls-tests: New file.
100350         * tests/test-tls.c: New file, from GNU gettext.
100352 2005-08-24  Bruno Haible  <bruno@clisp.org>
100354         * modules/lock-tests: New file.
100355         * tests/test-lock.c: New file, from GNU gettext.
100357 2005-08-24  Bruno Haible  <bruno@clisp.org>
100359         * lib/lock.h: Add multiple inclusion guard.
100360         * lib/tls.h: Add multiple inclusion guard.
100362 2005-08-24  Bruno Haible  <bruno@clisp.org>
100364         * gnulib-tool: Add support for the --aux-dir option to
100365         --create-testdir, --create-megatestdir, --test, --megatest.
100366         (func_create_testdir, func_create_megatestdir): Optionally emit a
100367         AC_CONFIG_AUX_DIR directive.
100368         (create-testdir, create-megatestdir, test, megatest): Provide a
100369         default value for $auxdir.
100371 2005-08-24  Bruno Haible  <bruno@clisp.org>
100373         * gnulib-tool (import): Use compound statement instead of subshell
100374         where possible.
100376 2005-08-24  Bruno Haible  <bruno@clisp.org>
100378         * gnulib-tool (import): Change --aux-dir default to "build-aux".
100380 2005-08-24  Bruno Haible  <bruno@clisp.org>
100382         * gnulib-tool (func_version): Update.
100384 2005-08-24  Bruno Haible  <bruno@clisp.org>
100386         * gnulib-tool (func_import, func_create_testdir,
100387         func_create_megatestdir): Quote all autoconf macro arguments.
100389 2005-08-24  Bruno Haible  <bruno@clisp.org>
100391         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
100392         option --force, because --force causes the aclocal.m4 of each
100393         subdirectory to be newer than the corresponding config.h.in.
100395 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100397         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
100398         All contents moved to gl_REGEX.
100399         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
100400         assume that it does.
100402 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100404         * lib/regex.h (REG_NOSYS)
100405         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
100406         Define, since POSIX requires it as of 2001.
100407         (_REG_ENOSYS)
100408         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
100409         New private symbol, used to keep the enum signed in all cases.
100410         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
100411         Youngman in
100412         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
100414         * lib/regex_internal.c (re_string_skip_chars, register_state):
100415         (calc_state_hash):
100416         Remove forward decls; no longer needed now that we use prototypes.
100417         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
100418         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
100419         (clean_state_log_if_needed): Likewise.
100421 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100423         * config/srclist.txt: Add glibc bugs 1231-1233.
100425 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100427         Fix problems reported by Sam Steingold in
100428         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
100429         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
100430         assumed that reg_errcode_t is a signed type, which is not
100431         necessarily true if _XOPEN_SOURCE is not defined.
100432         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
100433         since some compilers warn about it otherwise.
100435 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100437         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
100438         (init_word_char, create_initial_state, duplicate_node_closure):
100439         (fetch_token, peek_token_bracket, build_range_exp):
100440         (build_collating_symbol): Remove forward decls; no longer needed
100441         now that we use prototypes.
100443         * lib/regcomp.c:
100444         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
100445         (re_compile_fastmap_iter, regcomp, regerror, regfree):
100446         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
100447         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
100448         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
100449         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
100450         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
100451         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
100452         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
100453         (build_range_exp, build_collating_symbol, parse_bracket_exp):
100454         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
100455         (build_charclass, build_charclass_op, fetch_number, create_tree):
100456         (create_token_tree, mark_opt_subexp, duplicate_tree):
100457         Use prototypes rather than old-style definitions.
100459         * lib/regex_internal.c:
100460         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
100461         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
100462         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100463         (re_string_reconstruct, re_string_peek_byte_case):
100464         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
100465         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100466         (re_node_set_init_copy, re_node_set_add_intersect):
100467         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100468         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100469         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100470         (re_acquire_state, re_acquire_state_context, register_state):
100471         (create_ci_newstate, create_cd_newstate, free_state):
100472         Likewise.
100473         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
100474         re_search_2):
100475         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
100476         (re_search_internal, prune_impossible_nodes):
100477         (acquire_init_state_context, check_matching, static):
100478         (check_halt_node_context, check_halt_state_context, proceed_next_node):
100479         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
100480         (update_regs, sift_states_backward, build_sifted_states):
100481         (clean_state_log_if_needed, merge_state_array):
100482         (update_cur_sifted_state, add_epsilon_src_nodes):
100483         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
100484         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
100485         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
100486         (find_recover_state, check_subexp_matching_top, transit_state_mb):
100487         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
100488         (check_arrival, check_arrival_add_next_nodes):
100489         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100490         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100491         (check_node_accept_bytes, check_node_accept, extend_buffers):
100492         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
100493         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
100494         (sift_ctx_init):
100495         Likewise.
100497         * lib/regex_internal.h:
100498         (re_string_allocate, re_string_construct, re_string_reconstruct):
100499         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
100500         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
100501         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
100502         (re_string_context_at, re_string_peek_byte_case):
100503         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
100504         is defined, since we now use prototypes always.
100506         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
100507         C89 or better.  All uses removed.
100509 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100511         * config/srclist.txt: Add glibc bugs 1220-1227.
100513 2005-08-20  Jim Meyering  <jim@meyering.net>
100515         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
100516         of unused local, dfa.
100518 2005-08-20  Bruno Haible  <bruno@clisp.org>
100520         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
100522 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100524         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
100525         (re_node_set_insert_last, re_dfa_add_node):
100526         Rename local variables to avoid GCC shadowing warnings.
100528 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100530         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
100531         [defined lint]: Suppress bogus uninitialized-variable warnings.
100533         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
100534         and let the caller return REG_ESPACE if out of space.  This
100535         removes an uninitialied-variable warning with GCC 4.0.1, and also
100536         avoids taking the address of a local variable.  All callers
100537         changed.
100539 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100541         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
100542         $LIBCSRC/posix/regexec.c.
100543         Add glibc bug 1217 for regcomp.c.
100545 2005-08-19  Jim Meyering  <jim@meyering.net>
100547         * lib/regexec.c (proceed_next_node): Redo local variables to
100548         avoid GCC shadowing warnings.
100550 2005-08-18  Bruno Haible  <bruno@clisp.org>
100552         * lib/strstr.c (strstr): Fix return value in multibyte case.
100553         * lib/strcasestr.c (strcasestr): Likewise.
100555 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
100557         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
100559 2005-08-17  Jim Meyering  <jim@meyering.net>
100561         Make the %s format (seconds since the epoch) work for a negative
100562         number and when used with a zero-padded field width, e.g. %015s.
100564         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
100565         label so that it precedes the code to set `digits'.  Otherwise,
100566         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
100567         print `00-22'.  Now, it prints `-0022', as it should.
100569 2005-08-17  Bruno Haible  <bruno@clisp.org>
100571         * modules/strstr (Files): Add m4/mbrtowc.m4.
100572         (Depends-on): Add mbuiter.
100574 2005-08-17  Bruno Haible  <bruno@clisp.org>
100576         * modules/strcasestr: New file.
100577         * MODULES.html.sh (String handling, based on ANSI C 89): Add
100578         strcasestr.
100580 2005-08-17  Bruno Haible  <bruno@clisp.org>
100582         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
100584 2005-08-17  Bruno Haible  <bruno@clisp.org>
100586         * modules/mbuiter: New file.
100587         * MODULES.html.sh (Extended multibyte and wide character utilities):
100588         Add mbuiter.
100590 2005-08-17  Bruno Haible  <bruno@clisp.org>
100592         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
100593         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
100595 2005-08-17  Bruno Haible  <bruno@clisp.org>
100597         * m4/strcasestr.m4: New file.
100599 2005-08-17  Bruno Haible  <bruno@clisp.org>
100601         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
100602         * lib/strstr.c: Completely rewritten, with multibyte locale support.
100604 2005-08-17  Bruno Haible  <bruno@clisp.org>
100606         * lib/strcasestr.h: New file.
100607         * lib/strcasestr.c: New file.
100609 2005-08-17  Bruno Haible  <bruno@clisp.org>
100611         * lib/strcasecmp.c: Use mbuiter.h.
100613 2005-08-17  Bruno Haible  <bruno@clisp.org>
100615         * lib/mbuiter.h: New file.
100617 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
100619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
100620         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
100621         and gl_GETOPT are both invoked via different paths (as happens
100622         with GNU tar CVS because it uses both argp and getopt), the former
100623         wins.
100625 2005-08-16  Bruno Haible  <bruno@clisp.org>
100627         * modules/tls: New file.
100628         * MODULES.html.sh (Multithreading): Add tls.
100630 2005-08-16  Bruno Haible  <bruno@clisp.org>
100632         * modules/strnlen1: New file.
100633         * MODULES.html.sh (String handling): Add strnlen1.
100635 2005-08-16  Bruno Haible  <bruno@clisp.org>
100637         * modules/strcase (Files): Add m4/mbrtowc.m4.
100638         (Depends-on): Add strnlen1, mbchar.
100640 2005-08-16  Bruno Haible  <bruno@clisp.org>
100642         * modules/mbiter: New file.
100643         * MODULES.html.sh (Extended multibyte and wide character utilities):
100644         Add mbiter.
100646 2005-08-16  Bruno Haible  <bruno@clisp.org>
100648         * modules/mbfile: New file.
100649         * MODULES.html.sh (Extended multibyte and wide character utilities):
100650         Add mbfile.
100652 2005-08-16  Bruno Haible  <bruno@clisp.org>
100654         * modules/mbchar: New file.
100655         * MODULES.html.sh (Extended multibyte and wide character utilities):
100656         New section.
100658 2005-08-16  Bruno Haible  <bruno@clisp.org>
100660         * m4/tls.m4: New file, from GNU gettext.
100662 2005-08-16  Bruno Haible  <bruno@clisp.org>
100664         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
100665         always.
100666         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
100668 2005-08-16  Bruno Haible  <bruno@clisp.org>
100670         * m4/mbiter.m4: New file.
100672 2005-08-16  Bruno Haible  <bruno@clisp.org>
100674         * m4/mbfile.m4: New file.
100676 2005-08-16  Bruno Haible  <bruno@clisp.org>
100678         * m4/mbchar.m4: New file.
100680 2005-08-16  Bruno Haible  <bruno@clisp.org>
100682         * lib/tls.h: New file, from GNU gettext.
100683         * lib/tls.c: New file, from GNU gettext.
100685 2005-08-16  Bruno Haible  <bruno@clisp.org>
100687         * lib/strnlen1.h: New file.
100688         * lib/strnlen1.c: New file.
100690 2005-08-16  Bruno Haible  <bruno@clisp.org>
100692         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
100693         (mbi_init): Update.
100694         (mbi_avail, mbi_advance): Let the iteration end before the terminating
100695         NUL byte, not after it.
100697 2005-08-16  Bruno Haible  <bruno@clisp.org>
100699         * lib/strcase.h (strcasecmp): Add note in comments.
100700         * lib/strncasecmp.c: Use code from strcasecmp.c.
100701         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
100702         (strcasecmp): Work correctly in multibyte locales.
100704 2005-08-16  Bruno Haible  <bruno@clisp.org>
100706         * lib/mbiter.h: New file.
100708 2005-08-16  Bruno Haible  <bruno@clisp.org>
100710         * lib/mbfile.h: New file.
100712 2005-08-16  Bruno Haible  <bruno@clisp.org>
100714         * lib/mbchar.h: New file.
100715         * lib/mbchar.c: New file.
100717 2005-08-16  Bruno Haible  <bruno@clisp.org>
100719         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
100720         the valid ones. Makes the comparison operations transitive:
100721         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
100722         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
100724 2005-08-15  Simon Josefsson  <jas@extundo.com>
100726         * modules/ssize_t (License): Change to 'unlimited'.
100728         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
100730 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
100732         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
100733         Add comments for each pending glibc patch.
100735 2005-08-15  Bruno Haible  <bruno@clisp.org>
100737         * lib/regex.h (__restrict_arr): Don't define to __restrict if
100738         __cplusplus is defined.
100740 2005-08-14  Jim Meyering  <jim@meyering.net>
100742         Sync from coreutils.
100744         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
100745         Use the hash-table-based cycle-detection code not just when
100746         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
100747         Reported by James Youngman in
100748         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
100749         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
100750         FTS_TIGHT_CYCLE_CHECK.
100751         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
100752         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
100753         once again.
100754         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
100755         * lib/fts.c (fd_safer): Remove decl.
100756         Include fcntl--.h rather than unistd-safer.h
100757         (fts_safe_changedir): Don't call fd_safer; no longer needed
100758         now that we include fcntl--.h.
100760 2005-08-12  Simon Josefsson  <jas@extundo.com>
100762         * modules/getndelim2: Use ssize_t module.
100763         * modules/getnline: Likewise.
100764         * modules/safe-read: Likewise.
100765         * modules/xreadlink: Likewise.
100767         * modules/ssize_t: New file.
100769 2005-08-12  Simon Josefsson  <jas@extundo.com>
100771         * m4/readline.m4: Look for termcap, curses or ncurses if required.
100773 2005-08-12  Simon Josefsson  <jas@extundo.com>
100775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100776         ssize_t.
100778 2005-08-12  Simon Josefsson  <jas@extundo.com>
100780         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
100781         readline, getdelim and check_version.
100782         (Support for systems lacking ISO C 99: Sizes of integer types):
100783         Add size_max.
100785 2005-08-12  Bruno Haible  <bruno@clisp.org>
100787         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
100789 2005-08-11  Simon Josefsson  <jas@extundo.com>
100791         * modules/readline: New file.
100793         * modules/strnlen (Files): Add strnlen.h.
100795 2005-08-11  Simon Josefsson  <jas@extundo.com>
100797         * m4/readline.m4: New file.
100799 2005-08-11  Simon Josefsson  <jas@extundo.com>
100801         * lib/readline.h, readline.c: New file.
100803 2005-08-11  Simon Josefsson  <jas@extundo.com>
100805         * doc/gnulib.texi (Initial import, Finishing touches): Mention
100806         gl_AVOID.
100808 2005-08-11  Bruno Haible  <bruno@clisp.org>
100810         * lib/strnlen.h (strnlen): Change parameter name to match comment.
100812 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
100814         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
100816 2005-08-10  Simon Josefsson  <jas@extundo.com>
100818         * tests/test-iconvme.c: New file.
100820 2005-08-10  Simon Josefsson  <jas@extundo.com>
100822         * m4/strnlen.m4: New file.
100824         * m4/strndup.m4: Don't check for strnlen declaration, done in
100825         strnlen.m4.
100827 2005-08-10  Simon Josefsson  <jas@extundo.com>
100829         * lib/strndup.c: Use strnlen.h.
100831         * lib/strnlen.h: New file.
100833 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100835         * README: Typos.
100837 2005-08-02  Simon Josefsson  <jas@extundo.com>
100839         * modules/readline: New file.
100841 2005-08-02  Simon Josefsson  <jas@extundo.com>
100843         * modules/getdelim: New file.
100845         * modules/getline: Rewrite, don't use getndelim2.
100847 2005-08-02  Simon Josefsson  <jas@extundo.com>
100849         * m4/getline.m4: Separate out getdelim stuff into separate module.
100851         * m4/getdelim.m4: New file.
100853 2005-08-02  Simon Josefsson  <jas@extundo.com>
100855         * lib/getline.h, getline.c: Rewrite.
100857         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
100859 2005-07-31  Bruno Haible  <bruno@clisp.org>
100861         * lib/lock.h (gl_lock_initializer): New macro.
100862         (gl_lock_define_initialized): Use it.
100863         (gl_rwlock_initializer): New macro.
100864         (gl_rwlock_define_initialized): Use it.
100865         (gl_recursive_lock_initializer): New macro.
100866         (gl_recursive_lock_define_initialized): Use it.
100868 2005-07-30  Karl Berry  <karl@gnu.org>
100870         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
100871         Report from Ben Pfaff, regarding getopt.
100873 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
100875         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
100876         normal way.
100877         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
100878         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
100879         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
100880         (gl_GETOPT): Use the new macros.  Most of the implementation
100881         is moved to the new macros.  This is for programs like Emacs
100882         that don't want all the functionality of gl_GETOPT.
100884 2005-07-26  Bruno Haible  <bruno@clisp.org>
100886         * m4/lock.m4: Update from GNU gettext.
100888 2005-07-26  Bruno Haible  <bruno@clisp.org>
100890         * lib/lock.h: Update from GNU gettext.
100891         * lib/lock.c: Update from GNU gettext.
100893 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
100895         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
100896         obsolescent AC_TRY_RUN.  Include the default includes files, for
100897         'exit'.
100899 2005-07-24  Bruno Haible  <bruno@clisp.org>
100901         * modules/visibility: New file.
100902         * MODULES.html.sh (Misc): Add visibility.
100904 2005-07-24  Bruno Haible  <bruno@clisp.org>
100906         * m4/visibility.m4: New file.
100908 2005-07-24  Bruno Haible  <bruno@clisp.org>
100910         * doc/visibility.texi: New file.
100912 2005-07-22  Bruno Haible  <bruno@clisp.org>
100914         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
100915         $(ALLOCA_H), redundant through BUILT_SOURCES.
100916         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
100917         redundant through BUILT_SOURCES.
100918         * modules/byteswap (Makefile.am): Remove explicit dependency on
100919         $(BYTESWAP_H), redundant through BUILT_SOURCES.
100920         * modules/fnmatch (Makefile.am): Remove explicit dependency on
100921         $(FNMATCH_H), redundant through BUILT_SOURCES.
100922         * modules/getopt (Makefile.am): Remove explicit dependency on
100923         $(GETOPT_H), redundant through BUILT_SOURCES.
100924         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
100925         redundant through BUILT_SOURCES.
100926         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
100927         redundant through BUILT_SOURCES.
100928         * modules/stdbool (Makefile.am): Remove explicit dependency on
100929         $(STDBOOL_H), redundant through BUILT_SOURCES.
100930         * modules/stdint (Makefile.am): Remove explicit dependency on
100931         $(STDINT_H), redundant through BUILT_SOURCES.
100932         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
100933         Remove explicit dependency on $(SYSEXITS_H).
100934         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
100936 2005-07-18  Simon Josefsson  <jas@extundo.com>
100938         * lib/check-version.c (check_version): Accept identical versions too.
100940 2005-07-18  Bruno Haible  <bruno@clisp.org>
100942         * modules/lock: New file.
100943         * MODULES.html.sh (Multithreading): New section.
100945 2005-07-18  Bruno Haible  <bruno@clisp.org>
100947         * m4/lock.m4: New file, from GNU gettext.
100949 2005-07-18  Bruno Haible  <bruno@clisp.org>
100951         * lib/lock.h: New file, from GNU gettext.
100952         * lib/lock.c: New file, from GNU gettext.
100954 2005-07-18  Bruno Haible  <bruno@clisp.org>
100956         * lib/lock.h (gl_once_t): New type.
100957         (gl_once_define, gl_once): New macros.
100958         * lib/lock.c (fresh_once): New variable.
100959         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
100960         functions.
100962 2005-07-16  Simon Josefsson  <jas@extundo.com>
100964         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
100965         workaround, suggested by Bruno.
100967 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
100969         * modules/xalloc (Depends-on): Add xalloc-die.
100970         * modules/xvasprintf (Depends-on): Add xalloc-die.
100972 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
100974         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
100975         with a minor change.
100977 2005-07-15  Bruno Haible  <bruno@clisp.org>
100979         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
100980         When using lib/poll.c, define poll as rpl_poll.
100982 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
100984         * modules/argp (Depends-on): Remove unlocked-io.
100986 2005-07-14  Derek Price  <derek@ximbiot.com>
100988         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
100989         for glob symlink bug.
100991 2005-07-14  Bruno Haible  <bruno@clisp.org>
100993         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
100994         Instead, test for *_unlocked function declarations directly.
100996 2005-07-11  Simon Josefsson  <jas@extundo.com>
100998         * modules/size_max: New file.
101000         * modules/xsize: Depend on size_max module for size_max.m4.
101002 2005-07-11  Simon Josefsson  <jas@extundo.com>
101004         * lib/size_max.h: New file.
101006 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
101008         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
101009         copyright symbol and the year.
101010         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
101011         (version_etc_va): Use parameterized copyright notice.
101012         Reword to conform to the current GNU coding standards.
101014 2005-07-11  Karl Berry  <karl@gnu.org>
101016         * doc/gnulib.texi (Quoting): new node.
101017         (Initial import): more info, from Patrice.
101019 2005-07-11  Bruno Haible  <bruno@clisp.org>
101021         * gnulib-tool (func_usage): Document option --avoid.
101022         (Command line options): Handle --avoid.
101023         (func_acceptable): New function.
101024         (func_modules_transitive_closure): Use it.
101026 2005-07-11  Bruno Haible  <bruno@clisp.org>
101028         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
101029         Reported by Jim Meyering.
101031 2005-07-10  Bruno Haible  <bruno@clisp.org>
101033         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
101034         Needed when size_t is smaller than 'unsigned int'.
101035         Reported by Paul Eggert.
101037 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101039         * modules/argp (Depends-on): Add unlocked-io
101041 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
101043         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
101044         block of defines.
101046 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
101048         * config/srclist.txt: Comment out regcomp.c, since we have a porting
101049         fix now.
101051 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
101052         and Paul Eggert  <eggert@cs.ucla.edu>
101054         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
101055         in wint_t, not wchar_t.  Remove now-unnecessary cast.
101057 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101059         * modules/regex (Files): Add lib/regex_internal.c,
101060         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
101061         (Depends-on): Add extensions.
101062         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
101064 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101066         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
101067         pathconf.
101068         * m4/same.m4 (gl_SAME): Likewise.
101069         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
101071         * m4/regex.m4: Adjust to new libc regex implementation.
101072         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
101073         all the .c and .h parts of (the new) regex.
101074         Quote the m4 stuff better.
101075         Check for RE_ICASE bug of old gnulib.
101076         Check for REG_STARTEND of recent libc.
101077         Rename local variables from jm_* to gl_*.
101078         Quote operand of "test -f".
101079         Say "recent enough" version of libc, not "version 2".
101080         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
101081         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
101082         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
101083         Remove check for btowc, isascii.
101084         Require AM_LANGINFO_CODESET.
101086 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101088         * lib/regex.c, regex.h: Sync from libc.
101089         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
101090         * lib/regexec.c:
101091         New files, synced from libc, except that regex_internal.h
101092         currently has a small porting fix.
101094 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
101096         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
101097         regex_internal.c, regexec.c.
101098         Add regex_internal.h too, but as a comment, since the libc version
101099         is currently broken in gnulib mode.
101101 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
101103         Support programs like Emacs that use gnulib but not gettext.
101104         * MODULES.html.sh (Internationalization functions): Add gettext-h.
101105         * modules/gettext-h: New file.
101106         * modules/gettext (Files): Remove lib/gettext.h.
101107         (Depends-on): Add gettext-h.
101108         (Makefile.am): Remove lib_SOURCES.
101109         * modules/argmatch, modules/c-stack, modules/closeout:
101110         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
101111         * modules/execute, modules/file-type, modules/getaddrinfo:
101112         * modules/getopt, modules/human, modules/javacomp:
101113         * modules/javaexec, modules/mkdir-p, modules/obstack:
101114         * modules/openat, modules/pagealign_alloc, modules/pipe:
101115         * modules/quotearg, modules/regex, modules/rpmatch:
101116         * modules/unicodeio, modules/userspec, modules/version-etc:
101117         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
101118         * modules/xsetenv:
101119         Depend on gettext-h, not gettext.
101121 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
101123         * gnulib-tool (func_import): Add support for 'public domain' license.
101124         * modules/alloca, modules/atexit, modules/memmove:
101125         Now public domain, not GPL.
101126         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
101127         * modules/realloc, modules/strerror, modules/strtod:
101128         Now LGPL, not GPL.
101130 2005-07-05  Bruno Haible  <bruno@clisp.org>
101132         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
101133         autoconf CVS. Needed for mingw.
101135 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101137         Remove the dependency of the strftime module on the tzset module.
101138         * modules/strftime (Depends-on): Remove dependency on tzset.
101140 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101142         Remove the dependency of the strftime module on the tzset module.
101143         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
101144         gl_FUNC_TZSET_CLOBBER.
101146 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
101148         Remove the dependency of the strftime module on the tzset module.
101149         * lib/strftime.c (my_strftime)
101150         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
101151         Copy the input structure, to work around some of the bug with
101152         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
101153         Solaris releases, you should also use the tzset module, but we won't
101154         require it as a dependency any more since we don't want LGPLed code
101155         to depend on GPLed code.
101157 2005-07-02  Jim Meyering  <jim@meyering.net>
101159         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
101160         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
101161         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
101162         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
101164 2005-07-02  Jim Meyering  <jim@meyering.net>
101166         * lib/backupfile.c (backup_args): Change a `0' to NULL.
101168 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
101170         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
101171         declares only 'struct timespec;' (!).
101173 2005-07-01  Jim Meyering  <jim@meyering.net>
101175         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
101176         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
101177         * lib/save-cwd.c, tempname.c:
101178         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101179         and don't include <sys/file.h>).
101181 2005-06-29  Jim Meyering  <jim@meyering.net>
101183         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
101184         type name.  Use the variable name instead.
101185         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
101186         Likewise.
101188 2005-06-28  Simon Josefsson  <jas@extundo.com>
101190         * modules/check-version (Files): Add check-version.m4.
101192 2005-06-28  Simon Josefsson  <jas@extundo.com>
101194         * m4/check-version.m4: New file, suggested by Jim Meyering
101195         <jim@meyering.net>.
101197 2005-06-28  Simon Josefsson  <jas@extundo.com>
101199         * lib/check-version.h, lib/check-version.c: New files.
101201 2005-06-28  Simon Josefsson  <jas@extundo.com>
101203         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
101204         collision with global variable.  Better indentation.  Don't
101205         increment buffer pointer beyond buffer end.  Based on comments
101206         from Paul Eggert <eggert@cs.ucla.edu>.
101208         * lib/base64.h: Indent.
101210 2005-06-28  Simon Josefsson  <jas@extundo.com>
101212         * doc/gnulib.texi (Library version handling): New section.
101214 2005-06-28  Jim Meyering  <jim@meyering.net>
101216         * check-module (find_included_lib_files): Hard-code another
101217         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
101218         but modules/fts-lgpl (correctly) does not list those files.
101220         * modules/canonicalize (Files): Add lib/pathmax.h.
101222 2005-06-25  Simon Josefsson  <jas@extundo.com>
101224         * modules/check-version: New file.
101226 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
101228         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
101229         initializer of struct addrinfo, as an indication that we don't
101230         care how many members the structure has.
101232 2005-06-24  Derek Price  <derek@ximbiot.com>
101233         and Bruno Haible  <bruno@clisp.org>
101235         Remove stat module & update lstat.
101236         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
101237         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
101238         * m4/stat.m4: Remove this file.
101240 2005-06-24  Derek Price  <derek@ximbiot.com>
101241         and Bruno Haible  <bruno@clisp.org>
101243         Remove stat module & update lstat.
101244         * lib/stat.c: Remove this file...
101245         (slash_aware_lstat): ...moving this content and its support...
101246         * lib/lstat.c (rpl_lstat): ...into here.
101247         * lib/lstat.h: New file.
101249 2005-06-24  Derek Price  <derek@ximbiot.com>
101250         and Bruno Haible  <bruno@clisp.org>
101252         Remove stat module & update lstat.
101253         * config/srclist.txt (libc sources): Remove stat.
101255 2005-06-24  Derek Price  <derek@ximbiot.com>
101256         and Bruno Haible  <bruno@clisp.org>
101258         Remove stat module & update lstat.
101259         * MODULES.html.sh (stat): Remove.
101260         * MODULES.html: Regenerated.
101261         * modules/lstat (Description): Correct function name.
101262         (Files): Add "lstat.h".
101263         (Depends-on): Remove stat, add xalloc, stat-macros.
101264         * modules/stat: Remove this file.
101265         (Include): Add "lstat.h", remove <sys/stat.h>.
101267 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101269         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
101270         (ranged_convert): Don't save conversion in a temporary struct.
101271         This causes a warning with GCC 4.0.0, and anyway in the typical
101272         case it's not worth the extra 100 bytes or so of code.
101273         (ranged_convert, __mktime_internal): When calling a function via a
101274         pointer P, use P () rather than (*P) (), as we now assume C89 or
101275         better.
101277 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101279         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
101280         "who -r" failed to give output.  Problem reported by Tim Waugh.
101282         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
101283         (xcalloc): Use it to avoid needless tests.
101284         Problem reported by Jim Meyering.
101286 2005-06-20  Derek Price  <derek@ximbiot.com>
101288         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
101289         unnecessary for Autoconfs > 2.59c.
101291 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101293         * lib/argp.h (__option_is_short): Check upper limit of
101294         __key. Isprint() requires its argument to have the value
101295         of an unsigned char or EOF.
101297 2005-06-16  Jim Meyering  <jim@meyering.net>
101299         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
101300         when either N or S is zero.
101302 2005-06-16  Derek Price  <derek@ximbiot.com>
101304         * m4/bison.m4: Declare YACC & YFLAGS precious.
101306 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
101308         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
101309         multibyte string or pattern, fall back on unibyte matching.
101310         Problem reported by James Youngman.
101312 2005-06-08  Bruno Haible  <bruno@clisp.org>
101314         * modules/csharpcomp: New file.
101315         * MODULES.html.sh (C#): Add csharpcomp.
101317 2005-06-08  Bruno Haible  <bruno@clisp.org>
101319         * m4/csharpcomp.m4: New file, from GNU gettext.
101321 2005-06-08  Bruno Haible  <bruno@clisp.org>
101323         * lib/csharpcomp.h: New file, from GNU gettext.
101324         * lib/csharpcomp.c: New file, from GNU gettext.
101325         * lib/csharpcomp.sh.in: New file, from GNU gettext.
101327 2005-06-08  Bruno Haible  <bruno@clisp.org>
101329         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
101330         warning on mingw.
101332 2005-06-07  Derek Price  <derek@ximbiot.com>
101334         Sync from CVS.
101335         * lib/glob_.h: Indent nested #ifdef.
101337 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101339         Sync from coreutils.
101340         Use "file name" when talking about file names, instead of "filename"
101341         or "path", as per the GNU coding standards.
101342         * lib/mkdir-p.c: Renamed from makepath.c.
101343         (make_dir_parents): Renamed from make_path.  All callers changed.
101344         * lib/mkdir-p.h: Likewise.  All includers changed.
101345         * lib/filenamecat.c: Renamed from path-concat.c.
101346         (file_name_concat): Renamed from path_concat.  All callers changed.
101347         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
101348         * lib/filenamecat.h: Likewise.  All includers changed.
101349         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
101350         in comments or local variable names.
101351         * lib/basename.c: Likewise.
101352         * lib/canonicalize.c, canonicalize.h: Likewise.
101353         * lib/dirname.c, dirname.h: Likewise.
101354         * lib/euidaccess.c: Likewise.
101355         * lib/exclude.c: Likewise
101356         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
101357         * lib/fsusage.c, fsuage.h: Likewise.
101358         * lib/fts.c, fts_.h: Likewise.
101359         * lib/getcwd.c: Likewise.
101360         * lib/getloadavg.c: Likewise.
101361         * lib/mkstemp.c: Likewise.
101362         * lib/mountlist.c, mountlist.h: Likewise.
101363         * lib/openat.c, openat.h: Likewise.
101364         * lib/readlink-stub.c: Likewise.
101365         * lib/readutmp.c, readutmp.h: Likewise.
101366         * lib/rename.c: Likewise.
101367         * lib/rmdir.c: Likewise.
101368         * lib/same.c: Likewise.
101369         * lib/savedir.c: Likewise.
101370         * lib/stripslash.c: Likewise.
101371         * lib/tempname.c: Likewise.
101372         * lib/xreadlink.c: Likewise.
101373         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
101374         All uses changed.
101375         * lib/exclude.h: Likewise.
101377         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
101378         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101379         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
101380         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101381         * lib/pathmax.h: Include <limits.h> unconditionally, since other
101382         files have been getting away with it for years (MORE/BSD 4.3
101383         is extinct now).
101384         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
101385         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101387         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
101388         Define to 256, not 255, as per modern POSIX.
101390 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101392         Sync from coreutils.
101393         Use "file name" when talking about file names, instead of "filename"
101394         or "path", as per the GNU coding standards.
101395         * MODULES.html.sh: mkdir-p renamed from makepath.
101396         filenamecat renamed from path-concat.
101397         * modules/filenamecat: Renamed from modules/path-concat.
101398         (Files): filenamecat.h and filenamecat.c renamed from
101399         path-concat.h and path-concat.c.
101400         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
101401         (Include): filenamecat.h, not path-concat.h.
101402         * modules/mkdir-p: Renamed from modules/makepath.
101403         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
101404         makepath.c.
101405         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
101406         (Include): mkdir-p.h, not makepath.h.
101408 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101410         Sync from coreutils.
101411         * m4/mkdir-p.m4: Renamed from makepath.m4.
101412         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
101413         Rename files from makepath.c to mkdir-p.c, and from
101414         makepath.h to mkdir-p.h.
101415         * m4/filenamecat.m4: Renamed from path-concat.m4.
101416         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
101417         Rename files from path-concat.c to filenamecat.c,
101418         and from path-concat.h to filenamecat.h.
101419         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
101420         "file name" in local variables or comments.
101421         * m4/rename.m4: Likewise.
101423 2005-06-01  Bruno Haible  <bruno@clisp.org>
101425         * modules/csharpexec: New file.
101426         * MODULES.html.sh (C#): New section.
101428 2005-06-01  Bruno Haible  <bruno@clisp.org>
101430         * m4/csharp.m4: New file, from GNU gettext.
101431         * m4/csharpexec.m4: New file, from GNU gettext.
101433 2005-06-01  Bruno Haible  <bruno@clisp.org>
101435         * lib/csharpexec.h: New file, from GNU gettext.
101436         * lib/csharpexec.c: New file, from GNU gettext.
101437         * lib/csharpexec.sh.in: New file, from GNU gettext.
101439 2005-05-31  Derek Price  <derek@ximbiot.com>
101440             Paul Eggert  <eggert@cs.ucla.edu>
101442         Sync from cvs.
101443         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101445 2005-05-31  Derek Price  <derek@ximbiot.com>
101446             Paul Eggert  <eggert@cs.ucla.edu>
101448         Sync from cvs.
101449         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101451 2005-05-29  Derek Price  <derek@ximbiot.com>
101453         * config/srclist.txt (glob_.h, glob.c): Add these files.
101455 2005-05-29  Derek Price  <derek@ximbiot.com>
101457         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
101458         * modules/glob: New file.
101459         * modules/getlogin_r: Add link to POSIX spec in description.
101461 2005-05-29  Derek Price  <derek@ximbiot.com>
101462             Paul Eggert  <eggert@cs.ucla.edu>
101464         * m4/glob.m4: New file.
101466 2005-05-29  Derek Price  <derek@ximbiot.com>
101467             Paul Eggert  <eggert@cs.ucla.edu>
101469         * lib/glob_.h, lib/glob.c: New files.
101471 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101473         * modules/fts (Files): Remove m4/inttypes-pri.m4.
101474         * modules/fts-lgpl (Depends-on): Remove gettext.
101476 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
101479         and don't require gt_INTTYPES_PRI.
101481 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101483         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
101485         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
101486         the configuration hassle isn't worth it.
101487         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
101488         (LONGEST_MODIFIER, PRIuMAX): Remove.
101490 2005-05-27  Bruno Haible  <bruno@clisp.org>
101492         * lib/getlogin_r.h: Remove second include of <stddef.h>.
101494 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
101496         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
101497         _POSIX_PTHREAD_SEMANTICS for Solaris.
101499 2005-05-25  Derek Price  <derek@ximbiot.com>
101501         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
101503 2005-05-25  Derek Price  <derek@ximbiot.com>
101504             Paul Eggert  <eggert@cs.ucla.edu>
101506         * modules/getlogin_r, m4/getlogin_r.m4: New files.
101507         * lib/getlogin_r.c, getlogin_r.h: New files.
101509 2005-05-25  Bruno Haible  <bruno@clisp.org>
101510             Derek Price  <derek@ximbiot.com>
101512         * lib/getlogin_r.h: Simplify API documentation.
101514 2005-05-23  Derek Price  <derek@ximbiot.com>
101516         * modules/minmax (Files): Add m4/minmax.m4.
101517         (configure.ac): Add gl_MINMAX.
101519 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
101521         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
101522         so that unistd-safer.h (GPL'ed code) need not be included.
101524 2005-05-22  Bruno Haible  <bruno@clisp.org>
101526         * m4/minmax.m4: New file.
101527         Based on a patch by Derek Price <derek@ximbiot.com>.
101529 2005-05-22  Bruno Haible  <bruno@clisp.org>
101531         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
101532         (INT64_MIN): Fix definition.
101533         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
101535         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
101536         NEED_SIGNED_INT_TYPES.
101538         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
101539         HAVE_SYSTEM_INTTYPES.
101541 2005-05-22  Bruno Haible  <bruno@clisp.org>
101543         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
101544         Also include <sys/param.h> if it defines MIN, MAX.
101545         Based on a patch by Derek Price <derek@ximbiot.com>.
101547 2005-05-21  Jim Meyering  <jim@meyering.net>
101549         * modules/fts (Files): Add m4/inttypes-pri.m4.
101550         (Depends-on): Add lstat and remove gettext.  Alphabetize.
101552 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101554         New fts module.
101555         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
101556         (setup_dir, free_dir): New functions.
101557         (enter_dir, leave_dir): Define trivial
101558         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
101559         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
101560         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
101561         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
101562         Move to fts-cycle.c.
101563         (fts_open): Use setup_dir.
101564         (fts_close): Use free_dir.
101565         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
101566         This adds a label and some gotos, but the alternatives were messier.
101567         Check for memory allocation failure when entering a dir.
101568         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
101569         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
101570         (FTS): New member fts_cycle, that is a union that contains the
101571         old active_dir_ht and cycle_state.  All uses changed to mention
101572         fts_cycle.ht and fts_cycle.state.
101573         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
101574         fts.c, with the following changes:
101575         (setup_dir, free_dir): New functions.
101576         (enter_dir): Now returns bool.  Return true if successful, false
101577         if memory exhausted.  All callers changed.
101578         Do not bother partly cleaning up on
101579         memory allocation failure; that is free_dir's job.
101580         However, free ad if hash_insert fails, to avoid memory leak.
101581         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
101582         fts->fts_options to see which union member to use.
101584 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
101587         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
101589 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101591         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
101593 2005-05-20  Jim Meyering  <jim@meyering.net>
101595         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
101596         Now a macro, to pacify GCC.
101598 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
101600         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
101601         of -1.
101603 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
101605         * lib/chown.c (rpl_chown): Return -1 on failure.
101607 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
101609         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
101610         Don't check for stddef.h.
101611         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
101612         don't use its results.
101613         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
101614         since we include them unconditionally.  Don't require
101615         AM_STDBOOL_H, since stdbool is a prerequisite.
101616         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
101617         since we assume C89 or better.
101618         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
101619         as we don't use their results.
101620         Don't check for fchdir, memmove, memset, strrchr, as we use
101621         them unconditionally.
101622         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
101623         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
101625 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
101627         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
101628         Include <stddef.h> unconditionally, since we assume C89 now.
101629         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
101630         * lib/fts.c: Include fts_.h first, to check interface.
101631         Do not include intprops.h; no longer needed.
101632         Include cycle-check.h and hash.h, since fts_.h no longer does.
101633         Remove unnecessary casts of closedir to void.
101634         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
101635         decide whether to decrement nlinks.
101636         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
101637         (FTS): Use struct hash_table * instead of Hash_table, so that
101638         we no longer need to include hash.h here.
101640 2005-05-18  Jim Meyering  <jim@meyering.net>
101642         * modules/dirfd (License): Change to LGPL.  Most of the code
101643         is already in the public domain.
101645 2005-05-18  Jim Meyering  <jim@meyering.net>
101647         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
101648         Reported by Yoann Vandoorselaere.
101650 2005-05-17  Jim Meyering  <jim@meyering.net>
101652         * m4/fts.m4: New file, from coreutils.
101654 2005-05-17  Jim Meyering  <jim@meyering.net>
101656         * lib/fts.c, lib/fts_.h: New files, from coreutils.
101658 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101660         Sync from coreutils.
101661         * m4/unlinkdir.m4: New file.
101663 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101665         Sync from coreutils.
101666         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
101667         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
101668         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
101669         White space changes only.
101670         * lib/makepath.c (make_path): Port to hosts where leading "//" is
101671         special.
101672         * lib/yesno.c: Include getline.h, not ctype.h.
101673         (yesno): Don't remove leading white space; POSIX doesn't allow it.
101674         Use getline to remove arbitrary restriction on response length.
101676 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101678         * config/srclist-update: Spell out "Street" in FSF postal
101679         mail address; this is the style the FSF seems to prefer.
101681         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
101682         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
101683         this updates FSF postal mail address.
101685         Sync from coreutils.
101686         * modules/unlinkdir: New file.
101687         * modules/yesno (Depends-on): Add getline.
101688         * MODULES.html.sh (File system functions): Add unlinkdir.
101690 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101692         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
101693         lib/strsep.h:
101694         Change the initial comment to refer to GPL, not LGPL.
101695         gnulib-tool will change it to LGPL as needed.
101697         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
101698         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
101699         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
101700         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
101701         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
101702         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
101703         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
101704         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
101705         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
101706         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
101707         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
101708         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
101709         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
101710         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
101711         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
101712         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
101713         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
101714         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
101715         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
101716         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
101717         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
101718         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
101719         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
101720         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
101721         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
101722         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
101723         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
101724         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
101725         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
101726         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
101727         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
101728         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
101729         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
101730         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
101731         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
101732         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
101733         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
101734         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
101735         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
101736         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
101737         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
101738         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
101739         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
101740         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
101741         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
101742         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
101743         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
101744         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
101745         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
101746         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
101747         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
101748         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
101749         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
101750         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
101751         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
101752         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
101753         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
101754         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
101755         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
101756         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
101757         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
101758         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
101759         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
101760         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
101761         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
101762         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
101763         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
101764         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
101765         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
101766         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
101767         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
101768         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
101769         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
101770         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
101771         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
101772         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
101773         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
101774         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
101775         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
101776         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
101777         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
101778         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
101779         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
101780         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
101781         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
101782         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
101783         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
101784         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
101785         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
101786         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
101787         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
101788         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
101789         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
101790         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
101791         lib/yesno.c, lib/yesno.h:
101792         Update FSF postal mail address.
101794 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101796         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
101797         tests/test-memmem.c, tests/test-stpncpy.c:
101798         Update FSF postal mail address.
101800 2005-05-13  Bruno Haible  <bruno@clisp.org>
101802         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
101803         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
101804         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
101805         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
101806         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
101807         Add support for 64-bit integers in the MSVC compiler.
101809 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101811         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
101813 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
101815         * gnulib-tool (func_import): Sort and uniquify recommended includes.
101817 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
101819         * doc/getdate.texi (General date syntax): Don't say that date
101820         date --iso-8601=ns generates acceptable dates; it doesn't yet.
101821         Problem reported by Nic Ferrier.
101823 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101825         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
101826         specified in ai_socktype. Fix invalid ai_protocol
101827         check. ai_protocol is usually set to 0 or depending on
101828         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
101829         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
101830         ai_socktype / ai_protocol in the returned addrinfo structure.
101832 2005-05-10  Simon Josefsson  <jas@extundo.com>
101834         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
101835         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
101837 2005-05-10  Karl Berry  <karl@gnu.org>
101839         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
101840         (from http://www.gnu.org/licenses).
101841         * doc/COPYING.LIB: also rename to COPYING.LESSER.
101842         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
101843         fdl.texi suffices.
101845 2005-05-10  Karl Berry  <karl@gnu.org>
101847         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
101848         (COPYING.DOC): remove.
101850         * config/srclist-update: new FSF address.
101852 2005-05-10  Derek Price  <derek@ximbiot.com>
101854         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
101855         possible.
101857 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101858             Bruno Haible  <bruno@clisp.org>
101860         * modules/inet_ntop: New file.
101861         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101862         inet_ntop.
101864 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101865             Bruno Haible  <bruno@clisp.org>
101867         * m4/inet_ntop.m4: New file.
101869 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101870             Bruno Haible  <bruno@clisp.org>
101872         * lib/inet_ntop.h: New file.
101873         * lib/inet_ntop.c: New file, from glibc with modifications.
101875 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
101877         * modules/time_r (License): Change to LGPL.
101878         * modules/extensions (License): Change to LGPL.  Actually,
101879         the license is more permissive than that, but currently gnulib-tool
101880         doesn't know how to handle more-permissive licenses.
101882         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
101883         Problem reported by Dave Love.
101885 2005-05-08  Jim Meyering  <jim@meyering.net>
101887         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
101888         blank.
101890 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
101892         * modules/argmatch (Depends-on): Add stdbool.
101893         * modules/backupfile (Depends-on): Likewise.
101894         * modules/chdir-long (Depends-on): Likewise.
101895         * modules/closeout (Depends-on): Likewise.
101896         * modules/cycle-check (Depends-on): Likewise.
101897         * modules/dirname (Depends-on): Likewise.
101898         * modules/fnmatch (Depends-on): Likewise.
101899         * modules/fsusage (Depends-on): Likewise.
101900         * modules/fwriteerror (Depends-on): Likewise.
101901         * modules/getcwd (Depends-on): Likewise.
101902         * modules/getloadavg (Depends-on): Likewise.
101903         * modules/hard-locale (Depends-on): Likewise.
101904         * modules/makepath (Depends-on): Likewise.
101905         * modules/mountlist (Depends-on): Likewise.
101906         * modules/nanosleep (Depends-on): Likewise.
101907         * modules/posixtm (Depends-on): Likewise.
101908         * modules/quotearg (Depends-on): Likewise.
101909         * modules/readtokens (Depends-on): Likewise.
101910         * modules/readtokens0 (Depends-on): Likewise.
101911         * modules/readutmp (Depends-on): Likewise.
101912         * modules/save-cwd (Depends-on): Likewise.
101913         * modules/strftime (Depends-on): Likewise.
101914         * modules/userspec (Depends-on): Likewise.
101915         * modules/utimecmp (Depends-on): Likewise.
101916         * modules/xgetcwd (Depends-on): Likewise.
101917         * modules/xnanosleep (Depends-on): Likewise.
101918         * modules/xstrtod (Depends-on): Likewise.
101919         * modules/yesno (Depends-on): Likewise.
101921 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
101923         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
101924         needless checks.
101926 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
101928         Merge from coreutils.  Among other things,
101929         add bulletproofing for cases where stdin, stdout, or stderr are closed.
101930         * lib/fd-safer.c: New file.
101931         * lib/fcntl-safer.h, open-safer.c: Remove.
101932         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
101933         * lib/dup-safer.c: Include unistd-safer.h first.
101934         Don't include errno.h.
101935         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
101936         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
101937         * lib/file-type.c: Rely on file-type.h change.
101938         * lib/getloadavg.c: Include unistd-safer.h.
101939         (getloadavg): Use safer open.
101940         * lib/getusershell.c: Include "stdio-safer.h".
101941         (getusershell): Use safer fopen.
101942         * lib/long-options.c (long_options): Use NULL rather than 0.
101943         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
101944         'free'.
101945         * lib/modechange.c: Likewise.
101946         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
101947         (MODE_DONE): New constant.
101948         (struct mode_change): Remove 'next' member.
101949         (make_node_op_equals): New function; like the old one of the
101950         same name, except it allocates an array.
101951         (mode_compile, mode_create_from_ref): Use it.
101952         (mode_compile): Allocate result as an array, not a linked list.
101953         Parse octal string ourself, so that we catch mistakes like "+0".
101954         (mode_adjust): Arg is an array, not a linked list.
101955         * lib/modechange.c: Include stat-macros.h, xalloc.h.
101956         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
101957         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
101958         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
101959         Remove.  This is now stat-macros.h's job.
101960         (talloc): Remove.  All callers replaced by xalloc, so that
101961         our invokers don't have to worry about reporting memory failures.
101962         (make_node_op_equals): Remove.
101963         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
101964         New constants.
101965         (struct mode_change): Moved here from modechange.h.
101966         (mode_append_entry): Remove.
101967         (mode_compile): Remove MASKED_OPS arg, since it encouraged
101968         apps to have incorrect behavior.  Use simpler algorithm for head
101969         and tail.  Don't futz with umask; that's now the job of mode_adjust.
101970         Detect more invalid usages rather than having somewhat-random behavior.
101971         Don't insert an "a=" action, as that leads to incorrect behavior.
101972         (mode_compile, mode_create_from_ref): Return NULL on error instead
101973         of an enum, since now there's only one way to have an error.  All
101974         callers changed.
101975         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
101976         at the correct time.  Simplify calculation of "+u" and its ilk.
101977         Don't mishandle "+X".
101978         (mode_free): Remove "register" and localize decls.
101979         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
101980         (struct mode_change): Move to modechange.c; callers don't
101981         need to see this stuff.
101982         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
101983         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
101984         (mode_change, mode_adjust): Reflect the new signatures noted above.
101985         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
101986         that might redefine system include files.
101987         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
101988         (my_usleep): Use NULL rather than (void *) 0.
101989         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
101990         Use siginterrupt to specify that system calls should be interrupted.
101991         (rpl_nanosleep): Move initialization of suspended closer to call of
101992         my_usleep.
101993         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
101994         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
101995         (desirable_utmp_entry): New function.
101996         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
101997         using x2nrealloc, to simplify logic.
101998         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
101999         size calculation.  Do not assume utmp file is a regular file.
102000         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
102001         (READ_UTMP_CHECK_PIDS): New constant.
102002         * lib/save-cwd.c: Include unistd-safer.h.
102003         (save_cwd): Use fd_safer.
102004         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
102005         [!_LIBC] Include "stat-macros.h" instead.
102006         * lib/unistd-safer.h (fd_safer): New decl.
102008 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102010         * modules/getloadavg (Depends-on): Add unistd-safer.
102011         * modules/getusershell (Depends-on): Add stdio-safer.
102012         * modules/lstat (Depends-on): Remove xalloc.
102013         * modules/mkstemp (Depends-on): Add stat-macros.
102014         * modules/modechange (Depends-on): Remove xstrtol.
102015         Add stat-macros, xalloc.
102016         * modules/save-cwd (Depends-on): Add unistd-safer.
102017         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
102018         * modules/unistd-safer (Files): Add lib/fd-safer.c
102019         (Makefile.am): Remove lib_SOURCES.
102021         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
102022         Remove fcntl-safer; unistd-safer supersedes it.
102024 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102026         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
102027         AC_HEADER_STAT.
102028         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
102029         (gl_PREREQ_CHOWN): Remove.
102030         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
102031         it.  Don't require AC_HEADER_STAT.
102032         (gl_PREREQ_LSTAT): Remove.
102033         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
102034         Don't require AC_HEADER_STAT.
102035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
102036         (gl_PREREQ_RMDIR): Remove.
102037         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
102038         mention stat-macros.h or AC_HEADER_STAT, since we'll make
102039         the stat-macros module a prerequisite.
102040         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
102041         * m4/filemode.m4 (gl_FILEMODE): Likewise.
102042         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
102043         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
102044         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
102045         variable names.
102046         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
102047         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
102048         variable prefixes.
102049         * m4/fcntl-safer.m4: Remove.
102050         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
102051         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
102052         Invoke gl_PREREQ_FD_SAFER.
102053         (gl_PREREQ_FD_SAFER): New macro.
102054         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
102055         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
102056         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
102057         Remove duplicate call to AC_LIBOBJ(readutmp).
102058         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
102060         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
102061         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
102063 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
102065         * MODULES.html.sh (Misc): Add byteswap.
102067 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102069         * modules/getcwd (Depends-on): Add extensions.
102070         * modules/openat (Depends-on): Likewise.
102072 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102074         * modules/byteswap: New file.
102076 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102078         * m4/byteswap.m4: New file.
102080 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
102082         * lib/byteswap_.h: New file.
102084 2005-04-25  Karl Berry  <karl@gnu.org>
102086         * m4/gettext.m4: Update from GNU gettext 0.14.4.
102088 2005-04-25  Albert Chin  <china@thewrittenword.com>
102090         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
102091         Toolkit C bug.
102093 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
102095         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
102096         (func_ln_if_changed): Remove forcibly for no error message
102097         in case file does not exist.
102099 2005-04-19  Simon Josefsson  <jas@extundo.com>
102101         * gnulib-tool (Options): Make --symlink mean --symbolic.
102103 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
102105         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
102107 2005-04-16  Simon Josefsson  <jas@extundo.com>
102109         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
102111 2005-04-15  Simon Josefsson  <jas@extundo.com>
102113         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
102115 2005-04-15  Simon Josefsson  <jas@extundo.com>
102117         * gnulib-tool: Rename --symlink to --symbolic.
102119 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
102121         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
102122         symbolic links to files instead of copying/moving.  Add --aux-dir,
102123         specifying directory relative --dir where auxiliary build tools
102124         are placed.
102126 2005-04-14  Bruno Haible  <bruno@clisp.org>
102128         * modules/allocsa (License): Change to LGPL.
102129         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
102131 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102133         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
102134         that "UTC +1 second" continues to work.  Problem reported
102135         by Dmitry V. Levin.
102136         (relunit_snumber): New rule.
102137         (relunit): Use it.
102139 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
102141         * lib/getdate.y (universal_time_zone_table): New constant.
102142         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
102143         universal_time_zone_table.
102144         (lookup_zone): Prefer universal_time_zone_table to
102145         local_time_zone_table, so that "GMT" time stamps are allowed in
102146         London during the summer.  Problem reported by Ian Abbott.
102148 2005-04-12  Jim Meyering  <jim@meyering.net>
102150         * lib/human.c (humblock): Set *options even when returning due to
102151         xstrtoumax conversion failure.  Thanks to a used-uninitialized
102152         warning from gcc-4.
102154 2005-04-09  Jim Meyering  <jim@meyering.net>
102156         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
102157         -Wuninitialized: initialize tm0.tm_year.
102159 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102161         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
102162         count, since there's no maximum.  All uses changed.
102163         Add member dsts_seen.
102164         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
102165         not being INT_MAX.
102166         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
102167         Use pc_rels_seen to decide whether a date is absolute.
102169         * lib/getdate.y (number): Don't overwrite year.
102170         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
102171         check.
102173 2005-04-02  Simon Josefsson  <jas@extundo.com>
102175         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
102176         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
102178 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
102180         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
102181         where no absolute path name can be longer than PATH_MAX.
102183 2005-03-27  Jim Meyering  <jim@meyering.net>
102185         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
102187 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
102189         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
102190         "one's complement" -> "ones' complement" in comment, as per Knuth.
102191         "value of type" -> "type or expression" in comment.
102192         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
102194 2005-03-26  Jim Meyering  <jim@meyering.net>
102196         Comment nits.
102197         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
102198         Correct typos: s/or/of/.
102200 2005-03-26  Jim Meyering  <jim@meyering.net>
102202         * modules/check-include-files: Move to ../ and rename to...
102203         * check-module: ...this.
102205 2005-03-25  Jim Meyering  <jim@meyering.net>
102207         * modules/xvasprintf (Files): Add xalloc.h.
102209 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102211         * modules/gettext (Files): config/config.rpath ->
102212         build-aux/config.rpath
102213         * modules/iconv (Files): Likewise.
102214         Problem reported by Oskar Liljeblad.
102216 2005-03-23  Jim Meyering  <jim@meyering.net>
102218         * modules/check-include-files: New script to check for
102219         missing dependencies, multiple includes, etc.
102221         * modules/c-strtold (Depends-on): Add xalloc.
102222         * modules/c-strtod (Depends-on): Add xalloc.
102223         * modules/hash (Depends-on): Add xalloc.
102224         (Files): Remove lib/xalloc.h.
102226         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
102227         * modules/userspec (Files): Add lib/inttostr.h.
102229 2005-03-23  Jim Meyering  <jim@meyering.net>
102231         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
102233 2005-03-22  Jim Meyering  <jim@meyering.net>
102235         * modules/stat-macros: New module.
102236         * modules/canonicalize, modules/euidaccess, modules/file-type,
102237         * modules/filemode, modules/lchown, modules/makepath,
102238         * modules/rmdir, modules/stat: Depend on new stat-macros module
102239         rather than listing lib/stat-macros.h manually.
102240         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
102242 2005-03-22  Jim Meyering  <jim@meyering.net>
102244         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
102246 2005-03-22  Bruno Haible  <bruno@clisp.org>
102248         * config/srclist.txt: Replace target directory 'config' with
102249         'build-aux'.
102250         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
102251         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
102252         ../build-aux/.
102254 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
102256         * modules/chdir-long (Depends-on): Add mempcpy.
102258         * modules/acl, modules/backupfile, modules/c-strtod,
102259         modules/c-strtold, modules/canon-host, modules/canonicalize,
102260         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
102261         modules/exclude, modules/exitfail, modules/file-type,
102262         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
102263         modules/getdate, modules/getline, modules/getpagesize,
102264         modules/getpass, modules/getugroups, modules/group-member,
102265         modules/hard-locale, modules/hash, modules/human, modules/idcache,
102266         modules/inttostr, modules/long-options, modules/makepath,
102267         modules/md5, modules/memcasecmp, modules/memcoll,
102268         modules/modechange, modules/mountlist, modules/path-concat,
102269         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
102270         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
102271         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
102272         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
102273         modules/strftime, modules/strndup, modules/strverscmp,
102274         modules/timespec, modules/unlocked-io, modules/userspec,
102275         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
102276         modules/yesno:
102277         Remove lib_SOURCES line from Makefile.am section, as this is now
102278         done automatically by the corresponding Autoconf macro.
102280 2005-03-21  Jim Meyering  <jim@meyering.net>
102282         Changes imported from coreutils.
102284         * lib/cycle-check.c: Don't include xalloc.h.
102286         * lib/path-concat.c: Don't include assert.h.
102287         (path_concat): Remove assertion that would have triggered
102288         for ABASE starting with more than one slash.
102289         Reported by Andreas Schwab.
102291         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
102292         properly when ABASE is an absolute file name.
102293         Correct the description of this function.
102294         Include <assert.h>.
102295         Add an assertion and a test driver.
102296         This fixes a bug introduced on 2004-07-02.
102297         Andreas Schwab reported the resulting failure of cp --parents:
102298         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
102300 2005-03-21  Jim Meyering  <jim@meyering.net>
102302         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
102303         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
102305 2005-03-21  Jim Meyering  <jim@meyering.net>
102306         and  Paul Eggert  <eggert@cs.ucla.edu>
102308         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
102309         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
102310         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
102311         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
102312         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
102313         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
102314         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
102315         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
102316         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
102317         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
102318         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
102319         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
102320         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
102321         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
102322         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
102323         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
102324         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
102325         for these modules.
102327 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
102329         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
102330         (which shouldn't happen), generate nothing instead of returning 0
102331         immediately, so that nstrftime (NULL, ...) doesn't return 0.
102333 2005-03-16  Bruno Haible  <bruno@clisp.org>
102335         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
102336         HAVE_LONGLONG_64BIT.
102338 2005-03-16  Bruno Haible  <bruno@clisp.org>
102340         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
102341         HAVE_LONGLONG_64BIT.
102343 2005-03-16  Bruno Haible  <bruno@clisp.org>
102345         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
102346         HAVE_LONGLONG_64BIT.
102348 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102350         * lib/strftime.c (my_strftime): Prepend space to format so that we can
102351         reliably distinguish strftime failure from empty output on POSIX
102352         hosts.
102354 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102356         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
102357         (iconv_string): Don't guess a size-zero buffer, as that might cause
102358         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
102359         result would be 'too large', where 'too large' is (heuristically)
102360         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
102361         overflow concerns.  This will prevent some unwanted malloc failures
102362         when the inputs are very large.
102364 2005-03-15  Karl Berry  <karl@gnu.org>
102366         * config/srclist.txt (config.rpath): from gettext.
102367         * config/config.rpath: update.
102369 2005-03-15  Bruno Haible  <bruno@clisp.org>
102371         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
102372         to 'negate'.
102374         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
102375         variable.
102377         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
102378         results.
102380 2005-03-14  Simon Josefsson  <jas@extundo.com>
102382         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
102383         <fx@gnu.org>.
102385 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
102387         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
102388         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
102389         intprops.h.
102390         * lib/strtol.c: Likewise.
102392 2005-03-14  Jim Meyering  <jim@meyering.net>
102394         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
102395         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
102396         to be nonzero so that we (and caller) can detect the difference
102397         between a valid zero-length expansion and an error return, even
102398         when the underlying strftime fails before writing anything into
102399         that location.
102401 2005-03-14  Bruno Haible  <bruno@clisp.org>
102403         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
102404         Update from GNU gettext 0.14.3.
102406 2005-03-10  Jim Meyering  <jim@meyering.net>
102408         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
102410 2005-03-10  Jim Meyering  <jim@meyering.net>
102412         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
102413         so that this module works on systems without fchdir.
102415 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
102417         Factor int-properties macros into a single file, except for
102418         glibc-related files.
102419         * lib/intprops.h: New file.
102420         * lib/getloadavg.c: Include it instead of limits.h.
102421         (INT_STRLEN_BOUND): Remove.
102422         * lib/human.c: Include intprops.h.
102423         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
102424         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
102425         302/1000.
102426         * lib/inttostr.h: Include intprops.h instead of limits.h.
102427         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
102428         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
102429         for consistency with intprops.h.
102430         (time_t_is_integer, twos_complement_arithmetic): Use them.
102431         * lib/sig2str.h: Include <signal.h>, intprops.h.
102432         (INT_STRLEN_BOUND): Remove.
102433         * lib/strftime.c (TYPE_SIGNED): Remove.
102434         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
102435         * lib/strtol.c: Adjust comments to match intprops.h.
102436         * lib/userspec.c: Include intprops.h.
102437         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
102438         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
102439         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
102440         instead of rolling our own expressions.
102441         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
102443         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
102444         instead of int.
102445         (my_strftime): Do not mishandle years close to INT_MAX, by doing
102446         the right thing even if adding 1900 would overflow.  Similarly
102447         for tm_mon + 1 and tm_yday + 1.
102448         Make %Y always equivalent to %C%y, and similarly for %G and %g.
102449         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
102450         (DO_SIGNED_NUMBER): New macro.
102451         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
102453 2005-03-07  Bruno Haible  <bruno@clisp.org>
102455         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
102457 2005-03-07  Bruno Haible  <bruno@clisp.org>
102459         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
102461 2005-03-04  Derek R. Price  <derek@ximbiot.com>
102463         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
102464         (func_import): Only replace files via --import when they have actually
102465         changed.
102467 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102469         * m4/mmap-anon.m4: New file.
102470         * m4/pagealign_alloc.m4: New file.
102472 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102473             Bruno Haible  <bruno@clisp.org>
102475         * modules/pagealign_alloc: New file.
102476         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
102478 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102479             Bruno Haible  <bruno@clisp.org>
102481         * lib/pagealign_alloc.h: New file.
102482         * lib/pagealign_alloc.c: New file.
102484 2005-03-03  Bruno Haible  <bruno@clisp.org>
102486         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
102487         Use an all-permissive copyright notice, recommended by RMS.
102489 2005-03-02  Bruno Haible  <bruno@clisp.org>
102491         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
102492         of AIX, the replacement has to be done only after <string.h> is
102493         included, therefore not in config.h. stpncpy.h does the replacement,
102494         and stpncpy.c uses it.
102496 2005-03-02  Bruno Haible  <bruno@clisp.org>
102498         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
102499         stpncpy.c uses it.
102501 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102503         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
102504         The workaround isn't strictly needed for POSIX conformance, and
102505         it's too much of a pain to configure and maintain.  We'll ask
102506         people to fix their kernels instead.
102507         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
102508         (NANOSLEEP_BUG_WORKAROUND): Remove.
102509         (xnanosleep): Remove the workaround.
102511 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102513         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
102514         Reported by Derek Price.
102515         (Include): Add "timespec.h".
102517         * modules/xnanosleep (Depends-on): Remove gethrxtime.
102519 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102521         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
102522         to detect nanosleep bug.
102524 2005-03-01  Bruno Haible  <bruno@clisp.org>
102526         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
102528 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
102530         * modules/gethrxtime: New file.
102531         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
102532         (Depends-on): Add gethrxtime.
102533         (configure.ac): Add gl_XNANOSLEEP.
102534         (Makefile.am): Remove lib_SOURCES line.
102536 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102538         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
102539         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
102541 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102543         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
102544         * lib/timespec.h (gettime): Return void, since it always
102545         succeeds now.  All uses changed.
102546         * lib/gettime.c (gettime): Likewise.
102547         [HAVE_NANOTIME]: Prefer nanotime.
102548         Assume gettimeofday succeeds, as POSIX requires.
102549         Assime time () succeeds, since other code already does.
102550         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
102551         (timespec_subtract): Remove.
102552         (NANOSLEEP_BUG_WORKAROUND): New constant.
102553         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
102554         things considerably.  Use it only on GNU/Linux hosts, since the
102555         workaround shouldn't be needed elsewhere.
102557 2005-02-24  Bruno Haible  <bruno@clisp.org>
102559         * modules/gettext (Files): Add m4/glibc2.m4.
102561 2005-02-24  Bruno Haible  <bruno@clisp.org>
102563         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
102564         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
102565         * m4/progtest.m4:
102566         Update from GNU gettext 0.14.2.
102567         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
102569 2005-02-24  Bruno Haible  <bruno@clisp.org>
102571         * lib/localcharset.c: Update from GNU gettext 0.14.2.
102572         * lib/config.charset: Update from GNU gettext 0.14.2.
102574 2005-02-24  Bruno Haible  <bruno@clisp.org>
102576         * lib/gettext.h: Update from GNU gettext 0.14.2.
102578 2005-02-23  Simon Josefsson  <jas@extundo.com>
102580         * m4/iconvme.m4: New file.
102582 2005-02-23  Jim Meyering  <jim@meyering.net>
102584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
102585         change.
102586         Thanks to Bruno Haible for catching it.
102588 2005-02-22  Simon Josefsson  <jas@extundo.com>
102590         * modules/iconvme: New file.
102592         * MODULES.html.sh: Add iconvme.
102594 2005-02-22  Simon Josefsson  <jas@extundo.com>
102596         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
102598 2005-02-22  Simon Josefsson  <jas@extundo.com>
102600         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
102602 2005-02-22  Jim Meyering  <jim@meyering.net>
102604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
102605         s/ifndef/ifdef/.
102607 2005-02-20  Neil Conway  <neilc@samurai.com>
102609         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
102610         returned by OSX/Darwin if the specified buffer is not large
102611         enough for the hostname.
102613 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102615         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
102616         pass it to _help, otherwise the latter coredumps trying to
102617         dereference state.root_argp.
102619 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102621         * modules/chdir-long (Depends-on): Add memrchr.
102622         * modules/memrchr (Files): Add lib/memrchr.h.
102623         (Include): "memrchr.h".
102625 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102627         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
102629 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102631         * lib/memrchr.h: New file.
102632         * lib/chdir-long.c: Include it.
102633         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
102634         Don't bother including stddef.h.
102636 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
102638         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
102639         inclusion.
102640         Include <sys/types.h>, for dev_t.
102641         (ME_DUMMY, ME_REMOTE): Move from here....
102642         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
102643         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
102644         Dmitry V. Levin.
102645         Include mountlist.h first, to test the interface.
102647 2005-01-29  Bruno Haible  <bruno@clisp.org>
102649         * lib/progname.c (program_name): Initialize.
102650         Needed when linking statically on MacOS X.
102652 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
102654         Sync from coreutils.
102655         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
102656         (Depends-on): Add c-strtod.
102657         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
102659 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
102661         Sync from coreutils.
102662         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
102664         Remove files that are specific to coreutils.
102665         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
102667 2005-01-28  Bruno Haible  <bruno@clisp.org>
102669         * modules/javacomp: New file.
102670         * MODULES.html.sh (Java): Add javacomp.
102672 2005-01-28  Bruno Haible  <bruno@clisp.org>
102674         * m4/javacomp.m4: New file, from GNU gettext.
102676 2005-01-28  Bruno Haible  <bruno@clisp.org>
102678         * lib/javacomp.sh.in: New file, from GNU gettext.
102679         * lib/javacomp.h: New file, from GNU gettext.
102680         * lib/javacomp.c: New file, from GNU gettext.
102682 2005-01-26  Simon Josefsson  <jas@extundo.com>
102684         * lib/gai_strerror.c: Use GPL in header.
102686 2005-01-26  Bruno Haible  <bruno@clisp.org>
102688         * modules/javaexec: New file.
102689         * MODULES.html.sh (Java): Add javaexec.
102691 2005-01-26  Bruno Haible  <bruno@clisp.org>
102693         * m4/javaexec.m4: New file, from GNU gettext.
102695 2005-01-26  Bruno Haible  <bruno@clisp.org>
102697         * lib/javaexec.sh.in: New file, from GNU gettext.
102698         * lib/javaexec.h: New file, from GNU gettext.
102699         * lib/javaexec.c: New file, from GNU gettext.
102701 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102703         * modules/lchown (Depends-on): Remove lchown.h
102705 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102707         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
102708         must be defined if the header file was not found, in order
102709         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
102711 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102713         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
102714         initializers for struct pentry_state.
102715         (__argp_error): Check return value of __asprintf
102716         (__argp_failure): Translate error message
102718         * lib/argp-parse.c: Removed braces around the expansion of N_()
102720 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102722         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
102723         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
102724         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
102725         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
102726         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
102727         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
102728         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
102729         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
102730         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
102731         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
102732         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
102733         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
102734         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
102735         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
102736         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
102737         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
102738         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
102739         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
102740         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
102741         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
102742         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
102743         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
102744         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
102745         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
102746         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
102747         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
102748         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
102749         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
102750         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
102751         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
102752         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
102753         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
102754         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
102755         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
102756         xstrtol.m4, xstrtoumax.m4, yesno.m4:
102757         Use an all-permissive copyright notice, recommended by RMS.
102759 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
102761         * modules/chdir-long (Depends-on): Remove mempcpy.
102763 2005-01-21  Jim Meyering  <jim@meyering.net>
102765         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
102766         same value as for Solaris 9.
102768         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
102769         component length.  This included changing the parameter to be
102770         of type `char *' rather than `char const *'.
102771         * lib/chdir-long.h (chdir_long): Update prototype.
102773         * lib/openat.c (fdopendir, fstatat): New functions.
102774         * lib/openat.h: Include headers required for use of DIR and struct
102775         stat.
102776         [AT_SYMLINK_NOFOLLOW]: Define.
102777         (fdopendir, fstatat): Add prototypes.
102779 2005-01-21  Bruno Haible  <bruno@clisp.org>
102781         * modules/classpath: New file.
102782         * MODULES.html.sh (Java): Add classpath.
102784 2005-01-21  Bruno Haible  <bruno@clisp.org>
102786         * lib/classpath.h: New file, from GNU gettext.
102787         * lib/classpath.c: New file, from GNU gettext.
102789 2005-01-20  Simon Josefsson  <jas@extundo.com>
102791         * modules/version-etc-fsf: New file.
102793 2005-01-20  Simon Josefsson  <jas@extundo.com>
102795         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
102796         * lib/version-etc.c: Remove version_etc_copyright.
102797         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
102798         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
102800 2005-01-20  Simon Josefsson  <jas@extundo.com>
102802         * lib/base64.h (isbase64): Add.
102804         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
102805         using a unsigned prototype, don't inline.
102806         (base64_decode): Use it.
102808 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102810         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
102811         it.
102813 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102815         * lib/save-cwd.c (save_cwd): Remove code to support the case
102816         where fchdir is missing or flaky.
102818 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102820         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
102822 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
102824         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
102825         AC_LIBSOURCES now does this.
102826         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
102827         with new ullong_max module.
102829 2005-01-19  Bruno Haible  <bruno@clisp.org>
102831         * modules/sh-quote: New file.
102832         * MODULES.html.sh (Executing programs): Add sh-quote.
102834 2005-01-19  Bruno Haible  <bruno@clisp.org>
102836         * lib/sh-quote.h: New file, from GNU gettext.
102837         * lib/sh-quote.c: New file, from GNU gettext.
102839 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
102841         Merge from coreutils.
102842         * m4/ullong_max.m4: New file.
102843         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
102844         (gl_MACROS): Assume localeconv exists.
102846 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
102848         Merge changes from coreutils, as described below in several
102849         changelogs dated today.
102851         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
102852         (O_DIRECTORY): Remove; not needed here, since "." must be
102853         a directory.  All uses removed.
102854         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
102855         universal on Suns, and we also need to test for IRIX.
102856         Revamp code to use 'if' rather than '#if'.
102857         Avoid unnecessary comparison of cwd->desc to 0.
102859         * lib/utimens.c (futimens): Robustify the previous patch, by checking
102860         for known valid error numbers rather than observed invalid ones.
102862 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
102864         * modules/ullong_max: New file.
102866         * modules/chdir-long, modules/openat: New files.
102867         * modules/save-cwd (Depends-on): Depend on chdir-long.
102868         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
102870 2005-01-18  Jim Meyering  <jim@meyering.net>
102872         Merge from coreutils.
102873         * m4/chdir-long.m4, m4/openat.m4: New files.
102874         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
102875         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
102876         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
102877         is sane and DOES follow symlinks.  Besides, testing 20 different
102878         systems found no broken chown implementations.
102879         Prompted by a change in rsync's copy of this macro.
102880         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
102882         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
102884         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
102885         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
102886         NULL-means-set-to-current-time semantics.
102887         Remove temporary file immediately, rather than waiting
102888         for configure's at-exit trap code to do it.
102890 2005-01-18  Jim Meyering  <jim@meyering.net>
102892         * lib/version-etc.c (version_etc_copyright): Update copyright date.
102894         * lib/utimens.c (futimens): Account for the fact that futimes
102895         can also fail with errno == ENOSYS or errno == ENOENT.
102896         Patch from Dmitry V. Levin.
102898         Change the name of the robust chdir function from chdir to chdir_long.
102899         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
102900         (restore_cwd): Use chdir_long, not chdir.
102901         * lib/chdir-long.c: Renamed from chdir.c.
102902         * lib/chdir-long.h: Renamed from chdir.h.
102903         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
102904         Hurd.
102906 2005-01-18  Bruno Haible  <bruno@clisp.org>
102908         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
102909         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
102910         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
102911         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
102912         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
102913         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
102914         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
102915         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
102916         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
102917         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
102918         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
102919         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
102920         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
102921         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
102922         Use an all-permissive copyright notice, recommended by RMS.
102924 2005-01-18  Bob Proulx  <bob@proulx.com>
102926         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
102927         simplify offsetof() macro construct to avoid compile failure with
102928         native HP-UX 11.0 ANSI C compiler.
102930 2005-01-17  Bruno Haible  <bruno@clisp.org>
102932         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
102933         redundant because stpncpy.m4 takes care of it.
102935 2005-01-17  Bruno Haible  <bruno@clisp.org>
102937         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
102939 2005-01-17  Bruno Haible  <bruno@clisp.org>
102941         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
102942         used.
102944 2005-01-17  Bruno Haible  <bruno@clisp.org>
102946         * lib/fwriteerror.h (fwriteerror): Change specification to include
102947         fclose.
102948         * lib/fwriteerror.c: Include <stdbool.h>.
102949         (fwriteerror): At the end, close the file stream. Record whether
102950         stdout was already closed.
102952 2005-01-17  Bruno Haible  <bruno@clisp.org>
102954         * lib/execute.c (environ): Declare if needed.
102955         * lib/pipe.c (environ): Likewise.
102956         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
102958 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102960         * modules/argp: Depend on vsnprintf
102962 2005-01-10  Jim Meyering  <jim@meyering.net>
102964         * modules/closeout (Depends-on): Add atexit.
102966 2005-01-06  Bruno Haible  <bruno@clisp.org>
102968         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
102970 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102972         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
102973         definitions to be after all include files, to avoid collisions.
102974         Problem reported by Bob Proulx.
102976 2005-01-04  Jim Meyering  <jim@meyering.net>
102978         Changes imported from coreutils.
102979         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
102980         as the mkstemp template, use a temporary directory and an
102981         8.3-friendly template to avoid trouble on systems like DJGPP.
102982         Reported by Juan M. Guerrero via Stepan Kasal.
102983         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
102984         close. Remove the temporary directory right away, rather than waiting
102985         for configure's at-exit trap code to do it.
102986         Suggestion from Stepan Kasal.
102988 2005-01-01  Simon Josefsson  <jas@extundo.com>
102990         * gnulib-tool: Print #include directives when --import'ing.
102992 2004-12-28  Simon Josefsson  <jas@extundo.com>
102994         * tests/test-base64.c: Include required header files.  Remove
102995         unused variables.
102997 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
102999         * modules/error (Depends-on): Remove gettext.
103001 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
103003         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
103004         not needed.  This removes a dependency on the gettext module.
103005         [defined _LIBC]: Do not include <libintl.h>; not needed.
103007 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103009         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
103010         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
103012 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
103014         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
103015         HAVE_DECL_STRTOLD.
103017 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103019         * modules/getdate (Depends-on): Remove alloca-opt.
103021 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103023         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
103025 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
103027         * lib/argp-parse.c: Include <stddef.h>.
103028         (alignof, alignto): New macros.
103029         (parser_init): Don't assume that void * is aligned sufficiently
103030         for struct option.
103032         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
103033         need to extend the stack.
103034         (YYINITDEPTH): New macro, so that the initial stack isn't overly
103035         large.
103037 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103039         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
103041 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103043         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
103044         (2004-10-24) change.  Apparently this was a false alarm.
103046         * modules/getdate: Depend on alloca-opt, not alloca.
103048 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
103050         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
103051         Remove now-obsolete comment about AIX.
103052         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
103053         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
103054         (YYMAXDEPTH): New macro.
103056 2004-12-18  Simon Josefsson  <jas@extundo.com>
103058         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
103060 2004-12-18  Bruno Haible  <bruno@clisp.org>
103062         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
103064 2004-12-18  Bruno Haible  <bruno@clisp.org>
103066         * lib/fatal-signal.c (fatal_signals): Make non-const.
103067         (init_fatal_signals): New function.
103068         (uninstall_handlers, install_handlers): Ignore signals that were set to
103069         SIG_IGN.
103070         (at_fatal_signal): Call init_fatal_signals.
103071         (init_fatal_signal_set): Likewise. Ignore signals that were set to
103072         SIG_IGN.
103073         Reported by Paul Eggert.
103075 2004-12-18  Bruno Haible  <bruno@clisp.org>
103077         * doc/alloca.texi: New file.
103078         * doc/alloca-opt.texi: New file.
103080 2004-12-17  Jim Meyering  <jim@meyering.net>
103082         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
103083         Otherwise, install-sh could exit with improper exit status when
103084         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
103086 2004-12-16  Simon Josefsson  <jas@extundo.com>
103088         * tests/test-base64.c: Add license.
103090 2004-12-15  Stepan Kasal  <address@hidden>
103092         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
103094 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
103096         * modules/getcwd (Files): Add m4/d-ino.m4.
103097         Suggested by Mark D. Baushke.
103099 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
103101         * lib/getdate.y (textint): New member "negative".
103102         (time_zone_hhmm): New function.
103103         Expect 14 shift-reduce conflicts, not 13.
103104         (o_colon_minutes): New rule.
103105         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
103106         (yylex): Set the "negative" member of signed numbers.
103108 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
103110         * doc/getdate.texi (Time of day items, Time zone items):
103111         Describe new formats +00:00, UTC+00:00.
103113 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
103115         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
103116         spurious "-l"s.  Problem reported by Stepan Kasal.
103118 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
103120         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
103121         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
103123 2004-12-04  Simon Josefsson  <jas@extundo.com>
103125         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
103126         Vandoorselaere <yoann@prelude-ids.org>.
103128 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103130         Changes imported from coreutils.
103131         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
103132         exist.
103133         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
103135 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103137         Changes imported from coreutils.
103138         * lib/hard-locale.c: Assume <locale.h> exists.
103139         Include "strdup.h".
103140         (GLIBC_VERSION): New macro.
103141         (hard_locale): Assume setlocale exists.
103142         Rewrite to avoid #ifdef.
103143         Use strdup rather than malloc + strcpy.
103144         * lib/human.c: Assume <locale.h> exists.
103145         (human_readable): Assume localeconv exists.
103147 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
103149         * modules/hard-locale (Depends-on): Add strdup.
103151 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
103153         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
103154         convert T2, not T.  (Imported from libc.)
103156 2004-11-30  Simon Josefsson  <jas@extundo.com>
103158         * modules/restrict (License): Change to LGPL.
103160 2004-11-30  Simon Josefsson  <jas@extundo.com>
103162         * m4/restrict.m4: Add copyright and copying conditions.
103164 2004-11-30  Simon Josefsson  <jas@extundo.com>
103166         * m4/base64.m4: New file.
103168 2004-11-30  Simon Josefsson  <jas@extundo.com>
103170         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
103171         base64.
103173         * tests/test-base64.c: New file.
103175         * modules/base64: New file.
103177 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
103179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
103180         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
103182         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
103184 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
103186         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
103187         (__getcwd.c): Don't restore errno; glibc doesn't.
103188         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
103189         first, falling back to our code only if its results look suspicious.
103190         Ensure that the resulting buffer is only as large as necessary.
103192         * lib/readutmp.c: Include readutmp.h first.
103193         Include <errno.h>, since readutmp.h no longer does that.
103194         * lib/readutmp.h: Don't include <errno.h>,
103195         <sys/param.h>, <time.h>; not needed to establish interface.
103196         (errno): Remove decl.
103197         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
103198         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
103199         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
103201 2004-11-28  Simon Josefsson  <jas@extundo.com>
103203         * lib/base64.h, base64.c: New file.
103205 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
103207         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
103209 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
103211         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
103212         (Depends-on): Remove pathmax, same.  Add mempcpy.
103213         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
103214         (Makefile.am): Append getcwd.h to lib_SOURCES.
103215         (Include): Add getcwd.h.
103216         (Maintainer): Change from Jim Meyering to "all, glibc",
103217         since getdate now uses intended-for-glibc code.
103218         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
103219         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
103221 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103223         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
103224         HP's ANSI C compiler.
103225         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
103226         Declaring int functions causes warnings on some modern systems and
103227         shouldn't be needed to compile on ancient ones.
103228         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
103229         defined.
103231         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
103232         with the following changes.
103233         (__set_errno): Parenthesize properly.
103234         Include <stdbool.h>.
103235         (MIN, MAX, MATCHING_INO): New macros.
103236         (__getcwd): Define with prototype, not K&R form.
103237         Use heuristics to allocate default buffer on stack if possible.
103238         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
103239         behavior, and to avoid the PATH_MAX limit when computing
103240         ../../../../...
103241         Use MATCHING_INO to compare inode number to file.
103242         Check for arithmetic overflow in size calculations.
103243         Fix bug in reallocation of dot array that caused getcwd to fail
103244         on directories nested deeper than 75.
103245         Be more careful about saving errno on error.
103246         Do not use realloc; use only free+malloc, as this is a bit
103247         more flexible and avoids a needless copy operation.
103248         Do not inspect st_dev and st_ino for symbolic links; POSIX
103249         doesn't specify the latter.
103250         Check for closedir errors.
103251         Avoid needless casts.
103252         Use "#ifdef weak_alias" around weak_alias, to be like other
103253         glibc code.
103254         The following changes to getcwd.c have effect only when used in
103255         gnulib; they have no effect inside glibc proper.
103256         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
103257         as alloca isn't used.
103258         (alloca, __alloca): Likewise.
103259         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
103260         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
103261         unconditionally, as gnulib assumes C89 or better.
103262         Do not include <sys/param.h>.
103263         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
103264         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
103265         better.
103266         (NULL) [!defined NULL]: Remove; we assume C89 or better.
103267         Include <dirent.h> in a way that is compatible with modern Autoconf.
103268         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
103269         New macros, if not already defined.
103270         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
103271         Use "_LIBC", not "defined _LIBC", for consistency.
103272         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
103273         a mempcpy module.
103274         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
103275         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
103276         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
103277         credit only to Jim Meyering and adjust the copyright dates.
103278         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
103279         <stdlib.h>, <unistd.h>, "pathmax.h".
103280         Instead, include "xgetcwd.h" (first) and "getcwd.h".
103281         (INITIAL_BUFFER_SIZE): Remove.
103282         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
103284 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103286         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
103287         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
103288         Use the _ONCE methods, for efficiency.
103289         Check for fcntl.h.  In test program, include <errno.h>
103290         and <fcntl.h> if available.  Remove old K&R cruft from
103291         test program.  Check for common errors in GNU/Linux,
103292         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
103293         don't do AC_LIBOBJ, as that's getcwd.m4's job.
103294         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
103295         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
103296         name accordingly.
103297         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
103298         accommodate new getcwd.c.
103299         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
103300         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
103301         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
103302         that's all we need now.
103304 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103306         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
103307         argp-parse.c depends on getopt internals, that means we should
103308         always use our getopt, to be on the safe side.
103309         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
103310         order not to spoil the result of an eventual previous invocation
103311         of gl_GETOPT_SUBSTITUTE.
103313 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103315         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
103316         redefinition warnings. To avoid them, include the defines
103317         in `#if !defined __need_getopt ... #endif'. The only place
103318         where __getopt_argv_const is used is in definitions
103319         of getopt_long and getopt_long_only below, which are as well
103320         protected by `#ifndef __need_getopt'.
103321         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
103322         __need_getopt after including <stdio.h> and <unistd.h> These
103323         headers might have defined it.
103325 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103327         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
103329 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103331         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
103332         (futimens): New function, which uses futimes if available.
103333         (futimens, utimens): Support timespec==NULL, with same semantics
103334         as utime and utimens.
103335         * lib/utimens.h (futimens): New decl.
103337 2004-11-23  Jim Meyering  <jim@meyering.net>
103339         * lib/getopt_.h: Remove trailing blanks.
103341 2004-11-23  Jim Meyering  <jim@meyering.net>
103343         * lib/__fpending.c: Add comment.
103345 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
103347         * modules/canonicalize (Depends-on): Add xreadlink.
103348         Problem reported by James Youngman.
103350 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
103352         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
103353         New macros.
103354         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
103355         optopt): Use them instead of invoking ## directly; otherwise, the
103356         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
103358 2004-11-19  Bruno Haible  <bruno@clisp.org>
103360         * lib/strtok_r.c: Move comments from here...
103361         * lib/strtok_r.h: ... to here.
103363 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103365         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
103366         implementations that mishandle size_t overflow.
103368 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103370         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
103371         might fail.  Problem reported by Yoann Vandoorselaere.
103372         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
103373         implementations that mishandle size_t overflow.
103375 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103377         * modules/canon-host (Depends-on): Add strdup.
103379 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103381         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
103383 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103385         * lib/canon-host.c: Include "strdup.h".
103386         (canon_host): Use getaddrinfo if available, so that IPv6 works.
103387         Use strdup instead of malloc/strcpy to duplicate strings.
103389         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
103390         (human_space_before_unit): New constant.
103391         * lib/human.c (human_readable): Support it.
103393         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
103394         (xgetcwd): Set errno correctly when failing.
103395         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
103396         the failure is actually due to a PATH_MAX problem.
103398         Further getopt changes to make it more likely that glibc will
103399         buy the changes back.
103400         * lib/getopt.c (POSIXLY_CORRECT): New constant.
103401         (getopt): Use it, so to preserve glibc semantic
103402         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
103403         when compiling for libc.
103404         * lib/getopt_.h (__getopt_argv_const): Bring it back.
103405         (getopt_long, getopt_long_only): Use it.
103407         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103408         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
103409         (getopt): Argv is now char * const *, as per standard.
103410         (_getopt_internal_r, _getopt_internal): Argv is now char **,
103411         not char *__getopt_argv_const *.
103412         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103413         _getopt_long_only_r): Likewise.
103414         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
103415         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103416         _getopt_long_r, _getopt_long_only_r): Likewise.
103417         * lib/getopt_.h (__getopt_argv_const): Remove.
103418         (getopt): Argv is now char * const *, as per standard.
103420         * lib/getdate.y (tORDINAL): New token.
103421         (day, relunit): Allow it for relative times.
103422         (relative_time_table): Use tORDINAL for ordinals.
103424 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103426         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
103427         Document that "second" isn't allowed as an ordinal number.
103429 2004-11-16  Jim Meyering  <jim@meyering.net>
103431         * modules/closeout (Depends-on): Add fpending.
103433 2004-11-15  Jim Meyering  <jim@meyering.net>
103435         * lib/closeout.c: Include "__fpending.h" once again.
103436         Include <stdbool.h>.
103437         (close_stdout): Don't fail just because stdout was closed initially,
103438         since some programs don't write to stdout in the normal course of
103439         operation (other than --version and --help), and we don't want this
103440         function to make e.g. `touch file >&-' fail.
103441         But do fail if it was closed and someone has tried to write to it.
103442         E.g., `printf foo >&-' must fail.
103444 2004-11-13  Jim Meyering  <jim@meyering.net>
103446         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
103448 2004-11-12  Simon Josefsson  <jas@extundo.com>
103450         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
103451         small doc fix is still pending.
103453 2004-11-11  Simon Josefsson  <jas@extundo.com>
103455         * modules/strtok_r: New file.
103457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103458         strtok_r.
103460 2004-11-11  Simon Josefsson  <jas@extundo.com>
103462         * m4/strtok_r.m4: New file.
103464         * m4/getopt.m4: Replace opterr.
103466 2004-11-11  Simon Josefsson  <jas@extundo.com>
103468         * lib/strtok_r.h, strtok_r.c: New file.
103470 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
103472         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
103473         of replacing opterr, getopt, etc.  This should handle the
103474         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
103476 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
103478         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
103479         we can stop lying to compilers about the constness of argv when we
103480         are compiled outside glibc.
103481         (getopt, getopt_long, getopt_long_only): Use it.
103482         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103483         _getopt_internal, getopt): Likewise.
103484         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103485         _getopt_long_only_r): Likewise.
103486         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103487         _getopt_long_r, _getopt_long_only_r): Likewise.
103489         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
103490         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
103491         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
103492         the other external symbols.
103493         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
103494         declaration, since the above renaming now works around collisions.
103496 2004-11-11  Jim Meyering  <jim@meyering.net>
103498         * lib/linebreak.c: Remove trailing blanks.
103499         * lib/alloca_.h: Likewise.
103500         * lib/acosl.c: Likewise.
103501         * lib/euidaccess.c: Likewise.
103502         * lib/allocsa.h: Likewise.
103504 2004-11-10  Simon Josefsson  <jas@extundo.com>
103506         * m4/getaddrinfo.m4: New file.
103508 2004-11-10  Simon Josefsson  <jas@extundo.com>
103510         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
103512 2004-11-10  Simon Josefsson  <jas@extundo.com>
103514         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103515         getaddrinfo.
103517         * modules/getaddrinfo: New file.
103519 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
103521         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
103523 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
103525         * lib/mktime.c (SHR): New macro, which is a portable
103526         substitute for >> that should work even on Crays.
103527         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
103528         Problem reported by Mark D. Baushke in
103529         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
103530         * lib/getdate.y (SHR): Likewise.
103531         (tm_diff): Use it.
103532         * lib/strftime.c (SHR): Likewise.
103533         (tm_diff): Use it.
103534         * lib/quotearg.c (struct quoting_options): Use unsigned int for
103535         quote_these_too, so that right shifts are well defined.  All uses
103536         changed.
103538 2004-11-10  Jim Meyering  <jim@meyering.net>
103540         Ensure that no close failure goes unreported.
103541         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
103542         return early when it seems there's nothing to flush.
103543         Don't include __fpending.h.
103545 2004-11-10  Jim Meyering  <jim@meyering.net>
103547         * modules/closeout (Depends-on): Remove fpending.
103549 2004-11-10  Jim Meyering  <jim@meyering.net>
103551         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
103553 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103555         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
103556         gl_FUNC_STRFTIME.
103557         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
103558         and AC_REQUIRE when possible, to avoid duplicate checks.
103559         Check for <wchar.h>.
103561 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103563         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
103565 2004-11-09  Bruno Haible  <bruno@clisp.org>
103567         * m4/sockpfaf.m4: New file.
103569 2004-11-05  Bruno Haible  <bruno@clisp.org>
103571         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
103572         Reported by Mark D. Baushke <mdb@cvshome.org>.
103574 2004-11-04  Bruno Haible  <bruno@clisp.org>
103576         2004-09-11  Bruno Haible  <bruno@clisp.org>
103577                 * allocsa.valgrind: New file.
103578         2004-02-06  Bruno Haible  <bruno@clisp.org>
103579                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
103580                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
103581                 Reported by Christopher Seip <chris.seip@hp.com>.
103583 2004-11-04  Bruno Haible  <bruno@clisp.org>
103585         * modules/allocsa (Files): Add lib/allocsa.valgrind.
103586         (Makefile.am): Distribute it.
103588 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
103590         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
103591         with errno == ERANGE if the buffer is too small.
103592         Problem reported by Mark D. Baushke.
103594 2004-11-03  Albert Chin  <china@thewrittenword.com>
103595             Paul Eggert  <eggert@cs.ucla.edu>
103597         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
103598         equivalent, substitute $ac_type for equivalent type rather than
103599         blindly using uint32_t *always* which won't work if uint32_t is not
103600         available.  Define _UINT32_T to work around typedef of uint32_t if
103601         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
103602         2.5.1.
103604 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103606         * m4/jm-macros.m4: Sync from coreutils.
103607         (gl_MACROS): Check for mbrlen, for pathchk.
103608         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
103610 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103612         * lib/xreadlink.c (MAXSIZE): New macro.
103613         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
103614         size does not exceed MAXSIZE.  Avoid cast.
103615         As suggested by Mark D. Baushke in
103616         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
103617         if readlink fails with buffer size just under MAXSIZE, try again
103618         with MAXSIZE.
103620 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103622         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
103624 2004-11-02  Derek R. Price  <derek@ximbiot.com>
103625         and  Paul Eggert  <eggert@cs.ucla.edu>
103627         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
103628         (get_date): Overparenthesize to avoid GCC warning.
103630 2004-11-02  Bruno Haible  <bruno@clisp.org>
103632         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
103633         returns void.
103635 2004-11-02  Bruno Haible  <bruno@clisp.org>
103637         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
103638         function returns void.
103640 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
103642         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
103643         fflush_unlocked, flockfile, funlockfile, funlockfile,
103644         fputs_unlocked, putc_unlocked.
103646 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
103648         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
103649         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
103650         already declared.
103652 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103654         * modules/getdate (Files): Add doc/getdate.texi.
103655         (Depends-on): Add setenv, xalloc.
103657 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103659         * lib/getdate.y: Add support for TZ="foo" within a date string.
103660         Fix some bugs near time_t boundaries.  Reject dates with
103661         out-of-range components, e.g., "Sept 31".
103662         Include <stdlib.h>, "setenv.h", "xalloc.h".
103663         (ISDIGIT_LOCALE): Remove; unused.
103664         Note that the TZ and time functions used here are not reentrant.
103665         (mktime_ok, get_tz): New functions.
103666         (TZBUFSIZE): New constant.
103667         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
103668         This requires that we sometimes generate our own TZ="XXX..." setting.
103670 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103672         * doc/getdate.texi: New file, from coreutils with modifications for
103673         the new TZ parsing.
103675 2004-10-27  Derek R. Price  <derek@ximbiot.com>
103677         * lib/mktime.c (not_equal_tm): Remove redundant check.
103679 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103681         * modules/regex (lib_SOURCES): Add regex.c.
103682         Reported by James Youngman in
103683         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
103685 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103687         * lib/getdate.y: Use Bison 1.875 features, and some minor
103688         code cleanups.  This change does not affect semantics.
103689         Don't include <stdlib.h>; no longer needed.
103690         Don't include unlocked-io.h; only the "#if TEST" code uses
103691         stdio, and performance isn't crucial there.
103692         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
103693         Bison 1.875 features as described below.
103694         All uses of "PC." replaced by "pc->".
103695         (YYSTYPE): Add a forward declaration.
103696         (yylex, yyerror): Use full prototypes in forward decls.
103697         Use "%pure-parser" rather than obsolescent "%pure_parser".
103698         Use %parse-param and %lex-param instead of obsolescent
103699         YYPARSE_PARAM and YYLEX_PARAM.
103700         (meridian_table, month_and_day_table, time_units_table,
103701         relative_time_table, time_zone_table, military_table,
103702         lookup_zone, lookup_word, get_date):
103703         Use NULL instead of 0 where appropriate.
103704         (to_hour): Avoid abort (), to avoid a dependency on
103705         stdlib.h.
103706         (yyerror, yylex): Now accepts parser_control * arg.
103707         (main) [TEST]: Use '\0' rather than 0 for char.
103709 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
103711         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
103713 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
103715         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
103716         It's now the caller's responsibility to handle the case where
103717         !HAVE_GETPAGESIZE && !defined getpagesize.
103719         * lib/mktime.c (leapyear): Arg is long int, not int.
103721 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
103723         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
103725 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
103727         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
103728         missing.  Problem reported by James Youngman.
103730 2004-10-16  Simon Josefsson  <jas@extundo.com>
103732         * gnulib-tool: Fix comments.  Fix parse problem.
103733         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
103735 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
103737         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
103738         implementation of getopt_long.  Problem reported by Alexander Taler in:
103739         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
103741 2004-10-15  Bruno Haible  <bruno@clisp.org>
103743         * gnulib-tool: Untabify. Initialize supplied_libname.
103744         (func_usage): More homogenous output.
103745         (func_modules_transitive_closure, func_modules_to_filelist,
103746         func_emit_lib_Makefile_am): New functions.
103747         (func_import): New function, extracted from big case statement. Use
103748         func_get_license, func_modules_transitive_closure,
103749         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
103750         opt_lgpl. Don't use test -a, as it's not portable.
103751         (func_create_testdir): Use func_modules_transitive_closure,
103752         func_modules_to_filelist, func_emit_lib_Makefile_am.
103754 2004-10-15  Bruno Haible  <bruno@clisp.org>
103756         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
103758 2004-10-15  Bruno Haible  <bruno@clisp.org>
103760         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
103761         the portions belonging to each module.
103762         Suggested by Derek Robert Price <derek@ximbiot.com>.
103764 2004-10-12  Simon Josefsson  <jas@extundo.com>
103766         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
103767         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
103768         to real functions.
103770 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103772         * modules/vsnprintf: New file.
103774 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103776         * m4/vsnprintf.m4: New file.
103778 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103780         * lib/vsnprintf.h: New file.
103781         * lib/vsnprintf.c: New file.
103783 2004-10-11  Bruno Haible  <bruno@clisp.org>
103785         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
103786         vsnprintf.
103788 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103790         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
103792 2004-10-07  Bruno Haible  <bruno@clisp.org>
103794         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
103795         fits into the provided buffer.
103797 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103799         * lib/diacrit.c, diacrit.h: Add GPL notice.
103801         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
103802         notice.
103803         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
103804         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
103805         This avoids a potential constant-folding bug.
103807 2004-10-05  Bruno Haible  <bruno@clisp.org>
103809         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
103810         for the declaration of strsep.
103812 2004-10-05  Bruno Haible  <bruno@clisp.org>
103814         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
103816 2004-10-04  Simon Josefsson  <jas@extundo.com>
103818         * modules/memmem: New file.
103819         * tests/test-memmem.c: New file.
103820         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
103822 2004-10-04  Simon Josefsson  <jas@extundo.com>
103824         * m4/memmem.m4: New file.
103826 2004-10-04  Simon Josefsson  <jas@extundo.com>
103828         * lib/memmem.h: New file.
103829         * lib/memmem.c: New file, taken from glibc.
103831 2004-10-04  Simon Josefsson  <jas@extundo.com>
103833         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
103834         '#ifdef USE_UNLOCKED_IO'.
103836 2004-10-04  Simon Josefsson  <jas@extundo.com>
103838         * config/srclist.txt: Add memmem from glibc.
103840 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103842         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
103844         * modules/argmatch, modules/argp, modules/closeout, modules/error,
103845         modules/exclude, modules/getdate, modules/getline,
103846         modules/getndelim2, modules/getpass, modules/getpass-gnu,
103847         modules/getusershell, modules/linebuffer, modules/md5,
103848         modules/mountlist, modules/posixtm, modules/readtokens,
103849         modules/readutmp, modules/regex, modules/sha1,
103850         modules/version-etc, modules/yesno:
103851         Remove dependency on unlocked-io.
103853 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103855         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
103857         * m4/unlocked-io.m4: Add copyright notice.
103858         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
103860 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103862         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
103863         * lib/xmalloc.c (xmemdup): Likewise.
103864         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
103865         XFREE): Remove these long-obsolescent macros.
103866         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
103867         * lib/xstrdup.c: Remove.
103869         * lib/regex.c (re_comp): Cast gettext return value to char *,
103870         Problem reported by Martin Neitzel via Mark D. Baushke.
103872 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103874         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
103875         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
103876         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
103877         regex.c, sha1.c, version-etc.c, yesno.c:
103878         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
103879         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
103880         the includer's responsibility.
103882         Sync from coreutils.
103884         * lib/modechange.c (mode_compile): Don't decrement a pointer that
103885         points to the start of a string, as the C Standard says the
103886         resulting behavior is undefined.
103888         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
103889         simple -> simple_backups, numbered_existing ->
103890         numbered_existing_backups, numbered -> numbered_backups
103891         to avoid shadowing problems.  All uses changed.
103892         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
103893         * lib/backupfile.c (check_extension, numbered_backup):
103894         Rename locals to avoid shadowing 'basename'.
103895         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
103896         once.
103898         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
103899         * lib/.cvsignore: Add getopt.h.
103901 2004-10-04  Bruno Haible  <bruno@clisp.org>
103903         * modules/README: New file.
103904         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
103905         not a module.
103907 2004-10-02  Jim Meyering  <jim@meyering.net>
103909         * lib/dirfd.h, getpagesize.h: Add copyright notice.
103911 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103913         * modules/strsep: New file.
103915 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103917         * m4/strsep.m4: New file.
103919 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103921         * lib/strsep.h: New file.
103922         * lib/strsep.c: New file.
103924 2004-10-01  Simon Josefsson  <jas@extundo.com>
103926         * lib/snprintf.c (snprintf): Handle size==0.
103928 2004-10-01  Simon Josefsson  <jas@extundo.com>
103929             Bruno Haible  <bruno@clisp.org>
103931         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
103932         (snprintf): Declare 'args'.
103934 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
103936         * lib/snprintf.c: Remove comments as to why each header is needed.
103938 2004-10-01  Bruno Haible  <bruno@clisp.org>
103940         * MODULES.html.sh: Add strsep.
103942 2004-09-30  Simon Josefsson  <jas@extundo.com>
103944         * modules/snprintf: New file.
103946 2004-09-30  Simon Josefsson  <jas@extundo.com>
103948         * m4/snprintf.m4: New file.
103950 2004-09-30  Simon Josefsson  <jas@extundo.com>
103952         * lib/snprintf.h, lib/snprintf.c: New files.
103954 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103956         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
103957         (hol_entry_help): Never translate an empty string.
103958         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
103959         * lib/argp.h (OPTION_NO_TRANS): New option.
103961 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
103963         * modules/argp (Maintainer): Replace Simon Josefsson
103964         by Sergey Poznyakoff.
103966 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
103968         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
103969         changes merged back into glibc.
103971 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
103973         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
103975 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
103977         * lib/xvasprintf.c: Include xalloc.h.
103978         (xvasprintf): Use xalloc_die, not xmalloc_die.
103980 2004-09-29  Bruno Haible  <bruno@clisp.org>
103982         * modules/alloca-opt: New file, derived from modules/alloca.
103983         * modules/allocsa: Depend on alloca-opt instead of alloca.
103984         * modules/setenv: Likewise.
103985         * modules/vasnprintf: Likewise.
103986         * MODULES.html.sh: Add alloca-opt.
103988 2004-09-28  Simon Josefsson  <jas@extundo.com>
103990         * gnulib-tool: New parameter --lgpl, to asseert that modules are
103991         LGPL, and to replace license template from GPL to LGPL.
103993 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
103995         * modules/dummy: Change license to LGPL.
103997 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
103999         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
104001 2004-09-24  Simon Josefsson  <jas@extundo.com>
104003         * modules/minmax (License): Change from GPL to LGPL.
104005 2004-09-23  Simon Josefsson  <jas@extundo.com>
104007         * gnulib-tool (--import): Typo.
104009 2004-09-23  Simon Josefsson  <jas@extundo.com>
104011         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
104013 2004-09-22  Bruno Haible  <bruno@clisp.org>
104015         * modules/*: Add 'License' field.
104016         * gnulib-tool: Accept --extract-license option.
104017         (func_get_license): New function.
104019 2004-09-21  Bruno Haible  <bruno@clisp.org>
104021         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
104022         Reported by Simon Josefsson.
104024 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104026         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
104027         gl_AC_TYPE_LONG_LONG.
104029 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
104031         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
104033 2004-09-18  Simon Josefsson  <jas@extundo.com>
104034         and  Paul Eggert  <eggert@cs.ucla.edu>
104036         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
104037         calls with autoreconf.  Define GL_LIB.
104039 2004-09-14  Karl Berry  <karl@gnu.org>
104041         * config/srclist.txt: unsync setenv.c, sigh.
104043 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104045         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
104046         Problem reported by Bruno Haible in:
104047         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
104049 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
104051         * config/srclist.txt: Comment out argp-pvh.c.
104053 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
104055         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
104056         in case some system header has #define'd it.  Problem reported by
104057         Soeren D. Schulze in
104058         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
104060 2004-09-09  Karl Berry  <karl@gnu.org>
104062         * regex.[ch]: delete from the root.  These were supposed to be
104063                 synced with emacs cvs, but this has not happened for about
104064                 a year, and anyway nothing else uses emacs regex.[ch].
104065                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
104066                 lib/regex[.ch] is untouched.
104068 2004-09-09  Bruno Haible  <bruno@clisp.org>
104070         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
104072 2004-09-09  Bruno Haible  <bruno@clisp.org>
104074         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
104075         modifications.
104076         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
104078 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
104080         * modules/xvasprintf: New file.
104081         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
104083 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
104085         * lib/xvasprintf.h: New file.
104086         * lib/xvasprintf.c: New file.
104087         * lib/xasprintf.c: New file.
104089 2004-09-08  Bruno Haible  <bruno@clisp.org>
104091         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
104093 2004-09-08  Bruno Haible  <bruno@clisp.org>
104095         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
104096         length is > INT_MAX.
104097         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
104098         more.
104100 2004-09-08  Bruno Haible  <bruno@clisp.org>
104102         * lib/stdint_.h: New file, taken from GNU clisp.
104104 2004-09-08  Bruno Haible  <bruno@clisp.org>
104105             Oskar Liljeblad  <oskar@osk.mine.nu>
104107         * modules/stdint: New file.
104108         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
104110 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104112         Import from coreutils.
104113         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
104114         strings on unbounded length.  alloca's performance benefits aren't
104115         that important here.
104116         (V_STRDUP): Remove.
104117         (parse_with_separator): New function, with most of the internals
104118         of the old parse_user_spec.  Allow user to omit both user and group,
104119         for compatibility with FreeBSD.
104120         Clone only the user name, not the entire spec.
104121         Do not set *uid, *gid unless entirely successful.
104122         Avoid memory leak in some failing cases.
104123         Fix regression for USER.GROUP reported by Dmitry V. Levin in
104124         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
104125         (parse_user_spec): Rewrite to use parse_with_separator.
104127 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104129         * modules/userspec: Don't depend on alloca.
104131 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104133         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
104135 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104137         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
104138         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
104139         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
104141 2004-08-16  Simon Josefsson  <jas@extundo.com>
104143         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
104144         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
104145         Add --dry-run for --import.
104146         Let user provided command line parameters override configure.ac
104147         settings.
104149 2004-08-12  Simon Josefsson  <jas@extundo.com>
104151         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
104152         as discussed with Paul Eggert in threads rooted at
104153         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
104154         and
104155         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
104156         Before, the test was empty, and relied on ELIDE_CODE in source
104157         code.)
104158         (gl_PREREQ_GETOPT): New macro.
104159         (gl_GETOPT): Use them.
104161 2004-08-12  Simon Josefsson  <jas@extundo.com>
104163         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
104164         * lib/getopt_.h: Renamed from getopt.h.
104166 2004-08-12  Simon Josefsson  <jas@extundo.com>
104168         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
104169         Change default library name from libfoo to libgnu.
104170         Now, if you have a configure.ac that says:
104171                 gl_SOURCE_BASE(gl)
104172                 gl_M4_BASE(gl/m4)
104173                 gl_MODULES(error getopt etcetera)
104174                 gl_INIT
104175         you can import all you need by running:
104176                 ../gnulib/gnulib-tool --import
104178         * modules/getopt (Files): Rename getopt.h to getopt_.h.
104179         (Makefile.am): Rewrite, use logic from argz.
104180         (Include): Use <getopt.h> instead of "getopt.h".
104182 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104184         * modules/argp (Files): Add m4/unlocked-io.m4.
104185         (Depends-on): Add extensions.
104187 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104189         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
104190         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
104191         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
104192         Check for program_invocation_name, program_invocation_short_name,
104193         flockfile, funlockfile, features.h, _getopt_long_only_r.
104195 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104197         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
104198         its complicated substitute.
104199         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
104200         and program_invocation_name.
104201         (__argp_basename) [!_LIBC]: Remove; the only use was
104202         replaced by its body.
104203         (__argp_short_program_name): Change condition from
104204         !defined __argp_short_program_name to
104205         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
104206         to match argp-namefrob.h.
104207         (__argp_failure): Don't assume strerror_r returns char *.
104208         * lib/argp-parse.c (N_): Define unconditionally.
104209         (argp_default_options): Fill out initializers with 0 to avoid
104210         gcc warnings.
104212 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
104214         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
104215         getopt1.c.
104217 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104219         Merge from coreutils.
104221         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
104223         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
104224         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
104226 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104228         Merge from coreutils.
104230         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
104231         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
104232         for Reliant Unix 5.43.
104234         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
104235         (union fooround): Use uintmax_t, not long int.
104236         The rest is a merge from libc:
104237         [defined _LIBC]: Include <shlib-compat.h>.
104238         (_obstack) [defined _LIBC]: Remove after 2.3.4.
104240         * lib/settime.c (settime): Recode to avoid warning with
104241         Sun Forte C 6U2.
104243         * lib/strverscmp.c: Convert to UTF-8.
104245 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104247         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104248         m4/uintmax_t.m4.
104250 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104252         * modules/xalloc-die: New file.
104253         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
104255         * modules/md5 (Files): Add m4/uint32_t.m4.
104256         * modules/sha1: Renamed from modules/sha.
104257         (Files):
104258         Rename lib/sha.h to lib/sha1.h.
104259         Rename lib/sha.c to lib/sha1.c.
104260         Rename m4/sha.m4 to m4/sha1.m4.
104261         (lib_SOURCES): Likewise.
104262         (configure.ac): Rename gl_SHA to gl_SHA1.
104263         (Include): sha.h -> sha1.h.
104265 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104267         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
104268         * m4/sha1.m4: Renamed from sha.m4.
104269         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
104271 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104273         * lib/obstack.h (obstack_empty_p):
104274         Don't assume that chunk->contents is suitably aligned.
104275         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
104276         Likewise. Problem reported by Benno in
104277         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
104279         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
104280         readable.  This could be improved further but it'd take some work.
104282 2004-08-08  Simon Josefsson  <jas@extundo.com>
104284         * modules/xgethostname (Depends-on): Remove exit and error (not
104285         used).
104287         * modules/getpass-gnu: Add getpass.h.
104288         (Depends-on): Add stdbool.
104289         * modules/getpass: Add getpass.h.
104291 2004-08-08  Simon Josefsson  <jas@extundo.com>
104293         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
104294         Check getpass declaration.
104296 2004-08-08  Simon Josefsson  <jas@extundo.com>
104298         * lib/xgethostname.c: Don't include error.h (not used).
104300         * lib/getpass.h: Add.
104301         * lib/getpass.c: Include getpass.h first.
104303 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
104305         * lib/xalloc-die.c: New file.
104306         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
104307         All uses removed.
104308         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
104309         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
104310         xalloc-die.c.
104311         (_, N_, xalloc_die): Move to xalloc-die.c.
104312         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
104313         so that we needn't mess with xalloc_msg_memory_exhausted.
104315         * lib/sha1.h: Renamed from sha.h.
104316         (SHA1_H): Renamed from _SHA_H.
104317         (sha1_ctx): Renamed from sha_ctx.
104318         (sha1_init_ctx): Renamed from sha_init_ctx.
104319         (sha1_process_block): Renamed from sha_process_block.
104320         (sha1_process_bytes): Renamed from sha_process_bytes.
104321         (sha1_finish_ctx): Renamed from sha_finish_ctx.
104322         (sha1_read_ctx): Renamed from sha_read_ctx.
104323         (sha1_stream): Renamed from sha_stream.
104324         (sha1_buffer): Renamed from sha_buffer.
104325         * lib/sha1.c: Likewise; renamed from sha.c.
104326         Do not include <sys/types.h>.
104327         Include <stddef.h> rather than <stdlib.h>.
104329 2004-08-08  Bruno Haible  <bruno@clisp.org>
104331         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
104332         FILESYSTEM_PREFIX_LEN.
104333         * lib/progreloc.c: Likewise.
104334         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
104336 2004-08-06  Simon Josefsson  <jas@extundo.com>
104338         * modules/progname (Depends-on): Don't depend on stdbool.
104340 2004-08-06  Simon Josefsson  <jas@extundo.com>
104342         * modules/getsubopt: New file.
104343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104344         getsubopt.
104346 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104348         More merge from coreutils.
104350         * m4/utimens.m4, m4/utimecmp.m4: New files.
104351         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
104352         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
104353         prereq.m4, sha.m4: Import changes from coreutils.
104355 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104357         More merge from coreutils.
104358         * modules/raise, modules/readtokens0, modules/utimens:
104359         * modules/utimecmp, module/xnanosleep: New files.
104360         * modules/strftime: Add lib/strftime.h.
104361         Change include from <time.h> to "strftime.h".
104362         * modules/yesno: Add lib/yesno.h.
104363         * modules/backupfile: Remove lib/addext.c.
104364         * modules/euidaccess: Add stat-macros.h.
104365         * modules/canonicalize, modules/euidaccess,
104366         modules/filemode, modules/lchown, modules/makepath,
104367         modules/rmdir, modules/stat: Likewise.
104369 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104371         Merge from tar.
104372         * lib/argp-help.c (make_hol, hol_append): Don't assume that
104373         SIZE_MAX is a valid preprocessor constant.
104374         (__argp_basename): Change from "#ifndef _LIBC"
104375         to "#ifndef __argp_short_program_name", so that
104376         we don't compile these functions for tar.
104378         More merges from coreutils.
104379         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
104380         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
104381         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
104382         * lib/addext.c: Remove; no longer needed.
104383         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
104384         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
104385         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
104386         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
104387         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
104388         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
104389         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
104390         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
104391         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
104392         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104393         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
104394         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
104395         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
104396         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
104397         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
104398         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
104399         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
104400         Import changes from coreutils.
104402 2004-08-05  Simon Josefsson  <jas@extundo.com>
104404         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
104406 2004-08-05  Simon Josefsson  <jas@extundo.com>
104408         * m4/getsubopt.m4: New file.
104410 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104412         Merge from coreutils.
104414         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
104415         * m4/getcwd-path-max.m4: New files.
104417         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
104418         FILESYSTEM_PREFIX_LEN ->
104419         FILE_SYSTEM_PREFIX_LEN.
104420         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
104421         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
104422         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
104423         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
104425         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
104426         prerequisite modules now handle the DOS stuff.
104427         Don't check for unistd.h.
104429 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104431         Merge from coreutils.
104433         * lib/.gdb-history: Remove; this doesn't belong here.
104435         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
104436         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
104437         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
104438         * lib/getcwd.c: New files.
104440         * lib/dirname.h: Include <stdbool.h>.
104441         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
104442         for consistency with POSIX terminology.  All uses changed.
104443         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
104444         (strip_trailing_slashes): Use bool for booleans.
104445         * lib/stripslash.c (strip_trailing_slashes): Likewise.
104447         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
104448         sometimes returns a positive errno value even when it succeeds.
104449         (print_errno_message) [!LIBC]: Fall back on strerror if
104450         __strerror_r fails.
104452         * lib/path-concat.c (mempcpy): Don't define if a system header defines
104453         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
104454         (longest_relative_suffix): New function.
104455         (path_concat): Use it.  Assume first argument is not NULL.
104456         Port to DOS.  Omit redundant separators.
104457         Report an error instead of returning NULL.
104458         Use mempcpy instead of memcpy.
104459         (xpath_concat): Remove: not declared or used.
104461         * lib/same.h: Include <stdbool.h>
104462         (same_name): Return bool, not int.
104463         * lib/same.c (same_name): Likewise.
104464         (errno): Don't declare; we assume C89 or better now.
104466         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
104467         if not already defined.
104469         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
104470         * lib/dup-safer.c (errno): Likewise.
104472 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104474         Merge from coreutils.
104475         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
104476         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
104477         * modules/path-concat: Don't depend on strdup.
104479 2004-08-03  Simon Josefsson  <jas@extundo.com>
104481         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
104482         * lib/progname.h: Don't include stdbool.h.
104484 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104486         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
104487         * MODULES.html.sh (func_all_modules): Remove fatal.
104489 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104491         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
104493 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104495         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
104496         working.
104498 2004-08-02  Simon Josefsson  <jas@extundo.com>
104500         * lib/getsubopt.h: New file, with comments from Bruno Haible.
104501         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
104502         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
104504 2004-08-01  Simon Josefsson  <jas@extundo.com>
104506         * lib/xgetdomainname.c: Include stdlib.h, for free().
104508 2004-07-19  Bruno Haible  <bruno@clisp.org>
104510         * MODULES.html.sh (func_all_modules): Add dummy.
104512 2004-07-16  Simon Josefsson  <jas@extundo.com>
104514         * modules/dummy: New file.
104516 2004-07-16  Simon Josefsson  <jas@extundo.com>
104518         * lib/dummy.c: New file.
104520 2004-07-16  Bruno Haible  <bruno@clisp.org>
104522         * lib/backupfile.h: Add extern "C" for C++.
104523         * lib/closeout.h: Likewise.
104524         * lib/copy-file.h: Likewise.
104525         * lib/findprog.h: Likewise.
104526         * lib/full-write.h: Likewise.
104527         * lib/pathname.h: Likewise.
104528         * lib/progname.h: Likewise.
104529         * lib/stpcpy.h: Likewise.
104530         * lib/stpncpy.h: Likewise.
104531         * lib/strcase.h: Likewise.
104532         * lib/strstr.h: Likewise.
104533         * lib/xalloc.h: Likewise.
104535         * lib/mbswidth.h: Add extern "C" for C++.
104536         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
104538 2004-07-13  Robert Millan  <robertmh@gnu.org>
104540         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
104542 2004-07-09  Simon Josefsson  <jas@extundo.com>
104544         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
104545         failed without this.)
104547 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104549         * modules/chown (Files): Add lib/fchown-stub.c, since
104550         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
104552 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104554         * lib/fchown-stub.c: New file.
104556 2004-06-24  Jim Meyering  <jim@meyering.net>
104558         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
104560 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104562         * modules/argz: Omit "#include".
104564         * MODULES.html.sh (func_all_modules): Add calloc, to match
104565         2004-06-01 addition of calloc module.
104567 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104569         * m4/argz.m4: New file, which is autoupdated from libtool.
104571 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104573         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
104574         libtool.
104576 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104578         * config/srclist-update: Don't insist on "USA." before the
104579         close-comment, as libtool omits the period and puts the */ on a
104580         separate line.
104581         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
104582         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
104584 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
104586         * modules/argz: New file.
104587         * MODULES.html.sh (func_all_modules): Add argz.
104589 2004-06-12  Jim Meyering  <jim@meyering.net>
104590         and  Paul Eggert  <eggert@cs.ucla.edu>
104592         * modules/hash (Files): Add lib/xalloc.h.
104593         * modules/pipe (Depends-on): Add wait-process.
104594         * modules/stat (Depends-on): Add xalloc.
104595         * modules/userspec (Files): Add lib/userspec.h.
104596         * modules/xstrto
104598         Upgrade from gettext-0.13.
104599         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
104600         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
104601         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
104603 2004-06-10  Jim Meyering  <jim@meyering.net>
104605         * lib/calloc.c: New file.
104607 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104609         * lib/getdate.y (yylex): Allow space between sign and number.
104610         Problem reported by Dan Jacobson.
104612 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
104614         Merge from coreutils CVS.
104616         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
104617         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
104618         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
104619         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
104620         xstrtol.m4: Fix copyright date and/or serial number.
104622         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
104623         See if we need an fchown replacement.
104624         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
104625         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
104626         and use the replacement function if we detect either defect.
104628         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
104629         gl_UTIMECMP.
104631 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
104632         and  Jim Meyering  <jim@meyering.net>
104634         Merge from coreutils CVS.
104636         * lib/stat-macros.h: New file, with contents from file-type.h
104637         and coreutils' system.h.
104638         * lib/file-type.c: Include "stat-macros.h".
104639         * lib/file-type.h (file_type): Move all macro definitions to new file,
104640         stat-macros.h.
104642         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
104643         Wrap old code with this conditional.
104644         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
104645         function that does not dereference symlinks.
104646         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
104648         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
104649         dependency problems.
104650         (xreadlink): Accept new arg SIZE, for efficiency.
104651         All decls and uses changed.
104652         * lib/xreadlink.h: Include <stddef.h>, for size_t.
104654         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
104655         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
104657         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
104658         sysexits.h.
104660 2004-06-01  Jim Meyering  <jim@meyering.net>
104662         * m4/calloc.m4: New file.
104664 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
104666         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
104667         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
104668         Also, fix a typo in a diagnostic.
104670 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
104672         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
104673         or AC_FUNC_REALLOC.
104675 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
104677         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
104678         macros to be defined.
104679         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
104680         the allocator returns NULL because the requested size is zero.
104682 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104684         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
104685         var.  Add comment explaining why libc still defines it.  This
104686         merges the following patch from glibc:
104687         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
104689 2004-05-20  Andreas Schwab  <schwab@suse.de>
104691         * m4/free.m4: Replace free if it not known to work, not the other
104692         way round.
104694 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
104696         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
104697         present in glibc since revision 1.1 of this file.
104698         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
104699         obstack_alignment_mask, obstack_alloc, obstack_base,
104700         obstack_blank, obstack_blank_fast, obstack_chunk_size,
104701         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
104702         obstack_grow0, obstack_init, obstack_int_grow,
104703         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
104704         obstack_next_free, obstack_object_size, obstack_ptr_grow,
104705         obstack_ptr_grow_fast, obstack_room): Remove declarations of
104706         nonexistent functions.
104708 2004-05-18  Karl Berry  <karl@gnu.org>
104710         * config/srclist.txt: break link for vasnprintf.c.
104712 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104714         Port obstack to the AS/400, where pointers are 16 bytes wide and
104715         you cannot cast an integer to a valid pointer.  This patch is
104716         currently waiting to be integrated into glibc; see
104717         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
104719         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
104720         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
104721         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
104722         (struct obstack): temp member is now a union of a pointer and
104723         an integer, instead of an integer.  All integer uses changed.
104724         This does not affect the physical layout of struct obstack,
104725         except on hosts (like the AS/400) where the size or alignment of
104726         void * is greater than that of ptrdiff_t.
104727         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
104728         __STDC__)]: Store temporary in pointer member of union, not
104729         integer member.
104730         * lib/obstack.c: Include <stddef.h>, for offsetof.
104731         (struct fooalign): Remove; it doesn't need a name.
104732         (union fooround): Change double to long double, and add void *.
104733         (DEFAULT_ALIGNMENT): Use offsetof to compute.
104734         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
104735         not a macro.  Hence the values are always int; so remove all
104736         casts-to-int in uses.
104738 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104740         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
104741         we can get this patch merged into glibc.
104743 2004-05-17  Derek R. Price  <derek@ximbiot.com>
104744             Paul Eggert  <eggert@cs.ucla.edu>
104746         * m4/argp: Depend on alloca.
104748 2004-05-17  Derek R. Price  <derek@ximbiot.com>
104749             Paul Eggert  <eggert@cs.ucla.edu>
104751         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
104752         freecoding.
104754 2004-05-17  Bruno Haible  <bruno@clisp.org>
104756         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
104757         precision that consists of a '.' followed by an empty digit string.
104758         Patch by Tor Lillqvist <tml@iki.fi>.
104760 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104762         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
104763         for backward compatibility with older code.  We need our own
104764         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
104765         it under some other name, and our alloca.h will define it.
104767 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104768             Derek Price  <derek@ximbiot.com>
104770         * lib/alloca.c: Include <alloca.h>, to get our interface.
104771         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
104772         include <alloca.h> first.  Use C89 prototype for alloca; this
104773         requires including <stddef.h> for size_t.  Use extern "C" if C++.
104774         Use #elif for simplicity, since we can assume C89 now.
104775         Don't try to source the system alloca.h since it will not be found
104776         and to prevent recursively including its replacement.
104777         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
104778         * lib/regex.c: Likewise.
104780 2004-05-16  Derek Price  <derek@ximbiot.com>
104781             Paul Eggert  <eggert@cs.ucla.edu>
104783         getline cleanup.  This changes the getndelim2 API: both order of
104784         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
104785         no delimiter).
104787         * lib/getline.c: Don't include stddef.h or stdio.h, since our
104788         interface does that.
104789         (getline): Always use getdelim, so that we don't have two
104790         copies of this code.
104791         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
104792         if available.
104793         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
104794         (GETNDELIM2_MAXIMUM): New macro.
104795         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
104796         instead of the old practice of delim2==0.  All callers changed.
104797         Return -1 on overflow, instead of returning junk.
104798         Do not set *linesize unless allocation succeeds.
104799         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
104800         that we include sys/types.h.
104801         * lib/getnline.h: Likewise.
104802         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
104803         (getndelim2): Reorder arguments.
104804         * lib/getnline.c (getnline, getndelim):
104805         Don't discard the NMAX argument.
104806         (getnline): Invoke getndelim, to avoid code duplication.
104807         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
104808         of (size_t) -1 by callers of the getnline family.
104810 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104812         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
104813         Check for gettimeofday.
104814         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
104815         Check for settimeofday, stime.
104817 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104819         * lib/nanosleep.c (suspended): Change its type from int to
104820         sig_atomic_t volatile.
104821         (first_call): Make it private to rpl_nanosleep, and have it
104822         be zero initially as that's a bit faster.
104823         (my_usleep): Round up fractional times instead of truncating them,
104824         as this is the usual meaning for 'sleep'.
104826         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
104827         doesn't work.
104828         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
104829         (ENOSYS): Define if not defined.
104830         (settime): Fall back on stime if it exists and settimeofday fails.
104831         But don't bother with fallbacks if a method fails with errno == EPERM.
104833 2004-05-11  Jim Meyering  <jim@meyering.net>
104835         Prior to this change, the save_cwd caller required read access to the
104836         current directory on most systems (ones with the fchdir function).
104838         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
104839         fails, try write-only, and finally, resort to using xgetcwd.
104841 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
104843         * lib/obstack.c, obstack.h: Import changes from libc.
104845 2004-04-28  Bruno Haible  <bruno@clisp.org>
104847         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
104848         also implicitly appends .exe to executables.
104849         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
104850         accepts Windows pathnames.
104851         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
104852         Treat Cygwin like Windows, since it now accepts Windows pathnames.
104853         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
104854         Treat Cygwin like Windows, since it now accepts Windows pathnames.
104855         Reported by Derek Robert Price <derek@ximbiot.com>.
104857 2004-04-21  Karl Berry  <karl@gnu.org>
104859         * config/srclist.txt (localcharset.c): break sync.
104861 2004-04-20  Paul Eggert  <eggert@twinsun.com>
104863         * m4/host-os.m4: Add a copyright notice.
104865 2004-04-20  Jim Meyering  <jim@meyering.net>
104867         Change UTILS_ to gl_ in AC_DEFINE'd names.
104868         Change utils_- and jm_-prefixed variables, too.
104869         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
104870         UTILS_FUNC_MKDIR_TRAILING_SLASH.
104871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
104873         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
104874         Don't emit trailing blanks.
104875         Also rename jm_-prefixed variables to have gl_ prefix.
104877         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
104878         Also rename jm_-prefixed variables to have gl_ prefix.
104880         * m4/jm-macros.m4: Reflect the renamings.
104881         * m4/prereq.m4: Likewise.
104883 2004-04-20  Jim Meyering  <jim@meyering.net>
104885         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
104886         memory.
104888 2004-04-20  Jim Meyering  <jim@meyering.net>
104889             Bruno Haible  <bruno@clisp.org>
104891         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
104892         memory when realloc fails.
104894 2004-04-19  Jim Meyering  <jim@meyering.net>
104896         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
104897         now that readutmp.c may call `free (0)'.
104899 2004-04-19  Bruno Haible  <bruno@clisp.org>
104901         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
104902         * m4/inttypes_h.m4: Likewise.
104903         * m4/stdint_h.m4: Likewise.
104904         * m4/intmax_t.m4: Likewise.
104905         * m4/uintmax_t.m4: Likewise.
104907 2004-04-18  Jim Meyering  <jim@meyering.net>
104909         * m4/prereq.m4: Don't forbid jm_ prefix.
104911         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
104912         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
104913         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
104914         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
104915         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
104916         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
104917         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
104918         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
104919         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
104920         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
104921         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
104922         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
104923         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
104924         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
104925         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
104926         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
104927         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
104928         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
104929         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
104931 2004-04-18  Jim Meyering  <jim@meyering.net>
104933         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
104934         failure, don't leak memory and do call END_UTMP_ENT.
104936 2004-04-16  Jim Meyering  <jim@meyering.net>
104938         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
104939         coreutils' stat program.
104940         (gl_PREREQ): Don't require jm_PREREQ_STAT.
104942 2004-04-11  Paul Eggert  <eggert@twinsun.com>
104944         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
104945         C89.
104946         (CHAR_BIT): Remove, since we assume C89.
104947         Include <stdint.h> if available, as per current Autoconf CVS advice.
104949 2004-03-31  Jim Meyering  <jim@meyering.net>
104951         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
104952         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
104953         * m4/xalloc.m4: Likewise.
104955 2004-03-30  Paul Eggert  <eggert@twinsun.com>
104957         Merge from coreutils.
104959         * m4/inttostr.m4: New file.
104960         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
104961         Require AM_STDBOOL_H and gl_TIMESPEC instead.
104962         Require gl_CLOCK_TIME.
104963         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
104965 2004-03-30  Paul Eggert  <eggert@twinsun.com>
104967         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
104968         not bool, to be more consistent with Unix conventions.
104969         Suggested by Bruno Haible.
104971         Merge from coreutils.
104973         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
104974         * lib/umaxtostr.c: New files.
104976         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
104977         the usual <time.h> dance.
104978         (get_date): Change signature to support fractional time stamps.
104979         All callers changed.
104980         * lib/getdate.y: Include "getdate.h" first, as we can now
104981         assume C89 and don't need to worry about 'const'.
104982         Similarly, include "unlocked-io.h" near start, not in middle.
104983         Include <limits.h>.
104984         (textint.value): Use long int rather than int.
104985         (textint.digits): Use size_t rather than int.
104986         (BILLION, LOG10_BILLION): New constants.
104987         (parser_control): New member rel_ns.  Members day_ordinal,
104988         time_zone, month, day, hour, minutes, rel_year, rel_month,
104989         rel_day, rel_hour, rel_minutes, rel_seconds
104990         are now long int, not int.  Member seconds is now struct timespec,
104991         not int.  New member timespec_seen.  Members dates_seen, days_seen,
104992         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
104993         not int.
104994         (%union.intval): Now long int, not int.
104995         New member timespec.
104996         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
104997         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
104998         (spec): Now is a timespec or an item list.
104999         (timespec, items): New nonterminals.
105000         (time, rel, relunit, number, get_date):
105001         Add support for fractional seconds.
105002         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
105003         (gmtime, localtime, mktime): Remove decls; not needed with C89.
105004         (to_hour): First arg is now long int, not int.
105005         (to_year): Returns long int, not int.
105006         Don't treat year -70 like 70.
105007         (tm_diff): Returns long int, not int.
105008         (lookup_word): Use bool instead of int when appropriate.
105009         (yylex): Use size_t for count, not int.
105010         Detect overflow when parsing large integer constants.
105011         Add support for fractions.
105012         (get_date): Make pointers 'const' if possible.
105013         Use more-portable code to detect integer overflow.
105014         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
105015         Don't use ctime; it's not reliable if the year has >4 digits.
105017         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
105018         This is for compatibility with BSD.
105020         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
105021         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
105022         From coreutils' system.h.
105024         * lib/userspec.c: Don't include "posixver.h".
105025         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
105026         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
105027         compatible extension.  Simplify code by removing a boolean int
105028         that was always nonzero if a string was nonnull.
105030 2004-03-30  Jim Meyering  <jim@meyering.net>
105032         Merge from coreutils.
105034         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
105035         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
105036         on some systems one must include <grp.h> before it.
105037         Reported by Christian Krackowizer.
105039 2004-03-30  Jim Meyering  <jim@meyering.net>
105041         Merge from coreutils.
105043         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
105045         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
105046         an empty input stream.
105048         * lib/readtokens.c: Include <stdbool.h>.
105049         (readtoken): Use `size_t' rather than int/long.
105050         All callers adjusted.
105051         Use `bool' rather than `int' where appropriate.
105052         Use memset rather than an explicit loop.
105053         Use x2nrealloc rather than xrealloc.
105054         Allow the use of `\0' as a delimiter.
105055         (readtokens): Likewise.
105056         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
105058 2004-03-30  Jim Meyering  <jim@meyering.net>
105060         * m4/realloc.m4: Remove file, since now it does no more than
105061         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
105062         the `configure.ac' section of module/realloc.
105063         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
105065 2004-03-30  Bruno Haible  <bruno@clisp.org>
105067         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
105068         nonnull.
105070 2004-03-29  Paul Eggert  <eggert@twinsun.com>
105072         Merge changes to getloadavg.c from coreutils and Emacs.
105074         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
105075         Define to an expression, not to the empty string.
105076         Include cloexec.h and xalloc.h.
105077         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
105078         Use set_cloexec_flag rather than rolling our own.
105079         * lib/cloexec.c, lib/cloexec.h: New files.
105081 2004-03-29  Paul Eggert  <eggert@twinsun.com>
105083         * m4/cloexec.m4: New file.
105085 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105087         * lib/getopt.h: Sync with libc CVS.
105089 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105090             Bruno Haible  <bruno@clisp.org>
105092         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
105093         mbswidth.
105095 2004-03-18  Paul Eggert  <eggert@twinsun.com>
105096             Bruno Haible  <bruno@clisp.org>
105098         * lib/mbswidth.h: Include <wchar.h> only if
105099         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
105100         <wchar.h>.
105101         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
105103 2004-03-09  Paul Eggert  <eggert@twinsun.com>
105105         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
105106         Sync with libc CVS.
105107         * lib/getopt_int.h: New file, also synced from libc.
105109 2004-03-09  Paul Eggert  <eggert@twinsun.com>
105111         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
105112         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
105113         Bring back getopt.c, getopt.h, getopt1.c.
105115 2004-03-07  Paul Eggert  <eggert@twinsun.com>
105117         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
105118         All uses changed.  Check for sa_sigaction member; this fixes
105119         a bug first reported by Jason Andrade in
105120         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
105122 2004-03-07  Paul Eggert  <eggert@twinsun.com>
105124         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
105125         '#if' expressions.  Unlike the code it replaces, it does not
105126         depend on (defined _SC_PAGESIZE).  However, it does depend on
105127         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
105128         first reported by Jason Andrade in
105129         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
105131 2004-02-25  Simon Josefsson  <jas@extundo.com>
105133         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
105135 2004-02-25  Simon Josefsson  <jas@extundo.com>
105137         * lib/strdup.h: New file.
105138         * lib/strdup.c: Include it.
105139         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
105140         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
105142 2004-02-23  Karl Berry  <karl@gnu.org>
105144         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
105145         (from fencepost.gnu.org:/gd/gnuorg).
105147 2004-02-23  Karl Berry  <karl@gnu.org>
105149         * config/srclistvars.sh (GNUORG) [karl]: redefine.
105150         * config/srclist.txt: add maintain/standards documents.
105152 2004-02-18  Bruno Haible  <bruno@clisp.org>
105154         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
105155         Reported by Derek Robert Price <derek@ximbiot.com>.
105157 2004-02-16  Karl Berry  <karl@gnu.org>
105159         * config/mkinstalldirs, install-sh: update from automake.
105161 2004-02-06  Karl Berry  <karl@gnu.org>
105163         * m4/po.m4: update from gettext 0.14.1.
105165 2004-02-06  Karl Berry  <karl@gnu.org>
105167         * lib/config.charset: update from gettext 0.14.1.
105169 2004-02-05  Paul Eggert  <eggert@twinsun.com>
105171         Add comments and code, prompted by suggestions from Bruno Haible
105172         for sh-quote.
105173         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
105174         describing the enum quoting_style values.
105175         * lib/quotearg.c (quotearg_alloc): New function.
105176         (quotearg_buffer_restyled): Treat lone { and } as special.
105177         Treat = as special.  Work around bug with older shells
105178         that "see" a '\' that is really the 2nd byte of a multibyte char.
105179         Quote empty string with shell_quoting_style.
105181 2004-02-03  Bruno Haible  <bruno@clisp.org>
105183         * m4/pipe.m4: New file, from GNU gettext.
105185 2004-02-03  Bruno Haible  <bruno@clisp.org>
105187         * lib/pipe.h: New file, from GNU gettext.
105188         * lib/pipe.c: New file, from GNU gettext.
105190 2004-01-27  Bruno Haible  <bruno@clisp.org>
105192         * m4/execute.m4: New file, from GNU gettext.
105194 2004-01-27  Bruno Haible  <bruno@clisp.org>
105196         * lib/execute.h: New file, from GNU gettext.
105197         * lib/execute.c: New file, from GNU gettext.
105198         * lib/w32spawn.h: New file, from GNU gettext.
105200 2004-01-24  Paul Eggert  <eggert@twinsun.com>
105202         Merge from diffutils.
105204         * lib/file-type.c (file_type): Add typed memory objects.
105205         * lib/file-type.h (S_TYPEISTMO): New macro.
105207         * lib/c-stack.h (c_stack_action): Remove argv argument.
105208         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
105209         (die): Don't calculate message unless segv_action returns.
105210         (get_stack_location, min_address_from_argv, max_address_from_argv,
105211         volatile stack_base, volatile_stack_size): Remove.
105212         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
105213         that every segmentation violation is a stack overflow.  (Ouch!)
105214         See Debian bug 136249 (still outstanding) for more info about why
105215         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
105217 2004-01-24  Paul Eggert  <eggert@twinsun.com>
105219         Exit-status fix from coreutils.
105221         Use exit_failure consistently in place of EXIT_FAILURE,
105222         so that program exit statuses are consistent on failure.
105224         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
105225         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
105226         * lib/argmatch.h: Comment fix to match the above.
105227         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
105228         Now a macro referring to exit_failure, instead of a separate
105229         variable.  Include "exitfail.h" to get it.
105230         * lib/xstrtol.h: Include "exitfail.h".
105231         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
105233         * lib/long-options.c (parse_long_options): Use prototype
105234         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
105235         for clarity.
105237 2004-01-21  Jim Meyering  <jim@meyering.net>
105239         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
105240         so as not to conflict with a different-sized __mktime_internal
105241         function in GNU libc.
105242         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
105243         Problem building statically-linked `ls' reported by Michael Brunnbauer.
105245 2004-01-20  Karl Berry  <karl@gnu.org>
105247         * config/config.guess: update from config.
105249         * config/srclistvars.sh: GNUWWWLICENSES for karl.
105251 2004-01-20  Bruno Haible  <bruno@clisp.org>
105253         Safer stack allocation.
105254         * lib/setenv.c: Include allocsa.h.
105255         (alloca): Remove fallback definition.
105256         (freea): Remove macro.
105257         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
105258         instead of freea.
105260 2004-01-20  Bruno Haible  <bruno@clisp.org>
105262         * m4/eealloc.m4: New file, from GNU gettext.
105264 2004-01-20  Bruno Haible  <bruno@clisp.org>
105266         * m4/allocsa.m4: New file, from GNU gettext.
105268 2004-01-20  Bruno Haible  <bruno@clisp.org>
105270         * lib/xallocsa.h: New file, from GNU gettext.
105271         * lib/xallocsa.c: New file, from GNU gettext.
105273 2004-01-20  Bruno Haible  <bruno@clisp.org>
105275         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
105277 2004-01-20  Bruno Haible  <bruno@clisp.org>
105279         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
105280         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
105281         specially.
105283 2004-01-20  Bruno Haible  <bruno@clisp.org>
105285         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
105286         patch.
105288 2004-01-20  Bruno Haible  <bruno@clisp.org>
105290         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
105292 2004-01-20  Bruno Haible  <bruno@clisp.org>
105294         * lib/eealloc.h: New file.
105296 2004-01-20  Bruno Haible  <bruno@clisp.org>
105298         * lib/binary-io.h: Avoid warnings on Cygwin.
105300 2004-01-20  Bruno Haible  <bruno@clisp.org>
105302         * lib/allocsa.h: New file, from GNU gettext.
105303         * lib/allocsa.c: New file, from GNU gettext.
105305 2004-01-18  Karl Berry  <karl@gnu.org>
105307         * doc/gpl.texi, doc/lgpl.texi: new files.
105309 2004-01-18  Karl Berry  <karl@gnu.org>
105311         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
105312         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
105314 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105316         Merge from coreutils.
105318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
105319         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
105320         (gl_DEFAULT_POSIX2_VERSION): Move
105321         the documentation from 'configure' into 'config.hin',
105322         so that 'configure --help' isn't burdened by it and
105323         we don't have to worry about its formatting there.
105324         Reword the documentation so that it's more succinct
105325         and can be run together into a single paragraph.
105326         * m4/same.m4 (gl_SAME): Check for pathconf.
105328 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105330         Merge from coreutils.
105332         * lib/posixver.c: Include posixver.h.
105334         * lib/same.c: Include <stdbool.h>, <limits.h>.
105335         (_POSIX_NAME_MAX): Define if not defined.
105336         (MIN): New macro.
105337         (same_name): If file names are silently truncated, report
105338         that the file names are the same if they are the same after
105339         the silent truncation.
105341         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
105342         conversion function.
105343         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
105344         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
105345         longer needed.
105347 2004-01-15  Jim Meyering  <jim@meyering.net>
105349         Merge from coreutils.
105351         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
105352         if no library is required.
105353         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
105354         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
105355         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
105356         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
105357         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
105358         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
105359         value, $ac_cv_search_crypt, if it's "none required".
105360         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
105361         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
105362         not gl_FUNC_GETLOADAVG.
105363         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
105364         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
105366 2004-01-15  Jim Meyering  <jim@meyering.net>
105368         Merge from coreutils.
105370         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
105371         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
105372         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
105374         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
105375         optional configure-time default.
105377         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105379         * lib/xreadlink.c (xreadlink): Correct outdated comment.
105381 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
105383         Merge from coreutils.
105385         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
105386         value, $ac_cv_search_nanosleep, if it's "none required".
105388 2004-01-14  Paul Eggert  <eggert@twinsun.com>
105390         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
105391         with like-named macro in fnmatch.c.
105392         (EXT): Use an internal constant instead.
105394         Merge fnmatch patches from glibc.
105395         * lib/fnmatch.c (mbsinit): Remove define.
105396         Add libc_hidden_ver (__fnmatch, fnmatch).
105397         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
105398         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
105400 2004-01-14  Karl Berry  <karl@gnu.org>
105402         * config/install-sh: update from automake.
105404 2004-01-13  Karl Berry  <karl@gnu.org>
105406         * config/install-sh: update from automake.
105408 2004-01-09  Karl Berry  <karl@gnu.org>
105410         * config/install-sh: update from automake.
105412 2004-01-05  Karl Berry  <karl@gnu.org>
105414         * config/config.{sub,guess}: update from config.
105416 2003-12-31  Karl Berry  <karl@gnu.org>
105418         * config/depcomp: update from automake.
105420 2003-12-14  Karl Berry  <karl@gnu.org>
105422         * lib/config.charset: update from gettext-runtime.
105424 2003-12-03  Paul Eggert  <eggert@twinsun.com>
105426         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
105427         Bug reported by Alfred M. Szmidt.
105429 2003-12-03  Bruno Haible  <bruno@clisp.org>
105431         * m4/gettext.m4: Upgrade from gettext-0.13.
105432         * m4/po.m4: Upgrade from gettext-0.13.
105433         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
105434         * m4/intmax.m4: New file, from gettext-0.13.
105435         * m4/printf-posix.m4: New file, from gettext-0.13.
105437 2003-11-29  Karl Berry  <karl@gnu.org>
105439         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
105441 2003-11-25  Paul Eggert  <eggert@twinsun.com>
105442             Bruno Haible  <bruno@clisp.org>
105444         * lib/printf-parse.h: Don't include sys/types.h.
105445         (ARG_NONE): New macro.
105446         (char_directive): Change type of *arg_index fields to size_t.
105447         * lib/printf-parse.c: Don't include sys/types.h.
105448         (SSIZE_MAX): Remove macro.
105449         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
105450         Remove unnecessary overflow check.
105451         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
105452         fields.
105454 2003-11-25  Bruno Haible  <bruno@clisp.org>
105456         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
105458 2003-11-25  Bruno Haible  <bruno@clisp.org>
105460         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
105461         gt_TYPE_SSIZE_T.
105463 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105465         * modules/alloca: Remove dependency on xalloc.
105467 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105469         * lib/alloca.c: Remove dependency on xalloc module.
105470         (xalloc_die): Remove.
105471         (memory_full) [!defined emacs]: New macro.
105472         [!defined emacs]: Don't include xalloc.h.
105473         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
105474         address arithmetic overflows.  Change datatypes a bit to avoid
105475         unnecessary casts.
105477 2003-11-22  Jim Meyering  <jim@meyering.net>
105479         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
105480         s/size/size_t/.
105482 2003-11-21  Karl Berry  <karl@gnu.org>
105484         * config/config.{sub,guess}: update from config.
105486 2003-11-18  Karl Berry  <karl@gnu.org>
105488         * config/config.{sub,guess}: update from config.
105490         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
105492 2003-11-17  Paul Eggert  <eggert@twinsun.com>
105494         * README: Mention that S+T cannot overflow if S is the size of
105495         an existing object and T is sufficiently small.
105497 2003-11-17  Jim Meyering  <jim@meyering.net>
105499         On systems without utime and without a utimes function capable of
105500         dealing with a NULL struct utimbuf* argument, this utime replacement
105501         could -- in unusual circumstances -- leak a file descriptor.
105502         * lib/utime.c: Include <unistd.h> and <errno.h>.
105503         (utime_null): Be sure to close `fd' and to preserve errno.
105504         Reported by Geoff Collyer via Arnold Robbins.
105506 2003-11-17  Bruno Haible  <bruno@clisp.org>
105508         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
105509         (Depends-on): Add xsize.
105511 2003-11-17  Bruno Haible  <bruno@clisp.org>
105513         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
105515 2003-11-17  Bruno Haible  <bruno@clisp.org>
105517         * lib/vasnprintf.c (alloca): Remove fallback definition.
105518         (freea): Remove definition.
105519         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
105520         Reported by Paul Eggert.
105522 2003-11-16  Paul Eggert  <eggert@twinsun.com>
105523             Bruno Haible  <bruno@clisp.org>
105525         Protect against address arithmetic overflow.
105526         * lib/printf-args.h: Include stddef.h.
105527         (arguments): Change type of field 'count' to size_t.
105528         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
105529         'unsigned int' where appropriate.
105530         * lib/printf-parse.h: Include sys/types.h.
105531         (char_directive): Change type of *arg_index fields to ssize_t.
105532         (char_directives): Change type of fields 'count', max_*_length to
105533         size_t.
105534         * lib/printf-parse.c: Include sys/types.h and xsize.h.
105535         (SSIZE_MAX): Define fallback value.
105536         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
105537         instead of 'int' where appropriate. Check a_allocated, d_allocated
105538         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
105539         * lib/vasnprintf.c: Include xsize.h.
105540         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
105541         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
105542         overflow. Avoid wraparound when converting a width or precision from
105543         decimal to binary.
105545 2003-11-16  Bruno Haible  <bruno@clisp.org>
105547         Update from GNU gettext.
105548         * lib/printf-parse.c: Generalize to it can be compiled for wide
105549         strings.
105550         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
105551         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
105552         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
105553         SNPRINTF): New macros.
105554         Don't include <alloca.h> if the file is used inside libintl.
105555         (local_wcslen): New function, for Solaris 2.5.1.
105556         (VASNPRINTF): Use it instead of wcslen.
105558 2003-11-16  Bruno Haible  <bruno@clisp.org>
105560         * lib/xsize.h (xmax): New function.
105561         (xsum, xsum3, xsum4): Declare as "pure" functions.
105563 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105565         * modules/xalloc (Files): Undo latest change, since xalloc.h
105566         no longer needs SIZE_MAX or PTRDIFF_MAX.
105568 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105570         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
105571         gl_PTRDIFF_MAX.
105573 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105575         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
105576         "return", to pacify some unknown compiler.  Problem reported
105577         by Joerg Schilling.
105579 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105581         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
105582         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
105583         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
105584         heuristic is just as accurate as far as we know, and it removes a
105585         dependency on size_max.m4 and ptrdiff_max.m4.
105587 2003-11-11  Bruno Haible  <bruno@clisp.org>
105589         * modules/xsize (Files): Add m4/size_max.m4.
105590         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
105592 2003-11-11  Bruno Haible  <bruno@clisp.org>
105594         * m4/size_max.m4: New file.
105595         * m4/ptrdiff_max.m4: New file.
105596         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
105597         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
105598         (gl_XALLOC): Invoke it.
105600 2003-11-11  Bruno Haible  <bruno@clisp.org>
105602         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
105603         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
105604         defined.
105606 2003-11-10  Paul Eggert  <eggert@twinsun.com>
105608         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
105609         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
105610         rejected some allocations of exactly SIZE_MAX - 2 bytes.
105611         From Bruno Haible.
105612         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
105613         not (size_t) -1, since it's defined here.
105615 2003-11-09  Karl Berry  <karl@gnu.org>
105617         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
105619 2003-11-06  Paul Eggert  <eggert@twinsun.com>
105621         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
105622         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
105623         Reject sizes of exactly SIZE_MAX bytes.
105624         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
105625         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
105627 2003-11-05  Bruno Haible  <bruno@clisp.org>
105629         * lib/xsize.h: Include limits.h, to avoid a possible collision with
105630         SIZE_MAX defined in <limits.h> on Solaris.
105632 2003-11-04  Jim Meyering  <jim@meyering.net>
105634         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
105635         variable names, rather than @VAR@.
105636         * modules/poll: Likewise.
105638 2003-11-04  Bruno Haible  <bruno@clisp.org>
105640         * modules/xsize: New file.
105641         * modules/linebreak: Depend on xsize.
105642         * MODULES.html.sh (func_all_modules): Add xsize.
105644 2003-11-04  Bruno Haible  <bruno@clisp.org>
105646         * m4/xsize.m4: New file.
105648 2003-11-04  Bruno Haible  <bruno@clisp.org>
105650         * lib/xsize.h: New file.
105651         * lib/linebreak.c: Include xsize.h.
105652         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
105653         argument for overflow.
105654         Suggested by Paul Eggert.
105656 2003-11-03  Karl Berry  <karl@gnu.org>
105658         * config/config.{guess,sub}: update from config.
105660 2003-11-03  Jim Meyering  <jim@meyering.net>
105662         * modules/userspec (lib_SOURCES): Add userspec.h.
105663         (Include): Add "userspec.h".
105664         Improve description.
105666 2003-11-03  Jim Meyering  <jim@meyering.net>
105668         * lib/userspec.c: Include "userspec.h".
105669         * lib/userspec.h: New file.
105671 2003-11-03  Bruno Haible  <bruno@clisp.org>
105673         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
105675 2003-11-03  Bruno Haible  <bruno@clisp.org>
105677         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
105678         available, to avoid (extremely rare) race condition.
105679         Suggested by Paul Eggert.
105681 2003-11-02  Karl Berry  <karl@gnu.org>
105683         * config/srclist.txt (vasprintf.c): sync broken, sigh.
105685 2003-10-31  Paul Eggert  <eggert@twinsun.com>
105687         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
105688         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
105689         (read_filesystem_list): Set and use me_type_malloced.
105690         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
105691         whatever the type happens to be), for brevity and consistency.
105692         Check for size calculation overflow on Alphas running OSF/1.
105694 2003-10-31  Jim Meyering  <jim@meyering.net>
105696         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
105698         * lib/linebuffer.c: Include <string.h> for declaration of memset.
105700 2003-10-30  Paul Eggert  <eggert@twinsun.com>
105701             Bruno Haible  <bruno@clisp.org>
105703         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
105704         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
105706 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
105708         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
105709         netbsd*-gnu*.  Suggested by Robert Millan.
105711 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105713         * modules/group-member: Depend on stdbool.
105715 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105717         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
105719 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105721         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
105722         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
105723         after the 'gnu' in these cases.  This fixes some bugs in the
105724         previous change, and is based on suggestions by Robert Millan.
105726 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105728         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
105729         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
105730         no longer needed.
105731         * lib/quotearg.c (quotearg_n_options): Use it.
105732         * lib/group-member.c: Include <stdbool.h>.
105733         (free_group_info): Arg is now const *; don't free arg.
105734         (get_group_info): Now returns bool and accepts struct group_info *,
105735         rather than returning a malloc'ed struct group_info *.
105736         All uses changed.  Check for overflow in internal size calculation.
105738         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
105739         rather than xmalloc/xrealloc.
105740         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
105741         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
105742         conformance bug: the old code used a pointer after freeing the
105743         storage that it addressed.
105744         * lib/hash.c (hash_initialize): Simplify the code by using
105745         xalloc_oversized rather than doing it by hand.
105746         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
105747         the buffer preserved.  Use free and xmalloc instead.
105748         * lib/quotearg.c (quotearg_n_options): Likewise.
105749         Use a simpler test for size overflow.  Don't use xalloc_oversized
105750         because unsigned int might be wider than size_t (!); this suggests
105751         that we should switch from unsigned int to size_t for slot numbers.
105753 2003-10-28  Paul Eggert  <eggert@twinsun.com>
105755         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
105756         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
105757         NetBSD kernels.  Requested by Richard Stallman.
105759 2003-10-27  Paul Eggert  <eggert@twinsun.com>
105761         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
105762         to allocate the returned structure.  Do not allocate a subarray,
105763         as x2nrealloc will do that.
105764         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
105765         instead of xnrealloc.
105766         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
105768 2003-10-27  Bruno Haible  <bruno@clisp.org>
105770         * lib/stdbool_.h: Better support for BeOS.
105772 2003-10-26  Paul Eggert  <eggert@twinsun.com>
105774         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
105775         now uses inline.
105777 2003-10-26  Paul Eggert  <eggert@twinsun.com>
105779         * lib/xalloc.h (xalloc_oversized): New static inline function, for
105780         callers that want to do their own size-overflow checking.  Include
105781         <stdbool.h>, since xalloc_oversized returns bool.
105782         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
105783         to use xalloc_oversized.
105785         Add two functions x2realloc, x2nrealloc, for programs that grow
105786         arrays dynamically by doubling their sizes.
105787         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
105788         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
105789         New functions.
105791         Port to C99 semantics for 'inline' of external functions.
105792         Bug reported by Bruno Haible.
105793         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
105794         with the old contents of xnmalloc.
105795         (xnmalloc, xmalloc): Use it.
105796         (xnrealloc_inline): New static inline function,
105797         with the old contents of xnrealloc.
105798         (xnrealloc, xrealloc): Use it.
105800         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
105801         that.
105803 2003-10-26  Karl Berry  <karl@gnu.org>
105805         * config/srclist.txt (COPYING.DOC): no longer available from
105806         /gd/gnuorg; don't know where the ultimate source is.
105808 2003-10-25  Paul Eggert  <eggert@twinsun.com>
105810         Fix several address-calculation bugs in the hash modules,
105811         plus some minor code cleanup.
105813         * lib/hash.h: Include <stdbool.h>, for bool.
105814         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
105815         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
105816         hash_get_n_entries, hash_get_max_bucket_length,
105817         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
105818         hash_rehash): Use size_t rather than unsigned.
105819         * lib/hash.c (struct hash_table, hash_get_n_buckets,
105820         hash_get_n_buckets_used, hash_get_n_entries,
105821         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
105822         hash_get_entries, hash_do_for_each, hash_string, is_prime,
105823         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
105824         Likewise.
105825         (SIZE_MAX): Define if not defined.
105826         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
105827         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
105828         hash_print):
105829         Use const * when possible.
105830         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
105831         (check_tuning): Fix bug: if tuning parameters were very close to
105832         0 or 1, rounding errors could have caused subscript violations.
105833         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
105834         (hash_initialize): Add 'fail:' label
105835         to free table and return NULL, and use it to simplify code.
105836         Use calloc rather than clearing the storage ourself.
105837         (hash_initialize, hash_rehash): Check for arithmetic overflow in
105838         buffer size calculations.
105839         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
105840         Include <stddef.h>, for size_t.
105841         * lib/hash-pjw.c (hash_pjw): Likewise.
105842         Switch to method described by Bruno Haible.
105843         Include <limits.h>, for CHAR_BIT.
105844         (SIZE_BITS): New macro.
105846 2003-10-23  Paul Eggert  <eggert@twinsun.com>
105848         * m4/getline.m4 (AM_FUNC_GETLINE):
105849         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
105850         hosts.  Problem reported by Derek Robert Price in
105851         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
105852         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
105853         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
105855 2003-10-21  Paul Eggert  <eggert@twinsun.com>
105857         * lib/getndelim2.c (getndelim2): When size calculation overflows,
105858         ceiling the allocation at NMAX bytes rather than silently
105859         discarding input bytes before NMAX is reached.  This makes
105860         a difference only if NMAX exceeds SIZE_MAX / 2.
105862         * lib/obstack.c: Merge from glibc.
105863         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
105864         Add libc_hidden_def (_obstack_newchunk).
105865         (_obstack_free) [! defined _LIBC]: Remove.
105866         [defined _LIBC]: Make a strong alias from obstack_free, rather than
105867         a clone of the function body.
105868         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
105869         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
105871         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
105872         glibc.
105873         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
105874         arg to memcpy.
105876         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
105877         (obstack_ptr_grow_fast, obstack_int_grow_fast):
105878         Don't use lvalue casts, as GCC plans to remove support for them
105879         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
105880         was also present in the non-GCC version, indicating that this
105881         code had always been buggy and had never been widely used.
105882         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
105883         Use the fast variant of each macro, rather than copying the
105884         definiens of the fast variant; that way, we'll be more likely to
105885         catch future bugs in the fast variants.
105887 2003-10-20  Bruno Haible  <bruno@clisp.org>
105889         * modules/wait-process: New file.
105890         * MODULES.html.sh (func_all_modules): Add wait-process.
105892 2003-10-20  Bruno Haible  <bruno@clisp.org>
105894         * m4/wait-process.m4: New file.
105896 2003-10-20  Bruno Haible  <bruno@clisp.org>
105898         * lib/wait-process.h: New file, from GNU gettext.
105899         * lib/wait-process.c: New file, from GNU gettext.
105901 2003-10-19  Jim Meyering  <jim@meyering.net>
105903         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
105904         HPUX 10.20.
105906 2003-10-18  Karl Berry  <karl@gnu.org>
105908         * config/config.guess: update from config.
105910 2003-10-16  Paul Eggert  <eggert@twinsun.com>
105912         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
105913         (getgroups): First arg is int, not size_t.
105914         Don't let 'free' mangle errno.
105916 2003-10-16  Paul Eggert  <eggert@twinsun.com>
105918         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
105920 2003-10-16  Karl Berry  <karl@gnu.org>
105922         * config/config.{guess,sub}: update from config.
105924 2003-10-16  Jim Meyering  <jim@meyering.net>
105926         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
105927         memcpy.
105929 2003-10-15  Paul Eggert  <eggert@twinsun.com>
105931         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
105932         (SIZE_MAX): Remove.
105933         (new_exclude, add_exclude_file): Initial size no longer needs to
105934         be a power of 2.
105935         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
105936         our own address arithmetic overflow checking.
105938         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
105939         (fnmatch): Do not alloca more than 2000 wide characters;
105940         instead, use malloc for large buffers.
105941         Check for address arithmetic overflow, and return -1
105942         with errno set to ENOMEM in that case.
105943         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
105944         (NEW_PATTERN): Do not alloca more than 8000 bytes;
105945         instead, return -1.  Check for address arithmetic overflow.
105947 2003-10-14  Paul Eggert  <eggert@twinsun.com>
105949         Handle invalid suffixes and overflow independently, so that
105950         callers can treat them independently as needed.  Fix some bugs in
105951         suffix handling, e.g., "100k@" was not diagnosed as an invalid
105952         suffix for a human-readable blocksize.  The major caller-visible
105953         change is the addition of a new
105954         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
105955         that both overflow and suffix chars were found.
105957         * lib/human.c (humblock): Don't check separately for invalid suffix
105958         char; that is xstrtoumax's job (now that its bug is fixed).
105959         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
105960         INTMAX_MAX]: New macros.
105961         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
105962         TYPE_MAXIMUM): New macros.
105963         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
105964         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
105965         if overflow occurs, as it's what __strtol does and it's more useful
105966         in practice.
105967         (__xstrtol): If __strtol reports some error other than ERANGE,
105968         reflect it to the caller as LONGINT_INVALID.  If it reports
105969         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
105970         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
105971         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
105972         value.
105973         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
105974         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
105975         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
105976         [defined UINTMAX_MAX]: New macros.
105978 2003-10-14  Bruno Haible  <bruno@clisp.org>
105980         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
105982 2003-10-14  Bruno Haible  <bruno@clisp.org>
105984         * m4/sig_atomic_t: New file, from GNU gettext.
105985         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
105987 2003-10-14  Bruno Haible  <bruno@clisp.org>
105989         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
105990         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
105991         Also use volatile where needed.
105993 2003-10-12  Paul Eggert  <eggert@twinsun.com>
105995         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
105996         Change maintainer from Bruno Haible to 'all'.
105998 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106000         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
106002 2003-10-12  Paul Eggert  <eggert@twinsun.com>
106004         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
106005         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
106006         and define in terms of the other primitives.
106007         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
106008         (SIZE_MAX): Define if not already defined.
106009         (array_size_overflow): New function.
106010         (xalloc_die): Abort instead of exiting if 'error' returns.
106011         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
106012         (xmalloc, xrealloc): Use them.
106013         (xcalloc): Check for address arithmetic overflow.
106014         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
106015         a bit faster than strcpy.
106017 2003-10-10  Simon Josefsson  <jas@extundo.com>
106019         * modules/argp (Depends-on): Add restrict and strcase.
106021 2003-10-10  Simon Josefsson  <jas@extundo.com>
106023         * m4/argp.m4: Add AC_C_INLINE.
106025 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106027         Merge getpass from libc, plus a few fixes.
106029         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
106030         Include <stdbool.h>.
106031         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
106032         __fsetlocking to empty.
106033         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
106034         do include <bits/libc-lock.h>.
106035         Do not include <fcntl.h>; not needed.
106036         [_LIBC]: Include <wchar.h>.
106037         (NOTCANCEL_MODE): New macro.
106038         (flockfile, funlockfile) [_LIBC]: New macros.
106039         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
106040         [!_LIBC]: New macros.
106041         (call_fclose): New function.
106042         (getpass): Use it.  Save tty stream separately; this simplifies the
106043         code and makes it more reliable if stdin happens to equal stdout.
106044         Invoke __fsetlocking on tty.
106045         Handle thread cancellation if needed.
106046         Namespace cleanup (use __tcgetattr, __getline).
106047         Use bool for Booleans.
106048         [USE_IN_LIBIO]: Handle wide streams.
106049         [!_LIBC]: Unconditionally do the fseek, since we don't know what
106050         stream might go where.
106052         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
106053         doesn't have to include <stdio.h> before us.
106054         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
106055         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
106056         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
106057         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
106058         if not declared, so that we can use getpass.c code from libc without
106059         rewriting it.
106060         (flockfile, ftrylockfile, funlockfile): New macros.
106062 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106064         * modules/getpass: Depend on stdbool.
106066 2003-10-08  Paul Eggert  <eggert@twinsun.com>
106068         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
106070 2003-10-07  Karl Berry  <karl@gnu.org>
106072         * config/config.{guess,sub}: update from config.
106074 2003-10-06  Jim Meyering  <jim@meyering.net>
106075             Bruno Haible  <bruno@clisp.org>
106077         This lets translators provide better translations for the
106078         "Written by ..." part of --version output.
106079         * lib/version-etc.h: Include stdarg.h.
106080         (version_etc_copyright): Declare as readonly.
106081         (version_etc): Make this function variadic with a NULL-terminated list
106082         of author name strings.
106083         (version_etc_va): New declaration.
106084         * lib/version-etc.c: Include stdarg.h, stdlib.h.
106085         (version_etc_copyright): Declare as readonly.
106086         (version_etc_va): New function. Provide a different translatable string
106087         for each possible number of authors < 10. Abbreviate when there are 10
106088         authors or more.
106089         (version_etc): Make this function variadic. Call version_etc_va.
106090         Suggestion from Gary V. Vaughan.
106092         * lib/long-options.h (parse_long_options): Change prototype: the
106093         authors string is moved to the end and becomes variadic.
106094         * lib/long-options.c: Include stdarg.h.
106095         (parse_long_options): Make this function variadic, too.
106096         Call version_etc_va, not version_etc.
106098 2003-10-06  Bruno Haible  <bruno@clisp.org>
106100         * modules/version-etc-2: Remove file.
106101         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
106103 2003-10-06  Bruno Haible  <bruno@clisp.org>
106105         * modules/fatal-signal: New file.
106106         * MODULES.html.sh (func_all_modules): Add fatal-signal.
106108 2003-10-06  Bruno Haible  <bruno@clisp.org>
106110         * m4/fatal-signal.m4: New file.
106111         * m4/signalblocking.m4: New file, from GNU gettext.
106113 2003-10-06  Bruno Haible  <bruno@clisp.org>
106115         * lib/version-etc-2.h: Remove file.
106116         * lib/version-etc-2.c: Remove file.
106118 2003-10-06  Bruno Haible  <bruno@clisp.org>
106120         * lib/fatal-signal.h: New file, from GNU gettext.
106121         * lib/fatal-signal.c: New file, from GNU gettext.
106123 2003-10-05  Paul Eggert  <eggert@twinsun.com>
106125         * README: Rework advice for preventing empty .o files.
106126         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
106127         not <sys/types.h>.
106129 2003-10-04  Karl Berry  <karl@gnu.org>
106131         * lib/argp*: update from libc.
106133 2003-10-04  Karl Berry  <karl@gnu.org>
106135         * config/config.{guess,sub}: update from config.
106137 2003-10-02  Bruno Haible  <bruno@clisp.org>
106139         * modules/lchown (Include): Add lchown.h.
106140         * modules/time_r (Include): Use "..." syntax.
106141         * modules/xgetdomainname (Include): Add xgetdomainname.h.
106143 2003-10-01  Simon Josefsson  <jas@extundo.com>
106145         * MODULES.html.sh (func_all_modules): Move gethostname from section
106146         'based on' to section 'lacking' POSIX:2001.
106148 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
106150         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
106151         to output mode on the same stream.
106153 2003-09-29  Paul Eggert  <eggert@twinsun.com>
106155         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
106156         Fix arg typo in previous patch.
106158 2003-09-28  Jim Meyering  <jim@meyering.net>
106160         * lib/error.c: Correct cpp indentation.
106162 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106164         * modules/free: New file.
106166 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106168         * m4/free.m4: New file.
106170 2003-09-27  Paul Eggert  <eggert@twinsun.com>
106172         * lib/minmax.h (MIN, MAX)
106173         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
106174         Omit the special code that used __typeof__, since we worry that
106175         it could be more trouble than it's worth.  See:
106176         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
106177         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
106179         * lib/free.c: New file.
106181 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
106183         Trivial fixes to Makefile.am parts of module listings.
106184         * modules/strstr: Append strstr.h to lib_SOURCES.
106185         * modules/strcase: Likewise, for strcase.h.
106187 2003-09-27  Karl Berry  <karl@gnu.org>
106189         * config/mkinstalldirs: update from automake.
106191 2003-09-26  Paul Eggert  <eggert@twinsun.com>
106193         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
106194         (error_tail): Do not loop, reallocating temporary buffer, since
106195         the output cannot contain more wide characters than the input
106196         contains bytes, the size must be big enough already.  This avoids
106197         one potential size overflow calculation.  Check for size overflow
106198         when calculating temporary buffer size.  Free temporary buffer
106199         when done, if it was allocated with malloc; this plugs a memory
106200         leak.  Remove casts from void * to pointers, that are no longer
106201         needed now that we're assuming C89 or better.
106203         Merge error changes from glibc.
106205         * lib/error.c, error.h: Update copyright notice header to match glibc.
106206         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
106207         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
106208         Disable cancellation while printing error.
106209         * lib/error.h: Prepend __ to parameter names.
106211 2003-09-26  Jim Meyering  <jim@meyering.net>
106213         * lib/error.c (error_tail): Move some declarations
106214         into inner scope where the local variables are used.
106216 2003-09-26  Bruno Haible  <bruno@clisp.org>
106218         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
106219         stpncpy().
106220         Don't define stpncpy through config.h; it's now done through stpncpy.h.
106222 2003-09-26  Bruno Haible  <bruno@clisp.org>
106224         * lib/stpncpy.h (gnu_stpncpy): New declaration.
106225         (stpncpy): Define as alias for gnu_stpncpy.
106226         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
106228 2003-09-25  Simon Josefsson  <jas@extundo.com>
106230         * lib/xgetdomainname.h: New file.
106231         * lib/xgetdomainname.c: New file.
106233 2003-09-25  Simon Josefsson  <jas@extundo.com>
106234             Bruno Haible  <bruno@clisp.org>
106236         * modules/getdomainname: New file.
106237         * modules/xgetdomainname: New file.
106238         * MODULES.html.sh (func_all_modules): Add getdomainname,
106239         xgetdomainname.
106241 2003-09-25  Simon Josefsson  <jas@extundo.com>
106242             Bruno Haible  <bruno@clisp.org>
106244         * m4/getdomainname.m4: New file.
106246 2003-09-25  Simon Josefsson  <jas@extundo.com>
106247             Bruno Haible  <bruno@clisp.org>
106249         * lib/getdomainname.h: New file.
106250         * lib/getdomainname.c: New file.
106252 2003-09-25  Karl Berry  <karl@gnu.org>
106254         * lib/argp-fmtstream.c, argp-help.c: update from libc.
106256 2003-09-25  Karl Berry  <karl@gnu.org>
106258         * config/install-sh: update from automake.
106260 2003-09-25  Bruno Haible  <bruno@clisp.org>
106262         * modules/version-etc-2: New file, from modules/version-etc with
106263         modifications.
106264         * MODULES.html.sh (func_all_modules): Add version-etc-2.
106266 2003-09-25  Bruno Haible  <bruno@clisp.org>
106268         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
106269         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
106271 2003-09-24  Simon Josefsson  <jas@extundo.com>
106273         * modules/xgethostname: Add xgethostname.h.
106275 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106277         * lib/linebuffer.c (freebuffer): Don't free the argument, just
106278         the buffer associated with the argument.  Bug reported by
106279         Simon Josefsson.
106281 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106283         * README: Document assumptions that 'int' is at least 32 bits
106284         wide, that integer arithmetic is 2's complement without overflow,
106285         that there are no holes in integer values, that adding sizes of
106286         two nonoverlapping objects can't overflow, and that all-bits-zero
106287         yields scalar zero.  Fix spelling and capitalization typos.
106289 2003-09-19  Karl Berry  <karl@gnu.org>
106291         * lib/argp.h: update from libc.
106293 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106295         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
106296         to avoid spurious warnings like "AC_RUN_IFELSE was called before
106297         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
106299 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106301         * gnulib-tool: Use "test -h", not "test -L", for portability
106302         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
106303         (tags_regexp): Remove, since \| doesn't conform to POSIX.
106304         (sed_extract_prog): Issue s commands one-by-one, rather than
106305         using \| in one s command.
106307 2003-09-16  Paul Eggert  <eggert@twinsun.com>
106309         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
106310         input error, instead of returning NULL the next time we are called
106311         (and therefore losing track of errno).
106313 2003-09-16  Bruno Haible  <bruno@clisp.org>
106315         * gnulib-tool (func_create_testdir): Warn about duplicated
106316         dependencies.
106318 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106320         * modules/argmatch, modules/fatal, modules/obstack,
106321         modules/xalloc, modules/xgethostname: Sort dependencies by
106322         importance, not alphabetically.
106324 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106326         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
106327         fails, so that the caller gets the proper errno.
106329         * lib/readutmp.c (read_utmp): Likewise.
106330         Check for fstat error.  Close stream and free storage
106331         when failing.
106333 2003-09-14  Karl Berry  <karl@gnu.org>
106335         * config/srclist.txt (strdup.c): disable for c89 changes.
106337 2003-09-14  Jim Meyering  <jim@meyering.net>
106339         * lib/getloadavg.c: Correct cpp indentation.
106340         * lib/strdup.c: Likewise.
106341         * lib/vasnprintf.c: Likewise.
106343 2003-09-14  Bruno Haible  <bruno@clisp.org>
106345         * modules/fwriteerror: New file.
106346         * MODULES.html.sh (func_all_modules): Add fwriteerror.
106348 2003-09-14  Bruno Haible  <bruno@clisp.org>
106350         * lib/fwriteerror.h: New file.
106351         * lib/fwriteerror.c: New file.
106353 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106355         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
106356         modules/xgethostname, modules/xalloc: Depend on exit.
106358 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106360         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
106362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
106363         and AC_MINIX, too, so that their extensions are available.
106365         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
106366         This macro has been superseded by gl_BACKUPFILE.
106368         More patches to assume C89 or better.
106370         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
106372         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
106373         unconditionally.
106374         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
106375         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
106376         Include <string.h>, <stdlib.h> unconditionally.
106377         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
106378         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
106379         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
106380         headers or for string.h.
106381         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
106382         or strtoul.
106384         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
106385         headers.
106386         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
106387         * m4/userspec.m4 (gl_USERSPEC): Likewise.
106388         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
106389         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
106390         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
106391         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
106392         memcpy, memset.
106393         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
106394         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
106395         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
106396         strtol.
106397         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
106398         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
106399         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
106400         strtoul.
106402 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106404         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
106405         * lib/obstack.c [!defined _LIBC]: Likewise.
106406         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
106407         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
106408         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
106410         More changes to assume C89 or better.
106412         * lib/error.c (error_tail): Assume vprintf.
106414         * lib/argmatch.c (getenv): Remove decl.
106415         * lib/progreloc.c (get_full_program_name): Define via prototype.
106416         * lib/setenv.c (clearenv): Likewise.
106417         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
106418         needed.
106419         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
106420         (malloc, memcpy): Remove decls.
106421         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
106422         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
106423         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106424         (memcpy): Remove macro.
106425         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
106426         (__P): Remove.  All uses removed.
106427         (PTR): Remove.  All uses changed to void *.
106428         (CHAR_BIT, NULL): Remove.
106429         (spaces, zeros, memset_space, memset_zero)
106430         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
106431         Remove.
106432         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
106433         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
106434         Define with prototype.
106435         Remove now-unnecessary prototype decl.
106436         (extra_args_spec): Assume ANSI C.  All uses changed.
106437         (extra_args_spec_iso): Remove.
106438         (my_strftime, emacs_strftimeu): Define via prototype.
106439         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
106440         unconditionally.
106441         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
106442         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
106443         (strtoul, strtol): Remove decls.
106444         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
106445         LONG_MAX): Remove.
106446         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106447         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
106448         (LOCALE_PARAM_PROTO): New macro.
106449         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
106450         (INTERNAL (strtol), strtol): Define with a prototype.
106451         (PARAMS): Remove.  All uses removed.
106452         * lib/tempname.c: Include <string.h> unconditionally.
106453         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
106454         * lib/xgethostname.c (main): Define with a prototype.
106455         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
106456         Include <stdlib.h> unconditionally.
106457         (calloc, malloc, realloc, free): Remove decls.
106458         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
106459         Include <stdlib.h> unconditionally.  Sort include file names.
106460         (strtod): Remove.
106461         (xstrtod): Define with a prototype.
106462         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
106463         (strtol, strtoul): Remove decls.
106465 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106467         More patches to assume C89 or better.
106468         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
106469         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
106470         string.h, memchr, STDC_HEADERS.
106472 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106474         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
106475         Include <stdlib.h>, <string.h> unconditionally.
106476         Remove now-unnecessary cast to char *.
106477         * lib/strnlen.c: Include <string.h> unconditionally.
106478         * lib/yesno.c (yesno): Define with a prototype.
106480 2003-09-11  Bruno Haible  <bruno@clisp.org>
106482         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
106484 2003-09-10  Jim Meyering  <jim@meyering.net>
106486         * lib/error.c: Correct indentation of cpp directives.
106488 2003-09-10  Bruno Haible  <bruno@clisp.org>
106490         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
106491         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
106492         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
106493         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
106494         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
106495         <stdlib.h> and <string.h> checks.
106496         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
106497         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
106499 2003-09-10  Bruno Haible  <bruno@clisp.org>
106501         * lib/strcspn.c: Include <string.h> unconditionally.
106502         * lib/strpbrk.c: Include <string.h> unconditionally.
106503         * lib/strstr.c: Include <string.h> unconditionally.
106504         * lib/unicodeio.c: Include <string.h> unconditionally.
106505         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
106506         * lib/unsetenv.c: Likewise.
106507         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
106508         * lib/yesno.c: Include <stdlib.h> unconditionally.
106509         (rpmatch): Add prototype.
106511 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106513         More patches to assume C89 or better.
106514         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
106515         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
106516         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
106517         or for string.h.
106518         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
106519         stdlib.h.
106520         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
106521         C headers.
106522         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
106523         string.h.
106524         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
106525         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
106526         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
106527         or for string.h.
106528         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
106529         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
106530         C headers.
106531         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
106532         memcpy.
106533         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
106534         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
106535         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
106536         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
106537         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
106538         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
106539         string.h, free.
106540         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
106541         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
106542         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
106543         C headers, or for string.h.
106544         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
106545         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
106546         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
106547         headers, memory.h, stdlib.h, string.h, strings.h.
106548         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
106549         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
106550         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
106551         strchr.
106552         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
106553         headers, memory.h, string.h.
106554         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
106555         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
106556         free.
106557         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
106558         headers.
106559         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
106560         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
106561         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
106562         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
106563         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
106565 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106567         More K&R removal.
106569         * lib/acosl.c (main): Use a prototype.
106570         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
106571         tanl.c: Likewise.
106573         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
106575         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
106576         (getopt, etopt_long, getopt_long_only, _getopt_internal)
106577         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
106578         with a prototype.
106579         * lib/getopt.c (const): Remove macro.
106580         Include <string.h> unconditionally.
106581         (my_index): Remove; all uses changed to strchr.
106582         (strlen): Remove decl.
106583         (exchange): Remove forward decl; no longer needed.
106584         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
106585         Define with prototype.
106586         * lib/getopt1.c (const): Remove macro.
106587         (getopt_long, getopt_long_only, main): Define with prototype.
106589         * lib/getugroups.c: Include <string.h> unconditionally.
106591         * lib/getusershell.c: Include <stdlib.h> unconditionally.
106592         (getusershell, setusershell, endusershell, readname, main):
106593         Define with prototypes.
106595         * lib/group-member.c: Include group-member.h first.
106596         Include <stdlib.h> unconditionally.
106598         * lib/hard-locale.c: Include hard-locale.h first.
106599         Include <stdlib.h>, <string.h> unconditionally.
106601         * lib/hash.c (free, malloc): Remove decls.
106602         Include <stdlib.h> unconditionally.
106604         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
106605         (getenv): Do not declare.
106607         * lib/idcache.c: Include <string.h> unconditionally.
106609         * lib/long-options.c: Include long-options.h first, to test interface.
106610         Include <stdlib.h> unconditionally.
106612         * lib/makepath.c: Include makepath.h first, to test interface.
106613         Include <stdlib.h> and <string.h> unconditionally.
106615         * lib/linebuffer.c: Include <stdlib.h>.
106616         (free): Remove decl.
106618         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
106619         stddef.h. rpl_malloc returns void *, not char *.
106620         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
106621         prototype.
106623         * lib/md5.h: Include <limits.h> unconditionally.
106624         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
106625         (__P): Remove; all uses removed.
106626         * lib/md5.c: Include "md5.h" first.
106627         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
106628         md5_buffer, md5_process_bytes, md5_process_block):
106629         Define with prototypes.
106630         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
106631         * lib/sha.c: Include "sha.h" first.
106632         Include <stdlib.h>, <string.h> unconditionally.
106634         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
106635         * lib/memcmp.c (__ptr_t): Likewise.
106636         * lib/memrchr.c (__ptr_t): Likewise.
106637         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
106638         Include <string.h> unconditionally.
106639         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
106640         * lib/memchr.c: Include <stdlib.h> unconditionally.
106641         * lib/memchr.c (LONG_MAX): Remove.
106642         * lib/memrchr.c (LONG_MAX): Likewise.
106643         * lib/memchr.c (__memchr): Define via a prototype.
106644         * lib/memrchr.c (__memrchr): Likewise.
106645         * lib/memcmp.c (__P): Remove, and remove all uses.
106646         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
106647         Remove forward decls; no longer needed.
106648         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
106649         Use types required by C89 in prototype.
106651         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
106652         * lib/savedir.c: Likewise.
106653         * lib/mkdir.c (free): Remove decl.
106654         * lib/rmdir.c (rmdir): Define with a prototype.
106655         * lib/savedir.c: Include savedir.h first, to test interface.
106657         * lib/mktime.c (STDC_HEADERS): Remove.
106658         Include <stdlib.h>, <string.h> unconditionally.
106660         * lib/modechange.c: Include <stdlib.h> unconditionally.
106661         (malloc): Remove decl.
106663         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
106664         (free): Remove decl.
106666         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
106667         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
106668         (This type really should be intptr_t, but that's a C99ism.)
106669         (_obstack_memcpy): Remove: all uses changed to memcpy.
106670         Include <string.h> unconditionally.
106671         (struct obstack): Assume __STDC__ for types of members
106672         chunkfun, freefun, extra_arg.
106673         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
106674         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
106675         obstack_begin, obstack_specify_allocation,
106676         obstack_specify_allocation_with_arg, obstack_chunkfun,
106677         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
106678         Remove unprototyped decls and the macros that use them.
106679         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
106680         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
106681         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
106682         (defined __STDC__ && __STDC__)]:
106683         Remove nonprototyped code.
106684         Include <stdlib.h> unconditionally.
106685         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
106686         _obstack_allocated_p, _obstack_free, obstack_free,
106687         _obstack_memory_used, print_and_abort):
106688         Define using prototypes.
106689         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
106690         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
106691         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
106692         obstack_next_free, obstack_object_size, obstack_room) [0]:
106693         Remove unused, unprototyped code.
106695         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
106697         * lib/physmem.c (physmem_total, physmem_available, main): Define
106698         with prototypes.
106700         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
106701         (main): Define with a prototype.
106703         * lib/posixver.c (getenv): Remove decl.
106705         * lib/putenv.c (malloc): Returns void *, not char *.
106706         Include <string.h> unconditionally.
106707         (strchr, memcpy, NULL): Do not define.
106709         * lib/readtokens.c: Include readtokens.h first, to test interface.
106710         Include <stdlib.h>, <string.h> unconditionally.
106711         (init_tokenbuffer): Define with a prototype.
106713         * lib/regex.c (PARAMS): Remove.  All uses removed.
106714         All uses of _RE_ARGS removed, too.
106715         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
106716         unconditionally.
106717         (bzero): Assume memset exists.
106718         (memcmp, memcpy, NULL): Remove.
106719         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
106720         char, or assignments to local vars of type signed char.
106721         (init_syntax_once, PREFIX(extract_number_and_incr),
106722         PREFIX(print_partial_compiled_pattern),
106723         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
106724         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
106725         PREFIX(regex_grow_registers), PREFIX(regex_compile),
106726         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
106727         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
106728         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
106729         wcs_compile_range, byte_compile_range, truncate_wchar,
106730         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
106731         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
106732         count_mbs_length, wcs_re_match_2_internal,
106733         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
106734         PREFIX(alt_match_null_string_p),
106735         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
106736         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
106737         regfree, PREFIX(extract_number)): Define with prototype.  Remove
106738         now-unnecessary declaration, if any.
106739         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
106740         regcomp, regexec):
106741         Remove now-unnecessary casts among pointer types.
106742         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
106744         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
106745         (free): Remove decl.
106747         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
106749         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
106750         (free): Remove decl.
106752         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
106753         * lib/xgetcwd.c: Likewise.
106755         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
106756         (free): Remove decl.
106758         * lib/strchrnul.c (strchrnul): Define with a prototype.
106759         Fix bug: c_in was not converted to char before searching.
106761         The following changes are not K&R related:
106763         * lib/group-member.h: Include <sys/types.h>, so that this file is
106764         self-contained.
106765         * lib/makepath.h: Likewise.
106767         * lib/getusershell.c (readname, default_index, line_size, readname):
106768         Use size_t, not int, for sizes.
106769         (readname): If the size overflows, report an error instead of
106770         looping forever.
106772 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106774         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
106775         libc.
106777 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106779         * README: New section: portability guidelines.
106781 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
106783         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
106784         C89 spec.
106786 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
106788         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
106790 2003-09-08  Paul Eggert  <eggert@twinsun.com>
106792         Assume C89 or better; remove K&R cruft.
106793         A few of these changes were first proposed by Derek Robert Price
106794         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
106796         * lib/addext.c: Include <string.h> unconditionally.
106797         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
106798         Don't declare getenv or malloc.
106800         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
106801         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
106802         (NULL): Remove.
106803         (find_stack_direction, alloca): Use prototypes.
106805         * lib/atexit.c (atexit): Define using a prototype.
106807         * lib/basename.c, dirname.c, stripslash.c:
106808         Include <string.h> unconditionally.
106810         * lib/bcopy.c: Include <stddef.h>.
106811         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
106813         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
106815         * lib/error.h (error, error_at_line, error_print_progname)
106816         [! (defined (__STDC__) && __STDC__)]: Remove decls.
106817         * lib/error.c: Include error.h first, to check interface.
106818         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
106819         (VA_START): Remove; all uses changeed to va_start.
106820         (exit, strerror): Remove decls.
106821         (error_print_progname): Prototype uncondionally.
106822         Don't include <errno.h>; no longer needed.
106823         (private_strerror): Remove.
106824         (error_tail): Always define.
106825         (error, error_at_line): Assume C89 or better; always use prototypes.
106826         * lib/fatal.c: Include "fatal.h" first, to test interface.
106827         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
106828         (VA_START): Remove; all uses changed to va_start.
106829         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
106830         this case.
106831         (exit): Remove decl.
106832         (fatal): Prototype unconditionally.  Assume va_start works.
106833         Abort at end, to pacify gcc.
106835         * lib/euidaccess.c (main): Define with a prototype.
106837         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
106839         * lib/exitfail.c: Include <stdlib.h> unconditionally.
106841         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
106842         prototypes.
106843         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
106844         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
106845         (getenv): Remove decl.
106846         (fnmatch): Define using a prototype.
106847         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
106848         (FCT): Define using a prototype.
106850         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
106852         * lib/gethostname.c: Include <stddef.h>.
106853         (gethostname): Define with prototype.  Length is size_t, not int.
106855 2003-09-08  Paul Eggert  <eggert@twinsun.com>
106857         Assume C89 or better; remove K&R cruft.
106858         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
106859         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
106860         string.h, getenv, malloc.
106861         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
106862         headers.
106863         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
106864         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
106865         do not check for strerror.
106866         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
106867         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
106868         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
106869         do not check for doprnt or vprintf.
106870         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
106871         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
106873 2003-09-08  Paul Eggert  <eggert@twinsun.com>
106875         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
106876         getversion.c should have been removed then, but was accidentally
106877         preserved.
106879         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
106880         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
106882 2003-09-08  Karl Berry  <karl@gnu.org>
106884         * config/config.sub, config.guess, srclistvars.sh: update from savannah
106885                 config, forget about prep.
106887         * config/depcomp, missing: update from automake.
106889 2003-09-07  Paul Eggert  <eggert@twinsun.com>
106891         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
106892         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
106894 2003-09-07  Paul Eggert  <eggert@twinsun.com>
106896         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
106897         copy_tm_result.  Bug reported by Simon Josefsson in
106898         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
106900 2003-09-06  Paul Eggert  <eggert@twinsun.com>
106902         * m4/time_r.m4: New file.
106903         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
106904         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
106905         is. Check for timegm declaration.
106906         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
106907         Do not check for gmtime_r.
106908         Replace mktime if __mktime_internal does not exist and if mktime
106909         hasn't been replaced already.
106911 2003-09-06  Paul Eggert  <eggert@twinsun.com>
106913         * lib/time_r.c, lib/time_r.h: New files.
106915         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
106916         __localtime_r.
106917         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
106918         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
106920         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
106921         __gmtime_r.
106922         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
106923         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
106924         Include <time_r.h>.
106926         * lib/timegm.c: Switch to glibc implementation, with the following
106927         changes:
106928         [defined HAVE_CONFIG_H]: Include <config.h>.
106929         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
106930         (__mktime_internal) [!defined _LIBC]: New decl.
106931         (__gmtime_r) [!defined _LIBC]: New macro and function.
106932         (timegm): Use a prototype, since gnulib assumes C89.
106933         Do not bother declaring tmp to be const, as it's not really usefu.
106934         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
106935         (timegm): Declare only if HAVE_DECL_TIMEGM.
106937 2003-09-06  Paul Eggert  <eggert@twinsun.com>
106939         * MODULES.html.sh (func_all_modules): Add time_r.
106940         * modules/time_r: New file.
106941         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
106942         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
106944 2003-09-03  Paul Eggert  <eggert@twinsun.com>
106946         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
106947         Bug reported by Lute Kamstra in
106948         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
106950         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
106951         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
106952         course with correspondingly smaller numbers for tomorrow and
106953         yesterday.  From Tadayoshi Funaba.  Originally installed into
106954         sh-utils on 1999-08-07, but the patch got lost (I guess during the
106955         coreutils merge?).
106957 2003-08-31  Simon Josefsson  <jas@extundo.com>
106959         * modules/timegm: New file.
106960         * MODULES.html.sh (func_all_modules): Add timegm.
106962 2003-08-31  Simon Josefsson  <jas@extundo.com>
106964         * m4/timegm.m4: New file.
106966 2003-08-31  Simon Josefsson  <jas@extundo.com>
106968         * lib/timegm.h: New file.
106969         * lib/timegm.c: New file.  Based on
106970         wget-1.8.2/src/http.c:mktime_from_utc.
106972 2003-08-31  Karl Berry  <karl@gnu.org>
106974         * lib/argp.h: update from libc.
106976 2003-08-28  Bruno Haible  <bruno@clisp.org>
106978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
106979         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
106980         followed by '#define fnmatch fnmatch_posix' gives an error.
106982 2003-08-28  Bruno Haible  <bruno@clisp.org>
106984         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
106985         warning on QNX, which defines O_BINARY to 000000.
106987 2003-08-27  Jim Meyering  <jim@meyering.net>
106989         * m4/mkstemp.m4: Require that the system mkstemp be able to create
106990         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
106991         would fail after 32.  Reported by Danny Levinson.  Details here:
106992         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
106994 2003-08-24  Bruno Haible  <bruno@clisp.org>
106996         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
106997         MSVC7 <stdio.h> is included later.
106999 2003-08-22  Simon Josefsson  <jas@extundo.com>
107001         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
107003 2003-08-20  Karl Berry  <karl@gnu.org>
107005         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
107007 2003-08-20  Bruno Haible  <bruno@clisp.org>
107009         * modules/progname: New file.
107010         * MODULES.html.sh (func_all_modules): Add progname.
107012 2003-08-20  Bruno Haible  <bruno@clisp.org>
107014         * lib/progname.h: New file, from GNU gettext.
107015         * lib/progname.c: New file, from GNU gettext.
107016         * lib/progreloc.c: New file, from GNU gettext.
107018 2003-08-19  Jim Meyering  <jim@meyering.net>
107020         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
107021         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
107023 2003-08-19  Bruno Haible  <bruno@clisp.org>
107025         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
107026         more.
107028 2003-08-19  Bruno Haible  <bruno@clisp.org>
107030         * lib/xstrdup.c: Assume <string.h> exists.
107032 2003-08-18  Paul Eggert  <eggert@twinsun.com>
107034         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
107035         in makefile rules.
107037 2003-08-18  Jim Meyering  <jim@meyering.net>
107039         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
107040         * m4/lib-ld.m4: Likewise.
107042 2003-08-18  Jim Meyering  <jim@meyering.net>
107044         * lib/setenv.h: Indent nested cpp directive.
107045         * lib/vasnprintf.c: Remove trailing blanks.
107047 2003-08-17  Simon Josefsson  <jas@extundo.com>
107049         * modules/xstrndup: New file.
107050         * MODULES.html.sh (func_all_modules): Add xstrndup.
107052 2003-08-17  Simon Josefsson  <jas@extundo.com>
107054         * modules/argp: Fix autoconf macro name. Add more dependencies.
107056 2003-08-17  Simon Josefsson  <jas@extundo.com>
107058         * m4/xstrndup.m4: New file.
107060 2003-08-17  Simon Josefsson  <jas@extundo.com>
107062         * m4/argp.m4: New file.
107064 2003-08-17  Simon Josefsson  <jas@extundo.com>
107065             Bruno Haible  <bruno@clisp.org>
107067         * lib/xstrndup.h: New file.
107068         * lib/xstrndup.c: New file.
107070 2003-08-17  Bruno Haible  <bruno@clisp.org>
107072         * modules/strndup (Files, Include): Add lib/strndup.h.
107074 2003-08-17  Bruno Haible  <bruno@clisp.org>
107076         * modules/euidaccess (Files): Add lib/euidaccess.h.
107078 2003-08-17  Bruno Haible  <bruno@clisp.org>
107080         * lib/strndup.h: New file.
107082 2003-08-17  Bruno Haible  <bruno@clisp.org>
107084         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
107085         like AC_GNU_SOURCE.
107086         * modules/extensions (configure.ac): Comment out the invocation of
107087         gl_USE_SYSTEM_EXTENSIONS.
107089 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107091         Merges from coreutils, etc.
107092         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
107093         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
107094         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
107095         fixing a typo.
107096         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
107097         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
107099 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107101         Document merge from coreutils.
107102         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
107103         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
107104         * modules/utime: Add m4/utimes-null.m4.
107106 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107108         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
107109         space, undoing this 2003-08-12 change:
107110         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
107112 2003-08-16  Paul Eggert  <eggert@twinsun.com>
107114         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
107115         strtoul.c from libc, undoing this 2003-08-12 change:
107116         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
107118 2003-08-16  Jim Meyering  <jim@meyering.net>
107120         Merges from coreutils.
107121         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
107122         prefix.  Adjust cache variables similarly.  Create 500 rather than
107123         just 300 files, to exercise bug on Darwin6.5, too.
107124         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
107125         $missing_dir.
107126         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
107127         AM_SYS_POSIX_TERMIOS.
107128         Reported by mkc@mathdogs.com.
107129         Also change use of $am_cv_sys_posix_termios
107130         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
107131         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
107132         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
107133         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
107134         in /proc/mounts until it finds one with matching device number.  This
107135         is unnecessary when the FILE argument *is* a mount point.  No stat call
107136         is necessary in that case.  So, disable the statvfs-testing code on
107137         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
107138         as RedHat bug# 84846.
107139         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
107140         to 1MB, so as not to render systems with no stack size limit (e.g.,
107141         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
107142         Include <unistd.h>.  On some systems,
107143         it is required for the definition of _SC_PAGESIZE.
107145 2003-08-16  Jim Meyering  <jim@meyering.net>
107147         Merge from coreutils.
107148         * lib/xstrtoimax.c: #else #if -> #elif.
107149         * lib/xstrtoumax.c: Likewise.
107151 2003-08-16  Jim Meyering  <jim@meyering.net>
107153         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
107154         * m4/utimes.m4: Removed.
107155         * m4/utimes-null.m4: Renamed from utimes.m4.
107157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
107158         to 1MB, so as not to render systems with no stack size limit (e.g.,
107159         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
107160         Include <unistd.h>.  On some systems,
107161         it is required for the definition of _SC_PAGESIZE.
107163 2003-08-16  Jim Meyering  <jim@meyering.net>
107164         and Paul Eggert  <eggert@cs.ucla.edu>
107166         Merges from coreutils, etc.
107168         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
107169         using the latest version from cvs.  This avoids problems with #line
107170         directives using a vendor (Sun) compiler.
107171         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
107172         Don't set GETGROUPS_LIB here; now it's
107173         done via getgroups.m4's wrapper function.
107174         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
107175         rather than just in sh-util/configure.in, so that the
107176         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
107177         same.
107178         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
107179         AC_FUNC_GETLOADAVG where to find getloadavg.c.
107180         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
107181         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
107182         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
107183         Remove code that is now done by the newly-required macros.
107184         Append $(EXEEXT) to DF_PROG.
107185         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
107186         Do not invoke or require the following here,
107187         since prereq.m4 or some gnulib .m4 now does this for us:
107188         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
107189         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
107190         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
107191         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
107192         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
107193         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
107194         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
107195         AC_FUNC_OBSTACK.
107196         Do not replace the following functions, as this is now the job
107197         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
107198         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
107199         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
107200         atexit getpass, strdup, getpagesize.
107201         Replace 'raise'.
107202         Do not check for the following functions, as this is now the job
107203         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
107204         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
107205         setregid.
107206         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
107207         Check for sys/sysctl.h.
107208         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
107209         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
107210         of checking for ssize_t ourselves.
107212         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
107213         Require every macro that gnulib/modules/* suggests for us.
107214         (jm_PREREQ_ADDEXT): New macro.
107215         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
107216         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
107218         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
107219         (gl_PHYSMEM): Use it.
107220         Also check for `table' function.
107221         Check for new headers and functions.
107222         Add check for sys/sysmp.h.
107223         With suggestions from Kaveh Ghazi.
107224         Ignore headers that are present but cannot be compiled.  This
107225         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
107226         C 5.4.
107228 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107230         Document merge from coreutils.
107231         * modules/userspec: Depend on posixver.
107232         * modules/strftime: Depend on tzset.
107234 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107236         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
107237         rather than tab, after '#' in shell-script copyright notices.
107238         Suggested by Bruno Haible.
107240 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107242         * config/srclist-update: Use three spaces, rather than tab, after '#'
107243         in shell-script copyright notices.  Suggested by Bruno Haible.
107244         Remove unnecessary parenthesization in regular expression.
107246 2003-08-15  Jim Meyering  <jim@meyering.net>
107248         Merge from coreutils.
107249         * lib/xgethostname.c: Include <stdlib.h>.
107250         (xghostname): Don't exit for anything other than memory-related
107251         failure; just return NULL.
107252         * lib/userspec.c: Include "posixver.h".
107253         (parse_user_spec): Accept `.' as a separator only
107254         in pre-POSIX-200112 mode.
107255         * lib/strtoimax.c: Use #elif rather than #else #if.
107256         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
107257         Remove function, now that we can rely on a working tzset function.
107258         [!_LIBC]: Ensure that the required autoconf test has been run.
107259         [!defined _NL_CURRENT && HAVE_STRFTIME]:
107260         Use underlying_strftime for %r.
107261         * lib/sha.c: Merge in some clean-up and optimization changes from
107262         glibc.
107263         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
107264         Ensure that it is a multiple of 64.
107265         Rearrange loop exit tests so as to avoid performing an
107266         additional fread after encountering an error or EOF.
107267         * lib/realloc.c: Update copyright date.
107269 2003-08-15  Jim Meyering  <jim@meyering.net>
107270         and Paul Eggert  <eggert@twinsun.com>
107272         Merge from coreutils.
107273         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
107274         member but strut utmpx does not.  Needed for AIX 4.3.3.
107275         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
107277 2003-08-15  Jim Meyering  <jim@meyering.net>
107278         and Paul Eggert  <eggert@cs.ucla.edu>
107280         Merges from coreutils, etc.
107281         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
107282         Require gl_FUNC_TZSET_CLOBBER.
107283         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
107284         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
107285         members.
107287 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107289         Help the merge from coreutils.
107290         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
107291         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
107292         * m4/tzset.m4: Use it too.
107294 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107296         * modules/tzset: New file.
107298 2003-08-14  Jim Meyering  <jim@meyering.net>
107300         Merges from coreutils.
107301         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
107302         variable names, rather than @FNMATCH_H@.
107303         * modules/alloca: Likewise for $(ALLOCA_H).
107305         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
107306         the three copies of the literal target, `fnmatch.h'.
107307         * modules/alloca (alloca.h): Likewise.
107309 2003-08-14  Jim Meyering  <jim@meyering.net>
107311         Merge from coreutils.
107312         * m4/tzset.m4: New file.
107313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
107314         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
107315         otherwise, AIX 5.1 systems would end up using the latter.
107316         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
107317         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
107318         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
107319         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
107321 2003-08-14  Jim Meyering  <jim@meyering.net>
107323         Merge from coreutils.
107324         * lib/obstack.h: Whitespace changes.
107325         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
107326         and xcalloc return values.
107327         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
107328         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
107329         hang on OSF/1 5.1 for DIR on both local and remote file systems.
107330         Reported by (and fix confirmed by) Nelson H. F. Beebe.
107331         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107332         error from mntctl.
107333         Use mntctl's return value to drive the entry-processing loop, since
107334         we can't rely on the value of the vmt_length member in the last
107335         entry.  On some systems doing so could result in exhausting
107336         virtual memory.  Based in part on a patch from Mike Jetzer.
107338 2003-08-14  Jim Meyering  <jim@meyering.net>
107339         and Paul Eggert  <eggert@twinsun.com>
107341         Merges from coreutils, plus other fixes.
107342         * lib/physmem.c: Merge in portability changes from gcc/libiberty
107343         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
107344         for credits and details.  Thanks to Kaveh Ghazi for helping
107345         to keep these files in sync.
107346         (ARRAY_SIZE): Define it.
107347         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
107348         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
107349         (memcasecmp): Don't assume size_t fits in unsigned int.
107350         Remove casts and duplicate code.
107351         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
107352         (memcpy): Remove definition.
107353         Merge in some clean-up and optimization changes from glibc.
107354         [BLOCKSIZE]: Move definition to top of file.
107355         Ensure that it is a multiple of 64.
107356         Rearrange loop exit tests so as to avoid performing an
107357         additional fread after encountering an error or EOF.
107358         * lib/md5.h (md5_uintptr): Define.
107359         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
107360         return to the initial working directory.  Preserve errno
107361         for caller.
107362         * lib/idcache.c: Include "xalloc.h".
107363         (xmalloc, xrealloc): Remove decls.
107364         (getuser): Remove casts no longer required in C89.
107365         * lib/human.c: Include stdio.h, for sprintf.
107366         * lib/group-member.c: Include "xalloc.h".
107367         (xmalloc, xrealloc): Remove decls.
107368         (get_group_info): Remove casts no longer required in C89.
107369         * lib/getusershell.c (readname): Remove casts no longer required in
107370         C89.
107371         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
107372         * lib/getline.c: Whitespace fix, from coreutils.
107374 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107376         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
107377         Check for isascii.
107379         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107380         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107381         Undo previous (whitespace-only) change.
107383 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107385         * lib/exclude.c: Include <ctype.h>
107386         (IN_CTYPE_DOMAIN): New macro.
107387         (is_space): New fn.
107388         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
107389         and empty lines.
107391         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107392         Undo previous (whitespace-only) change.
107394 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107396         * config/srclist-update: Change update back to the old behavior,
107397         leaving whitespace alone.  Use one 'sed' command rather than a
107398         pipeline.
107399         (fixlicense): Now a variable, not a function.
107400         (remove_trailing_blanks): Remove.
107401         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
107402         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107403         Undo previous (whitespace-only) change.
107405 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107407         Merge from coreutils.
107408         * modules/euidaccess: Add lib_SOURCES, include for new
107409         file euidaccess.h
107411 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107413         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107414         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107415         Normalize leading white space and remove trailing white space.
107417         Merge from coreutils
107418         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
107420         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
107421         0.12.1.  These files are now being upgraded automatically by
107422         ../config/srclist-update.
107424 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107426         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107427         Normalize leading white space and remove trailing white space.
107428         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
107429         notice, as per ../config/srclist-update.
107431         Merge from coreutils.
107432         * lib/euidaccess.h: New file.
107433         * lib/euidaccess.c: Include it.
107434         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
107435         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
107436         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
107438 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107440         * config/srclist-update: Add copyright notice.
107441         (remove_id_lines, remove_trailing_blanks): New constants.
107442         (fixfile): Use them to normalize spacing a bit in copied files.
107443         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107444         Normalize leading white space and remove trailing white space.
107446         * config/texinfo.tex: Sync with texinfo.
107448         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
107449         strtoul.c from libc, to merge coreutils whitespace changes.
107451         * config/srclist.txt: Get the following m4 files from gettext:
107452         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
107453         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
107454         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
107455         wint_t.m4.
107457 2003-08-12  Karl Berry  <karl@gnu.org>
107459         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
107460         been made.
107462 2003-08-11  Paul Eggert  <eggert@twinsun.com>
107464         * modules/gnu-source, m4/gnu-source.m4:
107465         Remove; we're assuming Autoconf 2.54 or later now.
107466         Suggested by Bruno Haible.
107467         * MODULES.html.sh (func_all_modules): Remove gnu-source.
107469 2003-08-11  Bruno Haible  <bruno@clisp.org>
107471         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
107473 2003-08-11  Bruno Haible  <bruno@clisp.org>
107475         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
107476         (vasnprintf): Use it instead of wcslen.
107478 2003-08-11  Bruno Haible  <bruno@clisp.org>
107480         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
107481         value to ensure that _Bool promotes to int. Use #define for _Bool when
107482         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
107484 2003-08-10  Karl Berry  <karl@gnu.org>
107486         * lib/regex.h: update from libc (whitespace fix).
107488 2003-08-09  Paul Eggert  <eggert@twinsun.com>
107490         Merge some files from coreutils.  These changes were
107491         originally made by Jim Meyering.
107492         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
107493         many older Unixes require this.
107494         * lib/alloca.c (alloca): Remove cast to argument of free;
107495         no longer needed in C89.
107496         * lib/alloca_.h, regex.h: Fix white space to match
107497         what GNU indent does.
107499 2003-08-09  Paul Eggert  <eggert@twinsun.com>
107501         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
107502         apparently Emacs's Unicode mode got confused before my 2003-08-05
107503         checkin.
107505 2003-08-08  Paul Eggert  <eggert@twinsun.com>
107507         * m4/extensions.m4: New file.
107508         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
107509         Require gl_USE_SYSTEM_EXTENSIONS.
107510         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
107511         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
107513 2003-08-08  Paul Eggert  <eggert@twinsun.com>
107515         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
107516         * modules/extensions, modules/gnu-source: New files.
107517         * modules/timespec, modules/unlocked-io: Depend on extensions.
107519 2003-08-07  Paul Eggert  <eggert@twinsun.com>
107521         * modules/restrict: New file.
107522         * MODULES.html.sh (func_all_modules): Add restrict.
107523         * modules/regex: Depend on restrict.
107525 2003-08-07  Paul Eggert  <eggert@twinsun.com>
107527         * m4/restrict.m4: New file.
107528         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
107530 2003-08-07  Bruno Haible  <bruno@clisp.org>
107532         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
107533         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
107535 2003-08-07  Bruno Haible  <bruno@clisp.org>
107537         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
107538         makes the module 'getndelim2' compatible with the module 'getline'.
107540 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107542         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
107543         byte with "\201" to avoid glitches when editing that source file
107544         with multi-gnome-terminal.
107546 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107548         * lib/bumpalloc.h: Remove.
107550 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107552         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
107553         * modules/bumpalloc: Remove.
107555 2003-08-04  Paul Eggert  <eggert@twinsun.com>
107557         * lib/getloadavg.c: Change copyright notice and spacing to conform to
107558         GNU coding style.
107560         Merge from coreutils.
107561         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
107562         1. From glibc.
107563         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
107564         from Karl Berry, implemented by Jim Meyering.
107565         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
107566         from Dmitry V. Levin.
107567         Remove anachronistic cast of xrealloc.
107568         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
107569         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
107570         type. Otherwise, it wouldn't compile with at least /bin/cc on
107571         ymp-cray-unicos9.0.2.X.
107572         Combine two mostly-identical uses of alloca into one.
107573         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
107575 2003-08-04  Dave Love  <d.love@dl.ac.uk>
107577         [From Emacs.]
107579         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
107580         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
107581         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
107582         obsolete NLIST_NAME_UNION.
107583         [__GNU__]: Undef BSD and FSCALE.
107584         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
107586 2003-08-03  Paul Eggert  <eggert@twinsun.com>
107588         * lib/stdbool_.h (_Bool): Make it signed char, instead of
107589         an enum type, so that it's guaranteed to promote to int.  See:
107590         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
107592 2003-08-03  Karl Berry  <karl@gnu.org>
107594         * config/depcomp: update from automake.
107596 2003-07-31  Paul Eggert  <eggert@twinsun.com>
107598         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
107599         (strerror): Don't assume that a printable int fits in 14 bytes.
107601 2003-07-31  Bruno Haible  <bruno@clisp.org>
107603         * modules/getpass-gnu: New file.
107604         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
107606 2003-07-31  Bruno Haible  <bruno@clisp.org>
107608         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
107610 2003-07-24  Karl Berry  <karl@gnu.org>
107612         * config/missing: update from automake.
107614 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
107615             Bruno Haible  <bruno@clisp.org>
107617         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
107618         * lib/getline.c (getline, getdelim): Likewise.
107619         Remove _GNU_SOURCE define; now it's defined in config.h through
107620         m4/getline.m4.
107622 2003-07-23  Karl Berry  <karl@gnu.org>
107624         * config/config.sub: update from prep.
107626 2003-07-22  Paul Eggert  <eggert@twinsun.com>
107628         * modules/xalloc (Depends-on): Add exitfail.
107629         * modules/xmemcoll: Likewise.
107631 2003-07-22  Paul Eggert  <eggert@twinsun.com>
107633         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
107634         over-parenthesization in macros.
107636         Sync with coreutils.
107638         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
107639         required by C99.
107641         Use `exit_failure' for xalloc and xmemcoll instead of their own
107642         private exit-failure variables.
107643         * lib/xalloc.h (xalloc_exit_failure): Remove.
107644         * lib/xmalloc.c: Likewise.  Include exitfail.h.
107645         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
107646         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
107647         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
107648         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
107650 2003-07-20  Jim Meyering  <jim@meyering.net>
107652         * modules/closeout (Depends-on): Add exitfail.
107653         Suggestion from Bruno Haible.
107655 2003-07-19  Karl Berry  <karl@gnu.org>
107657         * config/config.sub: update from prep.
107659 2003-07-18  Paul Eggert  <eggert@twinsun.com>
107661         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
107662         Remove.
107663         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
107664         to test that it can stand by itself.  Include "exitfail.h".
107665         Clients should set exit_failure instead.
107666         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
107668 2003-07-18  Bruno Haible  <bruno@clisp.org>
107670         * modules/getndelim2: New file.
107671         * modules/getline: Share files with module getndelim2.
107672         * modules/getnline: Depend on getndelim2 instead of sharing files with
107673         it. Add getnline.c to lib_SOURCES.
107674         * MODULES.html.sh (func_all_modules): Add getndelim2.
107676 2003-07-18  Bruno Haible  <bruno@clisp.org>
107678         * m4/getndelim2.m4: New file.
107679         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
107680         invoke gl_PREREQ_GETNDELIM2.
107681         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
107682         gl_PREREQ_GETNDELIM2.
107683         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
107684         gl_GETNDELIM2.
107686 2003-07-18  Bruno Haible  <bruno@clisp.org>
107688         * lib/getndelim2.h: New file.
107689         * lib/getndelim2.c: Make into a module of its own. Include config.h,
107690         getndelim2.h.
107691         (getndelim2): Make non-static. Change return type to ssize_t.
107692         * lib/getline.h: Change argument names.
107693         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
107694         * lib/getnline.c: Include getndelim2.h.
107696 2003-07-18  Andreas Schwab  <schwab@suse.de>
107698         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
107700 2003-07-17  Karl Berry  <karl@gnu.org>
107702         * config/config.sub: update from prep.
107704 2003-07-17  Bruno Haible  <bruno@clisp.org>
107706         * modules/getnline: New file.
107707         * modules/getline: Add lib/getndelim2.c to source file list.
107708         * MODULES.html.sh (func_all_modules): Add getnline.
107710 2003-07-17  Bruno Haible  <bruno@clisp.org>
107712         * m4/getnline.m4: New file.
107714 2003-07-17  Bruno Haible  <bruno@clisp.org>
107716         * m4/Makefile.am.in: Remove file.
107717         * m4/Makefile.am: Remove file.
107718         * m4/Makefile.in: Remove file.
107720 2003-07-17  Bruno Haible  <bruno@clisp.org>
107722         * lib/getnline.h: New file.
107723         * lib/getnline.c: New file.
107724         * lib/getndelim2.c: New file, extracted from getline.c.
107725         (getndelim2): Renamed from getdelim2, with added nmax argument.
107726         * lib/getline.c: Include getndelim2.c.
107727         (getdelim2): Moved out to getndelim2.c.
107728         (getline, getdelim): Update.
107730 2003-07-17  Bruno Haible  <bruno@clisp.org>
107732         * lib/Makefile.am: Remove file.
107733         * lib/Makefile.in: Remove file.
107735 2003-07-17  Bruno Haible  <bruno@clisp.org>
107737         * configure.in: Remove file.
107738         * Makefile.in: Remove file.
107740 2003-07-17  Bruno Haible  <bruno@clisp.org>
107742         * MODULES.html.sh: Put the </BODY> right before </HTML>.
107744 2003-07-16  Karl Berry  <karl@gnu.org>
107746         * config/srclist-update: was running fixlicense twice, which caused
107747                 texinfo.tex to be nullified for some reason.  Simplify,
107748                 $gplsrc is no longer needed as far as I can see?
107750 2003-07-16  Jim Meyering  <jim@meyering.net>
107752         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
107754 2003-07-15  Paul Eggert  <eggert@twinsun.com>
107756         * config/srclist.txt: Get the following files from gettext-runtime/intl
107757         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
107758         ref-del.sin.  From Bruno Haible.
107759         * config/srclist-update (fixfile): Change grep pattern again, since the
107760         previous fix didn't work (there was another trailing $).  Use
107761         '[$]' to escape the $s.
107763 2003-07-15  Karl Berry  <karl@gnu.org>
107765         * lib/vasnprintf.c: update from gettext.
107767 2003-07-15  Karl Berry  <karl@gnu.org>
107769         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
107770         gets expanded when surrounded by '$'.
107772 2003-07-15  Jim Meyering  <jim@meyering.net>
107774         * modules/save-cwd: Don't depend on error.  From Derek Price.
107776 2003-07-15  Jim Meyering  <jim@meyering.net>
107778         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
107780 2003-07-14  Simon Josefsson  <jas@extundo.com>
107782         * modules/mempcpy: New file.
107783         * MODULES.html.sh (func_all_modules): Add mempcpy.
107785 2003-07-14  Simon Josefsson  <jas@extundo.com>
107787         * m4/mempcpy.m4: New file.
107789 2003-07-14  Simon Josefsson  <jas@extundo.com>
107791         * lib/mempcpy.h: New file.
107792         * lib/mempcpy.c: New file.
107794 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107796         * modules/getdate, modules/posixtm: Depend on mktime.
107798 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107800         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
107801         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
107802         unicodeio.c, unicodeio.h, unlocked-io.h:
107803         Switch from LGPL to GPL.
107805 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107807         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
107808         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
107809         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
107810         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
107811         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
107812         updated automatically by ../config/srclist-update.  This changes
107813         their license from LPGL to GPL.
107815 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107817         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
107818         assumed to refer to the root of the most recent stable gettext version.
107819         * config/srclistvars.sh: Add defaults for eggert.
107820         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
107821         Match "This program" as well as "The program".  This is needed
107822         for gettext.
107824 2003-07-14  Jim Meyering  <jim@meyering.net>
107826         Don't emit diagnostics.  Let callers do that.
107827         * lib/save-cwd.c: Don't include "error.h".
107828         (save_cwd): Don't call error.  Ensure that errno is valid
107829         when returning nonzero.
107831         * lib/save-cwd.h (restore_cwd): Update prototype.
107832         * lib/save-cwd.c (restore_cwd): Remove two parameters.
107833         Simplify.  Don't call error upon failure.  Let callers do that.
107834         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
107835         when auditing is enabled.  But don't bother updating the #if.
107837 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
107839         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
107840         it breaks C++ compilation.
107841         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
107843 2003-07-10  Simon Josefsson  <jas@extundo.com>
107845         * modules/strchrnul (Makefile.am): Add strchrnul.h.
107847 2003-07-10  Jim Meyering  <jim@meyering.net>
107849         * m4/clock_time.m4: Remove trailing blank.
107850         * m4/intmax_t.m4: Likewise.
107852 2003-07-10  Jim Meyering  <jim@meyering.net>
107854         * lib/vasnprintf.c: Remove trailing blanks.
107855         Make cpp indentation consistent.
107857 2003-07-09  Paul Eggert  <eggert@twinsun.com>
107859         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
107860         posixver.c, strftime.c, strnlen.c, strverscmp.c:
107861         Switch from LGPL to GPL.
107863 2003-07-09  Paul Eggert  <eggert@twinsun.com>
107865         * config/srclist.txt: Sort sublists.  Add
107866         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
107867         that differ from gnulib for one reason or another; we'd like this list
107868         to be smaller but for now let's document what we have.
107870 2003-07-08  Paul Eggert  <eggert@twinsun.com>
107872         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
107873         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
107874         and sweeter "eval x=$x".
107875         * config/srclist.txt: Get lib/argp* from glibc.
107877 2003-07-07  Paul Eggert  <eggert@twinsun.com>
107879         * lib/mktime.c: Fix some boundary cases and remove need for floating
107880         point.
107882         Issue a compile-time diagnostic if time_t is floating point, or if
107883         two's complement arithmetic is not in effect, or if arithmetic
107884         right shift does not propagate the sign.  These assumptions were
107885         all in the original code but they weren't checked.
107887         (TIME_T_MIDPOINT, verify): New macros.
107888         (__isleap): Remove; it has integer overflow problems.
107889         (leapyear): New function, without those problems.
107890         (ydhms_tm_diff): Remove; splitting into two parts.
107891         (ydhms_diff): New function, containing the arithmetic part of
107892         the old ydhms_tm_diff function.  Issue a compile-time
107893         diagnostic if we are not using C99 integer division.
107894         Avoid casts when possible.
107895         (guess_time_tm): New function, containing the checking part of
107896         the old ydhms_tm_diff function.  Return the new value, rather than
107897         the difference between it and the old.  Accept a new argument T
107898         so that *T specifies the old value.  Check for overflow in the result.
107900         (__mktime_internal): Use a time_t offset, not a long int offset.
107901         This undoes the 2003-06-04 change, which is no longer needed now
107902         that we have better overflow checking.
107903         (localtime_offset): Likewise.
107905         (__mktime_internal): Avoid harmful overflow on hosts where time_t
107906         and long are 64-bit but int is only 32-bit.
107907         (ydhms_diff): Use long int to store year1 and yday1.
107908         Issue a compile-time diagnostic if long int is not wide enough.
107910         (__mktime_internal): Use long int to store adjusted year and yday.
107911         Use plain C rather than preprocessor commands, if that doesn't
107912         affect efficiency.
107913         Check for overflow (and try to repair) after each probe
107914         rather than checking only at the very end.  This avoids some bugs
107915         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
107916         does not equal GMT offset at maximum time).
107917         Use integer to check for overflow rather than floating point; this
107918         is more portable to non-IEEE hosts, and is a tad faster.
107919         When we detect that we are oscillating between two values,
107920         don't check whether tm_isdst has the requested value, since
107921         we already know the answer.  When tm_isdst has the wrong value,
107922         use a different heuristic to find the right one, based on the
107923         extreme values actually observed in practice in tz2003a,
107924         rather than the (overly optimistic) "previous 3 calendar quarters".
107926         (not_equal_tm, print_tm, check_result): Use "const T" rather than
107927         "T const" to accommodate glibc style.
107928         (check_result): Use less-confusing report format.  "long" -> "long int.
107929         (main): Likewise.
107930         Don't loop if the iteration overflows time_t.
107931         Allow a negative step in the iteration.
107933 2003-07-06  Karl Berry  <karl@gnu.org>
107935         * config/depcomp: update from automake.
107936         * config/config.sub: update from prep.
107938 2003-07-03  Karl Berry  <karl@gnu.org>
107940         * config/config.guess: update from prep.
107942 2003-07-01  Paul Eggert  <eggert@twinsun.com>
107944         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
107945         xreadlink.c now includes it unconditionally.
107947 2003-07-01  Paul Eggert  <eggert@twinsun.com>
107949         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
107950         having it depend on HAVE_SYS_TYPES_H.
107952 2003-07-01  Bruno Haible  <bruno@clisp.org>
107954         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
107955         <sys/types.h> should be sufficient.
107956         Reported by Paul Eggert.
107958 2003-06-26  Karl Berry  <karl@gnu.org>
107960         * config/depcomp: update from automake.
107962 2003-06-26  Bruno Haible  <bruno@clisp.org>
107964         * modules/human: Depend on module stdbool.
107966 2003-06-25  Bruno Haible  <bruno@clisp.org>
107968         * modules/readlink: New file.
107969         * modules/xreadlink: Depend on it.
107970         * MODULES.html.sh (func_all_modules): Add readlink.
107972 2003-06-25  Bruno Haible  <bruno@clisp.org>
107974         * m4/readlink.m4: New file.
107976 2003-06-25  Bruno Haible  <bruno@clisp.org>
107978         * lib/readlink.c: New file.
107980 2003-06-22  Karl Berry  <karl@gnu.org>
107982         * config/srclist.txt: update mkinstalldirs from automake.
107983         * config/mkinstalldirs: update.
107985 2003-06-22  Bruno Haible  <bruno@clisp.org>
107987         Portability to mingw32.
107988         * m4/ssize_t.m4: New file, from GNU gettext.
107989         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
107990         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
107992 2003-06-22  Bruno Haible  <bruno@clisp.org>
107994         * modules/safe-read: Add m4/ssize_t.m4.
107995         * modules/xreadlink: Add m4/ssize_t.m4.
107997 2003-06-20  Bruno Haible  <bruno@clisp.org>
107999         Assume C89, so PARAMS isn't needed.
108000         * lib/unicodeio.h (PARAMS): Remove.
108001         * lib/unicodeio.c: Don't use PARAMS.
108003 2003-06-18  Karl Berry  <karl@gnu.org>
108005         * config/config.{guess,sub}: update from prep.
108007 2003-06-18  Jim Meyering  <jim@meyering.net>
108009         Merge changes from coreutils.
108010         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
108011         Remove explicit declarations of xmalloc and realloc.
108012         Include xalloc.h.
108013         (read_utmp): Remove anachronistic cast of xmalloc.
108015 2003-06-17  Paul Eggert  <eggert@twinsun.com>
108017         Assume C89, so PARAMS isn't needed.
108018         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
108019         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
108020         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
108021         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
108022         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
108023         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
108024         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
108025         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
108026         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
108027         lib/xstrtod.h, lib/xstrtol.h: Likewise.
108028         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
108029         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
108030         no longer needed. Anyway, config.h should always be included before any
108031         other file.
108033 2003-06-11  Simon Josefsson  <jas@extundo.com>
108035         * modules/sysexits: New file.
108036         * MODULES.html.sh (func_all_modules): Add sysexits.
108038 2003-06-11  Simon Josefsson  <jas@extundo.com>
108040         * lib/sysexit_.h: New file.
108042 2003-06-11  Derek Price  <derek@ximbiot.com>
108044         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
108045         necessary.
108047 2003-06-11  Bruno Haible  <bruno@clisp.org>
108049         * m4/sysexits.m4: New file.
108051 2003-06-10  Simon Josefsson  <jas@extundo.com>
108053         * lib/argp.h: New file, from glibc.
108054         * lib/argp-ba.c: New file, from glibc.
108055         * lib/argp-eexst.c: New file, from glibc.
108056         * lib/argp-fmtstream.c: New file, from glibc.
108057         * lib/argp-fmtstream.h: New file, from glibc.
108058         * lib/argp-fs-xinl.c: New file, from glibc.
108059         * lib/argp-help.c: New file, from glibc.
108060         * lib/argp-namefrob.h: New file, from glibc.
108061         * lib/argp-parse.c: New file, from glibc.
108062         * lib/argp-pv.c: New file, from glibc.
108063         * lib/argp-pvh.c: New file, from glibc.
108064         * lib/argp-xinl.c: New file, from glibc.
108066 2003-06-10  Simon Josefsson  <jas@extundo.com>
108068         * modules/strchrnul: New file.
108070 2003-06-10  Simon Josefsson  <jas@extundo.com>
108072         * modules/argp: New file.
108074 2003-06-10  Simon Josefsson  <jas@extundo.com>
108076         * m4/strchrnul.m4: New file.
108078 2003-06-10  Simon Josefsson  <jas@extundo.com>
108080         * lib/strchrnul.h: New file.
108081         * lib/strchrnul.c: New file.
108083 2003-06-10  Bruno Haible  <bruno@clisp.org>
108085         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
108087 2003-06-07  Karl Berry  <karl@gnu.org>
108089         * config/config.{guess,sub}: update from prep.
108091 2003-06-07  Jim Meyering  <jim@meyering.net>
108093         * modules/strtod: Use $(...) notation, not @...@ for
108094         AC_REPLACE'd variables.
108095         * modules/localcharset: Likewise.
108097 2003-06-07  Jim Meyering  <jim@meyering.net>
108099         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
108100         in place of my name in the copyright comment.
108101         Remove definition and uses of __P.
108103         From coreutils.
108104         * lib/stat.c: Don't declare xmalloc explicitly.
108105         Instead, include "xalloc.h".
108106         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
108107         xrealloc, and xcalloc return values.
108108         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
108109         Improve comment.
108110         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
108112 2003-06-07  Bruno Haible  <bruno@clisp.org>
108114         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
108115         avoid AC_CONFIG_LINKS.
108116         * modules/fnmatch (Makefile.am): Use explicit creation rule for
108117         fnmatch.h, to avoid AC_CONFIG_LINKS.
108118         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
108120 2003-06-07  Bruno Haible  <bruno@clisp.org>
108122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
108123         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
108124         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
108125         directory.
108126         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
108127         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
108128         directory.
108130 2003-06-06  Jim Meyering  <jim@meyering.net>
108132         Merge from coreutils.
108133         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
108134         Consolidate declarations and initializations of *_base* locals.
108136         Merge from coreutils.
108137         This avoids a core dump on systems without GNU putenv,
108138         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
108139         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
108140         (unsetenv): New static function, from GNU libc.
108141         (rpl_putenv): Use it.
108143         * lib/modechange.c: Remove trailing blanks.
108145         Merge from coreutils.
108146         * lib/fsusage.c: Remove declaration of statfs.
108147         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
108149         * lib/posixtm.c: Include <stdbool.h> unconditionally.
108151 2003-06-06  Jim Meyering  <jim@meyering.net>
108153         * lib/stdbool_.h: Renamed from stdbool.h.in.
108155 2003-06-06  Jim Meyering  <jim@meyering.net>
108156             Bruno Haible  <bruno@clisp.org>
108158         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
108159         Adjust Makefile.am snippet not to redirect directly to target.
108160         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
108162 2003-06-05  Paul Eggert  <eggert@twinsun.com>
108164         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
108165         mismatch, look in future quarters as well as past.  This fixes a
108166         bug when processing fall-backwards gaps immediately after a long
108167         period of daylight-saving time.
108169         * lib/mktime.c: Assume freestanding C89 or better.
108170         (HAVE_LIMITS_H): Remove.  Assume it's 1.
108171         (__P): Remove; not used.
108172         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
108173         (mktime, not_equal_tm, print_tm, check_result,
108174         main): Use prototypes.  Use const * where appropriate.
108175         (main): Fix typo in testing code that uncovered by above changes.
108176         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
108178 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108180         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
108181         locale.h, localeconv.  This merges changes from coreutils.
108183         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
108184         It can be removed after the next Autoconf is released.
108185         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
108186         needed.
108188 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108190         * lib/mktime.c: Fix Debian bug 177940
108191         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
108192         (localtime_offset): Now long int, not time_t, because we want it
108193         to be guaranteed to be signed.  All uses changed.
108194         (__mktime_internal): If overflow would occur when adding offset,
108195         don't add it.
108197         Merge 'human' changes from coreutils.  Rewrite to support
108198         locale-specific notations like thousands separators.
108199         * lib/human.c: Simplify authorship notice.
108200         Include human.h immediately after config.h.
108201         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
108202         <limits.h>: Do not include, since human.h does.
108203         (SIZE_MAX, UINTMAX_MAX): New macros.
108204         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
108205         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
108206         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
108207         (power_letter): Renamed from suffixes.
108208         (generate_suffix_backwards): Remove.
108209         (adjust_value): Now takes int style (because of human.h changes)
108210         and long double value (for greater precision on some platforms).
108211         (group_number): New function.
108212         (human_readable): Use it.  Use integer options, not enum.
108213         Put the options before the sizes in the arg list.
108214         Support all the new options.
108215         The old human_readable function has been removed;
108216         use inttostr.h instead.
108217         (human_readable, default_block_size, humblock):
108218         Use uintmax_t, not int, for block sizes.
108219         (human_readable_inexact, block_size_types): Remove.
108220         (block_size_opts): New constant.
108221         (human_options): Renamed from human_block_size, with new signature
108222         that allows block sizes up to UINTMAX_MAX.  All callers changed.
108223         * lib/human.h: Add copyright and authorship notice.
108224         Include <limits.h> and <stdbool.h> unconditionally.
108225         (PARAMS): Remove.  All uses removed.
108226         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
108227         (enum human_inexact_style): Remove tag; now a nameless enum.
108228         (human_floor, human_ceiling, human_round_to_even): Now have
108229         values 2, 0, 1 rather than -1, 1, 0.
108230         (human_group_digits, human_suppress_point_zero, human_autoscale,
108231         human_base_1024, human_SI, human_B): New constants.
108232         (human_readable_inexact, human_block_size): Remove.
108233         (human_readable): Size args are now uintmax_t, not int.
108234         (human_options): New decl.
108236         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
108237         unnecessary now that we assume C89 or better.  This change
108238         imported from coreutils.
108240         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108241         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
108242         in the 2003-05-30 sync from glibc.
108244         .h files should stand alone, but we shouldn't include <sys/types.h>
108245         if we can get away with just <stddef.h>.
108247         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
108248         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
108249         rather than <sys/types.h>, as we merely need size_t.
108250         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
108251         to get size_t.
108252         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
108253         Include <stdio.h>, to get FILE.
108254         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
108255         memcasecmp.h has included <stddef.h> and all we need is size_t.
108256         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
108257         our interface, instead of including <sys/types.h>
108259 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108261         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
108262         now, as glibc mktime is buggy on non-glibc systems.
108264 2003-06-03  Karl Berry  <karl@gnu.org>
108266         * config/config.sub: update from prep.
108268 2003-06-02  Paul Eggert  <eggert@twinsun.com>
108270         [from coreutils]
108271         Fix some minor time-related bugs with POSIX time arguments.
108272         Some valid time stamps were being rejected (notably -1, and
108273         time stamps before 1900 on 64-bit hosts).  And some invalid
108274         time stamps were being accepted, e.g. September 31.
108276         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
108277         that we can return (time_t) -1 successfully.
108278         * lib/posixtm.c: Likewise.
108279         [HAVE_STDBOOL_H]: Include <stdbool.h>.
108280         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
108281         (t): Remove static var.
108282         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
108283         of static var.  All uses changed.
108284         (year): Do not reject years before 1900; they can occur with
108285         64-bit time_t.
108286         (posix_time_parse): Do not check for out-of-range components;
108287         that is now the caller's responsibility, since our checks were
108288         only approximations.
108289         (posixtime): Use mktime to check for out-of-range components,
108290         since it knows them exactly.
108291         If mktime returns (time_t) -1, check whether an error actually occurred
108292         by invoking localtime on -1.
108293         (main) [TEST_POSIXTIME]: Check for input data errors, and report
108294         posixtime failures better.
108295         Improve the test data (in comments only).
108297 2003-06-02  Karl Berry  <karl@gnu.org>
108299         * config/mkinstalldirs (version): new variable.
108300         (--version): new option.
108301         (usage): improve message.
108303 2003-05-30  Karl Berry  <karl@gnu.org>
108305         * lib/mktime.c: update from libc.
108307 2003-05-30  Bruno Haible  <bruno@clisp.org>
108309         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
108310         * config/config.rpath: Upgrade to gettext-0.12.1.
108312 2003-05-30  Bruno Haible  <bruno@clisp.org>
108314         * m4/gettext.m4: Upgrade to gettext-0.12.1.
108315         * m4/nls.m4: New file, from gettext-0.12.1.
108316         * m4/po.m4: New file, from gettext-0.12.1.
108317         * m4/progtest.m4: Upgrade to gettext-0.12.1.
108319 2003-05-30  Bruno Haible  <bruno@clisp.org>
108321         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
108322         * lib/localcharset.h: Likewise.
108323         * lib/localcharset.c: Likewise.
108325 2003-05-29  Karl Berry  <karl@gnu.org>
108327         * config/config.rpath: update from gettext.
108329 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108331         Assume the headers required for C89 freestanding compilers.
108332         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
108333         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
108334         * m4/human.m4 (gl_HUMAN): Likewise.
108335         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
108336         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
108337         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108338         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
108339         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108340         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
108342 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108344         Assume the headers required for C89 freestanding compilers.
108345         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
108346         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
108347         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
108348         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
108349         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
108350         define, since <limits.h> is guaranteed to do that.
108351         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
108352         * lib/exclude.c: Include <stdbool.h> unconditionally.
108353         * lib/tempname.c: Include <stddef.h> unconditionally.
108354         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
108355         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
108356         <stddef.h> does that.
108357         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
108358         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
108359         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
108360         needed.
108361         * lib/xstrtol.c: Likewise.
108362         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
108363         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
108365         * lib/addext.c (addext): Use assignment rather than cast, to avoid
108366         warnings on some platforms.
108368         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108369         arbitrarily.
108371 2003-05-26  Jim Meyering  <jim@meyering.net>
108373         Merge in a change from coreutils:
108374         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
108375         that is guaranteed to be `no'.  Use `no_such_member' to indicate
108376         that condition, rather than `-1' which is slightly misleading.
108377         Change the name of the cache variable to have the gl_ prefix.
108378         Prompted by a patch from Richard Dawe for DJGPP.
108380 2003-05-24  Karl Berry  <karl@gnu.org>
108382         * config/config.guess: update from prep.
108384 2003-05-22  Karl Berry  <karl@gnu.org>
108386         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
108388 2003-05-20  Karl Berry  <karl@gnu.org>
108390         * config/config.guess: update from prep.
108392 2003-05-18  Karl Berry  <karl@gnu.org>
108394         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
108395         might actually be set by the user.
108397         * config/depcomp, install-sh, mdate-sh: update from automake.
108399 2003-05-17  Bruno Haible  <bruno@clisp.org>
108401         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
108402         invalid expansion for AC_EGREP_CPP.
108403         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
108404         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
108405         Suggested by Akim Demaille <akim@epita.fr> in
108406         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
108408 2003-05-12  Jim Meyering  <jim@meyering.net>
108410         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
108411         the space-padded-by-default conversion specifiers, %e, %k, %l.
108413 2003-05-12  Bruno Haible  <bruno@clisp.org>
108415         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
108416         the string is longer than 4 KB.
108418 2003-05-11  Karl Berry  <karl@gnu.org>
108420         * config/config.{guess,sub}: update from prep.
108422 2003-05-09  Bruno Haible  <bruno@clisp.org>
108424         * modules/error: Add m4/strerror_r.m4 to file list.
108426 2003-05-03  Bruno Haible  <bruno@clisp.org>
108428         Upgrade to Unicode-4.0.
108429         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
108430         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
108431         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
108432         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
108433         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
108434         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
108435         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
108436         Change width of U+E0100..U+E01EF from 1 to 0.
108438 2003-04-25  Jim Meyering  <jim@meyering.net>
108440         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
108441         of type size_t, not int.
108443 2003-04-25  Bruno Haible  <bruno@clisp.org>
108445         * lib/copy-file.c: Include <stddef.h>, for size_t.
108447 2003-04-21  Paul Eggert  <eggert@twinsun.com>
108449         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
108450         code which expansion is under static control.  Patch imported from
108451         Akim Demaille's patch to Bison; see
108452         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
108454 2003-04-14  Bruno Haible  <bruno@clisp.org>
108456         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
108458 2003-04-11  Jim Meyering  <jim@meyering.net>
108460         Merge changes from Coreutils.
108462         2003-03-22  Jim Meyering  <jim@meyering.net>
108464         * lib/strftime.c (widen): Cast alloca return value to proper type.
108466         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
108468         From GNU libc.
108469         * lib/strftime.c (my_strftime): Handle very large width
108470         specifications for numeric values correctly.  Improve checks for
108471         overflow.
108473         2003-01-19  Jim Meyering  <jim@meyering.net>
108475         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
108476         definitions.
108477         (nl_get_alt_digit) [! defined my_strftime]: Define.
108478         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
108479         _nl_get_alt_digit and _nl_get_walt_digit.
108481         * lib/strftime.c (my_strftime): Merge in locale-related changes from
108482         libc. These changes have no effect outside of _LIBC.
108484 2003-04-10  Bruno Haible  <bruno@clisp.org>
108486         * modules/findprog: New file.
108487         * MODULES.html.sh (func_all_modules): Add it.
108489 2003-04-10  Bruno Haible  <bruno@clisp.org>
108491         * m4/findprog.m4: New file.
108492         * m4/eaccess.m4: New file.
108494 2003-04-10  Bruno Haible  <bruno@clisp.org>
108496         * lib/findprog.h: New file, from GNU gettext.
108497         * lib/findprog.c: New file, from GNU gettext.
108499 2003-04-05  Jim Meyering  <jim@meyering.net>
108501         Merge changes from Coreutils.
108503         * lib/exclude.h (PARAMS): Remove definition and uses.
108504         * lib/exclude.c: Remove uses of `PARAMS'.
108506         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
108507         Add test-cases for DOS filenames. Declare program_name.
108508         (main): Set up program_name.  Patch by Rich Dawe.
108510         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
108511         error from mntctl.
108512         Use mntctl's return value to drive the entry-processing loop, since
108513         we can't rely on the value of the vmt_length member in the last
108514         entry.  On some systems doing so could result in exhausting
108515         virtual memory.  Based in part on a patch from Mike Jetzer.
108517 2003-04-04  Bruno Haible  <bruno@clisp.org>
108519         * modules/linebreak: New file.
108520         * MODULES.html.sh (func_all_modules): Add it.
108522 2003-04-04  Bruno Haible  <bruno@clisp.org>
108524         * m4/linebreak.m4: New file.
108526 2003-04-04  Bruno Haible  <bruno@clisp.org>
108528         * lib/linebreak.h: New file, from GNU gettext.
108529         * lib/linebreak.c: New file, from GNU gettext with slight
108530         modifications.
108531         * lib/lbrkprop.h: New file, from GNU gettext.
108533 2003-04-03  Bruno Haible  <bruno@clisp.org>
108535         * modules/utf8-ucs4: New file.
108536         * modules/utf16-ucs4: New file.
108537         * modules/ucs4-utf8: New file.
108538         * modules/ucs4-utf16: New file.
108539         * MODULES.html.sh (func_all_modules): Add them.
108541 2003-04-03  Bruno Haible  <bruno@clisp.org>
108543         * m4/utf-ucs4.m4: New file.
108544         * m4/ucs4-utf.m4: New file.
108546 2003-04-03  Bruno Haible  <bruno@clisp.org>
108548         * lib/utf8-ucs4.h: New file, from GNU gettext.
108549         * lib/utf16-ucs4.h: New file, from GNU gettext.
108550         * lib/ucs4-utf8.h: New file, from GNU gettext.
108551         * lib/ucs4-utf16.h: New file, from GNU gettext.
108553 2003-04-02  Bruno Haible  <bruno@clisp.org>
108555         * modules/binary-io: New file.
108556         * MODULES.html.sh (func_all_modules): Add it.
108558 2003-04-02  Bruno Haible  <bruno@clisp.org>
108560         * lib/binary-io.h: New file, from GNU gettext.
108562 2003-04-01  Bruno Haible  <bruno@clisp.org>
108564         * modules/pathname: New file.
108565         * MODULES.html.sh (func_all_modules): Add it.
108567 2003-04-01  Bruno Haible  <bruno@clisp.org>
108569         * lib/pathname.h: New file, from GNU gettext.
108570         * lib/concatpath.c: New file, from GNU gettext.
108572 2003-03-30  Bruno Haible  <bruno@clisp.org>
108574         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
108576 2003-03-30  Bruno Haible  <bruno@clisp.org>
108578         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
108579         function chown() doesn't exist.
108581 2003-03-28  Bruno Haible  <bruno@clisp.org>
108583         * modules/copy-file: New file.
108584         * MODULES.html.sh (func_all_modules): Add it.
108586 2003-03-28  Bruno Haible  <bruno@clisp.org>
108588         * m4/copy-file.m4: New file.
108590 2003-03-28  Bruno Haible  <bruno@clisp.org>
108592         * lib/copy-file.h: New file, from GNU gettext.
108593         * lib/copy-file.c: New file, from GNU gettext.
108595 2003-03-18  Jim Meyering  <jim@meyering.net>
108597         * lib/quote.c (quote_n): Fix typo in comment.
108599 2003-03-18  Bruno Haible  <bruno@clisp.org>
108601         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
108602         checking.
108603         * m4/onceonly_2_57.m4: Likewise.
108605 2003-03-17  Bruno Haible  <bruno@clisp.org>
108607         * m4/onceonly.m4: Require autoconf 2.54 or newer.
108608         (m4_quote): Remove macro.
108609         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
108611 2003-03-14  Jim Meyering  <jim@meyering.net>
108613         Merge changes from Coreutils.
108614         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
108615         to be const, in order to avoid warnings.
108616         (obstack_room): Likewise.
108617         (obstack_empty_p): Likewise.
108619 2003-03-14  Bruno Haible  <bruno@clisp.org>
108621         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
108622         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
108624 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108626         Merge changes from Bison.
108627         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
108628         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
108629         when compiling Bison 1.875's `bitset bset = obstack_alloc
108630         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
108631         * lib/hash.c: Include <stdbool.h> unconditionally.
108633 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108635         * m4/onceonly.m4 (m4_quote): New macro.
108636         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
108637         Quote AC_FOREACH variable-expansions properly.
108639 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108641         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
108643 2003-03-09  Paul Eggert  <eggert@twinsun.com>
108645         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
108646         Reported by Bruce Becker; see:
108647         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
108649 2003-03-03  Paul Eggert  <eggert@twinsun.com>
108650             Bruno Haible  <bruno@clisp.org>
108652         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
108653         Reported by John Hughes, see
108654         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
108656 2003-02-20  Bruno Haible  <bruno@clisp.org>
108658         * MODULES.html.sh (func_all_modules): Add poll.
108660 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
108662         * modules/poll: New file.
108664 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
108666         * lib/poll_.h: New file.
108667         * lib/poll.c: New file.
108669 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
108671         * m4/poll.m4: New file.
108673 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
108675         * modules/mathl: New file.
108677 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
108679         * lib/mathl.h: New file.
108680         * lib/acosl.c: New file.
108681         * lib/asinl.c: New file.
108682         * lib/atanl.c: New file.
108683         * lib/ceill.c: New file.
108684         * lib/cosl.c: New file.
108685         * lib/expl.c: New file.
108686         * lib/floorl.c: New file.
108687         * lib/frexpl.c: New file.
108688         * lib/ldexpl.c: New file.
108689         * lib/logl.c: New file.
108690         * lib/sincosl.c: New file.
108691         * lib/sinl.c: New file.
108692         * lib/sqrtl.c: New file.
108693         * lib/tanl.c: New file.
108694         * lib/trigl.c: New file.
108695         * lib/trigl.h: New file.
108697 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
108699         * m4/mathl.m4: New file.
108701 2003-02-18  Bruno Haible  <bruno@clisp.org>
108703         * MODULES.html.sh (func_all_modules): Add mathl.
108705 2003-02-17  Bruno Haible  <bruno@clisp.org>
108707         * modules/mkdtemp: New module.
108708         * MODULES.html.sh (func_all_modules): Add it.
108710 2003-02-17  Bruno Haible  <bruno@clisp.org>
108712         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
108714 2003-02-17  Bruno Haible  <bruno@clisp.org>
108716         * lib/mkdtemp.h: New file, from GNU gettext.
108717         * lib/mkdtemp.c: New file, from GNU gettext.
108719 2003-02-02  Jim Meyering  <jim@meyering.net>
108721         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
108722         e.g. glibc-2.2.93.
108724 2003-01-31  Bruno Haible  <bruno@clisp.org>
108726         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
108727         'rpl_rename'.
108728         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
108729         'rpl_strnlen'.
108730         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
108731         'rpl_strtod'.
108732         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
108733         'rpl_utime'.
108735 2003-01-31  Bruno Haible  <bruno@clisp.org>
108737         * lib/rename.c: #undef rename before defining rpl_rename.
108738         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
108740 2003-01-30  Bruno Haible  <bruno@clisp.org>
108742         * modules/vasnprintf, modules/vasprintf: New modules.
108743         * MODULES.html.sh (func_all_modules): Add them.
108745 2003-01-30  Bruno Haible  <bruno@clisp.org>
108747         * m4/signed.m4: New file, from GNU gettext.
108748         * m4/longdouble.m4: New file, from GNU gettext.
108749         * m4/wchar_t.m4: New file, from GNU gettext.
108750         * m4/wint_t.m4: New file, from GNU gettext.
108751         * m4/vasnprintf.m4: New file.
108752         * m4/vasprintf.m4: New file.
108754 2003-01-30  Bruno Haible  <bruno@clisp.org>
108756         * lib/printf-args.h: New file, from GNU gettext.
108757         * lib/printf-args.c: New file, from GNU gettext.
108758         * lib/printf-parse.h: New file, from GNU gettext.
108759         * lib/printf-parse.c: New file, from GNU gettext.
108760         * lib/vasnprintf.h: New file, from GNU gettext.
108761         * lib/vasnprintf.c: New file, from GNU gettext.
108762         * lib/asnprintf.c: New file, from GNU gettext.
108763         * lib/vasprintf.h: New file, from GNU gettext with modifications.
108764         * lib/vasprintf.c: New file, from GNU gettext.
108765         * lib/asprintf.c: New file, from GNU gettext.
108767 2003-01-29  Bruno Haible  <bruno@clisp.org>
108769         * modules/stpncpy: New module.
108770         * MODULES.html.sh (func_all_modules): Add it.
108772 2003-01-29  Bruno Haible  <bruno@clisp.org>
108774         * m4/stpncpy.m4: New file.
108776 2003-01-29  Bruno Haible  <bruno@clisp.org>
108778         * lib/stpncpy.h: New file, from GNU gettext with modifications.
108779         * lib/stpncpy.c: New file, from GNU gettext with modifications.
108781 2003-01-28  Bruno Haible  <bruno@clisp.org>
108783         * modules/c-ctype: New module.
108784         * MODULES.html.sh (func_all_modules): Add it.
108786 2003-01-28  Bruno Haible  <bruno@clisp.org>
108788         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
108789         Paul Eggert.
108790         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
108791         Paul Eggert.
108793 2003-01-27  Bruno Haible  <bruno@clisp.org>
108795         * modules/xsetenv: New module.
108796         * MODULES.html.sh (func_all_modules): Add it.
108798 2003-01-27  Bruno Haible  <bruno@clisp.org>
108800         * lib/xsetenv.h: New file, from GNU gettext.
108801         * lib/xsetenv.c: New file, from GNU gettext.
108803 2003-01-23  Jim Meyering  <jim@meyering.net>
108805         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
108806         from working on systems without dirfd (at least Irix and OSF1/Tru64).
108808 2003-01-23  Bruno Haible  <bruno@clisp.org>
108810         * modules/minmax: New module.
108811         * MODULES.html.sh (func_all_modules): Add it.
108813 2003-01-23  Bruno Haible  <bruno@clisp.org>
108815         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
108816         Eggert.
108818 2003-01-22  Bruno Haible  <bruno@clisp.org>
108820         * modules/exit: New module.
108821         * MODULES.html.sh (func_all_modules): Add it.
108823 2003-01-22  Bruno Haible  <bruno@clisp.org>
108825         * lib/exit.h: New file, from GNU gettext.
108827 2003-01-19  Bruno Haible  <bruno@clisp.org>
108829         * gnulib-tool: Recognize option --extract-maintainer.
108830         (func_get_maintainer): New function.
108831         * modules/*: Add Maintainer entry.
108833 2003-01-16  Jim Meyering  <jim@meyering.net>
108835         * m4/regex.m4: The `regex' struct is both input and output.
108836         Initialize it before each use.  Patch by Tim Waugh.
108838 2003-01-16  Bruno Haible  <bruno@clisp.org>
108840         * MODULES.html.sh: Add a table of contents. Add the module name as
108841         leftmost column. Add hyperlinks.
108843 2003-01-15  Bruno Haible  <bruno@clisp.org>
108845         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
108847 2003-01-15  Bruno Haible  <bruno@clisp.org>
108849         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
108850         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
108851         suffix.
108853 2003-01-15  Bruno Haible  <bruno@clisp.org>
108855         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
108857 2003-01-15  Bruno Haible  <bruno@clisp.org>
108859         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
108860         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
108862 2003-01-14  Jim Meyering  <jim@meyering.net>
108864         * lib/same.c (same_name): Tweak a comment.
108866 2003-01-14  Bruno Haible  <bruno@clisp.org>
108868         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
108869         when a string comparison is sufficient.
108871 2003-01-14  Bruno Haible  <bruno@clisp.org>
108873         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
108874         'unsigned int'.
108876 2003-01-14  Bruno Haible  <bruno@clisp.org>
108878         * lib/hash-pjw.c: Add comment about low quality of this function.
108880 2003-01-13  Bruno Haible  <bruno@clisp.org>
108882         * modules/stpcpy: Distribute lib/stpcpy.h.
108883         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
108885 2003-01-13  Bruno Haible  <bruno@clisp.org>
108887         * modules/*: Add a description.
108888         * modules/strpbrk: Fix Makefile.am snippet.
108889         * modules/strtoimax: Fix dependencies.
108890         * modules/strtoumax: Likewise.
108892 2003-01-13  Bruno Haible  <bruno@clisp.org>
108894         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
108895         * modules/alloca (Makefile.am): All object files depend on alloca.h.
108896         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
108898 2003-01-13  Bruno Haible  <bruno@clisp.org>
108900         * gnulib-tool (func_create_testdir): Store config/* files in the main
108901         directory.
108902         * config.rpath: Move to ...
108903         * config/config.rpath: ... here.
108904         * modules/gettext: Contains config/config.rpath, not config.rpath.
108905         * modules/iconv: Likewise.
108907 2003-01-12  Paul Eggert  <eggert@twinsun.com>
108909         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
108910         to avoid collisions with libcurses and libreadline.
108912         * m4/getstr.m4: Remove.
108913         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
108915 2003-01-12  Paul Eggert  <eggert@twinsun.com>
108917         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
108918         to avoid collisions with libcurses and libreadline.
108920         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
108921         * lib/getstr.h, getstr.c: Remove.
108922         * lib/getline.c: Include "getline.h", to check interface.
108923         Move body of old getstr.c here: this defines MIN_CHUNK and
108924         declares getdelim2, which is renamed from getstr.
108925         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
108927         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
108928         All uses changed.
108929         * lib/linebuffer.h: Likewise.
108930         (readline): Remove backward-compatibility macro.
108932 2003-01-12  Paul Eggert  <eggert@twinsun.com>
108934         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
108935         to avoid collisions with libcurses and libreadline.
108936         * getstr: Remove.
108937         * MODULES.html.sh: Remove getstr.
108938         * modules/getline: Depend on unlocked-io, not getstr.
108940 2003-01-12  Jim Meyering  <jim@meyering.net>
108942         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
108944 2003-01-10  Bruno Haible  <bruno@clisp.org>
108946         * modules/alloca: Change Makefile.am requirements. Simplify Include
108947         requirements. Add lib/alloca_.h to file list.
108949 2003-01-10  Bruno Haible  <bruno@clisp.org>
108951         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
108953 2003-01-10  Bruno Haible  <bruno@clisp.org>
108955         * lib/alloca_.h: New file.
108956         * lib/getdate.y: Unconditionally include alloca.h.
108957         * lib/makepath.c: Likewise.
108958         * lib/setenv.c: Likewise.
108959         * lib/userspec.c: Likewise.
108961 2003-01-09  Karl Berry  <karl@gnu.org>
108963         * MODULES.html.sh: include `dirname $0` in PATH, to find
108964         gnulib-tool.
108966 2003-01-09  Bruno Haible  <bruno@clisp.org>
108968         * modules/stdbool: Change configure.ac, Makefile.am requirements.
108969         Simplify Include requirements. Add lib/stdbool.h.in to file list.
108971 2003-01-09  Bruno Haible  <bruno@clisp.org>
108973         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
108975 2003-01-09  Bruno Haible  <bruno@clisp.org>
108977         * lib/stdbool.h.in: New file.
108979 2003-01-09  Bruno Haible  <bruno@clisp.org>
108981         * gnulib-tool (func_all_modules): Ignore files ending in ~.
108982         * MODULES.html.sh: Likewise.
108984 2003-01-08  Jim Meyering  <jim@meyering.net>
108986         * lib/full-write.c: Undefine and define-away `const' after inclusion
108987         of errno.h, not before.  Suggestion from Bruno Haible.
108989 2003-01-08  Bruno Haible  <bruno@clisp.org>
108991         * modules/full-read: Depend on full-write.
108993 2003-01-08  Bruno Haible  <bruno@clisp.org>
108995         * lib/safe-read.c: Include specification header first, to ensure its
108996         selfcontainedness.
108997         * lib/full-write.c: Likewise.
108999 2003-01-07  Jim Meyering  <jim@meyering.net>
109001         * lib/full-write.c: Rework so that it may serve to define full_read,
109002         too.
109003         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
109005 2003-01-07  Bruno Haible  <bruno@clisp.org>
109007         * lib/strtoimax.c: Include <stdint.h> as an alternative to
109008         <inttypes.h>.
109009         * lib/xstrtol.h: Likewise.
109010         * lib/xstrtoimax.c: Likewise.
109011         * lib/xstrtoumax.c: Likewise.
109012         * lib/human.h: Likewise.
109014         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
109015         on systems that have <inttypes.h> but not <stdint.h>.
109017 2003-01-07  Bruno Haible  <bruno@clisp.org>
109019         * MODULES.html.sh: Add copyright notice.
109020         (missed_files): Omit CVS directory entries.
109021         (func_module): Make it work with sed-3.02.
109022         * MODULES.txt: Remove file.
109024 2003-01-06  Jim Meyering  <jim@meyering.net>
109026         * lib/version-etc.c: Update year in translatable copyright string.
109028 2003-01-03  Karl Berry  <karl@gnu.org>
109030         * config/config.{guess,sub}: update from prep.
109032 2003-01-02  Karl Berry  <karl@gnu.org>
109034         * doc/COPYING.DOC: belatedly updated to 1.2.
109036 2003-01-01  Karl Berry  <karl@gnu.org>
109038         * gnulib-tool (func_verify_module): report module name $module in
109039         error message, not $1.
109040         * gnulib-tool (create-testdir): don't complain if destdir couldn't
109041         be created, only if it doesn't exist.
109042         * gnulib-tool (last_checkin_date): don't expand the $Date here.
109044 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109046         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
109048 2002-12-31  Paul Eggert  <eggert@twinsun.com>
109050         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
109051         memcmp if strcoll doesn't work.
109053 2002-12-31  Bruno Haible  <bruno@clisp.org>
109055         * lib/utime.c (utime_null): No need to call ftruncate if the file was
109056         nonempty.
109058 2002-12-31  Bruno Haible  <bruno@clisp.org>
109060         * lib/memcoll.c (STRCOLL): New macro.
109061         (memcoll): Use it.
109063 2002-12-31  Bruno Haible  <bruno@clisp.org>
109065         * lib/localcharset.h: New file.
109066         * lib/localcharset.c: Include it.
109067         * lib/unicodeio.c: Likewise.
109069 2002-12-31  Bruno Haible  <bruno@clisp.org>
109071         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
109072         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
109074 2002-12-31  Bruno Haible  <bruno@clisp.org>
109076         * lib/getline.h: Include <stddef.h>, for size_t.
109078         * lib/unicodeio.h: Include <stddef.h>, for size_t.
109079         * lib/unicodeio.c: Don't include <stddef.h>.
109081 2002-12-31  Bruno Haible  <bruno@clisp.org>
109083         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
109084         HAVE_TM_ZONE.
109086 2002-12-24  Karl Berry  <karl@gnu.org>
109088         * config/config.guess: update from prep.
109090 2002-12-24  Bruno Haible  <bruno@clisp.org>
109092         General infrasructure.
109093         * m4/README: Rewritten.
109094         * m4/onceonly.m4: New file.
109095         * m4/onceonly_2_57.m4: New file.
109097         Module atexit.
109098         * m4/atexit.m4: New file.
109100         Module strtod.
109101         * m4/strtod.m4: New file.
109103         Module strtol.
109104         * m4/strtol.m4: New file.
109106         Module strtoul.
109107         * m4/strtoul.m4: New file.
109109         Module memchr.
109110         * m4/memchr.m4: New file.
109112         Module memcmp.
109113         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
109114         (jm_FUNC_MEMCMP): Invoke it.
109116         Module memcpy.
109117         * m4/memcpy.m4: New file.
109119         Module memmove.
109120         * m4/memmove.m4: New file.
109122         Module memset.
109123         * m4/memset.m4: New file.
109125         Module strcspn.
109126         * m4/strcspn.m4: New file.
109128         Module strpbrk.
109129         * m4/strpbrk.m4: New file.
109131         Module strstr.
109132         * m4/strstr.m4: New file.
109134         Module strerror.
109135         * m4/strerror.m4: New file.
109137         Module mktime.
109138         * m4/mktime.m4: Renamed from jm-mktime.m4.
109139         (gl_PREREQ_MKTIME): New macro.
109140         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
109142         Module malloc.
109143         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
109144         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
109145         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
109147         Module realloc.
109148         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
109149         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
109150         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
109152         Module strftime.
109153         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
109154         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
109155         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
109156         gl_TM_GMTOFF.
109157         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
109159         Module xalloc.
109160         * m4/xalloc.m4: New file.
109162         Module alloca.
109163         * m4/alloca.m4: New file.
109165         Module putenv.
109166         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
109167         (jm_FUNC_PUTENV): Invoke it.
109169         Module setenv.
109170         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
109171         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
109172         when invoked twice.
109173         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
109174         gt_FUNC_SETENV.
109176         Module memrchr.
109177         * m4/memrchr.m4: New file.
109179         Module stpcpy.
109180         * m4/stpcpy.m4: New file.
109182         Module strcase.
109183         * m4/strcase.m4: New file.
109185         Module strdup.
109186         * m4/strdup.m4: New file.
109188         Module strnlen.
109189         * m4/strnlen.m4: New file.
109191         Module strndup.
109192         * m4/strndup.m4: New file.
109194         Module xstrtod.
109195         * m4/xstrtod.m4: New file.
109197         Module xstrtol.
109198         * m4/xstrtol.m4: New file.
109200         Module getdate.
109201         * m4/getdate.m4: New file.
109203         Module unlocked-io.
109204         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
109205         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
109206         * m4/jm-glibc-io.m4n: Remove file.
109208         Module long-options.
109209         * m4/long-options.m4: New file.
109211         Module md5.
109212         * m4/md5.m4: New file.
109214         Module sha.
109215         * m4/sha.m4: New file.
109217         Module getstr.
109218         * m4/getstr.m4: New file.
109220         Module getline.
109221         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
109222         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
109223         <sys/types.h>, for size_t. Use the function name gnu_getline, not
109224         simply getline. Infoke gl_PREREQ_GETLINE.
109226         Module obstack.
109227         * m4/obstack.m4: New file.
109229         Module hash.
109230         * m4/hash.m4: New file.
109232         Module readtokens.
109233         * m4/readtokens.m4: New file.
109235         Module strverscmp.
109236         * m4/strverscmp.m4: New file.
109238         Module stdbool.
109239         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
109240         OSF/1.
109242         Module strtoll.
109243         * m4/strtoll.m4: New file.
109245         Module strtoull.
109246         * m4/strtoull.m4: New file.
109248         Module strtoimax.
109249         * m4/strtoimax.m4: New file.
109251         Module strtoumax.
109252         * m4/strtoumax.m4: New file.
109254         Module xstrtoimax.
109255         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
109256         jm_AC_PREREQ_XSTRTOIMAX.
109257         Moved the strtol prerequisites to strtol.m4.
109258         Moved the strtoll prerequisites to strtoll.m4.
109259         Moved the strtoimax prerequisites to strtoimax.m4.
109261         Module xstrtoumax.
109262         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
109263         jm_AC_PREREQ_XSTRTOUMAX.
109264         Moved the strtoul prerequisites to strtoul.m4.
109265         Moved the strtoull prerequisites to strtoull.m4.
109266         Moved the strtoumax prerequisites to strtoumax.m4.
109268         Module chown.
109269         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
109270         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
109272         Module dup2.
109273         * m4/dup2.m4: New file.
109275         Module ftruncate.
109276         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
109277         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
109279         Module getgroups.
109280         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
109281         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
109283         Module gettimeofday.
109284         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
109285         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
109286         gl_PREREQ_GETTIMEOFDAY.
109288         Module mkdir.
109289         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
109290         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
109292         Module mkstemp.
109293         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
109294         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
109295         jm_AC_TYPE_UINTMAX_T.
109296         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
109298         Module stat.
109299         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
109300         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
109302         Module lstat.
109303         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
109304         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
109306         Module timespec.
109307         * m4/timespec.m4 (gl_TIMESPEC): New macro.
109308         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
109309         * m4/st_mtim.m4: Indentation.
109311         Module nanosleep.
109312         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
109313         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
109314         gl_PREREQ_NANOSLEEP.
109316         Module regex.
109317         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
109318         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
109319         (gl_REGEX): New macro.
109321         Module rename.
109322         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
109323         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
109325         Module rmdir.
109326         * m4/rmdir.m4: New file.
109328         Module utime.
109329         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
109330         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
109331         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
109333         Module dirname.
109334         * m4/dirname.m4: New file.
109336         Module getopt.
109337         * m4/getopt.m4: New file.
109339         Module unistd-safer.
109340         * m4/unistd-safer.m4: New file.
109342         Module fnmatch.
109343         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
109344         declaration.
109345         (gl_PREREQ_FNMATCH_EXTRA): New macro.
109346         (gl_FUNC_FNMATCH_POSIX): New macro.
109347         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
109348         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
109349         simply fnmatch.
109351         Module exclude.
109352         * m4/exclude.m4: New file.
109354         Module human.
109355         * m4/human.m4: New file.
109357         Module acl.
109358         * m4/acl.m4: Nop.
109360         Module backupfile.
109361         * m4/backupfile.m4: New file.
109362         * m4/d-ino.m4: Indentation.
109364         Module fsusage.
109365         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
109366         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
109367         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
109369         Module dirfd.
109370         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
109371         requirements.
109373         Module euidaccess.
109374         * m4/euidaccess.m4: New file.
109376         Module file-type.
109377         * m4/file-type.m4: New file.
109379         Module fileblocks.
109380         * m4/fileblocks.m4: New file.
109382         Module filemode.
109383         * m4/filemode.m4: New file.
109385         Module isdir.
109386         * m4/isdir.m4: New file.
109388         Module lchown.
109389         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
109390         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
109392         Module makepath.
109393         * m4/makepath.m4: New file.
109395         Module modechange.
109396         * m4/modechange.m4: New file.
109398         Module mountlist.
109399         * m4/mountlist.m4: New file.
109400         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
109401         Indentation.
109403         Module path-concat.
109404         * m4/path-concat.m4: New file.
109406         Module pathmax.
109407         * m4/pathmax.m4: New file.
109409         Module same.
109410         * m4/same.m4: New file.
109412         Module save-cwd.
109413         * m4/save-cwd.m4: New file.
109415         Module savedir.
109416         * m4/savedir.m4: New file.
109418         Module xgetcwd.
109419         * m4/xgetcwd.m4: New file.
109420         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
109422         Module xreadlink.
109423         * m4/xreadlink.m4: New file.
109425         Module safe-read.
109426         * m4/safe-read.m4: New file.
109428         Module safe-write.
109429         * m4/safe-write.m4: New file.
109431         Module closeout.
109432         * m4/closeout.m4: New file.
109434         Module stdio-safer.
109435         * m4/stdio-safer.m4: New file.
109437         Module getpass.
109438         * m4/getpass.m4: New file.
109440         Module getugroups.
109441         * m4/getugroups.m4: New file.
109443         Module group-member.
109444         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
109445         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
109447         Module idcache.
109448         * m4/idcache.m4: New file.
109450         Module userspec.
109451         * m4/userspec.m4: New file.
109453         Module gettime.
109454         * m4/clock_time.m4: New file.
109455         * m4/gettime.m4: New file.
109457         Module settime.
109458         * m4/settime.m4: New file.
109460         Module posixtm.
109461         * m4/posixtm.m4: New file.
109463         Module gethostname.
109464         * m4/gethostname.m4: New file.
109466         Module canon-host.
109467         * m4/canon-host.m4: New file.
109469         Module gettext.
109470         * m4/codeset.m4: New file, from gettext-0.11.5.
109471         * m4/gettext.m4: New file, from gettext-0.11.5.
109472         * m4/glibc21.m4: New file, from gettext-0.11.5.
109473         * m4/iconv.m4: New file, from gettext-0.11.5.
109474         * m4/intdiv0.m4: New file, from gettext-0.11.5.
109475         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
109476         * m4/inttypes.m4: New file, from gettext-0.11.5.
109477         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
109478         * m4/isc-posix.m4: New file, from gettext-0.11.5.
109479         * m4/lcmessage.m4: New file, from gettext-0.11.5.
109480         * m4/lib-ld.m4: New file, from gettext-0.11.5.
109481         * m4/lib-link.m4: New file, from gettext-0.11.5.
109482         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
109483         * m4/progtest.m4: New file, from gettext-0.11.5.
109484         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
109485         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
109486         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
109488         Module localcharset.
109489         * m4/localcharset.m4: New file.
109491         Module hard-locale.
109492         * m4/hard-locale.m4: New file.
109494         Module mbswidth.
109495         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
109496         onceonly macros.
109497         * m4/mbrtowc.m4: Add comment.
109499         Module memcasecmp.
109500         * m4/memcasecmp.m4: New file.
109502         Module memcoll.
109503         * m4/memcoll.m4: New file.
109505         Module unicodeio.
109506         * m4/unicodeio.m4: New file.
109508         Module rpmatch.
109509         * m4/rpmatch.m4: New file.
109511         Module yesno.
109512         * m4/yesno.m4: New file.
109514         Module exitfail.
109515         * m4/exitfail.m4: New file.
109517         Module c-stack.
109518         * m4/c-stack.m4 (gl_C_STACK): New macro.
109519         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
109521         Module error.
109522         * m4/error.m4 (gl_ERROR): New macro.
109523         (jm_PREREQ_ERROR): Use onceonly macros.
109525         Module fatal.
109526         * m4/fatal.m4: New file.
109528         Module getloadavg.
109529         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
109530         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
109532         Module getpagesize.
109533         * m4/getpagesize.m4: New file.
109535         Module getusershell.
109536         * m4/getusershell.m4: New file.
109538         Module physmem.
109539         * m4/physmem.m4: New file.
109541         Module posixver.
109542         * m4/posixver.m4: New file.
109544         Module quotearg.
109545         * m4/quotearg.m4: New file.
109547         Module quote.
109548         * m4/quote.m4: New file.
109550         Module readutmp.
109551         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
109553         Module sig2str.
109554         * m4/sig2str.m4: New file.
109556         Other.
109557         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
109558         ulonglong.m4.
109559         * m4/intmax_t.m4: New file.
109560         * m4/d-type.m4: Indentation.
109561         * m4/jm-macros.m4: Update.
109562         * m4/prereq.m4 (jm_PREREQ): Update.
109563         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
109564         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
109565         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
109566         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
109567         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
109568         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
109569         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
109570         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
109571         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
109572         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
109573         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
109574         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
109575         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
109576         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
109577         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
109578         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
109579         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
109580         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
109581         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
109583 2002-12-24  Bruno Haible  <bruno@clisp.org>
109585         * MODULES.txt: Update according to m4/ changes.
109587         Module gettext.
109588         * config.rpath: New file, from gettext-0.11.5.
109590         * modules/*: New module descriptions.
109591         * gnulib-tool: New file.
109592         * MODULES.html.sh: New file.
109594 2002-12-21  Karl Berry  <karl@gnu.org>
109596         * doc/fdl.texi: update to version 1.2.
109598 2002-12-19  Karl Berry  <karl@gnu.org>
109600         * config/config.guess: update from prep.
109602 2002-12-18  Bruno Haible  <bruno@clisp.org>
109604         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
109605         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
109607 2002-12-17  Bruno Haible  <bruno@clisp.org>
109609         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
109610         stdlib.h, string.h.
109612 2002-12-17  Bruno Haible  <bruno@clisp.org>
109614         * lib/canon-host.c (strdup): Remove unused declaration.
109616         * lib/fsusage.c: Include full_read.h.
109617         (get_fs_usage): Use full_read instead of safe_read.
109619         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
109621 2002-12-12  Karl Berry  <karl@gnu.org>
109623         * config/config.guess: update from prep.
109625 2002-12-11  Bruno Haible  <bruno@clisp.org>
109627         * m4/setenv.m4: New file, from gettext-0.11.5.
109629 2002-12-11  Bruno Haible  <bruno@clisp.org>
109631         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
109632         not unsetenv().
109633         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
109634         modifications:
109636         2002-12-11  Bruno Haible  <bruno@clisp.org>
109638                 * setenv.c (alloca): Fall back to malloc.
109639                 (freea): New macro.
109640                 (setenv): Use freea() to free memory allocated with alloca().
109642         2002-11-13  Bruno Haible  <bruno@clisp.org>
109644                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
109645                 function declarations.
109646                 * unsetenv.c (unsetenv): Likewise.
109648         2002-03-04  Bruno Haible  <bruno@clisp.org>
109650                 Portability to AIX 4.3.3.
109651                 * unsetenv.c: New file, extracted from setenv.c.
109652                 * setenv.c: Move the unsetenv() function to unsetenv.c.
109654         2001-12-20  Bruno Haible  <bruno@clisp.org>
109656                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
109657                 use malloc instead. For SunOS 4.
109659         2001-12-11  Bruno Haible  <bruno@clisp.org>
109661                 * setenv.c: Declare alloca.
109662                 (compar_fn_t): New typedef.
109663                 (KNOWN_VALUE, STORE_VALUE): Use it.
109665         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
109666         setenv.h.
109668 2002-12-10  Paul Eggert  <eggert@twinsun.com>
109670         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
109671         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
109672         Choose values that are less likely to collide with system fnmatch
109673         options.
109674         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
109675         defined (e.g., a pure POSIX system).
109676         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
109677         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
109679 2002-12-06  Paul Eggert  <eggert@twinsun.com>
109681         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
109682         a pain in practice to deal with generated m4 files.  This change
109683         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
109685         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
109686         and jm-glibc-io.m4, as they are no longer a special case.
109687         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
109688         kludge and the auto-generation stuff.  Check only whether the
109689         functions are declared, not whether they exist, since older hosts
109690         that don't declare the functions can't use the optimization anyway.
109692 2002-12-06  Jim Meyering  <jim@meyering.net>
109694         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
109696         Merge in changes from libc's misc/error.c, in preparation
109697         for the merge of gnulib's changes back into libc.
109699         * lib/error.c (_): Define only if not already defined.
109700         Move definition to follow all #include directives.
109701         Include unlocked-io.h only if !_LIBC.
109702         [_LIBC]: Include <libio/libioP.h>.
109703         [USE_IN_LIBIO]: Include <libio/iolibio.h>
109704         (fflush): Tweak definition to use INTUSE.
109705         (putc): Define.
109707 2002-12-05  Paul Eggert  <eggert@twinsun.com>
109709         * lib/alloca.c [defined emacs]: Include "lisp.h".
109710         (xalloc_die) [defined emacs]: New macro.
109711         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
109712         [! defined emacs]: Include <xalloc.h>.
109713         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
109714         (pointer): Typedef to POINTER_TYPE *.
109715         (malloc): Remove decl; we now always use xmalloc.
109716         (alloca): Use old-style definition, since Emacs needs this.
109717         Check for arithmetic overflow when computing combined size.
109719 2002-12-04  Paul Eggert  <eggert@twinsun.com>
109721         Do not generate unlocked-io.h automatically, since it's easier to
109722         maintain it by hand.
109724         * lib/unlocked-io.h: New file, from GNU diffutils,
109725         but with proper copyright notice and attribution.
109726         * lib/gen-uio: Remove.
109727         * lib/Makefile.am: Add copyright notice.
109728         (libfetish_a_SOURCES): Add unlocked-io.h.
109729         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
109730         (DISTCLEANFILES, io_functions): Remove macros.
109731         (EXTRA_DIST): Remove gen_uio.
109732         (unlocked-io.h): Remove rule.
109734 2002-12-04  Jim Meyering  <jim@meyering.net>
109736         Reflect the fact that stat.c and lstat.c are no longer generated.
109737         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
109738         (DISTCLEANFILES): Likewise.
109739         (EXTRA_DIST): Likewise.
109740         (all_local): Don't depend on stat.c or lstat.c.
109741         (stat.c, lstat.c): Remove rules.
109742         (EXTRA_DIST): Remove xstat.in.
109744         * lib/xstat.in: Remove file.  Contents moved into stat.c.
109745         * lib/stat.c: New file.  Contents mostly from xstat.in.
109746         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
109747         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
109749         * lib/safe-read.c: Rework so that it may serve to define safe_write,
109750         too.
109751         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
109753 2002-12-03  Jim Meyering  <jim@meyering.net>
109755         * lib/safe-read.c, safe-write.c: Change variable names and comments,
109756         but not semantics, to minimize the differences between these two files.
109757         (safe_read): Change comment to mention SAFE_READ_ERROR.
109759         * lib/safe-read.c (IS_EINTR): Define.
109760         (safe_read): Use IS_EINTR in place of in-function cpp directives.
109762 2002-12-02  Jim Meyering  <jim@meyering.net>
109764         * lib/safe-read.c (EINTR): Define.
109765         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
109766         (INT_MAX): Provide fallback.
109767         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
109769         * lib/safe-read.h (SAFE_READ_ERROR): Define.
109771 2002-12-02  Bruno Haible  <bruno@clisp.org>
109773         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
109774         Define, taken from safe-read.c.
109775         (INT_MAX): Provide fallback.
109776         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
109777         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
109779         * lib/safe-read.c (EINTR): Remove definition.
109780         (safe_read): Don't use EINTR if it is absent.
109782 2002-12-01  Jim Meyering  <jim@meyering.net>
109784         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
109785         zero.
109786         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
109788 2002-11-27  Paul Eggert  <eggert@twinsun.com>
109790         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
109791         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
109792         with `if (! (value < limit)) abort ();', for readability.
109794 2002-11-26  Karl Berry  <karl@gnu.org>
109796         * lib/strdup.c: copy from libc again, with jim's ok.
109797         * lib/.cppi-disable: re-add strdup.c
109799 2002-11-25  Karl Berry  <karl@gnu.org>
109801         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
109802         instead of "strtol.c".
109804 2002-11-25  Karl Berry  <karl@gnu.org>
109806         * config/install-sh: update from automake for variable quoting, $0 in
109807         error msgs, etc.
109809         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
109810         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
109811         entry.
109813 2002-11-25  Jim Meyering  <jim@meyering.net>
109815         * lib/mktime.c: Sync from libc, now that it has the latest fix.
109817 2002-11-24  Karl Berry  <karl@gnu.org>
109819         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
109820         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
109822 2002-11-24  Jim Meyering  <jim@meyering.net>
109824         Update from coreutils:
109826         * lib/mktime.c: Merge in changes from libc.
109828         Avoid a link-time failure on some Linux systems.
109829         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
109830         (otherwise).
109831         (__mon_yday): Declare with the STATIC attribute.
109832         (__mktime_internal): Likewise.
109833         Based on a report from Greg Schafer.
109835 2002-11-23  Jim Meyering  <jim@meyering.net>
109837         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
109838         Use `unsigned', not `int', as type of index.
109840         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
109842         * lib/fsusage.c: Remove unneeded parentheses around operands of
109843         `defined'.
109845 2002-11-22  Paul Eggert  <eggert@twinsun.com>
109847         * lib/quotearg.h: Allow multiple inclusion by surrounding with
109848         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
109849         so that we can be included first.
109850         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
109851         * lib/quotearg.c: Include quotearg.h immediately after config.h.
109852         No need to include stddef.h or sys/types.h any more.
109853         Surround local include files with "", not "<>".
109854         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
109855         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
109856         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
109857         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
109858         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
109859         (ISPRINT): Remove; no longer needed now that we assume C89.
109861         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
109862         Preserve errno.
109864         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
109865         quotearg_char): Use SIZE_MAX rather than
109866         (size_t) -1 when we are talking about "infinity".
109868         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
109870 2002-11-22  Paul Eggert  <eggert@twinsun.com>
109872         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
109873         hint that one should use `if (! x) abort ();' rather than `assert
109874         (x);', and anyway it's one less thing to worry about configuring.
109875         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
109876         hash_rehash, hash_insert): Use abort rather than assert.
109878 2002-11-22  Bruno Haible  <bruno@clisp.org>
109880         * lib/safe-read.h: Assume C89. Add comments.
109881         (safe_read): Change return type to size_t.
109882         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
109883         byte counts > SSIZE_MAX correctly.
109884         * lib/safe-write.h: New file.
109885         * lib/safe-write.c: New file.
109886         * lib/full-read.h: New file.
109887         * lib/full-read.c: New file.
109888         * lib/full-write.h: Assume C89. Add comments.
109889         * lib/full-write.c: Include safe-write.h.
109890         (full_write): Rewritten to use safe_write.
109891         Suggested by Jim Meyering and Paul Eggert.
109893 2002-11-21  Jim Meyering  <jim@meyering.net>
109895         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
109897         Merge in changes from the coreutils.
109899         2002-09-25  Paul Eggert  <eggert@twinsun.com>
109900         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
109901         <stdint.h>.
109902         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
109903         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
109904         int.  Work more efficiently if X is the same width as uintmax_t.
109905         Do not compare X to -1, to avoid bogus compiler warning.
109906         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
109907         Don't assume that f_frsize and f_bsize are the same type.
109909         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
109910         warning on FreeBSD.
109912         * lib/makepath.c (make_path): Restore umask *before* creating the final
109913         component.
109914         (make_path): Minor reformatting.
109916         * lib/xmalloc.c: Adjust to work with new autoconf macros,
109917         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
109918         HAVE_MALLOC/HAVE_REALLOC.
109920         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
109921         dummy ones.  At least on GNU/Linux systems, `auto' means something
109922         else.
109923         From Michael Stone.
109925 2002-11-21  Bruno Haible  <bruno@clisp.org>
109927         Remove case insensitive option matching.
109928         * lib/argmatch.h (argcasematch): Remove declaration.
109929         (ARGCASEMATCH): Remove macro.
109930         (__xargmatch_internal): Remove case_sensitive argument.
109931         (XARGMATCH): Update.
109932         (XARGCASEMATCH): Remove macro.
109933         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
109934         case_sensitive argument.
109935         (argcasematch): Remove function.
109936         (__xargmatch_internal): Remove case_sensitive argument.
109937         (main): Use XARGMATCH instead of XARGCASEMATCH.
109939         * lib/xmalloc.c: Change compile-time error message. Add comment about
109940         required autoconf version.
109942 2002-11-20  Paul Eggert  <eggert@twinsun.com>
109944         Merge argmatch cleanups from Bison.  Assume C89.
109946         * lib/argmatch.c: Include config.h here, not in argmatch.h.
109947         Include stdlib.h, for EXIT_FAILURE.
109948         Always include <string.h>, since we assume C89.
109949         (EXIT_FAILURE): Remove pre-C89 bug workaround.
109950         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
109951         Include <stddef.h> instead, since it's all we need for size_t.
109952         (PARAMS): Remove.  All uses removed.
109953         (ARRAY_CARDINALITY): Do not bother to #undef.
109954         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
109955         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
109956         Remove unnecessary parentheses.
109957         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
109958         Insert necessary parentheses.
109959         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
109960         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
109962 2002-11-19  Bruno Haible  <bruno@clisp.org>
109964         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
109965         * lib/mbswidth.h: Include <stddef.h>, for size_t.
109967         * lib/mbswidth.h (PARAMS): Remove macro.
109968         (mbswidth, mbsnwidth): Use ANSI C function declarations.
109969         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
109971         * lib/gcd.h (PARAMS): Remove macro.
109972         (gcd): Use ANSI C function declarations.
109973         * lib/gcd.c (gcd): Likewise.
109975 2002-11-15  Bruno Haible  <bruno@clisp.org>
109977         * lib/strcspn.c: Include <stddef.h>.
109978         (strcspn): Use ANSI C function declaration. Change return type to
109979         size_t. Use NULL.
109980         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
109981         (strpbrk): Use NULL.
109982         * lib/strpbrk.h (PARAMS): Remove macro.
109983         (strpbrk): Use ANSI C function declaration.
109984         * lib/strstr.c: Don't include <sys/types.h>.
109985         * lib/strstr.h (PARAMS): Remove macro.
109986         (strstr): Use ANSI C function declarations.
109988 2002-11-14  Karl Berry  <karl@gnu.org>
109990         * config/mkinstalldirs: `do' on separate line, instead of
109991         `for var; do'.
109993 2002-11-06  Bruno Haible  <bruno@clisp.org>
109995         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
109996         * lib/gcd.c (gcd): Likewise.
109998 2002-11-05  Bruno Haible  <bruno@clisp.org>
110000         * lib/gcd.h: New file, from gettext-0.11.5.
110001         * lib/gcd.c: New file, from gettext-0.11.5.
110003 2002-11-05  Bruno Haible  <bruno@clisp.org>
110005         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110006         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110007         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110008         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
110010         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
110011         <libintl.h>.
110012         * lib/makepath.c: Include gettext.h instead of <locale.h> and
110013         <libintl.h>.
110015         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
110016         * lib/human.c: Include gettext.h instead of <libintl.h>.
110017         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
110018         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
110019         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
110020         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
110021         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
110022         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
110023         (textdomain): Remove definition.
110024         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
110026         * lib/long-options.c: Remove include of <libintl.h> and definition of
110027         _.
110028         * lib/same.c: Remove include of <libintl.h> and definition of _.
110030 2002-11-04  Owen Taylor  <otaylor@redhat.com>
110032         * lib/config.charset: A few additions for Solaris.
110034 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110036         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
110037         * lib/localcharset.c (locale_charset): Declare as extern "C".
110039 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
110041         * lib/config.charset: msdos in uk_UA uses CP1125.
110043 2002-11-04  Bruno Haible  <bruno@clisp.org>
110045         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
110046         * lib/strcase.h: New file, from GNU gettext-0.11.5.
110047         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
110048         * lib/strstr.h: New file, from GNU gettext-0.11.5.
110049         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
110051 2002-11-04  Bruno Haible  <bruno@clisp.org>
110053         * lib/localcharset.c (locale_charset): Don't return an empty string.
110055 2002-11-04  Bruno Haible  <bruno@clisp.org>
110057         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
110058         aliases.
110060 2002-11-04  Bruno Haible  <bruno@clisp.org>
110062         * lib/config.charset: Update for newest glibc. Add canonical names
110063         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
110065 2002-11-04  Bruno Haible  <bruno@clisp.org>
110067         * lib/config.charset: Add support for NetBSD.
110069 2002-11-04  Bruno Haible  <bruno@clisp.org>
110071         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
110073 2002-11-01  Bruno Haible  <bruno@clisp.org>
110075         * configure.in: Add AC_CONFIG_AUX_DIR call.
110076         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
110077         test/Makefile.
110078         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
110080 2002-09-28  Karl Berry  <karl@gnu.org>
110082         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
110083         installed automake until the next release, since changes have been
110084         made.
110086 2002-09-25  Karl Berry  <karl@gnu.org>
110088         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
110089         * lib/getopt*: copy from libc/posix.
110090         * lib/gettext.h: copy from gettext.
110091         * lib/.cppi-disable: add strdup.c, gettext.h.
110093 2002-09-25  Karl Berry  <karl@gnu.org>
110095         * config/srclist.txt: enable gettext.h check.
110096         * config/config.{guess,sub}: update from prep.
110097         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
110098                 from automake 1.6.3.
110099         See srclist*.
110101 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
110103         * regex.c (PATFETCH): Remove the translating fetch.
110104         (PATFETCH_RAW): Rename to PATFETCH.
110105         (set_image_of_range): New fun.
110106         (SET_RANGE_TABLE_WORK_AREA): Use it.
110107         (regex_compile): Don't translate the pattern chars so eagerly.
110108         Only do it when inserting an `exactn' bytecode or when handling
110109         a char-range.
110110         (mutually_exclusive_p): Avoid empty statement.
110112 2002-07-06  Jim Meyering  <meyering@lucent.com>
110114         * m4/README: Don't mention Makefile.am.in.
110115         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
110117 2002-07-01  Jim Meyering  <meyering@lucent.com>
110119         * lib/c-stack.c: Include sys/time.h.
110120         From Volker Borchert.
110122 2002-06-26  Paul Eggert  <eggert@twinsun.com>
110124         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
110126 2002-06-26  Paul Eggert  <eggert@twinsun.com>
110128         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
110129         New macro.  Use it uniformly instead of
110130         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
110131         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
110132         reported by Vin Shelton.
110134 2002-06-22  Paul Eggert  <eggert@twinsun.com>
110136         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
110137         Do not assume SA_SIGINFO behavior.
110138         Bug reported by Jim Meyering on NetBSD 1.5.2.
110140 2002-06-22  Jim Meyering  <meyering@lucent.com>
110142         * m4/c-stack.m4: New file, from diffutils-2.8.2.
110143         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
110145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
110146         now that configure.ac uses AC_GNU_SOURCE.
110147         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
110148         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
110150         Update to latest tools.  Suggestions from Paul Eggert.
110151         * m4/stdbool.m4: New file, from diffutils-2.8.2.
110152         * m4/gnu-source.m4: Update from diffutils-2.8.2.
110153         * m4/fnmatch.m4: Likewise.
110154         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
110155         to AC_HEADER_STDBOOL
110157 2002-06-22  Jim Meyering  <meyering@lucent.com>
110159         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
110160         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
110162 2002-06-22  Jim Meyering  <meyering@lucent.com>
110164         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
110166         * lib/exitfail.c, exitfail.h: Likewise.
110167         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
110169         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
110170         of fnmatch.h.
110171         (EXTRA_DIST): Add fnmatch_loop.c.
110172         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
110174         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
110175         * lib/fnmatch.c: Update from diffutils-2.8.2.
110176         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
110177         * lib/fnmatch.h: Remove file.
110179 2002-06-21  Jim Meyering  <meyering@lucent.com>
110181         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
110182         * m4/mbrtowc.m4: Likewise.
110184         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
110185         * m4/mbswidth.m4: Reflect name change:
110186         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
110187         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
110189         * m4/lib-link.m4: Update from gettext-0.11.2.
110190         * m4/gettext.m4: Likewise.
110192         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
110193         From Alfred M. Szmidt.
110195 2002-06-18  Paul Eggert  <eggert@twinsun.com>
110197         * lib/file-type.h: Report an error if neither S_ISREG nor
110198         S_IFREG is defined, instead of using a test specific to glibc
110199         2.2.  This should be safe, since POSIX requires S_ISREG and
110200         Unix Version 7 had S_IFREG.  We don't need to check for
110201         <sys/types.h> since we don't use any symbols that it defines.
110203 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
110205         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
110206         $@-t, so that each temporary file name is unique and valid in the first
110207         8 characters, for operation under DOS.
110209 2002-06-15  Paul Eggert  <eggert@twinsun.com>
110211         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
110213 2002-06-15  Jim Meyering  <meyering@lucent.com>
110215         Work even with DJGPP 2.03, which lacks support for symlinks.
110216         From Richard Dawe.
110217         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
110218         is defined.
110219         * lib/lchown.c (S_ISLNK): Likewise.
110221 2002-06-15  Jim Meyering  <meyering@lucent.com>
110223         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
110224         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
110225         have been included before this file.
110227 2002-06-14  Jim Meyering  <meyering@lucent.com>
110229         * lib/file-type.h: Use the version from diffutils-2.8.2.
110230         * lib/file-type.c: Likewise.
110232 2002-06-07  Jim Meyering  <meyering@lucent.com>
110234         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
110235         They're needed at least for NetBSD 1.5.2.
110236         ($statxfs_includes): Include those same headers.
110237         ($statxfs_includes): Include sys/vfs.h if available.
110238         ($statxfs_includes): Likewise for sys/statvfs.h.
110239         Check for the following members in both structs statfs and statvfs:
110240         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
110242 2002-06-01  Jim Meyering  <meyering@lucent.com>
110244         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
110245         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
110247 2002-05-28  Jim Meyering  <meyering@lucent.com>
110249         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
110250         Reported by Volker Borchert.
110252 2002-05-27  Jim Meyering  <meyering@lucent.com>
110254         Fix a problem seen only on nonconforming systems whereby ls.c's
110255         use of localtime, and then of gettimeofday would cause trouble:
110256         the localtime call used to initialize rpl_gettimeofday's save
110257         mechanism would clobber ls's current local time information so
110258         that in any long listing the first file would always be listed
110259         with date 1970-01-01.  Analysis by Volker Borchert.
110261         * lib/gettimeofday.c (localtime): Undefine.
110262         (rpl_localtime): New function.
110264 2002-05-27  Jim Meyering  <meyering@lucent.com>
110266         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
110267         localtime.
110269         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
110270         use the replacement function; it wouldn't resolve at link time.
110271         Reported by Volker Borchert.
110273 2002-05-22  Jim Meyering  <meyering@lucent.com>
110275         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
110276         file-type.h.
110277         * lib/file-type.h: New file.
110278         * lib/file-type.c (file_type): New file/function.  Extracted from
110279         diffutils.
110281 2002-04-30  Jim Meyering  <meyering@lucent.com>
110283         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
110285 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110287         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
110289 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110291         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
110292         Do not check for alloca.h (no longer used) or stdbool.h (was never
110293         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
110295 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110297         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
110299 2002-04-29  Jim Meyering  <meyering@lucent.com>
110301         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
110302         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
110303         Use AC_FUNC_STRNLEN here instead.
110305         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
110306         With autoconf-2.53a, it's part of AC_PROG_CC.
110308 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110310         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
110311         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
110313 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110315         * lib/sig2str.h, lib/sig2str.c: New files.
110316         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
110318 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110320         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
110321         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
110322         of 127, since 64 is the largest conceivable number for ancient
110323         nonstandard hosts.
110324         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
110326 2002-04-28  Jim Meyering  <meyering@lucent.com>
110328         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
110330 2002-04-24  Jim Meyering  <meyering@lucent.com>
110332         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
110333         (jm_PREREQ): Use it.
110335         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
110336         mach/mach.h fcntl.h.
110337         Check for this function: setlocale.
110339 2002-04-24  Jim Meyering  <meyering@lucent.com>
110341         * lib/gettext.h: New file, from Gettext.
110342         * lib/Makefile.am (INCLUDES): Remove -I../intl.
110343         (libfetish_a_SOURCES): Add gettext.h.
110345 2002-04-16  Jim Meyering  <meyering@lucent.com>
110347         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
110348         ut_pid, ut_id, ut_exit.
110350 2002-04-16  Jim Meyering  <meyering@lucent.com>
110352         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
110353         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
110354         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
110356 2002-04-12  Jim Meyering  <meyering@lucent.com>
110358         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
110359         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
110360         existence of the getmntinfo function.  Needed for Darwin 5.3.
110362         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
110363         This is necessary at least on Darwin 5.3.
110365         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
110366         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
110367         strnlen.o in the library, and that makes some versions of ranlib
110368         object.
110370 2002-04-12  Jim Meyering  <meyering@lucent.com>
110372         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
110374 2002-04-09  Jim Meyering  <meyering@lucent.com>
110376         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
110377         to be more precise.  Rather than saying we're checking whether the
110378         function `works', say what we're testing.
110379         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
110380         Reported by Bruno Haible.
110382 2002-03-10  Jim Meyering  <meyering@lucent.com>
110384         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
110385         Suggestion from Santiago Vila.
110387 2002-03-08  Jim Meyering  <meyering@lucent.com>
110389         * lib/rename.c: Mention that this wrapper is needed also on
110390         mips-dec-ultrix4.4 systems.
110392 2002-03-02  Jim Meyering  <meyering@lucent.com>
110394         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
110395         not HAVE_CLOCK_SETTIME.
110397 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110399         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
110400         Check for clock_settime.
110402 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110404         * lib/nanosleep.h: Rename to....
110405         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
110407         * lib/gettime.c: New file.
110408         * lib/settime.c: New file.
110409         * lib/stime.c: Remove.
110411         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
110412         timespec.h.  Remove nanosleep.h.
110414 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110416         * m4/acl.m4: New file.
110417         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
110418         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
110420 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110422         * lib/acl.c, lib/acl.h: New files.
110423         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
110425 2002-02-24  Jim Meyering  <meyering@lucent.com>
110427         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
110428         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
110429         cause trouble.  Reported by Nelson Beebe.
110431 2002-02-23  Paul Eggert  <eggert@twinsun.com>
110433         * lib/path-concat.c (xpath_concat): Reorder code to pacify
110434         compilers that don't know that xalloc_die never returns.
110436 2002-02-20  Jim Meyering  <meyering@lucent.com>
110438         * lib/getdate.c: Regenerate using bison-1.33.
110440 2002-02-17  Jim Meyering  <meyering@lucent.com>
110442         * config/config.guess (main): Don't use `head -1'; it's no longer
110443         portable. Use `sed 1q' instead.
110445 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
110447         * m4/codeset.m4: Upgrade to gettext-0.11.
110448         * m4/gettext.m4: Upgrade to gettext-0.11.
110449         * m4/glibc21.m4: Upgrade to gettext-0.11.
110450         * m4/iconv.m4: Upgrade to gettext-0.11.
110451         * m4/isc-posix.m4: Upgrade to gettext-0.11.
110452         * m4/lcmessage.m4: Upgrade to gettext-0.11.
110453         * m4/lib-ld.m4: New file, from gettext-0.11.
110454         * m4/lib-link.m4: New file, from gettext-0.11.
110455         * m4/lib-prefix.m4: New file, from gettext-0.11.
110456         * m4/progtest.m4: Upgrade to gettext-0.11.
110458 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110460         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
110461         (jm_PREREQ): Use it.
110463 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110465         * lib/posixver.c, lib/posixver.h: New files.
110466         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110468 2002-02-02  Paul Eggert  <eggert@twinsun.com>
110469             Bruno Haible  <bruno@clisp.org>
110471         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
110472         (fwrite_success_callback): New declaration.
110473         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
110474         print_unicode_char. Call failure callback instead of error.
110475         (fwrite_success_callback): New function.
110476         (exit_failure_callback): New function.
110477         (fallback_failure_callback): New function.
110478         (print_unicode_char): Call unicode_to_mb.
110480 2002-01-26  Jim Meyering  <meyering@lucent.com>
110482         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
110483         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
110485 2002-01-26  Jim Meyering  <meyering@lucent.com>
110487         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
110489 2002-01-22  Paul Eggert  <eggert@twinsun.com>
110491         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
110493 2002-01-22  Jim Meyering  <meyering@lucent.com>
110495         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
110496         Otherwise, some versions of automake would omit the rule that makes
110497         Makefile from Makefile.in.
110499 2002-01-21  Paul Eggert  <eggert@twinsun.com>
110501         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
110502         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110503         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
110504         (memcoll): Set errno to zero if there is no error.
110506         * lib/quotearg.c (quotearg_buffer_restyled):
110507         Fix bug with quoting buffers containing NUL when backslashing escapes.
110508         This bug was exposed by the other changes in this patch.
110509         (quotearg_n_options): New arg ARGSIZE.
110510         All callers changed.
110511         (quoting_options_from_style): New function.
110512         (quotearg_n_style): Use it.
110513         (quotearg_n_style_mem): New function.
110515         * lib/quotearg.h (quotearg_n_style_mem): New function.
110517 2002-01-19  Jim Meyering  <meyering@lucent.com>
110519         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
110520         Remove useless quotes: DF_PROG="df".
110521         * m4/strnlen.m4: New file.
110523 2002-01-16  Paul Eggert  <eggert@twinsun.com>
110525         * lib/backupfile.c (ISDIGIT): Comment fix.
110526         * lib/getdate.y (ISDIGIT): Likewise.
110527         * lib/posixtm.c (ISDIGIT, year): Likewise.
110528         * lib/strverscmp.c (ISDIGIT): Likewise.
110529         * lib/userspec.c (ISDIGIT): Likewise.
110531 2002-01-16  Jim Meyering  <meyering@lucent.com>
110533         * lib/getdate.y: Add three semicolons, each just before a closing
110534         brace. Bison (as of version 1.31) no longer papers over that mistake.
110536 2002-01-05  Jim Meyering  <meyering@lucent.com>
110538         * lib/version-etc.c (version_etc_copyright): Update copyright year.
110540 2001-12-19  Paul Eggert  <eggert@twinsun.com>
110542         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
110543         not silently exit merely because the output buffer happens to
110544         have nothing pending.
110546 2001-12-18  Paul Eggert  <eggert@twinsun.com>
110548         See the big note in ../ChangeLog.
110549         * lib/human.c (suffixes): Prefer K to k for 1024.
110550         (generate_suffix_backwards): New function.
110551         (human_readable_inexact): Use it.
110552         * lib/xstrtol.c (__xstrtol): If there is no number but there
110553         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
110554         Accept 'K' as well as 'k'.
110556 2001-12-15  Jim Meyering  <meyering@lucent.com>
110558         * lib/regex.h (__restrict_arr): Update from libc.
110560         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
110561         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
110562         (STREQ): Define.
110564 2001-12-14  Jim Meyering  <meyering@lucent.com>
110566         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
110567         Suggestion from Bruno Haible.
110569 2001-12-10  Jim Meyering  <meyering@lucent.com>
110571         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
110572         xrealloc, Instead, include "xalloc.h".
110573         (initbuffer): Don't cast xmalloc return value to char*.
110574         (readline): Reword comment.
110575         Don't cast xrealloc return value to char*
110576         Return NULL, not 0.
110578 2001-12-09  Jim Meyering  <meyering@lucent.com>
110580         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
110581         about `signed and unsigned type in conditional expression'.
110582         * lib/posixtm.c (posix_time_parse): Likewise.
110584         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
110586         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
110587         to avoid a pedantic warning.
110589         * lib/getstr.c: Don't include assert.h.
110590         (getstr): Remove warning-evoking assertions.
110591         Return -1 if offset parameter is out of bounds.
110592         Change the type of a local from int to size_t.
110594         * lib/strftime.c (my_strftime_localtime_r): Include this function
110595         definition in the `#if ! HAVE_TM_GMTOFF' block.
110597         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
110598         Include xalloc.h instead.
110600 2001-12-02  Jim Meyering  <meyering@lucent.com>
110602         * lib/tempname.c: Don't declare getenv, thus reverting the change of
110603         2001-11-18.  It's no longer necessary, now that stdlib.h is always
110604         included.
110606         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
110607         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
110609 2001-11-30  Akim Demaille  <akim@epita.fr>
110611         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
110612         before being defined.
110614 2001-11-27  Paul Eggert  <eggert@twinsun.com>
110616         * lib/quotearg.h (quotearg_n, quotearg_n_style):
110617         First arg is int, not unsigned.
110618         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
110619         (SIZE_MAX, UINT_MAX): New macros.
110620         (quotearg_n_options): Abort if N is negative.
110621         Avoid overflow check on hosts where size_t is 64 bits and int
110622         is 32 bits, as overflow is impossible there.
110623         Fix off-by-one typo that caused unnecessary reallocation.
110625 2001-11-27  Jim Meyering  <meyering@lucent.com>
110627         * lib/tempname.c: Merge with version from libc.
110628         * lib/regex.c: Likewise.
110630         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
110631         systems for which STDC_HEADERS is 0, it was not included, resulting in
110632         a warning about an integer-to-pointer conversion problem with getenv.
110633         Reported by Volker Borchert.
110635 2001-11-26  Jim Meyering  <meyering@lucent.com>
110637         * lib/gtod.h: Remove file.
110638         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
110639         * lib/gettimeofday.c: Don't include gtod.h.
110640         (GTOD_init): Remove function.
110641         (rpl_gettimeofday): Do its job here instead, rather than aborting.
110642         Suggestion from Volker Borchert.
110644 2001-11-23  Jim Meyering  <meyering@lucent.com>
110646         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
110647         it.
110648         * lib/hash.c (struct hash_table): Define it here instead.
110650 2001-11-22  Jim Meyering  <meyering@lucent.com>
110652         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
110654 2001-11-20  Jim Meyering  <meyering@lucent.com>
110656         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
110657         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
110659 2001-11-19  Jim Meyering  <meyering@lucent.com>
110661         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
110662         directory.  Use "conftestXXXXXX" as the template.
110663         Suggestion from Paul Eggert.
110665         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
110666         immediately, so the test doesn't mistakenly hit the max-open-files
110667         limit.
110669 2001-11-18  Paul Eggert  <eggert@twinsun.com>
110671         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
110672         (TEMPORARIES): New macro.
110673         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
110674         removes an artificial limitation (e.g. HP-UX 10.20, where
110675         TMP_MAX is 17576).
110677 2001-11-18  Jim Meyering  <meyering@lucent.com>
110679         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
110681 2001-11-18  Jim Meyering  <meyering@lucent.com>
110683         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
110684         on SunOS 4.
110686         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
110687         files will be created before anything else.
110689 2001-11-17  Paul Eggert  <eggert@twinsun.com>
110691         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
110692         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
110694 2001-11-17  Jim Meyering  <meyering@lucent.com>
110696         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
110697         Prompted by a report from Bob Proulx.
110699         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
110700         Instead, require UTILS_FUNC_MKSTEMP.
110702 2001-11-17  Jim Meyering  <meyering@lucent.com>
110704         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
110705         Now, that's done as part of AC_FUNC_STRTOD.
110707 2001-11-17  Jim Meyering  <meyering@lucent.com>
110709         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
110710         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
110711         rather than group writable.  Patch by Juan F. Codagnone.
110713         * lib/readtokens.c: Remove explicit declarations of xmalloc and
110714         xrealloc, Instead, include "xalloc.h".
110716         * lib/mountlist.c: Include unlocked-io.h after all system headers.
110717         Remove explicit declarations of xmalloc, xrealloc,
110718         and xstrdup.  Instead, include "xalloc.h".
110720         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
110721         unlocked-io.h.
110722         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
110723         Likewise.
110724         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
110726         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
110727         Reported by Padraig Brady.
110729         * lib/mkstemp.c: #undef mkstemp.
110730         Include config.h.
110731         (rpl_mkstemp): Rename from mkstemp.
110732         Protoize.
110734 2001-11-16  Jim Meyering  <meyering@lucent.com>
110736         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
110737         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
110738         determine the amount of total physical memory, use pstat_getstatic.
110739         HPUX-11 doesn't define _SC_PHYS_PAGES.
110740         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
110741         If sysconf couldn't be used to determine the amount of available
110742         physical memory, use both pstat_getstatic and pstat_getdynamic.
110743         Based on a patch from Bob Proulx.
110745 2001-11-10  Jim Meyering  <meyering@lucent.com>
110747         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
110748         (jm_PREREQ): Use it.
110750 2001-11-09  Jim Meyering  <meyering@lucent.com>
110752         * m4/jm-macros.m4: Require autoconf-2.52f.
110753         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
110754         Use these AC_-prefixed names, not the AM_-prefixed ones.
110756         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
110758 2001-11-05  Jim Meyering  <meyering@lucent.com>
110760         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
110762 2001-11-04  Jim Meyering  <meyering@lucent.com>
110764         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
110765         $DEFS.
110767 2001-11-03  Jim Meyering  <meyering@lucent.com>
110769         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
110770         of AC_DEFUN.
110772         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
110773         know the name of the variable in the macro definition.
110775 2001-11-03  Jim Meyering  <meyering@lucent.com>
110777         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
110778         in argmatch_to_argument call.
110780         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
110781         argument.
110783         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
110784         e.g., a fault due to an attempt to free a NULL pointer.
110786 2001-11-01  Jim Meyering  <meyering@lucent.com>
110788         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
110789         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
110791 2001-11-01  Jim Meyering  <meyering@lucent.com>
110793         * lib/dirfd.c, lib/dirfd.h: New files.
110794         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
110796         * lib/hash.c (hash_print) [TESTING]: Clean up.
110798 2001-10-22  Paul Eggert  <eggert@twinsun.com>
110800         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
110801         to avoid a warning if -Wall.
110803 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
110805         * README: New file
110806         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
110807         (per RMS's instructions, this is now the canonical source)
110808         * lgpl/, gpl/: New directories.
110810 2001-10-21  Paul Eggert  <eggert@twinsun.com>
110812         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
110814 2001-10-21  Jim Meyering  <meyering@lucent.com>
110816         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
110817         this code would end up calling gettext even in packages built
110818         with --disable-nls.
110819         * lib/getopt.c (_): Likewise.
110820         * lib/regex.c (_): Likewise.
110822 2001-10-20  Paul Eggert  <eggert@twinsun.com>
110824         * m4/error.m4 (jm_PREREQ_ERROR):
110825         Do not invoke AC_CHECK_FUNCS with strerror_r, as
110826         AC_FUNC_STRERROR_R does that.
110827         Check for strerror declaration.
110829         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
110830         are supposed to have them these days.
110831         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
110832         Merge changes from latest Autoconf CVS.
110833         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
110834         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
110835         POSIX decided to standardize on the int flavor of strerror_r.
110837 2001-10-20  Paul Eggert  <eggert@twinsun.com>
110839         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
110840         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
110841         Use strerror_r that is only a macro, even if it is not a function.
110842         (strerror): Check for HAVE_DECL_STRERROR before declaring.
110843         (private_strerror): Use prototypes, not old-style function definition.
110844         (print_errno_message): New function.
110845         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
110846         char*-flavored one.
110847         (error_tail, error, error_at_line): Use it.
110849 2001-10-11  Jim Meyering  <meyering@lucent.com>
110851         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
110852         and quote_n (1, ... to avoid clobbering a buffer.
110854 2001-10-05  Jim Meyering  <meyering@lucent.com>
110856         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
110857         hash-pjw.h.
110858         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
110859         * lib/hash-pjw.h: New file.
110861 2001-09-30  Jim Meyering  <meyering@lucent.com>
110863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
110864         `struct fsstat' has the `f_fstypename' member.
110865         Use that to define FS_TYPE, which is now used to make
110866         the getfsstat link test tighter.
110868 2001-09-30  Jim Meyering  <meyering@lucent.com>
110870         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
110871         Include <sys/ucred.h>, for Apple Darwin.
110872         Include sys/mount.h and sys/fs_types.h only if available.
110873         (FS_TYPE): Define.
110874         (read_filesystem_list): Use FS_TYPE.
110876 2001-09-29  Paul Eggert  <eggert@twinsun.com>
110878         * lib/exclude.c (excluded_filename): 0 -> false, since it's
110879         a boolean context.
110881 2001-09-29  Jim Meyering  <meyering@lucent.com>
110883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
110884         [one-argument getmntent function]): Include stdio.h before mntent.h.
110885         SunOS 4.1.x needs it for the declaration of `FILE'.
110886         Patch by Volker Borchert.
110888         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
110889         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
110890         sys/fs_types.h, and make the link-test for getfsstat guard #include
110891         directives with appropriate #if HAVE_*_H tests so that we can
110892         detect getfsstat on Apple Darwin1.3.7 systems.
110893         Reported by Nelson Beebe.
110894         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
110896 2001-09-28  Paul Eggert  <eggert@twinsun.com>
110898         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
110899         #defines strtoimax.  Also treat the other strto* functions
110900         like strtoimax.
110902         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
110903         Check for strtoul and strtoumax,
110904         as those declarations are made even in the signed case.
110905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
110906         Likewise, for strtol and strtoimax.
110908 2001-09-28  Paul Eggert  <eggert@twinsun.com>
110910         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
110911         #defines strtoimax.  Also treat the other strto* functions
110912         like strtoimax.
110914         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
110915         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
110916         (strtoimax, strtoumax): Do not declare if already defined as a macro.
110918 2001-09-26  Jim Meyering  <meyering@lucent.com>
110920         Most macros in unlocked-io.h had the wrong number of arguments.
110921         * lib/gen-uio: New script.
110922         (USE_UNLOCKED_IO): Define to 1 if not already defined.
110923         * lib/unlocked-io.hin: Remove file.
110924         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
110925         rather than trying to embed it here.
110926         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
110927         Reported by Padraig Brady.
110929 2001-09-25  Volker Borchert  <bt@teknon.de>
110931         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
110932         `result'.
110934 2001-09-24  Jim Meyering  <meyering@lucent.com>
110936         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
110938 2001-09-23  Jim Meyering  <meyering@lucent.com>
110940         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
110941         instead of the mere test for existence of mntent.h.  The latter
110942         would get a false-positive on AIX 3.4 systems.
110943         In the outer getmntent if-block, don't die if neither of the getmntent
110944         tests succeeds.  Instead, just fall through and continue with the
110945         remaining tests.
110947 2001-09-23  Jim Meyering  <meyering@lucent.com>
110949         * lib/mountlist.c: Remove useless parentheses in #if directives.
110950         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
110951         the deprecated MOUNTED symbol is no longer defined in mntent.h.
110953 2001-09-22  Jim Meyering  <meyering@lucent.com>
110955         * m4/gettext.m4: New file.  From gettext.
110956         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
110957         * m4/progtest.m4: Likewise
110958         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
110959         * m4/glibc21.m4: Likewise.
110961         * m4/libintl.m4: Remove.  No longer used.
110963 2001-09-22  Jim Meyering  <meyering@lucent.com>
110965         * lib/localcharset.c: Update from latest gettext.
110966         * lib/config.charset: Likewise.
110968 2001-09-20  Jim Meyering  <meyering@lucent.com>
110970         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
110971         strtoimax.
110972         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
110973         strtoumax.
110975 2001-09-20  Jim Meyering  <meyering@lucent.com>
110977         * lib/xstrtol.c (strtoimax): Guard declaration with
110978         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
110979         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
110980         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
110981         (strtoumax): Likewise, for completeness (it wasn't necessary).
110983 2001-09-17  Paul Eggert  <eggert@twinsun.com>
110985         * lib/strtoimax.c (HAVE_LONG_LONG):
110986         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
110987         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
110988         to work around bug in IBM C compiler.
110990 2001-09-17  Jim Meyering  <meyering@lucent.com>
110992         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
110993         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
110994         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
110995         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
110996         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
110997         whenever the right hand side need not be expanded by the shell.
110999 2001-09-16  Paul Eggert  <eggert@twinsun.com>
111001         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
111002         library.  It's not correct, as some older glibcs are buggy.
111003         fnmatch wasn't fixed until glibc 2.2.
111005         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
111006         special shell magic here.
111008 2001-09-16  Jim Meyering  <meyering@lucent.com>
111010         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
111011         * m4/jm-macros.m4: Require it.
111013 2001-09-16  Jim Meyering  <meyering@lucent.com>
111015         * lib/mkdir.c: New file.
111017 2001-09-15  Jim Meyering  <meyering@lucent.com>
111019         * m4/jm-macros.m4: Check for help2man.
111021 2001-09-11  Jim Meyering  <meyering@lucent.com>
111023         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
111024         The body, by Paul Eggert, was moved here from configure.in.
111025         * m4/jm-macros.m4: Require UTILS_HOST_OS.
111027 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111029         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
111030         (jm_PREREQ): Use it.
111032 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111034         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
111035         Use ssize_t, not int, to store result of readlink.
111036         Check for ssize_t overflow as well as size_t overflow,
111037         as POSIX says the result of readlink is implementation-defined
111038         when ssize_t overflows.
111039         Remove unnecessary cast to char*.
111040         Use free+malloc instead of realloc, as the storage doesn't need
111041         to be preserved and it's clearer and can be more efficient that way.
111042         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
111043         * lib/xreadlink.h (xreadlink): Update prototype.
111045 2001-09-04  Paul Eggert  <eggert@twinsun.com>
111047         * lib/xgetcwd.c: Revert some of the previous change; intead,
111048         fix the HAVE_GETCWD_NULL code to behave more like the
111049         !HAVE_GETCWD_NULL code used to.
111051         Include "xalloc.h".
111052         (xgetcwd): Do not return NULL when memory is exhausted; instead,
111053         invoke xalloc_die.
111055 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111057         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
111058         sys/param.h, as pathmax.h includes them.
111060 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111062         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
111063         (jm_PREREQ_XGETCWD): New macro.
111065         * m4/getcwd.m4: New file.
111067 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111069         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
111070         like the HAVE_GETCWD_NULL code.
111071         Include pathmax.h if not HAVE_GETCWD.
111072         Do not include xalloc.h.
111073         (INITIAL_BUFFER_SIZE): New symbol.
111074         Do not use xmalloc / xrealloc, since the caller is responsible for
111075         handling errors.  Preserve errno around `free' during failure.
111076         Do not overrun buffer when using getwd.
111078 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111080         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
111081         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
111082         getcwd (NULL, 0).
111084 2001-09-03  Paul Eggert  <eggert@twinsun.com>
111086         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
111087         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
111088         spotted by Jim Meyering.
111090 2001-09-03  Jim Meyering  <meyering@lucent.com>
111092         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
111093         failure.
111095 2001-09-02  Jim Meyering  <meyering@lucent.com>
111097         * lib/error.c: Update from GNU libc.
111099 2001-09-01  Jim Meyering  <meyering@lucent.com>
111101         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
111102         Used by df.
111104 2001-09-01  Jim Meyering  <meyering@lucent.com>
111106         * lib/xreadlink.c: New file.
111107         * lib/xreadlink.h: New file.
111108         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
111109         xreadlink.h.
111111         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
111112         doesn't conflict with sparc Solaris 7's definition in
111113         /usr/include/sys/int_types.h.
111115         * lib/exclude.c: Use `""', not `<>' to #include non-system header
111116         files.
111117         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
111118         and strncasecmp as r-values.  Unixware didn't have declarations.
111120 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111122         * lib/xstrtol.h: Add copyright notice.
111123         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
111124         LONGINT_INVALID_SUFFIX_CHAR.
111126 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111128         * lib/xstrtol.c (strtoimax): New decl.
111130 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111132         * lib/xgetcwd.c: Don't include pathmax.h.
111133         Include stdlib.h and unistd.h if available.
111134         Include xalloc.h.
111135         (xmalloc, xstrdup, free): Remove decls.
111136         (xgetcwd): Don't assume sizes fit in unsigned.
111137         Check for overflow when computing sizes.
111138         Simplify reallocation code.
111140 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111142         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
111143         a directory's st_size can have an arbitrary value, so the old
111144         usage could waste an arbitrary amount of memory.  All uses
111145         changed.
111146         * lib/savedir.h: Update prototype.
111148 2001-08-31  Paul Eggert  <eggert@twinsun.com>
111150         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
111152         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
111153         old strtoimax.c.
111155         Also, make the following further changes to make this file's
111156         configuration more similar to that of strtol.c:
111157         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
111158         (strtoumax, uintmax_t, strtoull, strtol): Remove.
111159         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
111160         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
111161         changed to signed values.
111163         And make the following changes as well:
111164         Fix copyright notice, as 1999 was missing.
111165         (verify): New macro.
111166         (strtoimax): Check sizes at compile-time, not run-time.
111167         Prefer strtol to strtoll if both work.
111168         (main): Remove; it was not that useful and was a pain to maintain.
111170         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
111172 2001-08-31  Jim Meyering  <meyering@lucent.com>
111174         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
111175         Use an initial, malloc'd, buffer of length 128 rather than
111176         a statically allocated one of length 1024.
111178 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111180         Simplify code, partly by assuming autoconf 2.52 semantics.
111182         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
111184         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
111185         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
111186         All uses removed.
111187         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
111188         Move AC_REQUIRE to next-to-top level, to avoid confusion.
111189         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
111190         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
111191         jm_AC_HEADER_INTTYPES_H.
111192         * m4/jm-macros.m4 (jm_MACROS): Likewise.
111194         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
111196         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
111197         Quote first arg of AC_DEFUN.
111198         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
111199         since they are needed to parse the include file even if we need
111200         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
111201         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
111202         but with opposite signedness.
111204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111206         Merge 'exclude' changes from tar 1.13.22.
111207         This fixes one or two unlikely storage allocation overflow bugs,
111208         but doesn't change user-visible behavior otherwise.
111210 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111212         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
111213         (jm_PREREQ_EXCLUDE): New macro.
111215 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111217         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
111218         tm to be declared.
111220 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111222         * lib/hash.c: Remove '2001' from copyright notice.
111224 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111226         * lib/full-write.h: New file.
111227         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
111228         * lib/full-write.c: Correct credits, as cccp.c no longer
111229         exists and anyway it was so heavily changed from the old cccp
111230         code as to be unrecognizable.  Include full-write.h.
111231         (full_write): Return size_t, with short writes meaning failure.
111232         All callers changed.  This fixes a bug with large buffers
111233         on 64-bit hosts.
111234         * lib/utime.c: Include full-write.h.
111236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111238         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
111239         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
111240         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
111241         Include if available.
111242         (<xalloc.h>): Include
111243         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
111244         (verify): New macro.  Use it to verify that EXCLUDE macros do not
111245         collide with FNM macros.
111246         (struct patopts): New struct.
111247         (struct exclude): Use it, as exclude patterns now come with options.
111248         (new_exclude): Support above changes.
111249         (new_exclude, add_exclude_file):
111250         Initial size must now be a power of two to simplify overflow checking.
111251         (free_exclude, fnmatch_no_wildcards): New function.
111252         (excluded_filename): No longer requires options arg, as the options
111253         are determined by add_exclude.  Now returns bool, not int.
111254         (excluded_filename, add_exclude):
111255         Add support for the fancy new exclusion options.
111256         (add_exclude, add_exclude_file): Now takes int options arg.
111257         Check for arithmetic overflow when computing sizes.
111258         (add_exclude_file): xrealloc might modify errno, so don't
111259         realloc until after errno might be used.
111261         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
111262         New macros.
111263         (free_exclude): New decl.
111264         (add_exclude, add_exclude_file): Now takes int options arg.
111265         (excluded_filename): No longer requires options arg, as the options
111266         are determined by add_exclude.  Now returns bool, not int.
111268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111270         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
111272 2001-08-27  Jim Meyering  <meyering@lucent.com>
111274         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
111276         * lib/version-etc.c (N_): Remove definition.
111277         Revert most of last change.
111278         Instead, simply don't mark the `Copyright...' string for translation.
111279         Based on advice from Paul Eggert.
111281         * lib/strtoxmax.c: Tweak comment.
111283 2001-08-26  Jim Meyering  <meyering@lucent.com>
111285         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
111287         * m4/xstrtoimax.m4: New file.
111288         * m4/xstrtoumax.m4: Add comments explaining why we
111289         AC_REPLACE_FUNCS(strtol).
111291 2001-08-26  Jim Meyering  <meyering@lucent.com>
111293         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
111294         of copyright with `%s' so translators don't get an untranslated
111295         message in 2002.
111296         (COPYRIGHT_YEAR): Define.
111297         (version_etc): Use fprintf rather than fputs.
111298         Suggestion from Ulrich Drepper.
111300         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
111302         * lib/strtoll.c: New file, from GNU libc.
111303         * lib/xstrtoimax.c: New file.
111305         * lib/xstrtol.h: Add xstrtoimax.
111306         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
111307         * lib/strtoimax.c: New file.  Likewise, but first define
111308         STRTOUXMAX_SIGNED.
111310         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
111311         ...
111312         * lib/strtoxmax.c: ... then renamed to this.
111314 2001-08-18  Paul Eggert  <eggert@twinsun.com>
111316         * m4/inttypes.m4: Add AC_PREREQ(2.13).
111317         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
111318         (jm_AC_TYPE_INTMAX_T): New macro.
111319         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
111321         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
111323         * m4/longlong.m4: Renamed from ulonglong.m4.
111324         * m4/inttypes.m4: Renamed from inttypes_h.m4.
111325         * m4/uintmax_t.m4: Removed.
111327 2001-08-13  Paul Eggert  <eggert@twinsun.com>
111329         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
111330         Port to Solaris 8, where 'sed' requires a space after the 'r'
111331         command, and where sh dislikes "$/".  Clean up the spacing a bit.
111332         Redirect output to $tmp just once.
111334 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
111336         * lib/addext.c (<errno.h>): Include.
111337         (errno): Declare if not defined.
111338         (addext): Work correctly when pathconf returns -1 and leaves
111339         errno alone because there is no limit.  Also, work even if
111340         pathconf returns a value greater than SIZE_MAX.
111342 2001-08-12  Jim Meyering  <meyering@lucent.com>
111344         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
111345         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
111346         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
111347         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
111348         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
111349         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
111350         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
111351         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
111352         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
111353         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
111354         utime.m4, utimes.m4, xstrtoumax.m4:
111355         Quote the first argument in each use of AC_DEFUN.
111357 2001-08-12  Jim Meyering  <meyering@lucent.com>
111359         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
111360         Simply `return getcwd (NULL, 0);'.
111361         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
111362         Use 1300 as initial value for length, not PATH_MAX.
111364         * lib/pathmax.h: Clean up cpp syntax.
111366 2001-08-12  Jim Meyering  <meyering@lucent.com>
111368         * lib/gettimeofday.c: New file.
111369         * lib/gtod.h: New file.
111370         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
111372 2001-08-05  Jim Meyering  <meyering@lucent.com>
111374         * m4/jm-macros.m4: Require autoconf-2.52.
111376 2001-08-04  Jim Meyering  <meyering@lucent.com>
111378         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
111379         stmt, to get in sync with glibc.
111381 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111383         The following changes are from gettext 0.10.39 as maintained by
111384         Bruno Haible.
111386         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
111387         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
111388         with inverted sense.  All uses changed.
111390         * lib/mbswidth.c: Don't include <limits.h>.
111391         Include <stdlib.h> and <string.h> unconditionally.
111392         (iswcntrl, mbsinit, ISCNTRL): New macros.
111393         (mbsnwidth): Use K&R style function declarations.
111394         Don't bother checking for MB_LEN_MAX == 1, since the compiler
111395         can optimize it when MB_CUR_MAX == 1.
111396         The width of control characters is zero, not 1.
111398 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111400         The following changes are from gettext 0.10.39 as maintained by
111401         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
111403         * m4/codeset.m4: Upgrade to serial AM1.
111404         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
111405         all uses changed.  Quote first arg of AC_DEFUN.
111406         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
111408         * m4/iconv.m4: Upgrade to serial AM2.
111409         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
111410         Add --with-libconv-prefix.
111411         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
111412         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
111413         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
111414         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
111415         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
111417         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
111418         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
111419         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
111420         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
111421         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
111422         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
111423         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
111424         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
111425         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111427         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
111428         string.h any more.
111430         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
111431         not the default value.
111433         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
111434         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
111435         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
111436         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
111437         Also check for iswcntrl, used for wcwidth fallback.
111438         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
111439         to Autoconf 2.13.
111441 2001-08-03  Jim Meyering  <meyering@lucent.com>
111443         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
111444         as it was in the original.  Reported by Paul Eggert.
111446 2001-07-16  Jim Meyering  <meyering@lucent.com>
111448         * m4/gettimeofday.m4: New file.
111449         Prompted by a report from Bernhard Baehr.
111451 2001-07-15  Jim Meyering  <meyering@lucent.com>
111453         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
111454         stuff. Now it's in ../Makefile.cfg.
111456 2001-07-15  Jim Meyering  <meyering@lucent.com>
111458         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
111459         (BUILT_SOURCES): Add unlocked-io.h.
111460         (io_functions): Define.
111461         (unlocked-io.h): New rule.
111462         (DISTCLEANFILES): Add unlocked-io.h.
111463         (all-local): Depend on unlocked-io.h, to ensure it is created.
111465         * lib/unlocked-io.hin: New file
111467         * lib/regex.c: Update from glibc.
111469 2001-07-05  Jim Meyering  <meyering@lucent.com>
111471         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
111472         recommendation.
111473         (libfetish_a_SOURCES): Put all .h files here instead.
111474         Remove a thus-exposed (better checks in automake) duplicate and
111475         two unnecessary .h files.
111477 2001-07-04  Jim Meyering  <meyering@lucent.com>
111479         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
111480         that generates jm-glibc-io.m4 so that it doesn't trigger any make
111481         distcheck failure.
111483 2001-07-02  Jim Meyering  <meyering@lucent.com>
111485         The following changes were prompted by suggestions from Bruno Haible.
111487         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
111488         is now generated.
111489         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
111490         definition of EXTRA_DIST.
111491         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
111492         ensure that the generated file is created/updated whenever the list
111493         of $(unlocked_functions) is changed.
111494         (jm-glibc-io.m4): New rule.
111495         (unlocked-io.h): New rule -- currently unused.
111497 2001-06-24  Jim Meyering  <meyering@lucent.com>
111499         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
111500         unmatched right bracket, rather than kludging it with an extra,
111501         falsely-matching quote in a comment.  Patch by Akim Demaille.
111503 2001-06-11  Jim Meyering  <meyering@lucent.com>
111505         * lib/regex.c: Update from GNU libc.
111507 2001-05-27  Jim Meyering  <meyering@lucent.com>
111509         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
111510         Check for ut_type in struct utmp.
111512 2001-05-27  Jim Meyering  <meyering@lucent.com>
111514         * lib/readutmp.h (UT_TYPE): Define.
111516 2001-05-24  Jim Meyering  <meyering@lucent.com>
111518         * lib/argmatch.c: Include "quote.h".
111519         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
111520         quote function.  Reported by Göran Uddeborg.
111522 2001-05-22  Jim Meyering  <meyering@lucent.com>
111524         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
111525         now that we use the package-supplied version unconditionally.
111526         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
111528 2001-05-21  Jim Meyering  <meyering@lucent.com>
111530         * m4/regex.m4: Change a couple backticks to single quotes to avoid
111531         shell syntax errors.
111533 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
111535         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
111537 2001-05-20  Paul Eggert  <eggert@twinsun.com>
111539         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
111540         Don't bother to check library strftime, since
111541         we'll be using our own my_strftime function anyway.
111542         Define my_strftime instead of strftime.
111544 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
111546         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
111547         which is not yet declared.
111549 2001-05-15  Jim Meyering  <meyering@lucent.com>
111551         * m4/regex.m4: Use proper quoting so brackets appear in the test
111552         program.
111553         Reported by, and with help from, Bruno Haible.
111555 2001-05-13  Jim Meyering  <meyering@lucent.com>
111557         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
111558         undefined.
111560 2001-05-11  Paul Eggert  <eggert@twinsun.com>
111562         dirname code cleanup.  base_name now behaves more compatibly
111563         with POSIX basename when given file names that have trailing
111564         slashes, and similarly for dir_name.  Add new primitives
111565         base_len and dir_len.  Put the directory-name-related decls
111566         into dirname.h.
111568         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
111569         * lib/backupfile.c (base_name): Likewise.
111570         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
111571         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
111572         * lib/makepath.c (strip_trailing_slashes): Likewise.
111573         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
111574         ISSLASH): Likewise.
111575         * lib/rename.c (strip_trailing_slashes): Likewise.
111576         * lib/same.c (base_name): Likewise.
111577         * lib/stripslash.c (ISSLASH): Likewise.
111579         * lib/addext.c: Include <dirname.h> after size_t is defined.
111580         * lib/backupfile.c: Likewise.
111582         * lib/addext.c (addext): Use base_len to trim redundant
111583         trailing slashes instead of doing it ourselves.
111584         But do not trim the last slash if it is not redundant.
111586         * lib/backupfile.c (find_backup_file_name,
111587         max_backup_version): Use base_len instead of rolling it ourselves.
111588         Handle the case of "" and (on DOS) "C:" correctly.
111590         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
111591         needed. Include <string.h>, <dirname.h>.
111592         (base_name): Allow file names ending in slashes, other than names
111593         that are all slashes.  In this case, return the basename followed
111594         by the slashes.  This is more general, and can be used in places
111595         where the original base_name purposely had an assertion failure.
111596         (base_len): New function.
111598         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
111599         Do not include <assert.h>; no longer needed.
111600         Include xalloc.h.
111601         (memrchr): Remove decl.
111602         (dir_name_r): Remove.
111603         (dir_len): Renamed from dirlen.  All callers changed.
111604         Rewrite in terms of base_name, for simplicity and consistency.
111605         (dir_name): Never return NULL.  All callers changed.
111606         Do not include <stdlib.h> in test program; no longer needed.
111607         return 0; is fine for test program.
111609         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
111610         New macros.
111611         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
111613         * lib/path-concat.c (path_concat): Use base_len to compute
111614         base length, not strlen; this means we cannot rely on memcpy
111615         to null-terminate.
111617         * lib/same.c (STREQ): Remove.
111618         (same_name): Handle the case where the basename ends in trailing '/'.
111620         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
111621         a slash was stripped.  Do not strip the last slash after a
111622         file system prefix.
111624 2001-05-11  Paul Eggert  <eggert@twinsun.com>
111626         * lib/Makefile.am (libfetish_a_SOURCES):
111627         Add strftime.c, since we now compile it on all hosts.
111629         * lib/strftime.c (my_strftime):
111630         Define to nstrftime if emacs, but only if my_strftime is not defined.
111631         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
111632         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
111633         Add one more extra argument: a nanoseconds value.
111634         All uses changed.
111635         (ns): New macro.
111636         (my_strftime function): Add %N format.
111637         (emacs_strftimeu): Renamed from emacs_strftime,
111638         with extra ut argument.
111640 2001-05-09  Paul Eggert  <eggert@twinsun.com>
111642         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
111644 2001-04-21  Jim Meyering  <meyering@lucent.com>
111646         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
111647         doesn't interfere.
111649 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
111651         * m4/ftruncate.m4: Check for chsize.
111652         Link with ftruncate.o unconditionally if ftruncate is missing.
111653         This was required when cross-compiling to i586-mingw32msvc.
111655 2001-04-08  Jim Meyering  <meyering@lucent.com>
111657         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
111658         recomputed; that's necessary when the offset spans a DST transition.
111659         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
111661 2001-04-02  Jim Meyering  <meyering@lucent.com>
111663         * lib/regex.h, regex.c: Update from GNU libc.
111665 2001-03-24  Jim Meyering  <meyering@lucent.com>
111667         * m4/jm-macros.m4: Require autoconf-2.49d.
111669 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
111671         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
111673 2001-03-19  Paul Eggert  <eggert@twinsun.com>
111675         * lib/version-etc.c (version_etc_copyright): Update to 2001.
111677 2001-03-17  Jim Meyering  <meyering@lucent.com>
111679         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
111680         now that the version in autoconf is equivalent.
111681         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
111683         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
111684         Suggestion from Akim Demaille.
111686         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
111687         (jm_PREREQ_TEMPNAME): New function.
111689 2001-03-16  Paul Eggert  <eggert@twinsun.com>
111691         * lib/tempname.c (uint64_t): Define to uintmax_t if
111692         not defined, and if UINT64_MAX is not defined.
111693         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
111694         Reported by John David Anglin.
111696 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
111698         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
111699         resolve alias if codeset is empty.
111700         * lib/config.charset (BeOS): Use wildcard syntax.
111702 2001-03-13  Jim Meyering  <meyering@lucent.com>
111704         * lib/path-concat.c (path_concat)
111705         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
111706         concatenating e.g., `C:' and `foo'.
111707         From Bruno Haible.
111709 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
111711         * lib/localcharset.c (locale_charset): Don't use
111712         setlocale(LC_CTYPE,NULL). Don't return NULL.
111713         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
111715 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
111717         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
111718         support for DOS/DJGPP.
111720 2001-03-01  Paul Eggert  <eggert@twinsun.com>
111722         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
111723         lacks mkstemp.  Compile our own tempname.c if we compile our own
111724         mkstemp.c, as mkstemp relies on tempname.
111726 2001-03-01  Jim Meyering  <meyering@lucent.com>
111728         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
111729         AH_VERBATIM really does output its argument verbatim.
111731 2001-02-28  Paul Eggert  <eggert@twinsun.com>
111733         * lib/Makefile.am (libfetish_a_SOURCES):
111734         Add dup-safer.c, fopen-safer.c.
111735         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
111737         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
111738         * lib/unistd-safer.h: New files.
111740 2001-02-25  Paul Eggert  <eggert@twinsun.com>
111742         The mkstemp replacement is taken from glibc 2.2.2, with some
111743         portability fixes for use outside glibc, as follows:
111745         * lib/tempname.c (struct_stat64): New macro.
111746         (direxists, __gen_tempname): Use it.
111747         This avoids a portability problem with Solaris 8.
111749         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
111750         (<stddef.h>, <stdint.h>, <string.h>):
111751         Include only if STDC_HEADERS || _LIBC.
111752         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
111753         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
111754         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
111755         (__set_errno): Define this macro if <errno.h> doesn't.
111756         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
111757         Define these macros if <stdio.h> doesn't.
111758         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
111759         Define these macros if <sys/stat.h>
111760         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
111761         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
111762         __xstat64): Define if not _LIBC.
111763         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
111764         (__gen_tempname): Invoke gettimeofday only if
111765         HAVE_GETTIMEOFDAY || _LIBC;
111766         otherwise, fall back on plain "time".
111767         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
111769         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
111771         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
111773 2001-02-18  Paul Eggert  <eggert@twinsun.com>
111775         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
111777 2001-02-17  Paul Eggert  <eggert@twinsun.com>
111779         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
111780         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
111781         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
111782         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111784 2001-02-17  Paul Eggert  <eggert@twinsun.com>
111786         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
111787         Remove workaround macros for hosts that have mbrtowc but not
111788         mbstate_t, as we now insist on proper declarations for both
111789         before using mbrtowc.
111791 2001-02-17  Jim Meyering  <meyering@lucent.com>
111793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
111794         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
111795         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
111796         UnixWare 7.1.1.
111798         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
111799         rather than AC_CACHE_VAL.
111801 2001-02-17  Jim Meyering  <meyering@lucent.com>
111803         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
111804         around included file name.
111806         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
111808         * lib/strftime.c: Update from GNU libc (the only changes were to
111809         comments).
111811 2001-02-17  Jim Meyering  <meyering@lucent.com>
111813         * lib/regex.c: Update from libc.
111815 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
111817         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
111818         clash.
111820 2001-02-16  Paul Eggert  <eggert@twinsun.com>
111822         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
111823         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
111824         Reported by Mark Hounschell via Paul Eggert.
111826 2001-02-07  Jim Meyering  <meyering@lucent.com>
111828         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
111830 2001-02-05  Jim Meyering  <meyering@lucent.com>
111832         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
111833         it includes the patch required for `large file' support with at least
111834         HP-UX's 10.20 /bin/cc.
111836 2001-02-03  Jim Meyering  <meyering@lucent.com>
111838         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
111839         AS_IF, now that it works once again (mysteriously).
111840         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
111842 2001-01-30  Jim Meyering  <meyering@lucent.com>
111844         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
111845         * m4/chown.m4: Rename conftestchown to conftest.chown.
111846         * m4/rename.m4: s/conftestdir/conftest.d1/ and
111847         s/conftestdir2/conftest.d2/.
111848         * m4/utimes.m4: s/conftestdata/conftest.data/
111849         Inspired by Pavel Roskin's change in autoconf.
111851 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
111853         * lib/config.charset: Update for FreeBSD 4.2.
111855 2001-01-27  Jim Meyering  <meyering@lucent.com>
111857         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
111858         a use of AS_IF.
111859         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
111861 2001-01-26  Jim Meyering  <meyering@lucent.com>
111863         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
111864         quotearg.c includes it.
111866 2001-01-26  Jim Meyering  <meyering@lucent.com>
111868         * lib/quotearg.c: Include stddef.h.
111869         * lib/quote.c: Include stddef.h.
111870         Reported by Axel Kittenberger.
111872         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
111873         line in double quotes so that it evokes a better diagnostic.
111874         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
111875         Reported by Axel Kittenberger.
111877 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
111879         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
111880         as if it was a `charset'.
111882 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
111884         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
111885         has const.
111887 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
111889         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
111890         to avoid a warning.  Add back 'const' to inptr.
111892 2001-01-20  Jim Meyering  <meyering@lucent.com>
111894         Be sure that headers are checked before used in code compiled
111895         for the type checks.
111896         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
111897         In place of that, invoke jm_CHECK_ALL_TYPES.
111898         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
111899         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
111900         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
111901         The check for ssize_t was mistakenly run before the test for unistd.h.
111903         The configure-time check for stdbool.h was missing.
111904         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
111905         (jm_PREREQ_HASH): New function.
111907 2001-01-17  Jim Meyering  <meyering@lucent.com>
111909         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
111910         for autoconf-2.49c.
111911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
111913 2001-01-16  Jim Meyering  <meyering@lucent.com>
111915         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
111916         From Bruno Haible.
111918 2001-01-14  Jim Meyering  <meyering@lucent.com>
111920         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
111921         foo and bar.  Create conftestdir/ in the script, not in the C code.
111922         Remove directories in the script, not in the C code.
111923         Remove conftestdir{,2} before trying to create the directory.
111924         Make the entire configure script fail if the mkdir fails.
111926 2001-01-14  Jim Meyering  <meyering@lucent.com>
111928         * lib/rename.c: New file.  From Volker Borchert.
111929         Include stdlib.h, string.h or strings.h, and xalloc.h.
111930         Use strip_trailing_slashes rather than open-coding it.
111932 2001-01-03  Paul Eggert  <eggert@twinsun.com>
111934         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
111936 2001-01-03  Jim Meyering  <meyering@lucent.com>
111938         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
111939         of local `inptr' to avoid warning with some system declarations of
111940         iconv.
111942 2001-01-02  Volker Borchert  <bt@teknon.de>
111944         * m4/rename.m4: New file.
111945         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
111947 2001-01-01  Jim Meyering  <meyering@lucent.com>
111949         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
111950         even on systems with utmpx.h.  It's necessary for the declaration of
111951         utmp's ut_user member.  Reported by Andreas Jaeger.
111953         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
111954         available. They are required for the declarations of getgrgid and
111955         getpwuid resp.
111956         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
111957         Reported by Andreas Jaeger.
111959 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
111961         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
111962         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
111963         so `make install' also works in VPATH builds.
111965 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
111967         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
111968         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
111969         can be used in subdirectories.
111971 2000-12-29  Paul Eggert  <eggert@twinsun.com>
111973         * lib/modechange.c: Do not assume that mode_t uses the
111974         traditional octal encoding.  E.g. "chmod 1 FOO" should set
111975         the other-execute bit of FOO even if S_IXOTH != 1.
111977         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
111978         WOTH, XOTH, ALLM): New macros.
111979         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
111980          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
111981         Use them.
111982         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
111983         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
111984         (mode_compile):
111985         No need to use uintmax_t; unsigned long is long enough.
111986         Don't bother to get suffix since we don't use it.
111988 2000-12-26  Jim Meyering  <meyering@lucent.com>
111990         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
111991         better with autoheader.
111993 2000-12-24  Jim Meyering  <meyering@lucent.com>
111995         * lib/hash.c (is_prime): Return explicit boolean values.
111996         (hash_get_first): Return NULL to appease Irix5.6's 89.
111997         Reported by Nelson Beebe.
111999 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
112001         * lib/localcharset.c (locale_charset): Add support for Win32.
112003 2000-12-18  Paul Eggert  <eggert@twinsun.com>
112005         * lib/physmem.h, lib/physmem.c: New files.
112007         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
112008         (noinst_HEADERS): Add physmem.h.
112010         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
112011         't' for compatibility with Solaris 8 sort.
112013 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
112015         * lib/config.charset: Add support for BeOS.
112017 2000-12-17  Jim Meyering  <meyering@lucent.com>
112019         * m4/dos.m4 (jm_AC_DOS): New file and macro.
112020         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
112022 2000-12-16  Jim Meyering  <meyering@lucent.com>
112024         This bug had a serious impact on chown: `chown N:M FILE' (for integer
112025         N and M) would have treated it like `chown N:N FILE'.
112027         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
112029 2000-12-16  Jim Meyering  <meyering@lucent.com>
112031         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
112032         SHELLS_FILE to a file name that's useful on djgpp systems.
112033         Include stdlib.h.
112034         (ADDITIONAL_DEFAULT_SHELLS): Define.
112035         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
112036         Based mostly on a patch from Prashant TR.
112038 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
112040         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
112041         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
112042         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
112044 2000-12-08  Andreas Schwab  <schwab@suse.de>
112046         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
112047         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
112049 2000-12-07  Jim Meyering  <meyering@lucent.com>
112051         * lib/stripslash.c (ISSLASH): Define.
112052         (strip_trailing_slashes): Use ISSLASH rather than comparing against
112053         `/'.
112054         From Prashant TR.
112056         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
112057         (dir_name_r): Declare this function as static.
112058         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
112059         manifest itself on a name containing a mix of slashes and
112060         backslashes.
112061         Make this function work with names starting with a DOS-style
112062         drive letter and colon prefix.
112063         (dir_name): Append `.' if necessary.
112064         Based mostly on patches from Prashant TR and Eli Zaretskii.
112066         * lib/dirname.h (dir_name_r): Remove prototype.
112068 2000-12-06  Paul Eggert  <eggert@twinsun.com>
112070         * m4/off_t-format.m4: Remove this file.
112071         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
112073 2000-12-06  Jim Meyering  <meyering@lucent.com>
112075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
112076         replacement strtoull, we may well need the replacement strtoul, too.
112077         Check for declarations of strtoul and strtoull.
112078         Check for strtol.  Mainly as a cue to cause automake to include
112079         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
112080         Check for limits.h -- strtol.c needs it.
112082 2000-12-05  Jim Meyering  <meyering@lucent.com>
112084         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
112086 2000-12-04  Jim Meyering  <meyering@lucent.com>
112088         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
112089         Also include memory.h, stdlib.h, unistd.h if appropriate.
112090         Reported by Andreas Jaeger (conflicting declaration of malloc).
112092 2000-12-02  Jim Meyering  <meyering@lucent.com>
112094         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
112095         * m4/jm-macros.m4 (jm_MACROS): require it.
112097 2000-12-02  Jim Meyering  <meyering@lucent.com>
112099         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
112101 2000-12-01  Paul Eggert  <eggert@twinsun.com>
112103         * lib/memrchr.c: Include <config.h> before any system include file.
112105 2000-11-30  Jim Meyering  <meyering@lucent.com>
112107         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
112109 2000-11-30  Jim Meyering  <meyering@lucent.com>
112111         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
112113 2000-11-29  Paul Eggert  <eggert@twinsun.com>
112115         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
112117 2000-11-26  Jim Meyering  <meyering@lucent.com>
112119         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
112121 2000-11-22  Paul Eggert  <eggert@twinsun.com>
112123         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
112124         size of (size_t) -1; it's not portable.
112126 2000-11-17  Jim Meyering  <meyering@lucent.com>
112128         * lib/strstr.c: Update from GNU libc.
112130 2000-11-17  Akim Demaille  <akim@epita.fr>
112132         * lib/obstack.h: Formatting changes.
112133         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
112134         prevent type checking.
112135         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
112136         cast the value to (void *): assigning a `foo *' to a `void *'
112137         variable is valid.
112138         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
112140 2000-11-16  Jim Meyering  <meyering@lucent.com>
112142         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
112144 2000-11-11  Jim Meyering  <meyering@lucent.com>
112146         * lib/error.c: Add a couple #includes, merging from GNU libc version.
112148 2000-11-10  Jim Meyering  <meyering@lucent.com>
112150         * lib/obstack.h: Update from GNU libc.
112151         * lib/obstack.c: Likewise.
112153 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
112155         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
112157 2000-11-06  Paul Eggert  <eggert@twinsun.com>
112159         * lib/getusershell.c (setusershell): Use rewind rather than
112160         fseek/fseeko, to avoid configuration hassles with fseeko.
112161         Don't bother opening SHELLS_FILE if shellstream is NULL;
112162         it's not necessary.
112164 2000-11-05  Jim Meyering  <meyering@lucent.com>
112166         * lib/makepath.h (make_dir): Declare.
112167         * lib/makepath.c (make_dir): Remove `static' attribute.
112168         Tweak a comment.
112170 2000-11-04  Jim Meyering  <meyering@lucent.com>
112172         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
112174 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
112176         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
112177         last one in a bucket, advance to the next bucket.
112179 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
112181         * lib/fnmatch.c: Do not comment out all the code if we are using
112182         the GNU C library, because in some cases we are replacing buggy
112183         code in the GNU C library itself.
112185 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
112187         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
112188         (regex_compile): Catch bogus \(\1\).
112190 2000-10-30  Paul Eggert  <eggert@twinsun.com>
112192         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
112193         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
112194         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
112196 2000-10-30  Paul Eggert  <eggert@twinsun.com>
112198         * lib/error.h, getline.h, modechange.h:
112199         Remove "2000" from Copyright line, as the file hasn't been
112200         changed this year other than in the copyright notice.
112202         * lib/xalloc.h: Add "2000" to Copyright line, as this file
112203         was changed this year.
112205 2000-10-29  Jim Meyering  <meyering@lucent.com>
112207         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
112208         renaming.
112209         * m4/ls-mntd-fs.m4: Likewise
112211 2000-10-29  Jim Meyering  <meyering@lucent.com>
112213         * lib/xstat.in: Fix grammar in comment.
112215 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
112217         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
112218         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
112219         doesn't define __restrict_arr.
112221 2000-10-28  Jim Meyering  <meyering@lucent.com>
112223         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
112224         (jm_PREREQ_MEMCHR): New function.
112226 2000-10-28  Jim Meyering  <meyering@lucent.com>
112228         * lib/memchr.c: Update from libc.
112229         Adjust for portability:
112230         [HAVE_STDLIB_H]: Include stdlib.h.
112231         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
112232         Undef __memchr, too.
112233         [!weak_alias]: Define __memchr to memchr.
112235         * lib/regex.c: Update from libc.
112236         * lib/regex.h: Likewise.
112237         * lib/getopt1.c: Likewise.
112238         * lib/memcmp.c: Likewise.
112240         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
112241         Avoid using fseek, when possible -- it's broken by design.
112242         Patch by Ulrich Drepper.
112244 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
112246         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
112247         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
112248         Giving in to popular pressure to shut up the compiler with casts.
112250 2000-10-26  Jim Meyering  <meyering@lucent.com>
112252         * lib/strftime.c: Update from libc.
112254 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
112256         * regex.c: More `unsigned char' -> `re_char' changes.
112257         Also change several `int' into `re_wchar_t'.
112258         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
112259         (PUSH_FAILURE_POINTER): Don't cast any more.
112260         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
112261         We want GCC to complain, since this piece of code makes
112262         re_match non-reentrant, which *should* be fixed.
112263         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
112264         (EXTEND_BUFFER): Use RETALLOC.
112265         (SET_LIST_BIT): Don't cast.
112266         (re_wchar_t): New type.
112267         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
112268         that those two functions will always properly return.
112269         (IMMEDIATE_QUIT_CHECK): Cast to void.
112270         (analyse_first): Use recursion rather than an explicit stack.
112271         (re_compile_fastmap): Can't fail anymore.
112272         (re_search_2): Don't check re_compile_fastmap for failure.
112273         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
112274         Now also sets the new value (passed in a new argument).
112275         (re_match_2_internal): Use it.
112276         Also, use a new var `reg' of type size_t when looping through regs
112277         rather than reuse the inappropriate `mcnt'.
112279 2000-10-25  Jim Meyering  <meyering@lucent.com>
112281         * lib/obstack.c: Update from libc.
112283 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
112285         * regex.c (regex_compile): Change the way of handling a range from
112286         a char less than 256 to a char not less than 256.
112288 2000-10-24  Andrew Innes  <andrewi@gnu.org>
112290         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
112291         NT-Emacs only.
112292         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
112293         so that re_search functions only quit when callers expect them to.
112295 2000-10-23  Jim Meyering  <meyering@lucent.com>
112297         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
112298         wrong.  That set_locale call must not have any side effects.
112299         From Paul Eggert.
112301 2000-10-22  Jim Meyering  <meyering@lucent.com>
112303         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
112304         [CYCLIC]: Remove now-unused definition.
112306         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
112307         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
112308         Suggestion from Ulrich Drepper.
112310 2000-10-21  Jim Meyering  <meyering@lucent.com>
112312         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
112313         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
112314         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
112316 2000-10-21  Jim Meyering  <meyering@lucent.com>
112318         * lib/dirname.c (memrchr): Declare if necessary.
112319         (dir_name): Remove the restriction that there be no
112320         trailing slashes.  Now, this code skips past them, effectively
112321         ignoring them.
112322         [TEST_DIRNAME] (main): New unit tests.
112324         * lib/memrchr.c: New file from GNU libc.
112325         Undef __memrchr, too.
112326         [!weak_alias]: Define __memrchr to memrchr.
112327         Guard weak_alias use with `#ifdef weak_alias'.
112329 2000-10-21  Jim Meyering  <meyering@lucent.com>
112331         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
112332         (dir_name): Use dir_name_r.
112333         * lib/dirname.h (dir_name_r): Declare it.
112335 2000-10-17  Jim Meyering  <meyering@lucent.com>
112337         * lib/quote.h (PARAMS): Define and use.
112338         Reported by Akim Demaille.
112340         * lib/getopt.c: Update from libc.
112342 2000-10-16  Jim Meyering  <meyering@lucent.com>
112344         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
112345         setlocale.
112346         From Jan Fedak.
112348 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
112350         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
112352 2000-09-25  Jim Meyering  <meyering@lucent.com>
112354         * lib/md5.h (rol): Define (from GnuPG).
112356         * lib/sha.c: Give credit (GnuPG) where due.
112357         (M): Use rol rather than open-coding it.
112358         Add a FIXME comment.
112360 2000-09-21  Jim Meyering  <meyering@lucent.com>
112362         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
112363         Reported by Michael Stone.
112365 2000-09-20  Jim Meyering  <meyering@lucent.com>
112367         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
112368         (noinst_HEADERS): Add sha.h.
112369         Based on code from Scott G. Miller and from GnuPG.
112371 2000-09-18  Jim Meyering  <meyering@lucent.com>
112373         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
112374         LIBS. Otherwise, everyone ends up linking with -lelf for some
112375         configurations.
112376         Reported by Mike Stone.
112378 2000-09-15  Jim Meyering  <meyering@lucent.com>
112380         * lib/regex.c: Update from libc.
112382 2000-09-10  Jim Meyering  <meyering@lucent.com>
112384         * lib/getopt.c (_getopt_internal): Update from glibc.
112386 2000-09-09  Jim Meyering  <meyering@lucent.com>
112388         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
112389         think it should be used as a general replacement for isascii.
112390         * lib/fnmatch.c: Likewise.
112391         * lib/mbswidth.c: Likewise
112392         * lib/regex.c: Likewise.
112394         Don't use atoi.
112395         * lib/userspec.c: Include sys/param.h and limits.h.
112396         Include xstrtol.h.
112397         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112398         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
112399         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
112400         UID, GID.  Check range.
112402 2000-09-06  Jim Meyering  <meyering@lucent.com>
112404         * lib/getopt.c (_getopt_internal): Update from glibc.
112406 2000-08-30  Jim Meyering  <meyering@lucent.com>
112408         * lib/strftime.c: Merge in changes from GNU libc.
112410 2000-08-26  Jim Meyering  <meyering@lucent.com>
112412         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
112413         * m4/fpending.m4: New file.
112415 2000-08-26  Jim Meyering  <meyering@lucent.com>
112417         * lib/closeout.c: Include "__fpending.h".
112418         (close_stdout_status): Return right away if there's nothing to flush.
112420         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
112421         * lib/__fpending.c: New file.
112422         * lib/__fpending.h: New file.
112424 2000-08-20  Jim Meyering  <meyering@lucent.com>
112426         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
112427         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
112428         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
112430 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
112432         Improve fileutils installation on systems where running
112433         programs (like install) can't be unlinked.
112434         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
112435         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
112437 2000-08-07  Paul Eggert  <eggert@twinsun.com>
112439         Standardize on "memory exhausted" instead of "Memory exhausted"
112440         or "virtual memory exhausted".
112441         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
112442         "virtual memory exhausted".
112443         * lib/same.c (same_name): Invoke xalloc_die instead of printing
112444         our own message.
112445         * lib/userspec.c (parse_user_spec): Likewise.
112446         * lib/bumpalloc.h: comment fix
112447         * lib/same.c, userspec.c: Include xalloc.h.
112449         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
112450         not char *const and pointing to a constant array.
112451         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
112452         (xrealloc): Comment fix.
112454         * lib/userspec.c (parse_user_spec):
112455         Don't translate a message until just before returning,
112456         to avoid unnecessary translation.
112458 2000-08-07  Jim Meyering  <meyering@lucent.com>
112460         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
112461         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
112462         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
112463         getgroups.c, gethostname.c, getopt.h, group-member.c,
112464         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
112465         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
112466         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
112467         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
112468         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
112469         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
112470         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
112471         yesno.c: Back out Copyright date changes for each file with no change
112472         this year.  This eases coordination with other programs using the same
112473         source code modules.  From Paul Eggert.
112475 2000-08-06  Paul Eggert  <eggert@twinsun.com>
112477         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
112478         not char, for compatibility with glibc 2.1.3 strftime.c.
112480 2000-08-03  Greg McGary  <greg@mcgary.org>
112482         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
112483         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
112484         (EXTEND_BUFFER): Use them.
112486 2000-08-01  Jim Meyering  <meyering@lucent.com>
112488         * lib/dirname.c (ISSLASH): Define.
112489         (BACKSLASH_IS_PATH_SEPARATOR): Define.
112490         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
112491         both `\' and `/' may be use as path separators.
112492         Based on a patch from Prashant TR.
112494 2000-07-31  Paul Eggert  <eggert@twinsun.com>
112496         * lib/quotearg.c (quotearg_n_options): Don't make the initial
112497         slot vector a constant, since it might get modified.
112499 2000-07-31  Jim Meyering  <meyering@lucent.com>
112501         * lib/xmalloc.c: Use `virtual memory exhausted', not
112502         `Memory exhausted'.
112503         * lib/obstack.c (print_and_abort): Likewise.
112505 2000-07-30  Paul Eggert  <eggert@twinsun.com>
112507         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
112508         buffer, so that the caller can always quote one small
112509         component of a "memory exhausted" message in slot 0.
112510         From a suggestion by Jim Meyering.
112512 2000-07-30  Jim Meyering  <meyering@lucent.com>
112514         * lib/makepath.c (make_path): Quote the other instance, too.
112516         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
112517         (STATIC_BUF_SIZE): Define.
112518         (quotearg_n_options): Use only statically allocated storage when
112519         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
112520         than STATIC_BUF_SIZE.
112522 2000-07-29  Jim Meyering  <meyering@lucent.com>
112524         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
112525         * lib/dirname.c (dir_name): Likewise.
112527         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
112528         `/'.
112530         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
112531         (dir_name): Assert that there are no trailing slashes.
112533 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
112535         * lib/mbswidth.h (mbswidth): Add a flags argument.
112536         (mbswidth): New declaration.
112537         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
112538         * lib/mbswidth.c (mbswidth): Add a flags argument.
112539         (mbsnwidth): New function.
112541 2000-07-24  Jim Meyering  <meyering@lucent.com>
112543         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
112545 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112547         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
112549 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112551         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
112552         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
112553         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
112554         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
112555         invoke multibyte primitives.
112557 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112559         * lib/quotearg.c:
112560         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
112561         so that mbstate_t is always defined.
112563         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
112564         be 1 in at least one GCC installation, and this configuration
112565         error is likely to be common.  Ignoring MB_LEN_MAX hurts
112566         performance on hosts that have mbrtowc but have only unibyte
112567         locales, but I assume these hosts are rare.
112569 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112571         * lib/mbswidth.c (_XOPEN_SOURCE):
112572         Don't define; this causes problems on Solaris 7.
112573         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
112575 2000-07-23  Jim Meyering  <meyering@lucent.com>
112577         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
112578         too: getgrgid, getpwuid, getuid.
112580 2000-07-23  Jim Meyering  <meyering@lucent.com>
112582         * lib/basename.c (base_name): Add an assertion.
112584 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
112586         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
112587         shadow its mbsinit function.
112589 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
112591         * lib/mbswidth.h: New file.
112592         * lib/mbswidth.c: New file.
112593         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
112594         (noinst_HEADERS): Add mbswidth.h.
112596 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
112598         * lib/config.charset: Add support for FreeBSD. Improve support for
112599         HP-UX and IRIX 6.
112601 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
112603         * m4/mbswidth.m4: New file.
112604         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
112606 2000-07-15  Jim Meyering  <meyering@lucent.com>
112608         * lib/makepath.c: Include quote.h.
112609         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
112610         corresponding argument in a `quote (...)' call.
112611         Give better diagnostics.
112613         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
112614         (noinst_HEADERS): Add quote.h.
112616         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
112617         from tar's src/misc.c.
112618         * lib/quote.h: New file.  Prototypes for same.
112620 2000-07-14  Paul Eggert  <eggert@twinsun.com>
112622         From a suggestion by Bruno Haible.
112623         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
112624         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
112625         to decide whether to define the BeOS workaround macro;
112626         this adjusts to the change to AC_MBSTATE_T.
112628 2000-07-14  Jim Meyering  <meyering@lucent.com>
112630         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
112631         jm_AC_TYPE_UINTMAX_T.
112633 2000-07-13  Paul Eggert  <eggert@twinsun.com>
112635         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
112637         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
112638         quotearg_buffer_restyled): Add support for
112639         clocale_quoting_style.  Undo previous change to
112640         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
112641         and "{RIGHT QUOTATION MARK}" msgids.
112643 2000-07-10  Paul Eggert  <eggert@twinsun.com>
112645         From a suggestion by Bruno Haible.
112646         * m4/mbstate_t.m4 (AC_MBSTATE_T):
112647         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
112648         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
112649         and mbstate_t, to a single-part test that simply defines mbstate_t.
112650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
112651         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
112653 2000-07-10  Jim Meyering  <meyering@lucent.com>
112655         * m4/strerror_r.m4: Mirror the correction made in autoconf.
112657         * m4/gnu-source.m4: Output to confdefs.h directly.
112658         Suggestion from Akim Demaille.
112660 2000-07-09  Paul Eggert  <eggert@twinsun.com>
112662         The old behavior of quoting `like this' doesn't look good with
112663         newer, ISO-style fonts.  See:
112664         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
112666         Instead, quote "like this" by default.  Let the translator
112667         tailor the locale-specific quoting behavior by providing
112668         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
112670         * lib/quotearg.c (N_): New macro.
112671         (gettext_default): New function.
112672         (quotearg_buffer_restyled): Use
112673         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
112674         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
112676 2000-07-09  Jim Meyering  <meyering@lucent.com>
112678         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
112679         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
112681         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
112682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
112684 2000-07-09  Jim Meyering  <meyering@lucent.com>
112686         * lib/Most files: Update copyright dates to include 2000.
112688 2000-07-08  Jim Meyering  <meyering@lucent.com>
112690         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
112691         if not defined.
112692         (xgethostname): Remove now-unnecessary #ifdef.
112693         Move declaration of `err' into loop where it's used.
112695 2000-07-05  Paul Eggert  <eggert@twinsun.com>
112696         and Bruno Haible  <haible@clisp.cons.org>
112698         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
112699         only if the test for an object-type mbstate_t fails.  This
112700         prevents us from mistakenly reporting that mbstate_t is a
112701         system object type after we "#define mbstate_t int" to work
112702         around its lack.
112704 2000-07-05  Paul Eggert  <eggert@twinsun.com>
112705         and Bruno Haible  <haible@clisp.cons.org>
112707         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
112709 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
112711         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
112712         to strerror_r.
112713         Include <ctype.h> for use of isalpha.
112715 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
112717         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
112718         by allocating a larger buffer. Test the gethostname return value for
112719         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
112720         returns an error and ENAMETOOLONG isn't defined.
112722 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
112724         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
112725         dimension.
112727 2000-07-04  Jim Meyering  <meyering@lucent.com>
112729         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
112730         of the deprecated AC_CHECKING.
112732 2000-07-04  Jim Meyering  <meyering@lucent.com>
112734         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
112735         Reported by Bruno Haible.
112737 2000-07-04  Jim Meyering  <meyering@lucent.com>
112739         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
112740         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
112741         lacks mbrtowc.
112743 2000-07-03  Paul Eggert  <eggert@twinsun.com>
112745         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
112746         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
112748 2000-07-03  Paul Eggert  <eggert@twinsun.com>
112749         and Bruno Haible  <haible@clisp.cons.org>
112751         * lib/quotearg.c (mbrtowc):
112752         Assign to *pwc, and return 1 only if result is nonzero.
112753         (iswprint): Use ISPRINT when substituting our own mbrtowc.
112755 2000-07-03  Jim Meyering  <meyering@lucent.com>
112757         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
112759 2000-07-03  Jim Meyering  <meyering@lucent.com>
112761         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
112762         This is necessary to get a definition of e.g., UTMP_FILE on
112763         HP-UX 10.20.
112764         From Bob Proulx.
112766 2000-07-02  Jim Meyering  <meyering@lucent.com>
112768         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
112770         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
112771         AC_LIBOBJ(function_name).
112772         * m4/chown.m4: Likewise.
112773         * m4/fnmatch.m4: Likewise.
112774         * m4/ftruncate.m4: Likewise.
112775         * m4/getgroups.m4: Likewise.
112776         * m4/getline.m4: Likewise.
112777         * m4/group-member.m4: Likewise.
112778         * m4/jm-macros.m4: Likewise.
112779         * m4/lstat.m4: Likewise.
112780         * m4/malloc.m4: Likewise.
112781         * m4/memcmp.m4: Likewise.
112782         * m4/nanosleep.m4: Likewise.
112783         * m4/putenv.m4: Likewise.
112784         * m4/realloc.m4: Likewise.
112785         * m4/regex.m4: Likewise.
112786         * m4/stat.m4: Likewise.
112787         * m4/strftime.m4: Likewise.
112789 2000-07-02  Jim Meyering  <meyering@lucent.com>
112791         * lib/quotearg.c (mbstate_t): Don't define here.
112793 2000-07-02  Jim Meyering  <meyering@lucent.com>
112795         * lib/nanosleep.c (SIGCONT): Define if not already defined.
112797 2000-07-01  Jim Meyering  <meyering@lucent.com>
112799         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
112801 2000-07-01  Jim Meyering  <meyering@lucent.com>
112803         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
112804         problem.
112806 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
112808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
112809         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
112811 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
112813         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
112814         per change in ../m4/ls-mntd-fs.m4.
112815         (read_filesystem_list): Ignore symbolic links.
112817 2000-06-29  Jim Meyering  <meyering@lucent.com>
112819         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
112820         for declaration of strcmp.
112822         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
112824         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
112825         Avoid warning by casting result to `char *' to remove `const'.
112827 2000-06-28  Jim Meyering  <meyering@lucent.com>
112829         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
112830         included by quotearg.c, for which we perform this test.  From
112831         Bruno Haible.
112833 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
112835         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
112836         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
112837         <utmpx.h> exists, put readutmp.o into LIBOBJS.
112839 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
112841         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
112843 2000-06-26  Paul Eggert  <eggert@twinsun.com>
112845         savedir now sets errno on failure and invokes xmalloc to get memory.
112846         Fix a couple of other minor bugs while we're at it.
112848         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
112849         (NAMLEN): Remove macro.
112850         (malloc, realloc): Remove decls.
112851         (stpcpy): Likewise.
112852         ("xalloc.h"): Include.
112853         (NAME_SIZE_DEFAULT): New macro.
112854         (savedir): Use xmalloc / xrealloc to allocate memory.
112855         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
112856         Skip "" directory entries.
112857         Use strlen to calculate directory entry length, since the old method
112858         is rarely used these days and isn't worth supporting.
112859         Don't use a pointer after freeing it.
112860         Check for integer overflow when calculating allocation size.
112861         Use memcpy to copy entries, instead of stpcpy.
112862         Set errno properly when returning NULL.
112863         Check for readdir error.
112865 2000-06-26  Jim Meyering  <meyering@lucent.com>
112867         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
112869 2000-06-25  Jim Meyering  <meyering@lucent.com>
112871         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
112872         Linux header bug when _XOPEN_SOURCE is defined to 500.
112874 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
112876         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
112877         deficiency.
112879 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
112881         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
112882         Include xalloc.h.
112883         Don't include <stdlib.h>.  Don't declare malloc, realloc.
112885 2000-06-24  Jim Meyering  <meyering@lucent.com>
112887         * m4/strerror_r.m4: Revive this file -- to try out an experimental
112888         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
112889         for which strerror does return char*, but which lacks a conveniently
112890         accessible declaration of the function.  If the compile-test says
112891         strerror_r doesn't work, then resort to a `run'-test that works on
112892         BeOS and segfaults on DEC Unix.
112894 2000-06-24  Jim Meyering  <meyering@lucent.com>
112896         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
112898 2000-06-23  Paul Eggert  <eggert@twinsun.com>
112900         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
112901         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
112903 2000-06-23  Paul Eggert  <eggert@twinsun.com>
112905         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
112906         (mbrtowc, mbstate_t): Define substitutes if
112907         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
112908         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
112909         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
112911 2000-06-23  Jim Meyering  <meyering@lucent.com>
112913         * m4/afs.m4: Add missing AC_MSG_RESULT.
112914         Reported by Bruno Haible.
112916         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
112917         Suggestion from Bruno Haible.
112919 2000-06-23  Jim Meyering  <meyering@lucent.com>
112921         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
112923 2000-06-21  Jim Meyering  <meyering@lucent.com>
112925         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
112927 2000-06-21  Jim Meyering  <meyering@lucent.com>
112929         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
112930         (noinst_HEADERS): Add getstr.h.
112932         * lib/getline.c (getstr): Move into a separate file.
112933         * lib/getstr.c (getstr): New file, extracted from getline.c, with
112934         the following changes: new parameter, delim2; both delim[12]
112935         parameters have type `int', not `char'.  The latter would lose
112936         with 8-bit delimiters.
112937         * lib/getstr.h: New file.
112939 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
112941         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
112942         than 1024, return a memory chunk of least possible size, instead
112943         of size PATH_MAX + 2. In the loop, increment the size proportionally.
112944         Use free/xmalloc instead of xrealloc to avoid copying for very long
112945         paths.
112947 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
112949         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
112950         the empty string.
112952 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
112954         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
112955         address, not strdup.  Include <stdlib.h> and don't declare free().
112957 2000-06-19  Jim Meyering  <meyering@lucent.com>
112959         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
112961 2000-06-18  Jim Meyering  <meyering@lucent.com>
112963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
112965         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
112966         `checking whether...' message to be consistent with that of the
112967         lstat test.
112969 2000-06-18  Jim Meyering  <meyering@lucent.com>
112971         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
112972         Besides, these days every porting target provides a mkdir function.
112974         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
112975         needed. (this snippet comes from src/system.h).
112977 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
112979         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
112981 2000-06-15  Paul Eggert  <eggert@twinsun.com>
112983         * lib/human.c (adjust_value): New function.
112984         (human_readable_inexact): Apply rounding style even when
112985         printing approximate values.
112987 2000-06-14  Paul Eggert  <eggert@twinsun.com>
112989         * lib/human.c (human_readable_inexact): Allow an input block
112990         size that is not a multiple of the output block size, and vice versa.
112991         Reported by Piergiorgio Sartor.
112993 2000-06-14  Paul Eggert  <eggert@twinsun.com>
112995         * lib/getdate.y (get_date): Apply relative times after time
112996         zone indicator, not before.  Reported by Todd A. Jacobs.
112998 2000-06-13  Jim Meyering  <meyering@lucent.com>
113000         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
113002         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
113004 2000-06-12  Paul Eggert  <eggert@twinsun.com>
113006         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
113008 2000-06-12  Jim Meyering  <meyering@lucent.com>
113010         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
113011         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
113012         optional argument.
113013         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
113014         the optional argument, `lib'.
113016 2000-06-08  Jim Meyering  <meyering@lucent.com>
113018         * m4/largefile.m4: Remove file (now that it's part of autoconf).
113020 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113022         Rewrite largefile configuration so that we don't need to run
113023         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
113024         AC_CANONICAL_HOST in configure.in -- jmm]
113026         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
113027         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
113028         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
113029         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
113030         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
113031         All uses changed.
113032         Instead of inspecting the output of getconf, try to compile the
113033         test program without and with the macro definition.
113034         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
113035         for getconf.  Instead, check for the needed flags by compiling
113036         test programs.
113038 2000-06-04  Paul Eggert  <eggert@twinsun.com>
113040         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
113042 2000-06-04  Jim Meyering  <meyering@lucent.com>
113044         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
113045         SunOS 4.1.4 for which gid_t is an unsigned type.
113047 2000-06-03  Jim Meyering  <meyering@lucent.com>
113049         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
113050         now that autoconf requires that.
113052         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
113053         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
113054         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
113056 2000-06-03  Jim Meyering  <meyering@lucent.com>
113058         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
113060 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
113062         * m4/glibc21.m4: New file.
113063         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
113065 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
113067         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
113068         newer, don't install charset.alias.
113069         * lib/config.charset: Change the Linux/glibc rules so they become empty
113070         on glibc-2.1 or newer.
113072 2000-06-02  Jim Meyering  <meyering@lucent.com>
113074         * lib/mountlist.c: Back out last change.  Instead, do this...
113075         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
113076         me_dummy member using the same `ignore'-testing code.
113077         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
113078         fs_type strings.
113079         From Mark D. Roth.
113081 2000-05-29  Jim Meyering  <meyering@lucent.com>
113083         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
113084         mounts with the `ignore' attribute.  Based on a patch from
113085         Mark D. Roth.
113087 2000-05-28  Jim Meyering  <meyering@lucent.com>
113089         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
113090         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113091         * m4/stat.m4: Likewise.
113092         * m4/lstat.m4: Likewise.
113093         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
113095         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
113096         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
113098 2000-05-26  Jim Meyering  <meyering@lucent.com>
113100         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
113102 2000-05-24  Jim Meyering  <meyering@lucent.com>
113104         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
113105         autoconf requires that.
113106         * m4/lib-check.m4: Likewise.
113107         * m4/jm-macros.m4: Likewise.
113108         * m4/strftime.m4: Likewise.
113110         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
113111         AC_CHECK_DECLS, now that autoconf requires that.
113113 2000-05-22  Jim Meyering  <meyering@lucent.com>
113115         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113116         * m4/lstat.m4: Likewise.
113118 2000-05-22  Jim Meyering  <meyering@lucent.com>
113120         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
113122 2000-05-20  Jim Meyering  <meyering@lucent.com>
113124         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
113125         (jm_PREREQ): Use it.
113127 2000-05-18  Jim Meyering  <meyering@lucent.com>
113129         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
113130         back, too, since it may have been modified by allocate_entry.
113131         (hash_delete): Rewrite to use neither the assignment operator
113132         nor the comma operator in an if-expression.
113134 2000-05-15  Paul Eggert  <eggert@twinsun.com>
113136         * lib/closeout.c:
113137         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
113138         Remove; no longer needed.
113139         "quotearg.h": Add include.
113140         (file_name): Do not bother to explicitly initialize to NULL; it's less
113141         efficient on some hosts.
113142         (close_stdout_status): Remove test as to whether stdout was already
113143         closed; it breaks for the case "echo x | sort >&-".
113144         Quote file name colons.
113145         Do not assume that _("write error") lacks format strings.
113147 2000-05-15  Jim Meyering  <meyering@lucent.com>
113149         * lib/version-etc.c (version_etc_copyright): Update the copyright
113150         string used in all --version output.
113152 2000-05-14  Jim Meyering  <meyering@lucent.com>
113154         * lib/closeout.c (close_stdout_set_file_name): New function.
113155         (close_stdout_status): Use new file-scoped global.
113156         Return right away if fstat says the stdout file descriptor is invalid.
113157         * lib/closeout.h (close_stdout_set_file_name): Declare.
113159 2000-05-10  Jim Meyering  <meyering@lucent.com>
113161         * lib/closeout.c [default_exit_status]: New file-scoped variable.
113162         (close_stdout_set_status): New function.
113163         * lib/closeout.h (close_stdout_set_status): Declare.
113165 2000-05-09  Jim Meyering  <meyering@lucent.com>
113167         * m4/gettext.m4: Rename this...
113168         * m4/libintl.m4: ...to this.
113170 2000-05-08  Jim Meyering  <meyering@lucent.com>
113172         * lib/long-options.c: Don't include closeout.h.
113173         (parse_long_options): Don't call close_stdout for --version.
113175 2000-05-06  Paul Eggert  <eggert@twinsun.com>
113177         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
113178         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
113179         2.1.3 bug.  This avoids a clash when files like regex.c define
113180         _GNU_SOURCE.
113182 2000-05-06  Jim Meyering  <meyering@lucent.com>
113184         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
113185         (AC_REPLACE_FUNCS): Add strnlen.
113187         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
113188         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
113190         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
113191         AC_SEARCH_LIBS call for nanosleep.
113192         (LIB_NANOSLEEP): Set and AC_SUBST.
113194 2000-05-06  Jim Meyering  <meyering@lucent.com>
113196         * lib/strnlen.c: Undefine __strnlen and strnlen.
113197         [!weak_alias]: Define __strnlen to strnlen.
113199         * lib/atexit.c: New file, from libiberty.
113201 2000-05-06  Jim Meyering  <meyering@lucent.com>
113203         * lib/closeout.c (close_stdout_status): Also check for errors on the
113204         stderr stream.
113206 2000-05-05  Jim Meyering  <meyering@lucent.com>
113208         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
113209         AC_SEARCH_LIBS call for clock_gettime.
113210         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
113212         * m4/search-libs.m4: Update from autoconf.
113214         su doesn't work on Solaris 2.6.
113215         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
113216         <shadow.h>.  Reported by Dragos Harabor.
113218 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
113220         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
113221         memcpy instead of xmalloc, xrealloc, path_concat.
113222         (locale_charset): Treat empty environment variables as absent.
113223         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
113225 2000-05-04  Jim Meyering  <meyering@lucent.com>
113227         * lib/getopt.c: Update from glibc.
113228         * lib/obstack.c: Likewise.
113229         * lib/obstack.h: Likewise.
113230         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
113231         file
113233         * lib/regex.h: Likewise.
113234         * lib/strndup.c: Likewise.
113235         * lib/strnlen.c: New file, from glibc.
113237 2000-05-03  Jim Meyering  <meyering@lucent.com>
113239         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
113241 2000-05-02  Paul Eggert  <eggert@twinsun.com>
113243         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
113244         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
113245         compile-time test, rather than inspecting host and OS, to
113246         decide whether to define _LARGEFILE_SOURCE.
113248 2000-05-01  Jim Meyering  <meyering@lucent.com>
113250         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
113252         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
113253         Based on a patch from Bruno Haible.
113255 2000-05-01  Jim Meyering  <meyering@lucent.com>
113257         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
113259 2000-04-29  Jim Meyering  <meyering@lucent.com>
113261         * lib/path-concat.c: Declare strdup only if it's not defined.
113262         * lib/canon-host.c: Likewise.
113264 2000-04-28  Jim Meyering  <meyering@lucent.com>
113266         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
113267         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
113268         is included first, then limits.h is included by locale.h by libintl.h.
113269         From John David Anglin.
113271 2000-04-25  Jim Meyering  <meyering@lucent.com>
113273         * lib/makepath.c (S_IRWXUGO): Define.
113274         (make_path): Always perform explicit chmod if MODE specifies any
113275         of the `special' permission bits.  Prompted by a bug report against
113276         install from Mate Wierdl and Joost van Baal.
113278 2000-04-18  Jim Meyering  <meyering@lucent.com>
113280         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
113281         (jm_PREREQ): Use it.
113283 2000-04-18  Jim Meyering  <meyering@lucent.com>
113285         * lib/README: New file.
113287         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
113288         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
113290 2000-04-17  Jim Meyering  <meyering@lucent.com>
113292         Get it right :-)
113293         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
113294         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
113295         Suggestion from Akim Demaille.
113297 2000-04-17  Jim Meyering  <meyering@lucent.com>
113299         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
113300         the definition of it to rpl_strftime also defined-away the system's
113301         declaration.
113303 2000-04-15  Jim Meyering  <meyering@lucent.com>
113305         Use `C' to denote so-called `contiguous' files, the same way
113306         that tar does.
113307         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
113308         (ftypelet): Use S_ISCTG.
113309         From Michael Deutschmann.
113311 2000-04-14  Jim Meyering  <meyering@lucent.com>
113313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
113314         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
113315         clobbered.
113317 2000-04-14  Jim Meyering  <meyering@lucent.com>
113319         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
113321 2000-04-13  Jim Meyering  <meyering@lucent.com>
113323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
113324         AH_VERBATIM to insert required #ifndef into config.h.in.
113325         Suggestion from Akim Demaille.
113327 2000-04-12  Jim Meyering  <meyering@lucent.com>
113329         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
113330         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
113331         Christian Krackowizer.
113333         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
113334         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
113335         (AC_SYS_LARGEFILE): Require.
113336         (AM_C_PROTOTYPES): Require.
113338 2000-04-08  Jim Meyering  <meyering@lucent.com>
113340         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
113341         names don't conflict.  Reported by Eli Zaretskii.
113343 2000-04-07  Jim Meyering  <meyering@lucent.com>
113345         * lib/putenv.c: Move inclusion of errno.h so it follows that of
113346         sys/types.h, to work around system header problems on AIX 3.2.5.
113347         From Bruno Haible.
113349 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
113351         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
113352         bug.  Deal with the different error behavior of Irix iconv.
113354 2000-04-05  Paul Eggert  <eggert@twinsun.com>
113356         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
113357         IRIX if the installer said otherwise.
113359 2000-04-05  Jim Meyering  <meyering@lucent.com>
113361         Portability tweaks required for ultrix4.3.
113362         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
113363         (jm_CHECK_DECLS): Add getutent to the list of functions.
113364         (_jm_DECL_HEADERS): Add utmpx.h.
113365         From John David Anglin.
113367         * m4/strftime.m4: Back out the 2000-04-02 change.
113368         Instead of that change, simply undefine putenv in the test program.
113370 2000-04-05  Jim Meyering  <meyering@lucent.com>
113372         Portability tweaks required for ultrix4.3.
113373         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
113374         getutent.
113375         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
113376         * lib/canon-host.c: Declare strdup.
113377         * lib/path-concat.c: Likewise.
113378         From John David Anglin.
113380 2000-04-04  Jim Meyering  <meyering@lucent.com>
113382         Be more DOS 8.3-friendly.
113383         * lib/ref-add.sin: Renamed from ref-add.sed.in.
113384         * lib/ref-del.sin: Renamed from ref-del.sed.in.
113385         * lib/Makefile.am: Reflect renaming.
113386         Reported by Eli Zaretskii.
113388         Use a temporary file name that won't clash with `charset.alias'
113389         in the DOS 8.3 name space.
113390         * lib/Makefile.am (charset_tmp): Define.
113391         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
113392         (uninstall-local): Likewise.
113393         Reported by Eli Zaretskii.
113395 2000-04-03  Jim Meyering  <meyering@lucent.com>
113397         * m4/gettext.m4: Fix typo in comment.
113399         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
113400         textutils/configure.in).  Suggestion from Paul Eggert.
113401         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
113403 2000-04-02  Paul Eggert  <eggert@twinsun.com>
113405         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
113406         variable in the shell rather than using putenv, which isn't
113407         portable.  This avoids the configure-time inter-test dependency
113408         on the potentially-renamed putenv function.
113410 2000-03-30  Paul Eggert  <eggert@twinsun.com>
113412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
113413         before checking struct stat.st_blksize, so that
113414         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
113416 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113418         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
113419         since strftime.c uses HAVE_STRFTIME to decide whether to use
113420         the underlying strftime.
113422 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113424         * lib/time/strftime.c (my_strftime): Make sure we call the system
113425         strftime, not ourselves, when invoking the underlying strftime.
113427 2000-03-24  Jim Meyering  <meyering@lucent.com>
113429         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
113430         (charset_alias): Define.
113431         (install-exec-local): Factor out common code.
113432         (uninstall-local): Split lines longer than 80.
113433         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
113434         (SUFFIXES): Define.
113435         (.sed.in.sed): New rule.  Don't redirect directly to $@.
113436         (CLEANFILES): Add ref-add.sed and ref-del.sed.
113438 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
113440         * lib/config.charset: Output a line containing "Packages using this
113441         file".
113442         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
113443         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
113444         ref-del.sed): New rules.
113446 2000-03-17  Jim Meyering  <meyering@lucent.com>
113448         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
113449         Otherwise, include <strings.h>
113451 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
113453         * lib/unicodeio.c (utf8_wctomb): New function.
113454         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
113455         format instead of in UCS-4 with platform dependent endianness.
113457 2000-03-10  Jim Meyering  <meyering@lucent.com>
113459         * m4/lib-check.m4: Look for getspnam in -lgen, too.
113460         From Marco Franzen.
113462 2000-03-07  Paul Eggert  <eggert@twinsun.com>
113464         * lib/savedir.c (savedir): Work even if directory size is
113465         negative; this can happen with some screwy NFS configurations.
113467 2000-03-06  Jim Meyering  <meyering@lucent.com>
113469         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
113470         if it's NULL (because we ran out of memory).  From Bruno Haible.
113472 2000-03-05  Jim Meyering  <meyering@lucent.com>
113474         * lib/localcharset.c ("path-concat.h"): Include.
113475         (get_charset_aliases): Use path_concat instead of ANSI string
113476         concatenation.
113478         * lib/unicodeio.h (PARAMS): Define.
113479         Use it to guard prototype.
113481 2000-03-04  Jim Meyering  <meyering@lucent.com>
113483         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
113484         for lib/localcharset.c.
113486 2000-03-04  Jim Meyering  <meyering@lucent.com>
113488         * lib/Makefile.am (install-exec-local): Create $(libdir) before
113489         installing into it.
113490         (uninstall-local): Uncomment this rule so `make distcheck' works
113491         once again.
113493         * lib/unicodeio.c (<errno.h>): Include it.
113494         (errno): Declare if not defined.
113496         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
113498         * lib/config.charset: New version, incorporating remarks from a linux
113499         i18n mailing list.  From Bruno Haible.
113501 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
113503         * m4/codeset.m4: New file.
113504         * m4/iconv.m4: New file.
113505         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
113507 2000-03-03  Jim Meyering  <meyering@lucent.com>
113509         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
113511 2000-03-02  Jim Meyering  <meyering@lucent.com>
113513         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
113514         the messages come out on separate lines.
113516         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
113517         rather than jm_CHECK_DECLARATIONS.
113518         * m4/decl.m4: Remove now-unused file.
113520         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
113521         geteuid.
113523 2000-03-02  Jim Meyering  <meyering@lucent.com>
113525         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
113527 2000-03-01  Jim Meyering  <meyering@lucent.com>
113529         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
113530         * lib/unicodeio.c: Likewise.
113532 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
113534         * lib/config.charset: New file.
113535         * lib/localcharset.c: New file.
113536         * lib/unicodeio.h, lib/unicodeio.c: New files.
113537         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
113538         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
113539         (noinst_HEADERS): Add unicodeio.h.
113540         (all-local, install-exec-local, charset.alias): New targets.
113542 2000-02-28  Paul Eggert  <eggert@twinsun.com>
113544         * lib/quotearg.c (ALERT_CHAR): New macro.
113545         (quotearg_buffer_restyled): Use it.
113547 2000-02-27  Jim Meyering  <meyering@lucent.com>
113549         * m4/check-decl.m4: Add getenv to the list.
113551 2000-02-27  Jim Meyering  <meyering@lucent.com>
113553         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
113554         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
113556         * lib/backupfile.c: Guard inclusion of stdlib.h with
113557         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
113558         Declare malloc if needed.
113560         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
113561         `#ifndef HAVE_DECL..'
113562         now that autoconf always defines the HAVE_DECL_ symbols.
113563         * lib/human.c: Likewise.
113564         * lib/same.c: Likewise.
113565         * lib/strtoumax.c: Likewise.
113567         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
113568         declaration check was not run.
113569         * lib/hash.c: Likewise.
113570         * lib/human.c: Likewise.
113571         * lib/same.c: Likewise.
113572         * lib/strtoumax.c: Likewise.
113574         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
113575         `.', then first look up the entire `.'-containing string as a login
113576         name.
113578 2000-02-23  Jim Meyering  <meyering@lucent.com>
113580         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
113581         in place of my hack.
113583 2000-02-18  Paul Eggert  <eggert@twinsun.com>
113585         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
113586         (textint): New typedef.
113587         (parser_control): Member year changed from int to textint.
113588         All uses changed.
113589         (YYSTYPE): Removed; replaced by %union with int and textint members.
113590         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
113591         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
113592         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
113593         (tSNUMBER, tUNUMBER): Now of type <textintval>.
113594         (date, number, to_year): Use width of number in digits, not its value,
113595         to determine whether it's a 2-digit year, or a 2-digit time.
113596         (yylex): Store number of digits of numeric tokens.
113597         Reported by John Kendall.
113599         (parser_control): Changed from struct parser_control to typedef (for
113600         consistency).  All uses changed.
113602         (tID): Removed; not used.
113603         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
113605 2000-02-14  Paul Eggert  <eggert@twinsun.com>
113607         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
113608         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
113610 2000-02-12  Jim Meyering  <meyering@lucent.com>
113612         * lib/userspec.c (ISDIGIT): Define it.
113613         (isdigit): Remove definition.
113614         (is_number): Use ISDIGIT, not isdigit.
113615         <libintl.h>: Include.
113616         (_ and N_): Define.
113617         (parse_user_spec): Mark translatable strings.
113619 2000-02-10  Jim Meyering  <meyering@lucent.com>
113621         With these changes, nanosleep.[ch] are finally enough like the other
113622         lib/* replacement files to compile on a few more losing systems.
113624         * lib/nanosleep.h: Don't include config.h.
113625         Remove prototype from declaration of nanosleep.
113626         (PARAMS): Remove now-unneeded definition.
113627         * lib/nanosleep.c: #undef nanosleep.
113628         (rpl_nanosleep): Rename from nanosleep.
113630 2000-02-10  Jim Meyering  <meyering@lucent.com>
113632         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
113633         gnu_nanosleep to rpl_nanosleep.
113635 2000-02-09  Jim Meyering  <meyering@lucent.com>
113637         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
113638         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
113640 2000-02-08  Akim Demaille  <akim@epita.fr>
113642         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
113643         `[' and `]' and remove uses of `changequote'.
113644         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
113645         (AC_SYS_LARGEFILE): Likewise.
113646         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
113647         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
113648         of changequote.
113649         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
113650         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
113651         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
113652         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
113654 2000-02-05  Jim Meyering  <meyering@lucent.com>
113656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
113657         Remove explicit use of AC_HEADER_TIME.  It is required by
113658         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
113659         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
113660         in autoconf whereby the expansion of the latter ended up preceding
113661         the expansion of its prerequisite, AC_HEADER_TIME.
113662         Reported by Volker Borchert.
113664 2000-02-03  Jim Meyering  <meyering@lucent.com>
113666         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
113668 2000-02-03  Jim Meyering  <meyering@lucent.com>
113670         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
113671         rather than with `#if HAVE_UTMPNAME'.
113673 2000-02-02  Jim Meyering  <meyering@lucent.com>
113675         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
113676         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
113677         Reported by Eli Zaretskii.
113679 2000-02-01  Jim Meyering  <meyering@lucent.com>
113681         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
113683 2000-01-31  Jim Meyering  <meyering@lucent.com>
113685         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
113686         functions.  Add the time.h and sys/time.h headers along with the
113687         AC_REQUIRE'ment of AC_HEADER_TIME.
113689 2000-01-31  Jim Meyering  <meyering@lucent.com>
113691         * lib/nanosleep.h (nanosleep): Guard declaration with
113692         `#if ! HAVE_DECL_NANOSLEEP'.
113693         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
113694         the declaration in that vendor's sys/timers.h.
113695         Reported by Christian Krackowizer.
113697         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
113698         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
113699         (ISPRINT): Likewise.
113700         Reported by Tom Tromey.
113702 2000-01-30  Jim Meyering  <meyering@lucent.com>
113704         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
113706         * m4/prereq.m4 (utmp_includes): Define.
113707         Check for ut_user and ut_name members in both struct utmpx
113708         and struct utmp.
113710 2000-01-30  Jim Meyering  <meyering@lucent.com>
113712         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
113713         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
113714         header files where only utmpx.ut_user is declared.
113716         * lib/readutmp.h (UT_USER): Define.
113718 2000-01-29  Jim Meyering  <meyering@lucent.com>
113720         * m4/lib-check.m4: New file containing library-related checks from
113721         fileutils and sh-utils (textutils had none).
113723 2000-01-28  Jim Meyering  <meyering@lucent.com>
113725         * m4/perl.m4: Change format of warning message to look more like that
113726         from the missing script.  Suggestion from François Pinard.
113728 2000-01-25  Jim Meyering  <meyering@lucent.com>
113730         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
113731         well as time.h in the compile check.
113732         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
113733         Fix typo in cross-compiling case: s/yes/no/.
113735 2000-01-23  Jim Meyering  <meyering@lucent.com>
113737         * m4/jm-macros.m4: Move df-related tests here from
113738         fileutils/configure.in
113740         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
113741         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
113743         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
113744         s/space/ac_fsusage_space/.
113745         (jm_FILE_SYSTEM_USAGE): Take two parameters.
113747         * m4/ftruncate.m4: New file (derived from part of
113748         fileutils/configure.in).
113749         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
113750         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
113752         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
113753         AC_SUBST these here, rather than just in sh-util/configure.in, so
113754         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
113755         all the same.
113756         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
113757         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
113758         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
113759         (AC_SUBST(POW_LIBM)): Likewise.
113760         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
113762 2000-01-23  Jim Meyering  <meyering@lucent.com>
113764         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
113765         obstack.c.
113767 2000-01-22  Jim Meyering  <meyering@lucent.com>
113769         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
113771         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
113773         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
113774         configure.in
113775         (AC_CHECK_HEADERS): Likewise for sh-utils.
113776         (AC_CHECK_HEADERS): Likewise for textutils.
113777         Merge the three lists of headers.
113779         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
113780         from fileutils' configure.in.
113782         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
113783         code. Moved tests into their own function (_jm_DECL_HEADERS) in
113784         check-decl.m4.
113786         * m4/check-decl.m4: Use #if rather than #ifdef.
113787         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
113788         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
113789         (_jm_DECL_HEADERS): Define new function.
113790         (jm_CHECK_DECLARATIONS): Require it.
113792 2000-01-22  Jim Meyering  <meyering@lucent.com>
113794         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
113795         [! HAVE_DECL_STRTOULL]: Declare strtoull.
113796         Required for some AIX systems.  Reported by Christian Krackowizer.
113797         [TESTING] (main): New function.
113799         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
113800         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
113801         letters.
113803         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
113804         iswprint.
113806         * lib/strverscmp.c (ISDIGIT): Define.
113807         (strverscmp): Use ISDIGIT, not isdigit.
113809 2000-01-19  Jim Meyering  <meyering@lucent.com>
113811         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
113812         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
113813         defines `struct timespec' in <sys/time.h>
113815         * m4/c-bs-a.m4: Remove uses of changequote altogether.
113816         Thanks to Akim for explaining.
113818 2000-01-17  Paul Eggert  <eggert@twinsun.com>
113820         * lib/nanosleep.c (nanosleep):
113821         Don't use SA_INTERRUPT to decide whether to call sigaction, as
113822         POSIX.1 doesn't require SA_INTERRUPT and some systems
113823         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
113824         it's been part of POSIX.1 since day 1 (in 1988).
113826 2000-01-17  Jim Meyering  <meyering@lucent.com>
113828         * lib/interlock: Remove unused file.  Reported by François Pinard.
113830 2000-01-16  Paul Eggert  <eggert@twinsun.com>
113832         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
113833         alert, backslash, formfeed, and vertical tab unnecessarily in
113834         shell quoting style.
113836 2000-01-16  Jim Meyering  <meyering@lucent.com>
113838         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
113839         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
113840         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
113841         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
113843 2000-01-16  Jim Meyering  <meyering@lucent.com>
113845         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
113846         because the latter didn't work.
113848 2000-01-15  Jim Meyering  <meyering@lucent.com>
113850         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
113851         (AC_REPLACE_FUNCS): Add memcpy and memset.
113852         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
113853         Add strpbrk.
113854         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
113856 2000-01-12  Jim Meyering  <meyering@lucent.com>
113858         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
113859         (jm_PREREQ): Use it.
113860         (jm_PREREQ_READUTMP): New macro.
113861         (jm_PREREQ): Use it.
113863 2000-01-11  Paul Eggert  <eggert@twinsun.com>
113865         Quote multibyte characters correctly.
113866         * m4/c-bs-a.m4: New file.
113867         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
113868         (jm_PREREQ): Use it.
113870 2000-01-11  Paul Eggert  <eggert@twinsun.com>
113872         * m4/uintmax_t.m4: Port to autoconf 2.13.
113874 2000-01-08  Jim Meyering  <meyering@ascend.com>
113876         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
113877         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
113879 2000-01-04  Jim Meyering  <meyering@ascend.com>
113881         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
113882         jm_STRUCT_DIRENT_D_TYPE.
113883         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
113884         jm_STRUCT_DIRENT_D_INO.
113885         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
113886         jm_STRUCT_UTIMBUF.
113887         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
113888         renamings.
113889         * m4/utime.m4: Likewise.
113891         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
113892         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
113894 2000-01-03  Paul Eggert  <eggert@twinsun.com>
113896         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
113897         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
113899 2000-01-02  Jim Meyering  <meyering@ascend.com>
113901         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
113902         remember if this is necessary.
113904 1999-12-26  Jim Meyering  <meyering@ascend.com>
113906         * m4/jm-macros.m4: Use it here.
113907         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
113909 1999-12-23  Jim Meyering  <meyering@ascend.com>
113911         * m4/jm-macros.m4: Check for clock_gettime (moved from
113912         fileutils/configure.in)
113913         Check for gettimeofday.
113915 1999-12-20  Jim Meyering  <meyering@ascend.com>
113917         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
113918         autoconf-2.14a-1999-12-20.
113920 1999-12-19  Jim Meyering  <meyering@ascend.com>
113922         * m4/lstat-slash.m4: New file.
113923         * m4/jm-macros.m4: Use the new macro:
113924         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113926 1999-12-07  Jim Meyering  <meyering@ascend.com>
113928         * m4/perl.m4: Require that File::Compare be available, too.
113929         Too many systems seem to lack it.
113931         * m4/strftime.m4: Add checks for most of the cpp macros tested in
113932         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
113934 1999-11-18  Paul Eggert  <eggert@twinsun.com>
113936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
113937         problem with the QNX 4.25 shell, which doesn't propagate exit
113938         status of failed commands inside shell assignments.
113940 1999-11-17  Jim Meyering  <meyering@ascend.com>
113942         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
113944 1999-11-07  Jim Meyering  <meyering@ascend.com>
113946         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
113948 1999-11-06  Jim Meyering  <meyering@ascend.com>
113950         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
113951         * m4/jm-macros.m4 (jm_MACROS): Use it here.
113953 1999-11-05  Jim Meyering  <meyering@ascend.com>
113955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
113956         configure.in of textutils, fileutils, and sh-utils into this one
113957         (shared between those packages) file.
113958         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
113959         AC_STRUCT_ST_BLKSIZE.
113961 1999-11-03  Jim Meyering  <meyering@ascend.com>
113963         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
113964         of AC_CHECK_TYPE checks includes unistd.h.
113965         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
113966         Suggestion from Akim Demaille.
113968 1999-10-30  Jim Meyering  <meyering@ascend.com>
113970         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
113971         m4-quoted string.
113972         * m4/ls-mntd-fs.m4: Likewise.
113973         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
113974         * m4/jm-winsz1.m4: Likewise.
113976         * m4/const.m4: Remove file, since the fix made it into the experimental
113977         version of autoconf.
113978         * m4/mktime.m4: Likewise.
113980         * m4/check-type.m4: Remove file, now that the latest version of
113981         AC_CHECK_TYPE takes a third arg to specify additional #includes.
113983         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
113984         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
113985         AC_CHECK_TYPE.
113987 1999-10-04  Jim Meyering  <meyering@ascend.com>
113989         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
113991 1999-09-22  Paul Eggert  <eggert@twinsun.com>
113993         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
113994         2.95.1 bug with HP-UX 10.20.
113996 1999-09-17  Jim Meyering  <meyering@ascend.com>
113998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
113999         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
114000         due to missing strdup (against sh-utils-2.0).
114002 1999-08-29  Jim Meyering  <meyering@ascend.com>
114004         * m4/jm-macros.m4: Require jm_BISON.
114005         * m4/bison.m4: New file.
114007 1999-08-17  Paul Eggert  <eggert@twinsun.com>
114009         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
114010         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
114012 1999-08-05  Jim Meyering  <meyering@ascend.com>
114014         * m4/getline.m4: Rename test file from conftestdata to conftest.data
114015         to avoid conflicts with `conftest' on 8+3 filesystems.
114016         Suggestion from Eli Zaretskii.
114018 1999-08-04  Jim Meyering  <meyering@ascend.com>
114020         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
114021         fileutils and sh-utils (textutils's getline test was inadequate).
114022         (AM_FUNC_GETLINE): Run this test.
114023         (AC_CHECK_FUNCS): Check for getdelim.
114024         Reported by Bob Proulx.
114026 1999-08-02  Jim Meyering  <meyering@ascend.com>
114028         * m4/jm-macros.m4: Add a comment.
114030 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114032         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
114033         <inttypes.h> defines strtoumax as a macro (and not as a
114034         function).
114036 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114038         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
114039         that we can shift, multiply and divide unsigned long long
114040         values; Ultrix cc can't do it.
114042 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114044         * m4/mktime.m4: New file, which is a preview of what should appear
114045         in the next public autoconf release.
114047 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114049         * m4/lfs.m4: Remove this file.
114050         * m4/largefile.m4: New file.  It contains the old contents of
114051         lfs.m4, except that all names with prefix AC_LFS have been
114052         changed to use the prefix AC_SYS_LARGEFILE instead, to be
114053         compatible with future autoconf versions.  Also, some minor m4
114054         quoting problems have been fixed.
114056 1999-08-01  Paul Eggert  <eggert@twinsun.com>
114058         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
114059         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
114060         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
114061         and simplify the shell code.
114063 1999-08-01  Jim Meyering  <meyering@ascend.com>
114065         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
114066         m4.
114068 1999-07-20  Jim Meyering  <meyering@ascend.com>
114070         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
114072 1999-07-15  Jim Meyering  <meyering@ascend.com>
114074         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
114076 1999-05-22  Jim Meyering  <meyering@ascend.com>
114078         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
114080 1999-05-20  Jim Meyering  <meyering@ascend.com>
114082         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
114083         Add a colon after each `then' in case $4 is empty.
114085 1999-05-16  Jim Meyering  <meyering@ascend.com>
114087         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
114089 1999-05-10  Jim Meyering  <meyering@ascend.com>
114091         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
114093         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
114094         AC_FUNC_MKTIME.
114096 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
114098         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
114100 1999-05-04  Paul Eggert  <eggert@twinsun.com>
114102         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
114103         not CPPFLAGS, so that linking works correctly in IRIX.
114105 1999-04-30  Paul Eggert  <eggert@twinsun.com>
114107         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
114109 1999-04-20  Paul Eggert  <eggert@twinsun.com>
114111         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
114112         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
114113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
114114         jm_AC_TYPE_UNSIGNED_LONG_LONG.
114115         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
114117         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
114119 1999-04-20  Jim Meyering  <meyering@ascend.com>
114121         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
114122         AC_REPLACE xstroull if necessary.  From Paul Eggert.
114123         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
114125 1999-04-18  Jim Meyering  <meyering@ascend.com>
114127         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
114128         * m4/jm-macros.m4: Use it.
114130 1999-04-06  Jim Meyering  <meyering@ascend.com>
114132         * m4/strftime.m4: Remove test for %f.
114134 1999-03-29  Jim Meyering  <meyering@ascend.com>
114136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
114137         superset of the AC_TYPE_* checks in the textutils, fileutils,
114138         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
114139         AC_TYPE_PID_T.
114141 1999-03-28  Jim Meyering  <meyering@ascend.com>
114143         * m4/jm-macros.m4: Define GNU_PACKAGE here.
114144         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
114145         replaced e.g., in the *.sh files of the sh-utils.
114147 1999-03-20  Jim Meyering  <meyering@ascend.com>
114149         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
114150         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
114151         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
114153 1999-03-19  Jim Meyering  <meyering@ascend.com>
114155         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
114157 1999-03-12  Jim Meyering  <meyering@ascend.com>
114159         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
114161 1999-03-07  Jim Meyering  <meyering@ascend.com>
114163         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
114164         declared.
114166 1999-02-17  Jim Meyering  <meyering@ascend.com>
114168         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
114169         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
114171 1999-02-07  Jim Meyering  <meyering@ascend.com>
114173         * m4/group-member.m4: New file -- extracted from sh-utils'
114174         configure.in.
114176         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
114177         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
114179 1999-02-06  Jim Meyering  <meyering@ascend.com>
114181         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
114182         * m4/fnmatch.m4: Likewise.
114183         * m4/getgroups.m4: Likewise.
114184         * m4/lstat.m4: Likewise.
114185         * m4/malloc.m4: Likewise.
114186         * m4/putenv.m4: Likewise.
114187         * m4/realloc.m4: Likewise.
114188         * m4/regex.m4: Likewise.
114189         * m4/stat.m4: Likewise.
114190         * m4/strftime.m4: Likewise.
114191         Suggestion from Alain Magloire.
114193         * m4/chown.m4: Use `.$ac_objext', not `.o'.
114194         * m4/fnmatch.m4: Likewise.
114195         * m4/getgroups.m4: Likewise.
114196         * m4/getline.m4: Likewise.
114197         * m4/lstat.m4: Likewise.
114198         * m4/malloc.m4: Likewise.
114199         * m4/memcmp.m4: Likewise.
114200         * m4/putenv.m4: Likewise.
114201         * m4/realloc.m4: Likewise.
114202         * m4/regex.m4: Likewise.
114203         * m4/stat.m4: Likewise.
114204         * m4/strftime.m4: Likewise.
114205         Suggestion from Alain Magloire.
114207         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
114208         an argument.
114210         * m4/regex.m4: Add a run-time Test for proper operation of
114211         re_compile_pattern.
114213 1999-01-31  Jim Meyering  <meyering@ascend.com>
114215         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
114217 1999-01-30  Jim Meyering  <meyering@ascend.com>
114219         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
114221         * m4/jm-mktime.m4: Make this a wrapper around the official
114222         AM_FUNC_MKTIME rather than my private copy, now that the official one
114223         is up to date.
114224         * m4/mktime.m4: Remove file.
114226         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
114227         * m4/uptime.m4: Likewise.
114228         * m4/uintmax_t.m4: Likewise.
114230 1999-01-28  Jim Meyering  <meyering@ascend.com>
114232         * m4/jm-macros.m4: Use jm_AFS.
114233         * m4/afs.m4: New file (from fileutils' configure.in).
114235         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
114236         * m4/chown.m4: Likewise.
114237         * m4/d-ino.m4: Likewise.
114238         * m4/d-type.m4: Likewise.
114239         * m4/fnmatch.m4: Likewise.
114240         * m4/getgroups.m4: Likewise.
114241         * m4/gettext.m4: Likewise.
114242         * m4/jm-mktime.m4: Likewise.
114243         * m4/jm-winsz2.m4: Likewise.
114244         * m4/lcmessage.m4: Likewise.
114245         * m4/ls-mntd-fs.m4: Likewise.
114246         * m4/malloc.m4: Likewise.
114247         * m4/memcmp.m4: Likewise.
114248         * m4/putenv.m4: Likewise.
114249         * m4/realloc.m4: Likewise.
114250         * m4/st_mtim.m4: Likewise.
114251         * m4/strftime.m4: Likewise.
114253 1999-01-16  Jim Meyering  <meyering@ascend.com>
114255         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
114256         (ARGMATCH_DIE_DECL): Define.
114258 1999-01-12  Jim Meyering  <meyering@ascend.com>
114260         * m4/Makefile.am.in: Rewrite to avoid using fmt.
114261         Reported by Lars Hecking.
114263 1999-01-10  Jim Meyering  <meyering@ascend.com>
114265         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
114266         gross kludge.
114267         * m4/inttypes_h.m4: Likewise.
114268         * m4/lstat.m4: Likewise.
114269         * m4/malloc.m4: Likewise.
114270         * m4/readdir.m4: Likewise.
114271         * m4/realloc.m4: Likewise.
114272         * m4/st_dm_mode.m4: Likewise.
114273         * m4/stat.m4: Likewise.
114274         * m4/utimbuf.m4: Likewise.
114275         * m4/utimes.m4: Likewise.
114277         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
114278         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
114279         comments in config.h.in are meaningful.
114281         * m4/jm-macros.m4: Require autoconf-2.13 here.
114283         * m4/regex.m4: By default, don't use the included regex.c on systems
114284         with glibc 2.  Suggestion from Uli Drepper.
114286 1999-01-02  Jim Meyering  <meyering@ascend.com>
114288         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
114290 1998-12-18  Jim Meyering  <meyering@ascend.com>
114292         * m4/Makefile.am.in (Makefile.am): Simplify rule.
114293         Based on a suggestion from Lars Hecking.
114295 1998-11-16  Paul Eggert  <eggert@twinsun.com>
114297         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
114299 1998-11-16  Jim Meyering  <meyering@ascend.com>
114301         * m4/lfs.m4: Double-quote the `uname...` expression.
114303 1998-11-14  Jim Meyering  <meyering@ascend.com>
114305         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
114306         * m4/stat.m4: Likewise.
114308 1998-11-03  Jim Meyering  <meyering@ascend.com>
114310         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
114311         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
114313 1998-10-18  Jim Meyering  <meyering@ascend.com>
114315         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
114317 1998-10-17  Jim Meyering  <meyering@ascend.com>
114319         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
114320         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
114321         calls for those previously hard-coded headers.  Instead, take a new
114322         parameter.
114323         (jm_CHECK_DECLARATIONS): Reflect interface change.
114324         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
114325         (jm_CHECK_DECL_LOCALTIME_R): New macro.
114327         * m4/mktime.m4: Test for spring-forward gap before long-running test.
114329 1998-10-14  Jim Meyering  <meyering@ascend.com>
114331         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
114332         instead of "TZ=America/Vancouver".  From Paul Eggert.
114334 1998-10-11  Jim Meyering  <meyering@ascend.com>
114336         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
114337         This adds a test for a recently added compatibility fix for mktime.c.
114338         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
114340 1998-09-27  Jim Meyering  <meyering@ascend.com>
114342         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
114344         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
114345         ../configure.in, including a change from Gordon Matzigkeit to allow
114346         cross-compiling for the Hurd.
114348         * m4/glibc.m4: New file/macro to test for the GNU C Library
114349         versions 1 and 2.  From Gordon Matzigkeit.
114350         Indent.
114352 1998-09-21  Jim Meyering  <meyering@ascend.com>
114354         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
114356 1998-08-18  Paul Eggert  <eggert@twinsun.com>
114358         Port nanosecond-resolution times to UnixWare 2.1.2 and
114359         pedantic Solaris 2.6.
114361         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
114362         AC_STRUCT_ST_MTIM.
114363         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
114364         Generate name of ns member, instead of just 1 or undef.
114365         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
114367 1998-08-15  Jim Meyering  <meyering@ascend.com>
114369         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
114370         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
114371         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
114372         instead of jm_TYPE_SSIZE_T.
114374 1998-08-12  Jim Meyering  <meyering@ascend.com>
114376         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
114378 1998-08-02  Jim Meyering  <meyering@ascend.com>
114380         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
114381         in acconfig.h manually.
114383 1998-07-31  Paul Eggert  <eggert@twinsun.com>
114385         * m4/st_mtim.m4: New file.
114387 1998-07-28  Jim Meyering  <meyering@ascend.com>
114389         * m4/utimes.m4: Undef stat.
114391 1998-07-25  Jim Meyering  <meyering@ascend.com>
114393         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
114394         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
114396 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
114398         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
114399         uid and gid actually remain unchanged.
114401 1998-07-07  Jim Meyering  <meyering@ascend.com>
114403         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
114405 1998-07-04  Jim Meyering  <meyering@ascend.com>
114407         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
114408         to prove that this macro can be used in packages without regex.c.
114410 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
114412         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
114413         is to be used.
114415 1998-07-03  Jim Meyering  <meyering@ascend.com>
114417         * m4/gettext.m4: Add -lintl if it's found to be necessary.
114419         * m4/gettext.m4: New file -- from gettext-0.10.35.
114420         * m4/lcmessage.m4: Likewise.
114421         * m4/progtest.m4: Likewise.
114423         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
114424         * m4/jm-macros.m4: Require the new macro.
114426 1998-06-29  Jim Meyering  <meyering@ascend.com>
114428         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
114429         for the definition of NGROUPS (used in a system header included
114430         by sys/mount.h).
114432 1998-06-28  Jim Meyering  <meyering@ascend.com>
114434         * m4/ls-mntd-fs.m4: New file.
114435         * m4/fstypename.m4: New file.
114437         * m4/jm-macros.m4: Require the new macro.
114438         * m4/jm-glibc-io.m4: New file.
114440 1998-05-19  Jim Meyering  <meyering@ascend.com>
114442         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
114443         * m4/lchown.m4: New file.
114445         * m4/Makefile.am.in: New file.
114446         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
114448 1998-05-14  Jim Meyering  <meyering@ascend.com>
114450         * m4/Makefile.am (EXTRA_DIST): Add them.
114451         * m4/jm-macros.m4: New file.
114452         * m4/utimbuf.m4: New file.
114454 1998-05-12  Jim Meyering  <meyering@ascend.com>
114456         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
114458 1998-05-11  Jim Meyering  <meyering@ascend.com>
114460         * m4/isc-posix.m4: New file.
114462 1998-05-10  Jim Meyering  <meyering@ascend.com>
114464         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
114466 1998-05-09  Jim Meyering  <meyering@ascend.com>
114468         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
114469         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
114470         with automake.
114472         * m4/ssize_t.m4: New file.
114473         * m4/mktime.m4: Remove file -- the new automake has this now.
114475 1998-04-26  Jim Meyering  <meyering@ascend.com>
114477         * m4/assert.m4: New file.
114478         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
114480 1998-04-05  Jim Meyering  <meyering@ascend.com>
114482         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
114483         (jm_PREREQ): Use it here.
114485 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
114487         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
114488         in acconfig.h.
114490 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
114492         * m4/prereq.m4: New file.
114493         * m4/error.m4: New file.
114494         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
114496 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
114498         * m4/getline.m4: Don't set am_cv_func_working_getline before the
114499         cache-check for the same variable -- that defeated the purpose of
114500         the test; the test program was never run.  This was a problem only
114501         on systems with losing getline functions -- HP-UX 10.20 is one.
114502         Reported by Bjorn Helgaas.
114504 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
114506         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
114508 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
114510         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
114512         * m4/const.m4: New file.  Use an initializer in this declaration
114513         typedef int charset[2]; const charset x;
114514         Reported by Bob Glickstein.
114516 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
114518         * m4/chown.m4: Fix reversed types on -1 args to chown.
114519         From Kaveh Ghazi.
114521 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
114523         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
114524         Add lseek and memchr.
114526         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
114527         T.E.Dickey <dickey@clark.net> said that some older preprocessors
114528         have a 20-character limit on names.
114530 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
114532         * m4/inttypes_h.m4: New file.
114533         * m4/uintmax_t.m4: New file.
114534         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
114537         -----
114539         Local Variables:
114540         coding: utf-8
114541         End:
114543         Copyright (C) 1997-2018 Free Software Foundation, Inc.
114545         Copying and distribution of this file, with or without
114546         modification, are permitted provided the copyright notice
114547         and this notice are preserved.