a0f0b94f33bc16b9eac8522751f251653c170647
[gnulib.git] / ChangeLog
1 2010-02-17  Bruno Haible  <bruno@clisp.org>
2
3         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
4         Reported by Ludovic Courtès <ludo@gnu.org>.
5
6 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7
8         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9         linking with -lintl.
10
11 2010-02-17  Simon Josefsson  <simon@josefsson.org>
12
13         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
14         if not provided by the system's netdb.h.  Reported by
15         ludo@gnu.org (Ludovic Courtès).
16
17 2010-02-15  Jim Meyering  <meyering@redhat.com>
18
19         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
21         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22
23 2010-02-14  Jim Meyering  <meyering@redhat.com>
24
25         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27         (sc_prohibit_hash_pjw_without_use): New rule.
28
29         maint.mk: allow the default upload destination dir to be overridden
30         * top/maint.mk (upload_dest_dir_): Define with a default that
31         preserves the status quo.
32         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33         Reported by Peter Simons.
34
35         maint.mk: prohibit inclusion of "hash.h" without_use
36         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37
38 2010-02-10  Jim Meyering  <meyering@redhat.com>
39
40         maint.mk: prohibit inclusion of "ignore-value.h" without_use
41         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
42
43 2010-02-09  Eric Blake  <ebb9@byu.net>
44         and Bruno Haible  <bruno@clisp.org>
45
46         obstack-printf-posix: ensure declaration
47         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
48         extracted from gl_FUNC_OBSTACK_PRINTF.
49         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
50         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51         Likewise.
52         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
54         0.
55
56 2010-02-08  Bruno Haible  <bruno@clisp.org>
57
58         gnulib-tool: Fix typo in 2010-02-07 commit.
59         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
60         Reported by Eric Blake.
61
62 2010-02-07  Bruno Haible  <bruno@clisp.org>
63
64         gnulib-tool: Fix up caching patches.
65         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
66         option --no-cache. Use associative arrays when supported by the shell.
67         (sed_comments): New variable.
68         (modcache): Renamed from do_cache.
69         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
70         abbreviate unnecessarily.
71         (have_associative): New variable.
72         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
73         way also for ksh and zsh.
74         (func_init_sed_convert_to_cache_statements): New function, extracted
75         from func_cache_lookup_module. Add support for associative arrays.
76         Don't set the c_MODULE_cached variable here. Ignore all lines before
77         the first field header. Remove only the final newline, not all trailing
78         newlines. Support empty fields correctly. Limit the use of 'eval' to
79         assignments.
80         (func_get_description, func_get_status, func_get_notice,
81         func_get_applicability, func_get_filelist, func_get_dependencies,
82         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
83         func_get_automake_snippet, func_get_include_directive,
84         func_get_link_directive, func_get_license, func_get_maintainer):
85         Update documentation. List the unoptimized code first. Add support for
86         associative arrays. Limit the use of 'eval' to assignments.
87         (func_get_applicability): Undo stylistic pessimisations.
88         (func_get_automake_snippet, func_get_include_directive): Reduce code
89         duplication.
90         (func_modules_transitive_closure, func_modules_add_dummy,
91         func_modules_notice, func_modules_to_filelist, func_add_file,
92         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
93         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
94         func_create_testdir, func_create_megatestdir): Update documentation.
95
96 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97
98         * gnulib-tool (func_cache_lookup_module): Store the module name
99         belonging to the cache variable; error out if two different
100         module names map to the same cache variable name.
101
102 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103
104         gnulib-tool: Make caching optional.
105         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
106         Update matching short versions of --no-changelog.
107         (func_usage): Update.
108         (sed_extract_cache_prog): Renamed from ...
109         (sed_extract_prog): ... this; revert to old extraction script.
110         (func_get_description, func_get_status)
111         (func_get_notice, func_get_applicability, func_get_filelist)
112         (func_get_dependencies, func_get_autoconf_early_snippet)
113         (func_get_autoconf_snippet, func_get_automake_snippet)
114         (func_get_include_directive, func_get_link_directive)
115         (func_get_license, func_get_maintainer): If $do_cache is false,
116         use old, non-caching extraction scripts.
117         Suggestion by Bruno Haible.
118
119 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
120
121         gnulib-tool: cache module metainformation.
122         * gnulib-tool (sed_extract_prog): Match newline before each
123         header, and rewrite header to a shell variable suffix.
124         (func_cache_var, func_cache_lookup_module): New functions,
125         to turn a module name into a cache variable prefix, and to
126         look up and cache module metainformation.
127         (func_get_description, func_get_status)
128         (func_get_notice, func_get_applicability, func_get_filelist)
129         (func_get_dependencies, func_get_autoconf_early_snippet)
130         (func_get_autoconf_snippet, func_get_automake_snippet)
131         (func_get_include_directive, func_get_link_directive)
132         (func_get_license, func_get_maintainer): Use
133         func_cache_lookup_module.
134
135 2010-02-07  Bruno Haible  <bruno@clisp.org>
136
137         fnctl: Fix missing dependency.
138         * modules/fcntl (Depends-on): Add getdtablesize.
139         Reported by John W. Eaton <jwe@gnu.org>.
140
141 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
142
143         Argp: fix recognition of short alias options.
144
145         * lib/argp-parse.c (convert_options): Fix improper use of
146         `|' between character values.
147         * tests/test-argp.c (group1_option): New alias option
148         --read (-r).
149         (group1_parser): Special handling for 'r'.
150         (test15): New test case.
151         (test_fun): Add test15.
152         * tests/test-argp-2.sh: Update expected --help and --usage
153         outputs.
154
155 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
156
157         * tests/test-argp.c: Fix indentation.
158
159 2010-02-04  Eric Blake  <ebb9@byu.net>
160
161         gettimeofday: expose type of second argument
162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
163         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
164         * tests/test-gettimeofday.c: Use it to silence warning.
165         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
166         the issue.
167
168 2010-02-03  Jim Meyering  <meyering@redhat.com>
169
170         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
171         * lib/regcomp.c (TYPE_SIGNED): Define.
172         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
173
174         regcomp.c: avoid a new -Wshadow warning
175         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
176
177 2010-02-01  Jim Meyering  <meyering@redhat.com>
178
179         removing useless parentheses in cpp #define directives
180         For motivation, see commit c0221df4, "define STREQ(a,b)
181         consistently, removing useless parentheses"
182         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
183         * lib/mountlist.c (MNT_IGNORE): Likewise.
184         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
185
186 2010-02-01  Eric Blake  <ebb9@byu.net>
187
188         sys_time: use link-warning
189         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
190         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
191         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
192         * modules/sys_time (Depends-on): Add warn-on-use.
193         (Makefile.am): Always build replacement.
194         (configure.ac): Update substitutions.
195         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
196         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
197         bother with SYS_TIME_H.
198         * modules/gettimeofday (configure.ac): Declare indicator.
199         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
200         in use.
201
202         closein-tests: silence compiler warning
203         * tests/test-closein.c (main): Ignore fread result.
204         * modules/closein-tests (Depends-on): Add ignore-value.
205
206         tests: silence warning about system return
207         * tests/test-areadlink-with-size.c (main): Ignore system result.
208         * tests/test-areadlink.c (main): Likewise.
209         * tests/test-areadlinkat-with-size.c (main): Likewise.
210         * tests/test-areadlinkat.c (main): Likewise.
211         * tests/test-canonicalize-lgpl.c (main): Likewise.
212         * tests/test-canonicalize.c (main): Likewise.
213         * tests/test-chown.c (main): Likewise.
214         * tests/test-fchownat.c (main): Likewise.
215         * tests/test-fdutimensat.c (main): Likewise.
216         * tests/test-fstatat.c (main): Likewise.
217         * tests/test-futimens.c (main): Likewise.
218         * tests/test-lchown.c (main): Likewise.
219         * tests/test-link.c (main): Likewise.
220         * tests/test-linkat.c (main): Likewise.
221         * tests/test-lstat.c (main): Likewise.
222         * tests/test-mkdir.c (main): Likewise.
223         * tests/test-mkdirat.c (main): Likewise.
224         * tests/test-mkfifo.c (main): Likewise.
225         * tests/test-mkfifoat.c (main): Likewise.
226         * tests/test-mknod.c (main): Likewise.
227         * tests/test-readlink.c (main): Likewise.
228         * tests/test-remove.c (main): Likewise.
229         * tests/test-rename.c (main): Likewise.
230         * tests/test-renameat.c (main): Likewise.
231         * tests/test-rmdir.c (main): Likewise.
232         * tests/test-symlink.c (main): Likewise.
233         * tests/test-symlinkat.c (main): Likewise.
234         * tests/test-unlink.c (main): Likewise.
235         * tests/test-unlinkat.c (main): Likewise.
236         * tests/test-utimens.c (main): Likewise.
237         * tests/test-utimensat.c (main): Likewise.
238         * modules/areadlink-tests (Depends-on): Add ignore-value.
239         * modules/areadlink-with-size-tests (Depends-on): Likewise.
240         * modules/areadlinkat-tests (Depends-on): Likewise.
241         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
242         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
243         * modules/canonicalize-tests (Depends-on): Likewise.
244         * modules/chown-tests (Depends-on): Likewise.
245         * modules/fdutimensat-tests (Depends-on): Likewise.
246         * modules/futimens-tests (Depends-on): Likewise.
247         * modules/lchown-tests (Depends-on): Likewise.
248         * modules/link-tests (Depends-on): Likewise.
249         * modules/linkat-tests (Depends-on): Likewise.
250         * modules/lstat-tests (Depends-on): Likewise.
251         * modules/mkdir-tests (Depends-on): Likewise.
252         * modules/mkfifo-tests (Depends-on): Likewise.
253         * modules/mkfifoat-tests (Depends-on): Likewise.
254         * modules/mknod-tests (Depends-on): Likewise.
255         * modules/openat-tests (Depends-on): Likewise.
256         * modules/readlink-tests (Depends-on): Likewise.
257         * modules/remove-tests (Depends-on): Likewise.
258         * modules/rename-tests (Depends-on): Likewise.
259         * modules/renameat-tests (Depends-on): Likewise.
260         * modules/rmdir-tests (Depends-on): Likewise.
261         * modules/symlink-tests (Depends-on): Likewise.
262         * modules/symlinkat-tests (Depends-on): Likewise.
263         * modules/unlink-tests (Depends-on): Likewise.
264         * modules/utimens-tests (Depends-on): Likewise.
265         * modules/utimensat-tests (Depends-on): Likewise.
266
267 2010-01-31  Bruno Haible  <bruno@clisp.org>
268
269         Perform the same test for many <math.h> functions.
270         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
271         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
272         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
273         of gl_MATHFUNC.
274         * modules/acos (configure.ac): Likewise.
275         * modules/asin (configure.ac): Likewise.
276         * modules/atan (configure.ac): Likewise.
277         * modules/atan2 (configure.ac): Likewise.
278         * modules/cbrt (configure.ac): Likewise.
279         * modules/copysign (configure.ac): Likewise.
280         * modules/cos (configure.ac): Likewise.
281         * modules/cosh (configure.ac): Likewise.
282         * modules/erf (configure.ac): Likewise.
283         * modules/erfc (configure.ac): Likewise.
284         * modules/exp (configure.ac): Likewise.
285         * modules/fmod (configure.ac): Likewise.
286         * modules/hypot (configure.ac): Likewise.
287         * modules/j0 (configure.ac): Likewise.
288         * modules/j1 (configure.ac): Likewise.
289         * modules/jn (configure.ac): Likewise.
290         * modules/lgamma (configure.ac): Likewise.
291         * modules/log (configure.ac): Likewise.
292         * modules/log10 (configure.ac): Likewise.
293         * modules/log1p (configure.ac): Likewise.
294         * modules/pow (configure.ac): Likewise.
295         * modules/remainder (configure.ac): Likewise.
296         * modules/sin (configure.ac): Likewise.
297         * modules/sinh (configure.ac): Likewise.
298         * modules/tan (configure.ac): Likewise.
299         * modules/tanh (configure.ac): Likewise.
300         * modules/y0 (configure.ac): Likewise.
301         * modules/y1 (configure.ac): Likewise.
302         * modules/yn (configure.ac): Likewise.
303         Suggested by Paolo Bonzini.
304
305 2010-01-31  Bruno Haible  <bruno@clisp.org>
306
307         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
308
309 2010-01-31  Bruno Haible  <bruno@clisp.org>
310
311         Work around getdelim() bug on FreeBSD 8.0.
312         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
313         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
314         not work.
315         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
316         is 1.
317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
318         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
319         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
320         a non-zero size.
321         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
322
323 2010-01-31  Bruno Haible  <bruno@clisp.org>
324
325         Work around getline() bug on FreeBSD 8.0.
326         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
327         and a non-zero size.
328         * tests/test-getline.c (main): Likewise.
329         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
330         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
331
332 2010-01-28  Eric Blake  <ebb9@byu.net>
333
334         regex: fix build failure
335         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
336         platforms.
337
338 2010-01-28  Jim Meyering  <meyering@redhat.com>
339
340         regex: do not ignore memory allocation failure
341         * lib/regex_internal.c (create_cd_newstate): Detect
342         re_node_set_init_copy failure.   Extracted from glibc commit
343         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
344
345         regex: sync more white-space changes from libc
346         * lib/regex_internal.c: White-space only changes.
347         * lib/regexec.c: Likewise.
348
349         regex: add many uses of __attribute_warn_unused_result__
350         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
351         * lib/regexec.c: Likewise.
352         Extracted from a messy glibc commit.
353
354         regcomp.c: spelling and merge-artifact from glibc
355         * lib/regcomp.c: Merge remainder of glibc's
356         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
357
358         regcomp.c: sync white-space changes from glibc
359         * lib/regcomp.c: Merge to accommodate white space
360         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
361
362         regcomp.c: do not ignore internal return values
363         * lib/regcomp.c: Do not ignore internal return values.
364         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
365         but without its white-space changes and spelling fixes.
366
367         regex_internal.h: define __attribute_warn_unused_result__
368         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
369
370         maint: add a syntax-check rule to check for vulnerable Makefile.in
371         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
372
373 2010-01-27  Jim Meyering  <meyering@redhat.com>
374
375         ncftpput-ftp: clean up spaces
376         * build-aux/ncftpput-ftp: Make Copyright line consistent.
377         Remove trailing blanks.
378
379 2010-01-27  Simon Josefsson  <simon@josefsson.org>
380
381         * build-aux/git-version-gen: Fix copyright statement.
382         * build-aux/gnupload: Likewise.
383         * tests/test-arcfour.c: Likewise.
384         * tests/test-arctwo.c: Likewise.
385         * tests/test-count-one-bits.c: Likewise.
386         * tests/test-crc.c: Likewise.
387         * tests/test-des.c: Likewise.
388         * tests/test-gc-arcfour.c: Likewise.
389         * tests/test-gc-arctwo.c: Likewise.
390         * tests/test-gc-des.c: Likewise.
391         * tests/test-gc-hmac-md5.c: Likewise.
392         * tests/test-gc-hmac-sha1.c: Likewise.
393         * tests/test-gc-md2.c: Likewise.
394         * tests/test-gc-md4.c: Likewise.
395         * tests/test-gc-md5.c: Likewise.
396         * tests/test-gc-pbkdf2-sha1.c: Likewise.
397         * tests/test-gc-rijndael.c: Likewise.
398         * tests/test-gc-sha1.c: Likewise.
399         * tests/test-gc.c: Likewise.
400         * tests/test-gethostname.c: Likewise.
401         * tests/test-gettimeofday.c: Likewise.
402         * tests/test-hash.c: Likewise.
403         * tests/test-hmac-md5.c: Likewise.
404         * tests/test-hmac-sha1.c: Likewise.
405         * tests/test-md2.c: Likewise.
406         * tests/test-md4.c: Likewise.
407         * tests/test-md5.c: Likewise.
408         * tests/test-memchr.c: Likewise.
409         * tests/test-memchr2.c: Likewise.
410         * tests/test-memcmp.c: Likewise.
411         * tests/test-memmem.c: Likewise.
412         * tests/test-memrchr.c: Likewise.
413         * tests/test-rawmemchr.c: Likewise.
414         * tests/test-read-file.c: Likewise.
415         * tests/test-rijndael.c: Likewise.
416         * tests/test-sockets.c: Likewise.
417         * tests/test-strchrnul.c: Likewise.
418         * tests/test-strstr.c: Likewise.
419         * tests/test-strtod.c: Likewise.
420         * build-aux/ncftpput-ftp: Likewise.
421
422 2010-01-26  Eric Blake  <ebb9@byu.net>
423
424         ignore-value: update recommended header name
425         * modules/ignore-value (Include): Only use <> for headers that
426         exist in glibc.
427
428 2010-01-26  Jim Meyering  <meyering@redhat.com>
429
430         test-userspec.c: avoid compiler warnings
431         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
432         and "initialization discards qualifiers..." warnings.
433         Put the first "uid" in its own scope, and make char* members "const".
434
435 2010-01-25  Bruno Haible  <bruno@clisp.org>
436
437         gnulib-tool: Make warning diagnostics consistent.
438         * gnulib-tool (func_warning): New function.
439         Use it everywhere where gnulib-tool produces output to stderr and it is
440         not a fatal error.
441
442 2010-01-25  Bruno Haible  <bruno@clisp.org>
443
444         Fix test dependencies.
445         * modules/xstrtol-tests (Depends-on): Add inttypes.
446         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
447
448 2010-01-25 Pádraig Brady <P@draigBrady.com>
449
450         syntax-check: detect incorrect boolean macro values in config.h
451         * modules/maintainer-makefile (configure.ac): Parameterize the location
452         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
453         The logic is from Eric Blake and the location indicated by Jim Meyering.
454         Note the more natural CONFIG_HEADER name is prohibited by automake
455         for backwards compatibility reasons.
456         * top/maint.mk (sc_Wundef_boolean): New rule.
457
458 2010-01-25  Jim Meyering  <meyering@redhat.com>
459
460         bootstrap: detect MacOS 10.6's shasum, too
461         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
462         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
463
464 2010-01-23  Jim Meyering  <meyering@redhat.com>
465
466         xstrtoll: new module
467         * modules/xstrtoll: New file.
468         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
469         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
470         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
471         ./configure fails if you use this module and lack "long long".
472         * modules/xstrtoll-tests: New module.
473         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
474         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
475         new init.sh-based test framework.
476
477 2010-01-24  Bruno Haible  <bruno@clisp.org>
478
479         Tests for module 'yn'.
480         * modules/yn-tests: New file.
481         * tests/test-yn.c: New file.
482
483         Tests for module 'y1'.
484         * modules/y1-tests: New file.
485         * tests/test-y1.c: New file.
486
487         Tests for module 'y0'.
488         * modules/y0-tests: New file.
489         * tests/test-y0.c: New file.
490
491         Tests for module 'tanh'.
492         * modules/tanh-tests: New file.
493         * tests/test-tanh.c: New file.
494
495         Tests for module 'tan'.
496         * modules/tan-tests: New file.
497         * tests/test-tan.c: New file.
498
499         Tests for module 'sqrt'.
500         * modules/sqrt-tests: New file.
501         * tests/test-sqrt.c: New file.
502
503         Tests for module 'sinh'.
504         * modules/sinh-tests: New file.
505         * tests/test-sinh.c: New file.
506
507         Tests for module 'sin'.
508         * modules/sin-tests: New file.
509         * tests/test-sin.c: New file.
510
511         Tests for module 'rint'.
512         * modules/rint-tests: New file.
513         * tests/test-rint.c: New file.
514
515         Tests for module 'remainder'.
516         * modules/remainder-tests: New file.
517         * tests/test-remainder.c: New file.
518
519         Tests for module 'pow'.
520         * modules/pow-tests: New file.
521         * tests/test-pow.c: New file.
522
523         Tests for module 'nextafter'.
524         * modules/nextafter-tests: New file.
525         * tests/test-nextafter.c: New file.
526
527         Tests for module 'modf'.
528         * modules/modf-tests: New file.
529         * tests/test-modf.c: New file.
530
531         Tests for module 'logb'.
532         * modules/logb-tests: New file.
533         * tests/test-logb.c: New file.
534
535         Tests for module 'log1p'.
536         * modules/log1p-tests: New file.
537         * tests/test-log1p.c: New file.
538
539         Tests for module 'log10'.
540         * modules/log10-tests: New file.
541         * tests/test-log10.c: New file.
542
543         Tests for module 'log'.
544         * modules/log-tests: New file.
545         * tests/test-log.c: New file.
546
547         Tests for module 'lgamma'.
548         * modules/lgamma-tests: New file.
549         * tests/test-lgamma.c: New file.
550
551         Tests for module 'ldexp'.
552         * modules/ldexp-tests: New file.
553         * tests/test-ldexp.c: New file.
554
555         Tests for module 'jn'.
556         * modules/jn-tests: New file.
557         * tests/test-jn.c: New file.
558
559         Tests for module 'j1'.
560         * modules/j1-tests: New file.
561         * tests/test-j1.c: New file.
562
563         Tests for module 'j0'.
564         * modules/j0-tests: New file.
565         * tests/test-j0.c: New file.
566
567         Tests for module 'hypot'.
568         * modules/hypot-tests: New file.
569         * tests/test-hypot.c: New file.
570
571         Tests for module 'fmod'.
572         * modules/fmod-tests: New file.
573         * tests/test-fmod.c: New file.
574
575         Tests for module 'fabs'.
576         * modules/fabs-tests: New file.
577         * tests/test-fabs.c: New file.
578
579         Tests for module 'exp'.
580         * modules/exp-tests: New file.
581         * tests/test-exp.c: New file.
582
583         Tests for module 'erfc'.
584         * modules/erfc-tests: New file.
585         * tests/test-erfc.c: New file.
586
587         Tests for module 'erf'.
588         * modules/erf-tests: New file.
589         * tests/test-erf.c: New file.
590
591         Tests for module 'cosh'.
592         * modules/cosh-tests: New file.
593         * tests/test-cosh.c: New file.
594
595         Tests for module 'cos'.
596         * modules/cos-tests: New file.
597         * tests/test-cos.c: New file.
598
599         Tests for module 'copysign'.
600         * modules/copysign-tests: New file.
601         * tests/test-copysign.c: New file.
602
603         Tests for module 'cbrt'.
604         * modules/cbrt-tests: New file.
605         * tests/test-cbrt.c: New file.
606
607         Tests for module 'atan2'.
608         * modules/atan2-tests: New file.
609         * tests/test-atan2.c: New file.
610
611         Tests for module 'atan'.
612         * modules/atan-tests: New file.
613         * tests/test-atan.c: New file.
614
615         Tests for module 'asin'.
616         * modules/asin-tests: New file.
617         * tests/test-asin.c: New file.
618
619         Tests for module 'acos'.
620         * modules/acos-tests: New file.
621         * tests/test-acos.c: New file.
622
623 2010-01-24  Bruno Haible  <bruno@clisp.org>
624
625         Fix tests for common <math.h> functions.
626         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
627         code snippet that references the function pointer, rather than merely
628         calling the function. Substitute the FUNC_LIBM variable.
629         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
630         * modules/acos (configure.ac): Likewise.
631         * modules/asin (configure.ac): Likewise.
632         * modules/atan (configure.ac): Likewise.
633         * modules/atan2 (configure.ac): Likewise.
634         * modules/cbrt (configure.ac): Likewise.
635         * modules/copysign (configure.ac): Likewise.
636         * modules/cos (configure.ac): Likewise.
637         * modules/cosh (configure.ac): Likewise.
638         * modules/erf (configure.ac): Likewise.
639         * modules/erfc (configure.ac): Likewise.
640         * modules/exp (configure.ac): Likewise.
641         * modules/fabs (configure.ac): Likewise.
642         * modules/fmod (configure.ac): Likewise.
643         * modules/hypot (configure.ac): Likewise.
644         * modules/j0 (configure.ac): Likewise.
645         * modules/j1 (configure.ac): Likewise.
646         * modules/jn (configure.ac): Likewise.
647         * modules/ldexp (configure.ac): Likewise.
648         * modules/lgamma (configure.ac): Likewise.
649         * modules/log (configure.ac): Likewise.
650         * modules/log10 (configure.ac): Likewise.
651         * modules/log1p (configure.ac): Likewise.
652         * modules/logb (configure.ac): Likewise.
653         * modules/modf (configure.ac): Likewise.
654         * modules/nextafter (configure.ac): Likewise.
655         * modules/pow (configure.ac): Likewise.
656         * modules/remainder (configure.ac): Likewise.
657         * modules/rint (configure.ac): Likewise.
658         * modules/sin (configure.ac): Likewise.
659         * modules/sinh (configure.ac): Likewise.
660         * modules/tan (configure.ac): Likewise.
661         * modules/tanh (configure.ac): Likewise.
662         * modules/y0 (configure.ac): Likewise.
663         * modules/y1 (configure.ac): Likewise.
664         * modules/yn (configure.ac): Likewise.
665
666 2010-01-24  Bruno Haible  <bruno@clisp.org>
667
668         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
669         * tests/test-acosl.c (x): New variable.
670         (main): Store argument in x and fetch it from x.
671         * tests/test-asinl.c (x): New variable.
672         (main): Store argument in x and fetch it from x.
673         * tests/test-atanl.c (x): New variable.
674         (main): Store argument in x and fetch it from x.
675         * tests/test-cosl.c (x): New variable.
676         (main): Store argument in x and fetch it from x.
677         * tests/test-expl.c (x): New variable.
678         (main): Store argument in x and fetch it from x.
679         * tests/test-logl.c (x): New variable.
680         (main): Store argument in x and fetch it from x.
681         * tests/test-sinl.c (x): New variable.
682         (main): Store argument in x and fetch it from x.
683         * tests/test-sqrtl.c (x): New variable.
684         (main): Store argument in x and fetch it from x.
685         * tests/test-tanl.c (x): New variable.
686         (main): Store argument in x and fetch it from x.
687
688 2010-01-24  Bruno Haible  <bruno@clisp.org>
689
690         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
691         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
692         assignments to the initial TESTS_ENVIRONMENT.
693         * doc/gnulib.texi (Unit test modules): Document it.
694         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
695         TESTS_ENVIRONMENT.
696         * modules/btowc-tests (Makefile.am): Likewise.
697         * modules/c-stack-tests (Makefile.am): Likewise.
698         * modules/c-strcase-tests (Makefile.am): Likewise.
699         * modules/copy-file-tests (Makefile.am): Likewise.
700         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
701         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
702         * modules/mbrtowc-tests (Makefile.am): Likewise.
703         * modules/mbscasecmp-tests (Makefile.am): Likewise.
704         * modules/mbscasestr-tests (Makefile.am): Likewise.
705         * modules/mbschr-tests (Makefile.am): Likewise.
706         * modules/mbscspn-tests (Makefile.am): Likewise.
707         * modules/mbsinit-tests (Makefile.am): Likewise.
708         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
709         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
710         * modules/mbspbrk-tests (Makefile.am): Likewise.
711         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
712         * modules/mbsrchr-tests (Makefile.am): Likewise.
713         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
714         * modules/mbsspn-tests (Makefile.am): Likewise.
715         * modules/mbsstr-tests (Makefile.am): Likewise.
716         * modules/nl_langinfo-tests (Makefile.am): Likewise.
717         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
718         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
719         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
720         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
721         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
722         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
723         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
724         * modules/wcrtomb-tests (Makefile.am): Likewise.
725         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
726         * modules/wcsrtombs-tests (Makefile.am): Likewise.
727         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
728         assignments from TESTS_ENVIRONMENT.
729         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
730         augmentation.
731         * modules/argp-version-etc-tests (Makefile.am): Likewise.
732         * modules/atexit-tests (Makefile.am): Likewise.
733         * modules/binary-io-tests (Makefile.am): Likewise.
734         * modules/closein-tests (Makefile.am): Likewise.
735         * modules/dprintf-posix-tests (Makefile.am): Likewise.
736         * modules/exclude-tests (Makefile.am): Likewise.
737         * modules/fflush-tests (Makefile.am): Likewise.
738         * modules/fpending-tests (Makefile.am): Likewise.
739         * modules/fprintf-posix-tests (Makefile.am): Likewise.
740         * modules/freadahead-tests (Makefile.am): Likewise.
741         * modules/freadptr-tests (Makefile.am): Likewise.
742         * modules/freadseek-tests (Makefile.am): Likewise.
743         * modules/fseek-tests (Makefile.am): Likewise.
744         * modules/fseeko-tests (Makefile.am): Likewise.
745         * modules/ftell-tests (Makefile.am): Likewise.
746         * modules/ftello-tests (Makefile.am): Likewise.
747         * modules/idpriv-drop-tests (Makefile.am): Likewise.
748         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
749         * modules/lseek-tests (Makefile.am): Likewise.
750         * modules/parse-duration-tests (Makefile.am): Likewise.
751         * modules/perror-tests (Makefile.am): Likewise.
752         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
753         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
754         * modules/pipe-tests (Makefile.am): Likewise.
755         * modules/pread-tests (Makefile.am): Likewise.
756         * modules/printf-posix-tests (Makefile.am): Likewise.
757         * modules/select-tests (Makefile.am): Likewise.
758         * modules/sigpipe-tests (Makefile.am): Likewise.
759         * modules/tsearch-tests (Makefile.am): Likewise.
760         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
761         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
762         * modules/uniname/uniname-tests (Makefile.am): Likewise.
763         * modules/uniwidth/width-tests (Makefile.am): Likewise.
764         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
765         * modules/version-etc-tests (Makefile.am): Likewise.
766         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
767         * modules/vprintf-posix-tests (Makefile.am): Likewise.
768         * modules/xalloc-die-tests (Makefile.am): Likewise.
769         * modules/xprintf-posix-tests (Makefile.am): Likewise.
770         * modules/xstrtoimax-tests (Makefile.am): Likewise.
771         * modules/xstrtol-tests (Makefile.am): Likewise.
772         * modules/xstrtoumax-tests (Makefile.am): Likewise.
773         * modules/yesno-tests (Makefile.am): Likewise.
774         Suggested by Jim Meyering.
775
776 2010-01-24  Bruno Haible  <bruno@clisp.org>
777
778         More documentation.
779         * doc/gnulib.texi (Writing modules): New chapter.
780         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
781         the new chapter.
782
783 2010-01-24  Jim Meyering  <meyering@redhat.com>
784
785         maint.mk: do not prepend "./" after filtering
786         * top/maint.mk (_prepend_srcdir_prefix): New variable
787         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
788         "./" when $(srcdir) is ".".
789
790         define STREQ(a,b) consistently, removing useless parentheses
791         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
792         since the only risk is that "a" or "b" contains an unparenthesized
793         comma, but if either did that, STREQ would have 3 or more arguments.
794         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
795         * lib/fts.c (STREQ): Remove unnecessary parentheses.
796         * lib/hash-triple.c (STREQ): Likewise.
797         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
798         * lib/getugroups.c (STREQ): Likewise.
799
800 2010-01-23  Jim Meyering  <meyering@redhat.com>
801
802         maint.mk: fix syntax-check in a non-srcdir build directory
803         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
804         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
805
806 2010-01-22  Jim Meyering  <meyering@redhat.com>
807
808         userspec: add unit tests
809         * tests/test-userspec.c: New file.
810         * modules/userspec-tests: Likewise.
811
812 2010-01-21  Jim Meyering  <meyering@redhat.com>
813
814         maint.mk: handle source file names containing "." robustly
815         * top/maint.mk (_dot_escaped_srcdir): Define.
816         (VC_LIST): Use it in LHS of sed substitution.
817
818 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
819
820         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
821         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
822         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
823         from a non-srcdir build.
824
825 2010-01-20  Eric Blake  <ebb9@byu.net>
826
827         warn-on-use: use instead of link-warning
828         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
829         * modules/unistd (Depends-on, Makefile.am): Likewise.
830         * modules/arpa_inet (Depends-on): Replace link-warning with
831         warn-on-use.
832         (Makefile.am): Update rules accordingly.
833         * modules/ctype (Depends-on, Makefile.am): Likewise.
834         * modules/dirent (Depends-on, Makefile.am): Likewise.
835         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
836         * modules/inttypes (Depends-on, Makefile.am): Likewise.
837         * modules/langinfo (Depends-on, Makefile.am): Likewise.
838         * modules/locale (Depends-on, Makefile.am): Likewise.
839         * modules/math (Depends-on, Makefile.am): Likewise.
840         * modules/search (Depends-on, Makefile.am): Likewise.
841         * modules/signal (Depends-on, Makefile.am): Likewise.
842         * modules/spawn (Depends-on, Makefile.am): Likewise.
843         * modules/stdlib (Depends-on, Makefile.am): Likewise.
844         * modules/string (Depends-on, Makefile.am): Likewise.
845         * modules/strings (Depends-on, Makefile.am): Likewise.
846         * modules/sys_file (Depends-on, Makefile.am): Likewise.
847         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
848         * modules/sys_select (Depends-on, Makefile.am): Likewise.
849         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
850         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
851         * modules/sys_times (Depends-on, Makefile.am): Likewise.
852         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
853         * modules/wchar (Depends-on, Makefile.am): Likewise.
854         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
855         should be poisoned.
856         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
857         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
858         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
859         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
860         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
861         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
862         * m4/math_h.m4 (gl_MATH_H): Likewise.
863         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
864         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
865         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
866         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
867         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
868         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
869         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
870         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
871         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
872         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
873         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
875         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
876         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
878         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
879         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
880         GL_LINK_WARNING.
881         * lib/ctype.in.h: Likewise.
882         * lib/dirent.in.h: Likewise.
883         * lib/fcntl.in.h: Likewise.
884         * lib/inttypes.in.h: Likewise.
885         * lib/langinfo.in.h: Likewise.
886         * lib/locale.in.h: Likewise.
887         * lib/math.in.h: Likewise.
888         * lib/search.in.h: Likewise.
889         * lib/signal.in.h: Likewise.
890         * lib/spawn.in.h: Likewise.
891         * lib/stdio.in.h: Likewise.
892         * lib/stdlib.in.h: Likewise.
893         * lib/string.in.h: Likewise.
894         * lib/strings.in.h: Likewise.
895         * lib/sys_file.in.h: Likewise.
896         * lib/sys_ioctl.in.h: Likewise.
897         * lib/sys_select.in.h: Likewise.
898         * lib/sys_socket.in.h: Likewise.
899         * lib/sys_stat.in.h: Likewise.
900         * lib/sys_times.in.h: Likewise.
901         * lib/sys_utsname.in.h: Likewise.
902         * lib/unistd.in.h: Likewise.
903         * lib/wchar.in.h: Likewise.
904
905 2010-01-20  Bruno Haible  <bruno@clisp.org>
906
907         Avoid duplicate -lm.
908         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
909         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
910         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
911         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
912         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
913         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
914         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
915         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
916         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
917         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
918         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
919         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
920         Reported by Paolo Bonzini.
921
922 2010-01-19  Bruno Haible  <bruno@clisp.org>
923
924         langinfo, nl_langinfo: Relicense under LGPLv2+.
925         * modules/langinfo (License): Change to LGPLv2+.
926         * modules/nl_langinfo (License): Likewise.
927         Patch by David Lutterkort <lutter@redhat.com>.
928
929 2010-01-19  Bruno Haible  <bruno@clisp.org>
930
931         Avoid compilation error with cc on OSF/1 5.1.
932         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
933         statement, not before.
934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
935
936 2010-01-18  Bruno Haible  <bruno@clisp.org>
937
938         Avoid a link error due to the __printf__ symbol.
939         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
940         and 2.6.x.
941         (__format__, __printf__): Remove definitions.
942         * lib/argp-fmtstream.h: Likewise.
943         * lib/argp.h: Likewise.
944         * lib/error.h: Likewise.
945         * lib/vasnprintf.h: Likewise.
946         * lib/xprintf.h: Likewise.
947         * lib/xvasprintf.h: Likewise.
948         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
949
950 2010-01-18  Bruno Haible  <bruno@clisp.org>
951
952         Tests for module 'tanl'.
953         * modules/tanl-tests: New file.
954         * tests/test-tanl.c: New file.
955
956         Tests for module 'sqrtl'.
957         * modules/sqrtl-tests: New file.
958         * tests/test-sqrtl.c: New file.
959
960         Tests for module 'sinl'.
961         * modules/sinl-tests: New file.
962         * tests/test-sinl.c: New file.
963
964         Tests for module 'logl'.
965         * modules/logl-tests: New file.
966         * tests/test-logl.c: New file.
967
968         Tests for module 'expl'.
969         * modules/expl-tests: New file.
970         * tests/test-expl.c: New file.
971
972         Tests for module 'cosl'.
973         * modules/cosl-tests: New file.
974         * tests/test-cosl.c: New file.
975
976         Tests for module 'atanl'.
977         * modules/atanl-tests: New file.
978         * tests/test-atanl.c: New file.
979
980         Tests for module 'asinl'.
981         * modules/asinl-tests: New file.
982         * tests/test-asinl.c: New file.
983
984         Tests for module 'acosl'.
985         * modules/acosl-tests: New file.
986         * tests/test-acosl.c: New file.
987
988         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
989         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
990         tanl): Use the standard gnulib idiom.
991         * lib/cosl.c: Don't include trigl.c and sincosl.c.
992         * lib/sinl.c: Likewise.
993         * lib/tanl.c: Don't include trigl.c.
994         (kernel_tanl): Make static.
995         * lib/sincosl.c: Include trigl.h first.
996         * lib/trigl.c: Likewise.
997         * m4/acosl.m4: New file.
998         * m4/asinl.m4: New file.
999         * m4/atanl.m4: New file.
1000         * m4/cosl.m4: New file.
1001         * m4/expl.m4: New file.
1002         * m4/logl.m4: New file.
1003         * m4/sinl.m4: New file.
1004         * m4/sqrtl.m4: New file.
1005         * m4/tanl.m4: New file.
1006         * m4/mathl.m4: Remove file.
1007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1008         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1009         Don't initialize GNULIB_MATHL.
1010         * modules/acosl: New file.
1011         * modules/asinl: New file.
1012         * modules/atanl: New file.
1013         * modules/cosl: New file.
1014         * modules/expl: New file.
1015         * modules/logl: New file.
1016         * modules/sinl: New file.
1017         * modules/sqrtl: New file.
1018         * modules/tanl: New file.
1019         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1020         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1021         substitute GNULIB_MATHL.
1022         * modules/mathl: Rewritten.
1023         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1024         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1025         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1026         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1027         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1028         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1029         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1030         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1031         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1032
1033 2010-01-18  Bruno Haible  <bruno@clisp.org>
1034
1035         sqrt: Make gl_FUNC_SQRT requirable.
1036         * m4/sqrt.m4: New file.
1037         * modules/sqrt (Files): Add it.
1038         (configure.ac): Invoke gl_FUNC_SQRT.
1039
1040 2010-01-18  Bruno Haible  <bruno@clisp.org>
1041
1042         New modules for common <math.h> functions.
1043         * m4/mathfunc.m4: New file.
1044         * modules/acos: New file.
1045         * modules/asin: New file.
1046         * modules/atan: New file.
1047         * modules/atan2: New file.
1048         * modules/cbrt: New file.
1049         * modules/copysign: New file.
1050         * modules/cos: New file.
1051         * modules/cosh: New file.
1052         * modules/erf: New file.
1053         * modules/erfc: New file.
1054         * modules/exp: New file.
1055         * modules/fabs: New file.
1056         * modules/fmod: New file.
1057         * modules/hypot: New file.
1058         * modules/j0: New file.
1059         * modules/j1: New file.
1060         * modules/jn: New file.
1061         * modules/ldexp: New file.
1062         * modules/lgamma: New file.
1063         * modules/log: New file.
1064         * modules/log10: New file.
1065         * modules/log1p: New file.
1066         * modules/logb: New file.
1067         * modules/modf: New file.
1068         * modules/nextafter: New file.
1069         * modules/pow: New file.
1070         * modules/remainder: New file.
1071         * modules/rint: New file.
1072         * modules/sin: New file.
1073         * modules/sinh: New file.
1074         * modules/sqrt: New file.
1075         * modules/tan: New file.
1076         * modules/tanh: New file.
1077         * modules/y0: New file.
1078         * modules/y1: New file.
1079         * modules/yn: New file.
1080         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1081         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1082         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1083         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1084         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1085         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1086         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1087         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1088         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1089         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1090         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1091         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1092         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1093         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1094         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1095         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1096         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1097         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1098         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1099         * doc/posix-functions/log.texi: Mention the 'log' module.
1100         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1101         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1102         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1103         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1104         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1105         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1106         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1107         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1108         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1109         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1110         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1111         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1112         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1113         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1114         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1115         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1116
1117 2010-01-18  Jim Meyering  <meyering@redhat.com>
1118
1119         ignore-value: relax license to LGPLv2+
1120         * modules/ignore-value (License): Relax to LGPLv2+.
1121
1122         getdate: don't leak when TZ contains two or more '"'s
1123         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1124         double quote in TZ after the first one.
1125
1126         readtokens: do not leak internal token_lengths buffer
1127         * lib/readtokens.c (readtokens): Free the local, lengths,
1128         when the supplied "token_lengths" parameter is NULL.
1129
1130 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1131
1132         Fix a couple of missing LIBTHREAD link failures on AIX.
1133         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1134         $(LIBTHREAD).
1135         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1136
1137         Link test-poll against INET_PTON_LIB.
1138         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1139         for inet_pton on Solaris 10.
1140
1141 2010-01-17  Bruno Haible  <bruno@clisp.org>
1142
1143         unistdio/*-sprintf: Fix typo in module description.
1144         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1145         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1146         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1147         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1148         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1149         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1150         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1152
1153 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1154
1155         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1156         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1157         variables in shell case patterns, for AIX and HP-UX ksh.
1158
1159         Split large sed scripts, for HP-UX sed.
1160         * modules/stdio: Split sed scripts around 50 sed commands,
1161         to avoid HP-UX limit of 99 commands, in the near future.
1162         * modules/string: Likewise.
1163         * modules/unistd: Likewise.
1164
1165         gnulib-tool: avoid writing in the current directory.
1166         * gnulib-tool (func_emit_lib_Makefile_am)
1167         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1168         not in the current directory, so concurrent gnulib-tool
1169         instances do not interfere.
1170
1171 2010-01-16  Jim Meyering  <meyering@redhat.com>
1172
1173         doc: update users.txt
1174         * users.txt: Add grep.
1175         (diffutils, gzip): Update URLs.
1176
1177 2010-01-12  Bruno Haible  <bruno@clisp.org>
1178
1179         posix_spawn: Avoid test failure on Cygwin.
1180         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1181         characters.
1182         Reported by Simon Josefsson.
1183
1184 2010-01-12  Bruno Haible  <bruno@clisp.org>
1185
1186         * tests/test-cond.c (main): When skipping the test, show the reason.
1187
1188 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1189
1190         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1191
1192 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1193
1194         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1195         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1196
1197 2010-01-12  Eric Blake  <ebb9@byu.net>
1198
1199         build: guarantee AS_VAR_IF
1200         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1201         (gl_AS_VAR_IF): Move...
1202         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1203         Reported by Simon Josefsson.
1204
1205 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1206
1207         * lib/stdio.in.h: Fix typo.
1208
1209 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1210
1211         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1212         libgpg-error.
1213
1214 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1215
1216         * tests/test-xalloc-die.sh: Use $EXEEXT.
1217
1218 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1219             Bruno Haible  <bruno@clisp.org>
1220
1221         getlogin, getlogin_r: Avoid test failure.
1222         * tests/test-getlogin.c: Include <stdio.h>.
1223         (main): Skip the test when the function fails because stdin is not a
1224         tty.
1225         * tests/test-getlogin_r.c: Include <stdio.h>.
1226         (main): Skip the test when the function fails because stdin is not a
1227         tty.
1228
1229 2010-01-11  Eric Blake  <ebb9@byu.net>
1230
1231         tests: avoid more large file warnings
1232         * tests/test-fflush.c: Avoid warning about ftell use.
1233         * tests/test-fseek.c: Avoid warning about fseek use.
1234
1235 2010-01-10  Bruno Haible  <bruno@clisp.org>
1236
1237         nproc: Work better on Linux when /proc and /sys are not mounted.
1238         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1239         as lower bound when, on glibc/Linux systems,
1240         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1241         Suggested by Pádraig Brady <P@draigbrady.com>.
1242         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1243
1244         nproc: Refactor.
1245         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1246         extracted from num_processors.
1247         (num_processors): Call it.
1248
1249 2010-01-11  Jim Meyering  <meyering@redhat.com>
1250
1251         utimecmp: avoid new warning from upcoming gcc-4.5.0
1252         * lib/utimecmp.c (BILLION): Define using #define rather than an
1253         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1254
1255 2010-01-11  Eric Blake  <ebb9@byu.net>
1256
1257         math: add portability warnings for classification macros
1258         * modules/math (Depends-on): Add warn-on-use.
1259         (Makefile.am): Provide new substitutions.
1260         * m4/math_h.m4 (gl_MATH_H): Require inline.
1261         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1262         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1263         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1264         implement warnings.
1265
1266         unistd: warn on use of environ without module
1267         * modules/unistd (Depends-on): Add warn-on-use.
1268         (Makefile.am): Provide new substitutions.
1269         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1270         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1271
1272         stdio: warn on suspicious uses
1273         * modules/stdio (Depends-on): Add warn-on-use.
1274         (Makefile.am): Provide new substitutions.
1275         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1276         fseeko.
1277         * lib/stdio.in.h (gets): Always warn on use.
1278         (fseek, ftell): Adjust when warnings are issued, and honor
1279         _GL_NO_LARGE_FILES as a way to silence the warning.
1280         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1281         any warning about large file offsets.
1282         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1283         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1284         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1285         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1286         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1287         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1288         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1289         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1290
1291         warn-on-use: new module
1292         * modules/warn-on-use: New file.
1293         * build-aux/warn-on-use.h: Likewise.
1294         * m4/warn-on-use.m4: Likewise.
1295         * MODULES.html.sh (Support for building): Mention it.
1296
1297 2010-01-10  Bruno Haible  <bruno@clisp.org>
1298
1299         Tests for module 'unistr/u32-strdup'.
1300         * modules/unistr/u32-strdup-tests: New file.
1301         * tests/unistr/test-u32-strdup.c: New file.
1302
1303         Tests for module 'unistr/u16-strdup'.
1304         * modules/unistr/u16-strdup-tests: New file.
1305         * tests/unistr/test-u16-strdup.c: New file.
1306
1307         Tests for module 'unistr/u8-strdup'.
1308         * modules/unistr/u8-strdup-tests: New file.
1309         * tests/unistr/test-u8-strdup.c: New file.
1310         * tests/unistr/test-strdup.h: New file.
1311
1312         Tests for module 'unistr/u32-strncmp'.
1313         * modules/unistr/u32-strncmp-tests: New file.
1314         * tests/unistr/test-u32-strncmp.c: New file.
1315
1316         Tests for module 'unistr/u16-strncmp'.
1317         * modules/unistr/u16-strncmp-tests: New file.
1318         * tests/unistr/test-u16-strncmp.c: New file.
1319
1320         Tests for module 'unistr/u8-strncmp'.
1321         * modules/unistr/u8-strncmp-tests: New file.
1322         * tests/unistr/test-u8-strncmp.c: New file.
1323         * tests/unistr/test-strncmp.h: New file.
1324
1325         Tests for module 'unistr/u32-strcoll'.
1326         * modules/unistr/u32-strcoll-tests: New file.
1327         * tests/unistr/test-u32-strcoll.c: New file.
1328
1329         Tests for module 'unistr/u16-strcoll'.
1330         * modules/unistr/u16-strcoll-tests: New file.
1331         * tests/unistr/test-u16-strcoll.c: New file.
1332
1333         Tests for module 'unistr/u8-strcoll'.
1334         * modules/unistr/u8-strcoll-tests: New file.
1335         * tests/unistr/test-u8-strcoll.c: New file.
1336
1337         Tests for module 'unistr/u32-strcmp'.
1338         * modules/unistr/u32-strcmp-tests: New file.
1339         * tests/unistr/test-u32-strcmp.c: New file.
1340         * tests/unistr/test-u32-strcmp.h: New file.
1341
1342         Tests for module 'unistr/u16-strcmp'.
1343         * modules/unistr/u16-strcmp-tests: New file.
1344         * tests/unistr/test-u16-strcmp.c: New file.
1345         * tests/unistr/test-u16-strcmp.h: New file.
1346
1347         Tests for module 'unistr/u8-strcmp'.
1348         * modules/unistr/u8-strcmp-tests: New file.
1349         * tests/unistr/test-u8-strcmp.c: New file.
1350         * tests/unistr/test-u8-strcmp.h: New file.
1351         * tests/unistr/test-strcmp.h: New file.
1352
1353         Tests for module 'unistr/u32-strncat'.
1354         * modules/unistr/u32-strncat-tests: New file.
1355         * tests/unistr/test-u32-strncat.c: New file.
1356
1357         Tests for module 'unistr/u16-strncat'.
1358         * modules/unistr/u16-strncat-tests: New file.
1359         * tests/unistr/test-u16-strncat.c: New file.
1360
1361         Tests for module 'unistr/u8-strncat'.
1362         * modules/unistr/u8-strncat-tests: New file.
1363         * tests/unistr/test-u8-strncat.c: New file.
1364         * tests/unistr/test-strncat.h: New file.
1365
1366         Tests for module 'unistr/u32-strcat'.
1367         * modules/unistr/u32-strcat-tests: New file.
1368         * tests/unistr/test-u32-strcat.c: New file.
1369
1370         Tests for module 'unistr/u16-strcat'.
1371         * modules/unistr/u16-strcat-tests: New file.
1372         * tests/unistr/test-u16-strcat.c: New file.
1373
1374         Tests for module 'unistr/u8-strcat'.
1375         * modules/unistr/u8-strcat-tests: New file.
1376         * tests/unistr/test-u8-strcat.c: New file.
1377         * tests/unistr/test-strcat.h: New file.
1378
1379         Tests for module 'unistr/u32-stpncpy'.
1380         * modules/unistr/u32-stpncpy-tests: New file.
1381         * tests/unistr/test-u32-stpncpy.c: New file.
1382
1383         Tests for module 'unistr/u16-stpncpy'.
1384         * modules/unistr/u16-stpncpy-tests: New file.
1385         * tests/unistr/test-u16-stpncpy.c: New file.
1386
1387         Tests for module 'unistr/u8-stpncpy'.
1388         * modules/unistr/u8-stpncpy-tests: New file.
1389         * tests/unistr/test-u8-stpncpy.c: New file.
1390         * tests/unistr/test-stpncpy.h: New file.
1391
1392         Tests for module 'unistr/u32-strncpy'.
1393         * modules/unistr/u32-strncpy-tests: New file.
1394         * tests/unistr/test-u32-strncpy.c: New file.
1395
1396         Tests for module 'unistr/u16-strncpy'.
1397         * modules/unistr/u16-strncpy-tests: New file.
1398         * tests/unistr/test-u16-strncpy.c: New file.
1399
1400         Tests for module 'unistr/u8-strncpy'.
1401         * modules/unistr/u8-strncpy-tests: New file.
1402         * tests/unistr/test-u8-strncpy.c: New file.
1403         * tests/unistr/test-strncpy.h: New file.
1404
1405         Tests for module 'unistr/u32-stpcpy'.
1406         * modules/unistr/u32-stpcpy-tests: New file.
1407         * tests/unistr/test-u32-stpcpy.c: New file.
1408
1409         Tests for module 'unistr/u16-stpcpy'.
1410         * modules/unistr/u16-stpcpy-tests: New file.
1411         * tests/unistr/test-u16-stpcpy.c: New file.
1412
1413         Tests for module 'unistr/u8-stpcpy'.
1414         * modules/unistr/u8-stpcpy-tests: New file.
1415         * tests/unistr/test-u8-stpcpy.c: New file.
1416         * tests/unistr/test-stpcpy.h: New file.
1417
1418         Tests for module 'unistr/u32-strcpy'.
1419         * modules/unistr/u32-strcpy-tests: New file.
1420         * tests/unistr/test-u32-strcpy.c: New file.
1421
1422         Tests for module 'unistr/u16-strcpy'.
1423         * modules/unistr/u16-strcpy-tests: New file.
1424         * tests/unistr/test-u16-strcpy.c: New file.
1425
1426         Tests for module 'unistr/u8-strcpy'.
1427         * modules/unistr/u8-strcpy-tests: New file.
1428         * tests/unistr/test-u8-strcpy.c: New file.
1429         * tests/unistr/test-strcpy.h: New file.
1430
1431         Tests for module 'unistr/u32-strnlen'.
1432         * modules/unistr/u32-strnlen-tests: New file.
1433         * tests/unistr/test-u32-strnlen.c: New file.
1434
1435         Tests for module 'unistr/u16-strnlen'.
1436         * modules/unistr/u16-strnlen-tests: New file.
1437         * tests/unistr/test-u16-strnlen.c: New file.
1438
1439         Tests for module 'unistr/u8-strnlen'.
1440         * modules/unistr/u8-strnlen-tests: New file.
1441         * tests/unistr/test-u8-strnlen.c: New file.
1442         * tests/unistr/test-strnlen.h: New file.
1443
1444         Tests for module 'unistr/u32-strlen'.
1445         * modules/unistr/u32-strlen-tests: New file.
1446         * tests/unistr/test-u32-strlen.c: New file.
1447
1448         Tests for module 'unistr/u16-strlen'.
1449         * modules/unistr/u16-strlen-tests: New file.
1450         * tests/unistr/test-u16-strlen.c: New file.
1451
1452         Tests for module 'unistr/u8-strlen'.
1453         * modules/unistr/u8-strlen-tests: New file.
1454         * tests/unistr/test-u8-strlen.c: New file.
1455
1456         Tests for module 'unistr/u32-prev'.
1457         * modules/unistr/u32-prev-tests: New file.
1458         * tests/unistr/test-u32-prev.c: New file.
1459
1460         Tests for module 'unistr/u16-prev'.
1461         * modules/unistr/u16-prev-tests: New file.
1462         * tests/unistr/test-u16-prev.c: New file.
1463
1464         Tests for module 'unistr/u8-prev'.
1465         * modules/unistr/u8-prev-tests: New file.
1466         * tests/unistr/test-u8-prev.c: New file.
1467
1468         Tests for module 'unistr/u32-next'.
1469         * modules/unistr/u32-next-tests: New file.
1470         * tests/unistr/test-u32-next.c: New file.
1471
1472         Tests for module 'unistr/u16-next'.
1473         * modules/unistr/u16-next-tests: New file.
1474         * tests/unistr/test-u16-next.c: New file.
1475
1476         Tests for module 'unistr/u8-next'.
1477         * modules/unistr/u8-next-tests: New file.
1478         * tests/unistr/test-u8-next.c: New file.
1479
1480         Tests for module 'unistr/u32-strmbtouc'.
1481         * modules/unistr/u32-strmbtouc-tests: New file.
1482         * tests/unistr/test-u32-strmbtouc.c: New file.
1483
1484         Tests for module 'unistr/u16-strmbtouc'.
1485         * modules/unistr/u16-strmbtouc-tests: New file.
1486         * tests/unistr/test-u16-strmbtouc.c: New file.
1487
1488         Tests for module 'unistr/u8-strmbtouc'.
1489         * modules/unistr/u8-strmbtouc-tests: New file.
1490         * tests/unistr/test-u8-strmbtouc.c: New file.
1491
1492         Tests for module 'unistr/u32-strmblen'.
1493         * modules/unistr/u32-strmblen-tests: New file.
1494         * tests/unistr/test-u32-strmblen.c: New file.
1495
1496         Tests for module 'unistr/u16-strmblen'.
1497         * modules/unistr/u16-strmblen-tests: New file.
1498         * tests/unistr/test-u16-strmblen.c: New file.
1499
1500         Tests for module 'unistr/u8-strmblen'.
1501         * modules/unistr/u8-strmblen-tests: New file.
1502         * tests/unistr/test-u8-strmblen.c: New file.
1503
1504         Tests for module 'unistr/u32-cpy-alloc'.
1505         * modules/unistr/u32-cpy-alloc-tests: New file.
1506         * tests/unistr/test-u32-cpy-alloc.c: New file.
1507
1508         Tests for module 'unistr/u16-cpy-alloc'.
1509         * modules/unistr/u16-cpy-alloc-tests: New file.
1510         * tests/unistr/test-u16-cpy-alloc.c: New file.
1511
1512         Tests for module 'unistr/u8-cpy-alloc'.
1513         * modules/unistr/u8-cpy-alloc-tests: New file.
1514         * tests/unistr/test-u8-cpy-alloc.c: New file.
1515         * tests/unistr/test-cpy-alloc.h: New file.
1516
1517         Tests for module 'unistr/u32-mbsnlen'.
1518         * modules/unistr/u32-mbsnlen-tests: New file.
1519         * tests/unistr/test-u32-mbsnlen.c: New file.
1520
1521         Tests for module 'unistr/u16-mbsnlen'.
1522         * modules/unistr/u16-mbsnlen-tests: New file.
1523         * tests/unistr/test-u16-mbsnlen.c: New file.
1524
1525         Tests for module 'unistr/u8-mbsnlen'.
1526         * modules/unistr/u8-mbsnlen-tests: New file.
1527         * tests/unistr/test-u8-mbsnlen.c: New file.
1528
1529         Tests for module 'unistr/u32-chr'.
1530         * modules/unistr/u32-chr-tests: New file.
1531         * tests/unistr/test-u32-chr.c: New file.
1532
1533         Tests for module 'unistr/u16-chr'.
1534         * modules/unistr/u16-chr-tests: New file.
1535         * tests/unistr/test-u16-chr.c: New file.
1536
1537         Tests for module 'unistr/u8-chr'.
1538         * modules/unistr/u8-chr-tests: New file.
1539         * tests/unistr/test-u8-chr.c: New file.
1540         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1541
1542         Tests for module 'unistr/u32-cmp2'.
1543         * modules/unistr/u32-cmp2-tests: New file.
1544         * tests/unistr/test-u32-cmp2.c: New file.
1545
1546         Tests for module 'unistr/u16-cmp2'.
1547         * modules/unistr/u16-cmp2-tests: New file.
1548         * tests/unistr/test-u16-cmp2.c: New file.
1549
1550         Tests for module 'unistr/u8-cmp2'.
1551         * modules/unistr/u8-cmp2-tests: New file.
1552         * tests/unistr/test-u8-cmp2.c: New file.
1553         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1554
1555         Tests for module 'unistr/u32-cmp'.
1556         * modules/unistr/u32-cmp-tests: New file.
1557         * tests/unistr/test-u32-cmp.c: New file.
1558
1559         Tests for module 'unistr/u16-cmp'.
1560         * modules/unistr/u16-cmp-tests: New file.
1561         * tests/unistr/test-u16-cmp.c: New file.
1562
1563         Tests for module 'unistr/u8-cmp'.
1564         * modules/unistr/u8-cmp-tests: New file.
1565         * tests/unistr/test-u8-cmp.c: New file.
1566         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1567
1568         Tests for module 'unistr/u32-set'.
1569         * modules/unistr/u32-set-tests: New file.
1570         * tests/unistr/test-u32-set.c: New file.
1571
1572         Tests for module 'unistr/u16-set'.
1573         * modules/unistr/u16-set-tests: New file.
1574         * tests/unistr/test-u16-set.c: New file.
1575
1576         Tests for module 'unistr/u8-set'.
1577         * modules/unistr/u8-set-tests: New file.
1578         * tests/unistr/test-u8-set.c: New file.
1579         * tests/unistr/test-set.h: New file.
1580
1581         Tests for module 'unistr/u32-move'.
1582         * modules/unistr/u32-move-tests: New file.
1583         * tests/unistr/test-u32-move.c: New file.
1584
1585         Tests for module 'unistr/u16-move'.
1586         * modules/unistr/u16-move-tests: New file.
1587         * tests/unistr/test-u16-move.c: New file.
1588
1589         Tests for module 'unistr/u8-move'.
1590         * modules/unistr/u8-move-tests: New file.
1591         * tests/unistr/test-u8-move.c: New file.
1592         * tests/unistr/test-move.h: New file.
1593
1594         Tests for module 'unistr/u32-cpy'.
1595         * modules/unistr/u32-cpy-tests: New file.
1596         * tests/unistr/test-u32-cpy.c: New file.
1597
1598         Tests for module 'unistr/u16-cpy'.
1599         * modules/unistr/u16-cpy-tests: New file.
1600         * tests/unistr/test-u16-cpy.c: New file.
1601
1602         Tests for module 'unistr/u8-cpy'.
1603         * modules/unistr/u8-cpy-tests: New file.
1604         * tests/unistr/test-u8-cpy.c: New file.
1605         * tests/unistr/test-cpy.h: New file.
1606
1607 2010-01-09  Bruno Haible  <bruno@clisp.org>
1608
1609         Tests for module 'unistr/u32-uctomb'.
1610         * modules/unistr/u32-uctomb-tests: New file.
1611         * tests/unistr/test-u32-uctomb.c: New file.
1612
1613         Tests for module 'unistr/u16-uctomb'.
1614         * modules/unistr/u16-uctomb-tests: New file.
1615         * tests/unistr/test-u16-uctomb.c: New file.
1616
1617         Tests for module 'unistr/u8-uctomb'.
1618         * modules/unistr/u8-uctomb-tests: New file.
1619         * tests/unistr/test-u8-uctomb.c: New file.
1620
1621         Tests for module 'unistr/u32-mbtoucr'.
1622         * modules/unistr/u32-mbtoucr-tests: New file.
1623         * tests/unistr/test-u32-mbtoucr.c: New file.
1624
1625         Tests for module 'unistr/u16-mbtoucr'.
1626         * modules/unistr/u16-mbtoucr-tests: New file.
1627         * tests/unistr/test-u16-mbtoucr.c: New file.
1628
1629         Tests for module 'unistr/u8-mbtoucr'.
1630         * modules/unistr/u8-mbtoucr-tests: New file.
1631         * tests/unistr/test-u8-mbtoucr.c: New file.
1632
1633         Tests for module 'unistr/u32-mbtouc'.
1634         * modules/unistr/u32-mbtouc-tests: New file.
1635         * tests/unistr/test-u32-mbtouc.c: New file.
1636
1637         Tests for module 'unistr/u16-mbtouc'.
1638         * modules/unistr/u16-mbtouc-tests: New file.
1639         * tests/unistr/test-u16-mbtouc.c: New file.
1640
1641         Tests for module 'unistr/u8-mbtouc'.
1642         * modules/unistr/u8-mbtouc-tests: New file.
1643         * tests/unistr/test-u8-mbtouc.c: New file.
1644
1645         Tests for module 'unistr/u32-mbtouc-unsafe'.
1646         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1647         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1648         * tests/unistr/test-u32-mbtouc.h: New file.
1649
1650         Tests for module 'unistr/u16-mbtouc-unsafe'.
1651         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1652         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1653         * tests/unistr/test-u16-mbtouc.h: New file.
1654
1655         Tests for module 'unistr/u8-mbtouc-unsafe'.
1656         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1657         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1658         * tests/unistr/test-u8-mbtouc.h: New file.
1659
1660         Tests for module 'unistr/u32-mblen'.
1661         * modules/unistr/u32-mblen-tests: New file.
1662         * tests/unistr/test-u32-mblen.c: New file.
1663
1664         Tests for module 'unistr/u16-mblen'.
1665         * modules/unistr/u16-mblen-tests: New file.
1666         * tests/unistr/test-u16-mblen.c: New file.
1667
1668         Tests for module 'unistr/u8-mblen'.
1669         * modules/unistr/u8-mblen-tests: New file.
1670         * tests/unistr/test-u8-mblen.c: New file.
1671
1672         Tests for module 'unistr/u32-to-u16'.
1673         * modules/unistr/u32-to-u16-tests: New file.
1674         * tests/unistr/test-u32-to-u16.c: New file.
1675
1676         Tests for module 'unistr/u32-to-u8'.
1677         * modules/unistr/u32-to-u8-tests: New file.
1678         * tests/unistr/test-u32-to-u8.c: New file.
1679
1680         Tests for module 'unistr/u16-to-u32'.
1681         * modules/unistr/u16-to-u32-tests: New file.
1682         * tests/unistr/test-u16-to-u32.c: New file.
1683
1684         Tests for module 'unistr/u16-to-u8'.
1685         * modules/unistr/u16-to-u8-tests: New file.
1686         * tests/unistr/test-u16-to-u8.c: New file.
1687
1688         Tests for module 'unistr/u8-to-u32'.
1689         * modules/unistr/u8-to-u32-tests: New file.
1690         * tests/unistr/test-u8-to-u32.c: New file.
1691
1692         Tests for module 'unistr/u8-to-u16'.
1693         * modules/unistr/u8-to-u16-tests: New file.
1694         * tests/unistr/test-u8-to-u16.c: New file.
1695
1696         Tests for module 'unistr/u32-check'.
1697         * modules/unistr/u32-check-tests: New file.
1698         * tests/unistr/test-u32-check.c: New file.
1699
1700         Tests for module 'unistr/u16-check'.
1701         * modules/unistr/u16-check-tests: New file.
1702         * tests/unistr/test-u16-check.c: New file.
1703
1704         Tests for module 'unistr/u8-check'.
1705         * modules/unistr/u8-check-tests: New file.
1706         * tests/unistr/test-u8-check.c: New file.
1707
1708         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1709         (category_equals): New function.
1710         (main): Add more tests.
1711         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1712
1713         * tests/unictype/test-bidi_byname.c (main): Add more tests.
1714
1715 2010-01-10  Bruno Haible  <bruno@clisp.org>
1716
1717         unistr/u*-strcoll: Try harder to distinguish different strings.
1718         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1719         compare s1 and s2 to see if they are different.
1720
1721 2010-01-10  Bruno Haible  <bruno@clisp.org>
1722
1723         unistr/u*-stpncpy: Fix the return value.
1724         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1725         description of the return value consistent with stpncpy in glibc.
1726         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1727         written non-NUL unit.
1728
1729 2010-01-10  Bruno Haible  <bruno@clisp.org>
1730
1731         unistr/u*-next: Add missing dependencies.
1732         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1733         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1734         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1735
1736 2010-01-10  Bruno Haible  <bruno@clisp.org>
1737
1738         unistr/u8-mbsnlen: Fix return value for incomplete character.
1739         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1740         u8_mblen.
1741         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1742         Remove unistr/u8-mblen.
1743         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1744         u16_mblen.
1745         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1746         Remove unistr/u16-mblen.
1747
1748 2010-01-10  Bruno Haible  <bruno@clisp.org>
1749
1750         wchar: Fix compilation error when <wchar.h> is used from coreutils.
1751         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1752         Reported by Brian Gough <bjg@gnu.org> and
1753         Chris Clayton <chris2553@googlemail.com> via
1754         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1755
1756 2010-01-09  Bruno Haible  <bruno@clisp.org>
1757
1758         unistr/u16-to-u32: Reject invalid input.
1759         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
1760         u16_mbtouc.
1761         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
1762         Remove unistr/u16-mbtouc.
1763
1764         unistr/u16-to-u8: Reject invalid input.
1765         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
1766         u16_mbtouc.
1767         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
1768         Remove unistr/u16-mbtouc.
1769
1770         unistr/u8-to-u32: Reject invalid input.
1771         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
1772         u8_mbtouc.
1773         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
1774         Remove unistr/u8-mbtouc.
1775
1776         unistr/u8-to-u16: Reject invalid input.
1777         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
1778         u8_mbtouc.
1779         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
1780         Remove unistr/u8-mbtouc.
1781
1782 2010-01-09  Bruno Haible  <bruno@clisp.org>
1783
1784         Tests for module 'getlogin'.
1785         * modules/getlogin-tests: New file.
1786         * tests/test-getlogin.c: New file.
1787
1788         New module 'getlogin'.
1789         * lib/unistd.in.h (getlogin): New declaration.
1790         * lib/getlogin.c: New file.
1791         * m4/getlogin.m4: New file.
1792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
1793         HAVE_GETLOGIN.
1794         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
1795         HAVE_GETLOGIN.
1796         * modules/getlogin: New file.
1797         * doc/posix-functions/getlogin.texi: Mention the new module.
1798         Reported by John W. Eaton <jwe@gnu.org>.
1799
1800 2010-01-09  Bruno Haible  <bruno@clisp.org>
1801
1802         getlogin_r: Support for native Windows.
1803         * lib/getlogin_r.c: Include <windows.h>
1804         (getlogin_r): Implement for native Windows.
1805         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
1806         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
1807         via John W. Eaton <jwe@gnu.org>.
1808
1809 2010-01-09  Bruno Haible  <bruno@clisp.org>
1810
1811         getlogin_r: Small fixes.
1812         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
1813         succeeds.
1814         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
1815         before testing whether getlogin_r is declared. No need to set
1816         HAVE_DECL_GETLOGIN_R to 1.
1817         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
1818
1819 2010-01-09  Bruno Haible  <bruno@clisp.org>
1820
1821         * lib/unistd.in.h (getlogin_r): Add comment.
1822
1823 2010-01-09  Bruno Haible  <bruno@clisp.org>
1824
1825         Tests for module 'getlogin_r'.
1826         * modules/getlogin_r-tests: New file.
1827         * tests/test-getlogin_r.c: New file.
1828
1829 2010-01-09  Jim Meyering  <meyering@redhat.com>
1830
1831         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
1832         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
1833         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
1834
1835 2010-01-08  Simon Josefsson  <simon@josefsson.org>
1836
1837         * lib/dup2.c (rpl_dup2): Improve comment.
1838
1839 2010-01-08  Eric Blake  <ebb9@byu.net>
1840
1841         maint.mk: allow packages to add makefile @@ exceptions
1842         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
1843         (sc_makefile_check): Rename...
1844         (sc_makefile_at_at_check): ...to this, and use hook.
1845
1846         dup2: work around mingw bug
1847         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
1848         Reported by Simon Josefsson.
1849
1850 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
1851
1852         glob: Fix C++ compilation.
1853         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
1854         C++.
1855
1856 2010-01-07  Bruno Haible  <bruno@clisp.org>
1857
1858         Fix indentation of wctype.in.h, broken since 2007-01-06.
1859         * lib/wctype.in.h: Fix indentation of preprocessor directives.
1860
1861 2010-01-07  Bruno Haible  <bruno@clisp.org>
1862
1863         mbslen: Avoid collision with system function.
1864         * lib/string.in.h [MirBSD]: Include <wchar.h>.
1865         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
1866         * m4/mbslen.m4: New file.
1867         * modules/mbslen (Files): Add it.
1868         (configure.ac): Invoke gl_MBSLEN.
1869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
1870         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
1871         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
1872         via Ian Beckwith <ianb@erislabs.net>.
1873
1874 2010-01-07  Bruno Haible  <bruno@clisp.org>
1875
1876         dirent: Document the last fix.
1877         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
1878
1879 2010-01-07  Bruno Haible  <bruno@clisp.org>
1880
1881         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
1882         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
1883         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
1884         va_list are defined.
1885         * doc/posix-headers/stdio.texi: Document the bug of missing types.
1886         Reported by Eric Blake.
1887
1888 2010-01-07  Bruno Haible  <bruno@clisp.org>
1889
1890         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
1891         * modules/xlist (Depends-on): Add 'list',
1892         * modules/xoset (Depends-on): Add 'oset'.
1893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1894
1895 2010-01-07  Bruno Haible  <bruno@clisp.org>
1896
1897         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
1898         * doc/posix-functions/strncasecmp.texi: Likewise.
1899
1900 2010-01-07  Bruno Haible  <bruno@clisp.org>
1901
1902         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
1903
1904 2010-01-07  John W. Eaton  <jwe@octave.org>
1905
1906         wctype: allow C++ use
1907         * lib/wctype.in.h: Add extern "C" block for C++.
1908
1909 2010-01-06  Eric Blake  <ebb9@byu.net>
1910
1911         maint.mk: detect incorrect GFDL usage
1912         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
1913
1914 2010-01-06  Jim Meyering  <meyering@redhat.com>
1915         and Eric Blake  <ebb9@byu.net>
1916
1917         maint.mk: ignore multi-line copyright in NEWS
1918         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
1919
1920 2010-01-06  Eric Blake  <ebb9@byu.net>
1921
1922         select: add missing dependency
1923         * modules/select-tests (Depends-on): Move sockets dependency...
1924         * modules/select (Depends-on): ...here.
1925         Reported by Ian Beckwith.
1926
1927         doc: regenerate INSTALL
1928         * doc/INSTALL: Reflect recent autoconf update.
1929         * doc/INSTALL.ISO: Likewise.
1930         * doc/INSTALL.UTF-8: Likewise.
1931
1932         pread: fix compilation on glibc
1933         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
1934         Reported by Ralf Wildenhues.
1935
1936         dirent: fix test failure
1937         * lib/dirent.in.h (includes): Guarantee ino_t.
1938         Reported by Ralf Wildenhues.
1939
1940 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
1941
1942         linkat, renameat: avoid bad free
1943         * lib/at-func2.c (at_func2): Fix typo.
1944         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
1945
1946 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1947
1948         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
1949         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
1950         to avoid failure of symlink test later.
1951
1952 2010-01-06  Eric Blake  <ebb9@byu.net>
1953
1954         stdio, unistd: guarantee ssize_t
1955         * lib/unistd.in.h (includes): Ensure that types required by POSIX
1956         2008 are exposed when needed.
1957         * lib/stdio.in.h (includes): Likewise.
1958         Reported by Ralf Wildenhues.
1959
1960 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
1961
1962         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
1963         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
1964         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
1965
1966 2010-01-06  Jim Meyering  <meyering@redhat.com>
1967
1968         readtokens: this module *does* require xalloc.h
1969         It uses only functions that were omitted by the old syntax-check rule.
1970         * lib/readtokens.c: Include "xalloc.h" once again.
1971         * modules/readtokens (Depends-on): Add xalloc.
1972         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
1973
1974 2010-01-05  Eric Blake  <ebb9@byu.net>
1975
1976         maint: support 'make announcement' from a VPATH build
1977         * top/maint.mk (announcement): Look for correct NEWS file.
1978
1979 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
1980
1981         utimens (fdutimens): ignore a negative FD, per contract
1982         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
1983         when we have a valid file descriptor.  Otherwise, using a brand
1984         new glibc (with just-patched futimens that now fails with EBADF)
1985         would cause this function to fail with ENOSYS.
1986         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
1987         See also http://bugzilla.redhat.com/552320.
1988
1989 2010-01-05  Eric Blake  <ebb9@byu.net>
1990
1991         strcase: document what it provides
1992         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
1993         gnulib module.
1994         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
1995         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
1996
1997 2010-01-05  Jim Meyering  <meyering@redhat.com>
1998
1999         maint: remove useless inclusions of "xalloc.h"
2000         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2001         * lib/readtokens.c: Likewise.
2002         * lib/same.c: Likewise.
2003         * modules/getloadavg (Depends-on): Remove xalloc.
2004         * modules/readtokens: Likewise.
2005         * modules/same: Likewise.
2006
2007         maint.mk: include 4 more function names in alloca.h-checking regexp
2008         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2009         regexp.  Before, we would give a false-positive (saying alloca.h
2010         is included unnecessarily) when the only uses involved omitted symbols.
2011
2012         xalloc.h: use consistent formatting
2013         * lib/xalloc.h: Move declarations to start in the first column.
2014
2015 2010-01-05  Eric Blake  <ebb9@byu.net>
2016
2017         mkdir: avoid xalloc
2018         * lib/mkdir.c (includes): Drop unused header.
2019         Reported by John W. Eaton.
2020
2021 2010-01-04  Jim Meyering  <meyering@redhat.com>
2022
2023         nl_langinfo: avoid configure-time syntax error
2024         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2025         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2026         the empty string.  Don't let that provoke a shell syntax error.
2027
2028         regcomp, regexec, fnmatch: avoid array bounds read error
2029         * lib/regcomp.c (build_equiv_class): From glibc:
2030         Use only the low 24 bits of a findidx return value as an index
2031         into the weights array.  Patch by Ulrich Drepper:
2032         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2033         * lib/regexec.c (check_node_accept_bytes): Likewise.
2034         * lib/fnmatch_loop.c (FCT): Likewise.
2035
2036         regcomp: skip collseq lookup when there are no rules
2037         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2038         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2039
2040         regcomp: recognize ill-formed { } expressions
2041         * lib/regcomp.c (parse_dup_op): From glibc:
2042         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2043
2044         regcomp: fix typo in comment
2045         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2046         s/satisfy/satisfies/.
2047
2048         regcomp: sync from glibc: remove dead store
2049         * lib/regcomp.c (duplicate_node_closure): Remove useless
2050         search_duplicated_node call and dead store.
2051
2052         regcomp: sync from glibc; always use nl_langinfo
2053         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2054         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2055         * modules/regex (Depends-on): Add nl_langinfo.
2056
2057 2010-01-04  Eric Blake  <ebb9@byu.net>
2058
2059         fdopendir: fix configure test
2060         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2061
2062 2010-01-01  Bruno Haible  <bruno@clisp.org>
2063
2064         wchar: Remove unused configure check.
2065         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2066
2067 2010-01-01  Eric Blake  <ebb9@byu.net>
2068
2069         headers: make check of system header explicit
2070         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2071         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2072         ourselves.
2073         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2074         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2075         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2076         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2077         internals.
2078         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2079         missing.
2080         Suggested by Bruno Haible.
2081
2082 2010-01-01  Jim Meyering  <meyering@redhat.com>
2083
2084         ChangeLog: tweak to eliminate unnecessary copyright line
2085         * ChangeLog: Remove a copyright line that was mistakenly updated
2086         by today's update-copyright run.  Reported by Eric Blake.
2087
2088         test-update-copyright: don't let envvar setting cause test failure
2089         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2090
2091 2010-01-01  Bruno Haible  <bruno@clisp.org>
2092
2093         localename: Avoid gcc warning.
2094         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2095         function if it is not used.
2096
2097 2010-01-01  Jim Meyering  <meyering@redhat.com>
2098
2099         update nearly all FSF copyright year lists to include 2010
2100         Use the same procedure as for 2009, outlined in
2101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2102
2103         version-etc: set COPYRIGHT_YEAR to 2010
2104         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2105
2106 2009-12-31  Eric Blake  <ebb9@byu.net>
2107
2108         doc: correct availability of cygwin 1.5.x getopt
2109         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2110         variables.
2111         * doc/posix-functions/opterr.texi (opterr): Likewise.
2112         * doc/posix-functions/optind.texi (optind): Likewise.
2113         * doc/posix-functions/optopt.texi (optopt): Likewise.
2114         * doc/posix-functions/tzname.texi (tzname): Likewise.
2115
2116         openat: update maintainer
2117         * modules/openat (Maintainer): Add myself.
2118
2119         utimens: avoid shadowing warning
2120         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2121         buffers into one, to avoid shadowing, as well as avoiding a
2122         redundant stat.
2123         Reported by Jim Meyering.
2124
2125         test-dup2: avoid compiler warning
2126         * tests/test-dup2.c (is_inheritable): Only define if used.
2127
2128 2010-01-01  Bruno Haible  <bruno@clisp.org>
2129
2130         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2131         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2132         defined, use wctomb instead of wcrtomb.
2133
2134 2010-01-01  Bruno Haible  <bruno@clisp.org>
2135
2136         iconv: Reject native Solaris iconv.
2137         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2138         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2139
2140 2009-12-31  Bruno Haible  <bruno@clisp.org>
2141
2142         * tests/test-signal.c (main): Remove test of 'SIG'.
2143
2144 2009-12-31  Bruno Haible  <bruno@clisp.org>
2145
2146         spawn: Fix incomplete fix.
2147         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2148         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2149         warnings for GNULIB_POSIXCHECK again.
2150         Reported by Eric Blake.
2151
2152 2009-12-31  Bruno Haible  <bruno@clisp.org>
2153
2154         Avoid namespace pollution on glibc systems.
2155         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2156         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2157         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2158         glibc systems.
2159
2160 2009-12-31  Bruno Haible  <bruno@clisp.org>
2161
2162         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2163         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2164         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2165         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2166         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2167         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2168         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2169
2170 2009-12-31  Bruno Haible  <bruno@clisp.org>
2171
2172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2173         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2174         afterwards.
2175
2176 2009-12-31  Bruno Haible  <bruno@clisp.org>
2177
2178         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2179         SYS_UTSNAME_H.
2180
2181 2009-12-31  Bruno Haible  <bruno@clisp.org>
2182
2183         spawn: Fix misapplied patch.
2184         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2185         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2186         warnings for GNULIB_POSIXCHECK.
2187
2188 2009-12-31  Bruno Haible  <bruno@clisp.org>
2189
2190         times: Update after sys_times changed.
2191         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2192         * modules/times (Files): Add it.
2193         (configure.ac): Invoke gl_FUNC_TIMES.
2194
2195 2009-12-31  Bruno Haible  <bruno@clisp.org>
2196
2197         Use AC_C_INLINE where necessary.
2198         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2199         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2201         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2202         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2203         * m4/mbiter.m4 (gl_MBITER): Likewise.
2204         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2205         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2206         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2207         * modules/u64 (configure.ac): Likewise.
2208
2209 2009-12-31  Bruno Haible  <bruno@clisp.org>
2210
2211         Use AC_C_INLINE instead of module 'inline' where possible.
2212         * modules/inline (Description): Clarify purpose.
2213         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2214         * modules/count-one-bits (Depends-on): Remove inline.
2215         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2216         * modules/openat (Depends-on): Remove inline.
2217         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2218         instead of depending on module 'inline'.
2219         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2220         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2221         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2222         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2223         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2224         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2225         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2226         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2227         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2228         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2229         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2230         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2231         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2232         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2233         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2234         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2235         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2236         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2237         Likewise.
2238         * modules/unictype/property-ascii-hex-digit (Depends-on,
2239         configure.ac): Likewise.
2240         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2241         configure.ac): Likewise.
2242         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2243         configure.ac): Likewise.
2244         * modules/unictype/property-bidi-block-separator (Depends-on,
2245         configure.ac): Likewise.
2246         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2247         configure.ac): Likewise.
2248         * modules/unictype/property-bidi-common-separator (Depends-on,
2249         configure.ac): Likewise.
2250         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2251         Likewise.
2252         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2253         configure.ac): Likewise.
2254         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2255         configure.ac): Likewise.
2256         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2257         configure.ac): Likewise.
2258         * modules/unictype/property-bidi-european-digit (Depends-on,
2259         configure.ac): Likewise.
2260         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2261         configure.ac): Likewise.
2262         * modules/unictype/property-bidi-left-to-right (Depends-on,
2263         configure.ac): Likewise.
2264         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2265         configure.ac): Likewise.
2266         * modules/unictype/property-bidi-other-neutral (Depends-on,
2267         configure.ac): Likewise.
2268         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2269         Likewise.
2270         * modules/unictype/property-bidi-segment-separator (Depends-on,
2271         configure.ac): Likewise.
2272         * modules/unictype/property-bidi-whitespace (Depends-on,
2273         configure.ac): Likewise.
2274         * modules/unictype/property-combining (Depends-on, configure.ac):
2275         Likewise.
2276         * modules/unictype/property-composite (Depends-on, configure.ac):
2277         Likewise.
2278         * modules/unictype/property-currency-symbol (Depends-on,
2279         configure.ac): Likewise.
2280         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2281         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2282         Likewise.
2283         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2284         configure.ac): Likewise.
2285         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2286         Likewise.
2287         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2288         Likewise.
2289         * modules/unictype/property-extender (Depends-on, configure.ac):
2290         Likewise.
2291         * modules/unictype/property-format-control (Depends-on, configure.ac):
2292         Likewise.
2293         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2294         Likewise.
2295         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2296         Likewise.
2297         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2298         Likewise.
2299         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2300         Likewise.
2301         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2302         Likewise.
2303         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2304         Likewise.
2305         * modules/unictype/property-id-start (Depends-on, configure.ac):
2306         Likewise.
2307         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2308         Likewise.
2309         * modules/unictype/property-ids-binary-operator (Depends-on,
2310         configure.ac): Likewise.
2311         * modules/unictype/property-ids-trinary-operator (Depends-on,
2312         configure.ac): Likewise.
2313         * modules/unictype/property-ignorable-control (Depends-on,
2314         configure.ac): Likewise.
2315         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2316         Likewise.
2317         * modules/unictype/property-join-control (Depends-on, configure.ac):
2318         Likewise.
2319         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2320         Likewise.
2321         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2322         Likewise.
2323         * modules/unictype/property-logical-order-exception (Depends-on,
2324         configure.ac): Likewise.
2325         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2326         Likewise.
2327         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2328         * modules/unictype/property-non-break (Depends-on, configure.ac):
2329         Likewise.
2330         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2331         Likewise.
2332         * modules/unictype/property-numeric (Depends-on, configure.ac):
2333         Likewise.
2334         * modules/unictype/property-other-alphabetic (Depends-on,
2335         configure.ac): Likewise.
2336         * modules/unictype/property-other-default-ignorable-code-point
2337         (Depends-on, configure.ac): Likewise.
2338         * modules/unictype/property-other-grapheme-extend (Depends-on,
2339         configure.ac): Likewise.
2340         * modules/unictype/property-other-id-continue (Depends-on,
2341         configure.ac): Likewise.
2342         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2343         Likewise.
2344         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2345         Likewise.
2346         * modules/unictype/property-other-math (Depends-on, configure.ac):
2347         Likewise.
2348         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2349         Likewise.
2350         * modules/unictype/property-paired-punctuation (Depends-on,
2351         configure.ac): Likewise.
2352         * modules/unictype/property-paragraph-separator (Depends-on,
2353         configure.ac): Likewise.
2354         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2355         Likewise.
2356         * modules/unictype/property-pattern-white-space (Depends-on,
2357         configure.ac): Likewise.
2358         * modules/unictype/property-private-use (Depends-on, configure.ac):
2359         Likewise.
2360         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2361         Likewise.
2362         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2363         Likewise.
2364         * modules/unictype/property-radical (Depends-on, configure.ac):
2365         Likewise.
2366         * modules/unictype/property-sentence-terminal (Depends-on,
2367         configure.ac): Likewise.
2368         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2369         Likewise.
2370         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2371         * modules/unictype/property-terminal-punctuation (Depends-on,
2372         configure.ac): Likewise.
2373         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2374         Likewise.
2375         * modules/unictype/property-unassigned-code-value (Depends-on,
2376         configure.ac): Likewise.
2377         * modules/unictype/property-unified-ideograph (Depends-on,
2378         configure.ac): Likewise.
2379         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2380         Likewise.
2381         * modules/unictype/property-variation-selector (Depends-on,
2382         configure.ac): Likewise.
2383         * modules/unictype/property-white-space (Depends-on, configure.ac):
2384         Likewise.
2385         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2386         Likewise.
2387         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2388         Likewise.
2389         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2390         Likewise.
2391         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2392         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2393         Likewise.
2394
2395 2009-12-31  Bruno Haible  <bruno@clisp.org>
2396
2397         Remove unnecessary AC_C_INLINE invocation.
2398         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2399         since 2009-08-21.
2400
2401 2009-12-31  Jim Meyering  <meyering@redhat.com>
2402
2403         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2404         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2405         With this change, we can all remove the gpg_key_ID = ... definition
2406         from our respective cfg.mk files.
2407
2408         maint.mk: create announcement template in ~/, not in /tmp
2409         * top/maint.mk (emit_upload_commands): Adjust.
2410         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2411         Remove temporary file, .ci-msg.
2412
2413 2009-12-31  Eric Blake  <ebb9@byu.net>
2414
2415         link-warning: always build headers with link warnings
2416         * modules/arpa_inet (Makefile.am): Always build replacement
2417         header.
2418         * modules/ctype (Makefile.am): Likewise.
2419         * modules/dirent (Makefile.am): Likewise.
2420         * modules/inttypes (Makefile.am): Likewise.
2421         * modules/langinfo (Makefile.am): Likewise.
2422         * modules/locale (Makefile.am): Likewise.
2423         * modules/spawn (Makefile.am): Likewise.
2424         * modules/sys_file (Makefile.am): Likewise.
2425         * modules/sys_ioctl (Makefile.am): Likewise.
2426         * modules/sys_select (Makefile.am): Likewise.
2427         * modules/sys_socket (Makefile.am): Likewise.
2428         * modules/sys_times (Makefile.am): Likewise.
2429         * modules/sys_utsname (Makefile.am): Likewise.
2430         * modules/sys_wait (Makefile.am): Likewise.
2431         * modules/wchar (Makefile.am): Likewise.
2432         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2433         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2434         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2435         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2436         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2437         Likewise.
2438         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2439         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2440         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2441         Likewise.
2442         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2443         Likewise.
2444         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2446         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2448         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2450         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2451         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2452         (gl_WCHAR_H_DEFAULTS): Likewise.
2453
2454 2009-12-31  Eric Blake  <ebb9@byu.net>
2455
2456         signal, spawn: use link warnings
2457         * lib/signal.in.h (sigset_t): Make unconditional.
2458         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2459         (sigpending, sigprocmask, sigaction): Add link warnings.
2460         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2461         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2462         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2463         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2464         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2465         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2466         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2467         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2468         (posix_spawn_file_actions_destroy)
2469         (posix_spawn_file_actions_addopen)
2470         (posix_spawn_file_actions_addclose)
2471         (posix_spawwn_file_actions_adddup2): Likewise.
2472         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2473         * tests/test-signal.c (main): Enhance test.
2474
2475         spawn: improve wrapper support
2476         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2477         (gl_SPAWN_H_DEFAULTS): New defaults.
2478         * modules/spawn (Makefile.am): Substitute them.
2479         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2480         Only declare if missing or broken.
2481
2482         sys_times, sys_utsname: use include_next
2483         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2484         header.
2485         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2486         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2487         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2488         * modules/sys_times (Depends-on): Add include_next.
2489         (Makefile.am): Substitute additional values.
2490         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2491         * lib/sys_times.in.h (includes): Include native header, if
2492         available.
2493         * lib/sys_utsname.in.h (includes): Likewise.
2494         * tests/test-sys_times.c (main): Enhance test.
2495
2496         fdutimensat: revert prior patch
2497         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2498         utimens.h.
2499         Reported by Bruno Haible.
2500
2501 2009-12-30  Eric Blake  <ebb9@byu.net>
2502
2503         sys_wait: drop link-warning dependency
2504         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2505         link-warning efforts.
2506         * lib/sys_wait.in.h: Likewise.
2507
2508         fdutimensat: remove bogus dependency
2509         * modules/fdutimensat (Depends-on): Drop inline.
2510
2511         unistd: fix typo
2512         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2513
2514 2009-12-30  Bruno Haible  <bruno@clisp.org>
2515
2516         Fix compilation error with Solaris cc.
2517         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2518         * lib/unicase/u16-is-invariant.c: Likewise.
2519         * lib/unicase/u32-is-invariant.c: Likewise.
2520         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2521
2522 2009-12-30  Bruno Haible  <bruno@clisp.org>
2523
2524         Fix test crash.
2525         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2526         locales.
2527         Reported by Simon Josefsson <simon@josefsson.org>.
2528
2529 2009-12-30  Bruno Haible  <bruno@clisp.org>
2530
2531         Fix compilation error on most platforms.
2532         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2533         Reported by Simon Josefsson <simon@josefsson.org>
2534         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2535
2536 2009-12-30  Eric Blake  <ebb9@byu.net>
2537
2538         futimens, utimensat: work around ntfs-3g bug
2539         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2540         a ctime bug is present, and expand workaround to cover ntfs-3g.
2541         * lib/utimens.c (fdutimens, lutimens): Likewise.
2542         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2543         (validate_timespec): Adjust return value.
2544         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2545         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2546         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2547
2548 2009-12-29  Eric Blake  <ebb9@byu.net>
2549
2550         link-warning: make usage consistent
2551         * modules/ctype (Depends-on): Add link-warning.
2552         (Makefile.am): Update rules accordingly.
2553         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2554         * modules/locale (Depends-on, Makefile.am): Likewise.
2555         * modules/sys_file (Makefile.am): Likewise.
2556         * modules/getopt-posix (Makefile.am): Delete unused link warning
2557         efforts.
2558         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2559         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2560         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2561         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2562
2563         stdio: remove unused variables
2564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2565         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2566         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2567
2568         tests: test more substitute headers
2569         * modules/ctype-tests: New file.
2570         * modules/dirent-tests: Likewise.
2571         * modules/spawn-tests: Likewise.
2572         * modules/sys_file-tests: Likewise.
2573         * modules/sys_ioctl-tests: Likewise.
2574         * modules/sys_wait-tests: Likewise.
2575         * tests/test-ctype.c: Likewise.
2576         * tests/test-dirent.c: Likewise.
2577         * tests/test-spawn.c: Likewise.
2578         * tests/test-sys_file.c: Likewise.
2579         * tests/test-sys_ioctl.c: Likewise.
2580         * tests/test-sys_wait.c: Likewise.
2581         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2582         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2583         whether or not flock is in use.
2584
2585         tests: remove License section from module
2586         * modules/arpa_inet-tests: Remove unneeded section.
2587         * modules/byteswap-tests: Likewise.
2588         * modules/ceilf-tests: Likewise.
2589         * modules/ceill-tests: Likewise.
2590         * modules/crypto/des-tests: Likewise.
2591         * modules/crypto/gc-arcfour-tests: Likewise.
2592         * modules/crypto/gc-arctwo-tests: Likewise.
2593         * modules/crypto/gc-des-tests: Likewise.
2594         * modules/crypto/gc-hmac-md5-tests: Likewise.
2595         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2596         * modules/crypto/gc-md2-tests: Likewise.
2597         * modules/crypto/gc-md4-tests: Likewise.
2598         * modules/crypto/gc-md5-tests: Likewise.
2599         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2600         * modules/crypto/gc-rijndael-tests: Likewise.
2601         * modules/crypto/gc-sha1-tests: Likewise.
2602         * modules/crypto/gc-tests: Likewise.
2603         * modules/crypto/md2-tests: Likewise.
2604         * modules/crypto/md4-tests: Likewise.
2605         * modules/fcntl-h-tests: Likewise.
2606         * modules/floorf-tests: Likewise.
2607         * modules/floorl-tests: Likewise.
2608         * modules/frexp-nolibm-tests: Likewise.
2609         * modules/frexp-tests: Likewise.
2610         * modules/frexpl-nolibm-tests: Likewise.
2611         * modules/frexpl-tests: Likewise.
2612         * modules/getaddrinfo-tests: Likewise.
2613         * modules/inttypes-tests: Likewise.
2614         * modules/isfinite-tests: Likewise.
2615         * modules/isinf-tests: Likewise.
2616         * modules/ldexpl-tests: Likewise.
2617         * modules/locale-tests: Likewise.
2618         * modules/math-tests: Likewise.
2619         * modules/netdb-tests: Likewise.
2620         * modules/netinet_in-tests: Likewise.
2621         * modules/printf-frexp-tests: Likewise.
2622         * modules/printf-frexpl-tests: Likewise.
2623         * modules/priv-set-tests: Likewise.
2624         * modules/random_r-tests: Likewise.
2625         * modules/round-tests: Likewise.
2626         * modules/roundf-tests: Likewise.
2627         * modules/roundl-tests: Likewise.
2628         * modules/search-tests: Likewise.
2629         * modules/select-tests: Likewise.
2630         * modules/signal-tests: Likewise.
2631         * modules/stdbool-tests: Likewise.
2632         * modules/stddef-tests: Likewise.
2633         * modules/stdint-tests: Likewise.
2634         * modules/stdio-tests: Likewise.
2635         * modules/stdlib-tests: Likewise.
2636         * modules/string-tests: Likewise.
2637         * modules/strings-tests: Likewise.
2638         * modules/sys_select-tests: Likewise.
2639         * modules/sys_socket-tests: Likewise.
2640         * modules/sys_stat-tests: Likewise.
2641         * modules/sys_time-tests: Likewise.
2642         * modules/sys_utsname-tests: Likewise.
2643         * modules/sysexits-tests: Likewise.
2644         * modules/time-tests: Likewise.
2645         * modules/trunc-tests: Likewise.
2646         * modules/truncf-tests: Likewise.
2647         * modules/truncl-tests: Likewise.
2648         * modules/tsearch-tests: Likewise.
2649         * modules/unistd-tests: Likewise.
2650         * modules/wchar-tests: Likewise.
2651         * modules/wctype-tests: Likewise.
2652
2653         tests: fix license on several tests
2654         * tests/test-des.c: Update to GPLv3+.
2655         * tests/test-flock.c: Likewise.
2656         * tests/test-fsync.c: Likewise.
2657         * tests/test-futimens.h: Likewise.
2658         * tests/test-gc-arcfour.c: Likewise.
2659         * tests/test-gc-arctwo.c: Likewise.
2660         * tests/test-gc-des.c: Likewise.
2661         * tests/test-gc-hmac-md5.c: Likewise.
2662         * tests/test-gc-hmac-sha1.c: Likewise.
2663         * tests/test-gc-md2.c: Likewise.
2664         * tests/test-gc-md4.c: Likewise.
2665         * tests/test-gc-md5.c: Likewise.
2666         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2667         * tests/test-gc-rijndael.c: Likewise.
2668         * tests/test-gc-sha1.c: Likewise.
2669         * tests/test-gc.c: Likewise.
2670         * tests/test-getcwd.c: Likewise.
2671         * tests/test-link.c: Likewise.
2672         * tests/test-link.h: Likewise.
2673         * tests/test-lutimens.h: Likewise.
2674         * tests/test-md2.c: Likewise.
2675         * tests/test-md4.c: Likewise.
2676         * tests/test-mkdir.h: Likewise.
2677         * tests/test-rename.c: Likewise.
2678         * tests/test-rename.h: Likewise.
2679         * tests/test-safe-alloc.c: Likewise.
2680         * tests/test-utimens-common.h: Likewise.
2681         * tests/test-utimens.h: Likewise.
2682
2683         maint: sync license texts
2684         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2685         * doc/gpl-3.0.texi: Revert copyright year update.
2686         * doc/lgpl-3.0.texi: Likewise.
2687
2688 2009-12-29  Jim Meyering  <meyering@redhat.com>
2689
2690         update nearly all FSF copyright year lists to include 2009
2691         The files named by the following are exempted:
2692             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2693               test -f "$dst" && { echo "$dst"; continue; }
2694               test -d "$dst" || continue
2695               echo "$dst"/$(basename "$src")
2696             done > exempt
2697             git ls-files tests/unictype >> exempt
2698         In the remaining files, convert to all-interval notation if
2699         - there is already at least one year interval like 2000-2003
2700         - the file is maintained by me
2701         - the file is in lib/uni*/, where that style already prevails
2702         Otherwise, use update-copyright's default.
2703
2704 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2705         and Eric Blake  <ebb9@byu.net>
2706
2707         tests: don't require debug system() to pass
2708         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2709         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2710         * tests/test-unlink.h (test_unlink_func): Likewise.
2711         * tests/test-fstatat.c (main): ...into callers.
2712         * tests/test-lstat.c (main): Likewise.
2713         * tests/test-rmdir.c (main): Likewise.
2714         * tests/test-unlink.c (main): Likewise.
2715         * tests/test-unlinkat.c (main): Likewise.
2716         * tests/test-areadlink-with-size.c (main): Don't require a
2717         debug-only system call to pass, aiding cross-testing to mingw.
2718         * tests/test-areadlink.c (main): Likewise.
2719         * tests/test-areadlinkat-with-size.c (main): Likewise.
2720         * tests/test-areadlinkat.c (main): Likewise.
2721         * tests/test-canonicalize-lgpl.c (main): Likewise.
2722         * tests/test-canonicalize.c (main): Likewise.
2723         * tests/test-chown.c (main): Likewise.
2724         * tests/test-fchownat.c (main): Likewise.
2725         * tests/test-lchown.c (main): Likewise.
2726         * tests/test-fdutimensat.c (main): Likewise.
2727         * tests/test-futimens.c (main): Likewise.
2728         * tests/test-link.c (main): Likewise.
2729         * tests/test-linkat.c (main): Likewise.
2730         * tests/test-mkdir.c (main): Likewise.
2731         * tests/test-mkdirat.c (main): Likewise.
2732         * tests/test-mkfifo.c (main): Likewise.
2733         * tests/test-mkfifoat.c (main): Likewise.
2734         * tests/test-mknod.c (main): Likewise.
2735         * tests/test-readlink.c (main): Likewise.
2736         * tests/test-remove.c (main): Likewise.
2737         * tests/test-rename.c (main): Likewise.
2738         * tests/test-renameat.c (main): Likewise.
2739         * tests/test-symlink.c (main): Likewise.
2740         * tests/test-symlinkat.c (main): Likewise.
2741         * tests/test-utimens.c (main): Likewise.
2742         * tests/test-utimensat.c (main): Likewise.
2743
2744 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2745
2746         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2747         on $(UNUSED_PARAMETER_H) to avoid build failure.
2748
2749 2009-12-28  Jim Meyering  <meyering@redhat.com>
2750
2751         update-copyright: you may specify a max. line length other than 72
2752         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2753
2754         maint: use consistent FSF copyright line syntax
2755         * lib/posixtm.c: Add missing comma in FSF copyright line.
2756         * lib/posixtm.h: Likewise.
2757         * lib/getugroups.c: Add missing ", Inc.".
2758
2759         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
2760         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
2761         FSF copyright line.  Remove trailing blanks.
2762
2763 2009-12-28  Eric Blake  <ebb9@byu.net>
2764
2765         test-dup2: reduce dependencies
2766         * modules/cloexec (Configure.ac): Set witness.
2767         * modules/dup2-tests (Depends-on): Drop cloexec.
2768         * tests/test-dup2.c (main): Skip portion of test if cloexec module
2769         not present.
2770         Suggested by Bruno Haible.
2771
2772 2009-12-26  Bruno Haible  <bruno@clisp.org>
2773
2774         Remove an unneeded dependency.
2775         * modules/fseterr (Depends-on): Remove dup2.
2776
2777 2009-12-26  Eric Blake  <ebb9@byu.net>
2778
2779         tests: use macros.h in more places
2780         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
2781         (ASSERT_STREAM): Provide default of stderr.
2782         * tests/test-dirent-safer.c: Include macros.h, using alternate
2783         stream for assertions.
2784         * tests/test-dup-safer.c: Likewise.
2785         * tests/test-freopen-safer.c: Likewise.
2786         * tests/test-getopt.c: Likewise.
2787         * tests/test-openat-safer.c: Likewise.
2788         * tests/test-pipe.c: Likewise.
2789         * tests/test-popen-safer.c: Likewise.
2790         * modules/dirent-safer-tests (Files): Include macros.h.
2791         * modules/unistd-safer-tests (Files): Likewise.
2792         * modules/freopen-safer-tests (Files): Likewise.
2793         * modules/getopt-posix-tests (Files): Likewise.
2794         * modules/openat-safer-tests (Files): Likewise.
2795         * modules/pipe-tests (Files): Likewise.
2796
2797 2009-12-26  Bruno Haible  <bruno@clisp.org>
2798
2799         javacomp: Portability fix.
2800         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
2801         that it also works on Solaris.
2802
2803 2009-12-26  Bruno Haible  <bruno@clisp.org>
2804
2805         localename: Fix storage allocation of gl_locale_name_thread's result.
2806         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
2807         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
2808         all platforms that have 'uselocale'.
2809         (gl_locale_name_thread_unsafe): New function, extracted from
2810         gl_locale_name_thread.
2811         (gl_locale_name_thread): Call struniq on all platforms that have
2812         'uselocale'.
2813         * tests/test-localename.c (test_locale_name_thread): Check that the
2814         resulting strings are permanently allocated.
2815         * modules/localename-tests (Depends-on): Add strdup.
2816
2817 2009-12-26  Bruno Haible  <bruno@clisp.org>
2818
2819         * tests/test-localename.c (categories): Fill in the strings.
2820
2821 2009-12-26  Jim Meyering  <meyering@redhat.com>
2822
2823         isdir: complete the removal of m4/isdir.m4
2824         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
2825
2826         isdir: clean up, since at least grep still uses it
2827         * lib/isdir.c: Include "isdir.h".
2828         (S_ISDIR): Remove now-unneeded definition.
2829         * modules/isdir (Files): Add lib/isdir.h.
2830         * lib/isdir.h: New file, with declaration.
2831         * m4/isdir.m4: Remove file -- unneeded.
2832
2833 2009-12-25  Bruno Haible  <bruno@clisp.org>
2834
2835         selinux-h: Make generated .h files standalone.
2836         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
2837         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
2838         * lib/se-selinux.in.h: Likewise.
2839         * modules/selinux-h (Depends-on): Add unused-parameter.
2840         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
2841         selinux/selinux.h and selinux/context.h.
2842         Suggested by Eric Blake.
2843
2844 2009-12-25  Bruno Haible  <bruno@clisp.org>
2845
2846         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
2847         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
2848         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
2849         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
2850         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
2851
2852 2009-12-24  Bruno Haible  <bruno@clisp.org>
2853
2854         openat: Fix warning.
2855         * lib/openat-proc.c: Include <unistd.h>.
2856
2857 2009-12-24  Bruno Haible  <bruno@clisp.org>
2858
2859         New module 'unused-parameter'.
2860         * build-aux/unused-parameter.h: New file, extracted from earlier
2861         gnulib-common.m4.
2862         * modules/unused-parameter: New file.
2863         * lib/unistr.h: Include unused-parameter.h.
2864         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
2865         _GL_UNUSED.
2866         * modules/unistr/base (Depends-on): Add unused-parameter.
2867
2868 2009-12-24  Bruno Haible  <bruno@clisp.org>
2869
2870         Add missing dependencies to 'extensions' module.
2871         * m4/extensions.m4: Add comment.
2872         * modules/accept4 (Depends-on): Add extensions.
2873         * modules/dup3 (Depends-on): Likewise.
2874         * modules/fcntl (Depends-on): Likewise.
2875         * modules/futimens (Depends-on): Likewise.
2876         * modules/mknod (Depends-on): Likewise.
2877         * modules/pipe2 (Depends-on): Likewise.
2878         * modules/stat-time (Depends-on): Likewise.
2879         * modules/strcasestr-simple (Depends-on): Likewise.
2880         * modules/strsignal (Depends-on): Likewise.
2881         * modules/utimensat (Depends-on): Likewise.
2882         * modules/localcharset (Depends-on): Likewise. Needed because of
2883         gl_FCNTL_O_FLAGS.
2884         * modules/wcrtomb (Depends-on): Likewise. Needed because of
2885         AC_TYPE_MBSTATE_T.
2886         * modules/wcsnrtombs (Depends-on): Likewise.
2887         * modules/wcsrtombs (Depends-on): Likewise.
2888
2889 2009-12-24  Bruno Haible  <bruno@clisp.org>
2890
2891         binary-io: Avoid gcc warning due to SET_BINARY.
2892         * lib/binary-io.h (SET_BINARY): Cast the result to void.
2893         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
2894
2895 2009-12-24  Bruno Haible  <bruno@clisp.org>
2896
2897         Avoid future namespace pollution on glibc systems.
2898         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
2899         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
2900         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
2901         glibc systems.
2902
2903 2009-12-24  Bruno Haible  <bruno@clisp.org>
2904
2905         Refactor common macros used in tests.
2906         * tests/macros.h: New file.
2907         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
2908         and/or <stdlib.h>, if appropriate.
2909         (ASSERT, SIZEOF): Remove macros.
2910         * tests/test-areadlink-with-size.c: Likewise.
2911         * tests/test-areadlinkat.c: Likewise.
2912         * tests/test-areadlinkat-with-size.c: Likewise.
2913         * tests/test-argmatch.c: Likewise.
2914         * tests/test-argv-iter.c: Likewise.
2915         * tests/test-array-mergesort.c: Likewise.
2916         * tests/test-array_list.c: Likewise.
2917         * tests/test-array_oset.c: Likewise.
2918         * tests/test-avltree_list.c: Likewise.
2919         * tests/test-avltree_oset.c: Likewise.
2920         * tests/test-avltreehash_list.c: Likewise.
2921         * tests/test-base64.c: Likewise.
2922         * tests/test-binary-io.c: Likewise.
2923         * tests/test-bitrotate.c: Likewise.
2924         * tests/test-btowc.c: Likewise.
2925         * tests/test-byteswap.c: Likewise.
2926         * tests/test-c-ctype.c: Likewise.
2927         * tests/test-c-stack.c: Likewise.
2928         * tests/test-c-strcasecmp.c: Likewise.
2929         * tests/test-c-strcasestr.c: Likewise.
2930         * tests/test-c-strncasecmp.c: Likewise.
2931         * tests/test-c-strstr.c: Likewise.
2932         * tests/test-canonicalize-lgpl.c: Likewise.
2933         * tests/test-canonicalize.c: Likewise.
2934         * tests/test-carray_list.c: Likewise.
2935         * tests/test-ceilf1.c: Likewise.
2936         * tests/test-ceilf2.c: Likewise.
2937         * tests/test-ceill.c: Likewise.
2938         * tests/test-chown.c: Likewise.
2939         * tests/test-cloexec.c: Likewise.
2940         * tests/test-copy-acl.c: Likewise.
2941         * tests/test-copy-file.c: Likewise.
2942         * tests/test-count-one-bits.c: Likewise.
2943         * tests/test-dprintf-posix.c: Likewise.
2944         * tests/test-dup2.c: Likewise.
2945         * tests/test-dup3.c: Likewise.
2946         * tests/test-duplocale.c: Likewise.
2947         * tests/test-fbufmode.c: Likewise.
2948         * tests/test-fchdir.c: Likewise.
2949         * tests/test-fchownat.c: Likewise.
2950         * tests/test-fcntl-safer.c: Likewise.
2951         * tests/test-fcntl.c: Likewise.
2952         * tests/test-fdopendir.c: Likewise.
2953         * tests/test-fdutimensat.c: Likewise.
2954         * tests/test-fflush2.c: Likewise.
2955         * tests/test-file-has-acl.c: Likewise.
2956         * tests/test-filevercmp.c: Likewise.
2957         * tests/test-flock.c: Likewise.
2958         * tests/test-floorf1.c: Likewise.
2959         * tests/test-floorf2.c: Likewise.
2960         * tests/test-floorl.c: Likewise.
2961         * tests/test-fnmatch.c: Likewise.
2962         * tests/test-fopen.h: Likewise.
2963         * tests/test-fpending.c: Likewise.
2964         * tests/test-fprintf-posix.c: Likewise.
2965         * tests/test-fpurge.c: Likewise.
2966         * tests/test-freadable.c: Likewise.
2967         * tests/test-freadahead.c: Likewise.
2968         * tests/test-freading.c: Likewise.
2969         * tests/test-freadptr.c: Likewise.
2970         * tests/test-freadptr2.c: Likewise.
2971         * tests/test-freadseek.c: Likewise.
2972         * tests/test-freopen.c: Likewise.
2973         * tests/test-frexp.c: Likewise.
2974         * tests/test-frexpl.c: Likewise.
2975         * tests/test-fseek.c: Likewise.
2976         * tests/test-fseeko.c: Likewise.
2977         * tests/test-fstatat.c: Likewise.
2978         * tests/test-fstrcmp.c: Likewise.
2979         * tests/test-fsync.c: Likewise.
2980         * tests/test-ftell.c: Likewise.
2981         * tests/test-ftello.c: Likewise.
2982         * tests/test-func.c: Likewise.
2983         * tests/test-futimens.c: Likewise.
2984         * tests/test-fwritable.c: Likewise.
2985         * tests/test-fwriting.c: Likewise.
2986         * tests/test-getcwd.c: Likewise.
2987         * tests/test-getdate.c: Likewise.
2988         * tests/test-getdelim.c: Likewise.
2989         * tests/test-getdtablesize.c: Likewise.
2990         * tests/test-getgroups.c: Likewise.
2991         * tests/test-getline.c: Likewise.
2992         * tests/test-getndelim2.c: Likewise.
2993         * tests/test-glob.c: Likewise.
2994         * tests/test-hash.c: Likewise.
2995         * tests/test-i-ring.c: Likewise.
2996         * tests/test-iconv-utf.c: Likewise.
2997         * tests/test-iconv.c: Likewise.
2998         * tests/test-idpriv-drop.c: Likewise.
2999         * tests/test-idpriv-droptemp.c: Likewise.
3000         * tests/test-inet_ntop.c: Likewise.
3001         * tests/test-inet_pton.c: Likewise.
3002         * tests/test-isblank.c: Likewise.
3003         * tests/test-isfinite.c: Likewise.
3004         * tests/test-isinf.c: Likewise.
3005         * tests/test-isnan.c: Likewise.
3006         * tests/test-isnand.h: Likewise.
3007         * tests/test-isnanf.h: Likewise.
3008         * tests/test-isnanl.h: Likewise.
3009         * tests/test-lchown.c: Likewise.
3010         * tests/test-ldexpl.c: Likewise.
3011         * tests/test-link.c: Likewise.
3012         * tests/test-linkat.c: Likewise.
3013         * tests/test-linked_list.c: Likewise.
3014         * tests/test-linkedhash_list.c: Likewise.
3015         * tests/test-localename.c: Likewise.
3016         * tests/test-lseek.c: Likewise.
3017         * tests/test-lstat.c: Likewise.
3018         * tests/test-mbmemcasecmp.c: Likewise.
3019         * tests/test-mbmemcasecoll.c: Likewise.
3020         * tests/test-mbrtowc.c: Likewise.
3021         * tests/test-mbscasecmp.c: Likewise.
3022         * tests/test-mbscasestr1.c: Likewise.
3023         * tests/test-mbscasestr2.c: Likewise.
3024         * tests/test-mbscasestr3.c: Likewise.
3025         * tests/test-mbscasestr4.c: Likewise.
3026         * tests/test-mbschr.c: Likewise.
3027         * tests/test-mbscspn.c: Likewise.
3028         * tests/test-mbsinit.c: Likewise.
3029         * tests/test-mbsncasecmp.c: Likewise.
3030         * tests/test-mbsnrtowcs.c: Likewise.
3031         * tests/test-mbspbrk.c: Likewise.
3032         * tests/test-mbspcasecmp.c: Likewise.
3033         * tests/test-mbsrchr.c: Likewise.
3034         * tests/test-mbsrtowcs.c: Likewise.
3035         * tests/test-mbsspn.c: Likewise.
3036         * tests/test-mbsstr1.c: Likewise.
3037         * tests/test-mbsstr2.c: Likewise.
3038         * tests/test-mbsstr3.c: Likewise.
3039         * tests/test-memchr.c: Likewise.
3040         * tests/test-memchr2.c: Likewise.
3041         * tests/test-memcmp.c: Likewise.
3042         * tests/test-memmem.c: Likewise.
3043         * tests/test-memrchr.c: Likewise.
3044         * tests/test-mkdir.c: Likewise.
3045         * tests/test-mkdirat.c: Likewise.
3046         * tests/test-mkfifo.c: Likewise.
3047         * tests/test-mkfifoat.c: Likewise.
3048         * tests/test-mknod.c: Likewise.
3049         * tests/test-nanosleep.c: Likewise.
3050         * tests/test-nl_langinfo.c: Likewise.
3051         * tests/test-obstack-printf.c: Likewise.
3052         * tests/test-open.c: Likewise.
3053         * tests/test-openat.c: Likewise.
3054         * tests/test-pipe-filter-gi1.c: Likewise.
3055         * tests/test-pipe-filter-gi2-main.c: Likewise.
3056         * tests/test-pipe-filter-ii1.c: Likewise.
3057         * tests/test-pipe-filter-ii2-main.c: Likewise.
3058         * tests/test-pipe2.c: Likewise.
3059         * tests/test-popen.h: Likewise.
3060         * tests/test-posixtm.c: Likewise.
3061         * tests/test-pread.c: Likewise.
3062         * tests/test-printf-frexp.c: Likewise.
3063         * tests/test-printf-frexpl.c: Likewise.
3064         * tests/test-printf-posix.c: Likewise.
3065         * tests/test-priv-set.c: Likewise.
3066         * tests/test-quotearg.c: Likewise.
3067         * tests/test-random_r.c: Likewise.
3068         * tests/test-rawmemchr.c: Likewise.
3069         * tests/test-rbtree_list.c: Likewise.
3070         * tests/test-rbtree_oset.c: Likewise.
3071         * tests/test-rbtreehash_list.c: Likewise.
3072         * tests/test-readlink.c: Likewise.
3073         * tests/test-remove.c: Likewise.
3074         * tests/test-rename.c: Likewise.
3075         * tests/test-renameat.c: Likewise.
3076         * tests/test-rmdir.c: Likewise.
3077         * tests/test-round1.c: Likewise.
3078         * tests/test-roundf1.c: Likewise.
3079         * tests/test-roundl.c: Likewise.
3080         * tests/test-safe-alloc.c: Likewise.
3081         * tests/test-sameacls.c: Likewise.
3082         * tests/test-set-mode-acl.c: Likewise.
3083         * tests/test-setenv.c: Likewise.
3084         * tests/test-sigaction.c: Likewise.
3085         * tests/test-signbit.c: Likewise.
3086         * tests/test-sleep.c: Likewise.
3087         * tests/test-snprintf-posix.c: Likewise.
3088         * tests/test-snprintf.c: Likewise.
3089         * tests/test-sprintf-posix.c: Likewise.
3090         * tests/test-stat-time.c: Likewise.
3091         * tests/test-stat.c: Likewise.
3092         * tests/test-strcasestr.c: Likewise.
3093         * tests/test-strchrnul.c: Likewise.
3094         * tests/test-strerror.c: Likewise.
3095         * tests/test-striconv.c: Likewise.
3096         * tests/test-striconveh.c: Likewise.
3097         * tests/test-striconveha.c: Likewise.
3098         * tests/test-strsignal.c: Likewise.
3099         * tests/test-strstr.c: Likewise.
3100         * tests/test-strtod.c: Likewise.
3101         * tests/test-strverscmp.c: Likewise.
3102         * tests/test-symlink.c: Likewise.
3103         * tests/test-symlinkat.c: Likewise.
3104         * tests/test-trunc1.c: Likewise.
3105         * tests/test-trunc2.c: Likewise.
3106         * tests/test-truncf1.c: Likewise.
3107         * tests/test-truncf2.c: Likewise.
3108         * tests/test-truncl.c: Likewise.
3109         * tests/test-uname.c: Likewise.
3110         * tests/test-unlink.c: Likewise.
3111         * tests/test-unlinkat.c: Likewise.
3112         * tests/test-unsetenv.c: Likewise.
3113         * tests/test-usleep.c: Likewise.
3114         * tests/test-utimens.c: Likewise.
3115         * tests/test-utimensat.c: Likewise.
3116         * tests/test-vasnprintf-posix.c: Likewise.
3117         * tests/test-vasnprintf-posix2.c: Likewise.
3118         * tests/test-vasnprintf.c: Likewise.
3119         * tests/test-vasprintf-posix.c: Likewise.
3120         * tests/test-vasprintf.c: Likewise.
3121         * tests/test-vdprintf-posix.c: Likewise.
3122         * tests/test-vfprintf-posix.c: Likewise.
3123         * tests/test-vprintf-posix.c: Likewise.
3124         * tests/test-vsnprintf-posix.c: Likewise.
3125         * tests/test-vsnprintf.c: Likewise.
3126         * tests/test-vsprintf-posix.c: Likewise.
3127         * tests/test-wcrtomb.c: Likewise.
3128         * tests/test-wcsnrtombs.c: Likewise.
3129         * tests/test-wcsrtombs.c: Likewise.
3130         * tests/test-wctype.c: Likewise.
3131         * tests/test-wcwidth.c: Likewise.
3132         * tests/test-xfprintf-posix.c: Likewise.
3133         * tests/test-xmemdup0.c: Likewise.
3134         * tests/test-xprintf-posix.c: Likewise.
3135         * tests/test-xvasprintf.c: Likewise.
3136         * tests/unicase/test-locale-language.c: Likewise.
3137         * tests/unicase/test-mapping-part1.h: Likewise.
3138         * tests/unicase/test-predicate-part1.h: Likewise.
3139         * tests/unicase/test-u8-casecmp.c: Likewise.
3140         * tests/unicase/test-u8-casecoll.c: Likewise.
3141         * tests/unicase/test-u8-casefold.c: Likewise.
3142         * tests/unicase/test-u8-is-cased.c: Likewise.
3143         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3144         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3145         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3146         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3147         * tests/unicase/test-u8-tolower.c: Likewise.
3148         * tests/unicase/test-u8-totitle.c: Likewise.
3149         * tests/unicase/test-u8-toupper.c: Likewise.
3150         * tests/unicase/test-u16-casecmp.c: Likewise.
3151         * tests/unicase/test-u16-casecoll.c: Likewise.
3152         * tests/unicase/test-u16-casefold.c: Likewise.
3153         * tests/unicase/test-u16-is-cased.c: Likewise.
3154         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3155         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3156         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3157         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3158         * tests/unicase/test-u16-tolower.c: Likewise.
3159         * tests/unicase/test-u16-totitle.c: Likewise.
3160         * tests/unicase/test-u16-toupper.c: Likewise.
3161         * tests/unicase/test-u32-casecmp.c: Likewise.
3162         * tests/unicase/test-u32-casecoll.c: Likewise.
3163         * tests/unicase/test-u32-casefold.c: Likewise.
3164         * tests/unicase/test-u32-is-cased.c: Likewise.
3165         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3166         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3167         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3168         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3169         * tests/unicase/test-u32-tolower.c: Likewise.
3170         * tests/unicase/test-u32-totitle.c: Likewise.
3171         * tests/unicase/test-u32-toupper.c: Likewise.
3172         * tests/unicase/test-ulc-casecmp.c: Likewise.
3173         * tests/unicase/test-ulc-casecoll.c: Likewise.
3174         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3175         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3176         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3177         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3178         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3179         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3180         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3181         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3182         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3183         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3184         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3185         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3186         * tests/unictype/test-bidi_byname.c: Likewise.
3187         * tests/unictype/test-bidi_name.c: Likewise.
3188         * tests/unictype/test-bidi_of.c: Likewise.
3189         * tests/unictype/test-bidi_test.c: Likewise.
3190         * tests/unictype/test-block_list.c: Likewise.
3191         * tests/unictype/test-block_of.c: Likewise.
3192         * tests/unictype/test-block_test.c: Likewise.
3193         * tests/unictype/test-categ_and.c: Likewise.
3194         * tests/unictype/test-categ_and_not.c: Likewise.
3195         * tests/unictype/test-categ_byname.c: Likewise.
3196         * tests/unictype/test-categ_name.c: Likewise.
3197         * tests/unictype/test-categ_none.c: Likewise.
3198         * tests/unictype/test-categ_of.c: Likewise.
3199         * tests/unictype/test-categ_or.c: Likewise.
3200         * tests/unictype/test-categ_test_withtable.c: Likewise.
3201         * tests/unictype/test-combining.c: Likewise.
3202         * tests/unictype/test-decdigit.c: Likewise.
3203         * tests/unictype/test-digit.c: Likewise.
3204         * tests/unictype/test-mirror.c: Likewise.
3205         * tests/unictype/test-numeric.c: Likewise.
3206         * tests/unictype/test-pr_byname.c: Likewise.
3207         * tests/unictype/test-pr_test.c: Likewise.
3208         * tests/unictype/test-predicate-part1.h: Likewise.
3209         * tests/unictype/test-scripts.c: Likewise.
3210         * tests/unictype/test-sy_c_ident.c: Likewise.
3211         * tests/unictype/test-sy_java_ident.c: Likewise.
3212         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3213         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3214         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3215         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3216         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3217         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3218         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3219         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3220         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3221         * tests/uninorm/test-compat-decomposition.c: Likewise.
3222         * tests/uninorm/test-composition.c: Likewise.
3223         * tests/uninorm/test-decomposing-form.c: Likewise.
3224         * tests/uninorm/test-decomposition.c: Likewise.
3225         * tests/uninorm/test-u8-nfc.c: Likewise.
3226         * tests/uninorm/test-u8-nfd.c: Likewise.
3227         * tests/uninorm/test-u8-nfkc.c: Likewise.
3228         * tests/uninorm/test-u8-nfkd.c: Likewise.
3229         * tests/uninorm/test-u8-normcmp.c: Likewise.
3230         * tests/uninorm/test-u8-normcoll.c: Likewise.
3231         * tests/uninorm/test-u16-nfc.c: Likewise.
3232         * tests/uninorm/test-u16-nfd.c: Likewise.
3233         * tests/uninorm/test-u16-nfkc.c: Likewise.
3234         * tests/uninorm/test-u16-nfkd.c: Likewise.
3235         * tests/uninorm/test-u16-normcmp.c: Likewise.
3236         * tests/uninorm/test-u16-normcoll.c: Likewise.
3237         * tests/uninorm/test-u32-nfc.c: Likewise.
3238         * tests/uninorm/test-u32-nfd.c: Likewise.
3239         * tests/uninorm/test-u32-nfkc.c: Likewise.
3240         * tests/uninorm/test-u32-nfkd.c: Likewise.
3241         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3242         * tests/uninorm/test-u32-normcmp.c: Likewise.
3243         * tests/uninorm/test-u32-normcoll.c: Likewise.
3244         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3245         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3246         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3247         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3248         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3249         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3250         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3251         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3252         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3253         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3254         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3255         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3256         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3257         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3258         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3259         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3260         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3261         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3262         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3263         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3264         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3265         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3266         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3267         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3268         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3269         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3270         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3271         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3272         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3273         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3274         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3275         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3276         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3277         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3278         * tests/uniwidth/test-u8-width.c: Likewise.
3279         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3280         * tests/uniwidth/test-u16-width.c: Likewise.
3281         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3282         * tests/uniwidth/test-u32-width.c: Likewise.
3283         * tests/uniwidth/test-uc_width.c: Likewise.
3284         * tests/uniwidth/test-uc_width2.c: Likewise.
3285         * modules/acl-tests (Files): Add tests/macros.h.
3286         * modules/areadlink-tests (Files): Likewise.
3287         * modules/areadlink-with-size-tests (Files): Likewise.
3288         * modules/areadlinkat-tests (Files): Likewise.
3289         * modules/areadlinkat-with-size-tests (Files): Likewise.
3290         * modules/argmatch-tests (Files): Likewise.
3291         * modules/argv-iter-tests (Files): Likewise.
3292         * modules/array-list-tests (Files): Likewise.
3293         * modules/array-mergesort-tests (Files): Likewise.
3294         * modules/array-oset-tests (Files): Likewise.
3295         * modules/avltree-list-tests (Files): Likewise.
3296         * modules/avltree-oset-tests (Files): Likewise.
3297         * modules/avltreehash-list-tests (Files): Likewise.
3298         * modules/base64-tests (Files): Likewise.
3299         * modules/binary-io-tests (Files): Likewise.
3300         * modules/bitrotate-tests (Files): Likewise.
3301         * modules/btowc-tests (Files): Likewise.
3302         * modules/byteswap-tests (Files): Likewise.
3303         * modules/c-ctype-tests (Files): Likewise.
3304         * modules/c-stack-tests (Files): Likewise.
3305         * modules/c-strcase-tests (Files): Likewise.
3306         * modules/c-strcasestr-tests (Files): Likewise.
3307         * modules/c-strstr-tests (Files): Likewise.
3308         * modules/canonicalize-lgpl-tests (Files): Likewise.
3309         * modules/canonicalize-tests (Files): Likewise.
3310         * modules/carray-list-tests (Files): Likewise.
3311         * modules/ceilf-tests (Files): Likewise.
3312         * modules/ceill-tests (Files): Likewise.
3313         * modules/chown-tests (Files): Likewise.
3314         * modules/cloexec-tests (Files): Likewise.
3315         * modules/copy-file-tests (Files): Likewise.
3316         * modules/count-one-bits-tests (Files): Likewise.
3317         * modules/dprintf-posix-tests (Files): Likewise.
3318         * modules/dup2-tests (Files): Likewise.
3319         * modules/dup3-tests (Files): Likewise.
3320         * modules/duplocale-tests (Files): Likewise.
3321         * modules/fbufmode-tests (Files): Likewise.
3322         * modules/fchdir-tests (Files): Likewise.
3323         * modules/fcntl-safer-tests (Files): Likewise.
3324         * modules/fcntl-tests (Files): Likewise.
3325         * modules/fdopendir-tests (Files): Likewise.
3326         * modules/fdutimensat-tests (Files): Likewise.
3327         * modules/fflush-tests (Files): Likewise.
3328         * modules/filevercmp-tests (Files): Likewise.
3329         * modules/flock-tests (Files): Likewise.
3330         * modules/floorf-tests (Files): Likewise.
3331         * modules/floorl-tests (Files): Likewise.
3332         * modules/fnmatch-tests (Files): Likewise.
3333         * modules/fopen-safer-tests (Files): Likewise.
3334         * modules/fopen-tests (Files): Likewise.
3335         * modules/fpending-tests (Files): Likewise.
3336         * modules/fprintf-posix-tests (Files): Likewise.
3337         * modules/fpurge-tests (Files): Likewise.
3338         * modules/freadable-tests (Files): Likewise.
3339         * modules/freadahead-tests (Files): Likewise.
3340         * modules/freading-tests (Files): Likewise.
3341         * modules/freadptr-tests (Files): Likewise.
3342         * modules/freadseek-tests (Files): Likewise.
3343         * modules/freopen-tests (Files): Likewise.
3344         * modules/frexp-nolibm-tests (Files): Likewise.
3345         * modules/frexp-tests (Files): Likewise.
3346         * modules/frexpl-nolibm-tests (Files): Likewise.
3347         * modules/frexpl-tests (Files): Likewise.
3348         * modules/fseek-tests (Files): Likewise.
3349         * modules/fseeko-tests (Files): Likewise.
3350         * modules/fstrcmp-tests (Files): Likewise.
3351         * modules/fsync-tests (Files): Likewise.
3352         * modules/ftell-tests (Files): Likewise.
3353         * modules/ftello-tests (Files): Likewise.
3354         * modules/func-tests (Files): Likewise.
3355         * modules/futimens-tests (Files): Likewise.
3356         * modules/fwritable-tests (Files): Likewise.
3357         * modules/fwriting-tests (Files): Likewise.
3358         * modules/getcwd-tests (Files): Likewise.
3359         * modules/getdate-tests (Files): Likewise.
3360         * modules/getdelim-tests (Files): Likewise.
3361         * modules/getdtablesize-tests (Files): Likewise.
3362         * modules/getgroups-tests (Files): Likewise.
3363         * modules/getline-tests (Files): Likewise.
3364         * modules/getndelim2-tests (Files): Likewise.
3365         * modules/glob-tests (Files): Likewise.
3366         * modules/hash-tests (Files): Likewise.
3367         * modules/i-ring-tests (Files): Likewise.
3368         * modules/iconv-tests (Files): Likewise.
3369         * modules/iconv_open-utf-tests (Files): Likewise.
3370         * modules/idpriv-drop-tests (Files): Likewise.
3371         * modules/idpriv-droptemp-tests (Files): Likewise.
3372         * modules/inet_ntop-tests (Files): Likewise.
3373         * modules/inet_pton-tests (Files): Likewise.
3374         * modules/isblank-tests (Files): Likewise.
3375         * modules/isfinite-tests (Files): Likewise.
3376         * modules/isinf-tests (Files): Likewise.
3377         * modules/isnan-tests (Files): Likewise.
3378         * modules/isnand-nolibm-tests (Files): Likewise.
3379         * modules/isnand-tests (Files): Likewise.
3380         * modules/isnanf-nolibm-tests (Files): Likewise.
3381         * modules/isnanf-tests (Files): Likewise.
3382         * modules/isnanl-nolibm-tests (Files): Likewise.
3383         * modules/isnanl-tests (Files): Likewise.
3384         * modules/lchown-tests (Files): Likewise.
3385         * modules/ldexpl-tests (Files): Likewise.
3386         * modules/link-tests (Files): Likewise.
3387         * modules/linkat-tests (Files): Likewise.
3388         * modules/linked-list-tests (Files): Likewise.
3389         * modules/linkedhash-list-tests (Files): Likewise.
3390         * modules/localename-tests (Files): Likewise.
3391         * modules/lseek-tests (Files): Likewise.
3392         * modules/lstat-tests (Files): Likewise.
3393         * modules/mbmemcasecmp-tests (Files): Likewise.
3394         * modules/mbmemcasecoll-tests (Files): Likewise.
3395         * modules/mbrtowc-tests (Files): Likewise.
3396         * modules/mbscasecmp-tests (Files): Likewise.
3397         * modules/mbscasestr-tests (Files): Likewise.
3398         * modules/mbschr-tests (Files): Likewise.
3399         * modules/mbscspn-tests (Files): Likewise.
3400         * modules/mbsinit-tests (Files): Likewise.
3401         * modules/mbsncasecmp-tests (Files): Likewise.
3402         * modules/mbsnrtowcs-tests (Files): Likewise.
3403         * modules/mbspbrk-tests (Files): Likewise.
3404         * modules/mbspcasecmp-tests (Files): Likewise.
3405         * modules/mbsrchr-tests (Files): Likewise.
3406         * modules/mbsrtowcs-tests (Files): Likewise.
3407         * modules/mbsspn-tests (Files): Likewise.
3408         * modules/mbsstr-tests (Files): Likewise.
3409         * modules/memchr-tests (Files): Likewise.
3410         * modules/memchr2-tests (Files): Likewise.
3411         * modules/memcmp-tests (Files): Likewise.
3412         * modules/memmem-tests (Files): Likewise.
3413         * modules/memrchr-tests (Files): Likewise.
3414         * modules/mkdir-tests (Files): Likewise.
3415         * modules/mkfifo-tests (Files): Likewise.
3416         * modules/mkfifoat-tests (Files): Likewise.
3417         * modules/mknod-tests (Files): Likewise.
3418         * modules/nanosleep-tests (Files): Likewise.
3419         * modules/nl_langinfo-tests (Files): Likewise.
3420         * modules/obstack-printf-tests (Files): Likewise.
3421         * modules/open-tests (Files): Likewise.
3422         * modules/openat-tests (Files): Likewise.
3423         * modules/pipe-filter-gi-tests (Files): Likewise.
3424         * modules/pipe-filter-ii-tests (Files): Likewise.
3425         * modules/pipe2-tests (Files): Likewise.
3426         * modules/popen-safer-tests (Files): Likewise.
3427         * modules/popen-tests (Files): Likewise.
3428         * modules/posixtm-tests (Files): Likewise.
3429         * modules/pread-tests (Files): Likewise.
3430         * modules/printf-frexp-tests (Files): Likewise.
3431         * modules/printf-frexpl-tests (Files): Likewise.
3432         * modules/printf-posix-tests (Files): Likewise.
3433         * modules/priv-set-tests (Files): Likewise.
3434         * modules/quotearg-tests (Files): Likewise.
3435         * modules/random_r-tests (Files): Likewise.
3436         * modules/rawmemchr-tests (Files): Likewise.
3437         * modules/rbtree-list-tests (Files): Likewise.
3438         * modules/rbtree-oset-tests (Files): Likewise.
3439         * modules/rbtreehash-list-tests (Files): Likewise.
3440         * modules/readlink-tests (Files): Likewise.
3441         * modules/remove-tests (Files): Likewise.
3442         * modules/rename-tests (Files): Likewise.
3443         * modules/renameat-tests (Files): Likewise.
3444         * modules/rmdir-tests (Files): Likewise.
3445         * modules/round-tests (Files): Likewise.
3446         * modules/roundf-tests (Files): Likewise.
3447         * modules/roundl-tests (Files): Likewise.
3448         * modules/safe-alloc-tests (Files): Likewise.
3449         * modules/setenv-tests (Files): Likewise.
3450         * modules/sigaction-tests (Files): Likewise.
3451         * modules/signbit-tests (Files): Likewise.
3452         * modules/sleep-tests (Files): Likewise.
3453         * modules/snprintf-posix-tests (Files): Likewise.
3454         * modules/snprintf-tests (Files): Likewise.
3455         * modules/sprintf-posix-tests (Files): Likewise.
3456         * modules/stat-tests (Files): Likewise.
3457         * modules/stat-time-tests (Files): Likewise.
3458         * modules/strcasestr-tests (Files): Likewise.
3459         * modules/strchrnul-tests (Files): Likewise.
3460         * modules/strerror-tests (Files): Likewise.
3461         * modules/striconv-tests (Files): Likewise.
3462         * modules/striconveh-tests (Files): Likewise.
3463         * modules/striconveha-tests (Files): Likewise.
3464         * modules/strsignal-tests (Files): Likewise.
3465         * modules/strstr-tests (Files): Likewise.
3466         * modules/strtod-tests (Files): Likewise.
3467         * modules/strverscmp-tests (Files): Likewise.
3468         * modules/symlink-tests (Files): Likewise.
3469         * modules/symlinkat-tests (Files): Likewise.
3470         * modules/trunc-tests (Files): Likewise.
3471         * modules/truncf-tests (Files): Likewise.
3472         * modules/truncl-tests (Files): Likewise.
3473         * modules/uname-tests (Files): Likewise.
3474         * modules/unicase/cased-tests (Files): Likewise.
3475         * modules/unicase/ignorable-tests (Files): Likewise.
3476         * modules/unicase/locale-language-tests (Files): Likewise.
3477         * modules/unicase/tolower-tests (Files): Likewise.
3478         * modules/unicase/totitle-tests (Files): Likewise.
3479         * modules/unicase/toupper-tests (Files): Likewise.
3480         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3481         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3482         * modules/unicase/u8-casefold-tests (Files): Likewise.
3483         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3484         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3485         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3486         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3487         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3488         * modules/unicase/u8-tolower-tests (Files): Likewise.
3489         * modules/unicase/u8-totitle-tests (Files): Likewise.
3490         * modules/unicase/u8-toupper-tests (Files): Likewise.
3491         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3492         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3493         * modules/unicase/u16-casefold-tests (Files): Likewise.
3494         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3495         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3496         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3497         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3498         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3499         * modules/unicase/u16-tolower-tests (Files): Likewise.
3500         * modules/unicase/u16-totitle-tests (Files): Likewise.
3501         * modules/unicase/u16-toupper-tests (Files): Likewise.
3502         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3503         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3504         * modules/unicase/u32-casefold-tests (Files): Likewise.
3505         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3506         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3507         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3508         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3509         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3510         * modules/unicase/u32-tolower-tests (Files): Likewise.
3511         * modules/unicase/u32-totitle-tests (Files): Likewise.
3512         * modules/unicase/u32-toupper-tests (Files): Likewise.
3513         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3514         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3515         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3516         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3517         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3518         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3519         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3520         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3521         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3522         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3523         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3524         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3525         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3526         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3527         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3528         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3529         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3530         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3531         * modules/unictype/block-list-tests (Files): Likewise.
3532         * modules/unictype/block-of-tests (Files): Likewise.
3533         * modules/unictype/block-test-tests (Files): Likewise.
3534         * modules/unictype/category-C-tests (Files): Likewise.
3535         * modules/unictype/category-Cc-tests (Files): Likewise.
3536         * modules/unictype/category-Cf-tests (Files): Likewise.
3537         * modules/unictype/category-Cn-tests (Files): Likewise.
3538         * modules/unictype/category-Co-tests (Files): Likewise.
3539         * modules/unictype/category-Cs-tests (Files): Likewise.
3540         * modules/unictype/category-L-tests (Files): Likewise.
3541         * modules/unictype/category-Ll-tests (Files): Likewise.
3542         * modules/unictype/category-Lm-tests (Files): Likewise.
3543         * modules/unictype/category-Lo-tests (Files): Likewise.
3544         * modules/unictype/category-Lt-tests (Files): Likewise.
3545         * modules/unictype/category-Lu-tests (Files): Likewise.
3546         * modules/unictype/category-M-tests (Files): Likewise.
3547         * modules/unictype/category-Mc-tests (Files): Likewise.
3548         * modules/unictype/category-Me-tests (Files): Likewise.
3549         * modules/unictype/category-Mn-tests (Files): Likewise.
3550         * modules/unictype/category-N-tests (Files): Likewise.
3551         * modules/unictype/category-Nd-tests (Files): Likewise.
3552         * modules/unictype/category-Nl-tests (Files): Likewise.
3553         * modules/unictype/category-No-tests (Files): Likewise.
3554         * modules/unictype/category-P-tests (Files): Likewise.
3555         * modules/unictype/category-Pc-tests (Files): Likewise.
3556         * modules/unictype/category-Pd-tests (Files): Likewise.
3557         * modules/unictype/category-Pe-tests (Files): Likewise.
3558         * modules/unictype/category-Pf-tests (Files): Likewise.
3559         * modules/unictype/category-Pi-tests (Files): Likewise.
3560         * modules/unictype/category-Po-tests (Files): Likewise.
3561         * modules/unictype/category-Ps-tests (Files): Likewise.
3562         * modules/unictype/category-S-tests (Files): Likewise.
3563         * modules/unictype/category-Sc-tests (Files): Likewise.
3564         * modules/unictype/category-Sk-tests (Files): Likewise.
3565         * modules/unictype/category-Sm-tests (Files): Likewise.
3566         * modules/unictype/category-So-tests (Files): Likewise.
3567         * modules/unictype/category-Z-tests (Files): Likewise.
3568         * modules/unictype/category-Zl-tests (Files): Likewise.
3569         * modules/unictype/category-Zp-tests (Files): Likewise.
3570         * modules/unictype/category-Zs-tests (Files): Likewise.
3571         * modules/unictype/category-and-not-tests (Files): Likewise.
3572         * modules/unictype/category-and-tests (Files): Likewise.
3573         * modules/unictype/category-byname-tests (Files): Likewise.
3574         * modules/unictype/category-name-tests (Files): Likewise.
3575         * modules/unictype/category-none-tests (Files): Likewise.
3576         * modules/unictype/category-of-tests (Files): Likewise.
3577         * modules/unictype/category-or-tests (Files): Likewise.
3578         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3579         * modules/unictype/combining-class-tests (Files): Likewise.
3580         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3581         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3582         * modules/unictype/ctype-blank-tests (Files): Likewise.
3583         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3584         * modules/unictype/ctype-digit-tests (Files): Likewise.
3585         * modules/unictype/ctype-graph-tests (Files): Likewise.
3586         * modules/unictype/ctype-lower-tests (Files): Likewise.
3587         * modules/unictype/ctype-print-tests (Files): Likewise.
3588         * modules/unictype/ctype-punct-tests (Files): Likewise.
3589         * modules/unictype/ctype-space-tests (Files): Likewise.
3590         * modules/unictype/ctype-upper-tests (Files): Likewise.
3591         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3592         * modules/unictype/decimal-digit-tests (Files): Likewise.
3593         * modules/unictype/digit-tests (Files): Likewise.
3594         * modules/unictype/mirror-tests (Files): Likewise.
3595         * modules/unictype/numeric-tests (Files): Likewise.
3596         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3597         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3598         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3599         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3600         Likewise.
3601         * modules/unictype/property-bidi-block-separator-tests (Files):
3602         Likewise.
3603         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3604         Likewise.
3605         * modules/unictype/property-bidi-common-separator-tests (Files):
3606         Likewise.
3607         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3608         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3609         Likewise.
3610         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3611         Likewise.
3612         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3613         Likewise.
3614         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3615         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3616         Likewise.
3617         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3618         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3619         Likewise.
3620         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3621         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3622         * modules/unictype/property-bidi-segment-separator-tests (Files):
3623         Likewise.
3624         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3625         * modules/unictype/property-byname-tests (Files): Likewise.
3626         * modules/unictype/property-combining-tests (Files): Likewise.
3627         * modules/unictype/property-composite-tests (Files): Likewise.
3628         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3629         * modules/unictype/property-dash-tests (Files): Likewise.
3630         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3631         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3632         Likewise.
3633         * modules/unictype/property-deprecated-tests (Files): Likewise.
3634         * modules/unictype/property-diacritic-tests (Files): Likewise.
3635         * modules/unictype/property-extender-tests (Files): Likewise.
3636         * modules/unictype/property-format-control-tests (Files): Likewise.
3637         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3638         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3639         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3640         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3641         * modules/unictype/property-hyphen-tests (Files): Likewise.
3642         * modules/unictype/property-id-continue-tests (Files): Likewise.
3643         * modules/unictype/property-id-start-tests (Files): Likewise.
3644         * modules/unictype/property-ideographic-tests (Files): Likewise.
3645         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3646         * modules/unictype/property-ids-trinary-operator-tests (Files):
3647         Likewise.
3648         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3649         * modules/unictype/property-iso-control-tests (Files): Likewise.
3650         * modules/unictype/property-join-control-tests (Files): Likewise.
3651         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3652         * modules/unictype/property-line-separator-tests (Files): Likewise.
3653         * modules/unictype/property-logical-order-exception-tests (Files):
3654         Likewise.
3655         * modules/unictype/property-lowercase-tests (Files): Likewise.
3656         * modules/unictype/property-math-tests (Files): Likewise.
3657         * modules/unictype/property-non-break-tests (Files): Likewise.
3658         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3659         * modules/unictype/property-numeric-tests (Files): Likewise.
3660         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3661         * modules/unictype/property-other-default-ignorable-code-point-tests
3662         (Files): Likewise.
3663         * modules/unictype/property-other-grapheme-extend-tests (Files):
3664         Likewise.
3665         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3666         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3667         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3668         * modules/unictype/property-other-math-tests (Files): Likewise.
3669         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3670         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3671         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3672         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3673         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3674         * modules/unictype/property-private-use-tests (Files): Likewise.
3675         * modules/unictype/property-punctuation-tests (Files): Likewise.
3676         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3677         * modules/unictype/property-radical-tests (Files): Likewise.
3678         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3679         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3680         * modules/unictype/property-space-tests (Files): Likewise.
3681         * modules/unictype/property-terminal-punctuation-tests (Files):
3682         Likewise.
3683         * modules/unictype/property-test-tests (Files): Likewise.
3684         * modules/unictype/property-titlecase-tests (Files): Likewise.
3685         * modules/unictype/property-unassigned-code-value-tests (Files):
3686         Likewise.
3687         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3688         * modules/unictype/property-uppercase-tests (Files): Likewise.
3689         * modules/unictype/property-variation-selector-tests (Files): Likewise.
3690         * modules/unictype/property-white-space-tests (Files): Likewise.
3691         * modules/unictype/property-xid-continue-tests (Files): Likewise.
3692         * modules/unictype/property-xid-start-tests (Files): Likewise.
3693         * modules/unictype/property-zero-width-tests (Files): Likewise.
3694         * modules/unictype/scripts-tests (Files): Likewise.
3695         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3696         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3697         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3698         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3699         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3700         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3701         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3702         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3703         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3704         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3705         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3706         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3707         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3708         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3709         * modules/uninorm/composition-tests (Files): Likewise.
3710         * modules/uninorm/decomposing-form-tests (Files): Likewise.
3711         * modules/uninorm/decomposition-tests (Files): Likewise.
3712         * modules/uninorm/filter-tests (Files): Likewise.
3713         * modules/uninorm/nfc-tests (Files): Likewise.
3714         * modules/uninorm/nfd-tests (Files): Likewise.
3715         * modules/uninorm/nfkc-tests (Files): Likewise.
3716         * modules/uninorm/nfkd-tests (Files): Likewise.
3717         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3718         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3719         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3720         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3721         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3722         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3723         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3724         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3725         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3726         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3727         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3728         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3729         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3730         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3731         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3732         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3733         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3734         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3735         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3736         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3737         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3738         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3739         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3740         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3741         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3742         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3743         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3744         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3745         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3746         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3747         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3748         * modules/uniwidth/u8-width-tests (Files): Likewise.
3749         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3750         * modules/uniwidth/u16-width-tests (Files): Likewise.
3751         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3752         * modules/uniwidth/u32-width-tests (Files): Likewise.
3753         * modules/uniwidth/width-tests (Files): Likewise.
3754         * modules/unlink-tests (Files): Likewise.
3755         * modules/unsetenv-tests (Files): Likewise.
3756         * modules/usleep-tests (Files): Likewise.
3757         * modules/utimens-tests (Files): Likewise.
3758         * modules/utimensat-tests (Files): Likewise.
3759         * modules/vasnprintf-posix-tests (Files): Likewise.
3760         * modules/vasnprintf-tests (Files): Likewise.
3761         * modules/vasprintf-posix-tests (Files): Likewise.
3762         * modules/vasprintf-tests (Files): Likewise.
3763         * modules/vdprintf-posix-tests (Files): Likewise.
3764         * modules/vfprintf-posix-tests (Files): Likewise.
3765         * modules/vprintf-posix-tests (Files): Likewise.
3766         * modules/vsnprintf-posix-tests (Files): Likewise.
3767         * modules/vsnprintf-tests (Files): Likewise.
3768         * modules/vsprintf-posix-tests (Files): Likewise.
3769         * modules/wcrtomb-tests (Files): Likewise.
3770         * modules/wcsnrtombs-tests (Files): Likewise.
3771         * modules/wcsrtombs-tests (Files): Likewise.
3772         * modules/wctype-tests (Files): Likewise.
3773         * modules/wcwidth-tests (Files): Likewise.
3774         * modules/xmemdup0-tests (Files): Likewise.
3775         * modules/xprintf-posix-tests (Files): Likewise.
3776         * modules/xvasprintf-tests (Files): Likewise.
3777
3778 2009-12-24  Eric Blake  <ebb9@byu.net>
3779
3780         test-nanosleep: fix typo
3781         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
3782         patch.
3783         Reported by Bruno Haible.
3784
3785 2009-12-24  Bruno Haible  <bruno@clisp.org>
3786
3787         Reduce namespace pollution on glibc systems.
3788         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
3789         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
3790         systems.
3791         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
3792         <getopt.h> on glibc systems.
3793         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
3794         systems.
3795         * lib/fcntl.c: Include <unistd.h> here instead.
3796
3797 2009-12-24  Bruno Haible  <bruno@clisp.org>
3798
3799         * lib/stdlib.in.h (includes): Fix typo in today's commit.
3800
3801 2009-12-24  Eric Blake  <ebb9@byu.net>
3802
3803         tests: add signature checks
3804         * tests/signature.h (SIGNATURE_CHECK): New file.
3805         * modules/atexit-tests (Files): Use it.
3806         * modules/btowc-tests (Files): Likewise.
3807         * modules/canonicalize-lgpl-tests (Files): Likewise.
3808         * modules/ceilf-tests (Files): Likewise.
3809         * modules/ceill-tests (Files): Likewise.
3810         * modules/chown-tests (Files): Likewise.
3811         * modules/dprintf-posix-tests (Files): Likewise.
3812         * modules/dup2-tests (Files): Likewise.
3813         * modules/dup3-tests (Files): Likewise.
3814         * modules/duplocale-tests (Files): Likewise.
3815         * modules/fchdir-tests (Files): Likewise.
3816         * modules/fcntl-tests (Files): Likewise.
3817         * modules/fdopendir-tests (Files): Likewise.
3818         * modules/fflush-tests (Files): Likewise.
3819         * modules/flock-tests (Files): Likewise.
3820         * modules/floorf-tests (Files): Likewise.
3821         * modules/floorl-tests (Files): Likewise.
3822         * modules/fnmatch-tests (Files): Likewise.
3823         * modules/fopen-tests (Files): Likewise.
3824         * modules/fprintf-posix-tests (Files): Likewise.
3825         * modules/freopen-tests (Files): Likewise.
3826         * modules/frexp-nolibm-tests (Files): Likewise.
3827         * modules/frexp-tests (Files): Likewise.
3828         * modules/frexpl-nolibm-tests (Files): Likewise.
3829         * modules/frexpl-tests (Files): Likewise.
3830         * modules/fseek-tests (Files): Likewise.
3831         * modules/fseeko-tests (Files): Likewise.
3832         * modules/fsync-tests (Files): Likewise.
3833         * modules/ftell-tests (Files): Likewise.
3834         * modules/ftello-tests (Files): Likewise.
3835         * modules/futimens-tests (Files): Likewise.
3836         * modules/getaddrinfo-tests (Files): Likewise.
3837         * modules/getcwd-tests (Files): Likewise.
3838         * modules/getdelim-tests (Files): Likewise.
3839         * modules/getdtablesize-tests (Files): Likewise.
3840         * modules/getgroups-tests (Files): Likewise.
3841         * modules/gethostname-tests (Files): Likewise.
3842         * modules/getline-tests (Files): Likewise.
3843         * modules/getopt-posix-tests (Files): Likewise.
3844         * modules/gettimeofday-tests (Files): Likewise.
3845         * modules/glob-tests (Files): Likewise.
3846         * modules/iconv-tests (Files): Likewise.
3847         * modules/inet_ntop-tests (Files): Likewise.
3848         * modules/inet_pton-tests (Files): Likewise.
3849         * modules/isblank-tests (Files): Likewise.
3850         * modules/lchown-tests (Files): Likewise.
3851         * modules/ldexpl-tests (Files): Likewise.
3852         * modules/link-tests (Files): Likewise.
3853         * modules/linkat-tests (Files): Likewise.
3854         * modules/lseek-tests (Files): Likewise.
3855         * modules/lstat-tests (Files): Likewise.
3856         * modules/mbrtowc-tests (Files): Likewise.
3857         * modules/mbsinit-tests (Files): Likewise.
3858         * modules/mbsnrtowcs-tests (Files): Likewise.
3859         * modules/mbsrtowcs-tests (Files): Likewise.
3860         * modules/memchr-tests (Files): Likewise.
3861         * modules/memcmp-tests (Files): Likewise.
3862         * modules/memmem-tests (Files): Likewise.
3863         * modules/memrchr-tests (Files): Likewise.
3864         * modules/mkdir-tests (Files): Likewise.
3865         * modules/mkfifo-tests (Files): Likewise.
3866         * modules/mkfifoat-tests (Files): Likewise.
3867         * modules/mknod-tests (Files): Likewise.
3868         * modules/nanosleep-tests (Files): Likewise.
3869         * modules/nl_langinfo-tests (Files): Likewise.
3870         * modules/obstack-printf-tests (Files): Likewise.
3871         * modules/open-tests (Files): Likewise.
3872         * modules/openat-tests (Files): Likewise.
3873         * modules/perror-tests (Files): Likewise.
3874         * modules/pipe2-tests (Files): Likewise.
3875         * modules/poll-tests (Files): Likewise.
3876         * modules/popen-tests (Files): Likewise.
3877         * modules/posix_spawn-tests (Files): Likewise.
3878         * modules/posix_spawnp-tests (Files): Likewise.
3879         * modules/pread-tests (Files): Likewise.
3880         * modules/printf-posix-tests (Files): Likewise.
3881         * modules/pty-tests (Files): Likewise.
3882         * modules/random_r-tests (Files): Likewise.
3883         * modules/rawmemchr-tests (Files): Likewise.
3884         * modules/readlink-tests (Files): Likewise.
3885         * modules/remove-tests (Files): Likewise.
3886         * modules/rename-tests (Files): Likewise.
3887         * modules/renameat-tests (Files): Likewise.
3888         * modules/rmdir-tests (Files): Likewise.
3889         * modules/round-tests (Files): Likewise.
3890         * modules/roundf-tests (Files): Likewise.
3891         * modules/roundl-tests (Files): Likewise.
3892         * modules/select-tests (Files): Likewise.
3893         * modules/setenv-tests (Files): Likewise.
3894         * modules/sigaction-tests (Files): Likewise.
3895         * modules/sleep-tests (Files): Likewise.
3896         * modules/snprintf-posix-tests (Files): Likewise.
3897         * modules/snprintf-tests (Files): Likewise.
3898         * modules/sprintf-posix-tests (Files): Likewise.
3899         * modules/stat-tests (Files): Likewise.
3900         * modules/strcasestr-tests (Files): Likewise.
3901         * modules/strchrnul-tests (Files): Likewise.
3902         * modules/strerror-tests (Files): Likewise.
3903         * modules/strsignal-tests (Files): Likewise.
3904         * modules/strstr-tests (Files): Likewise.
3905         * modules/strtod-tests (Files): Likewise.
3906         * modules/strverscmp-tests (Files): Likewise.
3907         * modules/symlink-tests (Files): Likewise.
3908         * modules/symlinkat-tests (Files): Likewise.
3909         * modules/times-tests (Files): Likewise.
3910         * modules/trunc-tests (Files): Likewise.
3911         * modules/truncf-tests (Files): Likewise.
3912         * modules/truncl-tests (Files): Likewise.
3913         * modules/tsearch-tests (Files): Likewise.
3914         * modules/uname-tests (Files): Likewise.
3915         * modules/unlink-tests (Files): Likewise.
3916         * modules/unsetenv-tests (Files): Likewise.
3917         * modules/usleep-tests (Files): Likewise.
3918         * modules/utimensat-tests (Files): Likewise.
3919         * modules/vasprintf-tests (Files): Likewise.
3920         * modules/vdprintf-posix-tests (Files): Likewise.
3921         * modules/vfprintf-posix-tests (Files): Likewise.
3922         * modules/vprintf-posix-tests (Files): Likewise.
3923         * modules/vsnprintf-posix-tests (Files): Likewise.
3924         * modules/vsnprintf-tests (Files): Likewise.
3925         * modules/vsprintf-posix-tests (Files): Likewise.
3926         * modules/wcrtomb-tests (Files): Likewise.
3927         * modules/wcsnrtombs-tests (Files): Likewise.
3928         * modules/wcsrtombs-tests (Files): Likewise.
3929         * modules/wcwidth-tests (Files): Likewise.
3930         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
3931         * tests/test-isinf.c (isinf): Likewise.
3932         * tests/test-isnan.c (isnan): Likewise.
3933         * tests/test-signbit.c (signbit): Likewise.
3934         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
3935         declaration, either as macro or with correct signature.
3936         (select): Ensure function under test is declared with correct
3937         signature in correct header.
3938         * tests/test-atexit.c (atexit): Likewise.
3939         * tests/test-btowc.c (btowc): Likewise.
3940         * tests/test-canonicalize-lgpl.c (realpath)
3941         (canonicalize_file_name): Likewise.
3942         * tests/test-ceilf1.c (ceilf): Likewise.
3943         * tests/test-ceill.c (ceill): Likewise.
3944         * tests/test-chown.c (chown): Likewise.
3945         * tests/test-dprintf-posix.c (dprintf): Likewise.
3946         * tests/test-dup2.c (dup2): Likewise.
3947         * tests/test-dup3.c (dup3): Likewise.
3948         * tests/test-duplocale.c (duplocale): Likewise.
3949         * tests/test-fchdir.c (fchdir): Likewise.
3950         * tests/test-fchownat.c (fchownat): Likewise.
3951         * tests/test-fcntl.c (fcntl): Likewise.
3952         * tests/test-fdopendir.c (fdopendir): Likewise.
3953         * tests/test-fflush.c (fflush): Likewise.
3954         * tests/test-flock.c (flock): Likewise.
3955         * tests/test-floorf1.c (floorf): Likewise.
3956         * tests/test-floorl.c (floorl): Likewise.
3957         * tests/test-fnmatch.c (fnmatch): Likewise.
3958         * tests/test-fopen.c (fopen): Likewise.
3959         * tests/test-fprintf-posix.c (fprintf): Likewise.
3960         * tests/test-freopen.c (freopen): Likewise.
3961         * tests/test-frexp.c (frexp): Likewise.
3962         * tests/test-frexpl.c (frexpl): Likewise.
3963         * tests/test-fseek.c (fseek): Likewise.
3964         * tests/test-fseeko.c (fseeko): Likewise.
3965         * tests/test-fstatat.c (fstatat): Likewise.
3966         * tests/test-fsync.c (fsync): Likewise.
3967         * tests/test-ftell.c (ftell): Likewise.
3968         * tests/test-ftello.c (ftello): Likewise.
3969         * tests/test-futimens.c (futimens): Likewise.
3970         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
3971         (gai_strerror): Likewise.
3972         * tests/test-getcwd.c (getcwd): Likewise.
3973         * tests/test-getdelim.c (getdelim): Likewise.
3974         * tests/test-getdtablesize.c (getdtablesize): Likewise.
3975         * tests/test-getgroups.c (getgroups): Likewise.
3976         * tests/test-gethostname.c (gethostname): Likewise.
3977         * tests/test-getline.c (getline): Likewise.
3978         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
3979         Likewise.
3980         * tests/test-gettimeofday.c (gettimeofday): Likewise.
3981         * tests/test-glob.c (glob, globfree): Likewise.
3982         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
3983         * tests/test-inet_ntop.c (inet_ntop): Likewise.
3984         * tests/test-inet_pton.c (inet_pton): Likewise.
3985         * tests/test-isblank.c (isblank): Likewise.
3986         * tests/test-lchown.c (lchown): Likewise.
3987         * tests/test-ldexpl.c (ldexpl): Likewise.
3988         * tests/test-link.c (link): Likewise.
3989         * tests/test-linkat.c (linkat): Likewise.
3990         * tests/test-lseek.c (lseek): Likewise.
3991         * tests/test-lstat.c (lstat): Likewise.
3992         * tests/test-mbrtowc.c (mbrtowc): Likewise.
3993         * tests/test-mbsinit.c (mbsinit): Likewise.
3994         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
3995         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
3996         * tests/test-memchr.c (memchr): Likewise.
3997         * tests/test-memcmp.c (memcmp): Likewise.
3998         * tests/test-memmem.c (memmem): Likewise.
3999         * tests/test-memrchr.c (memrchr): Likewise.
4000         * tests/test-mkdir.c (mkdir): Likewise.
4001         * tests/test-mkdirat.c (mkdirat): Likewise.
4002         * tests/test-mkfifo.c (mkfifo): Likewise.
4003         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4004         * tests/test-mknod.c (mknod): Likewise.
4005         * tests/test-nanosleep.c (nanosleep): Likewise.
4006         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4007         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4008         Likewise.
4009         * tests/test-open.c (open): Likewise.
4010         * tests/test-openat.c (openat): Likewise.
4011         * tests/test-perror.c (perror): Likewise.
4012         * tests/test-pipe2.c (pipe2): Likewise.
4013         * tests/test-poll.c (poll): Likewise.
4014         * tests/test-popen.c (popen, pclose): Likewise.
4015         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4016         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4017         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4018         (posix_spawn_file_actions_destroy)
4019         (posix_spawn_file_actions_addclose)
4020         (posix_spawn_file_actions_addopen)
4021         (posix_spawn_file_actions_adddup2): Likewise.
4022         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4023         * tests/test-pread.c (pread): Likewise.
4024         * tests/test-printf-posix.c (printf): Likewise.
4025         * tests/test-pty.c (openpty, forkpty): Likewise.
4026         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4027         (random_r): Likewise.
4028         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4029         * tests/test-readlink.c (readlink): Likewise.
4030         * tests/test-remove.c (remove): Likewise.
4031         * tests/test-rename.c (rename): Likewise.
4032         * tests/test-renameat.c (renameat): Likewise.
4033         * tests/test-rmdir.c (rmdir): Likewise.
4034         * tests/test-round1.c (round): Likewise.
4035         * tests/test-roundf1.c (roundf): Likewise.
4036         * tests/test-roundl.c (roundl): Likewise.
4037         * tests/test-setenv.c (setenv): Likewise.
4038         * tests/test-sigaction.c (sigaction): Likewise.
4039         * tests/test-sleep.c (sleep): Likewise.
4040         * tests/test-snprintf.c (snprintf): Likewise.
4041         * tests/test-sprintf-posix.c (sprintf): Likewise.
4042         * tests/test-stat.c (stat): Likewise.
4043         * tests/test-stpncpy.c (stpncpy): Likewise.
4044         * tests/test-strcasestr.c (strcasestr): Likewise.
4045         * tests/test-strchrnul.c (strchrnul): Likewise.
4046         * tests/test-strerror.c (strerror): Likewise.
4047         * tests/test-strsignal.c (strsignal): Likewise.
4048         * tests/test-strstr.c (strstr): Likewise.
4049         * tests/test-strtod.c (strtod): Likewise.
4050         * tests/test-strverscmp.c (strverscmp): Likewise.
4051         * tests/test-symlink.c (symlink): Likewise.
4052         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4053         * tests/test-times.c (times): Likewise.
4054         * tests/test-trunc1.c (trunc): Likewise.
4055         * tests/test-truncf1.c (truncf): Likewise.
4056         * tests/test-truncl.c (truncl): Likewise.
4057         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4058         Likewise.
4059         * tests/test-uname.c (uname): Likewise.
4060         * tests/test-unlink.c (unlink): Likewise.
4061         * tests/test-unlinkat.c (unlinkat): Likewise.
4062         * tests/test-unsetenv.c (unsetenv): Likewise.
4063         * tests/test-usleep.c (usleep): Likewise.
4064         * tests/test-utimensat.c (utimensat): Likewise.
4065         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4066         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4067         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4068         * tests/test-vprintf-posix.c (vprintf): Likewise.
4069         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4070         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4071         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4072         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4073         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4074         * tests/test-wcwidth.c (wcwidth): Likewise.
4075
4076         build: pull in conditional headers during GNULIB_POSIXCHECK
4077         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4078         definitions from any conditionally-included headers.
4079         * lib/stdlib.in.h (includes): Likewise.
4080         * lib/unistd.in.h (includes): Likewise.
4081
4082 2009-12-24  Bruno Haible  <bruno@clisp.org>
4083
4084         * tests/test-argv-iter.c: Include header file being tested immediately
4085         after config.h.
4086         * tests/test-base64.c: Likewise.
4087         * tests/test-flock.c: Likewise.
4088         * tests/test-fsync.c: Likewise.
4089         * tests/test-getdate.c: Likewise.
4090         * tests/test-getndelim2.c: Likewise.
4091         * tests/test-isfinite.c: Likewise.
4092         * tests/test-isinf.c: Likewise.
4093         * tests/test-strerror.c: Likewise.
4094         * tests/test-strsignal.c: Likewise.
4095
4096 2009-12-23  Eric Blake  <ebb9@byu.net>
4097
4098         unistd: work around cygwin bug
4099         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4100         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4101         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4102
4103 2009-12-23  Bruno Haible  <bruno@clisp.org>
4104
4105         localename: More tests.
4106         * tests/test-localename.c (SIZEOF): New macro.
4107         (categories): New variable.
4108         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4109         test_locale_name_default): Add test w.r.t. thread locale.
4110         (test_locale_name_thread): New function.
4111         (main): Invoke it.
4112
4113         localename: Make aware of thread locale.
4114         * lib/localename.h (gl_locale_name_thread): New declaration.
4115         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4116         behaviour with respect to thread locale.
4117         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4118         <langinfo.h>, glthread/lock.h.
4119         (SIZE_BITS): New macro.
4120         (string_hash): New function.
4121         (struct hash_node): New type.
4122         (HASH_TABLE_SIZE): New macro.
4123         (struniq_hash_table, struniq_lock): New variables.
4124         (struniq): New function.
4125         (gl_locale_name_thread): New function.
4126         (gl_locale_name): Invoke it.
4127         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4128         * modules/localename (Depends-on): Add lock.
4129         Reported by Mike Gran <spk121@yahoo.com>.
4130
4131 2009-12-23  Eric Blake  <ebb9@byu.net>
4132
4133         va-args: new module
4134         * modules/va-args: New file.
4135         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4136         * MODULES.html.sh (Core language properties): Mention it.
4137
4138         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4139         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4140         named alias for __attribute__((__unused__)).
4141         * lib/chown.c: Update client.
4142         * lib/fchmodat.c: Likewise.
4143         * lib/fts.c: Likewise.
4144         * lib/getdate.y: Likewise.
4145         * lib/getgroups.c: Likewise.
4146         * lib/getopt.c: Likewise.
4147         * lib/getugroups.c: Likewise.
4148         * lib/mkdir.c: Likewise.
4149         * lib/mkfifo.c: Likewise.
4150         * lib/mkfifoat.c: Likewise.
4151         * lib/mknod.c: Likewise.
4152         * lib/mknodat.c: Likewise.
4153         * lib/readlink.c: Likewise.
4154         * lib/se-context.in.h: Likewise.
4155         * lib/se-selinux.in.h: Likewise.
4156         * lib/sockets.c: Likewise.
4157         * lib/symlink.c: Likewise.
4158         * lib/symlinkat.c: Likewise.
4159         * lib/unicodeio.c: Likewise.
4160         * lib/unistr.h: Likewise.
4161         * tests/test-areadlink.c: Likewise.
4162         * tests/test-areadlinkat.c: Likewise.
4163         * tests/test-filenamecat.c: Likewise.
4164         * tests/test-fseeko.c: Likewise.
4165         * tests/test-ftello.c: Likewise.
4166         * tests/test-getdate.c: Likewise.
4167         * tests/test-getgroups.c: Likewise.
4168         * tests/test-gethostname.c: Likewise.
4169         * tests/test-quotearg.c: Likewise.
4170         * tests/test-version-etc.c: Likewise.
4171         * tests/test-xalloc-die.c: Likewise.
4172         * tests/test-xfprintf-posix.c: Likewise.
4173         * tests/test-xprintf-posix.c: Likewise.
4174         * tests/test-xvasprintf.c: Likewise.
4175
4176         tests: avoid compiler warnings
4177         * tests/test-fcntl.c (main): Delete unused parameters.
4178         * tests/test-freopen-safer.c (main): Likewise.
4179         * tests/test-xalloc-die.c (main): Mark unused parameters.
4180         * tests/test-fseeko.c (main): Likewise.
4181         * tests/test-ftello.c (main): Likewise.
4182         * tests/test-nanosleep.c (main): Avoid declaration warning.
4183         * tests/test-sleep.c (main): Likewise.
4184         * tests/test-unsetenv.c (main): Silence warning about string
4185         literal.
4186         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4187
4188 2009-12-23  Bruno Haible  <bruno@clisp.org>
4189
4190         * tests/test-localename.c (test_locale_name): New function, extracted
4191         from main. Also test mixed situations.
4192         (test_locale_name_posix, test_locale_name_environ,
4193         test_locale_name_default): New functions.
4194         (main): Invoke them all.
4195         * modules/localename-tests (configure.ac): Test for newlocale.
4196
4197 2009-12-23  Bruno Haible  <bruno@clisp.org>
4198
4199         unistd: Ensure getcwd gets declared before being overridden.
4200         * lib/unistd.in.h: Conditionally include <io.h>.
4201
4202 2009-12-22  Bruno Haible  <bruno@clisp.org>
4203
4204         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4205         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4206         (gl_WCHAR_H): Invoke it.
4207         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4208         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4209         Reported by Karl Berry <karl@freefriends.org>.
4210
4211 2009-12-22  Eric Blake  <ebb9@byu.net>
4212
4213         math, unistd: avoid redundant includes
4214         * lib/math.in.h (isnan): No need to re-include <math.h>.
4215         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4216
4217         getsubopt: work around cygwin bug
4218         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4219         avoid conflicting with system getsubopt.
4220         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4221         bug.
4222
4223         getopt: synchronize from glibc
4224         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4225         parameter order.  Adjust all callers.
4226         (_getopt_internal_r, main): Adjust quoting in error messages.
4227         Drop considerations for outdated POSIX 1003.2 error message.
4228         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4229         callers.
4230         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4231
4232         test-getopt: test stderr behavior
4233         * modules/getopt-posix-tests (Depends-on): Add dup2.
4234         * tests/test-getopt.c (ASSERT): Avoid stderr.
4235         (main): Move stderr to a temporary file.
4236         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4237         Instead, add parameter to inform caller if output occurred.
4238         (test_getopt): Adjust all existing tests to expect silence, and
4239         add new tests of leading ":".
4240         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4241         glibc shortcomings with leading "-:" or "+:" in optstring.
4242         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4243         Likewise.
4244         * doc/posix-functions/getopt.texi (getopt): Likewise.
4245
4246         test-getopt: enhance test
4247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4248         supports optind=0.
4249         * tests/test-getopt.c (OPTIND_MIN): Move...
4250         * tests/test-getopt.h (OPTIND_MIN): ...here.
4251         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4252         Require that optind=0 works, since modern BSD supports it in
4253         addition to optreset, and since coreutils expects it.
4254         (test_getopt_long_only): New test.
4255         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4256         glibc shortcomings with 'W;', and enforcement of optind=0.
4257         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4258         Likewise.
4259
4260 2009-12-21  Bruno Haible  <bruno@clisp.org>
4261
4262         localename: Improvements for MacOS X and Cygwin.
4263         * lib/localename.h (gl_locale_name_environ): New declaration.
4264         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4265         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4266         (gl_locale_name_posix): Invoke it.
4267         (gl_locale_name_default): Add comments. Use Windows native API also on
4268         Cygwin.
4269
4270 2009-12-21  Bruno Haible  <bruno@clisp.org>
4271
4272         Update list of Win32 locale ids.
4273         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4274         (LANG_SAMI): Renamed from LANG_SAAMI.
4275         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4276         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4277         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4278         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4279         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4280         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4281         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4282         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4283         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4284         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4285         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4286         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4287         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4288         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4289         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4290         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4291         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4292         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4293         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4294         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4295         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4296         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4297         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4298         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4299         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4300         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4301         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4302         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4303         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4304         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4305         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4306         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4307         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4308         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4309         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4310         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4311         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4312         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4313         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4314         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4315         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4316         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4317         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4318         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4319         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4320         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4321         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4322         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4323         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4324         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4325         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4326         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4327         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4328         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4329         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4330         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4331         Add more languages and countries for Sami, Sorbian. Add more countries
4332         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4333         for Pashto. Change country for Syriac, Tswana.
4334
4335 2009-12-21  Eric Blake  <ebb9@byu.net>
4336
4337         test-utimens: avoid spurious failure
4338         * tests/test-chown.h (nap): Factor...
4339         * tests/nap.h: ...into new file.
4340         * tests/test-lchown.h (nap): Avoid duplication.
4341         * tests/test-utimens-common.h (nap): Use shared implementation,
4342         necessary on file systems with 1-second resolution.
4343         * modules/chown-tests (Files): Include new file.
4344         * modules/fdutimensat-tests (Files): Likewise.
4345         * modules/futimens-tests (Files): Likewise.
4346         * modules/lchown-tests (Files): Likewise.
4347         * modules/openat-tests (Files): Likewise.
4348         * modules/utimens-tests (Files): Likewise.
4349         * modules/utimensat-tests (Files): Likewise.
4350
4351 2009-12-19  Eric Blake  <ebb9@byu.net>
4352
4353         futimens, utimensat: work around Linux bug
4354         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4355         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4356         * lib/utimensat.c (rpl_utimensat): Work around it.
4357         * lib/futimens.c (rpl_futimens): Adjust comment.
4358
4359         utimens: work around Linux ctime bug
4360         * lib/utimens.c (detect_ctime_bug): New helper function.
4361         (update_timespec): Differentiate between workaround needed for
4362         this bug vs. what is needed for systems that lack utimensat.
4363         (fdutimens, lutimens): Work around bug.
4364
4365         utimens: check for ctime update
4366         * tests/test-utimens-common.h (check_ctime): Define.
4367         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4368         * tests/test-futimens.h (test_futimens): Likewise.
4369         * tests/test-lutimens.h (test_lutimens): Likewise.
4370         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4371         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4372
4373 2009-12-19  Bruno Haible  <bruno@clisp.org>
4374
4375         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4376         * tests/test-dprintf-posix2.sh: New file.
4377         * tests/test-dprintf-posix2.c: New file.
4378         * modules/dprintf-posix-tests (Files): Add them.
4379         (configure.ac): Check for getrlimit and setrlimit.
4380         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4381
4382 2009-12-19  Bruno Haible  <bruno@clisp.org>
4383
4384         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4385         * tests/test-fprintf-posix3.sh: New file.
4386         * tests/test-fprintf-posix3.c: New file.
4387         * modules/fprintf-posix-tests (Files): Add them.
4388         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4389
4390 2009-12-19  Eric Blake  <ebb9@byu.net>
4391
4392         dirfd: fix prototype
4393         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4394         * lib/dirfd.c (dirfd): Likewise.
4395
4396         canonicalize: reduce memory usage
4397         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4398         allocation to size.
4399         Reported by Solar Designer <solar@openwall.com>.
4400
4401 2009-12-19  Bruno Haible  <bruno@clisp.org>
4402
4403         New module attribute 'Applicability'.
4404         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4405         * gnulib-tool: New option --extract-applicability.
4406         (func_usage): Document it.
4407         (sed_extract_prog): Recognize it.
4408         (func_get_applicability): New function.
4409         (func_import): Generalize handling of 'link-warning' module.
4410         * modules/link-warning (Applicability): New section.
4411         * modules/arg-nonnull (Applicability): New section.
4412         Repoted by Simon Josefsson <simon@josefsson.org>.
4413
4414 2009-12-19  Bruno Haible  <bruno@clisp.org>
4415
4416         fflush: tweak
4417         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4418         * lib/fseeko.c (rpl_fseeko): Likewise.
4419
4420 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4421
4422         * lib/gl_list.h: Fix typo in comment.
4423
4424 2009-12-16  Eric Blake  <ebb9@byu.net>
4425
4426         fcntl: use to simplify other modules
4427         * modules/cloexec (Depends-on): Add fcntl.
4428         * modules/fchdir (Depends-on): Likewise.
4429         * modules/fd-safer-flag (Depends-on): Likewise.
4430         * modules/unistd-safer (Depends-on): Likewise.
4431         * modules/dup3 (configure.ac): Set module indicator.
4432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4433         missing.
4434         * lib/fchdir.c (_gl_register_dup): Fix comment.
4435         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4436         * lib/dup-safer.c (dup_safer): Likewise.
4437         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4438         * lib/dup3.c (dup3): Likewise.
4439         * tests/test-fchdir.c (main): Enhance test.
4440         Fixes a dup_cloexec bug reported by Ondřej Vašík.
4441
4442         fcntl: port portions of fcntl to mingw
4443         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4444         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4445         replacement for mingw.
4446         * modules/fcntl (Description): Update.
4447         (Depends-on): Add dup2.
4448         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4449         * modules/fcntl-h (Makefile.am): Substitute it.
4450         * lib/fcntl.in.h (fcntl): Update declaration.
4451         (F_DUPFD, F_GETFD): New macros, when needed.
4452         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4453         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4454         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4455         we now guarantee.
4456
4457         fcntl: work around cygwin bug in F_DUPFD
4458         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4459         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4460         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4461         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4462         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4463
4464         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4465         * modules/fcntl (Files): List new files.
4466         (configure.ac): Run a test.
4467         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4468         * lib/fcntl.c (rpl_fcntl): Likewise.
4469         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4470         (gl_FCNTL_H): Always replace fcntl.h.
4471         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4472         * lib/fcntl.in.h (fcntl): Declare replacement.
4473         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4474         needed, plus a witness.
4475         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4476         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4477         * tests/test-fcntl.c: New file.
4478         * modules/fcntl-tests: Likewise.
4479
4480         binary-io: avoid potential compilation warning
4481         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4482         directives.
4483
4484         fflush: avoid compilation error on NetBSD
4485         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4486         between off_t and fpos_t, since the latter is sometimes a struct.
4487         * lib/fseeko.c (rpl_fseeko): Likewise.
4488         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4489
4490 2009-12-15  Eric Blake  <ebb9@byu.net>
4491
4492         fcntl-h, stdio, sys_ioctl: fix declarations
4493         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4494         function must not take arguments.
4495         * lib/sys_ioctl.in.h (ioctl): Likewise.
4496         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4497         (open): Add a link warning.
4498
4499 2009-12-15  Jim Meyering  <meyering@redhat.com>
4500
4501         areadlink, areadlink-with-size: relax license to LGPLv2+
4502         * modules/areadlink (License): Relax to LGPLv2+.
4503         * modules/areadlink-with-size (License): Likewise.
4504
4505 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4506             Bruno Haible  <bruno@clisp.org>
4507
4508         *printf: Fix memory leak.
4509         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4510         * lib/vfprintf.c (vfprintf): Likewise.
4511         * lib/dprintf.c (dprintf): Likewise.
4512         * lib/vdprintf.c (vdprintf): Likewise.
4513
4514 2009-12-14  Eric Blake  <ebb9@byu.net>
4515
4516         accept4: adjust module dependencies
4517         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4518
4519         utimens: one more try at avoiding compiler warning
4520         * lib/utimens.c (lutimens): Lower scope of result.
4521
4522 2009-12-13  Bruno Haible  <bruno@clisp.org>
4523
4524         Move the malloc checking from module 'list' to new module 'xlist'.
4525         * modules/xlist: New file.
4526         * lib/gl_xlist.h: New file.
4527         * lib/gl_xlist.c: New file.
4528         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4529         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4530         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4531         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4532         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4533         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4534         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4535         gl_sortedlist_nx_add): New declarations.
4536         (struct gl_list_implementation): Rename and change methods accordingly.
4537         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4538         (gl_list_nx_create): Renamed from gl_list_create.
4539         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4540         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4541         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4542         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4543         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4544         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4545         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4546         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4547         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4548         gl_list_create_empty.
4549         (gl_list_nx_create): Renamed from gl_list_create.
4550         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4551         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4552         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4553         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4554         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4555         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4556         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4557         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4558         * lib/gl_array_list.c: Don't include xalloc.h.
4559         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4560         NULL upon out-of-memory.
4561         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4562         out-of-memory.
4563         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4564         Change return type to 'int'.
4565         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4566         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4567         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4568         upon out-of-memory.
4569         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4570         upon out-of-memory.
4571         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4572         upon out-of-memory.
4573         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4574         upon out-of-memory.
4575         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4576         out-of-memory.
4577         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4578         Update.
4579         (gl_array_list_implementation): Update.
4580         * lib/gl_carray_list.c: Don't include xalloc.h.
4581         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4582         Return NULL upon out-of-memory.
4583         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4584         out-of-memory.
4585         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4586         Change return type to 'int'.
4587         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4588         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4589         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4590         upon out-of-memory.
4591         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4592         upon out-of-memory.
4593         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4594         out-of-memory.
4595         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4596         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4597         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4598         Update.
4599         (gl_carray_list_implementation): Update.
4600         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4601         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4602         gl_linked_create_empty. Return NULL upon out-of-memory.
4603         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4604         out-of-memory.
4605         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4606         Change return type to 'int'. Return -1 upon out-of-memory.
4607         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4608         out-of-memory.
4609         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4610         upon out-of-memory.
4611         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4612         upon out-of-memory.
4613         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4614         NULL upon out-of-memory.
4615         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4616         upon out-of-memory.
4617         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4618         out-of-memory.
4619         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4620         Update.
4621         * lib/gl_linked_list.c: Don't include xalloc.h.
4622         (gl_linked_list_implementation): Update.
4623         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4624         (add_to_bucket): Change return type to 'int'.
4625         (gl_linkedhash_list_implementation): Update.
4626         * lib/gl_anytree_list1.h (free_subtree): New function.
4627         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4628         gl_tree_create_empty. Return NULL upon out-of-memory.
4629         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4630         Change return type to 'int'. Return -1 upon out-of-memory.
4631         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4632         out-of-memory.
4633         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4634         (gl_tree_remove_node): New function, moved here from
4635         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4636         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4637         Update.
4638         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4639         malloc, not xmalloc. Return NULL upon out-of-memory.
4640         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4641         out-of-memory.
4642         (gl_tree_remove_node_from_tree): New function, extracted from
4643         gl_tree_remove_node.
4644         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4645         upon out-of-memory.
4646         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4647         out-of-memory.
4648         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4649         upon out-of-memory.
4650         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4651         upon out-of-memory.
4652         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4653         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4654         not xmalloc. Return NULL upon out-of-memory.
4655         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4656         out-of-memory.
4657         (gl_tree_remove_node_from_tree): New function, extracted from
4658         gl_tree_remove_node.
4659         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4660         upon out-of-memory.
4661         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4662         out-of-memory.
4663         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4664         upon out-of-memory.
4665         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4666         upon out-of-memory.
4667         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4668         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4669         gl_anytree_list1.h before gl_anyavltree_list2.h.
4670         (gl_avltree_list_implementation): Update.
4671         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4672         gl_anytree_list1.h before gl_anyavltree_list2.h.
4673         (gl_rbtree_list_implementation): Update.
4674         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4675         Change return type to 'int'. Return -1 upon out-of-memory. Use
4676         __builtin_expect.
4677         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4678         (gl_avltreehash_list_implementation): Update.
4679         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4680         (gl_rbtreehash_list_implementation): Update.
4681         * modules/array-list (Depends-on): Remove xalloc.
4682         * modules/carray-list (Depends-on): Likewise.
4683         * modules/linked-list (Depends-on): Likewise.
4684         * modules/linkedhash-list (Depends-on): Likewise.
4685         * modules/avltree-list (Depends-on): Likewise.
4686         * modules/rbtree-list (Depends-on): Likewise.
4687         * modules/avltreehash-list (Depends-on): Likewise.
4688         * modules/rbtreehash-list (Depends-on): Likewise.
4689
4690         * modules/xsublist: New file.
4691         * lib/gl_xsublist.h: New file.
4692         * lib/gl_xsublist.c: New file.
4693         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4694         (gl_sublist_nx_create): New declaration.
4695         * lib/gl_sublist.c: Don't include xalloc.h.
4696         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4697         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4698         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4699         Change return type to 'int'. Return -1 upon out-of-memory.
4700         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4701         upon out-of-memory.
4702         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4703         NULL upon out-of-memory.
4704         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4705         upon out-of-memory.
4706         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4707         NULL upon out-of-memory.
4708         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4709         NULL upon out-of-memory.
4710         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4711         upon out-of-memory.
4712         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4713         (gl_sublist_list_implementation): Update.
4714         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4715         upon out-of-memory.
4716         * modules/sublist (Depends-on): Remove xalloc.
4717
4718         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4719         * tests/test-carray_list.c: Likewise.
4720         * tests/test-linked_list.c: Likewise.
4721         * tests/test-linkedhash_list.c: Likewise.
4722         * tests/test-avltree_list.c: Likewise.
4723         * tests/test-rbtree_list.c: Likewise.
4724         * tests/test-avltreehash_list.c: Likewise.
4725         * tests/test-rbtreehash_list.c: Likewise.
4726         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4727         * modules/carray-list-tests (Makefile.am): Likewise.
4728         * modules/linked-list-tests (Makefile.am): Likewise.
4729         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4730         * modules/avltree-list-tests (Makefile.am): Likewise.
4731         * modules/rbtree-list-tests (Makefile.am): Likewise.
4732         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4733         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4734
4735         * NEWS: Mention the changes.
4736
4737         * lib/clean-temp.c: Include gl_xlist.h.
4738         * modules/clean-temp (Depends-on): Add xlist.
4739
4740         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4741         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4742
4743         * tests/test-array_oset.c: Include gl_xlist.h.
4744         * modules/array-oset-tests (Depends-on): Add xlist.
4745
4746         Reported by José E. Marchesi <jemarch@gnu.org>.
4747
4748 2009-12-13  Bruno Haible  <bruno@clisp.org>
4749
4750         Move the malloc checking from module 'oset' to new module 'xoset'.
4751         * modules/xoset: New file.
4752         * lib/gl_xoset.h: New file.
4753         * lib/gl_xoset.c: New file.
4754         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4755         declarations.
4756         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
4757         (struct gl_oset_implementation): Rename and change methods accordingly.
4758         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
4759         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4760         'int'. Mark as __warn_unused_result__.
4761         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
4762         gl_oset_create_empty.
4763         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4764         'int'.
4765         * lib/gl_array_oset.c: Don't include xalloc.h.
4766         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
4767         malloc, not xmalloc.
4768         (grow): Change return type to 'int'. Don't call xalloc_die.
4769         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
4770         to 'int'.
4771         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
4772         'int'.
4773         (gl_array_oset_implementation): Update.
4774         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
4775         gl_tree_create_empty.
4776         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
4777         'int'.
4778         * lib/gl_avltree_oset.c: Don't include xalloc.h.
4779         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4780         xmalloc.
4781         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4782         not xmalloc.
4783         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4784         xmalloc.
4785         (gl_avltree_oset_implementation): Update.
4786         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
4787         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4788         xmalloc.
4789         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4790         not xmalloc.
4791         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4792         xmalloc.
4793         (gl_rbtree_oset_implementation): Update.
4794         * modules/array-oset (Depends-on): Remove xalloc.
4795         * modules/avltree-oset (Depends-on): Likewise.
4796         * modules/rbtree-oset (Depends-on): Likewise.
4797         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
4798         * tests/test-avltree_oset.c: Likewise.
4799         * tests/test-rbtree_oset.c: Likewise.
4800         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4801         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
4802         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4803         * NEWS: Mention the change.
4804
4805 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
4806
4807         maint.mk: allow a project to override release-prep commands
4808         * top/maint.mk (alpha, beta, stable): Move release-preparatory
4809         commands into a new rule.
4810         (release-prep): New rule.
4811         (release-prep-hook): New overridable variable.
4812
4813 2009-12-13  Bruno Haible  <bruno@clisp.org>
4814
4815         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
4816
4817 2009-12-13  Jim Meyering  <meyering@redhat.com>
4818
4819         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
4820         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
4821
4822 2009-12-12  Bruno Haible  <bruno@clisp.org>
4823
4824         duplocale: Tweak.
4825         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
4826
4827 2009-12-12  Karl Berry  <karl@gnu.org>
4828
4829         * config/srclist.txt (strtoll.c): tab changes, no more sync.
4830
4831 2009-12-12  Bruno Haible  <bruno@clisp.org>
4832
4833         * m4/po.m4: Undo incorrect untabification.
4834
4835 2009-12-12  Bruno Haible  <bruno@clisp.org>
4836
4837         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
4838         * modules/c-strtod (Depends-on): Add locale.
4839         * modules/c-strtold (Depends-on): Likewise.
4840
4841 2009-12-12  Bruno Haible  <bruno@clisp.org>
4842
4843         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
4844
4845 2009-12-11  Eric Blake  <ebb9@byu.net>
4846
4847         setenv: relax requirement in light of POSIX ruling
4848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
4849         not NULL.
4850         * tests/test-setenv.c (main): Relax test.
4851         * tests/test-unsetenv.c (main): Likewise.
4852         * doc/posix-functions/setenv.texi (setenv): Document this.
4853         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4854
4855 2009-12-11  Bruno Haible  <bruno@clisp.org>
4856
4857         New module 'fd-safer-flag'.
4858         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
4859         * lib/dup-safer.c (dup_safer_flag): Remove function.
4860         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
4861         * lib/fd-safer.c (fd_safer_flag): Remove function.
4862         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
4863         * modules/cloexec (configure.ac): Drop indicator macro.
4864         * modules/fd-safer-flag: New file.
4865         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
4866         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
4867         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
4868
4869 2009-12-11  Bruno Haible  <bruno@clisp.org>
4870
4871         Tests for module 'nl_langinfo'.
4872         * modules/nl_langinfo-tests: New file.
4873         * tests/test-nl_langinfo.sh: New file.
4874         * tests/test-nl_langinfo.c: New file.
4875
4876         New module 'nl_langinfo'.
4877         * lib/nl_langinfo.c: New file.
4878         * m4/nl_langinfo.m4: New file.
4879         * modules/nl_langinfo: New file.
4880         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
4881
4882 2009-12-11  Bruno Haible  <bruno@clisp.org>
4883
4884         Tests for module 'langinfo'.
4885         * modules/langinfo-tests: New file.
4886         * tests/test-langinfo.c: New file.
4887
4888         New module 'langinfo'.
4889         * lib/langinfo.in.h: New file.
4890         * m4/langinfo_h.m4: New file.
4891         * modules/langinfo: New file.
4892         * doc/posix-headers/langinfo.texi: Mention the new module.
4893
4894 2009-12-11  Bruno Haible  <bruno@clisp.org>
4895
4896         * lib/config.charset: Untabify.
4897
4898 2009-12-11  Bruno Haible  <bruno@clisp.org>
4899
4900         * modules/unistd-safer (configure.ac): Drop indicator macro.
4901
4902 2009-12-11  Bruno Haible  <bruno@clisp.org>
4903
4904         Move pipe2-safer code to its own file.
4905         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
4906         * lib/pipe-safer.c (pipe2_safer): Remove function.
4907         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
4908         (Makefile.am): Add it to lib_SOURCES.
4909
4910 2009-12-10  Bruno Haible  <bruno@clisp.org>
4911
4912         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
4913
4914 2009-12-10  Bruno Haible  <bruno@clisp.org>
4915
4916         Declare which arguments expect non-NULL values, for GCC and clang.
4917         * build-aux/arg-nonnull.h: New file.
4918         * modules/arg-nonnull: New file.
4919         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
4920         (inet_ntop, inet_pton): Use it.
4921         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
4922         (closedir, dirfd, opendir, scandir, alphasort): Use it.
4923         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
4924         (open, openat): Use it.
4925         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
4926         (fnmatch): Use it.
4927         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
4928         (getopt, getopt_long, getopt_long_only): Use it.
4929         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
4930         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
4931         Use it.
4932         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
4933         (iconv_open): Use it.
4934         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
4935         (strtoimax, strtoumax): Use it.
4936         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
4937         (duplocale): Use it.
4938         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
4939         (frexp, frexpl): Use it.
4940         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
4941         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
4942         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
4943         (tsearch, tfind, tdelete, twalk): Use it.
4944         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
4945         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4946         sigpending): Use it.
4947         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
4948         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4949         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4950         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4951         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4952         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4953         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4954         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4955         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4956         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4957         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4958         Use it.
4959         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
4960         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
4961         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
4962         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
4963         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
4964         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
4965         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
4966         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
4967         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
4968         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
4969         strtoull, unsetenv): Use it.
4970         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
4971         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4972         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4973         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4974         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4975         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
4976         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
4977         (strcasecmp, strncasecmp): Use it.
4978         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
4979         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
4980         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
4981         rpl_setsockopt): Use it.
4982         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
4983         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
4984         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
4985         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
4986         (gettimeofday): Use it.
4987         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
4988         (times): Use it.
4989         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
4990         (uname): Use it.
4991         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
4992         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
4993         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
4994         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
4995         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
4996         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
4997         unlinkat, write): Use it.
4998         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
4999         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5000         * lib/argv-iter.h: Include arg-nonnull.h.
5001         (_ATTRIBUTE_NONNULL_): Remove macro.
5002         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5003         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5004         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5005         optimization.
5006         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5007         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5008         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5009         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5010         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5011         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5012         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5013         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5014         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5015         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5016         * modules/dirent (Depends-on): Add arg-nonnull.
5017         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5018         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5019         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5020         * modules/fnmatch (Depends-on): Add arg-nonnull.
5021         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5022         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5023         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5024         * modules/glob (Depends-on): Add arg-nonnull.
5025         (Makefile.am): Insert arg-nonnull.h into glob.h.
5026         * modules/iconv_open (Depends-on): Add arg-nonnull.
5027         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5028         * modules/inttypes (Depends-on): Add arg-nonnull.
5029         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5030         * modules/locale (Depends-on): Add arg-nonnull.
5031         (Makefile.am): Insert arg-nonnull.h into locale.h.
5032         * modules/math (Depends-on): Add arg-nonnull.
5033         (Makefile.am): Insert arg-nonnull.h into math.h.
5034         * modules/netdb (Depends-on): Add arg-nonnull.
5035         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5036         * modules/search (Depends-on): Add arg-nonnull.
5037         (Makefile.am): Insert arg-nonnull.h into search.h.
5038         * modules/signal (Depends-on): Add arg-nonnull.
5039         (Makefile.am): Insert arg-nonnull.h into signal.h.
5040         * modules/spawn (Depends-on): Add arg-nonnull.
5041         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5042         * modules/stdio (Depends-on): Add arg-nonnull.
5043         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5044         * modules/stdlib (Depends-on): Add arg-nonnull.
5045         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5046         * modules/string (Depends-on): Add arg-nonnull.
5047         (Makefile.am): Insert arg-nonnull.h into string.h.
5048         * modules/strings (Depends-on): Add arg-nonnull.
5049         (Makefile.am): Insert arg-nonnull.h into strings.h.
5050         * modules/sys_socket (Depends-on): Add arg-nonnull.
5051         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5052         * modules/sys_stat (Depends-on): Add arg-nonnull.
5053         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5054         * modules/sys_time (Depends-on): Add arg-nonnull.
5055         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5056         * modules/sys_times (Depends-on): Add arg-nonnull.
5057         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5058         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5059         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5060         * modules/time (Depends-on): Add arg-nonnull.
5061         (Makefile.am): Insert arg-nonnull.h into time.h.
5062         * modules/unistd (Depends-on): Add arg-nonnull.
5063         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5064         * modules/wchar (Depends-on): Add arg-nonnull.
5065         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5066         * modules/argv-iter (Depends-on): Add arg-nonnull.
5067         * tests/test-canonicalize.c (null_ptr): New function.
5068         (main): Use it.
5069         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5070         (main): Use it.
5071         * tests/test-memmem.c (null_ptr): New function.
5072         (main): Use it.
5073         Reported by Jim Meyering.
5074
5075 2009-12-10  Bruno Haible  <bruno@clisp.org>
5076
5077         Use spaces for indentation, not tabs.
5078         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5079         * m4/*.m4: Untabify.
5080         * build-aux/*.h: Untabify.
5081         * tests/**/*.[hc]: Untabify.
5082         * README: New section "Indent with spaces, not TABs", based on
5083         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5084         * NEWS: Mention the change.
5085
5086 2009-12-10  Bruno Haible  <bruno@clisp.org>
5087
5088         pty test: Fix link error.
5089         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5090         test_pty_LDADD.
5091
5092 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5093
5094         * modules/pty: New file.
5095         * modules/pty-tests: New file.
5096         * m4/pty.m4: New file.
5097         * tests/test-pty.c: New file.
5098         * doc/glibc-headers/pty.texi: Modified.
5099         * doc/glibc-functions/forkpty.texi: Modified.
5100         * doc/glibc-functions/openpty.texi: Modified.
5101
5102 2009-12-10  Bruno Haible  <bruno@clisp.org>
5103
5104         Avoid syntax error in C++ mode.
5105         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5106
5107 2009-12-10  Bruno Haible  <bruno@clisp.org>
5108
5109         Use sed with option -e.
5110         * gnulib-tool (func_version, func_emit_copyright_notice,
5111         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5112         option -e to sed.
5113         * modules/link-warning (Makefile.am): Likewise.
5114
5115 2009-12-10  Jim Meyering  <meyering@redhat.com>
5116
5117         mgetgroups: do not write bytes beyond end of malloc'd buffer
5118         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5119         username, we call getgroups with a one-element-shorter buffer,
5120         but still told it the length was original, max_n_groups.
5121
5122 2009-12-09  Eric Blake  <ebb9@byu.net>
5123
5124         cloexec: relax license
5125         * modules/cloexec (Maintainer): Add myself.
5126         (License): Use LGPL, not GPL.
5127
5128         link-warning: optimize generation
5129         * modules/link-warning (Makefile.am): Reduce process usage.
5130
5131 2009-12-09  Bruno Haible  <bruno@clisp.org>
5132
5133         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5134         workaround was added on 2009-11-17.
5135
5136 2009-12-09  Jim Meyering  <meyering@redhat.com>
5137             Bruno Haible  <bruno@clisp.org>
5138
5139         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5140         * modules/link-warning (Makefile.am): Make the comment-removing sed
5141         command more robust in the face of bootstrap-prepended comment lines.
5142
5143 2009-12-09  Bruno Haible  <bruno@clisp.org>
5144
5145         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5146         most one group.
5147
5148 2009-12-09  Simon Josefsson <simon@josefsson.org>
5149             Bruno Haible  <bruno@clisp.org>
5150
5151         * build-aux/link-warning.h: Add copyright notice.
5152         * modules/link-warning (Makefile.am): Generate link-warning.h from
5153         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5154         * NEWS: Mention change in link-warning module.
5155         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5156         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5157         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5158         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5159         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5160         * modules/math (Makefile.am): Add dependency to math.h.
5161         * modules/search (Makefile.am): Add dependency to search.h.
5162         * modules/signal (Makefile.am): Add dependency to signal.h.
5163         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5164         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5165         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5166         * modules/string (Makefile.am): Add dependency to string.h.
5167         * modules/strings (Makefile.am): Add dependency to strings.h.
5168         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5169         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5170         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5171         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5172         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5173         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5174         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5175         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5176         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5177
5178 2009-12-09  Bruno Haible  <bruno@clisp.org>
5179
5180         fchdir: Optimize away rpl_fstat when possible.
5181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5182         REPLACE_OPEN_DIRECTORY.
5183         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5184
5185 2009-12-09  Bruno Haible  <bruno@clisp.org>
5186
5187         * lib/fchdir.c: Update comment.
5188
5189 2009-12-09  Bruno Haible  <bruno@clisp.org>
5190
5191         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5192
5193 2009-12-08  Eric Blake  <ebb9@byu.net>
5194
5195         fchdir: avoid memory leak on re-registration.
5196         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5197
5198 2009-12-08  Jim Meyering  <meyering@redhat.com>
5199
5200         init.sh: avoid Solaris 10 /bin/sh portability problem
5201         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5202         sourced script:
5203           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5204           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5205           bar
5206         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5207         and two tests used that idiom.
5208         * tests/init.sh: Update suggested usage comments.
5209         (path_prepend_): New function, to be used in place
5210         of the --src-path=DIR option.
5211         (setup_): Move PATH-prepending code into path_prepend_.
5212         * tests/test-pread.sh: Adapt to new usage.
5213         * tests/test-xalloc-die.sh: Likewise.
5214
5215 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5216
5217         * doc/gnulib.texi (Glibc pty.h): Add.
5218         * doc/glibc-functions/forkpty.texi: Add.
5219         * doc/glibc-functions/openpty.texi: Add.
5220         Suggested by Bruno Haible.
5221
5222 2009-12-08  Eric Blake  <ebb9@byu.net>
5223
5224         fchdir: fix logic bugs
5225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5226         * tests/test-fchdir.c (main): Enhance test.
5227         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5228         is in use.
5229
5230         dup2: fix logic bugs
5231         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5232         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5233         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5234         exists.
5235         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5236
5237 2009-12-07  Eric Blake  <ebb9@byu.net>
5238
5239         unlink: fix m4 detection
5240         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5241
5242         unistd-safer: add unit test
5243         * modules/unistd-safer-tests: New file.
5244         * tests/test-dup-safer.c: Likewise.
5245         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5246         * tests/test-dup2.c (setmode): Likewise.
5247         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5248
5249         cloexec: preserve text vs. binary across dup_cloexec
5250         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5251         mode.
5252         * modules/dup2-tests (Depends-on): Add binary-io.
5253         * modules/cloexec-tests (Depends-on): Likewise.
5254         * tests/test-dup2.c (setmode, is_mode): New helpers.
5255         (main): Add tests that translation mode is preserved.
5256         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5257         Reported by Bruno Haible.
5258
5259         mgetgroups: reduce duplicate listings
5260         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5261         resulting array.
5262         * tests/test-chown.h (test_chown): Simplify client.
5263         * tests/test-lchown.h (test_lchown): Likewise.
5264
5265 2009-12-06  Bruno Haible  <bruno@clisp.org>
5266
5267         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5268         value.
5269
5270 2009-12-06  Bruno Haible  <bruno@clisp.org>
5271
5272         * lib/progname.c: Include stdio.h, stdlib.h.
5273         (set_program_name): Reject a NULL argument.
5274
5275 2009-12-05  Eric Blake  <ebb9@byu.net>
5276
5277         pipe2-safer: new module
5278         * modules/pipe2-safer: New file.
5279         * lib/unistd-safer.h (pipe2_safer): New prototype.
5280         * lib/unistd--.h (pipe2): New wrapper.
5281         * lib/pipe-safer.c (pipe2_safer): New function.
5282         * modules/pipe (Depends-on): Add pipe2-safer.
5283         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5284
5285         stdlib-safer: preserve cloexec flag for mkostemp[s]
5286         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5287         fd_safer_flag.
5288
5289         unistd-safer: allow preservation of cloexec status via flag
5290         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5291         prototypes.
5292         * lib/dup-safer.c (dup_safer_flag): New function.
5293         * lib/fd-safer.c (fd_safer_flag): Likewise.
5294         * modules/cloexec (configure.ac): Set witness.
5295
5296         test-dup2: enhance test
5297         * modules/dup2-tests (Depends-on): Add cloexec.
5298         * tests/test-dup2.c (main): Enhance test.
5299
5300         cloexec: add dup_cloexec
5301         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5302         header and comments.
5303         * lib/cloexec.c (set_cloexec_flag): Add comments.
5304         (dup_cloexec): New function, with mingw implementation borrowed
5305         from...
5306         * lib/w32spawn.h (dup_noinherit): ...here.
5307         * modules/execute (Depends-on): Add cloexec.
5308         * modules/pipe (Depends-on): Likewise.
5309         * modules/cloexec (Depends-on): Add dup2.
5310         * modules/cloexec-tests (Files): New file.
5311         * tests/test-cloexec.c: Likewise.
5312
5313         test-xalloc-die: fix test for mingw
5314         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5315         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5316         directory and .exe suffix off argv[0] output.
5317
5318         test-fseeko: fix test for mingw
5319         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5320         than undefining fseek, so test will pass on mingw.
5321
5322 2009-12-05  Bruno Haible  <bruno@clisp.org>
5323
5324         * lib/progname.h (set_program_name): Clarify specification.
5325         * lib/progname.c (set_program_name): Likewise.
5326         Reported by Jim Meyering.
5327
5328 2009-12-05  Jim Meyering  <meyering@redhat.com>
5329
5330         maint.mk: backslash-escape parens in default regexp
5331         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5332         backslash-escape the literal parentheses.
5333
5334         maint.mk: news-date-check: use grep -E
5335         * top/maint.mk (today): Define a Make variable, not a...
5336         (news-date-check): ...shell variable.
5337         (news-date-regexp): Use the Make variable.
5338         Use grep's -E option.  Change the failing diagnostic to mention
5339         the variable, $(news-date-regexp).
5340
5341 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5342
5343         maintainer-makefile: allow customization of NEWS entry format
5344         * top/maint.mk (news-date-regexp): New overridable variable.
5345         (news-date-check): Use it.
5346
5347 2009-12-04  Eric Blake  <ebb9@byu.net>
5348
5349         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5350         * lib/mgetgroups.h (xgetgroups): New prototype.
5351         * lib/mgetgroups.c (xgetgroups): New wrapper.
5352         (mgetgroups): Handle ENOSYS.
5353         * modules/mgetgroups (Depends-on): Add realloc.
5354         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5355
5356         mgetgroups: avoid argument promotion issues with -1
5357         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5358         for invalid gid_t.
5359         * tests/test-chown.h (getegid, test_chown): Likewise.
5360         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5361
5362 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5363
5364         exclude: Fix header file problems.
5365         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5366
5367 2009-12-01  Jim Meyering  <meyering@redhat.com>
5368
5369         fts: fts_open: do not let an empty string cause immediate failure
5370         This is required in support of GNU rm, for which the command
5371         "rm A '' B" must process and remove both A and B, in spite of
5372         the empty string argument.
5373         * lib/fts.c (fts_open): Do not let the presence of an empty string
5374         cause fts_open to fail immediately.  Most fts-using tools must be
5375         able to process all arguments, in order, and can be expected to
5376         diagnose such arguments themselves.
5377
5378 2009-11-30  Eric Blake  <ebb9@byu.net>
5379
5380         utimens: fix compilation error
5381         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5382         Declare variable at right scope.
5383
5384 2009-11-29  Jim Meyering  <meyering@redhat.com>
5385
5386         bootstrap: handle perl-5.11's changed --version output
5387         * build-aux/bootstrap (get_version): Handle perl separately,
5388         since perl-5.11's --version output is different.
5389
5390 2009-11-28  Jim Meyering  <meyering@redhat.com>
5391
5392         userspec: depend on the inttostr module, too
5393         * modules/userspec (Depends-on): Add inttostr.
5394
5395         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5396         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5397         number of MAXUID when it evaluates to (uid_t) -1.
5398         Likewise for group ID.  Reported by Matt McCutchen in
5399         <http://savannah.gnu.org/bugs/?28113>
5400
5401         userspec: reformat to use spaces, not TABs
5402         * lib/userspec.c: Expand TABs to spaces.
5403         Add Emacs' "indent-tabs-mode: nil" hint.
5404
5405 2009-11-27  Eric Blake  <ebb9@byu.net>
5406
5407         getopt-gnu: flush out another BSD bug
5408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5409         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5410         flush out BSD bug.
5411         * tests/test-getopt.h (test_getopt): End lists with NULL.
5412         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5413         (test_getopt_long_posix): Enhance test.
5414         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5415         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5416         getopt-gnu.
5417         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5418         Likewise.
5419
5420 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5421
5422         * modules/idpriv-droptemp-tests (Notice): Fix text.
5423
5424 2009-11-27  Jim Meyering  <meyering@redhat.com>
5425
5426         test-xalloc-die: avoid spurious failure due to libtool argv difference
5427         In a libtool-enabled project, this test would fail due to a difference
5428         in the emitted program name, e.g.,
5429         -test-xalloc-die: memory exhausted
5430         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5431         Use program to avoid that.
5432         * modules/xalloc-die-tests (Depends-on): Add progname.
5433         * tests/test-xalloc-die.c: Include progname.h".
5434         (program_name): Remove decl.
5435         (main): Call set_program_name.
5436         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5437
5438 2009-11-26  Richard Jones  <rjones@redhat.com>
5439
5440         w32sock: leave win32 error in place.
5441         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5442
5443 2009-11-26  Eric Blake  <ebb9@byu.net>
5444
5445         init.sh: suggest to use skip_ and fail_ functions in comments
5446         * tests/init.sh: Add a sentence.
5447
5448 2009-11-25  Bruno Haible  <bruno@clisp.org>
5449
5450         init.sh: add documentation in comments
5451         * tests/init.sh: Add some developer and user documentation.
5452
5453 2009-11-26  Jim Meyering  <meyering@redhat.com>
5454
5455         init.sh: accommodate even those who specify bogus srcdir manually
5456         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5457         configure-time tests to be sanitized, so that there is no need to
5458         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5459         (with no double quotes) suffices.  However, since tests may be
5460         invoked manually, and since you may explicitly set srcdir to the
5461         name of a directory containing spaces, do quote its uses here.
5462         * tests/test-pread.sh: Likewise.
5463         Suggested by Bruno Haible.
5464
5465         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5466         * tests/test-pread.sh: Write no data into the pipe, because
5467         test-pread actually reads none.  This avoids a diagnostic,
5468         "bash: echo: write error: Broken pipe", that arises in the unusual
5469         event something is ignoring SIGPIPE, and might be interpreted
5470         as some sort of failure.  Reported by Bruno Haible.
5471
5472 2009-11-25  Jim Meyering  <meyering@redhat.com>
5473
5474         test-pread: cover failure with ESPIPE and EINVAL
5475         * tests/test-pread.c (main): Test for failure, too.
5476         * tests/test-pread.sh: Invoke with stdin on a pipe.
5477         Suggested by Eric Blake.
5478
5479         pread: improvement and fix
5480         * modules/pread (Depends-on): Depend on lseek, for portability to
5481         e.g., mingw.  Suggested by Eric Blake.
5482         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5483
5484         unistd.in.h: correct declaration of pread
5485         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5486         Reported by Richard W.M. Jones.
5487
5488         test-pread.sh: distribute the test script
5489         * modules/pread-tests (Files): Include test-pread.sh.
5490
5491         test-pread.sh: clean up
5492         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5493         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5494         That is unnecessary, since it's always ".".
5495         Suggestion from Eric Blake.
5496
5497         test-pread.sh: make executable
5498         * tests/test-pread.sh: Set executable bit.
5499         Reported by Eric Blake.
5500
5501         correct typo in test-pread.sh
5502         * tests/test-pread.sh: Add #! line.
5503
5504         test pread
5505         * tests/test-pread.c: New file.
5506         * tests/test-pread.sh: Likewise.
5507         * modules/pread-tests: Likewise.
5508
5509         pread: new module
5510         * modules/pread: New file.
5511         * lib/unistd.in.h (pread): Define/declare.
5512         * lib/pread.c (pread): New file.
5513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5514         * modules/unistd (Makefile.am): Substitute witnesses.
5515         * doc/posix-functions/pread.texi (pread): Update.
5516         * MODULES.html.sh: Add pread.
5517
5518 2009-11-25  Jim Meyering  <meyering@redhat.com>
5519
5520         tests/init.sh: new file to be used via most *.sh tests
5521         * tests/init.sh: New file.
5522
5523 2009-11-25  Eric Blake  <ebb9@byu.net>
5524
5525         utimens: work around older Linux failure with symlinks
5526         * lib/utimens.c (lutimensat_works_really): New variable.
5527         (fdutimens, lutimens): Use it to manage kernels that support
5528         nanosecond times on files, but not on symlinks.
5529         Reported by Ondřej Vašík.
5530
5531         utimes: fix configure grammar
5532         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5533
5534 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5535
5536         regex: Fix fastmap for multibyte character ranges.
5537         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5538         characters when a multibyte character range is included.
5539
5540 2009-11-22  Andy Wingo  <wingo@pobox.com>
5541
5542         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5543         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5544
5545 2009-11-24  Bruno Haible  <bruno@clisp.org>
5546
5547         doc: Most *_l functions exist in MacOS X 10.5.
5548         * doc/posix-functions/duplocale.texi: Update platforms list.
5549         * doc/posix-functions/freelocale.texi: Likewise.
5550         * doc/posix-functions/newlocale.texi: Likewise.
5551         * doc/posix-functions/uselocale.texi: Likewise.
5552         * doc/posix-functions/isalnum_l.texi: Likewise.
5553         * doc/posix-functions/isalpha_l.texi: Likewise.
5554         * doc/posix-functions/isblank_l.texi: Likewise.
5555         * doc/posix-functions/iscntrl_l.texi: Likewise.
5556         * doc/posix-functions/isdigit_l.texi: Likewise.
5557         * doc/posix-functions/isgraph_l.texi: Likewise.
5558         * doc/posix-functions/islower_l.texi: Likewise.
5559         * doc/posix-functions/isprint_l.texi: Likewise.
5560         * doc/posix-functions/ispunct_l.texi: Likewise.
5561         * doc/posix-functions/isspace_l.texi: Likewise.
5562         * doc/posix-functions/isupper_l.texi: Likewise.
5563         * doc/posix-functions/iswalnum_l.texi: Likewise.
5564         * doc/posix-functions/iswalpha_l.texi: Likewise.
5565         * doc/posix-functions/iswblank_l.texi: Likewise.
5566         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5567         * doc/posix-functions/iswctype_l.texi: Likewise.
5568         * doc/posix-functions/iswdigit_l.texi: Likewise.
5569         * doc/posix-functions/iswgraph_l.texi: Likewise.
5570         * doc/posix-functions/iswlower_l.texi: Likewise.
5571         * doc/posix-functions/iswprint_l.texi: Likewise.
5572         * doc/posix-functions/iswpunct_l.texi: Likewise.
5573         * doc/posix-functions/iswspace_l.texi: Likewise.
5574         * doc/posix-functions/iswupper_l.texi: Likewise.
5575         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5576         * doc/posix-functions/isxdigit_l.texi: Likewise.
5577         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5578         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5579         * doc/posix-functions/strcoll_l.texi: Likewise.
5580         * doc/posix-functions/strfmon_l.texi: Likewise.
5581         * doc/posix-functions/strftime_l.texi: Likewise.
5582         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5583         * doc/posix-functions/strxfrm_l.texi: Likewise.
5584         * doc/posix-functions/tolower_l.texi: Likewise.
5585         * doc/posix-functions/toupper_l.texi: Likewise.
5586         * doc/posix-functions/towctrans_l.texi: Likewise.
5587         * doc/posix-functions/towlower_l.texi: Likewise.
5588         * doc/posix-functions/towupper_l.texi: Likewise.
5589         * doc/posix-functions/wcscoll_l.texi: Likewise.
5590         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5591         * doc/posix-functions/wctrans_l.texi: Likewise.
5592         * doc/posix-functions/wctype_l.texi: Likewise.
5593         * doc/glibc-functions/strptime_l.texi: Likewise.
5594         * doc/glibc-functions/strtod_l.texi: Likewise.
5595         * doc/glibc-functions/strtof_l.texi: Likewise.
5596         * doc/glibc-functions/strtol_l.texi: Likewise.
5597         * doc/glibc-functions/strtold_l.texi: Likewise.
5598         * doc/glibc-functions/strtoll_l.texi: Likewise.
5599         * doc/glibc-functions/strtoul_l.texi: Likewise.
5600         * doc/glibc-functions/strtoull_l.texi: Likewise.
5601         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5602         * doc/glibc-functions/wcstod_l.texi: Likewise.
5603         * doc/glibc-functions/wcstof_l.texi: Likewise.
5604         * doc/glibc-functions/wcstol_l.texi: Likewise.
5605         * doc/glibc-functions/wcstold_l.texi: Likewise.
5606         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5607         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5608         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5609
5610 2009-11-24  Bruno Haible  <bruno@clisp.org>
5611
5612         duplocale: Fix logic bug.
5613         * lib/duplocale.c: Don't include <langinfo.h>.
5614         (_NL_LOCALE_NAME): Remove macro.
5615         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5616         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5617
5618 2009-11-23  Jim Meyering  <meyering@redhat.com>
5619
5620         test-update-copyright: don't hard-code /usr/bin/perl
5621         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5622         perl to print the current year.  Gilles Espinasse reported that
5623         the replaced use of perl was hard-coded as /usr/bin/perl.
5624
5625 2009-11-23  Bruno Haible  <bruno@clisp.org>
5626
5627         duplocale: Add support for glibc 2.3.x.
5628         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5629
5630 2009-11-22  Bruno Haible  <bruno@clisp.org>
5631
5632         vasnprintf: Tiny optimization.
5633         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5634         MacOS X.
5635
5636 2009-11-22  Bruno Haible  <bruno@clisp.org>
5637
5638         Tests for module 'duplocale'.
5639         * modules/duplocale-tests: New file.
5640         * tests/test-duplocale.c: New file.
5641
5642         New module 'duplocale'.
5643         * m4/duplocale.m4: New file.
5644         * lib/locale.in.h (duplocale): New declaration.
5645         * lib/duplocale.c: New file.
5646         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5647         gl_LOCALE_H_DEFAULTS): New macros.
5648         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5649         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5650         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5651         REPLACE_DUPLOCALE.
5652         * modules/duplocale: New file.
5653         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5654
5655 2009-11-22  Bruno Haible  <bruno@clisp.org>
5656
5657         * modules/locale-tests (configure.ac): Test for newlocale function.
5658         * tests/test-locale.c: When the system has extended locale functions,
5659         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5660
5661         locale: Make locale_t available when possible.
5662         * lib/locale.in.h: Include <xlocale.h> when it exists.
5663         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5664         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5665         * modules/locale (Depends-on): Add extensions.
5666         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5667         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5668
5669 2009-11-22  Bruno Haible  <bruno@clisp.org>
5670
5671         Add comments.
5672         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5673         invocation.
5674         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5675         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5676         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5677
5678 2009-11-22  Bruno Haible  <bruno@clisp.org>
5679
5680         error: account for the possibility of freopen (stdout).
5681         * lib/error.c: Include <unistd.h>.
5682         (flush_stdout): New function, extracted from error and error_at_line.
5683         Determine stdout's fd dynamically.
5684         (error, error_at_line): Invoke flush_stdout.
5685         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5686         * modules/error (Depends-on): Add unistd.
5687
5688 2009-11-22  Bruno Haible  <bruno@clisp.org>
5689
5690         diffseq: Add comment.
5691         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5692
5693 2009-11-22  Jim Meyering  <meyering@redhat.com>
5694
5695         c-stack: avoid defining an unused static function
5696         * lib/c-stack.c (find_stack_direction): Do not define this function
5697         when it will not be used.
5698
5699         diffseq: avoid spurious gcc warnings
5700         * lib/diffseq.h (IF_LINT2): Define.
5701         (compareseq): Use it to initialize two members of "part".
5702         This avoids two used-uninitialized warnings.
5703
5704 2009-11-21  Jim Meyering  <meyering@redhat.com>
5705
5706         c-stack: avoid "ignoring return value of `write'" warning
5707         * lib/c-stack.c: Include "ignore-value.h".
5708         (die): Explicitly ignore each write return value.
5709         * modules/c-stack (Depends-on): Add ignore-value.
5710
5711 2009-11-21  Bruno Haible  <bruno@clisp.org>
5712
5713         diffseq: reduce scope of variable 'best'.
5714         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5715         variable, earlier used for two different purposes.
5716
5717 2009-11-21  Jim Meyering  <meyering@redhat.com>
5718
5719         diffseq: remove useless assignment to "best"
5720         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5721         assignment.  At that point "best" is already guaranteed to be zero.
5722
5723 2009-11-20  Eric Blake  <ebb9@byu.net>
5724
5725         build: mention ftp redirector in release announcements
5726         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5727         values that used to come from cfg.mk; mention FTP redirect URL.
5728         * build-aux/announce-gen: Mention the mirror list.
5729         Suggested by Karl Berry.
5730
5731         nanosleep: improve port to mingw
5732         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5733         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5734         LIB_NANOSLEEP, but only when needed.
5735         * modules/select (Link): Document LIBSOCKET.
5736         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5737         enough.
5738
5739         nanosleep: work around cygwin bug
5740         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5741         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
5742         bug.
5743         (getnow): Delete, not needed.
5744         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5745         LIB_CLOCK_GETTIME.
5746         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
5747         clock-time, gettime.
5748         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5749         bug.
5750         * modules/nanosleep-tests: New test.
5751         * tests/test-nanosleep.c: New file.
5752
5753         sleep: work around cygwin bug
5754         * lib/sleep.c (rpl_sleep): Work around the bug.
5755         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5756         (gl_PREREQ_SLEEP): Delete unused macro.
5757         * modules/sleep (Depends-on): Add verify.
5758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5759         * modules/unistd (Makefile.am): Substitute witness.
5760         * lib/unistd.in.h (sleep): Update prototype.
5761         * doc/posix-functions/sleep.texi (sleep): Document the bug.
5762         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
5763         * modules/sleep-tests (Depends-on): Check for alarm.
5764
5765 2009-11-20  Jim Meyering  <meyering@redhat.com>
5766
5767         maint.mk: improve sc_prohibit_magic_number_exit
5768         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
5769         so it does not match uses like System.exit(1).
5770         Add comments showing how to correct all offenders.
5771
5772 2009-11-19  Eric Blake  <ebb9@byu.net>
5773
5774         xalloc-die-tests: add missing library
5775         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
5776
5777         test-xvasprintf: silence compiler warnings
5778         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
5779         empty string from gcc.
5780
5781 2009-11-19  Jim Meyering  <meyering@redhat.com>
5782
5783         xfreopen: new module, from coreutils
5784         * modules/xfreopen: New module.
5785         * lib/xfreopen.c: New file.
5786         * lib/xfreopen.h: New file.
5787         * MODULES.html.sh (File stream based Input/Output"): Add it.
5788
5789 2009-11-19  Eric Blake  <ebb9@byu.net>
5790
5791         manywarnings: depend on warnings
5792         * modules/manywarnings (Depends-on): Add warnings.
5793
5794         build: avoid compiler warnings
5795         * lib/select.c (rpl_select): Delete unused variable.
5796         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
5797
5798 2009-11-18  Eric Blake  <ebb9@byu.net>
5799
5800         tests: avoid false negative with --with-packager
5801         * tests/test-version-etc.sh: Discard packager information.
5802         * tests/test-argp-version-etc-1.sh: Likewise.
5803         Reported by Mike Frysinger.
5804
5805         utimens: fix regression on Solaris
5806         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
5807         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
5808         can only change fd timestamps via futimesat.  Instead, use an
5809         additional witness macro to avoid BSD bug.
5810         Reported by Jim Meyering.
5811
5812 2009-11-17  Eric Blake  <ebb9@byu.net>
5813
5814         usleep: use it to simplify tests
5815         * modules/stat-time-tests (Depends-on): Add usleep.
5816         (configure.ac): Drop usleep check.
5817         * modules/chown-tests (Depends-on, configure.ac): Likewise.
5818         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
5819         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
5820         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
5821         * modules/openat-tests (Depends-on, configure.ac): Likewise.
5822         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
5823         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
5824         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
5825         Likewise.
5826         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
5827         * tests/test-lchown.h (nap): Likewise.
5828         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
5829         * tests/test-stat-time.c (nap): Likewise.
5830         * tests/test-utimens-common.h (nap): Update comments.
5831
5832         usleep: new module
5833         * modules/usleep: New file.
5834         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5835         * lib/usleep.c (usleep): Likewise.
5836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5837         * modules/unistd (Makefile.am): Substitute witnesses.
5838         * lib/unistd.in.h (usleep): Add declaration.
5839         * doc/pastposix-functions/usleep.texi (usleep): Document this.
5840         * MODULES.html.sh (Date and time): Likewise.
5841         * modules/usleep-tests (Depends-on): New test.
5842         * tests/test-usleep.c: New file.
5843
5844         chown: work around OpenBSD bug
5845         * lib/chown.c (rpl_chown): Work around the bug.
5846         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
5847         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
5848         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
5849         * modules/chown (Depends-on): Add stdbool.
5850         * modules/lchown (Depends-on): Likewise.
5851         * doc/posix-functions/chown.texi (chown): Document the bug.
5852         * doc/posix-functions/lchown.texi (lchown): Likewise.
5853         * tests/test-lchown.h (test_chown): Relax test.
5854
5855         mkstemp: avoid conflict with C++ keyword template
5856         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
5857         * lib/mkostemp.c (mkostemp): Likewise.
5858         * lib/mkostemps.c (mkostemps): Likewise.
5859         * lib/mkstemp.c (mkstemp): Likewise.
5860         * lib/mkstemps.c (mkstemps): Likewise.
5861
5862         xalloc-die-tests: optimize
5863         * tests/test-xalloc-die.sh: Reduce number of processes.
5864
5865 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5866
5867         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
5868         patch from ludo@gnu.org (Ludovic Courtès).
5869
5870 2009-11-17  Jim Meyering  <meyering@redhat.com>
5871
5872         version-etc: use proper license string
5873         * modules/version-etc (License): Use LGPL, not LGPLv3+.
5874         * modules/version-etc-fsf: Likewise.
5875
5876 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5877
5878         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
5879         printed to stdout.  Deal with EOL differences.
5880
5881 2009-11-17  Eric Blake  <ebb9@byu.net>
5882
5883         unsetenv: work around Solaris bug
5884         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
5885         * lib/unsetenv.c (rpl_unsetenv): Work around it.
5886         Reported by Jim Meyering.
5887
5888         vasnprintf: avoid compiler warnings
5889         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
5890         variables.
5891         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
5892
5893 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5894
5895         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
5896         settings since xalloc-die is no longer the self test,
5897         xalloc-die.sh is.
5898
5899 2009-11-17  Jim Meyering  <meyering@redhat.com>
5900
5901         test-xalloc-die.sh: make the code agree with the commit log
5902         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
5903         at the end, just in case you happen to have a test-xalloc-die
5904         program in some other PATH directory.
5905
5906         test-xalloc-die.sh: fix a portability bug
5907         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
5908         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
5909         Otherwise, argv[0] (as often seen in diagnostics) would be too
5910         system-dependent, sometimes with, and sometimes without the leading "./".
5911
5912         version-etc-fsf: relax license to LGPLv3+
5913         * modules/version-etc-fsf (License): Relax license.
5914
5915 2009-11-16  Eric Blake  <ebb9@byu.net>
5916
5917         xalloc-die-tests: avoid printing null pointer
5918         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
5919         shell script.
5920         * tests/test-xalloc-die.c (program_name): Declare.
5921         * tests/test-xalloc-die.sh (tmpfiles): New file.
5922
5923         setenv, unsetenv: work around various bugs
5924         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
5925         (setenv) [HAVE_SETENV]: Work around bugs.
5926         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
5927         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
5928         for bugs.
5929         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
5930         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
5931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
5932         * modules/stdlib (Makefile.am): Update substitutions.
5933         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
5934         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
5935         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5936         * modules/setenv-tests: New test.
5937         * modules/unsetenv-tests: Likewise.
5938         * tests/test-setenv.c: New file.
5939         * tests/test-unsetenv.c: Likewise.
5940
5941 2009-11-16  Jim Meyering  <meyering@redhat.com>
5942
5943         version-etc: relax license to LGPLv3+
5944         * modules/version-etc (License): Relax license.
5945
5946         better AC_REQUIRE expanded-before-required-warning avoidance
5947         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
5948         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
5949         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
5950         which is no longer needed.
5951
5952 2009-11-16  Eric Blake  <ebb9@byu.net>
5953
5954         test-freading: clean up temporary file
5955         * tests/test-freading.c (main): Remove file on success, and use
5956         ASSERT more liberally.
5957         Reported by Jim Meyering.
5958
5959 2009-11-16  Jim Meyering  <meyering@redhat.com>
5960
5961         avoid new AC_REQUIRE expanded-before-required warnings
5962         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
5963         merely using it.
5964         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
5965         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
5966
5967 2009-11-15  Simon Josefsson  <simon@josefsson.org>
5968
5969         * tests/test-xalloc-die.c: New file.
5970         * modules/xalloc-die-tests: New file.
5971         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
5972         XFAIL_TESTS so it can be appended by modules.
5973
5974 2009-11-15  Simon Josefsson  <simon@josefsson.org>
5975
5976         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
5977         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
5978
5979 2009-11-14  Eric Blake  <ebb9@byu.net>
5980
5981         fnmatch: avoid compiler warning
5982         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
5983         to silence compiler warning about mismatch signedness in ?:.
5984         Reported by Robert Millan.
5985
5986         intprops: add double-inclusion guard
5987         * lib/intprops.h: Allow idempotent includes.
5988         Suggested by Bruce Korb.
5989
5990         openat: detect Solaris fchownat bug
5991         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
5992         penalizing glibc chownat when only lchownat is broken.
5993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
5994         trailing slash bugs.
5995         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
5996         * modules/openat-tests (Files): Include more files.
5997         (Depends-on): Add mgetgroups, sleep, stat-time.
5998         (configure.ac): Add additional checks.
5999         (Makefile.am): Build new test.
6000         * tests/test-fchownat.c: New file.
6001
6002         lchown: detect Solaris and FreeBSD bug
6003         * lib/lchown.c (rpl_lchown): Work around bug.
6004         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6006         * modules/unistd (Makefile.am): Populate it.
6007         * lib/unistd.in.h (lchown): Update declaration.
6008         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6009         * modules/lchown-tests: New file.
6010         * tests/test-lchown.h (test_lchown): Likewise.
6011         * tests/test-lchown.c (main): Likewise.
6012
6013         chown: detect Solaris and FreeBSD bug
6014         * lib/chown.c (rpl_chown): Work around bug.
6015         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6016         (gl_PREREQ_CHOWN): Delete.
6017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6018         * modules/unistd (Makefile.am): Populate it.
6019         * lib/unistd.in.h (chown): Update declaration.
6020         * lib/lchown.c (chown): Update client.
6021         * modules/lchown (Depends-on): Add lstat.
6022         * doc/posix-functions/chown.texi (chown): Document the bug.
6023         * doc/posix-functions/getgroups.texi (getgroups): Document
6024         getgroups pitfall.
6025         * modules/chown-tests: New file.
6026         * tests/test-chown.h (test_chown): Likewise.
6027         * tests/test-chown.c (main): Likewise.
6028
6029 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6030
6031         gnulib-tool: correctly detect absence of m4 directories
6032         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6033
6034 2009-11-14  Jim Meyering  <meyering@redhat.com>
6035
6036         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6037         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6038
6039 2009-11-14  John W. Eaton  <jwe@gnu.org>
6040
6041         strftime.h: wrap funtion declaration in extern "C" block
6042         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6043
6044 2009-11-13  Eric Blake  <ebb9@byu.net>
6045
6046         getgroups: avoid compiler warning
6047         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6048
6049         getgroups: work around FreeBSD bug
6050         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6051         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6052         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6053         * tests/test-getgroups.c (main): Fix buffer overrun.
6054
6055         getgroups: avoid compilation failure
6056         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6057         * modules/getgroups (Depends-on): Add stdint.
6058
6059 2009-11-13  Jim Meyering  <meyering@redhat.com>
6060
6061         test-getgroups: avoid compilation failure
6062         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6063
6064 2009-11-13  Eric Blake  <ebb9@byu.net>
6065
6066         mgetgroups: new module, taken from coreutils
6067         * modules/mgetgroups: New file.
6068         * lib/mgetgroups.h: Likewise.
6069         * lib/mgetgroups.c (mgetgroups): Likewise.
6070         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6071         * MODULES.html.sh (Users and groups): Mention it.
6072
6073         getgroups: don't expose GETGROUPS_T to user
6074         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6075         an element at a time if GETGROUPS_T is wrong size.
6076         * lib/getugroups.h (getugroups): Change signature.
6077         * lib/unistd.in.h (getgroups): Likewise.
6078         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6079         signature needs fixing.
6080         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6081         AC_TYPE_GETGROUPS.
6082         * modules/group-member (Depends-on): Add getgroups.
6083         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6084         (group_member): Rely on getgroups replacement.
6085         * lib/getugroups.c (getugroups): Use gid_t.
6086         * tests/test-getgroups.c (main): Likewise.
6087         * NEWS: Mention the signature change.
6088         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6089         problem with signature.
6090         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6091         GETGROUPS_T is still useful for setgroups.
6092
6093         getgroups, getugroups: provide stubs for mingw
6094         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6095         * lib/getugroups.c (getugroups): Likewise.
6096         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6097         function.  Modernize replacement scheme.
6098         (gl_PREREQ_GETGROUPS): Delete.
6099         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6100         * modules/getgroups (configure.ac): Declare witness.
6101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6102         * modules/unistd (Depends-on): Substitute witness.
6103         * lib/unistd.in.h (getgroups): Declare replacement.
6104
6105         getgroups: avoid calling exit
6106         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6107         drop xalloc.
6108         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6109         dependencies.
6110         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6111         exiting, in the rare case of malloc failure.
6112
6113         getgroups: fix logic error
6114         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6115         has more than 20 groups.
6116         * modules/getgroups-tests: New test.
6117         * tests/test-getgroups.c: New file.
6118
6119 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6120
6121         * tests/test-base64.c: Improve.
6122
6123 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6124
6125         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6126         Blake <ebb9@byu.net>.
6127
6128 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6129
6130         * tests/test-xvasprintf.c: Add %s%s related checks.
6131
6132 2009-11-12  Eric Blake  <ebb9@byu.net>
6133
6134         version-etc: match standards.texi style
6135         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6136         and use <> only for URLs.
6137
6138 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6139
6140         fts: do not fail on a submount during traversal
6141         * lib/fts.c (fts_build): Read the stat info again after opening
6142         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6143         Original report at http://bugzilla.redhat.com/501848.
6144
6145 2009-11-12  Jim Meyering  <meyering@redhat.com>
6146
6147         bootstrap: sync from coreutils
6148         * build-aux/bootstrap (bootstrap_epilogue): New function.
6149         Use git_modules_config in one more place.  This make bootstrap's
6150         --gnulib-srcdir option more useful for testing.
6151
6152         bootstrap: generalize autoheader check
6153         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6154         AC_CONFIG_HEADERS.
6155
6156 2009-11-11  Eric Blake  <ebb9@byu.net>
6157
6158         mkfifoat: use new modules for Solaris and BSD bugs
6159         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6160         * lib/mkfifoat.c (mknodat): Split...
6161         * lib/mknodat.c (mknodat): ...into new file.
6162         * modules/mkfifoat (Files): Ship new file.
6163         (Depends-on): Add mkfifo, mknod.
6164         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6165         (Depends-on): Add symlink.
6166         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6167         redundant with test_mkfifo.h.
6168         (do_mkfifoat, do_mknodat): New helpers.
6169
6170         mknod: new module
6171         * modules/mknod: New file.
6172         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6173         * lib/mknod.c (mknod): Likewise.
6174         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6175         defaults.
6176         * modules/sys_stat (Makefile.am): Substitute them.
6177         * lib/sys_stat.in.h (mknod): Declare replacement.
6178         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6179         Document it.
6180         * doc/posix-functions/mknod.texi (mknod): Likewise.
6181         * modules/mknod-tests: New test.
6182         * tests/test-mknod.c: Likewise.
6183
6184         mkfifo: new module
6185         * modules/mkfifo: New file.
6186         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6187         * lib/mkfifo.c (mkfifo): Likewise.
6188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6189         defaults.
6190         * modules/sys_stat (Makefile.am): Substitute them.
6191         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6192         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6193         Document it.
6194         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6195         * modules/mkfifo-tests: New test.
6196         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6197         from test-mkfifoat.c.
6198         * tests/test-mkfifo.c: New file.
6199
6200         readlink: detect FreeBSD bug
6201         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6202         slash on symlink.
6203         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6204         * tests/test-readlink.h (test_readlink): Enhance test.
6205
6206         symlink: detect FreeBSD bug
6207         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6208         slash on symlink.
6209         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6210         * tests/test-symlink.h (test_symlink): Enhance test.
6211
6212 2009-11-10  Eric Blake  <ebb9@byu.net>
6213
6214         link: detect FreeBSD bug
6215         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6216         symlink.
6217         * doc/posix-functions/link.texi (link): Document the bug.
6218         * tests/test-link.h (test_link): Enhance test.
6219         * tests/test-linkat.c (main): Update caller.
6220
6221         unlink, remove: detect FreeBSD bug
6222         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6223         slash on symlink.
6224         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6225         * doc/posix-functions/remove.texi (remove): Likewise.
6226         * tests/test-unlink.h (test_unlink): Enhance test.
6227         * tests/test-remove.c (main): Likewise.
6228
6229 2009-11-09  Eric Blake  <ebb9@byu.net>
6230
6231         rename: detect FreeBSD bug
6232         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6233         slash on symlink.
6234         * modules/renameat-tests (Depends-on): Add filenamecat.
6235         * tests/test-rename.h (test_rename): Allow one more errno.
6236         * tests/test-renameat.c (main): Likewise.
6237         * doc/posix-functions/rename.texi (rename): Document the bug.
6238
6239         open: detect FreeBSD bug
6240         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6241         symlink.
6242         * doc/posix-functions/open.texi (open): Document the bug.
6243         * doc/posix-functions/utimes.texi (utimes): Likewise.
6244         * tests/test-open.h (test_open): Add parameters, and test symlink
6245         handling.
6246         * tests/test-open.c (main): Adjust caller.
6247         * tests/test-fcntl-safer.c (main): Likewise.
6248         * modules/open-tests (Depends-on): Add stdbool, symlink.
6249         * modules/fcntl-safer-tests (Depends-on): Likewise.
6250         * tests/test-openat.c (main): Add test-open tests.
6251
6252         stat: detect FreeBSD bug
6253         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6254         symlink.
6255         * doc/posix-functions/stat.texi (stat): Document the bug.
6256         * tests/test-stat.h (test_stat_func): Add argument.
6257         * tests/test-stat.c (main): Adjust caller.
6258         * tests/test-fstatat.c (main): Likewise.
6259         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6260         Reported by Jim Meyering.
6261
6262 2009-11-09  James Youngman  <jay@gnu.org>
6263
6264         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6265         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6266
6267 2009-11-08  Jim Meyering  <meyering@redhat.com>
6268
6269         utimens: remove invalid futimesat call
6270         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6271         It used the file descriptor of the target file as the DIR_FD
6272         parameter and NULL as the file name.  That caused failure with
6273         errno == EFAULT on FreeBSD-8.0-rc2
6274
6275 2009-11-07  Eric Blake  <ebb9@byu.net>
6276
6277         fflush, freadseek: use fseeko, not fseek
6278         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6279         (clear_ungetc_buffer): Avoid potential problems on large files.
6280         * lib/freadseek.c (freadseek): Likewise.
6281         * modules/freadseek (Depends-on): Add fseeko.
6282         * modules/fseek (configure.ac): Set a witness.
6283         * tests/test-fflush.c (main): Use fseeko.
6284         * tests/test-fpurge.c (fseek): Disable link warning.
6285         * tests/test-freadable.c (fseek): Likewise.
6286         * tests/test-freading.c (fseek): Likewise.
6287         * tests/test-fseeko.c (fseek): Likewise.
6288         * tests/test-ftell.c (fseek): Likewise.
6289         * tests/test-ftello.c (fseek): Likewise.
6290         * tests/test-fwritable.c (fseek): Likewise.
6291         * tests/test-fwriting.c (fseek): Likewise.
6292
6293 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6294
6295         * modules/memchr (Depends-on): Drop getpagesize dependency.
6296
6297 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6298
6299         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6300         Reported by Ludovic Courtès.
6301         * build-aux/pmccabe2html: Improve example usage.
6302         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6303
6304 2009-11-06  Jim Meyering  <meyering@redhat.com>
6305
6306         do-release-commit-and-tag: New module.
6307         Automate the release-commit and tag process.
6308         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6309         * modules/do-release-commit-and-tag: New file.
6310         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6311
6312 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6313
6314         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6315         because test-select.c uses inet_pton.
6316
6317 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6318
6319         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6320         GETADDRINFO_LIB.  Bump serial number.
6321         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6322         Suggested by Eric Blake <ebb9@byu.net>.
6323
6324 2009-11-05  Eric Blake  <ebb9@byu.net>
6325
6326         strtod: detect darwin bug
6327         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6328         Reported by Leo Davis.
6329
6330         freopen-safer: new module
6331         * modules/freopen-safer: New module.
6332         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6333         * lib/freopen-safer.c (freopen_safer): New file.
6334         * lib/stdio-safer.h (freopen_safer): New declaration.
6335         * lib/stdio--.h (freopen): New override.
6336         * MODULES.html.sh (File stream based Input/Output): Mention it.
6337         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6338         freopen-safer module.
6339         * doc/posix-functions/stderr.texi (stderr): Likewise.
6340         * doc/posix-functions/stdin.texi (stdin): Likewise.
6341         * doc/posix-functions/stdout.texi (stdout): Likewise.
6342         * modules/freopen-safer-tests: New test.
6343         * tests/test-reopen-safer.c: New file.
6344
6345 2009-11-05  Jim Meyering  <meyering@redhat.com>
6346
6347         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6348         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6349
6350 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6351
6352         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6353
6354 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6355
6356         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6357
6358 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6359
6360         Fix link error.
6361         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6362         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6363
6364 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6365
6366         * tests/test-func.c: Also test value of __func__.
6367
6368 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6369
6370         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6371         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6372
6373 2009-11-05  Bruno Haible  <bruno@clisp.org>
6374
6375         Fix link error.
6376         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6377         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6378         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6379
6380 2009-11-05  Bruno Haible  <bruno@clisp.org>
6381
6382         Tests for module 'inet_pton'.
6383         * modules/inet_pton-tests: New file.
6384         * tests/test-inet_pton.c: New file.
6385
6386 2009-11-05  Bruno Haible  <bruno@clisp.org>
6387
6388         Tests for module 'inet_ntop'.
6389         * modules/inet_ntop-tests: New file.
6390         * tests/test-inet_ntop.c: New file.
6391
6392 2009-11-04  Eric Blake  <ebb9@byu.net>
6393
6394         stdlib-safer: wrap all mkstemp variants
6395         * modules/mkostemp (configure.ac): Set witness.
6396         * modules/mkostemps (configure.ac): Likewise.
6397         * modules/mkstemps (configure.ac): Likewise.
6398         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6399         (mkstemps_safer): Wrap more functions.
6400         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6401         wrapping.
6402         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6403         (mkstemps_safer): Implement the wrappers.
6404
6405         mkstemps, mkostemps: new modules
6406         * modules/mkostemps: New module.
6407         * modules/mkstemps: Likewise.
6408         * lib/mkostemps.c (mkostemps): New file.
6409         * lib/mkstemps.c (mkstemps): Likewise.
6410         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6411         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6413         * modules/stdlib (Makefile.am): Substitute them.
6414         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6415         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6416         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6417         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6418         * MODULES.html.sh (File system functions): Mention them.
6419
6420         tempname: resync from glibc
6421         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6422         same values for __GT_FILE as glibc.  Abort even when assertions
6423         are disabled.
6424         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6425         match its value otherwise.  Allow idempotent inclusion.
6426         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6427         * lib/mkostemp.c (mkostemp): Likewise.
6428         * lib/mkstemp.c (mkstemp): Likewise.
6429         * lib/tmpfile.c (tmpfile): Likewise.
6430         * NEWS: Document this.
6431
6432         utimens: fix use of futimens on older Linux
6433         * lib/utimens.c (fdutimens): Use updated, rather than original,
6434         timespec to avoid bug in older Linux kernel.
6435         Reported by Simon Josefsson.
6436
6437 2009-11-04  Bruno Haible  <bruno@clisp.org>
6438
6439         Make num_processors more flexible and consistent.
6440         * lib/nproc.h (enum nproc_query): New type.
6441         (num_processors): Add a 'query' argument.
6442         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6443         (num_processors): Add a 'query' argument. Test the value of the
6444         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6445         mingw, count the number of CPUs available for the current process.
6446         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6447         Check for sched_getaffinity and sched_getaffinity_np.
6448         * modules/nproc (Depends-on): Add c-ctype, extensions.
6449         * NEWS: Mention the change.
6450
6451 2009-11-03  Bruno Haible  <bruno@clisp.org>
6452
6453         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6454
6455 2009-11-03  Jim Meyering  <meyering@redhat.com>
6456
6457         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6458         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6459         if it is defined.
6460
6461 2009-11-02  Eric Blake  <ebb9@byu.net>
6462
6463         mktime, timegm: share common declaration
6464         * lib/mktime-internal.h: New file.
6465         * lib/mktime.c: Use it rather than open-coding a declaration.
6466         * lib/timegm.c: Likewise.
6467         * modules/mktime (Files): Ship it.
6468         * modules/timegm (Files): Likewise.
6469         Suggested by Bruno Haible.
6470
6471         test-update-copyright: update test to match script changes
6472         * tests/test-update-copyright.sh: Avoid hard-coding perl
6473         location.  Don't update *.bak created by earlier runs.
6474
6475 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6476             Simon Josefsson  <simon@josefsson.org>
6477             Bruno Haible  <bruno@clisp.org>
6478
6479         Fix link error on Solaris 8.
6480         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6481         also in libnsl. Define also INET_PTON_LIB.
6482         * modules/inet_pton (Link): New section.
6483
6484 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6485             Bruno Haible  <bruno@clisp.org>
6486
6487         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6488         * modules/inet_ntop (Link): New section.
6489         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6490
6491 2009-11-02  Eric Blake  <ebb9@byu.net>
6492
6493         maint: avoid compiler warnings in m4 macros
6494         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6496
6497 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6498
6499         * m4/pmccabe2html.m4: Remove file.
6500         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6501         function.  Change maintainer.
6502         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6503         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6504         Courtès).
6505
6506 2009-10-31  Eric Blake  <ebb9@byu.net>
6507
6508         fseeko: fix m4 regression
6509         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6510         regression from 2009-10-27.
6511         Reported by Ralf Wildenhues.
6512
6513 2009-10-31  Jim Meyering  <meyering@redhat.com>
6514
6515         inttostr: aesthetics and improved (compile-time) safety
6516         Define inttype_is_signed rather than inttype_is_unsigned,
6517         since the sole use is via "#if inttype_is_signed".
6518         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6519         inttype_is_unsigned.
6520         * lib/offtostr.c (inttype_is_signed): Likewise.
6521         * lib/uinttostr.c (inttype_is_signed): Likewise.
6522         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6523         * lib/inttostr.c (inttostr): Use verify to cross-check the
6524         inttype_is_signed value and the signedness of the actual type.
6525         * modules/inttostr (Depends-on): Add verify.
6526
6527 2009-10-30  Eric Blake  <ebb9@byu.net>
6528
6529         build: avoid compiler warnings
6530         * lib/fchmodat.c (lchmod): Mark unused variables.
6531         * lib/getopt.c (_getopt_initialize): Likewise.
6532         * lib/mktime.c (__mktime_internal): Provide prototype.
6533         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6534         older gcc that do not understand #pragma GCC diagnostic.
6535         * lib/uinttostr.c (inttype_is_unsigned): Define.
6536         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6537
6538 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6539
6540         stat: fix compilation on AIX
6541         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6542         only see struct stat64.
6543
6544 2009-10-30  Eric Blake  <ebb9@byu.net>
6545
6546         exclude: make more robust
6547         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6548         rather than masking a coding bug.
6549         Suggested by Bruno Haible.
6550
6551 2009-10-30  Jim Meyering  <meyering@redhat.com>
6552
6553         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6554         Rather than putting #!/usr/bin/perl on the first line,
6555         start with a variant of what's recommended by "man perlrun" that
6556         invokes the first "perl" program from your shell's search path.
6557         * build-aux/gitlog-to-changelog: Replace #!... as above.
6558         Add a "Local Variables" perl mode setting.
6559         Prompted by a patch from Ludovic Courtès.
6560         Improved by Eric Blake.
6561         * build-aux/useless-if-before-free: Likewise.
6562         * build-aux/announce-gen: Likewise.
6563         * build-aux/update-copyright: Likewise.
6564
6565 2009-10-29  Eric Blake  <ebb9@byu.net>
6566
6567         filenamecat-lgpl: adjust clients
6568         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6569         filenamecat.
6570         * modules/renameat (Depends-on): Likewise.
6571
6572         filenamecat: split into filenamecat-lgpl
6573         * modules/filenamecat-lgpl: New module.
6574         * modules/filenamecat (Files): Move library-safe files into
6575         filenamecat-lgpl.
6576         (Depends-on): Add filenamecat-lgpl.
6577         (configure.ac): Declare witness.
6578         * lib/filenamecat.h (file_name_concat): Only declare when using
6579         GPL module.
6580         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6581         Move...
6582         * lib/filenamecat-lgpl.c: ...into new file.
6583         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6584         (gl_FILE_NAME_CONCAT): Use it.
6585         * MODULES.html.sh (File system functions): Mention new module.
6586
6587         argp: avoid memory leak
6588         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6589         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6590         base_name, since the latter malloc()s and can call exit().
6591         Leak introduced 2006-07-03.
6592
6593         dirname-lgpl: adjust clients that don't need full dirname
6594         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6595         * modules/filenamecat (Depends-on): Likewise.
6596         * modules/linkat (Depends-on): Likewise.
6597         * modules/mkancesdirs (Depends-on): Likewise.
6598         * modules/mkdir (Depends-on): Likewise.
6599         * modules/openat (Depends-on): Likewise.
6600         * modules/savewd (Depends-on): Likewise.
6601         * modules/rename (Depends-on): Likewise.
6602         (License): Relax license.
6603         * modules/mkdir-tests (Depends-on): Drop progname.
6604         (Makefile.am): Delete unneeded LDADD.
6605         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6606
6607         dirname: split into dirname-lgpl
6608         * modules/dirname-lgpl: New module.
6609         * modules/dirname (Files): Move library-safe files into
6610         dirname-lgpl.
6611         (Depends-on): Add dirname-lgpl.
6612         (configure.ac): Declare witness.
6613         * modules/double-slash-root (License): Relax license.
6614         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6615         module.
6616         * lib/dirname.c (dir_len, mdir_name): Move...
6617         * lib/dirname-lgpl.c: ...into new file.
6618         * lib/basename.c (last_component, base_len): Move...
6619         * lib/basename-lgpl.c: ...into new file.
6620         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6621         (gl_DIRNAME): Use it.
6622         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6623         Mention new module.
6624         * modules/dirname-tests (Depends-on): Add progname.
6625         * tests/test-dirname.c (program_name): Delete.
6626
6627         mkdir: make safe for libraries
6628         * modules/mkdir (Depends-on): Drop xalloc.
6629         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6630         exit.
6631
6632         tests: avoid some compiler warnings
6633         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6634         literals.
6635         * tests/test-memchr.c (main): Avoid type mismatch.
6636         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6637         * tests/test-base64.c (main): Likewise.
6638         * tests/test-getdelim.c (main): Likewise.
6639         * tests/test-gethostname.c (main): Likewise.
6640         * tests/test-getline.c (main): Likewise.
6641         * tests/test-netinet_in.c (main): Likewise.
6642         * tests/test-select.c (open_server_socket, main): Likewise.
6643         * tests/test-select-stdin.c (main): Likewise.
6644         * tests/test-sockets.c (main): Likewise.
6645         * tests/test-strsignal.c (main): Likewise.
6646         * tests/test-sys_select.c (main): Likewise.
6647         * tests/test-sys_socket.c (main): Likewise.
6648         * tests/test-u64.c (main): Likewise.
6649         * tests/test-xfprintf-posix.c (main): Likewise.
6650         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6651
6652         sockets: avoid compiler warning
6653         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6654
6655         maint: detect usage(1) and other suspicious exits
6656         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6657
6658 2009-10-29  Jim Meyering  <meyering@redhat.com>
6659
6660         timespec: long-to-int truncation could make timespec_cmp malfunction
6661         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6662         a multiple of 2^32 nanoseconds as no difference.
6663
6664 2009-10-28  Jim Meyering  <meyering@redhat.com>
6665
6666         fprintftime: wrap macro code argument in "do {...} while(0)"
6667         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6668         cpy macro must be a statement that can be followed by a semicolon.
6669         Now that the else clause contains a comment and is hence longer
6670         than one line, I require curly braces.  That in turn requires
6671         that we wrap this code block in the standard do...while(0).
6672
6673         fprintftime: remove stray semicolon from previous change
6674         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6675
6676         fprintftime: avoid a warning about ignored fwrite return value
6677         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6678         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6679         that is unsafe.
6680         * modules/fprintftime (Depends-on): Add ignore-value.
6681
6682         exclude: avoid an unwarranted warning
6683         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6684
6685 2009-10-27  Eric Blake  <ebb9@byu.net>
6686
6687         fseek: avoid compilation failure when fflush is replaced
6688         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6689         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6690         module is in use.
6691         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6692         module is not in use; since REPLACE_FSEEK worked otherwise.
6693         (GNULIB_FTELLO): Likewise for ftell.
6694         Reported by Ian Beckwith and others.
6695
6696 2009-10-27  Bruno Haible  <bruno@clisp.org>
6697
6698         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6699         Reported by Jim Meyering.
6700
6701 2009-10-27  Jim Meyering  <jim@meyering.net>
6702             Bruno Haible  <bruno@clisp.org>
6703
6704         Avoid warning despite dropping the return value of fwrite.
6705         * lib/unicodeio.c: Include ignore-value.h.
6706         (fwrite_success_callback): Explicitly ignore fwrite's return value.
6707         * modules/unicodeio (Depends-on): Add ignore-value.
6708
6709 2009-10-26  Eric Blake  <ebb9@byu.net>
6710
6711         areadlinkat: fix fallback path
6712         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6713         pointer and zero.
6714
6715 2009-10-22  Pádraig Brady  <P@draigBrady.com>
6716
6717         Use a better IO block size for modern systems
6718         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6719         * lib/md2.c: Likewise.
6720         * lib/md4.c: Likewise.
6721         * lib/md5.c: Likewise.
6722         * lib/sha1.c: Likewise.
6723         * lib/sha256.c: Likewise.
6724         * lib/sha512.c: Likewise.
6725
6726 2009-10-22  Eric Blake  <ebb9@byu.net>
6727
6728         tests: avoid several compiler warnings
6729         * tests/test-getcwd.c (main): Avoid buffer underflow.
6730         * tests/test-getdate.c (main): String literals are not safe with
6731         putenv, so use setenv.  Declare unused argument.
6732         * modules/getdate-tests (Depends-on): Add setenv.
6733         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
6734         problems with string literals in char *.
6735         * tests/test-hash.c (main): Avoid shadowing declaration.
6736         (insert_new): Treat string literals as char const *.
6737         * tests/test-getopt.h (test_getopt): Likewise.
6738         (getopt_loop): Alter types to minimize casting elsewhere.
6739         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6740         (test_getopt_long_posix): Likewise.
6741         (do_getopt_long): Add wrapper to minimize casting.
6742         * tests/test-atexit.c (clear_temp_file): Use void.
6743         * tests/test-areadlink-with-size.c (main): Declare unused
6744         arguments.
6745         * tests/test-areadlink.c (main): Likewise.
6746         * tests/test-areadlinkat-with-size.c (main): Likewise.
6747         * tests/test-areadlinkat.c (main): Likewise.
6748         * tests/test-canonicalize-lgpl.c (main): Likewise.
6749         * tests/test-canonicalize.c (main): Likewise.
6750         * tests/test-dirent-safer.c (main): Likewise.
6751         * tests/test-dirname.c (main): Likewise.
6752         * tests/test-dup2.c (main): Likewise.
6753         * tests/test-fchdir.c (main): Likewise.
6754         * tests/test-fcntl-h.c (main): Likewise.
6755         * tests/test-fcntl-safer.c (main): Likewise.
6756         * tests/test-fdopendir.c (main): Likewise.
6757         * tests/test-fdutimensat.c (main): Likewise.
6758         * tests/test-fflush.c (main): Likewise.
6759         * tests/test-filenamecat.c (main): Likewise.
6760         * tests/test-filevercmp.c (main): Likewise.
6761         * tests/test-fopen-safer.c (main): Likewise.
6762         * tests/test-fopen.c (main): Likewise.
6763         * tests/test-fpending.c (main): Likewise.
6764         * tests/test-fpurge.c (main): Likewise.
6765         * tests/test-freading.c (main): Likewise.
6766         * tests/test-fstatat.c (main): Likewise.
6767         * tests/test-fsync.c (main): Likewise.
6768         * tests/test-futimens.c (main): Likewise.
6769         * tests/test-getndelim2.c (main): Likewise.
6770         * tests/test-gettimeofday.c (main): Likewise.
6771         * tests/test-getopt.c (main): Likewise.
6772         * tests/test-i-ring.c (main): Likewise.
6773         * tests/test-inttypes.c (main): Likewise.
6774         * tests/test-link.c (main): Likewise.
6775         * tests/test-lstat.c (main): Likewise.
6776         * tests/test-math.c (main): Likewise.
6777         * tests/test-md5.c (main): Likewise.
6778         * tests/test-memchr2.c (main): Likewise.
6779         * tests/test-memrchr.c (main): Likewise.
6780         * tests/test-mkdir.c (main): Likewise.
6781         * tests/test-mkdirat.c (main): Likewise.
6782         * tests/test-mkfifoat.c (main): Likewise.
6783         * tests/test-open.c (main): Likewise.
6784         * tests/test-openat-safer.c (main): Likewise.
6785         * tests/test-openat.c (main): Likewise.
6786         * tests/test-quotearg.c (main): Likewise.
6787         * tests/test-rawmemchr.c (main): Likewise.
6788         * tests/test-readlink.c (main): Likewise.
6789         * tests/test-remove.c (main): Likewise.
6790         * tests/test-rename.c (main): Likewise.
6791         * tests/test-renameat.c (main): Likewise.
6792         * tests/test-rmdir.c (main): Likewise.
6793         * tests/test-sha1.c (main): Likewise.
6794         * tests/test-signal.c (main): Likewise.
6795         * tests/test-sigaction.c (main): Likewise.
6796         * tests/test-stat.c (main): Likewise.
6797         * tests/test-stat-time.c (main): Likewise.
6798         * tests/test-stddef.c (main): Likewise.
6799         * tests/test-stdint.c (main): Likewise.
6800         * tests/test-stdio.c (main): Likewise.
6801         * tests/test-stdlib.c (main): Likewise.
6802         * tests/test-strchrnul.c (main): Likewise.
6803         * tests/test-strerror.c (main): Likewise.
6804         * tests/test-string.c (main): Likewise.
6805         * tests/test-strtod.c (main): Likewise.
6806         * tests/test-strverscmp.c (main): Likewise.
6807         * tests/test-symlink.c (main): Likewise.
6808         * tests/test-symlinkat.c (main): Likewise.
6809         * tests/test-sys_stat.c (main): Likewise.
6810         * tests/test-sys_time.c (main): Likewise.
6811         * tests/test-time.c (main): Likewise.
6812         * tests/test-unistd.c (main): Likewise.
6813         * tests/test-unlink.c (main): Likewise.
6814         * tests/test-unlinkat.c (main): Likewise.
6815         * tests/test-utimens.c (main): Likewise.
6816         * tests/test-utimensat.c (main): Likewise.
6817         * tests/test-version-etc.c (main): Likewise.
6818         * tests/test-wchar.c (main): Likewise.
6819         * tests/test-wctype.c (main): Likewise.
6820         * tests/test-xprintf-posix.c (main): Likewise.
6821         * tests/test-posixtm.c (main): Likewise.
6822         (STREQ): Delete unused macro.
6823         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
6824         shadowed variables.
6825         * tests/test-memchr.c (main): Likewise.
6826
6827 2009-10-21  Eric Blake  <ebb9@byu.net>
6828
6829         areadlinkat: avoid failure on older glibc
6830         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
6831         rather than mis-comparing 0 against FUNC_RESULT of char*.
6832
6833 2009-10-21  Bruno Haible  <bruno@clisp.org>
6834
6835         * modules/stpncpy (License): Relicense under LGPLv2+.
6836         Reported by David Lutterkort <lutter@redhat.com>.
6837
6838 2009-10-20  Eric Blake  <ebb9@byu.net>
6839
6840         utimensat: work around Solaris 9 bug
6841         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
6842         has trailing slash bugs.
6843         * tests/test-lutimens.h (test_lutimens): Enhance test.
6844         * tests/test-utimens.h (test_utimens): Likewise.
6845         * doc/posix-functions/utime.texi (utime): Enhance documentation.
6846         * doc/posix-functions/utimes.texi (utimes): Likewise.
6847         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6848         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
6849         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
6850         * doc/posix-functions/futimens.texi (futimens): Likewise.
6851
6852         fdutimensat: new module
6853         * modules/fdutimensat: New file.
6854         * lib/fdutimensat.c (fdutimensat): Likewise.
6855         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
6856         * MODULES.html.sh (File system functions): Mention module.
6857         * modules/fdutimensat-tests: New test.
6858         * tests/test-fdutimensat.c: Likewise.
6859
6860         doc: regenerate INSTALL
6861         * doc/INSTALL: Reflect recent autoconf update.
6862         * doc/INSTALL.ISO: Likewise.
6863         * doc/INSTALL.UTF-8: Likewise.
6864
6865 2009-10-20  Pádraig Brady  <P@draigBrady.com>
6866
6867         acl: warn if ACL support is not detected
6868         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
6869
6870 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
6871
6872         * lib/nproc.h: Add extern "C" block for C++.
6873
6874 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
6875             Bruno Haible  <bruno@clisp.org>
6876
6877         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
6878         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
6879         * doc/posix-functions/isalpha.texi: Likewise.
6880         * doc/posix-functions/isblank.texi: Likewise.
6881         * doc/posix-functions/iscntrl.texi: Likewise.
6882         * doc/posix-functions/isdigit.texi: Likewise.
6883         * doc/posix-functions/isgraph.texi: Likewise.
6884         * doc/posix-functions/islower.texi: Likewise.
6885         * doc/posix-functions/isprint.texi: Likewise.
6886         * doc/posix-functions/ispunct.texi: Likewise.
6887         * doc/posix-functions/isspace.texi: Likewise.
6888         * doc/posix-functions/isupper.texi: Likewise.
6889         * doc/posix-functions/isxdigit.texi: Likewise.
6890
6891 2009-10-18  Bruno Haible  <bruno@clisp.org>
6892
6893         Tests for module 'isblank'.
6894         * modules/isblank-tests: New file.
6895         * tests/test-isblank.c: New file.
6896
6897         New module 'isblank'.
6898         * lib/isblank.c: New file.
6899         * m4/isblank.m4: New file.
6900         * modules/isblank: New file.
6901         * doc/posix-functions/isblank.texi: Mention the new module.
6902
6903 2009-10-18  Bruno Haible  <bruno@clisp.org>
6904
6905         New module 'ctype'.
6906         * lib/ctype.in.h: New file.
6907         * m4/ctype.m4: New file.
6908         * modules/ctype: New file.
6909         * doc/posix-headers/ctype.texi: Mention the new module.
6910
6911 2009-10-18  Jim Meyering  <meyering@redhat.com>
6912
6913         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
6914         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
6915         right after its initialization, rather than farther down.
6916         Keeping these in close proximity makes it easier to ensure
6917         that each such variable is initialized.  E.g.,
6918
6919             LIB_CLOCK_GETTIME=
6920             AC_SUBST([LIB_CLOCK_GETTIME])
6921
6922         This change also increments these serial numbers.
6923         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
6924         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6926
6927 2009-10-18  Bruno Haible  <bruno@clisp.org>
6928
6929         Don't let environment variables perturb build.
6930         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
6931         (gl_PREREQ_GETHRXTIME): ... not here.
6932
6933 2009-10-18  Bruno Haible  <bruno@clisp.org>
6934
6935         Avoid symlink attack in localcharset module.
6936         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
6937         (O_NOFOLLOW): Define fallback.
6938         (get_charset_aliases): Don't open the file if it is a symbolic link.
6939         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
6940         gl_FCNTL_H.
6941         (gl_FCNTL_H): Require it.
6942         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
6943         * modules/localcharset (Files): Add m4/fcntl_h.m4.
6944         Reported by Fergal Glynn <fglynn@veracode.com>.
6945
6946 2009-10-18  Bruno Haible  <bruno@clisp.org>
6947
6948         Implement nproc for mingw.
6949         * lib/nproc.c: Include <windows.h>
6950         (num_processors): On native Windows platforms, try GetSystemInfo.
6951
6952 2009-10-18  Bruno Haible  <bruno@clisp.org>
6953
6954         Implement nproc for IRIX.
6955         * lib/nproc.c: Include <sys/sysmp.h>.
6956         (num_processors): On IRIX systems, try sysmp.
6957         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
6958
6959 2009-10-18  Bruno Haible  <bruno@clisp.org>
6960
6961         Implement nproc for HP-UX.
6962         * lib/nproc.c: Include <sys/pstat.h>
6963         (num_processors): On HP-UX systems, try pstat_getdynamic.
6964         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
6965         pstat_getdynamic.
6966
6967 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
6968             Bruno Haible  <bruno@clisp.org>
6969
6970         Implement nproc for NetBSD, OpenBSD.
6971         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
6972         (ARRAY_SIZE): New macro.
6973         (num_processors): On BSD systems, try sysctl of HW_NCPU.
6974         * m4/nproc.m4: New file.
6975         * modules/nproc (Files): Add m4/nproc.m4.
6976         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
6977         (Makefile.am): Instead, augment lib_SOURCES.
6978
6979 2009-10-18  Bruno Haible  <bruno@clisp.org>
6980
6981         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
6982         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
6983         sys/param.h.
6984
6985 2009-10-16  Eric Blake  <ebb9@byu.net>
6986
6987         utimensat: new module
6988         * modules/utimensat: New file.
6989         * lib/utimensat.c (utimensat): Likewise.
6990         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6991         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
6992         so we can work around Linux bugs.
6993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6994         * modules/sys_stat (Makefile.am): Substitute them.
6995         * lib/sys_stat.in.h (utimensat): Declare it.
6996         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6997         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6998         * modules/utimensat-tests: New test.
6999         * tests/test-utimensat.c: Likewise.
7000
7001         utimens: let lutimens work on non-symlinks
7002         * lib/utimens.c (lutimens): Fall back to utimens rather than
7003         failing with ENOSYS, when file is not a symlink.
7004         (utimens): Reduce redirection.
7005         * tests/test-lutimens.h (test_lutimens): Update test to cover
7006         non-symlinks.
7007         * tests/test-utimens.h (test_utimens): Update test to cover
7008         symlinks.
7009         * tests/test-utimens.c (main): Update caller.
7010
7011         utimens: cache whether utimensat syscall works
7012         * lib/utimens.c (utimensat_works_really): New cache variable.
7013         (fdutimens, lutimens): Use it to avoid failing syscall.
7014
7015         test-stat-time, test-utimens: improve portability
7016         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7017         ext4 on alpha, and for cygwin.
7018         * tests/test-utimens-common.h: New file.
7019         (nap): Factor delays into single function.
7020         * tests/test-lutimens.h (test_lutimens): Use new header.
7021         * tests/test-futimens.h (test_futimens): Likewise.
7022         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7023         timestamps to occur from same machine, as was done previously for
7024         test_utimens.
7025         * modules/utimens-tests (Files): Ship new file.
7026         * modules/futimens-tests (Files): Likewise.
7027         Reported in part by Jim Meyering.
7028
7029         sys_stat: sort replacement declarations
7030         * lib/sys_stat.in.h: Sort declarations.
7031         * lib/futimens.c (futimens): Fix typo.
7032
7033 2009-10-15  Jim Meyering  <meyering@redhat.com>
7034
7035         don't let environment settings perturb build
7036         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7037         could cause a configure-time and/or build-time malfunction.
7038         Typically, a configure-time function-in-library test is performed
7039         via code like this:
7040
7041           LIB_VAR=
7042           AC_SUBST([LIB_VAR])
7043           prefix_saved_LIBS=$LIBS
7044             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7045                        [test "$ac_cv_search_FUNC" = "none required" ||
7046                         LIB_VAR=$ac_cv_search_FUNC])
7047           LIBS=$prefix_saved_LIBS
7048
7049         However, in each of the files affected by this change, the LIB_VAR=
7050         initialization was omitted.  Thus, when set in the environment, its
7051         value would propagate into generated Makefiles when FUNC is not found
7052         in LIB_NAME.
7053         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7054         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7056
7057 2009-10-14  Eric Blake  <ebb9@byu.net>
7058
7059         fchdir: avoid infinite recursion in mingw
7060         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7061         recursing.
7062
7063         test-stat-time: port to mingw
7064         * tests/test-stat-time.c (force_unlink): Return a value.
7065         (test_ctime) [W32]: Fix compilation error.
7066         (nap): Don't call usleep with too large an argument.  Use
7067         force_unlink.
7068         * doc/pastposix-functions/usleep.texi (usleep): Document the
7069         portability issue.
7070
7071 2009-10-13  Jim Meyering  <meyering@redhat.com>
7072
7073         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7074         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7075         * modules/pipe-filter-ii: Likewise.
7076         * modules/sys_socket-tests: Likewise.
7077         * modules/tsearch-tests: Likewise.
7078         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7079         (check): Depend on it.
7080
7081 2009-10-12  Eric Blake  <ebb9@byu.net>
7082
7083         utimens-tests: port to NFS file systems
7084         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7085         comparisons to avoid spurious failures from timestamp drift
7086         between NFS machines.
7087
7088 2009-10-12  Eric Blake  <ebb9@byu.net>
7089
7090         stat-time-tests: minor cleanups
7091         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7092         * tests/test-stat-time.c (nap): Separate assignment from call.
7093         Suggested by Paolo Bonzini and Bruno Haible.
7094
7095         sys_stat: guarantee struct timespec
7096         * lib/sys_stat.in.h (includes): Always include <time.h>
7097         * modules/sys_stat (Depends-on): Add time.
7098         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7099         mode_t permission values.
7100         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7101         get at subsecond timestamps.
7102
7103 2009-10-10  Eric Blake  <ebb9@byu.net>
7104
7105         futimens: new module
7106         * modules/futimens: New file.
7107         * lib/futimens.c (futimens): Likewise.
7108         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7109         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7110         we can work around Linux bugs.
7111         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7112         * modules/sys_stat (Makefile.am): Substitute them.
7113         * lib/sys_stat.in.h (futimens): Declare it.
7114         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7115         * doc/posix-functions/futimens.texi (futimens): Likewise.
7116         * modules/futimens-tests: New test.
7117         * tests/test-futimens.c: Likewise.
7118
7119         utimens: introduce fdutimens
7120         * lib/utimens.h (fdutimens): New prototype.
7121         * lib/utimens.c (gl_futimens): Move guts...
7122         (fdutimens): ...to new interface.
7123         * tests/test-utimens.c (do_fdutimens): Use it.
7124
7125         utimens: add UTIME_NOW and UTIME_OMIT support
7126         * lib/utimens.c (validate_timespec, update_timespec): New helper
7127         functions.
7128         (gl_futimens, lutimens): Use them.
7129         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7130         stdbool, sys_stat.
7131         (Link): Mention resulting library dependency.
7132         * modules/utimecmp (Link): Likewise.
7133         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7134         (Makefile.am): Pick up library dependency.
7135         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7136         definition.
7137         * tests/test-sys_stat.c: Test the definitions.
7138         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7139         * NEWS: Document library dependency.
7140
7141         utimecmp: support symlink timestamps
7142         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7143         hashing when possible.  Use pathconf when available.
7144         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7145         * modules/utimecmp (Depends-on): Add lstat.
7146
7147         utimens: add lutimens interface
7148         * lib/utimens.c (lutimens): New function.
7149         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7150         * lib/utimens.h (lutimens): Declare new interface.
7151         * tests/test-utimens.c (main): Enhance test.
7152         * tests/test-lutimens.h (test_lutimens): New file.
7153         * modules/utimens-tests (Files): Distribute it.
7154         (Depends-on): Add symlink.
7155         (configure.ac): Check for usleep.
7156
7157         utimens: validate futimens usage
7158         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7159         fewer syscalls on failure later on.  Avoid compiler warning on
7160         mingw.
7161         * modules/utimens (Depends-on): Add dup2.
7162
7163         utimens: add test
7164         * modules/utimens-tests: New test.
7165         * tests/test-utimens.h: New file.
7166         * tests/test-futimens.h: Likewise.
7167         * tests/test-utimens.c: Likewise.
7168
7169         doc: mention timestamp portability issues
7170         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7171         instead.
7172         * doc/posix-functions/utime.texi (utime): Likewise.
7173         * doc/posix-functions/utimes.texi (utimes): Likewise.
7174         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7175         instead.
7176         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7177         module.
7178         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7179         Mention weakness with symlink timestamps.
7180         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7181         to utimensat/futimens instead.
7182         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7183
7184         test-dup2: enhance test
7185         * tests/test-dup2.c (main): Also check AT_FDCWD.
7186
7187         test-stat-time: avoid more spurious failures
7188         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7189         xfs; and avoid race if the two timestamps cross quantization edge.
7190
7191         relocatable: prefer 'file system' over 'filesystem'
7192         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7193         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7194         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7195         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7196         * lib/relocatable.c (compute_curr_prefix): Likewise.
7197
7198 2009-10-10  Jim Meyering  <meyering@redhat.com>
7199
7200         stat-time-tests: check for the usleep function
7201         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7202
7203 2009-10-10  Bruno Haible  <bruno@clisp.org>
7204
7205         * modules/xnanosleep: Put the Link section after the Include section.
7206
7207 2009-10-09  Eric Blake  <ebb9@byu.net>
7208
7209         dup2: work around FreeBSD 6.1 bug
7210         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7211         * doc/posix-functions/dup2.texi (dup2): Document it.
7212         Reported by Nelson H. F. Beebe and Jim Meyering.
7213
7214         test-stat-time: port to buggy NFS clients
7215         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7216         (test_ctime): Also skip test if mtime and ctime are skewed.
7217
7218         maint: prefer 'file system' over 'filesystem'
7219         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7220         * doc/posix-functions/lstat.texi (lstat): Likewise.
7221         * lib/file-has-acl.c (file_has_acl): Likewise.
7222         * lib/fwriteerror.c [TEST]: Likewise.
7223         * tests/test-areadlink.h (test_areadlink): Likewise.
7224         * tests/test-areadlinkat-with-size.c (main): Likewise.
7225         * tests/test-areadlinkat.c (main): Likewise.
7226         * tests/test-canonicalize-lgpl.c (main): Likewise.
7227         * tests/test-canonicalize.c (main): Likewise.
7228         * tests/test-fstatat.c (main): Likewise.
7229         * tests/test-linkat.c (main): Likewise.
7230         * tests/test-lstat.h (test_lstat_func): Likewise.
7231         * tests/test-mkdir.h (test_mkdir): Likewise.
7232         * tests/test-readlink.h (test_readlink): Likewise.
7233         * tests/test-remove.c (main): Likewise.
7234         * tests/test-rename.h (test_rename): Likewise.
7235         * tests/test-renameat.c (main): Likewise.
7236         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7237         * tests/test-symlink.h (test_symlink): Likewise.
7238         * tests/test-symlinkat.c (main): Likewise.
7239         * tests/test-unlink.h (test_unlink_func): Likewise.
7240         * tests/test-unlinkat.c (main): Likewise.
7241
7242         maint: make realtime library usage explicit
7243         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7244         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7245         * modules/settime (Link): Likewise.
7246         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7247
7248         test-stat-time: speed up execution
7249         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7250         warning on mingw.
7251         (nap): New helper function.
7252         (prepare_test): Use it to reduce sleep time.
7253         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7254         execution.
7255         * modules/stat-time-tests (configure.ac): Check for usleep.
7256
7257 2009-10-09  Jim Meyering  <meyering@redhat.com>
7258
7259         selinux-h: always use getfilecon wrappers
7260         * lib/getfilecon.c: New file.
7261         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7262         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7263         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7264         (fgetfilecon): Provide a stub.
7265         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7266         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7267         file unconditionally.
7268         When <selinux/selinux.h> is found, arrange to use wrappers.
7269         * modules/selinux-h (Files): Add getfilecon.c.
7270         (Makefile.am): Substitute include-next-related bits
7271         into the now-always-generated selinux/selinux.h file.
7272         * doc/glibc-functions/lgetfilecon.texi: New file.
7273         * doc/glibc-functions/fgetfilecon.texi: New file.
7274         * doc/glibc-functions/getfilecon.texi: New file.
7275         * doc/glibc-functions/getfilecon-desc.texi: New file.
7276         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7277         which to pull in the new files.
7278         * MODULES.html.sh (Misc): Add selinux-h.
7279
7280 2009-10-08  Jim Meyering  <meyering@redhat.com>
7281
7282         unistd: fix comment typo
7283         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7284
7285 2009-10-08  Eric Blake  <ebb9@byu.net>
7286
7287         areadlink: use SIZE_MAX consistently
7288         * modules/areadlink (Depends-on): Add stdint.
7289         * modules/areadlink-with-size (Depends-on): Likewise.
7290         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7291         gives NULL; drop sys/types, since unistd gives size_t; and add
7292         stdint for SIZE_MAX.
7293         (SIZE_MAX): Rely on headers.
7294         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7295         and add stdint.
7296         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7297         (SIZE_MAX): Likewise.
7298         (INITIAL_BUF_SIZE): Turn into enum.
7299         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7300
7301 2009-10-08  Jim Meyering  <meyering@redhat.com>
7302
7303         areadlinkat: avoid compilation failure
7304         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7305         Fix typo in comment.
7306
7307 2009-10-07  Eric Blake  <ebb9@byu.net>
7308
7309         areadlinkat-with-size: new module
7310         * modules/areadlinkat-with-size: New module.
7311         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7312         * lib/areadlink.h (areadlinkat): Declare it.
7313         * MODULES.html.sh (File system functions): Mention it.
7314         * modules/areadlinkat-with-size-tests: New test.
7315         * tests/test-areadlinkat-with-size.c: New file.
7316
7317         xreadlinkat: new module
7318         * modules/xreadlinkat: New module.
7319         * lib/xreadlinkat.c (xreadlinkat): New file.
7320         * lib/xreadlink.h (xreadlinkat): Declare it.
7321         * MODULES.html.sh (File system functions): Mention it.
7322
7323         areadlinkat: new module
7324         * lib/at-func.c (FUNC_FAIL): New define.
7325         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7326         * modules/areadlinkat: New module.
7327         * lib/linkat.c (areadlinkat): Move...
7328         * lib/areadlinkat.c (areadlinkat): ...to new file.
7329         * lib/areadlink.h (areadlinkat): Declare it.
7330         * modules/linkat (Depends-on): Add areadlinkat.
7331         * MODULES.html.sh (File system functions): Mention it.
7332         * modules/areadlinkat-tests: New test.
7333         * tests/test-areadlinkat.c: New file.
7334
7335         areadlink, areadlink-with-size: add tests
7336         * modules/areadlink-tests: New test.
7337         * modules/areadlink-with-size-tests: Likewise.
7338         * tests/test-areadlink.h: New file.
7339         * tests/test-areadlink.c: Likewise.
7340         * tests/test-areadlink-with-size.c: Likewise.
7341
7342         maint: minor cleanups
7343         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7344         _UNUSED_PARAMETER_ instead.
7345         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7346         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7347         * modules/linkat-tests (Files): Distribute test-link.h.
7348
7349         openat, utimens: whitespace cleanup
7350         * lib/openat.c: Prefer space throughout, rather than mix of 8
7351         spaces vs. tabs.
7352         * lib/at-func.c: Likewise.
7353         * lib/utimens.c: Likewise.
7354
7355         openat: avoid using wrong fd
7356         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7357         working directory chooses same fd.
7358         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7359
7360         mkdir, mkdirat: fix cygwin 1.5.x bug
7361         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7362         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7363         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7364         bug.
7365         (gl_PREREQ_MKDIR): Delete unused macro.
7366         * modules/mkdir (Files): Track file rename.
7367         (configure.ac): Update macro name.
7368         * modules/openat (Depends-on): Add mkdir.
7369         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7370
7371         mkdir, mkdirat: add tests
7372         * modules/mkdir-tests: New test.
7373         * tests/test-mkdir.h: New file.
7374         * tests/test-mkdir.c: Likewise.
7375         * tests/test-mkdirat.c: Likewise.
7376         * modules/openat-tests (Files): Add new files.
7377         (Makefile.am): Run new test.
7378
7379 2009-10-06  Eric Blake  <ebb9@byu.net>
7380
7381         doc: tweak *at function documentation
7382         * doc/posix-functions/faccessat.texi (faccessat): Mention
7383         known issue with replacement.
7384         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7385         * doc/posix-functions/linkat.texi (linkat): Likewise.
7386         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7387         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7388         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7389         * doc/posix-functions/renameat.texi (renameat): Likewise.
7390         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7391
7392         openat: fix GNU/Hurd bug in unlinkat
7393         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7394         broken.
7395         * doc/posix-functions/unlink.texi (unlink): Document this.
7396         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7397
7398         fdopendir: fix GNU/Hurd bug
7399         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7400         allowing non-directory fds.
7401         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7402         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7403         * modules/dirent (Makefile.am): Substitute it.
7404         * lib/dirent.in.h (fdopendir): Declare replacement.
7405         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7406         * tests/test-fdopendir.c (main): Test something other than
7407         /dev/null, since on Hurd that behaves like a directory.
7408
7409         test-symlink: port to GNU/Hurd
7410         * tests/test-symlink.h (test_symlink): Relax expected errno.
7411
7412         doc: tweak more cygwin information
7413         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7414         now compatible with glibc.
7415         * doc/posix-functions/getopt.texi (getopt): Likewise.
7416
7417         getopt-gnu: add another test
7418         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7419         guarantee behavior relied on by m4.
7420         * tests/test-getopt.c (main): Use it.
7421         * modules/getopt-posix-tests (Depends-on): Add setenv.
7422         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7423
7424         getopt: fix compilation on darwin
7425         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7426         include.
7427         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7428         Reported by Ludovic Courtès.
7429
7430 2009-10-06  Bruno Haible  <bruno@clisp.org>
7431
7432         * modules/size_max (Description): Discourage its use.
7433         Reported by Simon Josefsson.
7434
7435 2009-10-06  Jim Meyering  <meyering@redhat.com>
7436
7437         linkat: avoid compilation failure
7438         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7439
7440 2009-10-05  Eric Blake  <ebb9@byu.net>
7441
7442         linkat: support Linux 2.6.17
7443         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7444         linkat on Linux, but allow cache variable override.
7445         * lib/linkat.c (rpl_linkat): Define override.
7446         * modules/linkat (Depends-on): Add symlinkat.
7447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7448         * modules/unistd (Makefile.am): Substitute it.
7449         * lib/unistd.in.h (linkat): Declare replacement.
7450         Reported by Pádraig Brady.
7451
7452         quotearg: port test to systems with C.UTF-8 locale
7453         * tests/test-quotearg.c (struct result_strings): Add another
7454         member, differentiating between C.ASCII and C.UTF-8 handling.
7455         (compare_strings): Add parameter.
7456         (main): Adjust all callers.
7457
7458         getopt: avoid clash with FreeBSD _getopt_internal
7459         * lib/getopt.in.h (_getopt_internal): Override the name.
7460         * lib/getopt_int.h (includes): Pick up any overrides.
7461         Reported by Reuben Thomas.
7462
7463         hash: allow C89 compilation
7464         * lib/hash.c (check_tuning): Move declaration before statement.
7465         Reported by Reuben Thomas.
7466
7467 2009-10-05  Karl Berry  <karl@gnu.org>
7468
7469         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7470
7471 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7472             Bruno Haible  <bruno@clisp.org>
7473
7474         * lib/uname.c (uname): Use a table-driven algorithm to compute
7475         Windows NT versions.
7476
7477 2009-10-04  Bruno Haible  <bruno@clisp.org>
7478
7479         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7480         program_invocation_short_name.
7481         * modules/progname (configure.ac): Test for presence of
7482         program_invocation_short_name.
7483         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7484
7485 2009-10-04  Bruno Haible  <bruno@clisp.org>
7486
7487         * lib/progname.c (set_program_name): Fix comment.
7488         Reported by Jim Meyering.
7489
7490 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7491             Bruno Haible  <bruno@clisp.org>
7492
7493         * lib/uname.c: Include <string.h>.
7494         (uname): Do only one call to GetVersionEx in the common case.
7495
7496 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7497             Bruno Haible  <bruno@clisp.org>
7498
7499         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7500         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7501         (uname): Add support for Windows CE and various non-x86 CPU types.
7502
7503 2009-10-03  Bruno Haible  <bruno@clisp.org>
7504
7505         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7506         invocation to tests/configure.ac.
7507         Reported by Ian Beckwith <ianb@erislabs.net>.
7508
7509 2009-10-02  Eric Blake  <ebb9@byu.net>
7510
7511         fchdir: avoid compiler warning
7512         * lib/fchdir.c (canonicalize_file_name)
7513         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7514
7515         test-open: support mingw errno values
7516         * tests/test-open.h (test_open): Relax test.
7517         * tests/test-fopen.h (test_fopen): Likewise.
7518         * tests/test-openat-safer.c (main): Likewise.
7519
7520         open: fix opening directory on mingw
7521         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7522
7523         test-open: on GNU/Hurd, /dev/null is a directory
7524         * tests/test-fopen.h (main): Rename...
7525         (test_fopen): ...to this.  Use a guaranteed non-directory when
7526         confirming open behavior on trailing slash.
7527         * tests/test-openat-safer.c (main): Likewise.
7528         * tests/test-open.h (main): Likewise....
7529         (test_open): ...to this.
7530         * tests/test-fopen.c (main): Adjust caller.
7531         * tests/test-fopen-safer.c (main): Likewise.
7532         * tests/test-open.c (main): Likewise.
7533         * tests/test-fcntl-safer.c (main): Likewise.
7534         Reported by Samuel Thibault.
7535
7536         rename, fchdir: don't ignore chdir failure
7537         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7538         * lib/rename.c (rpl_rename) [W32]: Likewise.
7539         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7540         an empty destination directory if source cannot be renamed,
7541         although there is still possibility for failure.
7542         * doc/posix-functions/rename.texi (rename): Document the race.
7543         Reported by Jim Meyering.
7544
7545         maint: cleanup whitespace in recent commits
7546         * lib/rename.c (rpl_rename): Remove tabs.
7547         * tests/test-link.h (test_link): Likewise.
7548         * lib/fchdir.c (get_name): Likewise.
7549         Reported by Jim Meyering.
7550
7551 2009-10-02  Ben Pfaff  <blp@gnu.org>
7552
7553         relocatable-prog-wrapper: Add missing dependency on
7554         double-slash-root.
7555         * modules/relocatable-prog-wrapper: Add dependency.
7556         Reported by Ian Beckwith <ianb@erislabs.net>.
7557
7558 2009-10-02  Eric Blake  <ebb9@byu.net>
7559
7560         renameat: fix Solaris bugs
7561         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7562         needed fixing.
7563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7564         * modules/stdio (Makefile.am): Substitute it.
7565         * lib/stdio.in.h (renameat): Declare replacement.
7566         * lib/renameat.c (rpl_renameat): Implement fix.
7567
7568         renameat: new module
7569         * modules/renameat: New file.
7570         * lib/renameat.c (renameat): Likewise.
7571         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7573         * modules/stdio (Makefile.am): Substitute them.
7574         * lib/stdio.in.h (renameat): Declare it.
7575         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7576         * doc/posix-functions/renameat.texi (renameat): Likewise.
7577         * modules/renameat-tests: New test.
7578         * tests/test-renameat.c: Likewise.
7579
7580         rename: fix mingw bugs
7581         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7582         directory overwrite bugs.
7583
7584         rename: fix another cygwin 1.5 bug
7585         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7586         checks.
7587         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7588         unnecessary cygwin workarounds.  Also work around bug with moving
7589         full directory onto an empty one.
7590         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7591
7592         rename-dest-slash: merge into rename module
7593         * modules/rename-dest-slash (Status): Mark obsolete.
7594         (Depends-on): Add rename.
7595         (Files): Let rename do it all.
7596         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7597         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7598         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7599         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7600         * lib/rename.c (rpl_rename): Update comments.
7601
7602         rename: fix cygwin 1.5.x bugs
7603         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7604         * lib/rename.c (rpl_rename): Work around them.
7605         * modules/rename (Depends-on): Add same-inode.
7606
7607         rename: fix Solaris 10 bug
7608         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7609         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7610         was the only bug.
7611
7612         rename: fix Solaris 9 bug
7613         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7614         on non-directory.  Avoid calling exit.
7615         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7616         strdup.
7617         * modules/rename-tests (Depends-on): Drop lstat.
7618         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7619         (gl_PREREQ_RENAME): Delete unused macro.
7620
7621         rename-dest-slash: fix NetBSD bug
7622         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7623         links.
7624         * modules/rename-dest-slash (Depends-on): Add same-inode.
7625
7626         rename-tests: new test, exposes several platform bugs
7627         * modules/rename-tests: New file.
7628         * tests/test-rename.h: Likewise.
7629         * tests/test-rename.c: Likewise.
7630         * doc/posix-functions/rename.texi (rename): Improve documentation,
7631         including bugs that will eventually be fixed in gnulib.
7632
7633 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7634
7635         * lib/uname.c: Include <stdlib.h>
7636         (uname): Assume version info is available.
7637
7638 2009-10-02  Jim Meyering  <meyering@redhat.com>
7639
7640         gnu-web-doc-update: correct --help output
7641         * build-aux/gnu-web-doc-update: Make --help output relevant.
7642
7643         gnu-web-doc-update: add standard options
7644         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7645
7646         gnu-web-doc-update: New module.
7647         Use this script to automatically update the on-line web documentation
7648         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7649         * modules/gnu-web-doc-update: New file, from coreutils.
7650         * build-aux/gnu-web-doc-update: New script.
7651
7652 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7653
7654         link: LoadLibrary is not needed.
7655         * lib/link.c: Use GetModuleHandle.
7656
7657 2009-10-01  Eric Blake  <ebb9@byu.net>
7658
7659         getopt: bump serial number
7660         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7661         change.
7662
7663         tests: tighten link, rmdir, and remove tests
7664         * tests/test-link.h (includes): No need to use <config.h> here.
7665         Clean up if directory hard link was created, otherwise test for
7666         trailing '.'.
7667         * tests/test-linkat.c (main): Simplify.
7668         * tests/test-remove.c (main): Enhance test for trailing '.'.
7669         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7670
7671 2009-10-01  Jim Meyering  <meyering@redhat.com>
7672
7673         maint.mk: requiring "make major" was annoying, for a "minor" release.
7674         What is intended is "stable", to contrast with alpha and beta,
7675         so require "make stable", not "make major".
7676         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7677         (get_tool_versions): Likewise.
7678         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7679
7680 2009-09-30  Ben Pfaff  <blp@gnu.org>
7681
7682         Fix broken build of replacement for Windows tmpfile().
7683         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7684         flags argument added along with the 'mkostemp' module.
7685
7686 2009-09-28  Bruno Haible  <bruno@clisp.org>
7687
7688         Avoid identifier clash with POSIX function 'remove' defined as a macro.
7689         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7690         to 'remove_elt'.
7691         (gl_list_remove): Update.
7692         * lib/gl_list.c (gl_list_remove): Update.
7693         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7694         to 'remove_elt'.
7695         (gl_oset_remove): Update.
7696         * lib/gl_list.c (gl_oset_remove): Update.
7697         Reported by Eric Blake.
7698
7699 2009-09-28  Eric Blake  <ebb9@byu.net>
7700
7701         doc: mention yet more cygwin 1.7 status
7702         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7703         cygwin.
7704         * doc/glibc-functions/execvpe.texi (execvpe): New file.
7705         * doc/gnulib.texi (Glibc unistd.h): Mention it.
7706
7707         argp: fix test failure
7708         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7709         that are not upper-case.  Pass correct range to tolower.
7710
7711 2009-09-27  Jim Meyering  <meyering@redhat.com>
7712
7713         test-yesno: work around sparc-dash here-document infelicity
7714         Without this change, the literal \177 byte in a here document
7715         would make dash 0.5.5.1-3 access uninitialized memory.
7716         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7717         Instead, use a marker, "@", and filter through tr to create the desired
7718         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7719
7720 2009-09-27  Bruno Haible  <bruno@clisp.org>
7721
7722         Disable untested support for new flavours of ACLs on AIX.
7723         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7724         progress.
7725         * lib/set-mode-acl.c (qset_acl): Likewise.
7726
7727 2008-12-07  Bruno Haible  <bruno@clisp.org>
7728
7729         Add support for new flavours of ACLs on AIX. (Untested.)
7730         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7731         (file_has_acl): Add support for newer AIX.
7732         * lib/set-mode-acl.c (qset_acl): Likewise.
7733         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7734         Rainer Tammer <tammer@tammer.net>.
7735
7736 2009-09-26  Eric Blake  <ebb9@byu.net>
7737
7738         argp: fix compilation of getopt
7739         * lib/getopt.in.h (includes): Use different guard than glibc.
7740         Reported by Sergey Poznyakoff.
7741
7742         doc: mention more cygwin 1.7 status
7743         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7744         bug.
7745         * doc/posix-functions/execl.texi (execl): Likewise.
7746         * doc/posix-functions/execle.texi (execle): Likewise.
7747         * doc/posix-functions/execlp.texi (execlp): Likewise.
7748         * doc/posix-functions/execv.texi (execv): Likewise.
7749         * doc/posix-functions/execve.texi (execve): Likewise.
7750         * doc/posix-functions/execvp.texi (execvp): Likewise.
7751         * doc/glibc-functions/canonicalize_file_name.texi
7752         (canonicalize_file_name): Cygwin 1.7 now provides this.
7753         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7754         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7755         on AT_SYMLINK_NOFOLLOW.
7756
7757 2009-09-24  Eric Blake  <ebb9@byu.net>
7758
7759         test-linkat: make test more robust
7760         * tests/test-linkat.c (main): Avoid collision with EEXIST.
7761
7762         getopt: fix inclusion guards for cygwin
7763         * modules/getopt-posix (Depends-on): Add include-next.
7764         (Makefile.am): Substitute more items in replacement header.
7765         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
7766         <getopt.h>.
7767         * lib/getopt.in.h (includes): Use split inclusion guard, and
7768         prefer <getopt.h> over include <unistd.h> when one is present.
7769         (option): Also override name of 'struct option'.
7770
7771         same-inode: revert prior change; it is not yet ready
7772         * NEWS: Undo mention of this change.
7773         * lib/same-inode.h (same-inode.h): Undo tri-state change.
7774         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7775         * lib/cycle-check.c (cycle_check): Likewise.
7776         * lib/same.c (same_name): Likewise.
7777         * lib/at-func2.c (at_func2): Likewise.
7778
7779 2009-09-23  Eric Blake  <ebb9@byu.net>
7780
7781         linkat: new module
7782         * modules/linkat: New file.
7783         * lib/at-func2.c (at_func2): Likewise.
7784         * lib/linkat.c (linkat): Likewise.
7785         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7786         * lib/openat-priv.h (at_func2): Add declaration.
7787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7788         * modules/unistd (Makefile.am): Substitute them.
7789         * lib/unistd.in.h (linkat): Declare it.
7790         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7791         * doc/posix-functions/linkat.texi (linkat): Likewise.
7792         * doc/posix-functions/link.texi (link): Tweak wording.
7793         * tests/test-link.c (main): Move guts...
7794         * tests/test-link.h (test_link): ...into new file.
7795         * modules/linkat-tests: New test.
7796         * tests/test-linkat.c: Likewise.
7797         * modules/link-tests (Files): Ship new file.
7798         (Depends-on): Add stdbool.
7799
7800         dirname: add library-safe mdir_name
7801         * lib/dirname.h (mdir_name): New prototype.
7802         * lib/dirname.c (dir_name): Move guts...
7803         (mdir_name): ...to new function that avoids xalloc_die.
7804
7805         fchdir: another mingw fix
7806         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
7807         * lib/fchdir.c (get_name): New helper method; skips canonicalize
7808         on mingw (where it has not yet been ported), and make it optional
7809         elsewhere.
7810         (_gl_register_fd): Use it.
7811
7812         same-inode: make SAME_INODE tri-state, to port to mingw
7813         * NEWS: Mention this change.
7814         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
7815         st_ino always being 0.
7816         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7817         * lib/cycle-check.c (cycle_check): Likewise.
7818         * lib/same.c (same_name): Likewise.
7819
7820         lstat: avoid mingw compilation error
7821         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
7822         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
7823         lstat ourselves.
7824         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
7825         was adequate.
7826         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
7827         the checks for lstat.
7828         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
7829
7830         link: fix test failure on Solaris 9
7831         * lib/link.c (rpl_link): Don't assume link will catch bogus
7832         trailing slash on source.
7833
7834         test-symlinkat: enhance test
7835         * tests/test-readlink.c (main): Move guts...
7836         * tests/test-readlink.h (test_readlink): ...into new file.
7837         * tests/test-symlink.c (main): Move guts...
7838         * tests/test-symlink.h (test_symlink): ...into new file.
7839         * tests/test-symlinkat.c (main): Use new files for further
7840         coverage.
7841         (do_symlink, do_readlink): New helper functions.
7842         * modules/symlink-tests (Files): Ship new file.
7843         (Depends-on): Add stdbool.
7844         * modules/readlink-tests (Files): Ship new file.
7845         (Depends-on): Add stdbool.
7846         * modules/symlinkat-tests (Files): Use new files.
7847
7848 2009-09-23  Eric Blake  <ebb9@byu.net>
7849
7850         readlink: document portability issue with symlink length
7851         * doc/posix-functions/lstat.texi (lstat): Mention that some file
7852         systems have bogus st_size on symlinks, and mention the
7853         areadlink-with-size module.
7854         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7855         * doc/posix-functions/readlink.texi (readlink): Mention the
7856         areadlink module, and ERANGE failure.
7857         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7858         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
7859
7860         readlink: fix Solaris 9 bug with trailing slash
7861         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
7862         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
7863         * doc/posix-functions/readlink.texi (readlink): Document this.
7864         * modules/readlink-tests: New test.
7865         * tests/test-readlink.c: Likewise.
7866
7867         readlink: fix cygwin 1.5.x bug with return type
7868         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
7869         * lib/unistd.in.h (readlink): Use ssize_t.
7870         * lib/readlink.c (readlink): Likewise.
7871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7872         * modules/unistd (Makefile.am): Substitute it.
7873         * lib/unistd.in.h (readlink): Declare replacement.
7874         * doc/posix-functions/readlink.texi (readlink): Document this.
7875
7876         symlink: use throughout gnulib
7877         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
7878         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
7879         symlink is not used.
7880         * modules/symlinkat (Depends-on): Add symlink.
7881         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7882         * modules/canonicalize-tests (Depends-on): Likewise.
7883         * modules/lstat-tests (Depends-on): Likewise.
7884         * modules/openat-tests (Depends-on): Likewise.
7885         * modules/remove-tests (Depends-on): Likewise.
7886         * modules/rmdir-tests (Depends-on): Likewise.
7887         * modules/unlink-tests (Depends-on): Likewise.
7888         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
7889         * tests/test-canonicalize.c (symlink): Likewise.
7890         * tests/test-fstatat.c (symlink): Likewise.
7891         * tests/test-lstat.c (symlink): Likewise.
7892         * tests/test-remove.c (symlink): Likewise.
7893         * tests/test-rmdir.c (symlink): Likewise.
7894         * tests/test-unlink.c (symlink): Likewise.
7895         * tests/test-unlinkat.c (symlink): Likewise.
7896
7897         symlink: new module, for Solaris 9 bug
7898         * modules/symlink: New file.
7899         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7900         * lib/symlink.c: Likewise.
7901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7902         * modules/unistd (Makefile.am): Substitute them.
7903         * lib/unistd.in.h (symlink): Declare replacement.
7904         * MODULES.html.sh (File system functions): Mention it.
7905         * doc/posix-functions/symlink.texi (symlink): Likewise.
7906         * modules/symlink-tests: New test.
7907         * tests/test-symlink.c: Likewise.
7908
7909 2009-09-23  Bruno Haible  <bruno@clisp.org>
7910
7911         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
7912         when needed.
7913         Test case: gnulib-tool --import --with-tests atexit inttypes.
7914         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
7915
7916 2009-09-23  Bruno Haible  <bruno@clisp.org>
7917
7918         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
7919         subcommand, not in a subshell.
7920
7921 2009-09-22  Eric Blake  <ebb9@byu.net>
7922
7923         unistd: sort replacement declarations
7924         * lib/unistd.in.h: Sort declarations.
7925
7926         open, openat: minor optimization
7927         * lib/open.c (open): If open succeeded, len is non-zero.
7928         * lib/openat.c (rpl_openat): Likewise.
7929
7930         link-follow: ensure correct result
7931         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
7932         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
7933         distinguish between possible failures.
7934
7935 2009-09-21  Eric Blake  <ebb9@byu.net>
7936
7937         fts: avoid compiler warning
7938         * lib/fts.c (dirent_inode_sort_may_be_useful)
7939         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
7940
7941 2009-09-19  Bruno Haible  <bruno@clisp.org>
7942
7943         * lib/progreloc.c (canonicalize_file_name): New declaration.
7944
7945 2009-09-19  Eric Blake  <ebb9@byu.net>
7946
7947         link: fix quoting
7948         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
7949
7950         openat: fix openat bugs on Solaris 9
7951         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
7952         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
7953         * modules/openat (Depends-on): Add open.
7954         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
7955         * modules/fcntl-h (Makefile.am): Substitute it.
7956         * lib/fcntl.in.h (openat): Declare replacement.
7957         * doc/posix-functions/openat.texi (openat): Document this.
7958
7959         openat: move fstatat and unlinkat into correct files
7960         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
7961         compiled.
7962         * lib/openat.c (fstatat, unlinkat): Move...
7963         * lib/fstatat.c (fstatat): ...into correct files.
7964         * lib/unlinkat.c (unlinkat): Likewise.
7965
7966         openat: fix unlinkat bugs on Solaris 9
7967         * lib/unlinkat.c (unlinkat): New file.
7968         * modules/openat (Depends-on): Add unlink.
7969         (Files): Distribute it.
7970         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
7971         trailing slash behavior is broken.
7972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7973         * modules/unistd (Makefile.am): Substitute it.
7974         * lib/unistd.in.h (unlinkat): Declare replacement.
7975         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
7976
7977         openat: fix fstatat bugs on Solaris 9
7978         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
7979         stat.
7980         * doc/posix-functions/fstatat.texi (fstatat): Document this.
7981
7982         test-unlinkat: enhance test, to expose Solaris 9 bug
7983         * tests/test-unlink.c (main): Factor guts...
7984         * tests/test-unlink.h (test_rmdir_func): ...into new file.
7985         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
7986         * tests/test-rmdir.c (main): Adjust caller.
7987         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
7988         (unlinker): New helper function.
7989         (rmdirat): Enhance check.
7990         * modules/rmdir-tests (Depends-on): Add stdbool.
7991         * modules/unlink-tests (Depends-on): Likewise.
7992         (Files): Add test-unlink.h.
7993         * modules/openat-tests (Files): Likewise.
7994         (Depends-on): Add unlinkdir.
7995
7996         test-fstatat: new test, to expose Solaris 9 bugs
7997         * tests/test-stat.c (main): Factor guts...
7998         * tests/test-stat.h (test_stat_func): ...into new file.
7999         * tests/test-lstat.c (main): Factor guts...
8000         * tests/test-lstat.h (test_lstat_func): ...into new file.
8001         * tests/test-fstatat.c: New file.
8002         * modules/stat-tests (Files): Add test-stat.h.
8003         * modules/lstat-tests (Files): Add test-lstat.h.
8004         (Depends-on): Add stdbool.
8005         * modules/openat-tests (Depends-on): Add pathmax.
8006         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8007         (Makefile.am): Run new test.
8008
8009         remove: new module, for mingw and Solaris 9 bugs
8010         * modules/remove: New file.
8011         * lib/remove.c: Likewise.
8012         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8014         * modules/stdio (Makefile.am): Use them.
8015         * lib/stdio.in.h (remove): Declare replacement.
8016         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8017         * doc/posix-functions/remove.texi (remove): Likewise.
8018         * modules/remove-tests: New test.
8019         * tests/test-remove.c: Likewise.
8020
8021         unlink: new module, for Solaris 9 bug
8022         * modules/unlink: New file.
8023         * lib/unlink.c: Likewise.
8024         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8026         * modules/unistd (Makefile.am): Use them.
8027         * lib/unistd.in.h (stat): Declare replacement.
8028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8029         * doc/posix-functions/unlink.texi (unlink): Likewise.
8030         * modules/unlink-tests: New test.
8031         * tests/test-unlink.c: Likewise.
8032
8033         lstat: fix Solaris 9 bug
8034         * lib/lstat.c (lstat): Also check for trailing slash on
8035         non-symlink, non-directories.  Use stat module to simplify logic.
8036         * doc/posix-functions/lstat.texi (lstat): Document it.
8037         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8038         (configure.ac): Check for symlink.
8039         * tests/test-lstat.c (main): Add more tests.
8040
8041         stat: add as dependency to other modules
8042         * modules/chown (Depends-on): Add stat.
8043         * modules/euidaccess (Depends-on): Likewise.
8044         * modules/fchdir (Depends-on): Likewise.
8045         * modules/isdir (Depends-on): Likewise.
8046         * modules/link (Depends-on): Likewise.
8047         * modules/lstat (Depends-on): Likewise.
8048         * modules/mkdir-p (Depends-on): Likewise.
8049         * modules/modechange (Depends-on): Likewise.
8050         * modules/open (Depends-on): Likewise.
8051         * modules/readlink (Depends-on): Likewise.
8052         * modules/same (Depends-on): Likewise.
8053
8054         stat: fix Solaris 9 bug
8055         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8056         slash.
8057         * lib/stat.c (rpl_stat): Work around it.
8058         * doc/posix-functions/stat.texi (stat): Update documentation.
8059
8060         stat: new module, for mingw bug
8061         * modules/stat: New file.
8062         * lib/stat.c: Likewise.
8063         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8065         * modules/sys_stat (Makefile.am): Use them.
8066         * lib/sys_stat.in.h (stat): Declare replacement.
8067         * lib/openat.c (fstatat): Deal with lstat and stat being function
8068         macros.
8069         * modules/openat (Depends-on): Add inline.
8070         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8071         * doc/posix-functions/stat.texi (stat): Likewise.
8072         * modules/stat-tests: New test.
8073         * tests/test-stat.c: Likewise.
8074
8075 2009-09-19  Jim Meyering  <meyering@redhat.com>
8076
8077         syntax-check: detect unnecessary inclusion of canonicalize.h
8078         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8079
8080 2009-09-19  Eric Blake  <ebb9@byu.net>
8081
8082         canonicalize-lgpl: adjust clients to use correct header
8083         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8084         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8085         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8086         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8087         * lib/progreloc.c (includes): Likewise.
8088
8089 2009-09-19  Jim Meyering  <meyering@redhat.com>
8090
8091         test-posixtm.c: correct a comment
8092         * tests/test-posixtm.c: Correct first-line comment.
8093         Spotted by Eric Blake.
8094
8095 2009-09-16  Jim Meyering  <meyering@redhat.com>
8096
8097         posixtm-tests: make T const-correct; add a test case
8098         * tests/test-posixtm.c (T): Declare const.
8099         Add a test for -(2^31+1).
8100         Remove useless can-succeed-only-in-2002 test.
8101
8102         posixtm-tests: adjust the sole failing test
8103         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8104         expected output matches what mktime now produces.  Cross-checked via
8105         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8106
8107         posixtm: move #ifdef'd tests into a new module
8108         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8109         * tests/test-posixtm.c: ... this new file.
8110         * modules/posixtm-tests: New module.
8111
8112 2009-09-19  Eric Blake  <ebb9@byu.net>
8113
8114         openat: simplify use of at-func.c
8115         * lib/at-func.c (includes): Include prerequisites here, to
8116         simplify requirements on client files.
8117         * lib/openat-priv.h: Add double-inclusion guard.
8118         * lib/faccessat.c (includes): Simplify.
8119         * lib/fchmodat.c (includes): Likewise.
8120         * lib/fchownat.c (includes): Likewise.
8121         * lib/mkdirat.c (includes): Likewise.
8122         * lib/mkfifoat.c (includes): Likewise.
8123         * lib/symlinkat.c (includes): Likewise.
8124
8125         openat: allow return of fd 0
8126         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8127         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8128         unistd-safer.
8129         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8130         <fcntl.h>; this module does not leak fds.
8131         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8132         must be allowed to return 0, leaving openat_safer to add the
8133         safety.
8134         (openat_permissive): Avoid writing to just-opened fd 2 if
8135         restoring the current directory fails.
8136         * lib/openat-die.c (openat_restore_fail): Add comment.
8137         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8138         (save_cwd): Guarantee safe fd, but without use of open_safer.
8139         * tests/test-openat.c: New test.
8140         * modules/openat-tests (Files, Makefile.am): Distribute and build
8141         new file.
8142
8143         relocatable-prog-wrapper: fix build
8144         * modules/relocatable-prog-wrapper (Files): Update name of
8145         canonicalize m4 file, broken on 2009-09-17.
8146         Reported by emad hajjar <aleppos@hotmail.com>.
8147
8148 2009-09-19  Bruno Haible  <bruno@clisp.org>
8149
8150         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8151         * lib/safe-alloc.c: Likewise.
8152         Reported by Ian Beckwith <ianb@erislabs.net>.
8153
8154 2009-09-18  Bruno Haible  <bruno@clisp.org>
8155
8156         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8157         Reported by <erobles@sensacd.com.mx>.
8158
8159 2009-09-17  Eric Blake  <ebb9@byu.net>
8160
8161         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8162         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8163         slashes when checking if last component is missing.
8164         * tests/test-canonicalize.c (main): Test this.
8165
8166         canonicalize, canonicalize-lgpl: honor // if distinct from /
8167         * modules/canonicalize (Files): Add double-slash-root.m4.
8168         * modules/canonicalize-lgpl (Files): Likewise.
8169         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8170         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8171         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8172         fallback definition.
8173         (canonicalize_filename_mode): Use it to protect //.
8174         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8175         (__realpath): Likewise.
8176         * tests/test-canonicalize.c (main): Test this.
8177         * tests/test-canonicalize-lgpl.c (main): Likewise.
8178         * modules/canonicalize-tests (Depends-on): Add same-inode.
8179         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8180
8181         canonicalize-lgpl: fix glibc bug with trailing slash
8182         * m4/canonicalize-lgpl.m4: Move contents...
8183         * m4/canonicalize.m4: ...here.
8184         (gl_CANONICALIZE_LGPL): Factor realpath check...
8185         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8186         glibc 2.3.5 bug, fixed 2005-04-27.
8187         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8188         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8189         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8190         * modules/canonicalize-lgpl (Files): Manage file rename.
8191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8192         * modules/stdlib (Makefile.am): Substitute witness.
8193         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8194         is needed.
8195         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8196         replacement is required.
8197         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8198         * doc/glibc-functions/canonicalize_file_name.texi
8199         (canonicalize_file_name): Document this.
8200         * doc/posix-functions/realpath.texi (realpath): Likewise.
8201
8202         canonicalize-lgpl: reject non-directory with trailing slash
8203         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8204         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8205         catches failures in glibc 2.3.5.
8206         * tests/test-canonicalize.c (main): Likewise.
8207
8208         canonicalize-lgpl: use native realpath if it works
8209         * lib/canonicalize-lgpl.c (realpath): Guard with
8210         FUNC_REALPATH_WORKS.
8211         * lib/stdlib.in.h (realpath): Make declaration optional based on
8212         HAVE_REALPATH.
8213         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8214         native realpath works.
8215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8216         * modules/stdlib (Makefile.am): Substitute witness.
8217
8218         canonicalize, canonicalize-lgpl: use <stdlib.h>
8219         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8220         (Include): Mention <stdlib.h>.
8221         (configure.ac): Mention functions we provide.
8222         * modules/canonicalize (configure.ac): Likewise.
8223         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8224         realpath if canonicalize_file_name is missing.
8225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8226         * modules/stdlib (Makefile.am): Substitute witnesses.
8227         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8228         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8229         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8230         * NEWS: Document this.
8231         * doc/glibc-functions/canonicalize_file_name.texi
8232         (canonicalize_file_name): Likewise.
8233         * doc/posix-functions/realpath.texi (realpath): Likewise.
8234         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8235
8236         test-canonicalize: consolidate into single C program
8237         * tests/test-canonicalize.sh: Delete; move setup into...
8238         * tests/test-canonicalize.c (main): ...the program, making it
8239         easier to run in debugger.  Add some tests.
8240         * modules/canonicalize-tests (Files): Remove unused file.
8241         (Depends-on): Add progname.
8242         (configure.ac, Makefile.am): Simplify.
8243
8244         test-canonicalize-lgpl: consolidate into single C program
8245         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8246         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8247         easier to run in debugger.  Add some tests.
8248         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8249         (configure.ac, Makefile.am): Simplify.
8250
8251         canonicalize: avoid resolvepath
8252         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8253         unnecessary checks.
8254         * lib/canonicalize.c (includes): Simplify.
8255         (canonicalize_file_name): Drop resolvepath implementation.
8256         * modules/canonicalize (Depends-on): Drop filenamecat.
8257
8258         canonicalize: don't lose errno
8259         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8260         over calls to free.
8261
8262         canonicalize: simplify errno handling
8263         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8264         assignment.
8265
8266         canonicalize, canonicalize-lgpl: update module dependencies
8267         * modules/canonicalize (Depends-on): Add extensions, lstat,
8268         pathmax, stdlib.
8269         (Files): Drop pathmax.h.
8270         (configure.ac): Adjust macro name.
8271         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8272         lstat, stdlib, sys_stat.
8273         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8274         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8275         extensions.
8276         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8277         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8278         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8279         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8280         declaration, if available.
8281         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8282         we can rely on the readlink module.
8283         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8284         (includes): Use <unistd.h> unconditionally.
8285
8286 2009-09-17  Eric Blake  <ebb9@byu.net>
8287
8288         maint: make Include sections of modules consistent
8289         * modules/alloca: Use only header name; no need to list #include.
8290         * modules/alloca-opt: Likewise.
8291         * modules/arpa_inet: Likewise.
8292         * modules/canon-host: Likewise.
8293         * modules/configmake: Likewise.
8294         * modules/dirent: Likewise.
8295         * modules/eealloc: Likewise.
8296         * modules/environ: Likewise.
8297         * modules/fchdir: Likewise.
8298         * modules/fcntl: Likewise.
8299         * modules/fcntl-h: Likewise.
8300         * modules/gethrxtime: Likewise.
8301         * modules/gettime: Likewise.
8302         * modules/ignore-value: Likewise.
8303         * modules/inet_ntop: Likewise.
8304         * modules/inet_pton: Likewise.
8305         * modules/inttypes: Likewise.
8306         * modules/isnand-nolibm: Likewise.
8307         * modules/isnanf-nolibm: Likewise.
8308         * modules/mbchar: Likewise.
8309         * modules/mbfile: Likewise.
8310         * modules/mbiter: Likewise.
8311         * modules/mbuiter: Likewise.
8312         * modules/netdb: Likewise.
8313         * modules/netinet_in: Likewise.
8314         * modules/nproc: Likewise.
8315         * modules/pagealign_alloc: Likewise.
8316         * modules/poll: Likewise.
8317         * modules/printf-frexp: Likewise.
8318         * modules/pthread: Likewise.
8319         * modules/putenv: Likewise.
8320         * modules/random_r: Likewise.
8321         * modules/relocatable-prog: Likewise.
8322         * modules/search: Likewise.
8323         * modules/select: Likewise.
8324         * modules/selinux-h: Likewise.
8325         * modules/settime: Likewise.
8326         * modules/signal: Likewise.
8327         * modules/size_max: Likewise.
8328         * modules/socklen: Likewise.
8329         * modules/ssize_t: Likewise.
8330         * modules/stdarg: Likewise.
8331         * modules/stdbool: Likewise.
8332         * modules/stddef: Likewise.
8333         * modules/stdint: Likewise.
8334         * modules/stdio: Likewise.
8335         * modules/stdlib: Likewise.
8336         * modules/string: Likewise.
8337         * modules/strings: Likewise.
8338         * modules/sys_file: Likewise.
8339         * modules/sys_ioctl: Likewise.
8340         * modules/sys_select: Likewise.
8341         * modules/sys_socket: Likewise.
8342         * modules/sys_stat: Likewise.
8343         * modules/sys_time: Likewise.
8344         * modules/sys_times: Likewise.
8345         * modules/sys_utsname: Likewise.
8346         * modules/sys_wait: Likewise.
8347         * modules/sysexits: Likewise.
8348         * modules/time: Likewise.
8349         * modules/times: Likewise.
8350         * modules/tmpfile: Likewise.
8351         * modules/trim: Likewise.
8352         * modules/unistd: Likewise.
8353         * modules/wchar: Likewise.
8354         * modules/wctype: Likewise.
8355
8356 2009-09-17  Bruno Haible  <bruno@clisp.org>
8357
8358         Make getdate.y compile on QNX and NetBSD 5 / i386.
8359         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8360         TIME_T_FITS_IN_LONG_INT.
8361         * lib/getdate.y (long_time_t): New type.
8362         (relative_time): Change type of 'seconds' field to long_time_t.
8363         (get_date): Update types of local variables. Check against overflow
8364         during conversion from long_time_t to time_t.
8365         Reported by Matt Kraai <kraai@ftbfs.org>
8366         and Hasso Tepper <hasso@netbsd.org>.
8367
8368 2009-09-17  Bruno Haible  <bruno@clisp.org>
8369
8370         * modules/COPYING: Update copyright years.
8371         * modules/README: Likeiwse.
8372         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8373         Reported by Ian Beckwith <ianb@erislabs.net>.
8374
8375 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8376
8377         * users.txt: Update references for gnuit package.
8378
8379 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8380
8381         * m4/getdelim.m4: Fix typo in copyright line.
8382
8383 2009-09-17  Bruno Haible  <bruno@clisp.org>
8384
8385         * lib/atoll.c: Use the standard header with GPL copyright.
8386         * lib/argz.in.h: Likewise.
8387         * lib/glob.c: Likewise.
8388         * lib/glob-libc.h: Likewise.
8389         * lib/random_r.c: Likewise.
8390         * lib/siglist.h: Likewise.
8391         * lib/strsignal.c: Likewise.
8392         Reported by Ian Beckwith <ianb@erislabs.net>.
8393
8394 2009-09-17  Eric Blake  <ebb9@byu.net>
8395
8396         rmdir: ensure correct dependency order
8397         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8398
8399 2009-09-17  Bruno Haible  <bruno@clisp.org>
8400
8401         Disable assertion that fails on NetBSD 5 / i386.
8402         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8403         Reported by Sam Steingold <sds@gnu.org>
8404         and Hasso Tepper <hasso@netbsd.org>.
8405
8406 2009-09-16  Eric Blake  <ebb9@byu.net>
8407
8408         unlinkdir: port to mingw
8409         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8410         on which no one can unlink a directory.
8411
8412         stdlib: sort witness names
8413         * modules/stdlib (Makefile.am): Sort replacements.
8414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8415         * lib/stdlib.in.h: Likewise.
8416
8417         parse-duration-tests: avoid link failure
8418         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8419         LIBINTL.
8420         Reported by Tom G. Christensen.
8421
8422         openat-tests: ensure unlinkat behaves like rmdir
8423         * tests/test-rmdir.c (main): Factor guts...
8424         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8425         * modules/rmdir-tests (Files): Ship new file.
8426         * modules/openat-tests: New test.
8427         * tests/test-unlinkat.c: Likewise.
8428
8429         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8430         * modules/rmdir-errno (Status, Notice): Now obsolete.
8431
8432         rmdir: work around cygwin 1.5.x and mingw bugs
8433         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8434         * lib/rmdir.c (rmdir): Work around it.
8435         * modules/rmdir (Status, Notice): No longer obsolete.
8436         (Files): Add dos.m4.
8437         (Depends-on): Add unistd.
8438         (configure.ac): Set witnesses.
8439         (License): Relax to LGPLv2+.
8440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8441         * modules/unistd (Makefile.am): Substitute witnesses.
8442         * lib/unistd.in.h (rmdir): Declare replacement.
8443         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8444         * modules/rmdir-tests: New tests.
8445         * tests/test-rmdir.c: Likewise.
8446
8447 2009-09-15  Eric Blake  <ebb9@byu.net>
8448
8449         fchdir: improve use of replacement functions
8450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8451         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8452         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8453         REPLACE_CLOSEDIR.
8454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8455         * modules/sys_stat (Makefile.am): Substitute correct witness.
8456         * modules/dirent (Makefile.am): Likewise.
8457         * modules/unistd (Makefile.am): Likewise.
8458         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8459         * lib/unistd.in.h (dup): Likewise.
8460         * lib/sys_stat.in.h (fstat): Likewise.
8461
8462         maint: ignore gnulib-tool temp files
8463         * .gitignore: Ignore files created during gnulib-tool --test.
8464
8465 2009-09-13  Jim Meyering  <meyering@redhat.com>
8466
8467         posixtm: don't reject a time that specify "60" as the number of seconds
8468         * lib/posixtm.c (posixtime): The code to reject invalid dates
8469         would also reject a time specified with the .60 suffix.
8470         But POSIX allows that, in order to accommodate leap seconds.
8471         So don't reject it.
8472         (main): Adjust tests accordingly.
8473         * modules/posixtm (Depends-on): Add stpcpy.
8474
8475 2009-09-11  Jim Meyering  <meyering@redhat.com>
8476
8477         announce-gen: include [$release_type] in emitted Subject:
8478         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8479         e.g., [stable] in the emitted Subject: line.
8480
8481 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8482
8483         Remove obsolete macros from several modules.
8484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8485         obsolete Autoconf macros with their modern counterparts.
8486         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8487         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8489         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8490         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8491         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8494         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8495         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8496         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8497         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8498         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8499         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8500         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8501         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8502         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8503         * m4/time_r.m4 (gl_TIME_R): Likewise.
8504         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8505         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8506         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8507
8508         Fix copyright header in build-aux scripts.
8509         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8510         recommendation.
8511         * build-aux/ncftpput-ftp: Likewise.
8512         * build-aux/update-copyright: Likewise.
8513
8514 2009-09-09  Eric Blake  <ebb9@byu.net>
8515
8516         test-link: allow Linux choice of errno
8517         * tests/test-link.c (main): Relax test for alternate error.
8518
8519         strndup: fix improper m4 caching
8520         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8521         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8522         (gl_PREREQ_STRNDUP): Delete.
8523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8524         * modules/string (Makefile.am): Substitute it.
8525         * lib/string.in.h (strndup): Modernize prototype.
8526
8527         getcwd: port to mingw
8528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8529         different from the POSIX assumptions made throughout the getcwd
8530         module; fortunately, the mingw getcwd does not need replacement.
8531         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8532         * modules/getcwd-tests: New test.
8533         * tests/test-getcwd.c: Likewise.
8534
8535         link: fix platform bugs
8536         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8537         * lib/link.c (link): Work around them.  Fix related mingw bug.
8538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8539         * modules/unistd (Makefile.am): Substitute it.
8540         * lib/unistd.in.h (link): Declare replacement.
8541         * doc/posix-functions/link.texi (link): Document this.
8542         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8543
8544         test-link: consolidate into single C program, test more cases
8545         * tests/test-link.sh: Delete.
8546         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8547         at least Cygwin and Solaris.
8548         * modules/link-tests (Files): Remove unused file.
8549         (Depends-on): Add errno, sys_stat.
8550         (Makefile.am): Simplify.
8551
8552 2009-09-08  Bruno Haible  <bruno@clisp.org>
8553
8554         Work around towlower, towupper bug on mingw.
8555         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8556         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8557         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8558         * doc/posix-functions/towupper.texi: Likewise.
8559         Reported by Eric Blake.
8560
8561 2009-09-08  Jim Meyering  <meyering@redhat.com>
8562
8563         build: don't try to run autoheader if we don't use it
8564         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8565         is not used in configure.ac.
8566
8567 2009-09-08  Eric Blake  <ebb9@byu.net>
8568
8569         euidaccess: fix compilation error
8570         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8571
8572         rawmemchr: relax license
8573         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8574         okay.
8575         Reported by Jim Meyering.
8576
8577         mkfifoat: new module
8578         * modules/mkfifoat: New file.
8579         * lib/mkfifoat.c: Likewise.
8580         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8582         * modules/sys_stat (Makefile.am): Use them.
8583         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8584         * MODULES.html.sh (File system functions): Mention module.
8585         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8586         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8587         * modules/mkfifoat-tests: New test.
8588         * tests/test-mkfifoat.c: Likewise.
8589
8590         strchrnul: relax license
8591         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8592         okay.
8593         Reported by Jim Meyering.
8594
8595 2009-09-08  Eric Blake  <ebb9@byu.net>
8596
8597         fstatat: fix compilation on Solaris
8598         * lib/fstatat.c (includes): Add fcntl.h.
8599         Reported by Pádraig Brady.
8600
8601 2009-09-07  Eric Blake  <ebb9@byu.net>
8602
8603         rename: modernize replacement
8604         * modules/rename (Depends-on): Add stdio.
8605         (configure.ac): Declare witness.
8606         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8607         stdio take care of replacement.
8608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8609         * modules/stdio (Makefile.am): Substitute them.
8610         * lib/stdio.in.h (rename): Declare replacement.
8611         * lib/rename.c (includes): Allow cross-compilation to non-windows
8612         machines.
8613         * doc/posix-functions/rename.texi (rename): Improve
8614         documentation.
8615
8616         stdio: sort witness names
8617         * modules/stdio (Makefile.am): Sort replacements.
8618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8619         * lib/stdio.in.h: Likewise.
8620
8621         getcwd: minor cleanups
8622         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8623         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8624
8625         openat: provide more convenience names
8626         * modules/faccessat (configure.ac): Add C witness.
8627         * lib/unistd.in.h (readlinkat): Fix typo.
8628         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8629         convenience wrappers.
8630         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8631         wrappers in syntax checks.
8632
8633 2009-09-06  Eric Blake  <ebb9@byu.net>
8634
8635         doc: fix comments in recent patches
8636         * lib/faccessat.c: Mention correct function.
8637         * lib/fchmodat.c: Likewise.
8638         * lib/fchownat.c: Likewise.
8639         * lib/symlinkat.c: Likewise.
8640         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8641         constants.
8642
8643         faccessat, symlinkat: continue cleanup of previous patch
8644         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8645         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8646         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8648         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8649         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8650         set.
8651
8652 2009-09-06  Bruno Haible  <bruno@clisp.org>
8653
8654         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8655         (fstatat): Declare if GNULIB_FSTATAT is set.
8656         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8657         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8658         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8659         * modules/fcntl-h (Files): Remove m4/openat.m4.
8660         * modules/sys_stat (Files): Remove m4/openat.m4.
8661         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8662         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8663         * modules/unistd (Files): Remove m4/openat.m4.
8664         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8665         GNULIB_OPENAT.
8666         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8667         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8668         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8669         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8670         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8671         gl_OPENAT_DEFAULTS.
8672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8673         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8674         Don't require gl_OPENAT_DEFAULTS.
8675         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8676         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8677         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8678         (gl_OPENAT_DEFAULTS): Remove macro.
8679
8680 2009-09-06  Bruno Haible  <bruno@clisp.org>
8681
8682         * modules/openat (configure.ac): Remove unneeded witness.
8683
8684 2009-09-06  Bruno Haible  <bruno@clisp.org>
8685
8686         Set errno to ENOSYS when a function is entirely unsupported.
8687         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8688         EOPNOTSUPP.
8689         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8690         * modules/chown (Depends-on): Remove errno.
8691
8692 2009-09-06  Bruno Haible  <bruno@clisp.org>
8693
8694         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8695
8696 2009-09-06  Bruno Haible  <bruno@clisp.org>
8697
8698         * lib/sys_stat.in.h: Fix preprocessor command indentation.
8699
8700 2009-09-06  Ben Pfaff  <blp@gnu.org>
8701             Bruno Haible  <bruno@clisp.org>
8702
8703         Work around a glibc bug in strtok_r.
8704         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8705         Undefine if UNDEFINE_STRTOK_R is set.
8706         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8707         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8708         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8710         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8711         UNDEFINE_STRTOK_R.
8712         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8713
8714 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8715
8716         exclude: minor fix
8717         * lib/exclude.c: Include wctype.h
8718
8719 2009-09-06  Akim Demaille  <demaille@gostai.com>
8720
8721         bootstrap: improve error message
8722         * build-aux/bootstrap (find_tool): Upon failure, report the list
8723         of candidates.
8724         Honor the initial value of the envvar.
8725
8726 2009-09-05  Eric Blake  <ebb9@byu.net>
8727
8728         symlinkat: new module
8729         * modules/symlinkat: New file.
8730         * lib/symlinkat.c: Likewise.
8731         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8733         * modules/unistd (Makefile.am): Use them.
8734         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8735         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8736         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8737         * MODULES.html.sh (File system functions): Mention module.
8738         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8739         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8740         * modules/symlinkat-tests: New test.
8741         * tests/test-symlinkat.c: Likewise.
8742
8743         test-openat-safer: add more checks
8744         * tests/test-openat-safer.c (main): Check more code paths.
8745
8746 2009-09-05  Jim Meyering  <meyering@redhat.com>
8747
8748         syntax-check: detect unnecessary inclusion of openat.h
8749         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8750
8751 2009-09-05  Bruno Haible  <bruno@clisp.org>
8752
8753         Support towlower, towupper.
8754         * doc/posix-functions/towlower.texi: Mention module wctype.
8755         * doc/posix-functions/towupper.texi: Likewise.
8756         * lib/wctype.in.h (towlower, towupper): New functions.
8757         * tests/test-wctype.c: Include stdio.h, stdlib.h.
8758         (ASSERT): New macro.
8759         (e): New variable.
8760         (main): Test also towlower, towupper. Test WEOF argument.
8761         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8762
8763 2009-09-05  Bruno Haible  <bruno@clisp.org>
8764
8765         Fix conversion behaviour when the input is invalid.
8766         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
8767         mark occurring in first pass of indirect conversion.
8768         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
8769         input.
8770         Found by clang's static analyzer.
8771
8772 2009-09-05  Bruno Haible  <bruno@clisp.org>
8773
8774         * tests/test-striconveh.c (main): Test indirect conversion on platforms
8775         where direct conversion is possible.
8776
8777 2009-09-04  Eric Blake  <ebb9@byu.net>
8778
8779         openat: fail with ENOENT on empty name
8780         * lib/openat-proc.c (openat_proc_name): Special-case the empty
8781         buffer.
8782
8783         link-follow: fix logic bug in prior patch
8784         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
8785         reversed sense of yes and no in prior patch.  Avoid confusing
8786         compilation failure with desired semantics.
8787
8788         link-follow: accomodate mingw and cross-compilation
8789         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
8790         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
8791         cross-compilation results to -1, to make linkat easier to
8792         implement when cross-compiling.  Trivially support mingw.
8793         * modules/link-follow (configure.ac): Call new name.
8794         * NEWS: Mention this.
8795
8796 2009-09-03  Eric Blake  <ebb9@byu.net>
8797
8798         faccessat: compile replacement
8799         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
8800         needed.
8801
8802         fts: fix compilation error
8803         * lib/fts.c (includes): Re-add "openat.h", for
8804         openat_needs_fchdir.
8805
8806         faccessat: new module
8807         * modules/faccessat: New file.
8808         * lib/faccessat.c: Likewise.
8809         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8811         * modules/unistd (Makefile.am): Use it.
8812         * lib/unistd.in.h (faccessat): Declare it.
8813         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
8814         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
8815         * MODULES.html.sh (File system functions): Mention it.
8816         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
8817         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
8818
8819         euidaccess: prefer POSIX over non-standard implementation
8820         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
8821         * lib/euidaccess.c (euidaccess): Use it if available.
8822
8823         openat: make template easier to use
8824         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
8825         AT_FUNC_F2 to be undefined.
8826         (VALIDATE_FLAG): New macro; use it to reject bad flags.
8827         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
8828         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
8829         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
8830         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
8831         Likewise.
8832         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
8833         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
8834         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
8835         Likewise.
8836
8837         openat: declare in POSIX headers
8838         * NEWS: Mention this.
8839         * modules/openat (configure.ac): Declare witnesses.
8840         (Depends-on): Add fcntl-h, sys_stat, unistd.
8841         (Include): Mention correct headers.
8842         * modules/fcntl-h (Depends-on): Add link-warning.
8843         (Files): Add openat.m4.
8844         (Makefile.am): Substitute witnesses.
8845         * modules/sys_stat (Files, Makefile.am): Likewise.
8846         * modules/unistd (Files, Makefile.am): Likewise.
8847         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
8848         (gl_OPENAT_DEFAULTS): New macro.
8849         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
8850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
8851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
8852         (SYS_STAT_H): Remove unused variable.
8853         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
8854         * lib/fcntl--.h (includes): Remove unneeded header.
8855         * lib/openat-safer.c (includes): Likewise.
8856         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
8857         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
8858         appropriate headers.
8859         (__OPENAT_PREFIX): Delete.
8860         * lib/fcntl.in.h (openat): Provide declaration.
8861         (AT_FDCWD): Fix Solaris bug.
8862         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
8863         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
8864         * lib/fchmodat.c (includes):  Adjust to find declaration.
8865         * lib/fchownat.c (includes): Likewise.
8866         * lib/mkdirat.c (includes): Likewise.
8867         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
8868         still visible.
8869
8870 2009-09-02  Eric Blake  <ebb9@byu.net>
8871
8872         errno: use consistently
8873         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
8874         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
8875         * lib/canonicalize.c (ELOOP): Likewise.
8876         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
8877         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
8878         * lib/lchown.c (EOPNOTSUPP): Likewise.
8879         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
8880         * lib/savewd.c (ESTALE): Likewise.
8881         * lib/settime.c (ENOSYS): Likewise.
8882         * lib/utimens.c (ENOSYS): Likewise.
8883         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
8884         * lib/chdir-safer.c (ELOOP): Likewise.
8885         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
8886         * modules/c-stack (Depends-on): Add errno.
8887         * modules/canonicalize (Depends-on): Likewise.
8888         * modules/chdir-safer (Depends-on): Likewise.
8889         * modules/fdopendir (Depends-on): Likewise.
8890         * modules/inet_ntop (Depends-on): Likewise.
8891         * modules/inet_pton (Depends-on): Likewise.
8892         * modules/lchown (Depends-on): Likewise.
8893         * modules/openat (Depends-on): Likewise.
8894         * modules/savewd (Depends-on): Likewise.
8895         * modules/settime (Depends-on): Likewise.
8896         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
8897
8898         fts: avoid leaking fds
8899         * modules/fts (Depends-on): Add cloexec.
8900         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
8901         flag.
8902
8903         fts: make directory fds more robust
8904         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
8905         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
8906
8907         backupfile, chdir-long, fts, savedir: make safer
8908         * lib/backupfile.c (includes): Use "dirent--.h", since
8909         numbered_backup can write to stderr during readdir.
8910         * lib/savedir.c (includes): Likewise.
8911         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
8912         emulation can write to stderr on failure.
8913         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
8914         * lib/getcwd.c: Document why opendir_safer is unused.
8915         * lib/glob.c: Likewise.
8916         * lib/scandir.c: Likewise.
8917         * lib/openat-proc.c: Likewise, for open_safer.
8918         * modules/backupfile (Depends-on): Add dirent-safer.
8919         * modules/savedir (Depends-on): Likewise.
8920         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
8921         * modules/chdir-long (Depends-on): Add openat-safer.
8922
8923         openat-safer: new module
8924         * modules/openat-safer: New file.
8925         * lib/openat-safer.c: Likewise.
8926         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
8927         * lib/fcntl-safer.h (openat_safer): Declare.
8928         * lib/fcntl--.h (openat): Override.
8929         * MODULES.html.sh (File descriptor based I/O): Mention it.
8930         * lib/openat.h: Add double-inclusion guards.
8931         * lib/openat.c (includes): Only include "fcntl-safer.h", not
8932         "fcntl--.h", so we can implement openat.
8933         * modules/openat-safer-tests: New test.
8934         * tests/test-openat-safer.c: New file.
8935
8936         dirent-safer: new module
8937         * modules/dirent-safer: New file.
8938         * lib/dirent--.h: Likewise.
8939         * lib/dirent-safer.h: Likewise.
8940         * lib/opendir-safer.c: Likewise.
8941         * m4/dirent-safer.m4: Likewise.
8942         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
8943         * modules/dirent-safer-tests: New test.
8944         * tests/test-dirent-safer.c: New file.
8945         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
8946
8947         fdopendir: optimize on mingw
8948         * lib/unistd.in.h (_gl_directory_name): New prototype.
8949         * lib/fchdir.c (_gl_directory_name): Implement it.
8950         (fchdir): Use it to simplify implementation.
8951         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
8952         fchdir, when available, to avoid calling [f]chdir().
8953
8954         fdopendir: split into its own module
8955         * lib/openat.c (fdopendir): Move...
8956         * lib/fdopendir.c: ...into new file.
8957         * modules/fdopendir: New module.
8958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
8959         * modules/openat (Depends-on): Add fdopendir.
8960         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
8961         fdopendir here.
8962         * modules/savedir (Depends-on): Only need fdopendir, not full
8963         openat.
8964         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
8965         * lib/openat.h (fdopendir): Drop prototype.
8966         * lib/dirent.in.h (fdopendir): Provide prototype.
8967         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
8968         * modules/dirent (Makefile.am): Substitute them.
8969         * MODULES.html.sh (File system functions): Mention it.
8970         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
8971         * modules/fdopendir-tests: New file.
8972         * tests/test-fdopendir.c: Likewise.
8973
8974         fchdir: use more consistent macro convention
8975         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
8976         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
8977         REPLACE_FCHDIR, rather than relying on config.h macros.
8978         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
8979         inside a single make-time REPLACE_FCHDIR block, rather than using
8980         the config.h FCHDIR_REPLACEMENT.
8981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
8982         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
8983         Manage fstat replacement.
8984         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
8985         REPLACE_FCHDIR.
8986         * modules/sys_stat (Files): Add m4/unistd_h.m4.
8987         (Makefile.am): Substitute REPLACE_FCHDIR.
8988         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
8989         FCHDIR_REPLACEMENT.
8990         * lib/dup-safer.c (dup_safer): Likewise.
8991         * lib/dup2.c (rpl_dup2): Likewise.
8992         * lib/dup3.c (rpl_dup3): Likewise.
8993         * lib/open.c (rpl_open): Likewise.
8994
8995         fchdir: simplify error handling, and support dup3
8996         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
8997         stdbool, malloc-posix, realloc-posix.
8998         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
8999         (ensure_dirs_slot): Return false on allocation failure.
9000         (rpl_dup2): Delete.
9001         (_gl_register_dup): New function.
9002         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9003         (_gl_register_fd): Close fd on allocation failure.
9004         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9005         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9006         prototype.
9007         (rpl_dup2_fchdir): Delete prototype.
9008         * lib/open.c (open): Update caller.
9009         * lib/dup2.c (dup2): Track fchdir metadata.
9010         * lib/dup3.c (dup3): Likewise.
9011         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9013
9014 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9015
9016         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9017         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9018         don't pass arguments to AC_OUTPUT.
9019
9020 2009-09-02  Bruno Haible  <bruno@clisp.org>
9021
9022         * modules/mkdtemp (License): Relicense under LGPLv2+.
9023         Reported by Paolo Bonzini.
9024
9025 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9026
9027         Replace uses of obsolete autoconf macros in Jim's modules.
9028         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9029         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9030         can evoke a warning from autoconf when run with -Wobsolete
9031         enabled.  They were declared obsolete for good reasons (see
9032         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9033         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9034         should not continue using the deprecated macros.
9035         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9036         obsolete Autoconf macros with modern counterparts.
9037         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9038         * m4/dos.m4 (gl_AC_DOS): Likewise.
9039         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9040         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9041         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9042         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9043         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9044         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9045         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9046         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9047         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9048         Likewise.
9049         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9050         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9051         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9052         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9053         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9054         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9055
9056 2009-09-01  Eric Blake  <ebb9@byu.net>
9057
9058         fchdir: fix off-by-one bug in previous patch
9059         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9060         (_gl_unregister_fd): Delete useless if.
9061
9062 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9063
9064         maint.mk: sort the list of syntax-check rules
9065         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9066         easier to get a sense of progress when the rules are run sequentially
9067         and take a long time.
9068
9069 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9070
9071         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9072         * modules/netinet_in: Likewise.
9073         * modules/sys_file: Likewise.
9074         * modules/sys_ioctl: Likewise.
9075         * modules/sys_select: Likewise.
9076         * modules/sys_socket: Likewise.
9077         * modules/sys_stat: Likewise.
9078         * modules/sys_time: Likewise.
9079         * modules/sys_times: Likewise.
9080         * modules/sys_utsname: Likewise.
9081         * modules/sys_wait: Likewise.
9082
9083 2009-09-01  Jim Meyering  <meyering@redhat.com>
9084
9085         fts: help ensure that return values are not ignored
9086         * lib/fts_.h (__GNUC_PREREQ): Define.
9087         (__attribute_warn_unused_result__): Define.
9088         (fts_children, fts_close, fts_open, fts_read): Declare with
9089         __attribute_warn_unused_result__.
9090
9091         fts: fts_close now fails also when closing a dir file descriptor fails
9092         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9093         and propagate to caller, along with errno.
9094
9095         announce-gen: correct formatting in --help output
9096         * build-aux/announce-gen (usage): Move the one-line description in
9097         --help output "up", to where it belongs, just after Usage:.
9098
9099 2009-08-31  Eric Blake  <ebb9@byu.net>
9100
9101         fchdir: port to mingw
9102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9103         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9104         opened, then use a substitute.
9105         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9106         replacement.
9107         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9108         (_gl_register_fd): No need to check stat if open already filters
9109         all directories.
9110         (fchdir): Fix error condition to match POSIX.
9111         * modules/fchdir (Depends-on): Add sys_stat.
9112         * doc/posix-functions/open.texi (open): Document the limitation.
9113         * modules/fchdir-tests: New file.
9114         * tests/test-fchdir.c: Likewise.
9115
9116         canonicalize: allow cross-testing from cygwin to mingw
9117         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9118         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9119         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9120         Likewise.
9121         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9122         target does not support symlinks.
9123         * tests/test-canonicalize-lgpl.sh: Likewise.
9124
9125         chown: avoid compilation warning on mingw
9126         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9127         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9128         mingw.
9129         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9130         * modules/chown (Depends-on): Add errno.
9131
9132 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9133
9134         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9135         command.
9136
9137 2009-08-31  Jim Meyering  <meyering@redhat.com>
9138
9139         canonicalize: remove useless initialization
9140         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9141         initialization of local, "end".
9142
9143 2009-08-30  Bruno Haible  <bruno@clisp.org>
9144
9145         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9146         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9147         ENOSYS.
9148
9149 2009-08-30  Bruno Haible  <bruno@clisp.org>
9150
9151         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9152         /usr/xpg4/bin/tr when it exists.
9153         * tests/test-pipe-filter-gi1.sh: Likewise.
9154
9155 2009-08-30  Bruno Haible  <bruno@clisp.org>
9156
9157         Work around deficient /usr/bin/id program on Solaris.
9158         * tests/test-file-has-acl.sh (ID): New variable.
9159         * tests/test-set-mode-acl.sh (ID): Likewise.
9160         * tests/test-copy-acl.sh (ID): Likewise.
9161         * tests/test-copy-file.sh (ID): Likewise.
9162
9163 2009-08-30  Bruno Haible  <bruno@clisp.org>
9164
9165         New module 'xstriconveh'.
9166         * lib/xstriconveh.h: New file.
9167         * lib/xstriconveh.c: New file.
9168         * modules/xstriconveh: New file.
9169
9170 2009-08-30  Bruno Haible  <bruno@clisp.org>
9171
9172         Make it easier to use mem_cd_iconveh.
9173         * lib/striconveh.h (iconveh_t): New type.
9174         (iconveh_open, iconveh_close): New declarations.
9175         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9176         with a single 'const iconveh_t *' argument.
9177         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9178         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9179         with a single 'const iconveh_t *' argument.
9180         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9181         * tests/test-striconveh.c (main): Update.
9182         * NEWS: Mention the change.
9183
9184 2009-08-30  Bruno Haible  <bruno@clisp.org>
9185
9186         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9187         problem.
9188
9189 2009-08-30  Bruno Haible  <bruno@clisp.org>
9190
9191         Work around iconv_open problem on Solaris.
9192         * lib/iconv_open-solaris.gperf: New file.
9193         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9195         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9196         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9197         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9198         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9199
9200 2009-08-29  Jim Meyering  <meyering@redhat.com>
9201
9202         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9203         * top/maint.mk (cvs-check): Remove target; it was just an alias
9204         to the better-named vc-diff-check.
9205         (maintainer-distcheck): Remove rule.  It was used only from
9206         the (alpha/beta/major) target, and all of its commands but one
9207         were coreutils-specific.
9208         (vc-dist): Remove rule.
9209         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9210         Run vc-diff-check, not vc-dist.
9211         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9212
9213 2009-08-27  Bruno Haible  <bruno@clisp.org>
9214
9215         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9216         of 0.
9217
9218 2009-08-27  Bruno Haible  <bruno@clisp.org>
9219
9220         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9221         compilers.
9222         * doc/func.texi: Document the SunPRO C bug.
9223
9224 2009-08-27  Bruno Haible  <bruno@clisp.org>
9225
9226         Fix link error on Solaris.
9227         * tests/test-parse-duration.c (xstrdup): Remove function.
9228
9229 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9230
9231         ignore-value: handle pointer types, too
9232         * lib/ignore-value.h (__attribute__): Remove definition.
9233         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9234         of a more concise and more-often effective "(void) i" statement.
9235         (ignore_ptr): New function to suppress warnings from functions that
9236         return pointers, and to make it explicit that one function doesn't
9237         handle all cases.
9238
9239 2009-08-25  Bruno Haible  <bruno@clisp.org>
9240
9241         dup2: work around a Linux bug.
9242         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9243         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9244         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9245         Reported by Simon Josefsson.
9246
9247 2009-08-25  Jim Meyering  <meyering@redhat.com>
9248
9249         libguestfs uses gnulib
9250         * users.txt: Add libguestfs.
9251
9252 2009-08-24  Eric Blake  <ebb9@byu.net>
9253
9254         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9255         * lib/pipe2.c (includes): Add binary-io.h.
9256         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9257
9258 2009-08-24  Bruno Haible  <bruno@clisp.org>
9259
9260         Tolerate declared but missing accept4 syscall.
9261         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9262         available.
9263         * lib/sys_socket.in.h (accept4): If the function is already present,
9264         override it.
9265         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9266         * modules/accept4 (Makefile.am): Compile accept4.c always.
9267         Reported by Paolo Bonzini and Eric Blake.
9268
9269 2009-08-23  Bruno Haible  <bruno@clisp.org>
9270
9271         New module 'accept4'.
9272         * lib/sys_socket.in.h (accept4): New declaration.
9273         * lib/accept4.c: New file.
9274         * m4/accept4.m4: New file.
9275         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9276         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9277         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9278         HAVE_ACCEPT4.
9279         * modules/accept4: New file.
9280         * doc/glibc-functions/accept4.texi: Mention the new module.
9281
9282 2009-08-24  Jim Meyering  <meyering@redhat.com>
9283
9284         progname: also set global program_invocation_name, when possible
9285         Before this change, a libtool-enabled program that calls glibc's
9286         error function would report the program name as
9287         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9288         * modules/progname (configure.ac): Check for a declaration of
9289         program_invocation_name.
9290         * lib/progname.c:  Include <errno.h>.
9291         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9292         Set program_invocation_name.
9293
9294 2009-08-23  Bruno Haible  <bruno@clisp.org>
9295
9296         * lib/dup3.c: Include <string.h>.
9297
9298 2009-08-23  Bruno Haible  <bruno@clisp.org>
9299
9300         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9301         * lib/pipe2.c (pipe2): Likewise.
9302         Suggested by Eric Blake.
9303
9304 2009-08-23  Bruno Haible  <bruno@clisp.org>
9305
9306         Tolerate declared but missing dup3 syscall.
9307         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9308         * lib/unistd.in.h (dup3): If the function is already present,
9309         override it.
9310         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9311         * modules/dup3 (Makefile.am): Compile dup3.c always.
9312         Reported by Paolo Bonzini.
9313
9314 2009-08-23  Bruno Haible  <bruno@clisp.org>
9315
9316         Tolerate declared but missing pipe2 syscall.
9317         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9318         available.
9319         * lib/unistd.in.h (pipe2): If the function is already present,
9320         override it.
9321         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9322         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9323         Reported by Paolo Bonzini.
9324
9325 2009-08-23  Bruno Haible  <bruno@clisp.org>
9326
9327         * lib/pipe2.c (pipe2): Move #ifs inside function.
9328
9329 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9330
9331         quotearg: document limitations of quote_these_too
9332         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9333         those limitations are created.
9334         * lib/quotearg.h (set_char_quoting): Document that digits and
9335         letters that are special after backslash are not permitted.
9336         (quotearg_char): Cross-reference set_char_quoting documentation.
9337
9338 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9339
9340         quotearg: implement custom_quoting_style
9341         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9342         right_quote fields.
9343         (set_custom_quoting): New public function.
9344         (quotearg_buffer_restyled): Add left_quote and right_quote
9345         arguments, handle them very much like locale quoting, and update
9346         all uses.
9347         (quotearg_n_custom): New public function.
9348         (quotearg_n_custom_mem): New public function.
9349         (quotearg_custom): New public function.
9350         (quotearg_custom_mem): New public function.
9351         * lib/quotearg.h: Prototype and document new public functions.
9352         (enum quoting_style): For escape_quoting_style and
9353         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9354         ignored even though they're otherwise like c_quoting_style.
9355         Add custom_quoting_style member and document with comparison to
9356         clocale_quoting_style.
9357         * tests/test-quotearg.c (custom_quotes): New array.
9358         (custom_results): New array.
9359         (main): Extend to test custom quoting.
9360
9361 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9362
9363         quotearg: fix right quote escaping when it's in quote_these_too
9364         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9365         quote, be sure to prepend only one backslash.
9366         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9367         (main): Test it.
9368
9369 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9370
9371         quotearg-tests: test escaping of embedded locale quotes
9372         * tests/test-quotearg.c (struct result_strings): Add member for
9373         new input.
9374         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9375         (inputs): Add new input.
9376         (results_g): Add expected results.
9377         (flag_results): Likewise.
9378         (locale_results): Likewise.
9379         (compare_strings): Check those.
9380
9381 2009-08-23  Bruno Haible  <bruno@clisp.org>
9382
9383         Tests for module 'dup3'.
9384         * modules/dup3-tests: New file.
9385         * tests/test-dup3.c: New file.
9386
9387         New module 'dup3'.
9388         * lib/unistd.in.h (dup3): New declaration.
9389         * lib/dup3.c: New file.
9390         * m4/dup3.m4: New file.
9391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9392         HAVE_DUP3.
9393         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9394         * modules/dup3: New file.
9395         * doc/glibc-functions/dup3.texi: Mention the new module.
9396
9397 2009-08-23  Bruno Haible  <bruno@clisp.org>
9398
9399         Tweak the dup2 test.
9400         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9401         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9402         the test file is still empty. Fix argument order of lseek.
9403
9404 2009-08-23  Bruno Haible  <bruno@clisp.org>
9405
9406         Avoid test link errors when the modules getopt-gnu, gettext are used.
9407         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9408         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9409
9410 2009-08-23  Bruno Haible  <bruno@clisp.org>
9411
9412         Fix getdtablesize() on mingw.
9413         * lib/getdtablesize.c (getdtablesize): Implement differently.
9414         * lib/unistd.in.h (getdtablesize): Improve comment.
9415
9416 2009-08-23  Bruno Haible  <bruno@clisp.org>
9417
9418         New module 'mkostemp'.
9419         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9420         * lib/stdlib.in.h (mksotemp): New declaration.
9421         * lib/mkostemp.c: New file, from glibc with modifications.
9422         * lib/tempname.h (GT_FILE): Remove outdated comment.
9423         (gen_tempname): Add flags argument.
9424         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9425         (__GT_FILE): Map to 1.
9426         (small_open, large_open): Remove macros.
9427         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9428         * lib/mkstemp.c (mkstemp): Update.
9429         * lib/mkdtemp.c (mkdtemp): Likewise.
9430         * m4/mkostemp.m4: New file.
9431         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9432         HAVE_MKOSTEMP.
9433         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9434         HAVE_MKOSTEMP.
9435         * modules/mkostemp: New file, based on modules/mkstemp.
9436         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9437         * NEWS: Mention the change.
9438
9439 2009-08-23  Bruno Haible  <bruno@clisp.org>
9440
9441         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9442         Reported by Eric Blake.
9443
9444 2009-08-23  Bruno Haible  <bruno@clisp.org>
9445
9446         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9447         Reported by Eric Blake.
9448
9449 2009-08-23  Bruno Haible  <bruno@clisp.org>
9450
9451         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9452         * modules/pipe2 (Depends-on): Likewise.
9453
9454 2009-08-23  Eric Blake  <ebb9@byu.net>
9455
9456         fcntl-h: add O_TTY_INIT support
9457         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9458         * tests/test-fcntl-h.c (o): Test it.
9459         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9460
9461         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9462         * modules/fcntl: Move <fcntl.h> header replacement...
9463         * modules/fcntl-h: ...to new name, so as not to collide with
9464         like-named function.
9465         * tests/test-fcntl.c: Rename...
9466         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9467         * modules/fcntl-tests: Rename...
9468         * modules/fcntl-h-tests: ...to this.  Update test file name.
9469         * modules/chdir-long (Depends-on): Update clients.
9470         * modules/chdir-safer (Depends-on): Likewise.
9471         * modules/fcntl-safer (Depends-on): Likewise.
9472         * modules/fts (Depends-on): Likewise.
9473         * modules/mkancesdirs (Depends-on): Likewise.
9474         * modules/mkdir-p (Depends-on): Likewise.
9475         * modules/open (Depends-on): Likewise.
9476         * modules/savewd (Depends-on): Likewise.
9477         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9478         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9479
9480 2009-08-22  Bruno Haible  <bruno@clisp.org>
9481
9482         * modules/binary-io (License): Relicense under LGPL.
9483         * modules/pipe2 (License): Likewise.
9484
9485 2009-08-22  Bruno Haible  <bruno@clisp.org>
9486
9487         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9488         return value.
9489         * lib/pipe-filter-gi.c (filter_init): Likewise.
9490         Reported by Eric Blake.
9491
9492 2009-08-22  Bruno Haible  <bruno@clisp.org>
9493
9494         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9495         * modules/pipe (Depends-on): Add pipe2.
9496
9497 2009-08-22  Bruno Haible  <bruno@clisp.org>
9498
9499         Tests for module 'pipe2'.
9500         * modules/pipe2-tests: New file.
9501         * tests/test-pipe2.c: New file.
9502
9503         New module 'pipe2'.
9504         * lib/unistd.in.h (pipe2): New declaration.
9505         * lib/pipe2.c: New file.
9506         * m4/pipe2.m4: New file.
9507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9508         HAVE_PIPE2.
9509         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9510         * modules/pipe2: New file.
9511         * doc/glibc-functions/pipe2.texi: Mention the new module.
9512
9513 2009-08-22  Bruno Haible  <bruno@clisp.org>
9514
9515         Reference some new glibc functions.
9516         * doc/glibc-functions/accept4.texi: New file.
9517         * doc/glibc-functions/dup3.texi: New file.
9518         * doc/glibc-functions/mkostemp.texi: New file.
9519         * doc/glibc-functions/pipe2.texi: New file.
9520         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9521         (Glibc sys/socket.h): Refer to accept4.
9522         (Glibc unistd.h): Refer to dup3, pipe2.
9523         Reported by Eric Blake.
9524
9525 2009-08-22  Jim Meyering  <meyering@redhat.com>
9526             Bruno Haible  <bruno@clisp.org>
9527
9528         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9529         This makes it so packages using automake-1.11's silent-rules option
9530         can print e.g., a single "GEN    configmake.h" line, rather than
9531         the 30+ statements that perform the job.  If you want to see the
9532         actual commands, you can still run "make V=1".
9533         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9534         so that make output is abbreviated when those variables are defined
9535         appropriately.
9536         * modules/argz: Likewise.
9537         * modules/arpa_inet: Likewise.
9538         * modules/byteswap: Likewise.
9539         * modules/configmake: Likewise.
9540         * modules/dirent: Likewise.
9541         * modules/errno: Likewise.
9542         * modules/fcntl: Likewise.
9543         * modules/float: Likewise.
9544         * modules/fnmatch: Likewise.
9545         * modules/getopt-posix: Likewise.
9546         * modules/glob: Likewise.
9547         * modules/iconv_open: Likewise.
9548         * modules/inttypes: Likewise.
9549         * modules/localcharset: Likewise.
9550         * modules/locale: Likewise.
9551         * modules/math: Likewise.
9552         * modules/netdb: Likewise.
9553         * modules/netinet_in: Likewise.
9554         * modules/poll: Likewise.
9555         * modules/posix_spawnp-tests: Likewise.
9556         * modules/sched: Likewise.
9557         * modules/search: Likewise.
9558         * modules/selinux-h: Likewise.
9559         * modules/signal: Likewise.
9560         * modules/spawn: Likewise.
9561         * modules/stdarg: Likewise.
9562         * modules/stdbool: Likewise.
9563         * modules/stddef: Likewise.
9564         * modules/stdint: Likewise.
9565         * modules/stdio: Likewise.
9566         * modules/stdlib: Likewise.
9567         * modules/string: Likewise.
9568         * modules/strings: Likewise.
9569         * modules/sys_file: Likewise.
9570         * modules/sys_ioctl: Likewise.
9571         * modules/sys_select: Likewise.
9572         * modules/sys_socket: Likewise.
9573         * modules/sys_stat: Likewise.
9574         * modules/sys_time: Likewise.
9575         * modules/sys_times: Likewise.
9576         * modules/sys_utsname: Likewise.
9577         * modules/sys_wait: Likewise.
9578         * modules/sysexits: Likewise.
9579         * modules/time: Likewise.
9580         * modules/unistd: Likewise.
9581         * modules/wchar: Likewise.
9582         * modules/wctype: Likewise.
9583
9584 2009-08-22  Jim Meyering  <meyering@redhat.com>
9585
9586         announce-gen: detect write failure
9587         * build-aux/announce-gen: Add Coda at end.
9588         Remove equivalent-but-more-verbose block at top.
9589
9590 2009-08-19  Akim Demaille  <demaille@gostai.com>
9591
9592         bootstrap: --help to stdout.
9593         * bootstrap (usage): Don't send --help to stderr.
9594         Use a here doc instead of a long string.
9595
9596 2009-08-21  Eric Blake  <ebb9@byu.net>
9597
9598         test-popen-safer: split from test-popen
9599         * tests/test-popen.c (main): Move...
9600         * tests/test-popen.h: ...into new file.
9601         * tests/test-popen-safer2.c: New file.
9602         * modules/popen-tests (Files): Add test-popen.h.
9603         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9604         Suggested by Bruno Haible.
9605
9606         test-fcntl-safer: split from test-open
9607         * tests/test-open.c (main): Move...
9608         * tests/test-open.h: ...into new file.
9609         * tests/test-fcntl-safer.c: New file.
9610         * modules/open-tests (Files): Add test-open.h.
9611         * modules/fcntl-safer-tests: New file.
9612         Suggested by Bruno Haible.
9613
9614         test-fopen-safer: split from test-fopen
9615         * tests/test-fopen.c (main): Move...
9616         * tests/test-fopen.h: ...into new file.
9617         * tests/test-fopen-safer.c: New file.
9618         * modules/fopen-tests (Files): Add test-fopen.h.
9619         * modules/fopen-safer-tests: New file.
9620         Suggested by Bruno Haible.
9621
9622 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9623
9624         popen-safer: test O_CLOEXEC at run-time.
9625         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9626
9627 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9628
9629         fcntl: move more flags to the header
9630         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9631         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9632         * lib/fcntl.in.h: Do both things here.
9633
9634 2009-08-21  Jim Meyering  <meyering@redhat.com>
9635
9636         consistently remove $@-t before redirecting to it
9637         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9638         * modules/alloca-opt: Likewise.
9639         * modules/byteswap: Likewise.
9640         * modules/fnmatch: Likewise.
9641         * modules/getopt-posix: Likewise.
9642         * modules/glob: Likewise.
9643         * modules/poll: Likewise.
9644         * modules/posix_spawnp-tests: Likewise.
9645         * modules/sys_socket: Likewise.
9646         * modules/sysexits: Likewise.
9647
9648 2009-08-21  Eric Blake  <ebb9@byu.net>
9649
9650         popen: simplify access to original popen
9651         * lib/popen.c (rpl_popen): No need to worry about popen being a
9652         macro.
9653         Reported by Bruno Haible.
9654
9655 2009-08-20  Eric Blake  <ebb9@byu.net>
9656
9657         build: avoid some compiler warnings
9658         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9659         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9660         type.
9661         (new_exclude_segment, excluded_file_pattern_p)
9662         (excluded_file_name_p): Reduce scope.
9663         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9664         old-style declaration.
9665
9666 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9667
9668         * tests/test-exclude1.sh: Handle Windows EOL.
9669         * tests/test-exclude2.sh: Likewise.
9670         * tests/test-exclude3.sh: Likewise.
9671         * tests/test-exclude4.sh: Likewise.
9672         * tests/test-exclude5.sh: Likewise.
9673         * tests/test-exclude6.sh: Likewise.
9674         * tests/test-exclude7.sh: Likewise.
9675
9676 2009-08-19  Akim Demaille  <demaille@gostai.com>
9677
9678         bootstrap: find sha1sum when named gsha1sum.
9679         * bootstrap (find_tool): New.
9680         ($SHA1SUM): New.
9681         Use it.
9682
9683 2009-08-20  Jim Meyering  <meyering@redhat.com>
9684
9685         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9686         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9687         expression that converts "." in a file name to "\." in the resulting
9688         regexp.  Start with a dummy statement, so that prior shell variable
9689         definitions are expanded portably.  Reported by Simon Josefsson.
9690
9691 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
9692
9693         Fix polling for writeability of a screen buffer.
9694         * lib/poll.c: Distinguish input and screen buffers for the
9695         Win32 implementation.
9696         * lib/select.c: Likewise.
9697
9698 2009-08-19  Eric Blake  <ebb9@byu.net>
9699
9700         popen-safer: prevent popen from clobbering std descriptors
9701         * modules/popen-safer: New file.
9702         * lib/popen-safer.c: Likewise.
9703         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9704         * lib/stdio--.h (popen): Provide override.
9705         * lib/stdio-safer.h (popen_safer): Provide declaration.
9706         * tests/test-popen.c (includes): Partially test this.
9707         * modules/popen-safer-tests: New file, for more tests.
9708         * tests/test-popen-safer.c: Likewise.
9709         * MODULES.html.sh (file stream based Input/Output): Mention it.
9710
9711         tests: test some of the *-safer modules
9712         * modules/fopen-safer (Depends-on): Add fopen.
9713         * modules/fcntl-safer (Depends-on): Add fcntl.
9714         * modules/stdlib-safer (Depends-on): Add stdlib.
9715         (configure.ac): Set indicator.
9716         * modules/unistd-safer (configure.ac): Likewise.
9717         * modules/tmpfile-safer (configure.ac): Likewise.
9718         (Depends-on): Add tmpfile.
9719         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9720         active.
9721         * tests/test-fopen.c (includes): Test safer versions when they are
9722         in use.
9723         * tests/test-open.c (includes): Likewise.
9724
9725         popen: fix cygwin 1.5 bug when stdin closed
9726         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9727         * modules/popen: New file.
9728         * modules/popen-tests: Likewise.
9729         * tests/test-popen.c: Likewise.
9730         * m4/popen.m4: Likewise.
9731         * lib/popen.c: Likewise.
9732         * lib/stdio.in.h (popen): New declaration.
9733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9734         * modules/stdio (Makefile.am): Likewise.
9735         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9736
9737 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
9738
9739         maint.mk: give full control over update-copyright exclusions
9740         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9741         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9742         (update-copyright): Don't force inclusion of top-level
9743         ChangeLog.  Don't force exclusion of all COPYING files, but make
9744         them the default exclusion instead.
9745
9746 2009-08-16  Bruno Haible  <bruno@clisp.org>
9747
9748         Fix test failures on Solaris 10.
9749         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9750         tests when Solaris iconv() is used.
9751         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9752         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9753         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9754         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9755         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9756
9757 2009-08-16  Bruno Haible  <bruno@clisp.org>
9758
9759         Fix test failures on Solaris 10.
9760         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
9761         'tr' program and pass it as first argument.
9762         * tests/test-pipe-filter-gi1.sh: Likewise.
9763         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
9764         program as first argument.
9765         * tests/test-pipe-filter-gi1.c (main): Likewise.
9766
9767 2009-08-16  Eric Blake  <ebb9@byu.net>
9768
9769         fpurge: fix previous commits
9770         * modules/fpurge (Makefile.am): Make replacement conditional,
9771         partially reverting 2007-04-29 change; missed in previous
9772         attempt.
9773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
9774         is missing.
9775
9776 2009-08-16  Bruno Haible  <bruno@clisp.org>
9777
9778         Clarify fpurge's effect on the file position.
9779         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
9780         * tests/test-fpurge.c (main): Make a second pass for checking the file
9781         position.
9782
9783 2009-08-16  Bruno Haible  <bruno@clisp.org>
9784
9785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
9786         declaration of fpurge is missing.
9787         * tests/test-fpurge.c (main): Check that the file has not more contents
9788         than expected. Close the file before removing it.
9789
9790 2009-08-15  Eric Blake  <ebb9@byu.net>
9791
9792         fpurge: don't wrap working cygwin implementation
9793         * lib/fpurge.c (fpurge): Fix comment typo.
9794         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
9795         1.7 to avoid replacement.
9796         * tests/test-fpurge.c (main): Enhance test.
9797
9798 2009-08-15  Eric Blake  <ebb9@byu.net>
9799         and Jim Meyering  <meyering@redhat.com>
9800
9801         test-update-copyright: skip if perl is insufficient
9802         * tests/test-update-copyright.sh: Failure to run maintainer tool
9803         should not cause testsuite failure on cygwin 1.5.
9804
9805 2009-08-14  Eric Blake  <ebb9@byu.net>
9806
9807         doc: mention more functions added in cygwin 1.7.0
9808         * doc/posix-headers/limits.texi (limits.h): Update for recent
9809         cygwin additions.
9810         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
9811         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9812         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
9813         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
9814         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
9815
9816 2009-08-14  Eric Blake  <ebb9@byu.net>
9817
9818         maint.mk: simplify update-copyright rule
9819         * top/maint.mk (update-copyright-local): Delete, and document how
9820         to do it in cfg.mk instead.
9821         (update-copyright-exclude-regexp): Delete, and document how to do
9822         it in .x-update-copyright instead.
9823         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
9824         exclude ChangeLog.
9825
9826 2009-08-14  Bruno Haible  <bruno@clisp.org>
9827
9828         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
9829
9830 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9831
9832         maint.mk: support update-copyright-env
9833         * top/maint.mk (update-copyright-env): Define place-holder.
9834         (update-copyright): Expand $(update-copyright-env) before
9835         invoking update-copyright.
9836
9837 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9838
9839         update-copyright: implement forced reformatting
9840         * build-aux/update-copyright: Implement and document
9841         UPDATE_COPYRIGHT_FORCE.
9842         * tests/test-update-copyright.sh: Test it.
9843
9844 2009-08-14  Eric Blake  <ebb9@byu.net>
9845         and Bruno Haible  <bruno@clisp.org>
9846
9847         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
9848         * tests/test-locale.c: Revert previous patch related to NULL.
9849         * tests/test-stdio.c: Likewise.
9850         * tests/test-stdlib.c: Likewise.
9851         * tests/test-string.c: Likewise.
9852         * tests/test-unistd.c: Likewise.
9853         * modules/time-tests (Depends-on): Add verify.
9854         * modules/wchar-tests (Depends-on): Likewise.
9855         * tests/test-time.c: Test for NULL compliance.
9856         * tests/test-wchar.c: Likewise.
9857         * modules/locale (Depends-on): Add stddef.
9858         * modules/stdio (Depends-on): Likewise.
9859         * modules/stdlib (Depends-on): Likewise.
9860         * modules/string (Depends-on): Likewise.
9861         * modules/time (Depends-on): Likewise.
9862         * modules/unistd (Depends-on): Likewise.
9863         * modules/wchar (Depends-on): Likewise.
9864         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
9865         * lib/stdlib.in.h (includes): Likewise.
9866         * lib/string.in.h (includes): Likewise.
9867         * lib/time.in.h (includes): Likewise.
9868         * lib/unistd.in.h (includes): Likewise.
9869         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
9870         replaced.
9871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9872         * m4/stddef_h.m4: New file.
9873         * modules/stddef: Likewise.
9874         * lib/stddef.in.h: Likewise.
9875         * modules/stddef-tests: Likewise.
9876         * tests/test-stddef.c: Likewise.
9877         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
9878         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
9879         * doc/posix-headers/locale.texi (locale.h): Likewise.
9880         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
9881         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9882         * doc/posix-headers/string.texi (string.h): Likewise.
9883         * doc/posix-headers/time.texi (time.h): Likewise.
9884         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
9885         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
9886
9887 2009-08-14  Eric Blake  <ebb9@byu.net>
9888
9889         doc: improve git diff of texinfo files
9890         * .gitattributes: Add rule for *.texi files, with hint on how to
9891         use it.
9892         Copied from m4, and based on a report by Bruno Haible.
9893
9894 2009-08-14  Bruno Haible  <bruno@clisp.org>
9895
9896         Disable multithread support by default on Cygwin 1.5.x for real.
9897         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
9898
9899 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9900
9901         update-copyright: much ado about intervals
9902         * build-aux/update-copyright: Implement and document
9903         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
9904         of copyright year intervals.
9905         Also, document UPDATE_COPYRIGHT_YEAR.
9906         * tests/test-update-copyright.sh: Test it.
9907
9908         update-copyright: convert 2-digit to 4-digit years
9909         * build-aux/update-copyright: Implement and document.
9910         * tests/test-update-copyright.sh: Update.
9911
9912 2009-08-14  Jim Meyering  <meyering@redhat.com>
9913
9914         test-exclude: avoid coreutils "make check" failure
9915         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
9916         just as in test-argmatch.c.
9917
9918 2009-08-13  Eric Blake  <ebb9@byu.net>
9919
9920         test-dup2: fix bad assumption
9921         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
9922         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
9923
9924         test-version-etc: fix CRLF portability issue
9925         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
9926         recognize \r.
9927         * tests/test-argp-version-etc-1.sh: Likewise.
9928
9929         getopt: update client modules
9930         * modules/argp (Depends-on): Use getopt-gnu.
9931         * modules/git-merge-changelog (Depends-on): Likewise.
9932         * modules/long-options (Depends-on): Likewise.
9933         * modules/xstrtol (Depends-on): Likewise.
9934
9935 2009-08-13  Simon Josefsson  <simon@josefsson.org>
9936
9937         * tests/test-version-etc.sh: Don't fail on different
9938         project/version.  Don't fail on CRLF differences.  Rewrite to use
9939         multiple -e instead of multiple sed forks, suggested by Eric Blake
9940         <ebb9@byu.net>.
9941         * tests/test-argp-version-etc-1.sh: Likewise.
9942
9943 2009-08-13  Simon Josefsson  <simon@josefsson.org>
9944
9945         * tests/test-version-etc.sh: Don't fail on different
9946         project/version.
9947
9948 2009-08-12  Bruno Haible  <bruno@clisp.org>
9949
9950         Tests for modules 'getopt-posix', 'getopt-gnu'.
9951         * modules/getopt-posix-tests: New file.
9952         * tests/test-getopt.c: New file.
9953         * tests/test-getopt.h: New file.
9954         * tests/test-getopt_long.h: New file.
9955
9956         New modules 'getopt-posix', 'getopt-gnu'.
9957         * modules/getopt-gnu: New file, renamed from modules/getopt.
9958         * modules/getopt-posix: New file.
9959         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
9960         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
9961         (gl_GETOPT): Remove macro.
9962         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
9963         Disable the test against BSD systems that declare optreset. Test
9964         against mingw bug. Test against lack of support of optional arguments
9965         on many platforms.
9966         * doc/glibc-headers/getopt.texi: Update module name and list of
9967         relevant platforms.
9968         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
9969         'getopt-gnu' and more portability problems.
9970         * NEWS: Mention the changes.
9971
9972 2009-08-12  Bruno Haible  <bruno@clisp.org>
9973
9974         Ensure that optarg etc. get declared by <unistd.h>.
9975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
9976         AC_USE_SYSTEM_EXTENSIONS.
9977         * modules/getopt (Depends-on): Add 'extensions'.
9978
9979 2009-08-12  Bruno Haible  <bruno@clisp.org>
9980
9981         Avoid test link errors.
9982         * modules/pipe-filter-ii-tests (Makefile.am): Define
9983         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
9984         * modules/pipe-filter-gi-tests (Makefile.am): Define
9985         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
9986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9987
9988 2009-08-12  Bruno Haible  <bruno@clisp.org>
9989
9990         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
9991         gl_GETOPT_SUBSTITUTE before.
9992         (gl_GETOPT): Use it.
9993         * m4/argp.m4 (gl_ARGP): Update.
9994         Reported by Sergey Poznyakoff.
9995
9996         * m4/getopt.m4: Reorder macros.
9997         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
9998         (gl_GETOPT_SUBSTITUTE): Remove macro.
9999
10000 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10001
10002         Minor improvement in gitlog-to-changelog
10003
10004         * build-aux/gitlog-to-changelog: New option `--format' makes
10005         output format string configurable.
10006
10007 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10008
10009         Optimize exclude: use hash tables for non-wildcard patterns.
10010
10011         * lib/exclude.c: Include hash.h and mbuiter.h
10012         (struct exclude_pattern, exclude_segment): New data types.
10013         (struct exclude): Rewrite.
10014         (fnmatch_pattern_has_wildcards): New function.
10015         (new_exclude_segment, free_exclude_segment): New functions.
10016         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10017         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10018         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10019         * modules/exclude: Depend on hash and mbuiter.
10020
10021         * modules/exclude-tests: New file.
10022         * tests/test-exclude.c: New file.
10023         * tests/test-exclude1.sh: New file.
10024         * tests/test-exclude2.sh: New file.
10025         * tests/test-exclude3.sh: New file.
10026         * tests/test-exclude4.sh: New file.
10027         * tests/test-exclude5.sh: New file.
10028         * tests/test-exclude6.sh: New file.
10029         * tests/test-exclude7.sh: New file.
10030
10031 2009-08-12  Bruno Haible  <bruno@clisp.org>
10032
10033         Ensure that getopt() gets declared by <unistd.h>.
10034         * lib/unistd.in.h: Conditionally include getopt.h.
10035         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10036         Set GNULIB_UNISTD_H_GETOPT.
10037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10038         GNULIB_UNISTD_H_GETOPT.
10039         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10040
10041 2009-08-12  Bruno Haible  <bruno@clisp.org>
10042
10043         Clarify logic.
10044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10045         gl_replace_getopt instead of GETOPT_H.
10046
10047 2009-08-12  Bruno Haible  <bruno@clisp.org>
10048
10049         * m4/getopt.m4: Add comments.
10050
10051 2009-08-12  Bruno Haible  <bruno@clisp.org>
10052
10053         Disable multithread support by default on Cygwin 1.5.x.
10054         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10055         set gl_use_threads=no if not specified otherwise.
10056
10057 2009-08-11  Bruno Haible  <bruno@clisp.org>
10058
10059         Avoid compilation error on NetBSD 5.0.
10060         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10061         * tests/test-stdio.c: Likewise.
10062         * tests/test-stdlib.c: Likewise.
10063         * tests/test-string.c: Likewise.
10064         * tests/test-unistd.c: Likewise.
10065         Reported by Greg Troxel <gdt@ir.bbn.com>
10066         at <https://savannah.gnu.org/support/?106973>.
10067
10068 2009-08-11  Bruno Haible  <bruno@clisp.org>
10069
10070         * modules/dup2-tests (Depends-on): Remove close.
10071
10072         Undo 2009-07-19 commit.
10073         * modules/acl-tests (Depends-on): Remove close.
10074         * modules/binary-io-tests (Depends-on): Likewise.
10075         * modules/closein-tests (Depends-on): Likewise.
10076         * modules/flock-tests (Depends-on): Likewise.
10077         * modules/fsync-tests (Depends-on): Likewise.
10078         * modules/lseek-tests (Depends-on): Likewise.
10079         * modules/pipe-tests (Depends-on): Likewise.
10080         * modules/posix_spawn-tests (Depends-on): Likewise.
10081         * modules/posix_spawnp-tests (Depends-on): Likewise.
10082         * modules/stat-time-tests (Depends-on): Likewise.
10083         * modules/yesno-tests (Depends-on): Likewise.
10084
10085 2009-08-10  Bruno Haible  <bruno@clisp.org>
10086
10087         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10088
10089 2009-08-10  Bruno Haible  <bruno@clisp.org>
10090
10091         Fix a gcc warning.
10092         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10093
10094 2009-08-10  Bruno Haible  <bruno@clisp.org>
10095
10096         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10097         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10098         not only the first time.
10099         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10100         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10101         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10102         is 1, not only the the first time.
10103
10104 2009-08-10  Bruno Haible  <bruno@clisp.org>
10105
10106         Make it possible to use module 'gethostname' without module 'close'.
10107         * lib/unistd.in.h (close): Evoke a link error only if
10108         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10110         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10111         * modules/unistd (Makefile.am): Substitute
10112         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10113         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10114         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10115         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10116         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10117         * modules/sys_ioctl (Makefile.am): Substitute
10118         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10119         * modules/socket (configure.ac): On native Windows, set
10120         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10121         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10122         Reported by Sam Steingold <sds@gnu.org>.
10123
10124 2009-08-10  Bruno Haible  <bruno@clisp.org>
10125
10126         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10127         * modules/ioctl (configure.ac): Likewise.
10128
10129 2009-08-10  Bruno Haible  <bruno@clisp.org>
10130
10131         Avoid collision between gnulib wrapper and libintl wrapper.
10132         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10133         already defined in intl/printf.c.
10134         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10135         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10136
10137 2009-08-09  Bruno Haible  <bruno@clisp.org>
10138
10139         Make <sys/select.h> really self-contained, also on Solaris 10.
10140         * lib/sys_select.in.h: Include <string.h>.
10141         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10142         Solaris 10 problem.
10143         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10144         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10145         Reported by Jim Meyering.
10146
10147 2009-08-09  Bruno Haible  <bruno@clisp.org>
10148
10149         Avoid warnings from 'aclocal' that are due to a use of macro name
10150         AM_XGETTEXT_OPTION that is not defined in automake.
10151         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10152         automake.
10153         * modules/error (configure.ac): Likewise.
10154         * modules/propername (configure.ac): Likewise.
10155         * modules/vasprintf (configure.ac): Likewise.
10156         * modules/verror (configure.ac): Likewise.
10157         * modules/xprintf (configure.ac): Likewise.
10158         * modules/xvasprintf (configure.ac): Likewise.
10159
10160 2009-08-08  Bruno Haible  <bruno@clisp.org>
10161
10162         Avoid compilation error in C++ mode.
10163         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10164         Reported by Sam Steingold <sds@gnu.org>.
10165
10166 2009-08-08  Bruno Haible  <bruno@clisp.org>
10167
10168         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10169         for the various Unix platforms.
10170         * doc/posix-headers/limits.texi: Update platforms list regarding
10171         HOST_NAME_MAX.
10172         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10173
10174 2009-08-07  Jim Meyering  <meyering@redhat.com>
10175
10176         selinux-at: fix typo in a comment
10177         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10178         Spotted by Paolo Bonzini.
10179
10180         selinux-at: remove redundant m4 code, add documentation
10181         * modules/selinux-at (configure.ac): Remove redundant code.
10182         LIB_SELINUX is already set via the dependent module, selinux-h.
10183         (Include): Add quotes around selinux-at.h.
10184         * lib/selinux-at.h: Add documentation.
10185         Reported by Bruno Haible in
10186         http://marc.info/?l=gnulib-bug&m=124958988300749
10187
10188 2009-08-07  Bruno Haible  <bruno@clisp.org>
10189
10190         Avoid link error on MacOS X 10.3 and 10.4.
10191         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10192         on non-ELF systems.
10193         * lib/argp-pv.c (argp_program_version): Likewise.
10194         Reported by Simon Josefsson.
10195
10196 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10197
10198         * tests/test-version-etc.sh: Use $EXEEXT.
10199
10200 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10201
10202         update-copyright: update documentation to point to maint.mk
10203         * build-aux/update-copyright: Here.
10204
10205 2009-08-06  Jim Meyering  <meyering@redhat.com>
10206
10207         maint.mk: support update-copyright-local
10208         * top/maint.mk (update-copyright-local): Define place-holder.
10209         (update-copyright): Depend on $(update-copyright-local).
10210
10211 2009-08-06  Jim Meyering  <meyering@redhat.com>
10212
10213         selinux-at: new module
10214         Initially written for coreutils, this module will soon be
10215         used by findutils, too.
10216         * MODULES.html.sh [Misc]: Add selinux-at.
10217         * lib/selinux-at.h: New file, from coreutils.
10218         * lib/selinux-at.c: Likewise.
10219         * modules/selinux-at: Likewise.
10220         (License): Change from LGPL to GPL, since it depends
10221         on the GPL'd openat module.
10222
10223         doc: update README
10224         * README: Remove references to cogito.
10225         Remove cvs-repo-updating instructions from 2007.
10226         Don't imply that CVS is better if you have limited disk space.
10227
10228 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10229
10230         update-copyright: support C-style comments
10231         * build-aux/update-copyright: Implement and document.
10232         * tests/test-update-copyright.sh: Test.
10233
10234 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10235
10236         update-copyright: support omitted "(C)"
10237         * build-aux/update-copyright: Implement and document.  Also,
10238         allow variable whitespace before "(C)".
10239         * tests/test-update-copyright.sh: Test.
10240
10241 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10242
10243         update-copyright: don't trip on non-FSF copyright statements
10244         * build-aux/update-copyright: Fix so that the first correctly
10245         formatted FSF copyright statement is recognized no matter what
10246         appears before it.  Update documentation.
10247         * tests/test-update-copyright.sh: Test that.
10248
10249 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10250
10251         update-copyright: clean up code a little
10252         * build-aux/update-copyright: Append "_re" to the name of any
10253         variable holding a regular expression.
10254         Replace "old" and "new" with "stmt" in variable names.
10255         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10256         handled correctly.
10257         Format code more consistently.
10258
10259 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10260
10261         update-copyright-tests: improve portability
10262         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10263         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10264
10265 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10266
10267         update-copyright: support @copyright{} and &copy;
10268         * build-aux/update-copyright: Implement and document.
10269         * tests/test-update-copyright.sh: Test.
10270
10271 2009-08-04  Jim Meyering  <meyering@redhat.com>
10272
10273         update-copyright-tests: correctly test EOL=\r\n handling
10274         * tests/test-update-copyright.sh: Put \r at the end of some lines
10275         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10276
10277         maint.mk: make update-copyright exclusion list more configurable
10278         * top/maint.mk (update-copyright): Default to excluding COPYING,
10279         but allow an override, in case someone does want to update that file.
10280
10281         maint.mk: don't update copyright date in COPYING
10282         * top/maint.mk (update-copyright): Exclude COPYING.
10283
10284         maint.mk: add a copyright-updating rule
10285         * top/maint.mk (update-copyright): New rule.
10286         Derived from coreutils/Makefile.am.
10287
10288         update-copyright: rename some variables
10289         * build-aux/update-copyright: Rename a few variables for clarity.
10290         Tweak syntax.  List Joel E. Denny as coauthor.
10291
10292 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10293
10294         update-copyright: fix bug for 2-digit last year and add tests
10295         * build-aux/update-copyright: Fix bug.
10296         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10297         specified.
10298         * modules/update-copyright-tests: New
10299         * tests/test-update-copyright.sh: New.
10300
10301 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10302
10303         update-copyright: handle leading tabs in line prefix
10304         * build-aux/update-copyright: Count leading tabs as 8 spaces
10305         when computing margin.  This helps with the formatting of
10306         ChangeLogs, for example.
10307         Fix documentation a little.
10308
10309 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10310
10311         update-copyright: support EOL=\r\n
10312         * build-aux/update-copyright: Implement that.
10313
10314 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10315
10316         update-copyright: automatically format copyright statements
10317         * build-aux/update-copyright: Implement that.
10318         Also, be a little more predictable and safer by always failing
10319         when the full copyright format is not perfectly recognized as an
10320         unbroken whole.  Discussed at
10321         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10322         Rewrite documentation.
10323
10324 2009-08-03  Bruno Haible  <bruno@clisp.org>
10325
10326         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10327
10328 2009-08-02  Bruno Haible  <bruno@clisp.org>
10329
10330         Tests for module 'uname'.
10331         * modules/uname-tests: New file.
10332         * tests/test-uname.c: New file.
10333
10334         New module 'uname'.
10335         * lib/uname.c: New file.
10336         * m4/uname.m4: New file.
10337         * modules/uname: New file.
10338         * doc/posix-functions/uname.texi: Mention the new module.
10339
10340 2009-08-02  Bruno Haible  <bruno@clisp.org>
10341
10342         Tests for module 'sys_utsname'.
10343         * modules/sys_utsname-tests: New file.
10344         * tests/test-sys_utsname.c: New file.
10345
10346         New module 'sys_utsname'.
10347         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10348         * m4/sys_utsname_h.m4: New file.
10349         * modules/sys_utsname: New file.
10350         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10351
10352 2009-08-02  Bruno Haible  <bruno@clisp.org>
10353
10354         Implicitly initialize the sockets library.
10355         * lib/gethostname.c: Include sockets.h.
10356         (rpl_gethostname): Invoke gl_sockets_startup.
10357         * lib/socket.c: Include sockets.h.
10358         (rpl_socket): Invoke gl_sockets_startup.
10359         * modules/gethostname (Depends-on): Add sockets.
10360         * modules/socket (Depends-on): Likewise.
10361         * tests/test-poll.c: Don't include sockets.h.
10362         (main): Don't invoke gl_sockets_startup.
10363         * tests/test-select.c: Don't include sockets.h.
10364         (main): Don't invoke gl_sockets_startup.
10365
10366 2009-08-02  Bruno Haible  <bruno@clisp.org>
10367
10368         Allow multiple calls to gl_sockets_startup.
10369         * lib/sockets.c (initialized_sockets_version): New variable.
10370         (gl_sockets_startup): Do nothing if already called for this or a higher
10371         version.
10372         (gl_sockets_cleanup): Reset initialized_sockets_version.
10373
10374 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10375
10376         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10377         different project/version.
10378
10379 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10380             Bruno Haible  <bruno@clisp.org>
10381
10382         Tests for module 'pipe-filter-gi'.
10383         * modules/pipe-filter-gi-tests: New file.
10384         * tests/test-pipe-filter-gi1.sh: New file.
10385         * tests/test-pipe-filter-gi1.c: New file.
10386         * tests/test-pipe-filter-gi2.sh: New file.
10387         * tests/test-pipe-filter-gi2-main.c: New file.
10388         * tests/test-pipe-filter-gi2-child.c: New file.
10389
10390         New module 'pipe-filter-gi'.
10391         * lib/pipe-filter-gi.c: New file.
10392         * modules/pipe-filter-gi: New file.
10393
10394 2009-08-02  Bruno Haible  <bruno@clisp.org>
10395             Paolo Bonzini  <bonzini@gnu.org>
10396
10397         Tests for module 'pipe-filter-ii'.
10398         * modules/pipe-filter-ii-tests: New file.
10399         * tests/test-pipe-filter-ii1.sh: New file.
10400         * tests/test-pipe-filter-ii1.c: New file.
10401         * tests/test-pipe-filter-ii2.sh: New file.
10402         * tests/test-pipe-filter-ii2-main.c: New file.
10403         * tests/test-pipe-filter-ii2-child.c: New file.
10404
10405         New module 'pipe-filter-ii'.
10406         * lib/pipe-filter.h: New file.
10407         * lib/pipe-filter-ii.c: New file.
10408         * lib/pipe-filter-aux.h: New file.
10409         * modules/pipe-filter-ii: New file.
10410
10411 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10412
10413         * lib/gc-libgcrypt.c: Change copyright to FSF.
10414         * lib/gc-gnulib.c: Likewise.
10415
10416 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10417
10418         * lib/gethostname.c: Include limits.h.
10419
10420 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10421             Bruno Haible  <bruno@clisp.org>
10422
10423         Ensure HOST_NAME_MAX as part of the gethostname module.
10424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10425         define also HOST_NAME_MAX.
10426         * tests/test-gethostname.c: Include <limits.h>.
10427         (main): Check also HOST_NAME_MAX.
10428         * doc/posix-headers/limits.texi: Document the mingw problem.
10429
10430 2009-08-02  Bruno Haible  <bruno@clisp.org>
10431
10432         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10433         Add comments.
10434
10435 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10436
10437         * lib/gethostname.c: Add Windows wrapper.
10438         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10439         * modules/gethostname: Depend on sys_socket & errno, for also
10440         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10441         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10442
10443 2009-07-31  Jim Meyering  <meyering@redhat.com>
10444
10445         getloadavg: fix symbol name in comment
10446         * lib/getloadavg.c: Correct a typo I introduced when adding
10447         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10448         Matt Kraai spotted the problem.
10449
10450 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10451
10452         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10453         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10454         code also if ! defined N_NAME_POINTER.
10455         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10456         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10457         but the n_name member is a 12-byte array.
10458
10459 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10460
10461         update-copyright: generalize comment handling
10462         * build-aux/update-copyright: Handle copyright statements
10463         within more comment styles.
10464         Document usage.
10465         Report any file with an external copyright holder or parse failure.
10466
10467 2009-07-29  Jim Meyering  <meyering@redhat.com>
10468
10469         mktime: correct setting of REPLACE_MKTIME
10470         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10471
10472         update-copyright: new module
10473         * modules/update-copyright: New file.
10474         * build-aux/update-copyright: New file.
10475         * MODULES.html.sh (maint+release support): Add update-copyright.
10476
10477 2009-07-27  Bruno Haible  <bruno@clisp.org>
10478
10479         Fix compilation error when <ctime> is used and mktime is replaced.
10480         * lib/time.in.h (mktime): New declaration.
10481         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10482         REPLACE_MKTIME instead of defining mktime in config.h.
10483         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10484         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10485         Reported by Ross McFarland <rwmcfa1@neces.com>.
10486
10487 2009-07-27  Bruno Haible  <bruno@clisp.org>
10488
10489         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10490         Reported by Matt Kraai <mkraai@beckman.com>.
10491
10492 2009-07-25  Jim Meyering  <meyering@redhat.com>
10493
10494         maint.mk: avoid warnings about missing files
10495         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10496         diagnostic when .prev-version does not exist.
10497         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10498         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10499         nonexistent cfg.mk.
10500         Suggestions from Simon Josefsson.
10501
10502 2009-07-25  Bruno Haible  <bruno@clisp.org>
10503
10504         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10505         defined as macros. Needed on QNX 6.4.1.
10506         Reported by Matt Kraai <mkraai@beckman.com>.
10507
10508 2009-07-23  Jim Meyering  <meyering@redhat.com>
10509
10510         maint.mk: invoke "make dist" with a working value of XZ_OPT
10511         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10512
10513 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10514
10515         Make fseeko.c compile on QNX.
10516         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10517
10518 2009-07-22  Peter Simons  <simons@cryp.to>
10519
10520         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10521         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10522         * lib/md4.h: Likewise.
10523         * lib/md5.h: Likewise.
10524         * lib/sha1.h: Likewise.
10525         * lib/sha256.h: Likewise.
10526         * lib/sha512.h: Likewise.
10527
10528         tests-sha1: don't assign literal string to 'char *' variable
10529         * tests/test-sha1.c (main): Declare locals with "const" to match
10530         attributes of the right hand side.
10531
10532 2009-07-21  Eric Blake  <ebb9@byu.net>
10533
10534         dup2: fix more mingw problems
10535         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10536         fd to itself.
10537         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10538         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10539         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10540         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10541         care of mingw bugs.
10542
10543 2009-07-21  Jim Meyering  <meyering@redhat.com>
10544
10545         vc-list-files: avoid failure when /bin/sh is dash
10546         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10547         On some Debian based systems, /bin/sh is a symlink to dash, and running
10548         this command would omit the "/" following each 'tests' prefix:
10549           dash -x build-aux/vc-list-files -C . tests
10550         That is because bash and dash work differently:
10551           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10552           bash ok
10553           dash odd
10554
10555 2009-07-21  Eric Blake  <ebb9@byu.net>
10556
10557         dup2-tests: test previous patch
10558         * modules/dup2-tests: New file.
10559         * tests/test-dup2.c: Likewise.
10560         * tests/test-open.c (main): Avoid unspecified behavior.
10561         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10562         test.
10563
10564         dup2: work around mingw and cygwin 1.5 bug
10565         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10567         * modules/unistd (Makefile.am): Substitute it.
10568         * lib/unistd.in.h (dup2): Declare the replacement.
10569         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10570         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10571         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10572         * modules/execute (Depends-on): Add dup2.
10573         * modules/fseterr (Depends-on): Likewise.
10574         * modules/pipe (Depends-on): Likewise.
10575         * modules/posix_spawn-internal (Depends-on): Likewise.
10576
10577 2009-07-21  Bruno Haible  <bruno@clisp.org>
10578
10579         * modules/.gitattributes: New file.
10580
10581 2009-07-20  Bruno Haible  <bruno@clisp.org>
10582
10583         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10584         (main): Use it.
10585
10586 2009-07-20  Eric Blake  <ebb9@byu.net>
10587
10588         test-pipe: make a bit more robust.
10589         * tests/test-pipe.c (myerr): Allow error messages regardless of
10590         what we do to stderr.
10591         (test_pipe): Rearrange to avoid deadlock.
10592         (child_main): Try a larger read, to ensure we avoided deadlock.
10593         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10594         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10595         if misused.
10596
10597 2009-07-19  Jim Meyering  <meyering@redhat.com>
10598
10599         fts: avoid false-positive cycle-detection
10600         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10601         for each new command line argument.
10602
10603 2009-07-19  Bruno Haible  <bruno@clisp.org>
10604
10605         Fix build error on mingw with the modules sys_select and unistd.
10606         * modules/acl-tests (Depends-on): Add close.
10607         * modules/binary-io-tests (Depends-on): Likewise.
10608         * modules/closein-tests (Depends-on): Likewise.
10609         * modules/flock-tests (Depends-on): Likewise.
10610         * modules/fsync-tests (Depends-on): Likewise.
10611         * modules/lseek-tests (Depends-on): Likewise.
10612         * modules/pipe-tests (Depends-on): Likewise.
10613         * modules/posix_spawn-tests (Depends-on): Likewise.
10614         * modules/posix_spawnp-tests (Depends-on): Likewise.
10615         * modules/stat-time-tests (Depends-on): Likewise.
10616         * modules/yesno-tests (Depends-on): Likewise.
10617
10618 2009-07-19  Bruno Haible  <bruno@clisp.org>
10619
10620         Unify conditionals.
10621         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10622         macros, not at the compiler macros.
10623         * lib/pipe.c: Likewise.
10624         * lib/execute.c: Likewise.
10625         * lib/spawni.c: Likewise.
10626
10627 2009-07-19  Bruno Haible  <bruno@clisp.org>
10628
10629         Fix handling of closed stdin/stdout/stderr on mingw.
10630         * lib/w32spawn.h: Include unistd.h.
10631         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10632         file descriptor with O_NOINHERIT flag.
10633         (fd_safer_noinherit): New function, based on fd-safer.c.
10634         (dup_safer_noinherit): New function, based on dup-safer.c.
10635         (undup_safer_noinherit): New function.
10636         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10637         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10638         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10639         instead of fd_safer.
10640         * tests/test-pipe.c: Include <windows.h>.
10641         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10642
10643         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10644         from main.
10645         (test_pipe): Pass an extra argument for disambiguation.
10646         (main): Invoke parent_main or child_main.
10647
10648         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10649         consistently.
10650
10651 2009-07-18  Eric Blake  <ebb9@byu.net>
10652
10653         test-pipe: fix mingw build
10654         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10655
10656 2009-07-18  Bruno Haible  <bruno@clisp.org>
10657
10658         * modules/pipe-tests (Makefile.am): Fix typo.
10659
10660 2009-07-18  Eric Blake  <ebb9@byu.net>
10661
10662         error: fix mingw build
10663         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10664         Reported by Bruno Haible.
10665
10666         error: avoid undefined use of stdout
10667         * lib/error.c (error, error_at_line): Check that fd 1 is open
10668         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10669         is handling faults and the close_stdout module wants to report the
10670         detection of closed stdout as an error.
10671
10672 2009-07-17  Eric Blake  <ebb9@byu.net>
10673
10674         pipe: be robust in face of closed fds
10675         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10676         should cause child to misbehave.
10677         * modules/pipe-tests: New module.
10678         * tests/test-pipe.c: New file.
10679         * tests/test-pipe.sh: New file.
10680         Reported by Akim Demaille.
10681
10682 2009-07-14  Bruno Haible  <bruno@clisp.org>
10683
10684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10685         Reported by anonymous kc.
10686
10687 2009-07-07  Jim Meyering  <meyering@redhat.com>
10688
10689         maint.mk: don't look for translatable strings in *.m4 or *.mk
10690         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10691         when searching for translatable strings.
10692
10693 2009-07-05  Jim Meyering  <meyering@redhat.com>
10694
10695         remove superfluous parentheses in STREQ definition
10696         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10697         * lib/getugroups.c (STREQ): Likewise.
10698         * lib/fnmatch.c (STREQ): Likewise.
10699         Spotted by Bruno Haible.
10700
10701 2009-07-04  Jim Meyering  <meyering@redhat.com>
10702
10703         argv-iter: new module
10704         * MODULES.html.sh: Add argv-iter.
10705         * lib/argv-iter.c, lib/argv-iter.h: New files.
10706         * modules/argv-iter: New file.
10707         * modules/argv-iter-tests: New file.
10708         * tests/test-argv-iter.c: Test it.
10709
10710 2009-07-04  Bruno Haible  <bruno@clisp.org>
10711
10712         Fix assertion.
10713         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10714         contains more exact copies of a given entry than file2, leave the extra
10715         copies unpaired rather than aborting.
10716         Reported by Eric Blake.
10717
10718 2009-07-02  Bruno Haible  <bruno@clisp.org>
10719
10720         Speedup git-merge-changelog for git cherry-pick.
10721         * lib/git-merge-changelog.c (struct entries_mapping): New type.
10722         (entries_mapping_get): New function, extracted from compute_mapping.
10723         (entries_mapping_reverse_get): New function.
10724         (compute_mapping): Add a 'full' argument. Return the result in a
10725         'struct entries_mapping'.
10726         (main): Update. Access the mappings through entries_mapping_get.
10727         Reported by Eric Blake.
10728
10729 2009-07-02  Bruno Haible  <bruno@clisp.org>
10730
10731         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10732         best_i.
10733
10734 2009-07-02  Bruno Haible  <bruno@clisp.org>
10735
10736         Speed up approximate search for matching ChangeLog entries.
10737         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10738         argument. Call fstrcmp_bounded instead of fstrcmp.
10739         (compute_mapping, try_split_merged_entry, main): Update callers.
10740
10741 2009-07-02  Bruno Haible  <bruno@clisp.org>
10742
10743         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10744
10745 2009-06-30  Bruno Haible  <bruno@clisp.org>
10746
10747         Reduce the number of uc_is_cased calls.
10748         * lib/unicase.h (casing_suffix_context_t): Add
10749         'first_char_except_ignorable' field.
10750         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10751         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10752         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10753         Update initializer.
10754         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10755         case-ignorable characters.
10756         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
10757         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
10758         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
10759         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
10760         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
10761
10762 2009-06-30  Bruno Haible  <bruno@clisp.org>
10763
10764         Tests for module 'unicase/ignorable'.
10765         * modules/unicase/ignorable-tests: New file.
10766         * tests/unicase/test-ignorable.c: New file, generated by
10767         gen-uni-tables.
10768
10769         Tests for module 'unicase/cased'.
10770         * modules/unicase/cased-tests: New file.
10771         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
10772         * tests/unicase/test-predicate-part1.h: New file, derived from
10773         tests/unictype/test-predicate-part1.h.
10774         * tests/unicase/test-predicate-part2.h: New file, same as
10775         tests/unictype/test-predicate-part2.h.
10776
10777         Fix evaluation of "Before C" condition of FINAL_SIGMA.
10778         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
10779         (output_casing_properties): New function.
10780         (main): Call it.
10781         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
10782         * lib/unicase/cased.c: Include unictype/bitmap.h.
10783         (uc_is_cased): Define through a bitmap lookup.
10784         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
10785         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
10786         (uc_is_case_ignorable): Define through a bitmap lookup.
10787         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
10788         lib/unictype/bitmap.h.
10789         (Depends-on): Add inline. Clean up.
10790         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
10791         lib/unictype/bitmap.h.
10792         (Depends-on): Add inline. Clean up.
10793         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
10794         recognition.
10795         * tests/unicase/test-u16-tolower.c (main): Likewise.
10796         * tests/unicase/test-u32-tolower.c (main): Likewise.
10797
10798 2009-06-30  Bruno Haible  <bruno@clisp.org>
10799
10800         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
10801         * lib/unicase/u16-casemap.c: Likewise.
10802         * lib/unicase/u32-casemap.c: Likewise.
10803
10804 2009-06-29  Bruno Haible  <bruno@clisp.org>
10805
10806         Define u32_casefold as a wrapper around u32_ct_casefold.
10807         * lib/unicase/u32-casefold.c: Update.
10808         * modules/unicase/u32-casefold (Depends-on): Add
10809         unicase/u32-ct-casefold, unicase/empty-prefix-context,
10810         unicase/empty-suffix-context. Clean up.
10811
10812         Define u16_casefold as a wrapper around u16_ct_casefold.
10813         * lib/unicase/u16-casefold.c: Update.
10814         * modules/unicase/u16-casefold (Depends-on): Add
10815         unicase/u16-ct-casefold, unicase/empty-prefix-context,
10816         unicase/empty-suffix-context. Clean up.
10817
10818         Define u8_casefold as a wrapper around u8_ct_casefold.
10819         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
10820         * lib/unicase/u8-casefold.c: Update.
10821         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
10822         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10823
10824         Define u32_totitle as a wrapper around u32_ct_totitle.
10825         * lib/unicase/u32-totitle.c: Update.
10826         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
10827         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10828
10829         Define u16_totitle as a wrapper around u16_ct_totitle.
10830         * lib/unicase/u16-totitle.c: Update.
10831         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
10832         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10833
10834         Define u8_totitle as a wrapper around u8_ct_totitle.
10835         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
10836         functions.
10837         (FUNC): Delegate to U_CT_TOTITLE.
10838         * lib/unicase/u8-totitle.c: Update.
10839         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
10840         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10841
10842         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
10843         invocation.
10844         * modules/unicase/u32-tolower (Depends-on): Add
10845         unicase/empty-prefix-context, unicase/empty-suffix-context.
10846
10847         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
10848         invocation.
10849         * modules/unicase/u16-tolower (Depends-on): Add
10850         unicase/empty-prefix-context, unicase/empty-suffix-context.
10851
10852         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
10853         * modules/unicase/u8-tolower (Depends-on): Add
10854         unicase/empty-prefix-context, unicase/empty-suffix-context.
10855
10856         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
10857         invocation.
10858         * modules/unicase/u32-toupper (Depends-on): Add
10859         unicase/empty-prefix-context, unicase/empty-suffix-context.
10860
10861         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
10862         invocation.
10863         * modules/unicase/u16-toupper (Depends-on): Add
10864         unicase/empty-prefix-context, unicase/empty-suffix-context.
10865
10866         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
10867         * modules/unicase/u8-toupper (Depends-on): Add
10868         unicase/empty-prefix-context, unicase/empty-suffix-context.
10869
10870         New module 'unicase/u32-ct-casefold'.
10871         * lib/unicase/u32-ct-casefold.c: New file.
10872         * modules/unicase/u32-ct-casefold: New file.
10873
10874         New module 'unicase/u16-ct-casefold'.
10875         * lib/unicase/u16-ct-casefold.c: New file.
10876         * modules/unicase/u16-ct-casefold: New file.
10877
10878         New module 'unicase/u8-ct-casefold'.
10879         * lib/unicase/u8-ct-casefold.c: New file.
10880         * lib/unicase/u-ct-casefold.h: New file, derived from
10881         lib/unicase/u-casefold.h.
10882         * modules/unicase/u8-ct-casefold: New file.
10883
10884         New module 'unicase/u32-ct-totitle'.
10885         * lib/unicase/u32-ct-totitle.c: New file.
10886         * modules/unicase/u32-ct-totitle: New file.
10887
10888         New module 'unicase/u16-ct-totitle'.
10889         * lib/unicase/u16-ct-totitle.c: New file.
10890         * modules/unicase/u16-ct-totitle: New file.
10891
10892         New module 'unicase/u8-ct-totitle'.
10893         * lib/unicase/u8-ct-totitle.c: New file.
10894         * lib/unicase/u-ct-totitle.h: New file, derived from
10895         lib/unicase/u-totitle.h.
10896         * modules/unicase/u8-ct-totitle: New file.
10897
10898         New module 'unicase/u32-ct-tolower'.
10899         * lib/unicase/u32-ct-tolower.c: New file.
10900         * modules/unicase/u32-ct-tolower: New file.
10901
10902         New module 'unicase/u16-ct-tolower'.
10903         * lib/unicase/u16-ct-tolower.c: New file.
10904         * modules/unicase/u16-ct-tolower: New file.
10905
10906         New module 'unicase/u8-ct-tolower'.
10907         * lib/unicase/u8-ct-tolower.c: New file.
10908         * modules/unicase/u8-ct-tolower: New file.
10909
10910         New module 'unicase/u32-ct-toupper'.
10911         * lib/unicase/u32-ct-toupper.c: New file.
10912         * modules/unicase/u32-ct-toupper: New file.
10913
10914         New module 'unicase/u16-ct-toupper'.
10915         * lib/unicase/u16-ct-toupper.c: New file.
10916         * modules/unicase/u16-ct-toupper: New file.
10917
10918         New module 'unicase/u8-ct-toupper'.
10919         * lib/unicase/u8-ct-toupper.c: New file.
10920         * modules/unicase/u8-ct-toupper: New file.
10921
10922         Add context arguments to u*_casemap functions.
10923         * lib/unicase/unicasemap.h: Include unicase.h.
10924         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
10925         suffix_context arguments.
10926         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
10927         functions.
10928         (FUNC): Add prefix_context and suffix_context arguments. Use
10929         uc_is_cased and uc_is_case_ignorable.
10930         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
10931         * lib/unicase/u16-casemap.c: Likewise.
10932         * lib/unicase/u32-casemap.c: Likewise.
10933         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
10934         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10935         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
10936         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10937         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
10938         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10939
10940         New module 'unicase/u32-suffix-context'.
10941         * lib/unicase/u32-suffix-context.c: New file.
10942         * modules/unicase/u32-suffix-context: New file.
10943
10944         New module 'unicase/u16-suffix-context'.
10945         * lib/unicase/u16-suffix-context.c: New file.
10946         * modules/unicase/u16-suffix-context: New file.
10947
10948         New module 'unicase/u8-suffix-context'.
10949         * lib/unicase/u8-suffix-context.c: New file.
10950         * lib/unicase/u-suffix-context.h: New file.
10951         * modules/unicase/u8-suffix-context: New file.
10952
10953         New module 'unicase/empty-suffix-context'.
10954         * lib/unicase/empty-suffix-context.c: New file.
10955         * modules/unicase/empty-suffix-context: New file.
10956
10957         New module 'unicase/u32-prefix-context'.
10958         * lib/unicase/u32-prefix-context.c: New file.
10959         * modules/unicase/u32-prefix-context: New file.
10960
10961         New module 'unicase/u16-prefix-context'.
10962         * lib/unicase/u16-prefix-context.c: New file.
10963         * modules/unicase/u16-prefix-context: New file.
10964
10965         New module 'unicase/u8-prefix-context'.
10966         * lib/unicase/u8-prefix-context.c: New file.
10967         * lib/unicase/u-prefix-context.h: New file.
10968         * lib/unicase/context.h: New file.
10969         * modules/unicase/u8-prefix-context: New file.
10970
10971         New module 'unicase/empty-prefix-context'.
10972         * lib/unicase/empty-prefix-context.c: New file.
10973         * modules/unicase/empty-prefix-context: New file.
10974
10975         New module 'unicase/ignorable'.
10976         * lib/unicase/ignorable.c: New file.
10977         * modules/unicase/ignorable: New file.
10978
10979         New module 'unicase/cased'.
10980         * lib/unicase/caseprop.h: New file.
10981         * lib/unicase/cased.c: New file.
10982         * modules/unicase/cased: New file.
10983
10984         New functions for case mapping of substrings.
10985         * lib/unicase.h (casing_prefix_context_t): New type.
10986         (unicase_empty_prefix_context): New variable.
10987         (u8_casing_prefix_context, u16_casing_prefix_context,
10988         u32_casing_prefix_context, u8_casing_prefixes_context,
10989         u16_casing_prefixes_context, u32_casing_prefixes_context): New
10990         declarations.
10991         (casing_suffix_context_t): New type.
10992         (unicase_empty_suffix_context): New variable.
10993         (u8_casing_suffix_context, u16_casing_suffix_context,
10994         u32_casing_suffix_context, u8_casing_suffixes_context,
10995         u16_casing_suffixes_context, u32_casing_suffixes_context,
10996         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
10997         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
10998         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
10999         declarations.
11000
11001 2009-06-28  Jim Meyering  <meyering@redhat.com>
11002
11003         boostrap: indent only with spaces
11004         * build-aux/bootstrap: Indent only with spaces, never TABs.
11005
11006         bootstrap: split long lines
11007         * build-aux/bootstrap: Keep line length < 80.
11008
11009         bootstrap: sync from coreutils
11010         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11011         just as autoreconf does.  Verify a list of prerequisite
11012         package-name,version-number pairs if defined in bootstrap.conf.
11013         Refer to README-prereq, if prerequisites are not satisfied.
11014
11015 2009-06-27  Eric Blake  <ebb9@byu.net>
11016
11017         tests: add test for bogus NULL definition
11018         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11019         * tests/test-stdlib.c: Likewise.
11020         * tests/test-string.c: Likewise.
11021         * tests/test-locale.c: Likewise.
11022         * tests/test-unistd.c: Likewise.
11023         * modules/stdio-tests (Depends-on): Add verify.
11024         * modules/stdlib-tests (Depends-on): Likewise.
11025         * modules/string-tests (Depends-on): Likewise.
11026         * modules/locale-tests (Depends-on): Likewise.
11027         * modules/unistd-tests (Depends-on): Likewise.
11028
11029 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11030
11031         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11032         self-explaining comment.
11033         * m4/selinux-selinux-h: Update serial.
11034         (gl_LIBSELINUX): New macro, adding a warning for missing development
11035         packages to code extracted from...
11036         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11037         Add warning for missing development packages here, too.
11038
11039 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11040
11041         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11042
11043 2009-06-25  Eric Blake  <ebb9@byu.net>
11044
11045         version-etc: fix regression
11046         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11047         gcc.
11048         (version_etc): Use it, to catch bugs with trailing NULL.
11049         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11050         (version_etc_va): Fix logic bug.
11051         * modules/version-etc-tests: Add test.
11052         * tests/test-version-etc.c: New file.
11053         * tests/test-version-etc.sh: Likewise.
11054
11055 2009-06-25  Sam Steingold  <sds@gnu.org>
11056
11057         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11058         mbtowc declaration.
11059
11060 2009-06-25  Eric Blake  <ebb9@byu.net>
11061
11062         fpurge: migrate into <stdio.h>
11063         * lib/fpurge.h: Delete...
11064         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11065         * lib/fpurge.c (fpurge): Change declaring header.
11066         * modules/fpurge (Files): Drop deleted file.
11067         (Depends-on): Add stdio.
11068         (configure.ac): Set witness.
11069         * modules/stdio (Makefile.am): Support fpurge macros.
11070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11071         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11072         * lib/fflush.c: Update client.
11073         * tests/test-fpurge.c: Likewise.
11074         * NEWS: Mention the change.
11075
11076 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11077
11078         * lib/argp-version-etc.c (program_authors): Add const
11079         qualifier.
11080         * lib/version-etc.c: Fix typos in the comments.
11081         * modules/argp-version-etc: Depends on version-etc.
11082
11083 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11084
11085         argp-version-etc: new module.
11086
11087         * lib/argp-version-etc.c: New file.
11088         * lib/argp-version-etc.h: New file.
11089         * modules/argp-version-etc: New file.
11090         * modules/argp-version-etc-tests: New file.
11091         * tests/test-argp-version-etc.c: New test.
11092         * tests/test-argp-version-etc-1.sh: New test.
11093
11094 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11095
11096         Provide additional interfaces and documentation for version-etc
11097         module.
11098
11099         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11100         interfaces.
11101         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11102         prototypes.
11103
11104 2009-06-24  Bruno Haible  <bruno@clisp.org>
11105
11106         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11107         HAVE_LIB${NAME} macro.
11108         Reported by Sam Steingold <sds@gnu.org>.
11109
11110 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11111
11112         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11113         needed.
11114
11115 2009-06-21  Bruno Haible  <bruno@clisp.org>
11116
11117         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11118         work.
11119         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11120         together with LIB${NAME}, LTLIB${NAME}.
11121         Reported by Sam Steingold <sds@gnu.org>.
11122
11123 2009-06-20  Jim Meyering  <meyering@redhat.com>
11124
11125         tests: make sc_require_test_exit_idiom more generic
11126         * top/maint.mk (Exit_witness_file): New overridable variable.
11127         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11128         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11129
11130 2009-06-19  Jim Meyering  <meyering@redhat.com>
11131
11132         hash: reverse order of src/dst parameters in an internal interface
11133         * lib/hash.c (transfer_entries): Reverse order of parameters to
11134         put DST before SRC.  Adjust callers.
11135
11136         tests: test-hash: avoid wholesale duplication
11137         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11138         Instead, use a loop and add a single conditional.
11139
11140         tests: test-hash: allow seed selection via a command line argument
11141         * tests/test-hash.c (get_seed): New function.
11142         (main): Use it.
11143
11144 2009-06-19  Eric Blake  <ebb9@byu.net>
11145
11146         hash: avoid memory leak on allocation failure
11147         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11148         failure.  Factor repeated algorithm...
11149         (transfer_entries): ...into new helper routine.
11150         (hash_delete): React to hash_rehash return value.
11151
11152         hash: reduce memory pressure in hash_rehash no-op case
11153         * lib/hash.c (next_prime): Avoid overflow.
11154         (hash_initialize): Factor bucket size computation...
11155         (compute_bucket_size): ...into new helper function.
11156         (hash_rehash): Use new function and open coding to reduce memory
11157         pressure, and avoid a memory leak in USE_OBSTACK code.
11158         Reported by Jim Meyering.
11159
11160 2009-06-18  Eric Blake  <ebb9@byu.net>
11161
11162         hash: make rotation more obvious
11163         * modules/hash (Depends-on): Add bitrotate and stdint.
11164         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11165         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11166         (SIZE_MAX): Rely on headers for definition.
11167         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11168         (raw_hasher): Use rotr_sz.
11169         Suggested by Jim Meyering.
11170
11171         hash: fix memory leak in last patch
11172         * lib/hash.c (hash_rehash): Avoid memory leak.
11173
11174         hash: avoid no-op rehashing
11175         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11176
11177         hash: provide default callback functions
11178         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11179         (hash_initialize): Use them as defaults.
11180         * tests/test-hash.c (main): Test this.
11181
11182         hash: minor optimization
11183         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11184         when possible.
11185         (hash_initialize): Document this promise.
11186         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11187         * tests/test-hash.c (hash_compare_strings): Test this.
11188
11189 2009-06-18  Bruno Haible  <bruno@clisp.org>
11190
11191         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11192         going to be replaced anyway.
11193
11194 2009-06-18  Bruno Haible  <bruno@clisp.org>
11195
11196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11197         in one place.
11198         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11199         be replaced anyway.
11200
11201 2009-06-18  Eric Blake  <ebb9@byu.net>
11202
11203         hash: check for resize before insertion
11204         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11205         threshold before insertion, so that a pathological hash_rehash
11206         that fills every bucket can still trigger another rehash.
11207
11208 2009-06-18  Jim Meyering  <meyering@redhat.com>
11209
11210         hash-tests: add a loop around the small tests
11211         * tests/test-hash.c (main): Repeat small tests with selected
11212         small initial table sizes.
11213
11214 2009-06-17  Eric Blake  <ebb9@byu.net>
11215
11216         hash: minor cleanups
11217         * lib/hash.h (hash_entry): Make opaque, by moving...
11218         * lib/hash.c (hash_entry): ...here.
11219         (hash_insert): Clarify restrictions on what can be inserted.
11220         (hash_get_next): Clarify when it is safe to remove an element
11221         during traversal.
11222         (check_tuning): Skip verification when tuning is known safe.
11223         (hash_initialize): Clarify restrictions on tuning.
11224
11225 2009-06-17  Jim Meyering  <jim@meyering.net>
11226         and Eric Blake  <ebb9@byu.net>
11227
11228         hash-tests: new module
11229         * modules/hash-tests: New file.
11230         * tests/test-hash.c: New file.
11231
11232 2009-06-17  Eric Blake  <ebb9@byu.net>
11233
11234         strstr-simple: document new module
11235         * MODULES.html.sh: Document new module.
11236
11237         strstr, strcasestr: replace on platforms with broken memchr
11238         * modules/strstr: Split into...
11239         * modules/strstr-simple: ...new module that does not care about
11240         performance, but does care about glibc bug.
11241         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11242         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11243         if platform memchr is broken, per Debian bug 521737.
11244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11245         memchr.
11246         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11247         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11248         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11249         * modules/mountlist (Depends-on): Add strstr-simple.
11250         * modules/gen-uni-tables (Depends-on): Likewise.
11251         * modules/argz (Depends-on): Add strstr.
11252
11253 2009-06-17  Bruno Haible  <bruno@clisp.org>
11254
11255         * modules/posix_spawn-internal (Depends-on): Add errno.
11256
11257 2009-06-17  Bruno Haible  <bruno@clisp.org>
11258
11259         Define missing ESTALE on Interix 3.5.
11260         * lib/errno.in.h (ESTALE): Assign a value if missing.
11261         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11262         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11263         missing.
11264         * doc/posix-headers/errno.texi: Mention the Interix bug.
11265         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11266
11267 2009-06-15  Eric Blake  <ebb9@byu.net>
11268
11269         memchr, memchr2: add valgrind exception
11270         * lib/memchr.valgrind: New file.
11271         * lib/memchr2.valgrind: New file.
11272         * modules/memchr (Files): Distribute valgrind file.
11273         * modules/memchr2 (Files): Likewise.
11274
11275         docs: memchr is no longer obsolete
11276         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11277         * lib/string.in.h (memchr): Simplify logic.
11278
11279 2009-06-14  Jim Meyering  <meyering@redhat.com>
11280
11281         link-follow: fix the "checking..." message to not mention trailing slash
11282         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11283         never considered trailing slashes.
11284
11285 2009-06-14  Bruno Haible  <bruno@clisp.org>
11286
11287         * m4/memchr.m4: Mention also the bug on IA-64.
11288         * doc/posix-functions/memchr.texi: Likewise.
11289
11290 2009-06-12  Eric Blake  <ebb9@byu.net>
11291
11292         memchr: detect broken x86_64 and alpha implementations
11293         * modules/memchr-tests (Depends-on): Move mmap detection...
11294         * modules/memchr (Depends-on): ...here.
11295         (configure.ac): Set indicator.
11296         * lib/string.in.h (memchr): Declare replacement.
11297         * modules/string (Makefile.am): Trigger replacement.
11298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11299         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11300         bugs.
11301         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11302         * modules/getpagesize (License): Relax license.
11303
11304 2009-06-11  Bruno Haible  <bruno@clisp.org>
11305
11306         * lib/idpriv.h: Add more references.
11307
11308 2009-06-08  Bruno Haible  <bruno@clisp.org>
11309
11310         Tests for module 'idpriv-droptemp'.
11311         * modules/idpriv-droptemp-tests: New file.
11312         * tests/test-idpriv-droptemp.sh: New file.
11313         * tests/test-idpriv-droptemp.su.sh: New file.
11314         * tests/test-idpriv-droptemp.c: New file.
11315
11316         New module 'idpriv-droptemp'.
11317         * lib/idpriv-droptemp.c: New file.
11318         * modules/idpriv-droptemp: New file.
11319
11320 2009-06-08  Bruno Haible  <bruno@clisp.org>
11321
11322         Tests for module 'idpriv-drop'.
11323         * modules/idpriv-drop-tests: New file.
11324         * tests/test-idpriv-drop.sh: New file.
11325         * tests/test-idpriv-drop.su.sh: New file.
11326         * tests/test-idpriv-drop.c: New file.
11327
11328         New module 'idpriv-drop'.
11329         * lib/idpriv.h: New file.
11330         * lib-idpriv-drop.c: New file.
11331         * m4/idpriv.m4: New file.
11332         * modules/idpriv-drop: New file.
11333
11334 2009-06-08  Bruno Haible  <bruno@clisp.org>
11335
11336         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11337         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11338         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11339         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11340         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11341         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11342         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11343
11344 2009-06-08  Eric Blake  <ebb9@byu.net>
11345
11346         test-strstr: use memory fence, when possible
11347         * tests/test-strstr.c (main): Use memory fence, in order to be
11348         more likely to trigger Debian bug 521737.
11349         * modules/strstr-tests (Files): Pull in additional files.
11350
11351         memchr: no longer obsolete, for wider field testing
11352         * modules/memchr (Status, Notice): Delete, this module is no
11353         longer obsolete.
11354         * modules/vasnprintf (Depends-on): Add memchr.
11355
11356 2009-06-07  Jim Meyering  <meyering@redhat.com>
11357
11358         hash: declare some functions with the warn_unused_result attribute
11359         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11360
11361 2009-06-07  Bruno Haible  <bruno@clisp.org>
11362
11363         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11364         Reported by Eric Blake.
11365
11366 2009-06-06  Eric Blake  <ebb9@byu.net>
11367
11368         test-alignof: fix typo with long double
11369         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11370         compiler error.
11371
11372 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11373
11374         Escape non-texinfo { and }s.
11375         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11376         markup error.
11377
11378 2009-06-04  Jim Meyering  <meyering@redhat.com>
11379
11380         gitlog-to-changelog: don't infloop on an empty commit log
11381         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11382         Reported by Boris Petersen <transacid@centerim.org>.
11383
11384 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11385
11386         version-etc: extend for packagers
11387         Add three new configure options, intended for packagers:
11388           --with-packager="packager name"
11389           --with-packager-version="packager-specific version"
11390           --with-packager-bug-reports="packager bug reporting"
11391         An example with coreutils:
11392           $ ./configure \
11393             --with-packager=Gentoo \
11394             --with-packager-bug-report=http://bugs.gentoo.org/ \
11395             --with-packager-version="patchset 1.6"
11396           $ ./src/ls --version | head -n2
11397           ls (GNU coreutils) 7.1-dirty
11398           Packaged by Gentoo (patchset 1.6)
11399         Note that the bug reporting info via --help doesn't show up because
11400         coreutils uses its own custom emit_bug_reporting_address() implementation
11401         in src/system.h.  If it didn't, it'd look like:
11402           $ ./src/ls --help | tail -n4
11403           Report bugs to <bug-coreutils@gnu.org>.
11404           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11405           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11406           General help using GNU software: <http://www.gnu.org/gethelp/>.
11407         * lib/version-etc.c: Print new information, if provided.
11408         * m4/version-etc.m4: New file.
11409         * modules/version-etc (Files): Add m4/version-etc.m4.
11410         (configure.ac): Add gl_VERSION_ETC.
11411
11412 2009-05-31  Bruno Haible  <bruno@clisp.org>
11413
11414         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11415         and 'int64_t'.
11416         * modules/alignof-tests (Dependencies): Add stdint.
11417         Reported by Eric Blake.
11418
11419 2009-05-31  Bruno Haible  <bruno@clisp.org>
11420
11421         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11422         restriction due to compiler bugs.
11423         Reported by Eric Blake.
11424
11425 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11426             Bruno Haible  <bruno@clisp.org>
11427
11428         Fix test-alignof failure.
11429         * lib/alignof.h (alignof_slot): New macro.
11430         (alignof_type): New macro, with the same semantics as the previous
11431         'alignof'.
11432         (alignof): Alias to alignof_slot.
11433         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11434         check that the results are usable as constant expressions.
11435
11436 2009-05-31  Bruno Haible  <bruno@clisp.org>
11437
11438         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11439         * tests/test-memchr.c (main): Check that memchr does not read past the
11440         first occurrence of the byte.
11441         * tests/test-strstr.c (main): Update comment.
11442         Suggested by Eric Blake.
11443
11444 2009-05-30  Bruno Haible  <bruno@clisp.org>
11445
11446         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11447         detail how to use dumpbin.
11448         Reported by David Byron <dbyron@dbyron.com>.
11449
11450 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11451
11452         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11453
11454 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11455
11456         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11457
11458 2009-05-28  Bruno Haible  <bruno@clisp.org>
11459
11460         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11461         build-aux/ files.
11462
11463 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11464
11465         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11466
11467 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11468
11469         * gnulib-tool (sed_transform_main_lib_file)
11470         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11471         regexps.
11472
11473 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11474
11475         * tests/test-strstr.c: Add another self-test.
11476         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11477         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11478
11479 2009-05-23  Bruno Haible  <bruno@clisp.org>
11480
11481         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11482         change.
11483
11484 2009-05-21  Bruno Haible  <bruno@clisp.org>
11485
11486         Simplify use of mode_t varargs.
11487         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11488         uses 'mode_t' or 'int'.
11489         * lib/openat.c (openat): Likewise.
11490         * lib/open-safer.c (open_safer): Likewise.
11491         * m4/mode_t.m4: New file.
11492         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11493         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11494         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11495         * modules/open (Files): Add m4/mode_t.m4.
11496         * modules/openat (Files): Likewise.
11497         * modules/fcntl-safer (Files): Likewise.
11498         Suggested by Eric Blake.
11499
11500 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11501
11502         * doc/glibc-functions/fallocate.texi: New file.
11503         * doc/gnulib.texi: Include it.
11504
11505 2009-05-21  Eric Blake  <ebb9@byu.net>
11506             Bruno Haible  <bruno@clisp.org>
11507
11508         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11509         invocations.
11510         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11511
11512 2009-05-21  Eric Blake  <ebb9@byu.net>
11513             Bruno Haible  <bruno@clisp.org>
11514
11515         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11516         include_next. Fix of 2008-11-20 commit.
11517         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11518         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11519         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11520         NEXT_MATH_H.
11521         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11522         instead of NEXT_MATH_H.
11523
11524 2009-05-21  Bruno Haible  <bruno@clisp.org>
11525
11526         Avoid redefinition warnings for SIZE_MAX.
11527         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11528         Reported by Simon Josefsson.
11529
11530 2009-05-21  Bruno Haible  <bruno@clisp.org>
11531
11532         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11533         AC_CACHE_VAL.
11534
11535 2009-05-20  Bruno Haible  <bruno@clisp.org>
11536
11537         Make zeroptr.h work on mingw.
11538         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11539         mprotect.
11540         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11541         * modules/memchr2-tests (configure.ac): Likewise.
11542         * modules/memcmp-tests (configure.ac): Likewise.
11543         * modules/memmem-tests (configure.ac): Likewise.
11544         * modules/memrchr-tests (configure.ac): Likewise.
11545         Reported by Simon Josefsson.
11546
11547 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11548
11549         * tests/test-glob.c: Include string.h for strcmp prototype.
11550
11551 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11552
11553         * modules/getdelim (Depends-on): Add explicit stdint, although it
11554         was implicitly already pulled in via realloc-posix.
11555         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11556
11557 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11558
11559         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11560         G. Christensen" <tgc@jupiterrise.com>.
11561         * m4/sys_socket_h.m4: Check for sa_family_t.
11562         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11563         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11564         * tests/test-sys_socket.c: Check that sa_family_t works.
11565
11566 2009-05-18  Eric Blake  <ebb9@byu.net>
11567
11568         maint.mk: allow gnulib_dir in VPATH build
11569         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11570
11571 2009-05-15  Jim Meyering  <meyering@redhat.com>
11572
11573         maint.mk: Give gnulib_dir a default definition.
11574         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11575         Thus, most packages no longer need to specify this variable in cfg.mk
11576
11577 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11578
11579         rename.m4: fix typos that would make non-mingw cross-configure fail
11580         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11581
11582 2009-05-13  Eric Blake  <ebb9@byu.net>
11583
11584         mmap-anon: avoid out-of-order autoconf expansion
11585         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11586         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11587         * modules/memchr-tests (Depends-on): Add extensions.
11588         * modules/memchr2-tests (Depends-on): Add extensions.
11589         * modules/memcmp-tests (Depends-on): Add extensions.
11590         * modules/memmem-tests (Depends-on): Add extensions.
11591         * modules/memrchr-tests (Depends-on): Add extensions.
11592
11593 2009-05-13  Bruno Haible  <bruno@clisp.org>
11594
11595         Make some tests ISO C 99 compliant.
11596         * tests/zerosize-ptr.h: New file.
11597         * tests/test-memchr.c: Include zerosize-ptr.h.
11598         (main): Use a zero-size object pointer instead of NULL.
11599         * tests/test-memchr2.c: Include zerosize-ptr.h.
11600         (main): Use a zero-size object pointer instead of NULL.
11601         * tests/test-memcmp.c: Include zerosize-ptr.h.
11602         (main): Use a zero-size object pointer instead of NULL.
11603         * tests/test-memmem.c: Include zerosize-ptr.h.
11604         (main): Use a zero-size object pointer instead of NULL.
11605         * tests/test-memrchr.c: Include zerosize-ptr.h.
11606         (main): Use a zero-size object pointer instead of NULL.
11607         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11608         m4/mmap-anon.m4.
11609         (Depends-on): Add getpagesize.
11610         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11611         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11612         m4/mmap-anon.m4.
11613         (Depends-on): Add getpagesize.
11614         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11615         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11616         m4/mmap-anon.m4.
11617         (Depends-on): Add getpagesize.
11618         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11619         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11620         m4/mmap-anon.m4.
11621         (Depends-on): Add getpagesize.
11622         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11623         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11624         m4/mmap-anon.m4.
11625         (Depends-on): Add getpagesize.
11626         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11627
11628 2009-05-12  Bruno Haible  <bruno@clisp.org>
11629
11630         Tests for module 'alignof'.
11631         * modules/alignof-tests: New file.
11632         * tests/test-alignof.c: New file.
11633
11634 2009-05-12  Bruno Haible  <bruno@clisp.org>
11635
11636         Fix alignof macro.
11637         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11638         vendor compilers that are always correct.
11639
11640 2009-05-12  Bruno Haible  <bruno@clisp.org>
11641
11642         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11643         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11644         not whether its fully works.
11645
11646 2009-05-12  Bruno Haible  <bruno@clisp.org>
11647
11648         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11649
11650 2009-05-12  Jim Meyering  <meyering@redhat.com>
11651
11652         * top/maint.mk: Adjust backslash alignment.
11653
11654 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11655
11656         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11657
11658 2009-05-11  Eric Blake  <ebb9@byu.net>
11659
11660         argp: avoid undefined behavior
11661         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11662         macros.
11663
11664 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11665
11666         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11667         user.name to prevent git commit from complaining.
11668
11669 2009-05-10  Bruno Haible  <bruno@clisp.org>
11670
11671         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11672         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11673         it rewrites every file name only once.
11674         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11675
11676 2009-05-08  Bruno Haible  <bruno@clisp.org>
11677
11678         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11679         instead of 'max'.
11680
11681 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11682
11683         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11684         sockaddr_storage test.
11685
11686 2009-05-07  Simon Josefsson  <simon@josefsson.org>
11687
11688         * modules/sys_socket (Makefile.am): Substitute
11689         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
11690         * m4/sys_socket_h.m4: Check for sockaddr_storage.
11691         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11692         * tests/test-sys_socket.c: Check sockaddr_storage.
11693
11694 2009-05-08  Bruno Haible  <bruno@clisp.org>
11695
11696         New module 'alignof'.
11697         * lib/alignof.h: New file.
11698         * modules/alignof: New file.
11699
11700 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11701             Bruno Haible  <bruno@clisp.org>
11702
11703         Fix test-file-has-acl on FreeBSD.
11704         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11705         mask is implicitly added.
11706         * tests/test-file-has-acl.c: Include <signal.h>.
11707         (main): Terminate the test after 5 seconds.
11708         * modules/acl-tests (configure.ac): Check for alarm function.
11709
11710 2009-05-04  Bruno Haible  <bruno@clisp.org>
11711
11712         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11713         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11714         * modules/errno (configure.ac): Drop AC_REQUIRE.
11715         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11716         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11717
11718 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11719
11720         * modules/glob-tests: New module.
11721         * tests/test-glob.c: Add.
11722
11723 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11724
11725         * modules/fnmatch-tests: New module.
11726         * tests/test-fnmatch.c: Add.
11727
11728 2009-05-04  Eric Blake  <ebb9@byu.net>
11729
11730         maint: make the new no-submodule-changes rule VPATH-safe
11731         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11732
11733 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11734             Bruno Haible  <bruno@clisp.org>
11735
11736         acl: Fix infinite loop on FreeBSD.
11737         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11738         of return value from acl_get_entry.
11739         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11740         Likewise.
11741
11742 2009-05-03  Bruno Haible  <bruno@clisp.org>
11743
11744         * lib/acl-internal.h (acl_entries): Clarify return value.
11745         * lib/acl_entries.c (acl_entries): Likewise.
11746
11747 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11748
11749         Bug fix in acl module.
11750         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11751
11752 2009-05-03  Bruno Haible  <bruno@clisp.org>
11753
11754         Create gperf-generated file in the source dir, not in the build dir.
11755         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11756         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
11757         * modules/unicase/locale-language (unicase/locale-languages.h):
11758         Likewise.
11759         * modules/unicase/special-casing (unicase/special-casing-table.h):
11760         Likewise.
11761         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
11762         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
11763         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
11764         Reported by Ralf Wildenhues.
11765
11766 2009-05-03  Bruno Haible  <bruno@clisp.org>
11767
11768         * modules/fnmatch (Description, configure.ac): Taken from
11769         fnmatch-posix.
11770         * modules/fnmatch-posix: Turn into a symbolic reference to the
11771         'fnmatch' module, and deprecate.
11772         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
11773
11774 2009-05-03  Bruno Haible  <bruno@clisp.org>
11775
11776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
11777         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
11778         Reported by Ralf Wildenhues.
11779
11780 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11781
11782         * m4/fnmatch.m4: Fix fnmatch re-define.
11783
11784 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11785
11786         priv-set: new module and tests; adapt write-any-file
11787         * lib/priv-set.c: New file.
11788         * lib/priv-set.h: New file.
11789         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
11790         * lib/write-any-file.c: Simplify by using priv-set module.
11791         * m4/priv-set.m4: New file.
11792         * modules/priv-set: New file.
11793         * modules/unlinkdir: Add dependency on priv-set module.
11794         * modules/write-any-file: Likewise.
11795
11796         Tests for module 'priv-set'.
11797         * modules/priv-set-tests: New file.
11798         * tests/test-priv-set.c: New file.
11799
11800 2009-05-03  Jim Meyering  <meyering@redhat.com>
11801             Bruno Haible  <bruno@clisp.org>
11802
11803         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
11804         use the converted UTF-8 variant of the name instead.
11805
11806 2009-05-03  Jim Meyering  <meyering@redhat.com>
11807
11808         tests: tighten some getdate tests
11809         * tests/test-getdate.c (main): Tighten tests: require equality,
11810         not just greater than.  Set TZ envvar to UTC0.
11811
11812 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11813
11814         getdate: correctly interpret "next monday" when run on a Monday
11815         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
11816         that e.g., "next tues" (when run on a tuesday) results in a date
11817         that is one week in the future, and not today's date.
11818         I.e., add a week when the wday is the same as the current one.
11819         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
11820         and earlier by Martin Bernreuther and Jan Minář.
11821         * tests/test-getdate.c (main): Check that "next DAY" is always in
11822         the future and that "last DAY" is always in the past.
11823
11824 2009-05-02  Jim Meyering  <meyering@redhat.com>
11825
11826         build: ensure that a release build fails when a submodule is unclean
11827         * top/maint.mk (no-submodule-changes): New rule.
11828         (alpha beta major): Depend on it.
11829
11830 2009-05-02  Bruno Haible  <bruno@clisp.org>
11831
11832         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
11833         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
11834         shell variable gl_fnmatch_required to detect which variant is
11835         requested.
11836         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
11837         gl_FUNC_FNMATCH_POSIX.
11838         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
11839         exclude fnmatch-posix.
11840
11841 2009-05-02  Bruno Haible  <bruno@clisp.org>
11842
11843         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
11844         * modules/mbsrtowcs (License): Change to LGPLv2+.
11845         * modules/strnlen1 (License): Likewise.
11846         Reported by Simon Josefsson.
11847
11848 2009-05-02  Bruno Haible  <bruno@clisp.org>
11849
11850         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
11851         "cross".
11852         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
11853         gnulib-tool was called with option --source-base=lib.
11854
11855 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11856
11857         Use automake *-local hooks without commands, for extensibility.
11858         * modules/localcharset (Makefile.am): Rename install-exec-local
11859         rule to install-exec-localcharset, and make it a prerequisite of
11860         install-exec-local.  Likewise, rename the uninstall-local rule to
11861         uninstall-localcharset, and make it a prerequisite of the former.
11862
11863 2009-05-01  Bruno Haible  <bruno@clisp.org>
11864
11865         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
11866         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11867         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
11868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
11869         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
11870         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11871         m4/locale-zh.m4, m4/codeset.m4.
11872
11873         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11874         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
11875         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11876         m4/locale-zh.m4.
11877
11878         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
11879         REPLACE_WCRTOMB if mbstate_t must be replaced.
11880         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
11881         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
11882
11883 2009-05-01  Bruno Haible  <bruno@clisp.org>
11884
11885         Avoid compiler warnings when redefining macros defined by <libintl.h>.
11886         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
11887         dngettext, dcngettext, textdomain, bindtextdomain,
11888         bind_textdomain_codeset): Undefine before redefining.
11889
11890 2009-04-30  Bruno Haible  <bruno@clisp.org>
11891
11892         Fix bug introduced on 2009-04-25.
11893         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
11894         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
11895         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
11896         is defined.
11897         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
11898         is defined.
11899         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
11900         is defined.
11901         Reported by Elbert_Pol <elbert.pol@gmail.com>.
11902
11903 2009-04-28  Bruno Haible  <bruno@clisp.org>
11904
11905         Comment tweaks.
11906         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
11907         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
11908         * lib/unicase.h (u*_casexfrm): Likewise.
11909         Reported by Paolo Bonzini.
11910
11911 2009-04-28  Bruno Haible  <bruno@clisp.org>
11912
11913         Fix a compilation error.
11914         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
11915         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
11916         Reported by Jim Meyering.
11917
11918 2009-04-27  Bruno Haible  <bruno@clisp.org>
11919
11920         New module 'libunistring'.
11921         * modules/libunistring: New file.
11922         * m4/libunistring.m4: New file.
11923         * MODULES.html.sh (Unicode string functions): Add it.
11924
11925 2009-04-27  Eric Blake  <ebb9@byu.net>
11926
11927         maint.mk: allow package-specific header to provide <config.h>
11928         * top/maint.mk (sc_require_config_h): New variable.
11929         (sc_require_config_h, sc_require_config_h_first): Use it.
11930
11931 2009-04-27  Simon Josefsson  <simon@josefsson.org>
11932
11933         * top/maint.mk (sc_avoid_if_before_free): Except
11934         useless-if-before-free script.
11935
11936 2009-04-27  Eric Blake  <ebb9@byu.net>
11937
11938         maintainer-makefile: depend on all required helper scripts
11939         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
11940         useless-if-before-free.
11941         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
11942         version, rather than assuming gnulib checkout is available.
11943         Reported by Simen Josefsson.
11944
11945 2009-04-26  Bruno Haible  <bruno@clisp.org>
11946
11947         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
11948         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
11949         "../" or "..".
11950
11951 2009-04-26  Bruno Haible  <bruno@clisp.org>
11952
11953         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
11954         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
11955         AC_LIB_HAVE_LINKFLAGS.
11956
11957 2009-04-26  Bruno Haible  <bruno@clisp.org>
11958
11959         Simplify calling convention of u*_conv_from_encoding.
11960         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
11961         u32_conv_from_encoding): Expect a resultbuf argument and return the
11962         result directly as a pointer.
11963         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11964         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
11965         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
11966         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
11967         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
11968         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11969         Update.
11970         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
11971         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
11972         * lib/vasnprintf.c (VASNPRINTF): Update.
11973         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
11974         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
11975         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
11976         * NEWS: Mention the change.
11977
11978 2009-04-26  Bruno Haible  <bruno@clisp.org>
11979
11980         Simplify calling convention of u*_conv_to_encoding.
11981         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11982         u32_conv_to_encoding): Expect a resultbuf argument and return the
11983         result directly as a pointer.
11984         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11985         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
11986         freeing scaled_offsets if mem_iconveha failed.
11987         * lib/unicase/u-casexfrm.h (FUNC): Update.
11988         * lib/uninorm/u-normxfrm.h (FUNC): Update.
11989         * lib/vasnprintf.c (VASNPRINTF): Update.
11990         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
11991         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
11992         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
11993         * NEWS: Mention the change.
11994
11995 2009-04-26  Bruno Haible  <bruno@clisp.org>
11996
11997         Avoid test failures on AIX and OSF/1.
11998         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
11999         malloc(0).
12000         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12001         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12002         Likewise.
12003         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12004         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12005         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12006         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12007         * doc/posix-functions/malloc.texi: Document the portability problem
12008         related to malloc(0).
12009
12010 2009-04-26  Bruno Haible  <bruno@clisp.org>
12011
12012         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12013         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12014         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12015
12016 2009-04-25  Bruno Haible  <bruno@clisp.org>
12017
12018         Avoid link error when creating a namespace clean library.
12019         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12020         as macro with arguments if already defined as an alias.
12021         * lib/signbitf.c (gl_signbitf): Don't undefine.
12022         * lib/signbitd.c (gl_signbitd): Don't undefine.
12023         * lib/signbitl.c (gl_signbitl): Don't undefine.
12024
12025 2009-04-25  Jim Meyering  <meyering@redhat.com>
12026
12027         vc-list-files: fix another quoting bug
12028         * build-aux/vc-list-files: Avoid sed backslash expansion
12029         of pathological directory names.
12030
12031 2009-04-25  Eric Blake  <ebb9@byu.net>
12032
12033         vc-list-files: fix shell quoting error
12034         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12035         timestamp.
12036
12037 2009-04-25  Jim Meyering  <meyering@redhat.com>
12038
12039         vc-list-files: restore lost functionality with subdir argument
12040         * build-aux/vc-list-files: When given a non-"." sub-directory
12041         argument, substitute the $dir/ prefix back onto each resulting name.
12042         Otherwise, coreutils' root_tests check would fail.
12043
12044 2009-04-24  Eric Blake  <ebb9@byu.net>
12045
12046         vc-list-files: ignore git symlinks
12047         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12048         than ls-files, to ignore git symlinks.
12049
12050         maint.mk: import improvements from m4
12051         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12052         (move_if_change): Delete unused macro.
12053         (news-date-check, vc-diff-check): Support VPATH builds.
12054         (announcement): Likewise.  Split --bootstrap-tools list...
12055         (boostrap-tools): ...into separate list, which can be overridden
12056         in cfg.mk.
12057         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12058         requiring dependency on useless-if-before-free module.
12059         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12060         Support VPATH builds.
12061
12062 2009-04-24  Jim Meyering  <meyering@redhat.com>
12063
12064         maint.mk: remove coreutils-specific rules and variables
12065         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12066         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12067         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12068
12069         maint.mk: remove obsolete rule
12070         * top/maint.mk (rel-check): Remove rule.
12071         (WGET, WGETFLAGS): Remove now-unused variables.
12072
12073 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12074
12075         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12076         consistency.
12077
12078         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12079         '$(PATH_SEPARATOR)' instead of ':'.
12080
12081 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12082
12083         * lib/getopt1.c (main): Use 'const' for static array.
12084
12085 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12086
12087         * top/maint.mk: Sync with coreutils.
12088         * NEWS: Explain incompatibilities.
12089
12090 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12091             Bruno Haible  <bruno@clisp.org>
12092
12093         Fix cross-compilation results.
12094         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12095         statement, as third argument of AC_TRY_RUN.
12096         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12097         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12098         Likewise.
12099         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12100         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12101         Likewise.
12102         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12104         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12105
12106 2009-04-20  Bruno Haible  <bruno@clisp.org>
12107
12108         Avoid test failure on mingw.
12109         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12110
12111 2009-04-20  Bruno Haible  <bruno@clisp.org>
12112
12113         Avoid compilation error on mingw.
12114         * modules/localename-tests (Depends-on): Add locale.
12115
12116 2009-04-19  Bruno Haible  <bruno@clisp.org>
12117
12118         Support for building a shared library on Windows platforms.
12119         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12120         (main): Test the presence of UNINORM_NFC here.
12121         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12122         (main): Test the presence of UNINORM_NFD here.
12123         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12124         (main): Test the presence of UNINORM_NFKC here.
12125         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12126         (main): Test the presence of UNINORM_NFKD here.
12127
12128 2009-04-19  Bruno Haible  <bruno@clisp.org>
12129
12130         Avoid a compiler warning.
12131         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12132         Change type of variable 'sequence'.
12133
12134 2009-04-19  Bruno Haible  <bruno@clisp.org>
12135
12136         * modules/configmake (Makefile.am): When the contents of configmake.h
12137         does not change, arrange to preserve its modification time.
12138
12139 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12140
12141         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12142         gettext domain.
12143
12144 2009-04-16  Jim Meyering  <meyering@redhat.com>
12145
12146         useless-if-before-free: improve conversion code
12147         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12148         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12149
12150 2009-04-14  Bruno Haible  <bruno@clisp.org>
12151
12152         * modules/fcntl (Depends-on): Add extensions.
12153         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12154
12155 2009-04-12  Ben Pfaff  <blp@gnu.org>
12156
12157         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12158         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12159
12160 2009-03-20  Ben Pfaff  <blp@gnu.org>
12161
12162         Make rename replace existing destinations on Windows.
12163         * m4/rename.m4: Add test for Mingw.
12164         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12165         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12166         * doc/posix-functions/rename.texi: Document.
12167
12168 2009-04-10  Bruno Haible  <bruno@clisp.org>
12169
12170         New include file "iconveh.h".
12171         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12172         * lib/striconveh.h: Include it.
12173         (enum iconv_ilseq_handler): Remove definition.
12174         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12175         striconveh.h.
12176         * lib/striconveha.c: Include striconveh.h.
12177         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12178         * modules/striconveh (Files): Add lib/iconveh.h.
12179         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12180         lib/striconveh.h.
12181
12182 2009-04-10  Bruno Haible  <bruno@clisp.org>
12183
12184         * lib/uniconv.h: Update comment.
12185
12186 2009-04-10  Bruno Haible  <bruno@clisp.org>
12187
12188         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12189         always.
12190         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12191         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12192         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12193         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12194         "unistring-notinline.h", so that the function gets defined always.
12195         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12196         * lib/unistr/u8-uctomb.c: Likewise.
12197         * lib/unistr/u16-mbtouc.c: Likewise.
12198         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12199         * lib/unistr/u16-uctomb.c: Likewise.
12200         * lib/unistr/u32-mbtouc.c: Likewise.
12201         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12202         * lib/unistr/u32-uctomb.c: Likewise.
12203
12204 2009-04-10  Bruno Haible  <bruno@clisp.org>
12205
12206         Mark 'utime' obsolete.
12207         * modules/utime (Status, Notice): New sections.
12208         Suggested by Jim Meyering.
12209
12210         Fix cross-compile guess for utime test.
12211         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12212         autoconf.
12213         * doc/posix-functions/utime.texi: Give more precisions.
12214         Reported by Jan <ipif@ymail.com>.
12215
12216 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12217
12218         filevercmp: correct today's change
12219         * lib/filevercmp.c: Also handle coreutils' test inputs.
12220         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12221
12222         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12223         for reporting it.
12224         * lib/filevercmp.c: Special handle for "", "." and "..".
12225         * tests/test-filevercmp.c: Enlarge the set suite.
12226
12227 2009-04-07  Jim Meyering  <meyering@redhat.com>
12228
12229         useless-if-before-free: show how to remove braced useless free, too
12230         * build-aux/useless-if-before-free: still only in a comment, though.
12231
12232 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12233
12234         maint.mk: import changes to syntax-check macros from coreutils
12235         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12236         Use them in the relevant macros.
12237
12238 2009-04-06  Bruno Haible  <bruno@clisp.org>
12239
12240         Fix unportable use of bit-fields.
12241         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12242         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12243         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12244
12245 2009-04-06  Bruno Haible  <bruno@clisp.org>
12246
12247         Avoid test failures on AIX and OSF/1.
12248         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12249         that malloc(0) = NULL.
12250         * tests/unicase/test-u8-tolower.c (check): Likewise.
12251         * tests/unicase/test-u8-totitle.c (check): Likewise.
12252         * tests/unicase/test-u8-toupper.c (check): Likewise.
12253         * tests/unicase/test-u16-casefold.c (check): Likewise.
12254         * tests/unicase/test-u16-tolower.c (check): Likewise.
12255         * tests/unicase/test-u16-totitle.c (check): Likewise.
12256         * tests/unicase/test-u16-toupper.c (check): Likewise.
12257         * tests/unicase/test-u32-casefold.c (check): Likewise.
12258         * tests/unicase/test-u32-tolower.c (check): Likewise.
12259         * tests/unicase/test-u32-totitle.c (check): Likewise.
12260         * tests/unicase/test-u32-toupper.c (check): Likewise.
12261         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12262         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12263         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12264         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12265         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12266         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12267         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12268         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12269         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12270         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12271         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12272         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12273
12274 2009-04-05  Bruno Haible  <bruno@clisp.org>
12275
12276         Work around an autoconf limitation.
12277         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12278         comment line if it would be longer than 3 KB.
12279
12280 2009-04-05  Bruno Haible  <bruno@clisp.org>
12281
12282         Avoid test failure with libiconv-1.13.
12283         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12284         of the expected test results.
12285
12286 2009-04-05  Bruno Haible  <bruno@clisp.org>
12287
12288         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12289         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12290         that it should be installed.
12291
12292 2009-04-05  Bruno Haible  <bruno@clisp.org>
12293
12294         * gnulib-tool: New option --copy-file.
12295         (func_usage): Document it.
12296         (func_dest_tmpfilename): Moved out of func_import.
12297         (func_add_file, func_update_file): New functions, extracted from
12298         func_import.
12299         (func_import): Update.
12300
12301 2009-04-05  Karl Berry  <karl@gnu.org>
12302
12303         * README: prominently mention gnulib-tool.
12304         Rearrange sections so getting the code is near the top.
12305
12306 2009-04-05  Bruno Haible  <bruno@clisp.org>
12307
12308         * lib/unicase.h: Mention u*_cmp2.
12309         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12310         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12311         * lib/unicase/ulc-casecmp.c: Likewise.
12312         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12313         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12314         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12315         unistr/u8-cmp.
12316         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12317         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12318         unistr/u16-cmp.
12319         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12320         unistr/u32-cmp.
12321
12322         * lib/uninorm.h: Mention u*_cmp2.
12323         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12324         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12325         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12326         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12327         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12328         unistr/u8-cmp.
12329         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12330         unistr/u16-cmp.
12331         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12332         unistr/u32-cmp.
12333
12334         New module 'unistr/u32-cmp2'.
12335         * lib/unistr/u32-cmp2.c: New file.
12336         * modules/unistr/u32-cmp2: New file.
12337
12338         New module 'unistr/u16-cmp2'.
12339         * lib/unistr/u16-cmp2.c: New file.
12340         * modules/unistr/u16-cmp2: New file.
12341
12342         New module 'unistr/u8-cmp2'.
12343         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12344         * lib/unistr/u8-cmp2.c: New file.
12345         * lib/unistr/u-cmp2.h: New file.
12346         * modules/unistr/u8-cmp2: New file.
12347
12348 2009-04-05  Bruno Haible  <bruno@clisp.org>
12349
12350         * lib/unictype.h (uc_property_is_valid): New macro.
12351         * tests/unictype/test-pr_byname.c (main): Use it.
12352
12353         * lib/unistr.h: Doc fixes.
12354         * lib/uniconv.h: Doc fixes.
12355         * lib/unictype.h: Doc fixes.
12356
12357 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12358
12359         Port coreutils 7.2 to Solaris 8.
12360
12361         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12362         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12363         for Solaris 8.  This is a bit of a hack, as it means it's the
12364         caller's responsibility to add -lnsl if needed, but most likely it
12365         won't be needed since only getaddrinfo uses this and getaddrinfo
12366         isn't needed on Solaris 8.
12367
12368         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12369         problem to Solaris 8 encountered with coreutils 7.2, which
12370         resulted in a message "fnmatch.c:292: warning: passing argument 4
12371         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12372         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12373
12374 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12375
12376         * m4/ld-version-script.m4: Add FIXME comment.
12377
12378 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12379
12380         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12381         SOVERSION variable.
12382
12383 2009-04-02  Bruno Haible  <bruno@clisp.org>
12384
12385         * Makefile (info, html, dvi, pdf): Combine the rules.
12386         Suggested by Jim Meyering.
12387
12388 2009-04-01  Bruno Haible  <bruno@clisp.org>
12389
12390         * Makefile (info, html, dvi, pdf): New targets.
12391         Reported by Reuben Thomas <rrt@sc3d.org>.
12392
12393 2009-04-01  Bruno Haible  <bruno@clisp.org>
12394
12395         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12396         can be put into PATH.
12397         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12398
12399 2009-04-01  Bruno Haible  <bruno@clisp.org>
12400
12401         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12402
12403 2009-04-01  Bruno Haible  <bruno@clisp.org>
12404
12405         Rename module 'visibility'.
12406         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12407         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12408         * doc/gnulib.texi: Update.
12409         * MODULES.html.sh (Misc): Update.
12410         * NEWS: Mention the change.
12411
12412 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12413
12414         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12415         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12416         Eric Blake <ebb9@byu.net> for review.
12417         * MODULES.html.sh: Add lib-msvc-compat.
12418         * doc/gnulib.texi: Link to new section.
12419         * m4/ld-output-def.m4: New file.
12420         * doc/ld-output-def.texi: New file.
12421
12422 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12423
12424         Rename ld-version-script to lib-symbol-versions.  Suggested by
12425         Bruno Haible <bruno@clisp.org>.
12426         * modules/ld-version-script: Renamed to lib-symbol-versions.
12427         * doc/ld-version-script.texi: Fix module name.
12428         * MODULES.html.sh: Add lib-symbol-versions.
12429
12430 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12431
12432         * modules/u64-tests: New file.
12433         * tests/test-u64.c: New file.
12434
12435 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12436
12437         * MODULES.html.sh: Mention u64.
12438         * modules/u64: New module.
12439         * modules/crypto/sha512: Depend on u64 module instead of providing
12440         u64.h.
12441
12442 2009-03-27  Eric Blake  <ebb9@byu.net>
12443
12444         test-strerror: make debugging EAI_SYSTEM easier
12445         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12446         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12447         failure was EAI_SYSTEM.
12448
12449 2009-03-25  Bruno Haible  <bruno@clisp.org>
12450
12451         Fix a problem with --enable-relocatable on Solaris 7.
12452         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12453         since 2008-02-24.
12454
12455 2009-03-25  Eric Blake  <ebb9@byu.net>
12456
12457         test-sockets: avoid gcc warning
12458         * tests/test-sockets.c (main): Silence compiler warning.
12459
12460 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12461
12462         New modules nproc, pthread, contributed by Glen Lenker.
12463
12464         * MODULES.html.sh: Add pthread, nproc.
12465         * lib/nproc.c: New file.
12466         * lib/nproc.h: New file.
12467         * lib/pthread.in.h: New file.
12468         * m4/pthread.m4: New file.
12469         * modules/nproc: New file.
12470         * modules/pthread: New file.
12471
12472 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12473
12474         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12475         New variable.
12476
12477 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12478
12479         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12480         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12481         * tests/test-filevercmp.c: Add tests for backup suffixes.
12482
12483 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12484
12485         * modules/stdlib (Depends-on): Add stdint, needed when defining
12486         struct random_data on, for example, HP-UX 10.20.  Reported by
12487         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12488
12489 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12490
12491         * lib/readline.c (readline): Call fflush on stdout after printing
12492         prompt.
12493
12494 2009-03-20  Bruno Haible  <bruno@clisp.org>
12495
12496         Remove dependency from 'close' module to -lws2_32 on native Windows.
12497         * lib/close-hook.h: New file.
12498         * lib/close-hook.c: New file.
12499         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12500         w32sock.h.
12501         (_gl_close_fd_maybe_socket): Remove function.
12502         (rpl_close): Invoke execute_all_close_hooks instead of
12503         _gl_close_fd_maybe_socket.
12504         * lib/sockets.c: Include close-hook.h, w32sock.h.
12505         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12506         (close_sockets_hook): New variable.
12507         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12508         (gl_sockets_cleanup): Unregister it.
12509         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12510         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12511         * modules/close-hook: New file.
12512         * modules/close (Files): Remove lib/w32sock.h.
12513         (Depends-on): Add close-hook.
12514         (Link): Remove section.
12515         * modules/sockets (Files): Add lib/w32sock.h.
12516         (Depends-on): Add close-hook.
12517         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12518         invocation.
12519         * NEWS: Mention that LIB_CLOSE is gone.
12520
12521 2009-03-23  Eric Blake  <ebb9@byu.net>
12522
12523         signal-tests: test previous patch
12524         * tests/test-signal.c: New file.
12525         * modules/signal-tests: Likewise.
12526
12527         signal.h: always support 'volatile sig_atomic_t'
12528         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12529         (gl_SIGNAL_H_DEFAULTS): Add a default.
12530         * modules/signal (Makefile.am): Substitute if needed.
12531         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12532         users can blindly add volatile.
12533         * doc/posix-headers/signal.texi (signal.h): Document it.
12534         Reported by Matthew Woehlke.
12535
12536 2009-03-23  Jim Meyering  <meyering@redhat.com>
12537
12538         pathmax: PATH_MAX: use pathconf only when available
12539         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12540         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12541         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12542         This avoids a link failure in a PSP cross-compilation environment
12543         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12544
12545         * lib/vasnprintf.c (divide): Fix typo in comment.
12546
12547 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12548
12549         * gnulib-tool (func_filter_filelist): Fix comment.
12550
12551 2009-03-20  Bruno Haible  <bruno@clisp.org>
12552
12553         Make sockets.h self-contained.
12554         * lib/sockets.c: Include sockets.h first.
12555         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12556
12557 2009-03-19  Eric Blake  <ebb9@byu.net>
12558
12559         doc: mention more functions added in cygwin 1.7.0
12560         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12561         addition.
12562         * doc/posix-functions/log2f.texi: Likewise.
12563
12564 2009-03-19  Jim Meyering  <meyering@redhat.com>
12565
12566         fsusage: avoid syntax error due to statement-before-declaration
12567         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12568         after all declarations.  Reported by Matthew Woehlke in
12569         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12570
12571 2009-03-18  Eric Blake  <ebb9@byu.net>
12572
12573         build-aux/compile: sync from automake
12574         * build-aux/compile: New file, from automake.
12575         * config/srclist.txt: Mention build-aux/compile.
12576
12577 2009-03-17  Bruno Haible  <bruno@clisp.org>
12578
12579         * lib/git-merge-changelog.c: Fix typo in comment.
12580         Reported by Reuben Thomas <rrt@sc3d.org>.
12581
12582 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12583
12584         * m4/regex.m4: update and improve help for
12585         --without-included-regex.
12586
12587 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12588
12589         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12590         failure on missing include files.
12591
12592 2009-03-17  Eric Blake  <ebb9@byu.net>
12593
12594         doc: mention more functions added in cygwin 1.7.0
12595         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12596         addition.
12597         * doc/posix-functions/fwscanf.texi: Likewise.
12598         * doc/posix-functions/swprintf.texi: Likewise.
12599         * doc/posix-functions/swscanf.texi: Likewise.
12600         * doc/posix-functions/vfwprintf.texi: Likewise.
12601         * doc/posix-functions/vfwscanf.texi: Likewise.
12602         * doc/posix-functions/vswprintf.texi: Likewise.
12603         * doc/posix-functions/vswscanf.texi: Likewise.
12604         * doc/posix-functions/vwprintf.texi: Likewise.
12605         * doc/posix-functions/vwscanf.texi: Likewise.
12606         * doc/posix-functions/wcscasecmp.texi: Likewise.
12607         * doc/posix-functions/wcsdup.texi: Likewise.
12608         * doc/posix-functions/wcsftime.texi: Likewise.
12609         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12610         * doc/posix-functions/wprintf.texi: Likewise.
12611         * doc/posix-functions/wscanf.texi: Likewise.
12612         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12613
12614 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12615
12616         maint.mk: really add $(AM_MAKEFLAGS)
12617         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12618         was inadvertently omitted in the last commit.
12619         Spotted by Bruno Haible.
12620
12621         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12622         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12623         $(AM_MAKEFLAGS)' rather than plain `make'.
12624
12625         gnulib-tool: execute $MAKE not make
12626         * gnulib-tool: Default $MAKE to 'make'.
12627         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12628         than make.  Initialize $MAKE in the do-autobuild script.
12629
12630         gnulib-tool: use $MAKE not make in generated files
12631         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12632         make, in generated files.  Initialize $MAKE in the do-autobuild
12633         script.
12634
12635         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12636
12637         GNUmakefile: disable parallelism only for multiple, recursive targets
12638         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12639         additions in the Makefile.
12640         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12641         by Automake.
12642         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12643         are listed on the command line and at least one of them is
12644         listed in $(ALL_RECURSIVE_TARGETS).
12645
12646 2009-03-14  Bruno Haible  <bruno@clisp.org>
12647
12648         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12649         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12650         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12651         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12652         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12653         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12654         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12655         unistr/u8-uctomb.
12656         * modules/unistr/u8-strchr (Depends-on): Likewise.
12657         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12658         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12659         unistr/u16-uctomb.
12660         * modules/unistr/u16-strchr (Depends-on): Likewise.
12661         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12662
12663 2009-03-12  Bruno Haible  <bruno@clisp.org>
12664
12665         Work around select() bug on Interix 3.5.
12666         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12667         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12668         * m4/select.m4: New file.
12669         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12670         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12671         * modules/select (Files): Add m4/select.m4.
12672         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12673         * modules/nanosleep (Depends-on): Add select.
12674         * modules/poll (Depends-on): Likewise.
12675         * doc/posix-functions/select.texi: Mention the Interix bug.
12676         Reported by Markus Duft <mduft@gentoo.org>.
12677
12678         * lib/select.c: Renamed from lib/winsock-select.c.
12679         * modules/select (Files): Add lib/select.c, remove
12680         lib/winsock-select.c.
12681         (configure.ac): Update.
12682
12683 2009-03-12  Jim Meyering  <meyering@redhat.com>
12684
12685         avoid gcc warnings about unused macro definitions
12686         * lib/readtokens.c (STREQ): Remove unused definition.
12687         * lib/xmalloc.c (SIZE_MAX): Likewise.
12688         * lib/openat-die.c (N_): Likewise.
12689         * lib/mountlist.c (SIZE_MAX): Remove definition.
12690         Instead, include <stdint.h>.
12691         * lib/readutmp.c: Likewise.
12692         * modules/readutmp (Depends-on): Add stdint.
12693         * modules/mountlist (Depends-on): Add stdint.
12694         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12695
12696 2009-03-10  Bruno Haible  <bruno@clisp.org>
12697
12698         Tests for module 'mbmemcasecoll'.
12699         * modules/mbmemcasecoll-tests: New file.
12700         * tests/test-mbmemcasecoll1.sh: New file.
12701         * tests/test-mbmemcasecoll2.sh: New file.
12702         * tests/test-mbmemcasecoll3.sh: New file.
12703         * tests/test-mbmemcasecoll.c: New file.
12704
12705         New module 'mbmemcasecoll'.
12706         * lib/mbmemcasecoll.h: New file.
12707         * lib/mbmemcasecoll.c: New file.
12708         * modules/mbmemcasecoll: New file.
12709
12710         * tests/test-mbmemcasecmp.h: New file, extracted from
12711         tests/test-mbmemcasecmp.c.
12712         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12713         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12714         (main): Update.
12715         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12716
12717 2009-03-09  Bruno Haible  <bruno@clisp.org>
12718
12719         Tests for module 'mbmemcasecmp'.
12720         * modules/mbmemcasecmp-tests: New file.
12721         * tests/test-mbmemcasecmp1.sh: New file.
12722         * tests/test-mbmemcasecmp2.sh: New file.
12723         * tests/test-mbmemcasecmp3.sh: New file.
12724         * tests/test-mbmemcasecmp.c: New file.
12725
12726         New module 'mbmemcasecmp'.
12727         * lib/mbmemcasecmp.h: New file.
12728         * lib/mbmemcasecmp.c: New file.
12729         * modules/mbmemcasecmp: New file.
12730
12731 2009-03-09  Bruno Haible  <bruno@clisp.org>
12732
12733         Tests for module 'unicase/ulc-casecoll'.
12734         * modules/unicase/ulc-casecoll-tests: New file.
12735         * tests/unicase/test-ulc-casecoll1.sh: New file.
12736         * tests/unicase/test-ulc-casecoll2.sh: New file.
12737         * tests/unicase/test-ulc-casecoll.c: New file.
12738
12739         New module 'unicase/ulc-casecoll'.
12740         * lib/unicase.h (ulc_casecoll): New declaration.
12741         * lib/unicase/ulc-casecoll.c: New file.
12742         * modules/unicase/ulc-casecoll: New file.
12743
12744         New module 'unicase/ulc-casexfrm'.
12745         * lib/unicase.h (ulc_casexfrm): New declaration.
12746         * lib/unicase/ulc-casexfrm.c: New file.
12747         * modules/unicase/ulc-casexfrm: New file.
12748
12749 2009-03-09  Bruno Haible  <bruno@clisp.org>
12750
12751         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12752         invocations.
12753
12754         * m4/mbscasecmp.m4: Remove file.
12755         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12756         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
12757
12758         * m4/mbscasestr.m4: Remove file.
12759         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
12760         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
12761
12762         * m4/mbschr.m4: Remove file.
12763         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
12764         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
12765
12766         * m4/mbscspn.m4: Remove file.
12767         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
12768         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
12769
12770         * m4/mbslen.m4: Remove file.
12771         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
12772         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
12773
12774         * m4/mbsncasecmp.m4: Remove file.
12775         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
12776         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
12777
12778         * m4/mbsnlen.m4: Remove file.
12779         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
12780         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
12781
12782         * m4/mbspbrk.m4: Remove file.
12783         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
12784         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
12785
12786         * m4/mbspcasecmp.m4: Remove file.
12787         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
12788         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
12789
12790         * m4/mbsrchr.m4: Remove file.
12791         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
12792         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
12793
12794         * m4/mbssep.m4: Remove file.
12795         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
12796         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
12797
12798         * m4/mbsspn.m4: Remove file.
12799         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
12800         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
12801
12802         * m4/mbsstr.m4: Remove file.
12803         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
12804         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
12805
12806         * m4/mbstok_r.m4: Remove file.
12807         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
12808         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
12809
12810         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
12811
12812         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
12813         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
12814
12815         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
12816
12817 2009-03-08  Bruno Haible  <bruno@clisp.org>
12818
12819         Tests for module 'unicase/ulc-casecmp'.
12820         * modules/unicase/ulc-casecmp-tests: New file.
12821         * tests/unicase/test-ulc-casecmp1.sh: New file.
12822         * tests/unicase/test-ulc-casecmp2.sh: New file.
12823         * tests/unicase/test-ulc-casecmp.c: New file.
12824
12825         New module 'unicase/ulc-casecmp'.
12826         * lib/unicase.h (ulc_casecmp): New declaration.
12827         * lib/unicase/ulc-casecmp.c: New file.
12828         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
12829         'const SRC_UNIT *'.
12830         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
12831         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
12832         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
12833         * modules/unicase/ulc-casecmp: New file.
12834
12835         Tests for module 'unicase/u32-is-cased'.
12836         * modules/unicase/u32-is-cased-tests: New file.
12837         * tests/unicase/test-u32-is-cased.c: New file.
12838
12839         Tests for module 'unicase/u16-is-cased'.
12840         * modules/unicase/u16-is-cased-tests: New file.
12841         * tests/unicase/test-u16-is-cased.c: New file.
12842
12843         Tests for module 'unicase/u8-is-cased'.
12844         * modules/unicase/u8-is-cased-tests: New file.
12845         * tests/unicase/test-u8-is-cased.c: New file.
12846         * tests/unicase/test-is-cased.h: New file.
12847
12848         New module 'unicase/u32-is-cased'.
12849         * lib/unicase/u32-is-cased.c: New file.
12850         * modules/unicase/u32-is-cased: New file.
12851
12852         New module 'unicase/u16-is-cased'.
12853         * lib/unicase/u16-is-cased.c: New file.
12854         * modules/unicase/u16-is-cased: New file.
12855
12856         New module 'unicase/u8-is-cased'.
12857         * lib/unicase/u8-is-cased.c: New file.
12858         * lib/unicase/u-is-cased.h: New file.
12859         * modules/unicase/u8-is-cased: New file.
12860
12861         Tests for module 'unicase/u32-is-casefolded'.
12862         * modules/unicase/u32-is-casefolded-tests: New file.
12863         * tests/unicase/test-u32-is-casefolded.c: New file.
12864
12865         Tests for module 'unicase/u16-is-casefolded'.
12866         * modules/unicase/u16-is-casefolded-tests: New file.
12867         * tests/unicase/test-u16-is-casefolded.c: New file.
12868
12869         Tests for module 'unicase/u8-is-casefolded'.
12870         * modules/unicase/u8-is-casefolded-tests: New file.
12871         * tests/unicase/test-u8-is-casefolded.c: New file.
12872         * tests/unicase/test-is-casefolded.h: New file.
12873
12874         New module 'unicase/u32-is-casefolded'.
12875         * lib/unicase/u32-is-casefolded.c: New file.
12876         * modules/unicase/u32-is-casefolded: New file.
12877
12878         New module 'unicase/u16-is-casefolded'.
12879         * lib/unicase/u16-is-casefolded.c: New file.
12880         * modules/unicase/u16-is-casefolded: New file.
12881
12882         New module 'unicase/u8-is-casefolded'.
12883         * lib/unicase/u8-is-casefolded.c: New file.
12884         * modules/unicase/u8-is-casefolded: New file.
12885
12886         Tests for module 'unicase/u32-is-titlecase'.
12887         * modules/unicase/u32-is-titlecase-tests: New file.
12888         * tests/unicase/test-u32-is-titlecase.c: New file.
12889
12890         Tests for module 'unicase/u16-is-titlecase'.
12891         * modules/unicase/u16-is-titlecase-tests: New file.
12892         * tests/unicase/test-u16-is-titlecase.c: New file.
12893
12894         Tests for module 'unicase/u8-is-titlecase'.
12895         * modules/unicase/u8-is-titlecase-tests: New file.
12896         * tests/unicase/test-u8-is-titlecase.c: New file.
12897         * tests/unicase/test-is-titlecase.h: New file.
12898
12899         New module 'unicase/u32-is-titlecase'.
12900         * lib/unicase/u32-is-titlecase.c: New file.
12901         * modules/unicase/u32-is-titlecase: New file.
12902
12903         New module 'unicase/u16-is-titlecase'.
12904         * lib/unicase/u16-is-titlecase.c: New file.
12905         * modules/unicase/u16-is-titlecase: New file.
12906
12907         New module 'unicase/u8-is-titlecase'.
12908         * lib/unicase/u8-is-titlecase.c: New file.
12909         * modules/unicase/u8-is-titlecase: New file.
12910
12911         Tests for module 'unicase/u32-is-lowercase'.
12912         * modules/unicase/u32-is-lowercase-tests: New file.
12913         * tests/unicase/test-u32-is-lowercase.c: New file.
12914
12915         Tests for module 'unicase/u16-is-lowercase'.
12916         * modules/unicase/u16-is-lowercase-tests: New file.
12917         * tests/unicase/test-u16-is-lowercase.c: New file.
12918
12919         Tests for module 'unicase/u8-is-lowercase'.
12920         * modules/unicase/u8-is-lowercase-tests: New file.
12921         * tests/unicase/test-u8-is-lowercase.c: New file.
12922         * tests/unicase/test-is-lowercase.h: New file.
12923
12924         New module 'unicase/u32-is-lowercase'.
12925         * lib/unicase/u32-is-lowercase.c: New file.
12926         * modules/unicase/u32-is-lowercase: New file.
12927
12928         New module 'unicase/u16-is-lowercase'.
12929         * lib/unicase/u16-is-lowercase.c: New file.
12930         * modules/unicase/u16-is-lowercase: New file.
12931
12932         New module 'unicase/u8-is-lowercase'.
12933         * lib/unicase/u8-is-lowercase.c: New file.
12934         * modules/unicase/u8-is-lowercase: New file.
12935
12936         Tests for module 'unicase/u32-is-uppercase'.
12937         * modules/unicase/u32-is-uppercase-tests: New file.
12938         * tests/unicase/test-u32-is-uppercase.c: New file.
12939
12940         Tests for module 'unicase/u16-is-uppercase'.
12941         * modules/unicase/u16-is-uppercase-tests: New file.
12942         * tests/unicase/test-u16-is-uppercase.c: New file.
12943
12944         Tests for module 'unicase/u8-is-uppercase'.
12945         * modules/unicase/u8-is-uppercase-tests: New file.
12946         * tests/unicase/test-u8-is-uppercase.c: New file.
12947         * tests/unicase/test-is-uppercase.h: New file.
12948
12949         New module 'unicase/u32-is-uppercase'.
12950         * lib/unicase/u32-is-uppercase.c: New file.
12951         * modules/unicase/u32-is-uppercase: New file.
12952
12953         New module 'unicase/u16-is-uppercase'.
12954         * lib/unicase/u16-is-uppercase.c: New file.
12955         * modules/unicase/u16-is-uppercase: New file.
12956
12957         New module 'unicase/u8-is-uppercase'.
12958         * lib/unicase/u8-is-uppercase.c: New file.
12959         * modules/unicase/u8-is-uppercase: New file.
12960
12961         New module 'unicase/u32-is-invariant'.
12962         * lib/unicase/u32-is-invariant.c: New file.
12963         * modules/unicase/u32-is-invariant: New file.
12964
12965         New module 'unicase/u16-is-invariant'.
12966         * lib/unicase/u16-is-invariant.c: New file.
12967         * modules/unicase/u16-is-invariant: New file.
12968
12969         New module 'unicase/u8-is-invariant'.
12970         * lib/unicase/u8-is-invariant.c: New file.
12971         * lib/unicase/invariant.h: New file.
12972         * lib/unicase/u-is-invariant.h: New file.
12973         * modules/unicase/u8-is-invariant: New file.
12974
12975         Tests for module 'unicase/u32-casecoll'.
12976         * modules/unicase/u32-casecoll-tests: New file.
12977         * tests/unicase/test-u32-casecoll.c: New file.
12978
12979         Tests for module 'unicase/u16-casecoll'.
12980         * modules/unicase/u16-casecoll-tests: New file.
12981         * tests/unicase/test-u16-casecoll.c: New file.
12982
12983         Tests for module 'unicase/u8-casecoll'.
12984         * modules/unicase/u8-casecoll-tests: New file.
12985         * tests/unicase/test-u8-casecoll.c: New file.
12986
12987         New module 'unicase/u32-casecoll'.
12988         * lib/unicase/u32-casecoll.c: New file.
12989         * modules/unicase/u32-casecoll: New file.
12990
12991         New module 'unicase/u16-casecoll'.
12992         * lib/unicase/u16-casecoll.c: New file.
12993         * modules/unicase/u16-casecoll: New file.
12994
12995         New module 'unicase/u8-casecoll'.
12996         * lib/unicase/u8-casecoll.c: New file.
12997         * lib/unicase/u-casecoll.h: New file.
12998         * modules/unicase/u8-casecoll: New file.
12999
13000         New module 'unicase/u32-casexfrm'.
13001         * lib/unicase/u32-casexfrm.c: New file.
13002         * modules/unicase/u32-casexfrm: New file.
13003
13004         New module 'unicase/u16-casexfrm'.
13005         * lib/unicase/u16-casexfrm.c: New file.
13006         * modules/unicase/u16-casexfrm: New file.
13007
13008         New module 'unicase/u8-casexfrm'.
13009         * lib/unicase/u8-casexfrm.c: New file.
13010         * lib/unicase/u-casexfrm.h: New file.
13011         * modules/unicase/u8-casexfrm: New file.
13012
13013         Tests for module 'unicase/u32-casecmp'.
13014         * modules/unicase/u32-casecmp-tests: New file.
13015         * tests/unicase/test-u32-casecmp.c: New file.
13016
13017         Tests for module 'unicase/u16-casecmp'.
13018         * modules/unicase/u16-casecmp-tests: New file.
13019         * tests/unicase/test-u16-casecmp.c: New file.
13020
13021         Tests for module 'unicase/u8-casecmp'.
13022         * modules/unicase/u8-casecmp-tests: New file.
13023         * tests/unicase/test-u8-casecmp.c: New file.
13024         * tests/unicase/test-casecmp.h: New file.
13025
13026         New module 'unicase/u32-casecmp'.
13027         * lib/unicase/u32-casecmp.c: New file.
13028         * modules/unicase/u32-casecmp: New file.
13029
13030         New module 'unicase/u16-casecmp'.
13031         * lib/unicase/u16-casecmp.c: New file.
13032         * modules/unicase/u16-casecmp: New file.
13033
13034         New module 'unicase/u8-casecmp'.
13035         * lib/unicase/u8-casecmp.c: New file.
13036         * lib/unicase/u-casecmp.h: New file.
13037         * modules/unicase/u8-casecmp: New file.
13038
13039         Tests for module 'unicase/u32-casefold'.
13040         * modules/unicase/u32-casefold-tests: New file.
13041         * tests/unicase/test-u32-casefold.c: New file.
13042
13043         Tests for module 'unicase/u16-casefold'.
13044         * modules/unicase/u16-casefold-tests: New file.
13045         * tests/unicase/test-u16-casefold.c: New file.
13046
13047         Tests for module 'unicase/u8-casefold'.
13048         * modules/unicase/u8-casefold-tests: New file.
13049         * tests/unicase/test-u8-casefold.c: New file.
13050
13051         New module 'unicase/u32-casefold'.
13052         * lib/unicase/u32-casefold.c: New file.
13053         * modules/unicase/u32-casefold: New file.
13054
13055         New module 'unicase/u16-casefold'.
13056         * lib/unicase/u16-casefold.c: New file.
13057         * modules/unicase/u16-casefold: New file.
13058
13059         New module 'unicase/u8-casefold'.
13060         * lib/unicase/u8-casefold.c: New file.
13061         * lib/unicase/u-casefold.h: New file.
13062         * modules/unicase/u8-casefold: New file.
13063
13064         New module 'unicase/tocasefold'.
13065         * lib/unicase/casefold.h: New file.
13066         * lib/unicase/tocasefold.c: New file.
13067         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13068         * modules/unicase/tocasefold: New file.
13069
13070         Tests for module 'unicase/u32-totitle'.
13071         * modules/unicase/u32-totitle-tests: New file.
13072         * tests/unicase/test-u32-totitle.c: New file.
13073
13074         Tests for module 'unicase/u16-totitle'.
13075         * modules/unicase/u16-totitle-tests: New file.
13076         * tests/unicase/test-u16-totitle.c: New file.
13077
13078         Tests for module 'unicase/u8-totitle'.
13079         * modules/unicase/u8-totitle-tests: New file.
13080         * tests/unicase/test-u8-totitle.c: New file.
13081
13082         New module 'unicase/u32-totitle'.
13083         * lib/unicase/u32-totitle.c: New file.
13084         * modules/unicase/u32-totitle: New file.
13085
13086         New module 'unicase/u16-totitle'.
13087         * lib/unicase/u16-totitle.c: New file.
13088         * modules/unicase/u16-totitle: New file.
13089
13090         New module 'unicase/u8-totitle'.
13091         * lib/unicase/u8-totitle.c: New file.
13092         * lib/unicase/u-totitle.h: New file.
13093         * modules/unicase/u8-totitle: New file.
13094
13095         Tests for module 'unicase/u32-tolower'.
13096         * modules/unicase/u32-tolower-tests: New file.
13097         * tests/unicase/test-u32-tolower.c: New file.
13098
13099         Tests for module 'unicase/u16-tolower'.
13100         * modules/unicase/u16-tolower-tests: New file.
13101         * tests/unicase/test-u16-tolower.c: New file.
13102
13103         Tests for module 'unicase/u8-tolower'.
13104         * modules/unicase/u8-tolower-tests: New file.
13105         * tests/unicase/test-u8-tolower.c: New file.
13106
13107         New module 'unicase/u32-tolower'.
13108         * lib/unicase/u32-tolower.c: New file.
13109         * modules/unicase/u32-tolower: New file.
13110
13111         New module 'unicase/u16-tolower'.
13112         * lib/unicase/u16-tolower.c: New file.
13113         * modules/unicase/u16-tolower: New file.
13114
13115         New module 'unicase/u8-tolower'.
13116         * lib/unicase/u8-tolower.c: New file.
13117         * modules/unicase/u8-tolower: New file.
13118
13119         Tests for module 'unicase/u32-toupper'.
13120         * modules/unicase/u32-toupper-tests: New file.
13121         * tests/unicase/test-u32-toupper.c: New file.
13122
13123         Tests for module 'unicase/u16-toupper'.
13124         * modules/unicase/u16-toupper-tests: New file.
13125         * tests/unicase/test-u16-toupper.c: New file.
13126
13127         Tests for module 'unicase/u8-toupper'.
13128         * modules/unicase/u8-toupper-tests: New file.
13129         * tests/unicase/test-u8-toupper.c: New file.
13130
13131         New module 'unicase/u32-toupper'.
13132         * lib/unicase/u32-toupper.c: New file.
13133         * modules/unicase/u32-toupper: New file.
13134
13135         New module 'unicase/u16-toupper'.
13136         * lib/unicase/u16-toupper.c: New file.
13137         * modules/unicase/u16-toupper: New file.
13138
13139         New module 'unicase/u8-toupper'.
13140         * lib/unicase/u8-toupper.c: New file.
13141         * modules/unicase/u8-toupper: New file.
13142
13143         New module 'unicase/u32-casemap'.
13144         * lib/unicase/u32-casemap.c: New file.
13145         * modules/unicase/u32-casemap: New file.
13146
13147         New module 'unicase/u16-casemap'.
13148         * lib/unicase/u16-casemap.c: New file.
13149         * modules/unicase/u16-casemap: New file.
13150
13151         New module 'unicase/u8-casemap'.
13152         * lib/unicase/unicasemap.h: New file.
13153         * lib/unicase/u8-casemap.c: New file.
13154         * lib/unicase/u-casemap.h: New file.
13155         * modules/unicase/u8-casemap: New file.
13156
13157         New module 'unicase/special-casing'.
13158         * lib/unicase/special-casing.h: New file.
13159         * lib/unicase/special-casing.c: New file.
13160         * lib/unicase/special-casing-table.gperf: New file, generated by
13161         gen-uni-tables.c.
13162         * modules/unicase/special-casing: New file.
13163
13164         Tests for module 'unicase/locale-language'.
13165         * modules/unicase/locale-language-tests: New file.
13166         * tests/unicase/test-locale-language.sh: New file.
13167         * tests/unicase/test-locale-language.c: New file.
13168
13169         New module 'unicase/locale-language'.
13170         * lib/unicase/locale-language.c: New file.
13171         * lib/unicase/locale-languages.gperf: New file.
13172         * modules/unicase/locale-language: New file.
13173
13174         Generate more tables for case conversion and case folding.
13175         * lib/gen-uni-tables.c (SCC_*): New enum items.
13176         (struct special_casing_rule): New type.
13177         (casing_rules, num_casing_rules, allocated_casing_rules): New
13178         variables.
13179         (add_casing_rule, fill_casing_rules): New functions.
13180         (struct casefold_rule): New type.
13181         (casefolding_rules, num_casefolding_rules,
13182         allocated_casefolding_rules): New variables.
13183         (fill_casefolding_rules): New function.
13184         (unicode_casefold): New variable.
13185         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13186         sort_casing_rules, output_casing_rules): New functions.
13187         (main): Accept to more arguments: SpecialCasing.txt and
13188         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13189         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13190         Output mapping for casefolding.
13191
13192         * lib/unicase.h: Include stdbool.h, uninorm.h.
13193         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13194         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13195         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13196         arguments.
13197         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13198         resultp arguments.
13199         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13200         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13201         resultp arguments.
13202         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13203         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13204         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13205         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13206         declarations.
13207         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13208
13209 2009-03-08  Bruno Haible  <bruno@clisp.org>
13210
13211         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13212         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13213         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13214         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13215
13216 2009-03-07  Bruno Haible  <bruno@clisp.org>
13217
13218         Adjust u*_normcmp, u*_normcoll API.
13219         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13220         u16_normcoll, u32_normcoll): Change failure conventions.
13221         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13222         errno and return -1.
13223         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13224
13225 2009-03-07  Bruno Haible  <bruno@clisp.org>
13226
13227         Tests for module 'uninorm/u32-normcoll'.
13228         * modules/uninorm/u32-normcoll-tests: New file.
13229         * tests/uninorm/test-u32-normcoll.c: New file.
13230
13231         Tests for module 'uninorm/u16-normcoll'.
13232         * modules/uninorm/u16-normcoll-tests: New file.
13233         * tests/uninorm/test-u16-normcoll.c: New file.
13234
13235         Tests for module 'uninorm/u8-normcoll'.
13236         * modules/uninorm/u8-normcoll-tests: New file.
13237         * tests/uninorm/test-u8-normcoll.c: New file.
13238
13239 2009-03-07  Bruno Haible  <bruno@clisp.org>
13240
13241         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13242         tests/uninorm/test-u32-normcmp.c.
13243         * tests/uninorm/test-u32-normcmp.c: Include it.
13244         (test_nonascii): New function, extracted from main. Add some more
13245         tests.
13246         (main): Invoke test_ascii and test_nonascii.
13247         * modules/uninorm/u32-normcmp-tests (Files): Add
13248         tests/uninorm/test-u32-normcmp.h.
13249         (Depends-on): Remove uninorm/u32-normcmp.
13250
13251         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13252         tests/uninorm/test-u16-normcmp.c.
13253         * tests/uninorm/test-u16-normcmp.c: Include it.
13254         (test_nonascii): New function, extracted from main. Add some more
13255         tests.
13256         (main): Invoke test_ascii and test_nonascii.
13257         * modules/uninorm/u16-normcmp-tests (Files): Add
13258         tests/uninorm/test-u16-normcmp.h.
13259         (Depends-on): Remove uninorm/u16-normcmp.
13260
13261         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13262         tests/uninorm/test-u8-normcmp.c.
13263         * tests/uninorm/test-u8-normcmp.c: Include it.
13264         (test_nonascii): New function, extracted from main. Add some more
13265         tests.
13266         (main): Invoke test_ascii and test_nonascii.
13267         * modules/uninorm/u8-normcmp-tests (Files): Add
13268         tests/uninorm/test-u8-normcmp.h.
13269         (Depends-on): Remove uninorm/u8-normcmp.
13270
13271 2009-03-07  Bruno Haible  <bruno@clisp.org>
13272
13273         New module 'uninorm/u32-normcoll'.
13274         * lib/uninorm/u32-normcoll.c: New file.
13275         * modules/uninorm/u32-normcoll: New file.
13276
13277         New module 'uninorm/u16-normcoll'.
13278         * lib/uninorm/u16-normcoll.c: New file.
13279         * modules/uninorm/u16-normcoll: New file.
13280
13281         New module 'uninorm/u8-normcoll'.
13282         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13283         declarations.
13284         * lib/uninorm/u8-normcoll.c: New file.
13285         * lib/uninorm/u-normcoll.h: New file.
13286         * modules/uninorm/u8-normcoll: New file.
13287
13288         New module 'uninorm/u32-normxfrm'.
13289         * lib/uninorm/u32-normxfrm.c: New file.
13290         * modules/uninorm/u32-normxfrm: New file.
13291
13292         New module 'uninorm/u16-normxfrm'.
13293         * lib/uninorm/u16-normxfrm.c: New file.
13294         * modules/uninorm/u16-normxfrm: New file.
13295
13296         New module 'uninorm/u8-normxfrm'.
13297         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13298         declarations.
13299         * lib/uninorm/u8-normxfrm.c: New file.
13300         * lib/uninorm/u-normxfrm.h: New file.
13301         * modules/uninorm/u8-normxfrm: New file.
13302
13303 2009-03-07  Bruno Haible  <bruno@clisp.org>
13304
13305         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13306         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13307         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13308
13309 2009-03-07  Bruno Haible  <bruno@clisp.org>
13310
13311         New module 'memxfrm'.
13312         * lib/memxfrm.h: New file.
13313         * lib/memxfrm.c: New file.
13314         * modules/memxfrm: New file.
13315
13316 2009-03-07  Bruno Haible  <bruno@clisp.org>
13317
13318         New module 'memcmp2'.
13319         * lib/memcmp2.h: New file.
13320         * lib/memcmp2.c: New file.
13321         * modules/memcmp2: New file.
13322
13323 2009-03-07  Bruno Haible  <bruno@clisp.org>
13324
13325         Tests for module 'uninorm/decomposing-form'.
13326         * modules/uninorm/decomposing-form-tests: New file.
13327         * tests/uninorm/test-decomposing-form.c: New file.
13328
13329         New module 'uninorm/decomposing-form'.
13330         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13331         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13332         Add 'decomposing_variant' field.
13333         * lib/uninorm/decomposing-form.c: New file.
13334         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13335         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13336         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13337         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13338         * modules/uninorm/decomposing-form: New file.
13339         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13340         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13341
13342 2009-03-07  Bruno Haible  <bruno@clisp.org>
13343
13344         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13345         strings.
13346
13347 2009-03-06  Bruno Haible  <bruno@clisp.org>
13348
13349         Tests for module 'uninorm/u32-normcmp'.
13350         * tests/uninorm/test-u32-normcmp.c: New file.
13351         * modules/uninorm/u32-normcmp-tests: New file.
13352
13353         Tests for module 'uninorm/u16-normcmp'.
13354         * tests/uninorm/test-u16-normcmp.c: New file.
13355         * modules/uninorm/u16-normcmp-tests: New file.
13356
13357         Tests for module 'uninorm/u8-normcmp'.
13358         * tests/uninorm/test-u8-normcmp.c: New file.
13359         * modules/uninorm/u8-normcmp-tests: New file.
13360
13361         New module 'uninorm/u32-normcmp'.
13362         * lib/uninorm/u32-normcmp.c: New file.
13363         * modules/uninorm/u32-normcmp: New file.
13364
13365         New module 'uninorm/u16-normcmp'.
13366         * lib/uninorm/u16-normcmp.c: New file.
13367         * modules/uninorm/u16-normcmp: New file.
13368
13369         New module 'uninorm/u8-normcmp'.
13370         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13371         declarations.
13372         * lib/uninorm/u8-normcmp.c: New file.
13373         * lib/uninorm/u-normcmp.h: New file.
13374         * modules/uninorm/u8-normcmp: New file.
13375
13376 2009-03-06  Bruno Haible  <bruno@clisp.org>
13377
13378         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13379         Reported by Eric Blake.
13380
13381 2009-03-06  Eric Blake  <ebb9@byu.net>
13382             Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13385         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13386         condition.
13387         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13388         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13389         condition.
13390         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13391
13392 2009-03-06  Eric Blake  <ebb9@byu.net>
13393
13394         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13395         to avoid compiler warnings.
13396         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13397
13398 2009-03-05  Bruno Haible  <bruno@clisp.org>
13399
13400         * tests/test-ftell.c (main): Disable test beyond end of file on
13401         FreeMiNT.
13402         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13403
13404 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13405
13406         * lib/filevercmp.c: Move hidden files up in ordering.
13407         * tests/test-filevercmp.c: Add tests for hidden files.
13408
13409 2009-03-04  Bruno Haible  <bruno@clisp.org>
13410
13411         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13412         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13413         AM_CFLAGS.
13414         Reported by Simon Josefsson.
13415
13416 2009-03-03  Bruno Haible  <bruno@clisp.org>
13417
13418         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13419         Reported by Simon Josefsson.
13420
13421         * doc/ld-version-script.texi: Update node reference.
13422
13423 2009-03-03  Bruno Haible  <bruno@clisp.org>
13424
13425         * modules/visibility (License): Change to 'unlimited'.
13426         Suggested by Simon Josefsson.
13427
13428 2009-03-03  Jim Meyering  <meyering@redhat.com>
13429
13430         unlinkdir: cannot_unlink_dir may modify process state
13431         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13432         it's neither thread-safe nor appropriate for use in a library.
13433
13434 2009-03-03  Eric Blake  <ebb9@byu.net>
13435
13436         test-closein: silence test under Darwin
13437         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13438         care if it dies from EPIPE or EBADF.
13439
13440 2009-03-03  Bruno Haible  <bruno@clisp.org>
13441
13442         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13443         earlier.
13444         * doc/visibility.texi: Fix @node and @section.
13445
13446 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13447
13448         * doc/gnulib.texi: Link to sections for ld version script and
13449         visibility.
13450         * doc/visibility.texi: Add @node and @section.
13451         * modules/ld-version-script: New module.
13452         * m4/ld-version-script.m4: New file.
13453         * doc/ld-version-script.texi: New file.
13454
13455 2009-03-02  David Lutterkort  <lutter@redhat.com>
13456
13457         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13458         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13459
13460 2009-03-02  Bruno Haible  <bruno@clisp.org>
13461
13462         * doc/visibility.texi: Mention libtool's -export-symbols option.
13463
13464 2009-03-02  Jim Meyering  <meyering@redhat.com>
13465
13466         announce-gen: new option: --no-print-checksums
13467         * build-aux/announce-gen (usage): Describe it.
13468         (print_checksums): Print a newline here, not in the [*] footnote.
13469         (main): Honor it.
13470
13471 2009-03-01  Bruno Haible  <bruno@clisp.org>
13472
13473         Use socklen_t in the native Windows replacements prototypes.
13474         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13475         instead of 'int'.
13476         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13477         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13478         * modules/getsockopt (Depends-on): Add socklen.
13479         * modules/setsockopt (Depends-on): Add socklen.
13480
13481 2009-03-01  Bruno Haible  <bruno@clisp.org>
13482
13483         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13484         least 4.2.
13485
13486 2009-03-01  Eric Blake  <ebb9@byu.net>
13487             Bruno Haible  <bruno@clisp.org>
13488
13489         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13490         error messages.
13491         * lib/wait-process.c (wait_subprocess): Omit error message about
13492         deadly signal sent to the child of termsigp != NULL.
13493
13494 2009-03-01  Eric Blake  <ebb9@byu.net>
13495
13496         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13497
13498 2009-03-01  Bruno Haible  <bruno@clisp.org>
13499
13500         Avoid a gcc warning.
13501         * tests/test-sched.c (b): Make global.
13502         Reported by Eric Blake.
13503
13504 2009-01-19  Martin Lambers  <marlam@marlam.de>
13505
13506         Provide POSIX semantics for socket timeout options on W32.
13507         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13508         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13509         * modules/setsockopt: Depend on sys_time module for struct timeval.
13510         * modules/getsockopt: Depend on sys_time module for struct timeval.
13511
13512 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13513
13514         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13515         __USE_GNU, for consistency with netdb.in.h.
13516         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13517
13518 2009-03-01  Bruno Haible  <bruno@clisp.org>
13519
13520         More support for FreeMiNT.
13521         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13522         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13523
13524 2009-03-01  Bruno Haible  <bruno@clisp.org>
13525
13526         More support for FreeMiNT.
13527         * lib/fpurge.c (fpurge): Correct last commit.
13528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13529
13530 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13531
13532         Fix unportable awk script in vc-list-files.
13533         * build-aux/vc-list-files: In the replacement awk script, use
13534         substr with a second argument of 1, not zero.
13535         Report by Simon Josefsson.
13536
13537 2009-02-28  Bruno Haible  <bruno@clisp.org>
13538
13539         More support for FreeMiNT.
13540         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13541         to FreeMiNT today.
13542         * lib/fwriting.c (fwriting): Likewise.
13543         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13544
13545 2009-02-28  Bruno Haible  <bruno@clisp.org>
13546
13547         * tests/test-freadseek.c (main): Disable test beyond end of file on
13548         FreeMiNT.
13549         * tests/test-ftello.c (main): Likewise.
13550         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13551
13552 2009-02-28  Bruno Haible  <bruno@clisp.org>
13553
13554         Add tentative support for FreeMiNT.
13555         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13556         * lib/fpurge.c (fpurge): Likewise.
13557         * lib/freadable.c (freadable): Likewise.
13558         * lib/freading.c (freading): Likewise.
13559         * lib/freadptr.c (freadptr): Likewise.
13560         * lib/freadseek.c (freadptrinc): Likewise.
13561         * lib/fseeko.c (rpl_fseeko): Likewise.
13562         * lib/fseterr.c (fseterr): Likewise.
13563         * lib/fwritable.c (fwritable): Likewise.
13564         * lib/fwriting.c (fwriting): Likewise.
13565         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13566         Hourihane.
13567         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13568
13569 2009-02-28  Bruno Haible  <bruno@clisp.org>
13570
13571         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13572         SIGCHLD.
13573         Reported by Jim Meyering.
13574
13575 2009-02-28  Bruno Haible  <bruno@clisp.org>
13576
13577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13578         Mention the results of these tests on various platforms.
13579         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13580         order.
13581         * doc/posix-functions/printf.texi: Likewise.
13582         * doc/posix-functions/snprintf.texi: Likewise.
13583         * doc/posix-functions/sprintf.texi: Likewise.
13584         * doc/posix-functions/vfprintf.texi: Likewise.
13585         * doc/posix-functions/vprintf.texi: Likewise.
13586         * doc/posix-functions/vsnprintf.texi: Likewise.
13587         * doc/posix-functions/vsprintf.texi: Likewise.
13588         * doc/glibc-functions/obstack_printf.texi: Likewise.
13589         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13590
13591 2009-02-28  Bruno Haible  <bruno@clisp.org>
13592
13593         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13594         Reported by Loïc Minier <lool@dooz.org>.
13595
13596 2009-02-27  Bruno Haible  <bruno@clisp.org>
13597
13598         * gnulib-tool (func_import): Make the sed expression used to create the
13599         sed script for updating the .gitignore file POSIX compliant.
13600         Reported by Eric Blake.
13601
13602 2009-02-27  Bruno Haible  <bruno@clisp.org>
13603
13604         * gnulib-tool (sed): Don't alias as "sed --posix".
13605         Reported by Eric Blake.
13606
13607 2009-02-27  Bruno Haible  <bruno@clisp.org>
13608
13609         Avoid test link errors.
13610         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13611         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13612         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13613         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13615
13616 2009-02-27  Bruno Haible  <bruno@clisp.org>
13617
13618         Avoid spurious "(cached)" in configure output.
13619         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13620         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13621         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13622         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13623         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13624         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13625         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13626         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13627         Reported by Eric Blake.
13628
13629 2009-02-27  Eric Blake  <ebb9@byu.net>
13630
13631         printf: fix regression in previous patch
13632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13633
13634 2009-02-27  Bruno Haible  <bruno@clisp.org>
13635
13636         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13637         value.
13638         * lib/stdint.in.h: Likewise.
13639         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13640
13641 2009-02-27  Eric Blake  <ebb9@byu.net>
13642
13643         doc: mention more functions added in cygwin 1.7.0
13644         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13645         addition.
13646         * doc/posix-functions/open_wmemstream.texi: Likewise.
13647         * doc/posix-functions/wcsnlen.texi: Likewise.
13648         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13649         * doc/posix-functions/wcstod.texi: Likewise.
13650         * doc/posix-functions/wcstof.texi: Likewise.
13651         * doc/posix-functions/wcstoimax.texi: Likewise.
13652         * doc/posix-functions/wcstok.texi: Likewise.
13653         * doc/posix-functions/wcstoumax.texi: Likewise.
13654
13655         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13656         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13657         * doc/posix-functions/fprintf.texi: Update.
13658         * doc/posix-functions/printf.texi: Update.
13659         * doc/posix-functions/snprintf.texi: Update.
13660         * doc/posix-functions/sprintf.texi: Update.
13661         * doc/posix-functions/vfprintf.texi: Update.
13662         * doc/posix-functions/vprintf.texi: Update.
13663         * doc/posix-functions/vsnprintf.texi: Update.
13664         * doc/posix-functions/vsprintf.texi: Update.
13665         * doc/glibc-functions/obstack_printf.texi: Update.
13666         * doc/glibc-functions/obstack_vprintf.texi: Update.
13667
13668 2009-02-26  Eric Blake  <ebb9@byu.net>
13669
13670         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13671         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13672         compilation bug by using runtime conversion.
13673         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13674         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13675         * modules/ceill-tests (Files): Use nan.h.
13676         * modules/floorl-tests (Files): Likewise.
13677         * modules/frexpl-tests (Files): Likewise.
13678         * modules/isnanl-tests (Files): Likewise.
13679         * modules/ldexpl-tests (Files): Likewise.
13680         * modules/roundl-tests (Files): Likewise.
13681         * modules/truncl-tests (Files): Likewise.
13682         * tests/test-ceill.c (main): Use a working NaN.
13683         * tests/test-floorl.c (main): Likewise.
13684         * tests/test-frexpl.c (main): Likewise.
13685         * tests/test-isnan.c (test_long_double): Likewise.
13686         * tests/test-isnanl.h (main): Likewise.
13687         * tests/test-ldexpl.h (main): Likewise.
13688         * tests/test-roundl.h (main): Likewise.
13689         * tests/test-truncl.h (main): Likewise.
13690         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13691
13692 2009-02-26  Eric Blake  <ebb9@byu.net>
13693             Bruno Haible  <bruno@clisp.org>
13694
13695         Work around a *printf bug with %ls on Solaris.
13696         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13697         precision is specified, sprintf stops converting the wide string
13698         argument when the number of bytes that have been produced by this
13699         conversion equals or exceeds the precision.
13700         * doc/posix-functions/fprintf.texi: Update.
13701         * doc/posix-functions/printf.texi: Update.
13702         * doc/posix-functions/snprintf.texi: Update.
13703         * doc/posix-functions/sprintf.texi: Update.
13704         * doc/posix-functions/vfprintf.texi: Update.
13705         * doc/posix-functions/vprintf.texi: Update.
13706         * doc/posix-functions/vsnprintf.texi: Update.
13707         * doc/posix-functions/vsprintf.texi: Update.
13708         * doc/glibc-functions/obstack_printf.texi: Update.
13709         * doc/glibc-functions/obstack_vprintf.texi: Update.
13710
13711 2009-02-26  Eric Blake  <ebb9@byu.net>
13712
13713         stdlib: favor compiler check of random.h
13714         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
13715         to avoid an ObjC random.h installed by Swarm.
13716
13717 2009-02-26  Bruno Haible  <bruno@clisp.org>
13718
13719         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13720         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13721         Reported by Gary V. Vaughan <gary@gnu.org>.
13722
13723 2009-02-26  Bruno Haible  <bruno@clisp.org>
13724
13725         Fix *printf behaviour regarding the %ls directive.
13726         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13727         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13728         NEED_PRINTF_DIRECTIVE_LS.
13729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13730         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13732         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13733         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13734         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13735         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13737         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13739         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13740         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13741         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13742         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13743         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13744         * doc/posix-functions/fprintf.texi: Update.
13745         * doc/posix-functions/printf.texi: Update.
13746         * doc/posix-functions/snprintf.texi: Update.
13747         * doc/posix-functions/sprintf.texi: Update.
13748         * doc/posix-functions/vfprintf.texi: Update.
13749         * doc/posix-functions/vprintf.texi: Update.
13750         * doc/posix-functions/vsnprintf.texi: Update.
13751         * doc/posix-functions/vsprintf.texi: Update.
13752         * doc/glibc-functions/obstack_printf.texi: Update.
13753         * doc/glibc-functions/obstack_vprintf.texi: Update.
13754         Reported by Eric Blake.
13755
13756 2009-02-25  Bruno Haible  <bruno@clisp.org>
13757
13758         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
13759         with known value.
13760         Reported by Gary V. Vaughan <gary@gnu.org>.
13761
13762 2009-02-25  Bruno Haible  <bruno@clisp.org>
13763
13764         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
13765         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
13766         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
13767         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
13768         Reported by Gary V. Vaughan <gary@gnu.org>.
13769
13770 2009-02-25  Bruno Haible  <bruno@clisp.org>
13771
13772         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
13773         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
13774         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
13775         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
13776         Reported by Gary V. Vaughan <gary@gnu.org>.
13777
13778 2009-02-25  Eric Blake  <ebb9@byu.net>
13779
13780         tests: skip fseek/ftell tests if ungetc is broken
13781         * m4/ungetc.m4: New file.
13782         * modules/fseek-tests: Split test, so ungetc dependency is
13783         separate from rest of test.
13784         * modules/fseeko-tests: Likewise.
13785         * modules/ftell-tests: Likewise.
13786         * modules/ftello-tests: Likewise.
13787         * tests/test-fseek.c (main): Isolate ungetc dependency.
13788         * tests/test-fseeko.c (main): Likewise.
13789         * tests/test-ftell.c (main): Likewise.
13790         * tests/test-ftello.c (main): Likewise.
13791         * tests/test-fseek2.sh: New file.
13792         * tests/test-fseeko2.sh: Likewise.
13793         * tests/test-ftell2.sh: Likewise.
13794         * tests/test-ftello2.sh: Likewise.
13795
13796 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
13797
13798         test-getaddrinfo: fix usage of skip return code 77
13799         * tests/test-gettaddrinfo.c: Return skip code 77 only
13800         for first occurance of skip (4x77 is not 77)
13801
13802 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
13803
13804         strtod: avoid C99 decl-after-statement
13805         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
13806
13807 2009-02-24  Eric Blake  <ebb9@byu.net>
13808
13809         strtod: detect HP-UX 11.31 bug
13810         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
13811         Reported by Gary V. Vaughan.
13812
13813 2009-02-23  Bruno Haible  <bruno@clisp.org>
13814
13815         Fix invalid read past end of memory block.
13816         * lib/vasnprintf.c (DCHAR_SET): Define.
13817         (local_wcslen): Define only when needed.
13818         (local_strnlen, local_wcsnlen): New functions.
13819         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
13820         directives that involve a conversion ourselves.
13821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
13822         wcsnlen, mbrtowc, wcrtomb.
13823         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
13824         * tests/test-vasprintf-posix.c (test_function): Likewise.
13825         * tests/test-snprintf-posix.h (test_function): Likewise.
13826         * tests/test-sprintf-posix.h (test_function): Likewise.
13827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13828
13829 2009-02-22  Bruno Haible  <bruno@clisp.org>
13830
13831         Implement new clarified decomposition of Hangul syllables.
13832         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
13833         of type LTV, return only a pairwise decomposition.
13834         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
13835         Likewise.
13836         * tests/uninorm/test-decomposition.c (main): Updated expected result.
13837         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
13838         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
13839
13840 2009-02-22  Bruno Haible  <bruno@clisp.org>
13841
13842         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
13843         zero-length results and shrink excess allocated memory.
13844         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
13845         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
13846         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
13847         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
13848         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
13849         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
13850         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
13851         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13852         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
13853         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
13854         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
13855         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
13856
13857 2009-02-21  Bruno Haible  <bruno@clisp.org>
13858
13859         * doc/gnulib.texi: Include safe-alloc.texi earlier.
13860         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
13861         spaces after a period. Put a space between a macro name and its
13862         argument list. Trivial rewordings.
13863         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
13864         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
13865         (main): Return 0 explicitly.
13866
13867 2009-02-21  Bruno Haible  <bruno@clisp.org>
13868
13869         Tests for module 'uninorm/filter'.
13870         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
13871         * modules/uninorm/filter-tests: New file.
13872
13873         New module 'uninorm/filter'.
13874         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
13875         uninorm_filter_flush, uninorm_filter_free): New declarations.
13876         * lib/uninorm/uninorm-filter.c: New file.
13877         * modules/uninorm/filter: New file.
13878
13879 2009-02-21  Bruno Haible  <bruno@clisp.org>
13880
13881         Tests for module 'uninorm/nfkc'.
13882         * tests/uninorm/test-nfkc.c: New file.
13883         * tests/uninorm/test-u8-nfkc.c: New file.
13884         * tests/uninorm/test-u16-nfkc.c: New file.
13885         * tests/uninorm/test-u32-nfkc.c: New file.
13886         * tests/uninorm/test-u32-nfkc-big.sh: New file.
13887         * tests/uninorm/test-u32-nfkc-big.c: New file.
13888         * modules/uninorm/nfkc-tests: New file.
13889
13890         New module 'uninorm/nfkc'.
13891         * lib/uninorm/nfkc.c: New file.
13892         * modules/uninorm/nfkc: New file.
13893
13894         Tests for module 'uninorm/nfkd'.
13895         * tests/uninorm/test-nfkd.c: New file.
13896         * tests/uninorm/test-u8-nfkd.c: New file.
13897         * tests/uninorm/test-u16-nfkd.c: New file.
13898         * tests/uninorm/test-u32-nfkd.c: New file.
13899         * tests/uninorm/test-u32-nfkd-big.sh: New file.
13900         * tests/uninorm/test-u32-nfkd-big.c: New file.
13901         * modules/uninorm/nfkd-tests: New file.
13902
13903         New module 'uninorm/nfkd'.
13904         * lib/uninorm/nfkd.c: New file.
13905         * modules/uninorm/nfkd: New file.
13906
13907         Tests for module 'uninorm/nfc'.
13908         * tests/uninorm/test-nfc.c: New file.
13909         * tests/uninorm/test-u8-nfc.c: New file.
13910         * tests/uninorm/test-u16-nfc.c: New file.
13911         * tests/uninorm/test-u32-nfc.c: New file.
13912         * tests/uninorm/test-u32-nfc-big.sh: New file.
13913         * tests/uninorm/test-u32-nfc-big.c: New file.
13914         * modules/uninorm/nfc-tests: New file.
13915
13916         New module 'uninorm/nfc'.
13917         * lib/uninorm/nfc.c: New file.
13918         * modules/uninorm/nfc: New file.
13919
13920         Tests for module 'uninorm/nfd'.
13921         * tests/uninorm/test-nfd.c: New file.
13922         * tests/uninorm/test-u8-nfd.c: New file.
13923         * tests/uninorm/test-u16-nfd.c: New file.
13924         * tests/uninorm/test-u32-nfd.c: New file.
13925         * tests/uninorm/test-u32-nfd-big.sh: New file.
13926         * tests/uninorm/test-u32-nfd-big.c: New file.
13927         * tests/uninorm/test-u32-normalize-big.h: New file.
13928         * tests/uninorm/test-u32-normalize-big.c: New file.
13929         * tests/uninorm/NormalizationTest.txt: New file, created from
13930         Unicode 5.1.0 NormalizationTest.txt.
13931         * modules/uninorm/nfd-tests: New file.
13932
13933         New module 'uninorm/nfd'.
13934         * lib/uninorm/nfd.c: New file.
13935         * modules/uninorm/nfd: New file.
13936
13937         New module 'uninorm/u32-normalize'.
13938         * lib/uninorm/u32-normalize.c: New file.
13939         * modules/uninorm/u32-normalize: New file.
13940
13941         New module 'uninorm/u16-normalize'.
13942         * lib/uninorm/u16-normalize.c: New file.
13943         * modules/uninorm/u16-normalize: New file.
13944
13945         New module 'uninorm/u8-normalize'.
13946         * lib/uninorm/u8-normalize.c: New file.
13947         * lib/uninorm/normalize-internal.h: New file.
13948         * lib/uninorm/u-normalize-internal.h: New file.
13949         * modules/uninorm/u8-normalize: New file.
13950
13951         New module 'uninorm/decompose-internal'.
13952         * lib/uninorm/decompose-internal.c: New file.
13953         * modules/uninorm/decompose-internal: New file.
13954
13955         Tests for module 'uninorm/composition'.
13956         * tests/uninorm/test-composition.c: New file.
13957         * modules/uninorm/composition-tests: New file.
13958
13959         New module 'uninorm/composition'.
13960         * lib/uninorm/composition.c: New file.
13961         * lib/uninorm/composition-table.gperf: New file, generated by
13962         gen-uni-tables.
13963         * modules/uninorm/composition: New file.
13964
13965         Tests for module 'uninorm/compat-decomposition'.
13966         * tests/uninorm/test-compat-decomposition.c: New file.
13967         * modules/uninorm/compat-decomposition-tests: New file.
13968
13969         New module 'uninorm/compat-decomposition'.
13970         * lib/uninorm/decompose-internal.h: New file.
13971         * lib/uninorm/compat-decomposition.c: New file.
13972         * modules/uninorm/compat-decomposition: New file.
13973
13974         Tests for module 'uninorm/canonical-decomposition'.
13975         * tests/uninorm/test-canonical-decomposition.c: New file.
13976         * modules/uninorm/canonical-decomposition-tests: New file.
13977
13978         New module 'uninorm/canonical-decomposition'.
13979         * lib/uninorm/canonical-decomposition.c: New file.
13980         * modules/uninorm/canonical-decomposition: New file.
13981
13982         Tests for module 'uninorm/decomposition'.
13983         * tests/uninorm/test-decomposition.c: New file.
13984         * modules/uninorm/decomposition-tests: New file.
13985
13986         New module 'uninorm/decomposition'.
13987         * lib/uninorm/decomposition.c: New file.
13988         * modules/uninorm/decomposition: New file.
13989
13990         New module 'uninorm/decomposition-table'.
13991         * lib/uninorm/decomposition-table.h: New file.
13992         * lib/uninorm/decomposition-table.c: New file.
13993         * lib/uninorm/decomposition-table1.h: New file, generated by
13994         gen-uni-tables.
13995         * lib/uninorm/decomposition-table2.h: New file, generated by
13996         gen-uni-tables.
13997         * modules/uninorm/decomposition-table: New file.
13998
13999         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14000         (UC_DECOMP_*): New enumeration items.
14001         (get_decomposition): New function.
14002         (struct decomp_table): New type.
14003         (output_decomposition, output_decomposition_tables): New functions.
14004         (unicode_composition_exclusions): New variable.
14005         (fill_composition_exclusions, debug_output_composition_tables): New
14006         functions.
14007         (main): Accept one more argument. Invoke fill_composition_exclusions.
14008         Output decomposition and composition tables.
14009
14010         New module 'uninorm/base'.
14011         * lib/uninorm.h: New file.
14012         * lib/unictype.h: Update comment.
14013         * modules/uninorm/base: New file.
14014
14015 2009-02-21  David Lutterkort  <lutter@redhat.com>
14016
14017         Tests for module 'safe-alloc'.
14018         * tests/test-safe-alloc.c: New file.
14019         * modules/safe-alloc-tests: New file.
14020
14021         New module 'safe-alloc'.
14022         * lib/safe-alloc.h: New file.
14023         * lib/safe-alloc.c: New file.
14024         * m4/safe-alloc.m4: New file.
14025         * modules/safe-alloc: New file.
14026         * doc/safe-alloc.texi: New file.
14027         * doc/gnulib.texi: Include it.
14028         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14029         safe-alloc.
14030
14031 2009-02-18  Bruno Haible  <bruno@clisp.org>
14032
14033         Fix link error on non-glibc systems.
14034         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14035         variable.
14036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14037
14038 2009-02-18  Jim Meyering  <meyering@redhat.com>
14039
14040         fts: avoid used-uninitialized error due to recent change
14041         * lib/fts.c (fts_read): Guard uses of the new member,
14042         parent->fts_n_dirs_remaining, since it's not relevant for
14043         the parent of a directory specified on the command-line.
14044
14045 2009-02-17  James Youngman  <jay@gnu.org>
14046             Bruno Haible  <bruno@clisp.org>
14047
14048         * m4/include_next.m4: Reformulate comment.
14049
14050 2009-02-16  Jim Meyering  <meyering@redhat.com>
14051
14052         fts: add #if guards so that the fts_lgpl module still builds
14053         * lib/fts.c: Guard just-added hash-table-using parts with
14054         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14055         Reported by Simon Josefsson.
14056
14057 2009-02-15  Bruno Haible  <bruno@clisp.org>
14058
14059         * modules/array-mergesort-tests: New file.
14060         * tests/test-array-mergesort.c: New file.
14061
14062         New module 'array-mergesort'.
14063         * modules/array-mergesort: New file.
14064         * lib/array-mergesort.h: New file.
14065
14066 2009-02-15  Bruno Haible  <bruno@clisp.org>
14067
14068         Fix 2009-02-07 commit.
14069         * lib/gen-uni-tables.c (output_predicate, output_category,
14070         output_combclass, output_bidi_category, output_decimal_digit,
14071         output_digit, output_numeric, output_mirror, output_scripts,
14072         output_ident_category, output_simple_mapping): Fix format directives.
14073         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14074
14075 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14076
14077         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14078         fixes are available from IBM.
14079
14080 2009-02-13  Jim Meyering  <meyering@redhat.com>
14081
14082         fts: arrange not to stat non-directories in more cases
14083         This makes GNU find (when it doesn't need to stat each file)
14084         *much* more efficient at traversing reiserfs file systems.
14085         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14086         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14087         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14088         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14089         (leaf_optimization_applies): New function.
14090         (LCO_hash, LCO_compare): New helper functions.
14091         (link_count_optimize_ok): New function.
14092         (fts_stat): Initialize new member (if dir).
14093         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14094         we've just stat'ed a directory.  Skip the stat call when possible.
14095         ---
14096         Note this AFS-related exchange:
14097         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14098         and note find's pioctl call in find/fstype.c.
14099         But that is necessary only if you want to enable the
14100         optimization for AFS, and for now, I don't.
14101
14102         fts: move a function definition "up" (no semantic change)
14103         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14104         "up" to precede upcoming use of a related function.
14105
14106 2009-02-11  Jim Meyering  <meyering@redhat.com>
14107
14108         fts: correct internal computation of nlinks (optimization-related)
14109         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14110         whether the current entry is a directory, so don't test it.
14111
14112 2009-02-10  Bruno Haible  <bruno@clisp.org>
14113
14114         Tests for module 'uniwbrk/ulc-wordbreaks'.
14115         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14116         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14117         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14118
14119         Tests for module 'uniwbrk/u32-wordbreaks'.
14120         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14121         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14122
14123         Tests for module 'uniwbrk/u16-wordbreaks'.
14124         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14125         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14126
14127         Tests for module 'uniwbrk/u8-wordbreaks'.
14128         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14129         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14130
14131 2009-02-10  Bruno Haible  <bruno@clisp.org>
14132
14133         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14134         property.
14135         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14136         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14137         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14138
14139 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14140
14141         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14142         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14143
14144 2009-02-10  Bruno Haible  <bruno@clisp.org>
14145
14146         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14147         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14148         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14149         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14150         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14151         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14152
14153 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14154
14155         * lib/sockets.h (gl_fd_to_handle): New function.
14156
14157         * tests/test-sockets.c: Call gl_fd_to_handle.
14158
14159 2009-02-09  Bruno Haible  <bruno@clisp.org>
14160
14161         * doc/havelib.texi: Document the conventions on bi-arch systems.
14162
14163 2009-02-08  Bruno Haible  <bruno@clisp.org>
14164
14165         Document the AC_LIB_LINKFLAGS macro.
14166         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14167         * doc/gnulib.texi: Include it.
14168
14169 2009-02-08  Bruno Haible  <bruno@clisp.org>
14170
14171         Fix wrong order of sections, compared to TOC.
14172         * doc/gnulib.texi: Include relocatable-maint.texi after the
14173         "Regular expressions" node, not before.
14174
14175 2009-02-08  Bruno Haible  <bruno@clisp.org>
14176
14177         Tests for module 'unicase/totitle'.
14178         * modules/unicase/totitle-tests: New file.
14179
14180         Tests for module 'unicase/tolower'.
14181         * modules/unicase/tolower-tests: New file.
14182
14183         Tests for module 'unicase/toupper'.
14184         * modules/unicase/toupper-tests: New file.
14185         * tests/unicase/test-mapping-part1.h: New file.
14186         * tests/unicase/test-mapping-part2.h: New file.
14187
14188         New module 'unicase/totitle'.
14189         * modules/unicase/totitle: New file.
14190         * lib/unicase/totitle.c: New file.
14191
14192         New module 'unicase/tolower'.
14193         * modules/unicase/tolower: New file.
14194         * lib/unicase/tolower.c: New file.
14195
14196         New module 'unicase/toupper'.
14197         * modules/unicase/toupper: New file.
14198         * lib/unicase/toupper.c: New file.
14199         * lib/unicase/simple-mapping.h: New file.
14200
14201         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14202         (mapping_table): New structure.
14203         (output_simple_mapping): New function.
14204         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14205         * modules/gen-uni-tables (Description): Update.
14206         * lib/unicase/toupper.h: New file, automatically generated by
14207         gen-uni-tables.
14208         * lib/unicase/tolower.h: New file, automatically generated by
14209         gen-uni-tables.
14210         * lib/unicase/totitle.h: New file, automatically generated by
14211         gen-uni-tables.
14212         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14213         gen-uni-tables.
14214         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14215         gen-uni-tables.
14216         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14217         gen-uni-tables.
14218
14219         New module 'unicase/base'.
14220         * modules/unicase/base: New file.
14221         * lib/unicase.h: New file.
14222
14223 2009-02-08  Bruno Haible  <bruno@clisp.org>
14224
14225         New module 'uniwbrk/ulc-wordbreaks'.
14226         * modules/uniwbrk/ulc-wordbreaks: New file.
14227         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14228
14229         New module 'uniwbrk/u32-wordbreaks'.
14230         * modules/uniwbrk/u32-wordbreaks: New file.
14231         * lib/uniwbrk/u32-wordbreaks.c: New file.
14232
14233         New module 'uniwbrk/u16-wordbreaks'.
14234         * modules/uniwbrk/u16-wordbreaks: New file.
14235         * lib/uniwbrk/u16-wordbreaks.c: New file.
14236
14237         New module 'uniwbrk/u8-wordbreaks'.
14238         * modules/uniwbrk/u8-wordbreaks: New file.
14239         * lib/uniwbrk/u8-wordbreaks.c: New file.
14240         * lib/uniwbrk/u-wordbreaks.h: New file.
14241
14242         New module 'uniwbrk/table'.
14243         * modules/uniwbrk/table: New file.
14244         * lib/uniwbrk/wbrktable.h: New file.
14245         * lib/uniwbrk/wbrktable.c: New file.
14246
14247         New module 'uniwbrk/wordbreak-property'.
14248         * modules/uniwbrk/wordbreak-property: New file.
14249         * lib/uniwbrk/wordbreak-property.c: New file.
14250
14251         * lib/gen-uni-tables.c (WBP_*): New enum items.
14252         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14253         (unicode_org_wbp): New variable.
14254         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14255         New functions.
14256         (wbp_table): New structure.
14257         (output_wbp, output_wbrk_tables): New functions.
14258         (main): Accept additional argument. Invoke fill_org_wbp,
14259         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14260         output_wbrk_tables.
14261         * modules/gen-uni-tables (Description): Update.
14262         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14263         gen-uni-tables.
14264
14265         New module 'uniwbrk/base'.
14266         * modules/uniwbrk/base: New file.
14267         * lib/uniwbrk.h: New file.
14268
14269 2009-02-08  Bruno Haible  <bruno@clisp.org>
14270
14271         Update to Unicode 5.1.0.
14272         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14273         U+2185..U+2188.
14274         (is_property_default_ignorable_code_point): Don't include characters
14275         of category Cc or Cs and not-a-characters.
14276         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14277         U+0D79, U+109E, U+109F, U+A60C.
14278         * lib/unictype/bidi_of.h: Regenerated.
14279         * lib/unictype/blocks.h: Regenerated.
14280         * lib/unictype/categ_C.h: Regenerated.
14281         * lib/unictype/categ_Cf.h: Regenerated.
14282         * lib/unictype/categ_Cn.h: Regenerated.
14283         * lib/unictype/categ_L.h: Regenerated.
14284         * lib/unictype/categ_Ll.h: Regenerated.
14285         * lib/unictype/categ_Lm.h: Regenerated.
14286         * lib/unictype/categ_Lo.h: Regenerated.
14287         * lib/unictype/categ_Lu.h: Regenerated.
14288         * lib/unictype/categ_M.h: Regenerated.
14289         * lib/unictype/categ_Mc.h: Regenerated.
14290         * lib/unictype/categ_Me.h: Regenerated.
14291         * lib/unictype/categ_Mn.h: Regenerated.
14292         * lib/unictype/categ_N.h: Regenerated.
14293         * lib/unictype/categ_Nd.h: Regenerated.
14294         * lib/unictype/categ_Nl.h: Regenerated.
14295         * lib/unictype/categ_No.h: Regenerated.
14296         * lib/unictype/categ_P.h: Regenerated.
14297         * lib/unictype/categ_Pd.h: Regenerated.
14298         * lib/unictype/categ_Pe.h: Regenerated.
14299         * lib/unictype/categ_Pf.h: Regenerated.
14300         * lib/unictype/categ_Pi.h: Regenerated.
14301         * lib/unictype/categ_Po.h: Regenerated.
14302         * lib/unictype/categ_Ps.h: Regenerated.
14303         * lib/unictype/categ_S.h: Regenerated.
14304         * lib/unictype/categ_Sk.h: Regenerated.
14305         * lib/unictype/categ_Sm.h: Regenerated.
14306         * lib/unictype/categ_So.h: Regenerated.
14307         * lib/unictype/categ_of.h: Regenerated.
14308         * lib/unictype/combining.h: Regenerated.
14309         * lib/unictype/ctype_alnum.h: Regenerated.
14310         * lib/unictype/ctype_alpha.h: Regenerated.
14311         * lib/unictype/ctype_graph.h: Regenerated.
14312         * lib/unictype/ctype_lower.h: Regenerated.
14313         * lib/unictype/ctype_print.h: Regenerated.
14314         * lib/unictype/ctype_punct.h: Regenerated.
14315         * lib/unictype/ctype_upper.h: Regenerated.
14316         * lib/unictype/decdigit.h: Regenerated.
14317         * lib/unictype/digit.h: Regenerated.
14318         * lib/unictype/mirror.h: Regenerated.
14319         * lib/unictype/numeric.h: Regenerated.
14320         * lib/unictype/pr_alphabetic.h: Regenerated.
14321         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14322         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14323         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14324         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14325         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14326         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14327         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14328         * lib/unictype/pr_combining.h: Regenerated.
14329         * lib/unictype/pr_dash.h: Regenerated.
14330         * lib/unictype/pr_decimal_digit.h: Regenerated.
14331         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14332         * lib/unictype/pr_deprecated.h: Regenerated.
14333         * lib/unictype/pr_diacritic.h: Regenerated.
14334         * lib/unictype/pr_extender.h: Regenerated.
14335         * lib/unictype/pr_format_control.h: Regenerated.
14336         * lib/unictype/pr_grapheme_base.h: Regenerated.
14337         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14338         * lib/unictype/pr_grapheme_link.h: Regenerated.
14339         * lib/unictype/pr_id_continue.h: Regenerated.
14340         * lib/unictype/pr_id_start.h: Regenerated.
14341         * lib/unictype/pr_ideographic.h: Regenerated.
14342         * lib/unictype/pr_ignorable_control.h: Regenerated.
14343         * lib/unictype/pr_lowercase.h: Regenerated.
14344         * lib/unictype/pr_math.h: Regenerated.
14345         * lib/unictype/pr_numeric.h: Regenerated.
14346         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14347         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14348         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14349         * lib/unictype/pr_other_id_continue.h: Regenerated.
14350         * lib/unictype/pr_other_lowercase.h: Regenerated.
14351         * lib/unictype/pr_other_math.h: Regenerated.
14352         * lib/unictype/pr_punctuation.h: Regenerated.
14353         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14354         * lib/unictype/pr_soft_dotted.h: Regenerated.
14355         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14356         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14357         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14358         * lib/unictype/pr_uppercase.h: Regenerated.
14359         * lib/unictype/pr_xid_continue.h: Regenerated.
14360         * lib/unictype/pr_xid_start.h: Regenerated.
14361         * lib/unictype/pr_zero_width.h: Regenerated.
14362         * lib/unictype/scripts.h: Regenerated.
14363         * lib/unictype/scripts_byname.gperf: Regenerated.
14364         * lib/unictype/sy_java_ident.h: Regenerated.
14365         * lib/unilbrk/lbrkprop1.h: Regenerated.
14366         * lib/unilbrk/lbrkprop2.h: Regenerated.
14367         * tests/unictype/test-categ_C.c: Regenerated.
14368         * tests/unictype/test-categ_Cf.c: Regenerated.
14369         * tests/unictype/test-categ_Cn.c: Regenerated.
14370         * tests/unictype/test-categ_L.c: Regenerated.
14371         * tests/unictype/test-categ_Ll.c: Regenerated.
14372         * tests/unictype/test-categ_Lm.c: Regenerated.
14373         * tests/unictype/test-categ_Lo.c: Regenerated.
14374         * tests/unictype/test-categ_Lu.c: Regenerated.
14375         * tests/unictype/test-categ_M.c: Regenerated.
14376         * tests/unictype/test-categ_Mc.c: Regenerated.
14377         * tests/unictype/test-categ_Me.c: Regenerated.
14378         * tests/unictype/test-categ_Mn.c: Regenerated.
14379         * tests/unictype/test-categ_N.c: Regenerated.
14380         * tests/unictype/test-categ_Nd.c: Regenerated.
14381         * tests/unictype/test-categ_Nl.c: Regenerated.
14382         * tests/unictype/test-categ_No.c: Regenerated.
14383         * tests/unictype/test-categ_P.c: Regenerated.
14384         * tests/unictype/test-categ_Pd.c: Regenerated.
14385         * tests/unictype/test-categ_Pe.c: Regenerated.
14386         * tests/unictype/test-categ_Pf.c: Regenerated.
14387         * tests/unictype/test-categ_Pi.c: Regenerated.
14388         * tests/unictype/test-categ_Po.c: Regenerated.
14389         * tests/unictype/test-categ_Ps.c: Regenerated.
14390         * tests/unictype/test-categ_S.c: Regenerated.
14391         * tests/unictype/test-categ_Sk.c: Regenerated.
14392         * tests/unictype/test-categ_Sm.c: Regenerated.
14393         * tests/unictype/test-categ_So.c: Regenerated.
14394         * tests/unictype/test-ctype_alnum.c: Regenerated.
14395         * tests/unictype/test-ctype_alpha.c: Regenerated.
14396         * tests/unictype/test-ctype_graph.c: Regenerated.
14397         * tests/unictype/test-ctype_lower.c: Regenerated.
14398         * tests/unictype/test-ctype_print.c: Regenerated.
14399         * tests/unictype/test-ctype_punct.c: Regenerated.
14400         * tests/unictype/test-ctype_upper.c: Regenerated.
14401         * tests/unictype/test-decdigit.h: Regenerated.
14402         * tests/unictype/test-digit.h: Regenerated.
14403         * tests/unictype/test-numeric.h: Regenerated.
14404         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14405         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14406         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14407         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14408         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14409         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14410         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14411         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14412         * tests/unictype/test-pr_combining.c: Regenerated.
14413         * tests/unictype/test-pr_dash.c: Regenerated.
14414         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14415         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14416         * tests/unictype/test-pr_deprecated.c: Regenerated.
14417         * tests/unictype/test-pr_diacritic.c: Regenerated.
14418         * tests/unictype/test-pr_extender.c: Regenerated.
14419         * tests/unictype/test-pr_format_control.c: Regenerated.
14420         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14421         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14422         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14423         * tests/unictype/test-pr_id_continue.c: Regenerated.
14424         * tests/unictype/test-pr_id_start.c: Regenerated.
14425         * tests/unictype/test-pr_ideographic.c: Regenerated.
14426         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14427         * tests/unictype/test-pr_lowercase.c: Regenerated.
14428         * tests/unictype/test-pr_math.c: Regenerated.
14429         * tests/unictype/test-pr_numeric.c: Regenerated.
14430         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14431         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14432         Regenerated.
14433         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14434         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14435         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14436         * tests/unictype/test-pr_other_math.c: Regenerated.
14437         * tests/unictype/test-pr_punctuation.c: Regenerated.
14438         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14439         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14440         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14441         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14442         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14443         * tests/unictype/test-pr_uppercase.c: Regenerated.
14444         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14445         * tests/unictype/test-pr_xid_start.c: Regenerated.
14446         * tests/unictype/test-pr_zero_width.c: Regenerated.
14447
14448         Update to Unicode 5.1.0.
14449         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14450         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14451         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14452         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14453         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14454         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14455         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14456         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14457         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14458         (nonspacing_table_ind): Update.
14459         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14460
14461         Update to Unicode 5.1.0.
14462         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14463         code transform.
14464         * lib/uniname/uniname.c (unicode_character_name,
14465         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14466         * lib/uniname/uninames.h: Regenerated.
14467         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14468
14469 2009-02-07  Bruno Haible  <bruno@clisp.org>
14470
14471         Merge gen-ctype and gen-lbrk into a single program.
14472         * lib/gen-uni-tables.c: New file, incorporating
14473         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14474         Add directory prefixes to the names of the generated files.
14475         * lib/unictype/gen-ctype.c: Remove file.
14476         * lib/unilbrk/gen-lbrk.c: Remove file.
14477         * modules/gen-uni-tables: New file.
14478         * modules/unictype/gen-ctype: Remove file.
14479         * modules/unilbrk/gen-lbrk: Remove file.
14480
14481 2009-02-07  Bruno Haible  <bruno@clisp.org>
14482
14483         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14484
14485         New module 'unistr/u32-strcoll'.
14486         * modules/unistr/u32-strcoll: New file.
14487         * lib/unistr/u32-strcoll.c: New file.
14488
14489         New module 'unistr/u16-strcoll'.
14490         * modules/unistr/u16-strcoll: New file.
14491         * lib/unistr/u16-strcoll.c: New file.
14492
14493         New module 'unistr/u8-strcoll'.
14494         * modules/unistr/u8-strcoll: New file.
14495         * lib/unistr/u8-strcoll.c: New file.
14496         * lib/unistr/u-strcoll.h: New file.
14497
14498 2009-02-07  Bruno Haible  <bruno@clisp.org>
14499
14500         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14501         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14502         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14503         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14504         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14505         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14506
14507 2009-02-07  Bruno Haible  <bruno@clisp.org>
14508
14509         Make 64-bit clean.
14510         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14511         output_combclass, output_bidi_category, output_decimal_digit,
14512         output_digit, output_numeric, output_mirror, output_scripts,
14513         output_ident_category): Use proper width specifier in format strings.
14514
14515 2009-02-07  Bruno Haible  <bruno@clisp.org>
14516
14517         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14518         failure behaviour.
14519
14520 2009-02-07  Jim Meyering  <meyering@redhat.com>
14521
14522         regex: avoid compilation failure with upcoming gcc-4.4
14523         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14524         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14525         "... error: integer overflow in preprocessor expression".
14526
14527 2009-02-05  Ben Pfaff  <blp@gnu.org>
14528
14529         Fix link errors on Windows when close module is used.
14530         * modules/close: Add $(LIB_CLOSE) to Link section.
14531         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14532         $(LIB_CLOSE) on Windows.
14533
14534 2009-02-05  Jim Meyering  <meyering@redhat.com>
14535
14536         still avoid unused-parameter warnings, but do it cleanly
14537         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14538         (get_fs_usage): Cast to void instead.
14539         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14540         (dev_from_mount_options, read_file_system_list): Cast to void.
14541         Prompted by Bruno Haible.
14542
14543 2009-02-04  Jim Meyering  <meyering@redhat.com>
14544
14545         fsusage.c: correct copyright year
14546         * lib/fsusage.c: Reflect year in which the change is pushed into
14547
14548         avoid misc. warnings
14549         * lib/fsusage.c (UNUSED_PARAM): Define.
14550         (get_fs_usage): Mark parameter "disk" as unused.
14551         * lib/getugroups.c (getgrent): Use "void" in prototype.
14552         * lib/mountlist.c: Mark unused parameters.
14553         (read_file_system_list): Declare a local with "const".
14554         * lib/nanosleep.c (getnow): Declare static.
14555         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14556
14557         dirfd: set errno upon failure
14558         * lib/dirfd.c: Include <errno.h>.
14559         Set errno to ENOTSUP when returning -1.
14560         * modules/dirfd (Depends-on): Add errno.
14561         Suggested by John Kodis <kodis@comcast.net>.
14562
14563 2009-02-01  Bruno Haible  <bruno@clisp.org>
14564
14565         Don't assume sizeof (long) >= sizeof (void *).
14566         * lib/memcmp.c: Include stdint.h.
14567         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14568         srcp2 to 'const byte *'.
14569         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14570         types to uintptr_t.
14571         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14572         * modules/memcmp (Depends-on): Add stdint.
14573         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14574
14575 2009-01-30  Eric Blake  <ebb9@byu.net>
14576
14577         fix more require-before-expand issues
14578         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14579         expand, AC_PROG_AWK.
14580         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14581
14582 2009-01-28  Eric Blake  <ebb9@byu.net>
14583
14584         version-etc: use consistent URL formatting
14585         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14586         Improve formatting.  Use fputs for string without %.
14587
14588 2009-01-28  Jim Meyering  <meyering@redhat.com>
14589
14590         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14591         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14592         "underquoted definition of NAME" from autoconf-2.59.
14593
14594 2009-01-28  Bruno Haible  <bruno@clisp.org>
14595
14596         * doc/gnulib.texi: Add "Obsolete modules" to index.
14597
14598 2009-01-28  Jim Meyering  <meyering@redhat.com>
14599
14600         useless-if-before-free: recognize more variants
14601         * build-aux/useless-if-before-free: Also recognize e.g.,
14602         if (NULL != p) free (p);
14603
14604 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14605
14606         test-getaddrinfo: skip (don't fail) this test when there's no network
14607         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14608         on the presumption that it means you lack network access.
14609
14610 2009-01-26  Jim Meyering  <meyering@redhat.com>
14611
14612         fflush: avoid warnings on modern systems
14613         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14614         pos and result, into scopes where they're used.
14615
14616 2009-01-26  Eric Blake  <ebb9@byu.net>
14617
14618         Silence warning reintroduced by recent extensions patch.
14619         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14620         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14621         autoconf.
14622
14623         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14624         * m4/00gnulib.m4: New file.
14625         * gnulib-tool (func_get_filelist): Always use it.
14626         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14627         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14628
14629 2009-01-25  Bruno Haible  <bruno@clisp.org>
14630
14631         Make test-quotearg work on MacOS X and AIX.
14632         * tests/test-quotearg.sh: New file.
14633         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14634         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14635         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14636         include <libintl.h>.
14637         (fake_locale): Remove variable.
14638         (gettext, dgettext, dcgettext): Remove functions.
14639         (main): Instead of setting a fake locale, set a real locale. Call
14640         textdomain and bindtextdomain.
14641         * modules/quotearg-tests (Files): Add the new files.
14642         (Depends-on): Add gettext, setenv, unsetenv.
14643         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14644         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14645         Augment TESTS_ENVIRONMENT.
14646
14647 2009-01-25  Bruno Haible  <bruno@clisp.org>
14648
14649         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14650         fr_FR.ISO8859-1 locale on MacOS X.
14651         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14652         ja_JP.eucJP locale on MacOS X.
14653         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14654         zh_CN.GB18030 locale on MacOS X.
14655
14656 2009-01-25  Bruno Haible  <bruno@clisp.org>
14657
14658         Avoid link errors on MacOS X 10.3.
14659         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14660         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14661
14662 2009-01-25  Bruno Haible  <bruno@clisp.org>
14663
14664         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14665         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14666         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14667         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14668         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14669         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14670         posix_spawnattr_init, posix_spawnattr_setsigmask,
14671         posix_spawnattr_setflags, posix_spawnattr_destroy.
14672
14673         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14674         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14675         * modules/execute (Files): Remove m4/posix_spawn.m4.
14676         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14677         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14678         posix_spawnattr_init, posix_spawnattr_setsigmask,
14679         posix_spawnattr_setflags, posix_spawnattr_destroy.
14680
14681 2009-01-25  Bruno Haible  <bruno@clisp.org>
14682
14683         * lib/glthread/threadlib.c: Include <stdlib.h>.
14684
14685 2009-01-25  Bruno Haible  <bruno@clisp.org>
14686
14687         * lib/glthread/threadlib.c (dummy): New declaration.
14688
14689 2009-01-25  Bruno Haible  <bruno@clisp.org>
14690
14691         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14692         multibyte characters also for the GB18030 encoding. Don't crash when
14693         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14694
14695 2009-01-25  Bruno Haible  <bruno@clisp.org>
14696
14697         Avoid redefining 'struct random_data' on OSF/1 5.1.
14698         * lib/stdlib.in.h: Include <random.h> if it exists.
14699         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14700         HAVE_RANDOM_H. Include <random.h> when testing whether
14701         'struct random_data' exists.
14702         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14703
14704 2009-01-25  Bruno Haible  <bruno@clisp.org>
14705
14706         Don't install charset.alias on MacOS X >= 10.3.
14707         * lib/localcharset.c (DARWIN7): New macro.
14708         (get_charset_aliases): Hardcode the result for Darwin7.
14709         * modules/localcharset (install-exec-local): Don't install
14710         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14711
14712 2009-01-25  Bruno Haible  <bruno@clisp.org>
14713
14714         Don't install charset.alias on mingw and Cygwin.
14715         * modules/localcharset (install-exec-local): Don't install
14716         charset.alias on mingw and Cygwin, if the file does not yet exist.
14717         The result for these platforms is hardcoded in localcharset.c.
14718
14719 2009-01-25  Bruno Haible  <bruno@clisp.org>
14720
14721         Make it possible again to use AC_GNU_SOURCE together with gnulib.
14722         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14723         before requiring AC_USE_SYSTEM_EXTENSIONS.
14724
14725 2009-01-25  Jim Meyering  <meyering@redhat.com>
14726
14727         c-strtod: avoid warnings
14728         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14729         "assignment discards qualifiers from pointer target type" warnings.
14730
14731 2009-01-24  Bruno Haible  <bruno@clisp.org>
14732
14733         Add support for non-UTF-8 locales on MacOS X.
14734         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14735         canonical encodings. For Darwin 7 and newer, don't map traditional
14736         encodings to UTF-8.
14737         Reported by Vincent Lefevre <vincent@vinc17.org>
14738         at <http://savannah.gnu.org/bugs/?25235>.
14739
14740 2009-01-24  Bruno Haible  <bruno@clisp.org>
14741
14742         * doc/gnulib.texi (Obsolete modules): New section.
14743         Reported by Mike Frysinger <vapier@gentoo.org>.
14744
14745 2009-01-24  Bruno Haible  <bruno@clisp.org>
14746
14747         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14748         (%.dvi): New rule.
14749
14750 2009-01-24  Bruno Haible  <bruno@clisp.org>
14751
14752         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14753         Reported by Eric Blake.
14754
14755 2009-01-24  Bruno Haible  <bruno@clisp.org>
14756
14757         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
14758         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
14759         Reported by Gary V. Vaughan <gary@gnu.org>.
14760
14761 2009-01-24  Bruno Haible  <bruno@clisp.org>
14762
14763         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
14764
14765 2009-01-23  Bruno Haible  <bruno@clisp.org>
14766
14767         Make c-strtod, c-strtold usable in libraries.
14768         * lib/c-strtod.c: Include string.h instead of xalloc.h.
14769         (C_STRTOD): Call strdup instead of xstrdup.
14770         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
14771         * modules/c-strtold (Depends-on): Likewise.
14772         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
14773         * NEWS: Mention the change.
14774         Reported by Michael Gold <mgold@ncf.ca>.
14775
14776 2009-01-23  Jim Meyering  <meyering@redhat.com>
14777
14778         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
14779         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
14780         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
14781
14782 2009-01-23  Simon Josefsson  <simon@josefsson.org>
14783
14784         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
14785         GNU CoreUtils.
14786         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
14787         * modules/version-etc (Description): Update.
14788
14789 2009-01-22  Bruno Haible  <bruno@clisp.org>
14790
14791         Cache the C locale object.
14792         * lib/c-strtod.c (c_locale_cache): New variable.
14793         (c_locale): New function.
14794         (C_STRTOD): Use it, and don't call freelocale.
14795         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
14796         Suggested by Paolo Bonzini.
14797
14798 2009-01-21  Bruno Haible  <bruno@clisp.org>
14799
14800         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
14801         conditions other than overflow.
14802
14803 2009-01-21  Bruno Haible  <bruno@clisp.org>
14804
14805         * lib/c-strtod.c: Include errno.h.
14806         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
14807         value from STRTOD_L and STRTOD.
14808
14809 2009-01-21  Bruno Haible  <bruno@clisp.org>
14810         and Jim Meyering  <meyering@redhat.com>
14811
14812         nanosleep: skip configure test (fail it) for apple universal builds
14813         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
14814         universal builds, assume that nanosleep does not work.
14815         * modules/nanosleep (Depends-on): Add multiarch.
14816
14817         mktime: skip configure test (fail it) for apple universal builds
14818         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
14819         universal builds, assume that mktime does not work.
14820         * modules/mktime (Depends-on): Add multiarch.
14821
14822 2009-01-21  Eric Blake  <ebb9@byu.net>
14823
14824         multiarch: avoid expand-before-require warning
14825         * modules/multiarch (configure.ac): Require, rather than expand,
14826         gl_MULTIARCH.
14827         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
14828         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
14829         enforce that all clients require it.  Partial reversion of
14830         2008-12-29 patch.
14831
14832         error: avoid expand-before-require warning
14833         * modules/errno (configure.ac): Require, rather than expand,
14834         gl_HEADER_ERRNO_H.
14835         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
14836         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
14837         enforce that all clients require it.
14838
14839         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
14840         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
14841         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
14842         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
14843
14844 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
14845
14846         Revert:
14847         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14848
14849         regex: do not depend on obsolete modules.
14850         * modules/regex: Remove memcmp and memmove.
14851
14852 2009-01-20  Bruno Haible  <bruno@clisp.org>
14853
14854         Make the 'link' module link on Windows NT 4.
14855         * lib/link.c (_WIN32_WINNT): Don't define.
14856         (CreateHardLinkFuncType): New type.
14857         (CreateHardLinkFunc, initialized): New variables.
14858         (initialize): New function.
14859         (link): Invoke CreateHardLink indirectly through the function pointer.
14860
14861 2009-01-20  Bruno Haible  <bruno@clisp.org>
14862
14863         Fix compilation failure on mingw.
14864         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
14865
14866 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
14867
14868         * doc/c-strtod.texi: Mention a couple of restrictions.
14869
14870 2009-01-20  Jim Meyering  <meyering@redhat.com>
14871
14872         gettimeofday: move more declarations out of functions
14873         * lib/gettimeofday.c: Move extern declarations of tzset and
14874         gmtime out of containing functions.  Prompted by Bruno Haible.
14875
14876 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14877
14878         regex: do not depend on obsolete modules.
14879         * modules/regex: Remove memcmp and memmove.
14880
14881 2009-01-19  Bruno Haible  <bruno@clisp.org>
14882
14883         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14884         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
14885         gl_BIGENDIAN, not AC_C_BIGENDIAN.
14886         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
14887         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
14888
14889 2009-01-19  Bruno Haible  <bruno@clisp.org>
14890
14891         * tests/test-link.c: Include <errno.h>.
14892         (main): Exit with code 77 when a hard link cannot be created due to
14893         the file system.
14894         * tests/test-link.sh: Skip test when a hard link cannot be created due
14895         to the file system.
14896         Suggested by Eric Blake.
14897
14898 2009-01-19  Martin Lambers  <marlam@marlam.de>
14899
14900         * modules/link-tests: New file.
14901         * tests/test-link.sh: New file.
14902         * tests/test-link.c: New file.
14903
14904 2009-01-19  Eric Blake  <ebb9@byu.net>
14905
14906         doc: mention another function added in cygwin 1.7.0
14907         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
14908         Another new function in cygwin 1.7.
14909
14910 2009-01-19  Bruno Haible  <bruno@clisp.org>
14911
14912         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14913         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
14914         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
14915         gl_BIGENDIAN, not AC_C_BIGENDIAN.
14916         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14917         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14918         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14919         * m4/md4.m4 (gl_MD4): Likewise.
14920         * m4/md5.m4 (gl_MD5): Likewise.
14921         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
14922         * m4/sha1.m4 (gl_SHA1): Likewise.
14923         * m4/sha256.m4 (gl_SHA256): Likewise.
14924         * m4/sha512.m4 (gl_SHA512): Likewise.
14925
14926 2009-01-19  Bruno Haible  <bruno@clisp.org>
14927
14928         * modules/uniname/uniname-tests (Depends-on): Add progname.
14929         * tests/uniname/test-uninames.c: Include progname.h.
14930         (main): Call set_program_name.
14931
14932         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
14933         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
14934         (main): Call set_program_name.
14935
14936         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
14937         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
14938         (main): Call set_program_name.
14939
14940         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
14941         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
14942         (main): Call set_program_name.
14943
14944         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
14945         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
14946         (main): Call set_program_name.
14947
14948         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
14949         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
14950         (main): Call set_program_name.
14951
14952         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
14953         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
14954         (main): Call set_program_name.
14955
14956         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
14957         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
14958         (main): Call set_program_name.
14959
14960         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
14961         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
14962         (main): Call set_program_name.
14963
14964 2009-01-19  Eric Blake  <ebb9@byu.net>
14965
14966         test-unistd: test previous patch
14967         * tests/test-unistd.c: Test *_FILENO macros.
14968
14969         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
14970         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14971         Guarantee a definition.
14972         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
14973         * modules/unistd-safer (Depends-on): Add dependency on unistd.
14974         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
14975         * lib/dup-safer.c (STDERR_FILENO): Likewise.
14976         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14977         Likewise.
14978         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
14979         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
14980         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14981         Likewise.
14982         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
14983         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
14984         (STDERR_FILENO): Likewise.
14985         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
14986         (STDERR_FILENO): Likewise.
14987         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
14988         (STDERR_FILENO): Likewise.
14989         Reported by Elbert Pol.
14990
14991 2009-01-19  Eric Blake  <ebb9@byu.net>
14992
14993         doc: mention more functions added in cygwin 1.7.0
14994         * doc/posix-functions/abort.texi (abort): Update wording related
14995         to cygwin.
14996         * doc/posix-functions/daylight.texi (daylight): Likewise.
14997         * doc/posix-functions/optarg.texi (optarg): Likewise.
14998         * doc/posix-functions/optarg.texi (opterr): Likewise.
14999         * doc/posix-functions/optarg.texi (optind): Likewise.
15000         * doc/posix-functions/optarg.texi (optopt): Likewise.
15001         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15002         worked in 1.5.x, and was withdrawn in 1.7.
15003         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15004         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15005         cygwin versions.
15006         * doc/posix-functions/perror.texi (perror): Likewise.
15007         * doc/posix-functions/printf.texi (printf): Likewise.
15008         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15009         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15010         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15011         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15012         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15013         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15014         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15015         Likewise.
15016         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15017         Likewise.
15018         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15019         this function.
15020         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15021         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15022         Likewise.
15023         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15024         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15025         * doc/posix-functions/confstr.texi (confstr): Likewise.
15026         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15027         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15028         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15029         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15030         * doc/posix-functions/fputws.texi (fputws): Likewise.
15031         * doc/posix-functions/fwide.texi (fwide): Likewise.
15032         * doc/posix-functions/getwc.texi (getwc): Likewise.
15033         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15034         * doc/posix-functions/putwc.texi (putwc): Likewise.
15035         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15036         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15037         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15038         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15039         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15040         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15041         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15042         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15043         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15044         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15045         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15046
15047 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15048
15049         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15050         * lib/ioctl.c: Include <sys/ioctl.h>.
15051
15052 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15053
15054         * modules/getdate-tests (Depends-on): Add progname.
15055         * tests/test-getdate.c: Use progname module, to avoid link errors
15056         on non-glibc systems.
15057
15058 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15059
15060         * modules/filenamecat-tests (Depends-on): Add progname.
15061         * modules/fstrcmp-tests (Depends-on): Likewise.
15062
15063         * tests/test-filenamecat.c: Use progname module, to avoid link
15064         errors on non-glibc systems.
15065         * tests/test-fstrcmp.c: Likewise.
15066
15067 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15068
15069         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15070         * lib/gettimeofday.c: Move extern declaration out of function.
15071
15072 2009-01-18  Bruno Haible  <bruno@clisp.org>
15073
15074         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15075         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15076         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15077
15078 2009-01-18  Bruno Haible  <bruno@clisp.org>
15079
15080         * lib/strftime.c (MEMPCPY): Remove unused macro.
15081         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15082
15083 2009-01-18  Martin Lambers  <marlam@marlam.de>
15084
15085         New module 'link'.
15086         * lib/unistd.in.h (link): New declaration.
15087         * lib/link.c: New file.
15088         * m4/link.m4: New file.
15089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15090         HAVE_LINK.
15091         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15092         * modules/link: New file.
15093         * doc/posix-functions/link.texi: Mention the new module.
15094
15095 2009-01-18  Bruno Haible  <bruno@clisp.org>
15096
15097         * tests/test-avltree_list.c (main): Call set_program_name.
15098         * tests/test-avltree_oset.c (main): Likewise.
15099         * tests/test-obstack-printf.c: Include progname.h.
15100         (main): Call set_program_name.
15101         * tests/test-quotearg.c: Include progname.h.
15102         (main): Call set_program_name.
15103         * tests/test-xmemdup0.c: Include progname.h.
15104         (main): Call set_program_name.
15105
15106 2009-01-18  Bruno Haible  <bruno@clisp.org>
15107
15108         New module 'alphasort'.
15109         * lib/dirent.in.h (alphasort): New declaration.
15110         * lib/alphasort.c: New file, from glibc with modifications.
15111         * m4/alphasort.m4: New file.
15112         * modules/alphasort: New file.
15113         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15114         HAVE_ALPHASORT.
15115         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15116         HAVE_ALPHASORT.
15117         * doc/posix-functions/alphasort.texi: Mention the new module and the
15118         portability problems.
15119
15120 2009-01-18  Bruno Haible  <bruno@clisp.org>
15121
15122         New module 'scandir'.
15123         * lib/dirent.in.h (scandir): New declaration.
15124         * lib/scandir.c: New file, from glibc with modifications.
15125         * m4/scandir.m4: New file.
15126         * modules/scandir: New file.
15127         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15128         HAVE_SCANDIR.
15129         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15130         HAVE_SCANDIR.
15131         * doc/posix-functions/scandir.texi: Mention the new module and the
15132         portability problems.
15133
15134 2009-01-17  Bruno Haible  <bruno@clisp.org>
15135
15136         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15137         Update documentation.
15138         (func_remove_suffix): Escape all dots in the suffix. Update
15139         documentation.
15140         (func_filter_filelist): Update documentation.
15141         Reported by Ralf Wildenhues.
15142
15143 2009-01-17  Bruno Haible  <bruno@clisp.org>
15144
15145         * modules/dprintf-posix-tests: New file.
15146         * tests/test-dprintf-posix.sh: New file.
15147         * tests/test-dprintf-posix.c: New file.
15148
15149         New modules 'dprintf', 'dprintf-posix'.
15150         * lib/stdio.in.h (dprintf): New declaration.
15151         * lib/dprintf.c: New file.
15152         * m4/dprintf.m4: New file.
15153         * m4/dprintf-posix.m4: New file.
15154         * modules/dprintf: New file.
15155         * modules/dprintf-posix: New file.
15156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15157         HAVE_DPRINTF, REPLACE_DPRINTF.
15158         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15159         HAVE_DPRINTF, REPLACE_DPRINTF.
15160         * doc/posix-functions/dprintf.texi: Mention the new modules.
15161
15162 2009-01-17  Bruno Haible  <bruno@clisp.org>
15163
15164         * modules/vdprintf-posix-tests: New file.
15165         * tests/test-vdprintf-posix.sh: New file.
15166         * tests/test-vdprintf-posix.c: New file.
15167
15168         New modules 'vdprintf', 'vdprintf-posix'.
15169         * lib/stdio.in.h (vdprintf): New declaration.
15170         * lib/vdprintf.c: New file.
15171         * m4/vdprintf.m4: New file.
15172         * m4/vdprintf-posix.m4: New file.
15173         * modules/vdprintf: New file.
15174         * modules/vdprintf-posix: New file.
15175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15176         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15177         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15178         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15179         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15180
15181 2009-01-17  Bruno Haible  <bruno@clisp.org>
15182
15183         Fix replacement of fopen on mingw.
15184         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15185         mingw.
15186
15187 2009-01-17  Bruno Haible  <bruno@clisp.org>
15188
15189         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15190         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15191
15192 2009-01-17  Bruno Haible  <bruno@clisp.org>
15193
15194         Avoid test-fflush2.sh failure on mingw.
15195         * tests/test-fflush2.c: Include binary-io.h.
15196         (main): Put standard input into binary mode.
15197         * modules/fflush-tests (Depends-on): Add binary-io.
15198
15199 2009-01-17  Bruno Haible  <bruno@clisp.org>
15200
15201         * lib/wchar.in.h: In another particular situation, include only the
15202         system's <wchar.h> file.
15203         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15204         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15205         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15206
15207 2009-01-17  Bruno Haible  <bruno@clisp.org>
15208
15209         Support for stripping executables in --enable-relocatable.
15210         * build-aux/install-reloc: Expect one more argument, or an environment
15211         variable RELOC_STRIP_PROG. If set, strip the destination program and
15212         its wrapper.
15213         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15214         RELOC_STRIP_PROG.
15215         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15216         to set RELOCATABLE_STRIP.
15217         * NEWS: Mention the new Makefile requirement.
15218
15219 2009-01-17  Bruno Haible  <bruno@clisp.org>
15220
15221         * build-aux/install-reloc: Remove debugging information left over by
15222         C compiler on MacOS X.
15223
15224 2009-01-17  Bruno Haible  <bruno@clisp.org>
15225
15226         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15227         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15228         _NSGetExecutablePath.
15229
15230 2009-01-16  Jim Meyering  <meyering@redhat.com>
15231
15232         strerror: avoid warnings about discarding "const"
15233         * lib/strerror.c (rpl_strerror): Instead of returning a const
15234         string from each and every "case", use a variable, and add a single
15235         cast after the switch.
15236
15237 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15238
15239         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15240
15241 2009-01-16  Bruno Haible  <bruno@clisp.org>
15242
15243         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15244         array initializer syntax that also works in C++ mode.
15245         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15246
15247 2009-01-16  Jim Meyering  <meyering@redhat.com>
15248
15249         poll: suppress a warning
15250         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15251         to ignore "...unsigned expression < 0 is always false" warnings.
15252
15253 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15254
15255         poll: remove declarations of unused variables
15256         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15257         sockbuf and optlen.
15258
15259 2009-01-15  Bruno Haible  <bruno@clisp.org>
15260
15261         Make fflush-after-ungetc POSIX compliant on BSD systems.
15262         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15263         (clear_ungetc_buffer): Implement also for other systems.
15264         (rpl_fflush): On glibc systems, invoke
15265         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15266         clear_ungetc_buffer after fetching the stream's position, not before.
15267
15268 2009-01-15  Bruno Haible  <bruno@clisp.org>
15269
15270         Make fflush-after-ungetc POSIX compliant on glibc systems.
15271         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15272         after ungetc.
15273         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15274         (rpl_fflush): On glibc systems, simply call the system's fflush
15275         function after clearing the ungetc buffer.
15276         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15277         Instead, lseek only to the end of file, then use the system's fseeko
15278         for the rest. On glibc systems, reset the EOF indicator bit.
15279
15280 2009-01-15  Jim Meyering  <meyering@redhat.com>
15281
15282         openmp.m4: revert quote-adding change, for portability to older autoconf
15283         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15284         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15285         Simon Josefsson noticed the problem when using autoconf-2.61.
15286
15287 2009-01-15  Bruno Haible  <bruno@clisp.org>
15288
15289         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15290         * tests/test-fflush2.c (ASSERT): Always fail.
15291         (main): Add two tests for fflush() after ungetc(), taking into account
15292         the Austin Group's clarification.
15293         Suggested by Eric Blake.
15294
15295 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15296
15297         mktime.m4: remove K&R-style function prototypes
15298         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15299         for the Sun C++ compiler.
15300
15301 2009-01-14  Bruno Haible  <bruno@clisp.org>
15302
15303         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15304         while including <wchar.h>.
15305         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15306         the system's <wchar.h> file.
15307         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15308
15309 2009-01-14  Bruno Haible  <bruno@clisp.org>
15310
15311         * m4/csharp.m4: Don't mention gettext on the serial number line.
15312         * m4/csharpexec.m4: Likewise.
15313         * m4/eaccess.m4: Likewise.
15314         * m4/javaexec.m4: Likewise.
15315         * m4/sig_atomic_t.m4: Likewise.
15316         * m4/tmpdir.m4: Likewise.
15317         * m4/intldir.m4: Bump gettext version.
15318         * m4/lib-ld.m4: Likewise.
15319
15320 2009-01-14  Bruno Haible  <bruno@clisp.org>
15321
15322         * lib/progname.c (set_program_name): Add more comments.
15323         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15324
15325 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15326
15327         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15328         were sys/stat.h does not define it.
15329
15330 2009-01-14  Jim Meyering  <meyering@redhat.com>
15331
15332         many *.m4 files: improve m4 quoting
15333         99% of this change was performed by running the following commands:
15334         git ls-files | grep '\.m4$' | xargs perl -pi \
15335           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15336           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15337           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15338           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15339         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15340         The remainder were to add Copyright dates, increment serial numbers,
15341         undo some changes in comments, exclude m4/intl.m4, and add quotes
15342         around the "1" in ",1" where the unusual spacing prohibited the
15343         above regexps from doing the job.  For more details, see
15344         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15345         * m4/acl.m4: Modified.
15346         * m4/afs.m4: Likewise.
15347         * m4/alloca.m4: Likewise.
15348         * m4/argp.m4: Likewise.
15349         * m4/argz.m4: Likewise.
15350         * m4/atexit.m4: Likewise.
15351         * m4/bison-i18n.m4: Likewise.
15352         * m4/bison.m4: Likewise.
15353         * m4/byteswap.m4: Likewise.
15354         * m4/c-stack.m4: Likewise.
15355         * m4/c-strtod.m4: Likewise.
15356         * m4/calloc.m4: Likewise.
15357         * m4/canonicalize-lgpl.m4: Likewise.
15358         * m4/chown.m4: Likewise.
15359         * m4/clock_time.m4: Likewise.
15360         * m4/codeset.m4: Likewise.
15361         * m4/copy-file.m4: Likewise.
15362         * m4/csharp.m4: Likewise.
15363         * m4/csharpcomp.m4: Likewise.
15364         * m4/csharpexec.m4: Likewise.
15365         * m4/d-ino.m4: Likewise.
15366         * m4/d-type.m4: Likewise.
15367         * m4/dirfd.m4: Likewise.
15368         * m4/double-slash-root.m4: Likewise.
15369         * m4/eaccess.m4: Likewise.
15370         * m4/eealloc.m4: Likewise.
15371         * m4/environ.m4: Likewise.
15372         * m4/errno_h.m4: Likewise.
15373         * m4/euidaccess.m4: Likewise.
15374         * m4/execute.m4: Likewise.
15375         * m4/fatal-signal.m4: Likewise.
15376         * m4/fchdir.m4: Likewise.
15377         * m4/fcntl_h.m4: Likewise.
15378         * m4/fileblocks.m4: Likewise.
15379         * m4/filenamecat.m4: Likewise.
15380         * m4/findprog.m4: Likewise.
15381         * m4/flexmember.m4: Likewise.
15382         * m4/fnmatch.m4: Likewise.
15383         * m4/fopen.m4: Likewise.
15384         * m4/fpending.m4: Likewise.
15385         * m4/fprintf-posix.m4: Likewise.
15386         * m4/free.m4: Likewise.
15387         * m4/frexp.m4: Likewise.
15388         * m4/frexpl.m4: Likewise.
15389         * m4/fsusage.m4: Likewise.
15390         * m4/ftruncate.m4: Likewise.
15391         * m4/gc-camellia.m4: Likewise.
15392         * m4/gc-random.m4: Likewise.
15393         * m4/gc.m4: Likewise.
15394         * m4/getaddrinfo.m4: Likewise.
15395         * m4/getcwd-abort-bug.m4: Likewise.
15396         * m4/getcwd-path-max.m4: Likewise.
15397         * m4/getdate.m4: Likewise.
15398         * m4/getdomainname.m4: Likewise.
15399         * m4/getgroups.m4: Likewise.
15400         * m4/gethostname.m4: Likewise.
15401         * m4/gethrxtime.m4: Likewise.
15402         * m4/getline.m4: Likewise.
15403         * m4/getloadavg.m4: Likewise.
15404         * m4/getndelim2.m4: Likewise.
15405         * m4/getpass.m4: Likewise.
15406         * m4/gettext.m4: Likewise.
15407         * m4/gettime.m4: Likewise.
15408         * m4/gettimeofday.m4: Likewise.
15409         * m4/gnulib-common.m4: Likewise.
15410         * m4/group-member.m4: Likewise.
15411         * m4/host-os.m4: Likewise.
15412         * m4/iconv.m4: Likewise.
15413         * m4/iconv_open.m4: Likewise.
15414         * m4/inet_ntop.m4: Likewise.
15415         * m4/inet_pton.m4: Likewise.
15416         * m4/inline.m4: Likewise.
15417         * m4/intldir.m4: Likewise.
15418         * m4/intlmacosx.m4: Likewise.
15419         * m4/intmax.m4: Likewise.
15420         * m4/intmax_t.m4: Likewise.
15421         * m4/inttypes.m4: Likewise.
15422         * m4/inttypes_h.m4: Likewise.
15423         * m4/inttypes-pri.m4: Likewise.
15424         * m4/isapipe.m4: Likewise.
15425         * m4/isnand.m4: Likewise.
15426         * m4/isnanf.m4: Likewise.
15427         * m4/isnanl.m4: Likewise.
15428         * m4/javacomp.m4: Likewise.
15429         * m4/javaexec.m4: Likewise.
15430         * m4/jm-winsz1.m4: Likewise.
15431         * m4/jm-winsz2.m4: Likewise.
15432         * m4/lchown.m4: Likewise.
15433         * m4/lcmessage.m4: Likewise.
15434         * m4/ldexpl.m4: Likewise.
15435         * m4/lib-ld.m4: Likewise.
15436         * m4/lib-link.m4: Likewise.
15437         * m4/libsigsegv.m4: Likewise.
15438         * m4/link-follow.m4: Likewise.
15439         * m4/localcharset.m4: Likewise.
15440         * m4/locale-fr.m4: Likewise.
15441         * m4/locale-ja.m4: Likewise.
15442         * m4/locale-tr.m4: Likewise.
15443         * m4/locale-zh.m4: Likewise.
15444         * m4/lock.m4: Likewise.
15445         * m4/longlong.m4: Likewise.
15446         * m4/ls-mntd-fs.m4: Likewise.
15447         * m4/lstat.m4: Likewise.
15448         * m4/malloc.m4: Likewise.
15449         * m4/mathl.m4: Likewise.
15450         * m4/mbrtowc.m4: Likewise.
15451         * m4/mbstate_t.m4: Likewise.
15452         * m4/mbswidth.m4: Likewise.
15453         * m4/memchr.m4: Likewise.
15454         * m4/memcmp.m4: Likewise.
15455         * m4/memcpy.m4: Likewise.
15456         * m4/memmem.m4: Likewise.
15457         * m4/memmove.m4: Likewise.
15458         * m4/mempcpy.m4: Likewise.
15459         * m4/memrchr.m4: Likewise.
15460         * m4/memset.m4: Likewise.
15461         * m4/minmax.m4: Likewise.
15462         * m4/mkdir-slash.m4: Likewise.
15463         * m4/mkdtemp.m4: Likewise.
15464         * m4/mktime.m4: Likewise.
15465         * m4/mmap-anon.m4: Likewise.
15466         * m4/mountlist.m4: Likewise.
15467         * m4/nanosleep.m4: Likewise.
15468         * m4/nls.m4: Likewise.
15469         * m4/nocrash.m4: Likewise.
15470         * m4/open.m4: Likewise.
15471         * m4/openat.m4: Likewise.
15472         * m4/openmp.m4: Likewise.
15473         * m4/pathmax.m4: Likewise.
15474         * m4/perl.m4: Likewise.
15475         * m4/physmem.m4: Likewise.
15476         * m4/pipe.m4: Likewise.
15477         * m4/po.m4: Likewise.
15478         * m4/poll.m4: Likewise.
15479         * m4/posixtm.m4: Likewise.
15480         * m4/posixver.m4: Likewise.
15481         * m4/printf-frexp.m4: Likewise.
15482         * m4/printf-frexpl.m4: Likewise.
15483         * m4/printf-posix.m4: Likewise.
15484         * m4/printf-posix-rpl.m4: Likewise.
15485         * m4/printf.m4: Likewise.
15486         * m4/progtest.m4: Likewise.
15487         * m4/putenv.m4: Likewise.
15488         * m4/readline.m4: Likewise.
15489         * m4/readlink.m4: Likewise.
15490         * m4/readutmp.m4: Likewise.
15491         * m4/realloc.m4: Likewise.
15492         * m4/regex.m4: Likewise.
15493         * m4/relocatable.m4: Likewise.
15494         * m4/relocatable-lib.m4: Likewise.
15495         * m4/rename-dest-slash.m4: Likewise.
15496         * m4/rename.m4: Likewise.
15497         * m4/rmdir-errno.m4: Likewise.
15498         * m4/rmdir.m4: Likewise.
15499         * m4/roundf.m4: Likewise.
15500         * m4/roundl.m4: Likewise.
15501         * m4/rpmatch.m4: Likewise.
15502         * m4/save-cwd.m4: Likewise.
15503         * m4/selinux-selinux-h.m4: Likewise.
15504         * m4/setenv.m4: Likewise.
15505         * m4/settime.m4: Likewise.
15506         * m4/sig2str.m4: Likewise.
15507         * m4/sig_atomic_t.m4: Likewise.
15508         * m4/signalblocking.m4: Likewise.
15509         * m4/signbit.m4: Likewise.
15510         * m4/sigpipe.m4: Likewise.
15511         * m4/sockets.m4: Likewise.
15512         * m4/sockpfaf.m4: Likewise.
15513         * m4/st_dm_mode.m4: Likewise.
15514         * m4/stat-time.m4: Likewise.
15515         * m4/stdbool.m4: Likewise.
15516         * m4/stdint.m4: Likewise.
15517         * m4/stdint_h.m4: Likewise.
15518         * m4/stpcpy.m4: Likewise.
15519         * m4/stpncpy.m4: Likewise.
15520         * m4/strcase.m4: Likewise.
15521         * m4/strchrnul.m4: Likewise.
15522         * m4/strcspn.m4: Likewise.
15523         * m4/strdup.m4: Likewise.
15524         * m4/strftime.m4: Likewise.
15525         * m4/strndup.m4: Likewise.
15526         * m4/strnlen.m4: Likewise.
15527         * m4/strpbrk.m4: Likewise.
15528         * m4/strptime.m4: Likewise.
15529         * m4/strsep.m4: Likewise.
15530         * m4/strtod.m4: Likewise.
15531         * m4/strtoimax.m4: Likewise.
15532         * m4/strtok_r.m4: Likewise.
15533         * m4/strtol.m4: Likewise.
15534         * m4/strtoll.m4: Likewise.
15535         * m4/strtoul.m4: Likewise.
15536         * m4/strtoull.m4: Likewise.
15537         * m4/strtoumax.m4: Likewise.
15538         * m4/strverscmp.m4: Likewise.
15539         * m4/threadlib.m4: Likewise.
15540         * m4/timegm.m4: Likewise.
15541         * m4/tm_gmtoff.m4: Likewise.
15542         * m4/tmpdir.m4: Likewise.
15543         * m4/tmpfile.m4: Likewise.
15544         * m4/tzset.m4: Likewise.
15545         * m4/uintmax_t.m4: Likewise.
15546         * m4/unlinkdir.m4: Likewise.
15547         * m4/unlocked-io.m4: Likewise.
15548         * m4/uptime.m4: Likewise.
15549         * m4/userspec.m4: Likewise.
15550         * m4/utimbuf.m4: Likewise.
15551         * m4/utime.m4: Likewise.
15552         * m4/utimes-null.m4: Likewise.
15553         * m4/utimes.m4: Likewise.
15554         * m4/vararrays.m4: Likewise.
15555         * m4/vasnprintf.m4: Likewise.
15556         * m4/vfprintf-posix.m4: Likewise.
15557         * m4/vprintf-posix.m4: Likewise.
15558         * m4/wait-process.m4: Likewise.
15559         * m4/wchar_t.m4: Likewise.
15560         * m4/wint_t.m4: Likewise.
15561         * m4/write-any-file.m4: Likewise.
15562         * m4/yield.m4: Likewise.
15563
15564 2009-01-13  Bruno Haible  <bruno@clisp.org>
15565
15566         Avoid test-copy-file.sh failures when ACL support insufficient.
15567         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15568         TESTS_ENVIRONMENT.
15569         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15570         Reported by Jim Meyering.
15571
15572 2009-01-13  Bruno Haible  <bruno@clisp.org>
15573
15574         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15575         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15576         * modules/unistdio/u8-printf-parse (Files): Likewise.
15577         * modules/unistdio/u32-printf-parse (Files): Likewise.
15578         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15579
15580 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15581
15582         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15583         and m4/inttypes_h.m4 too.
15584
15585 2009-01-12  Eric Blake  <ebb9@byu.net>
15586
15587         tests: IRIX 6.2 cc can't compile -0.0 into .data
15588         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15589         rather than at compile-time.
15590         * tests/test-floorl.c (minus_zero): Likewise.
15591         * tests/test-frexpl.c (minus_zero): Likewise.
15592         * tests/test-isnan.c (minus_zerol): Likewise.
15593         * tests/test-isnanl.h (minus_zero): Likewise.
15594         * tests/test-ldexpl.c (minus_zero): Likewise.
15595         * tests/test-roundl.c (minus_zero): Likewise.
15596         * tests/test-signbit.c (minus_zerol): Likewise.
15597         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15598         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15599         * tests/test-truncl.c (minus_zero): Likewise.
15600         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15601         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15602         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15603
15604 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15605
15606         regex: fix glibc bug 9697
15607         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15608         handling.
15609
15610 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15611
15612         regex: fix glibc bug 697
15613         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15614         being NULL also if there are no backreferences.
15615
15616 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15617
15618         regex: merge glibc changes
15619         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15620         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15621         re_string_skip_chars, re_string_reconstruct): Likewise.
15622         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15623
15624 2009-01-07  Jim Meyering  <meyering@redhat.com>
15625
15626         poll: filter through cppi
15627         * lib/poll.c: Indent cpp directives to reflect nesting.
15628
15629 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15630
15631         poll: don't return uninitialized
15632         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15633
15634 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15635
15636         avoid compile failure on AIX 6.1
15637         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15638         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15639
15640 2009-01-04  Jim Meyering  <meyering@redhat.com>
15641
15642         remove duplicate inclusion of <stdio.h>
15643         * tests/test-fprintf-posix.c: Likewise.
15644         * tests/test-printf-posix.c: Likewise.
15645         * tests/test-snprintf-posix.c: Likewise.
15646         * tests/test-sprintf-posix.c: Likewise.
15647         * tests/test-vasprintf-posix.c: Likewise.
15648         * tests/test-vfprintf-posix.c: Likewise.
15649         * tests/test-vprintf-posix.c: Likewise.
15650         * tests/test-vsnprintf-posix.c: Likewise.
15651         * tests/test-vsprintf-posix.c: Likewise.
15652
15653 2009-01-03  Jim Meyering  <meyering@redhat.com>
15654
15655         gnulib-tool: fix sed-based filtering
15656         * gnulib-tool (func_filter_filelist): Remove extra backslash
15657         in sed_fff_filter definition.
15658
15659 2009-01-02  Jim Meyering  <meyering@redhat.com>
15660
15661         strftime: avoid compilation failure on Solaris 2.6
15662         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15663         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15664         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15665         be available.  Reported by Tom G. Christensen.  Details in
15666         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15667
15668 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15669             Bruno Haible  <bruno@clisp.org>
15670
15671         Speed up gnulib-tool by doing more string processing through shell
15672         built-ins.
15673         * gnulib-tool (fast_func_append): New variable.
15674         (func_remove_prefix, func_remove_suffix): New functions.
15675         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15676         (func_filter_filelist): New function.
15677         (func_get_dependencies): Use func_remove_suffix instead of sed.
15678         (func_get_automake_snippet): Use func_filter_filelist instead of a
15679         subshell and sed invocation.
15680
15681 2009-01-01  Bruno Haible  <bruno@clisp.org>
15682
15683         Fix a security bug.
15684         * gnulib-tool (func_import, import, update): Don't allow the characters
15685         '"', '$', '`', '\' in macro arguments that become part of commands that
15686         are evaluated.
15687
15688 2009-01-01  Bruno Haible  <bruno@clisp.org>
15689
15690         * gnulib-tool (func_reset_sigpipe): Add more comments.
15691
15692 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15693
15694         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15695         func_emit_tests_Makefile_am, func_import): Abort loops early if we
15696         already know the answer.
15697
15698 2009-01-01  Jim Meyering  <meyering@redhat.com>
15699
15700         * lib/version-etc.c (version_etc_va): Update copyright year.
15701
15702 2008-12-30  Bruno Haible  <bruno@clisp.org>
15703
15704         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15705         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15706         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15707
15708 2008-12-29  Eric Blake  <ebb9@byu.net>
15709
15710         multiarch: avoid autoconf AC_REQUIRE bug
15711         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15712         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15713         2.63 and older.
15714         Reported by Bruno Haible, and analyzed in
15715         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15716
15717 2008-12-29  Bruno Haible  <bruno@clisp.org>
15718
15719         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15720         files in subdirectories correctly.
15721         Reported by Ralf Wildenhues.
15722
15723 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15724
15725         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15726         rather than 'join FILE -', for Solaris join.
15727
15728 2008-12-29  Bruno Haible  <bruno@clisp.org>
15729
15730         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15731         quoting.
15732         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15733         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15734         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15735         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15736         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15737         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15738         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15739         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15740         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15741         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15742         * m4/nls.m4 (AM_NLS): Likewise.
15743         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15744         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15745         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15746         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15747         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15748         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15749         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15750         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15751         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15752         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15753         * m4/xsize.m4 (gl_XSIZE): Likewise.
15754         Suggested by Jim Meyering.
15755
15756 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15757
15758         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
15759         * lib/parse-duration.c: use a switch instead of cascading if's.
15760
15761 2008-12-29  Eric Blake  <ebb9@byu.net>
15762
15763         wchar.h: supply WEOF on Irix 5.3
15764         * lib/wchar.in.h (wint_t): Also supply WEOF.
15765         * lib/wctype.in.h (wint_t): Likewise.
15766         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
15767         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
15768         Reported by Tom G. Christensen.
15769
15770 2008-12-26  Bruno Haible  <bruno@clisp.org>
15771
15772         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
15773         i486, i586, i686.
15774
15775 2008-12-26  Bruno Haible  <bruno@clisp.org>
15776
15777         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
15778
15779 2008-12-26  Bruno Haible  <bruno@clisp.org>
15780
15781         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
15782         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
15783         not __STDC_CONSTANT_MACROS.
15784         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15785
15786 2008-12-25  Bruno Haible  <bruno@clisp.org>
15787
15788         Add support for universal builds to vasnprintf.
15789         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
15790         universal builds, guess no.
15791         * modules/vasnprintf-posix (Depends-on): Add multiarch.
15792         * modules/vasprintf-posix (Depends-on): Likewise.
15793         * modules/fprintf-posix (Depends-on): Likewise.
15794         * modules/vfprintf-posix (Depends-on): Likewise.
15795         * modules/snprintf-posix (Depends-on): Likewise.
15796         * modules/vsnprintf-posix (Depends-on): Likewise.
15797         * modules/sprintf-posix (Depends-on): Likewise.
15798         * modules/vsprintf-posix (Depends-on): Likewise.
15799         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15800         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15801         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15802         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15803         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15804         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15805         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15806
15807         Add support for universal builds to <inttypes.h>.
15808         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
15809         _SCNu64_PREFIX): In Apple
15810         universal builds, define directly, using _LP64.
15811         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
15812         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
15813         * modules/inttypes (Depends-on): Add multiarch.
15814         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15815
15816         Add support for universal builds to <stdint.h>.
15817         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
15818         universal builds, define directly, using _LP64.
15819         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
15820         Apple universal builds, don't test for the size and suffix of ptrdiff_t
15821         and size_t.
15822         * modules/stdint (Depends-on): Add multiarch.
15823         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15824
15825         New module 'multiarch'.
15826         * modules/multiarch: New file.
15827         * m4/multiarch.m4: New file.
15828
15829 2008-12-25  Bruno Haible  <bruno@clisp.org>
15830
15831         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
15832
15833 2008-12-25  Bruno Haible  <bruno@clisp.org>
15834
15835         * modules/btowc (License): Relicense under LGPLv2+.
15836         * modules/mbsinit (License): Likewise.
15837         * modules/mbrtowc (License): Likewise.
15838         * modules/wcrtomb (License): Likewise.
15839         * modules/streq (License): Likewise.
15840         Reported by David Lutterkort <lutter@redhat.com>.
15841
15842 2008-12-23  Bruno Haible  <bruno@clisp.org>
15843
15844         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
15845
15846 2008-12-23  Bruno Haible  <bruno@clisp.org>
15847
15848         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
15849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
15850         GETADDRINFO_LIB, not in LIBS.
15851         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
15852         * modules/canon-host (Link): Likewise.
15853         * NEWS: Mention the change.
15854         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
15855         GETADDRINFO_LIB.
15856
15857 2008-12-22  Bruno Haible  <bruno@clisp.org>
15858
15859         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
15860         * doc/posix-functions/iswalpha_l.texi: Likewise.
15861         * doc/posix-functions/iswblank_l.texi: Likewise.
15862         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15863         * doc/posix-functions/iswctype_l.texi: Likewise.
15864         * doc/posix-functions/iswdigit_l.texi: Likewise.
15865         * doc/posix-functions/iswgraph_l.texi: Likewise.
15866         * doc/posix-functions/iswlower_l.texi: Likewise.
15867         * doc/posix-functions/iswprint_l.texi: Likewise.
15868         * doc/posix-functions/iswpunct_l.texi: Likewise.
15869         * doc/posix-functions/iswspace_l.texi: Likewise.
15870         * doc/posix-functions/iswupper_l.texi: Likewise.
15871         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15872         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
15873         * doc/posix-functions/open_wmemstream.texi: Likewise.
15874         * doc/posix-functions/swscanf.texi: Likewise.
15875         * doc/posix-functions/towctrans_l.texi: Likewise.
15876         * doc/posix-functions/towlower.texi: Likewise.
15877         * doc/posix-functions/towlower_l.texi: Likewise.
15878         * doc/posix-functions/towupper.texi: Likewise.
15879         * doc/posix-functions/towupper_l.texi: Likewise.
15880         * doc/posix-functions/vfwprintf.texi: Likewise.
15881         * doc/posix-functions/vfwscanf.texi: Likewise.
15882         * doc/posix-functions/vswscanf.texi: Likewise.
15883         * doc/posix-functions/vwprintf.texi: Likewise.
15884         * doc/posix-functions/vwscanf.texi: Likewise.
15885         * doc/posix-functions/wcpcpy.texi: Likewise.
15886         * doc/posix-functions/wcpncpy.texi: Likewise.
15887         * doc/posix-functions/wcscasecmp.texi: Likewise.
15888         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
15889         * doc/posix-functions/wcscoll_l.texi: Likewise.
15890         * doc/posix-functions/wcsdup.texi: Likewise.
15891         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15892         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
15893         * doc/posix-functions/wcsnlen.texi: Likewise.
15894         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15895         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15896         * doc/posix-functions/wctrans_l.texi: Likewise.
15897         * doc/posix-functions/wctype_l.texi: Likewise.
15898         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
15899         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
15900         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
15901         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
15902         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
15903         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
15904         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
15905         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
15906         * doc/glibc-functions/wcschrnul.texi: Likewise.
15907         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15908         * doc/glibc-functions/wcstod_l.texi: Likewise.
15909         * doc/glibc-functions/wcstof_l.texi: Likewise.
15910         * doc/glibc-functions/wcstol_l.texi: Likewise.
15911         * doc/glibc-functions/wcstold_l.texi: Likewise.
15912         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15913         * doc/glibc-functions/wcstoq.texi: Likewise.
15914         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15915         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15916         * doc/glibc-functions/wcstouq.texi: Likewise.
15917         * doc/glibc-functions/wmempcpy.texi: Likewise.
15918
15919 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
15920             Eric Blake  <ebb9@byu.net>
15921             Paolo Bonzini  <bonzini@gnu.org>
15922             Bruno Haible  <bruno@clisp.org>
15923
15924         Make c-stack work on Haiku.
15925         * lib/c-stack.c (SA_ONSTACK): Define fallback.
15926         (c_stack_action): Use SA_ONSTACK flag.
15927
15928 2008-12-22  Bruno Haible  <bruno@clisp.org>
15929
15930         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
15931
15932 2008-12-22  Bruno Haible  <bruno@clisp.org>
15933
15934         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
15935         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
15936         being overridden.
15937         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
15938         New macros.
15939         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
15940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
15941         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
15942         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
15943
15944 2008-12-22  Bruno Haible  <bruno@clisp.org>
15945
15946         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
15947         from test code.
15948
15949 2008-12-22  Eric Blake  <ebb9@byu.net>
15950
15951         Avoid gcc warnings on cygwin.
15952         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
15953         Avoid unused variable.
15954         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
15955         Likewise.
15956
15957 2008-12-22  Bruno Haible  <bruno@clisp.org>
15958
15959         Remove HAVE_MBRTOWC conditionals.
15960         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
15961         (mbscasecmp): Assume mbrtowc function.
15962         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
15963         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
15964         * lib/mbschr.c: Include mbuiter.h unconditionally.
15965         (mbschr): Assume mbrtowc function.
15966         * lib/mbscspn.c: Include mbuiter.h unconditionally.
15967         (mbscspn): Assume mbrtowc function.
15968         * lib/mbslen.c: Include mbuiter.h unconditionally.
15969         (mbslen): Assume mbrtowc function.
15970         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
15971         (mbsncasecmp): Assume mbrtowc function.
15972         * lib/mbsnlen.c: Include mbiter.h unconditionally.
15973         (mbsnlen): Assume mbrtowc function.
15974         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
15975         (mbspbrk): Assume mbrtowc function.
15976         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
15977         (mbspcasecmp): Assume mbrtowc function.
15978         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
15979         (mbsrchr): Assume mbrtowc function.
15980         * lib/mbssep.c: Include mbuiter.h unconditionally.
15981         (mbssep): Assume mbrtowc function.
15982         * lib/mbsspn.c: Include mbuiter.h unconditionally.
15983         (mbsspn): Assume mbrtowc function.
15984         * lib/mbsstr.c: Include mbuiter.h unconditionally.
15985         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
15986         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
15987         (mbstok_r): Assume mbrtowc function.
15988         * lib/propername.c: Include mbuiter.h unconditionally.
15989         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
15990         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
15991         (trim2): Assume mbrtowc function.
15992         * lib/mbswidth.c (mbsinit): Remove fallback definition.
15993         (mbsnwidth): Assume mbrtowc function.
15994         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
15995         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
15996         fallback definitions.
15997         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
15998
15999 2008-12-22  Bruno Haible  <bruno@clisp.org>
16000
16001         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16002
16003 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16004
16005         * modules/regex: Request emulations for the mb*/wc* functions we need.
16006         * m4/regex.m4: Don't look for those functions here.
16007         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16008
16009 2008-12-22  Bruno Haible  <bruno@clisp.org>
16010
16011         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16012
16013 2008-12-21  Bruno Haible  <bruno@clisp.org>
16014
16015         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16016         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16017         (Include): Remove conditionalization.
16018         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16019         (Include): Remove conditionalization.
16020         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16021         (Include): Remove conditionalization.
16022         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16023         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16024         * NEWS: Mention the change.
16025         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16026         via Sergey Poznyakoff <gray@gnu.org.ua>.
16027
16028 2008-12-21  Bruno Haible  <bruno@clisp.org>
16029
16030         * MODULES.html.sh (Extended multibyte and wide character utilities
16031         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16032         wcrtomb, wcsrtombs.
16033         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16034         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16035         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16036         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16037
16038 2008-12-21  Bruno Haible  <bruno@clisp.org>
16039
16040         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16041
16042 2008-12-21  Bruno Haible  <bruno@clisp.org>
16043
16044         * modules/wcsnrtombs-tests: New file.
16045         * tests/test-wcsnrtombs1.sh: New file.
16046         * tests/test-wcsnrtombs2.sh: New file.
16047         * tests/test-wcsnrtombs3.sh: New file.
16048         * tests/test-wcsnrtombs4.sh: New file.
16049         * tests/test-wcsnrtombs.c: New file.
16050
16051         New module 'wcsnrtombs'.
16052         * lib/wchar.in.h (wcsnrtombs): New declaration.
16053         * lib/wcsnrtombs.c: New file.
16054         * lib/wcsrtombs-state.c: New file.
16055         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16056         (internal_state): Remove variable.
16057         * m4/wcsnrtombs.m4: New file.
16058         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16059         compilation units.
16060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16061         HAVE_WCSNRTOMBS.
16062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16063         HAVE_WCSNRTOMBS.
16064         * modules/wcsnrtombs: New file.
16065         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16066         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16067
16068 2008-12-21  Bruno Haible  <bruno@clisp.org>
16069
16070         * modules/wcsrtombs-tests: New file.
16071         * tests/test-wcsrtombs1.sh: New file.
16072         * tests/test-wcsrtombs2.sh: New file.
16073         * tests/test-wcsrtombs3.sh: New file.
16074         * tests/test-wcsrtombs4.sh: New file.
16075         * tests/test-wcsrtombs.c: New file.
16076
16077         New module 'wcsrtombs'.
16078         * lib/wchar.in.h (wcsrtombs): New declaration.
16079         * lib/wcsrtombs.c: New file.
16080         * m4/wcsrtombs.m4: New file.
16081         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16082         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16084         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16085         * modules/wcsrtombs: New file.
16086         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16087         bugs.
16088
16089 2008-12-21  Bruno Haible  <bruno@clisp.org>
16090
16091         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16092         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16093         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16094         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16095         if not correct.
16096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16097         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16098         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16099         m4/locale-zh.m4, m4/codeset.m4.
16100         * doc/posix-functions/wcrtomb.texi: Document the bug.
16101
16102 2008-12-21  Bruno Haible  <bruno@clisp.org>
16103
16104         Work around a btowc() bug on IRIX 6.5.
16105         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16106         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16107         REPLACE_WTOBC if not.
16108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16109         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16110         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16111
16112 2008-12-21  Bruno Haible  <bruno@clisp.org>
16113
16114         * modules/wcrtomb-tests: New file.
16115         * tests/test-wcrtomb.sh: New file.
16116         * tests/test-wcrtomb.c: New file.
16117
16118         New module 'wcrtomb'.
16119         * lib/wchar.in.h (wcrtomb): New declaration.
16120         * lib/wcrtomb.c: New file.
16121         * m4/wcrtomb.m4: New file.
16122         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16123         HAVE_WCRTOMB.
16124         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16125         HAVE_WCRTOMB.
16126         * modules/wcrtomb: New file.
16127         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16128
16129 2008-12-21  Bruno Haible  <bruno@clisp.org>
16130
16131         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16132         * modules/mbsrtowcs (Files): Likewise.
16133         * modules/wctob (Files): Likewise.
16134         * modules/c-strcase-tests (Files): Likewise.
16135         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16136         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16137         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16138         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16139         * modules/vasnprintf-posix-tests (Files): Likewise.
16140
16141 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16142
16143         gitlog-to-changelog: pass all command-line arguments to git-log
16144         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16145         it is sometimes convenient to filter the commits in various ways.
16146         gitlog-to-changelog only allows --since to specify a start date,
16147         but git-log itself supports many other filtering mechanisms.
16148         At the moment, I want to filter by branch name.  Rather than
16149         adding a --branch option to gitlog-to-changelog, it seems more
16150         flexible to simply pass all options directly to git-log and let
16151         git do the work.  Notice that this effectively makes --since a
16152         redundant option for gitlog-to-changelog, but removing it would
16153         require current usage to change since calls would then require
16154         an additional '--'.
16155
16156 2008-12-21  Bruno Haible  <bruno@clisp.org>
16157
16158         * modules/mbsnrtowcs-tests: New file.
16159         * tests/test-mbsnrtowcs1.sh: New file.
16160         * tests/test-mbsnrtowcs2.sh: New file.
16161         * tests/test-mbsnrtowcs3.sh: New file.
16162         * tests/test-mbsnrtowcs4.sh: New file.
16163         * tests/test-mbsnrtowcs.c: New file.
16164
16165         New module 'mbsnrtowcs'.
16166         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16167         * lib/mbsnrtowcs.c: New file.
16168         * lib/mbsrtowcs-state.c: New file.
16169         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16170         (internal_state): Remove variable.
16171         * m4/mbsnrtowcs.m4: New file.
16172         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16173         compilation units.
16174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16175         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16176         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16177         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16178         * modules/mbsnrtowcs: New file.
16179         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16180         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16181         portability problem.
16182
16183 2008-12-21  Bruno Haible  <bruno@clisp.org>
16184
16185         Work around mbsrtowcs bug.
16186         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16187         (gl_FUNC_MBSRTOWCS): Invoke it.
16188         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16189         m4/locale-zh.m4.
16190         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16191
16192 2008-12-21  Bruno Haible  <bruno@clisp.org>
16193
16194         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16195
16196 2008-12-21  Bruno Haible  <bruno@clisp.org>
16197
16198         Update doc for AIX.
16199         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16200         16-bit wchar_t type.
16201         * doc/posix-functions/btowc.texi: Likewise.
16202         * doc/posix-functions/fgetwc.texi: Likewise.
16203         * doc/posix-functions/fgetws.texi: Likewise.
16204         * doc/posix-functions/fputwc.texi: Likewise.
16205         * doc/posix-functions/fputws.texi: Likewise.
16206         * doc/posix-functions/fwide.texi: Likewise.
16207         * doc/posix-functions/fwprintf.texi: Likewise.
16208         * doc/posix-functions/fwscanf.texi: Likewise.
16209         * doc/posix-functions/getwchar.texi: Likewise.
16210         * doc/posix-functions/getwc.texi: Likewise.
16211         * doc/posix-functions/iswalnum.texi: Likewise.
16212         * doc/posix-functions/iswalpha.texi: Likewise.
16213         * doc/posix-functions/iswblank.texi: Likewise.
16214         * doc/posix-functions/iswcntrl.texi: Likewise.
16215         * doc/posix-functions/iswctype.texi: Likewise.
16216         * doc/posix-functions/iswdigit.texi: Likewise.
16217         * doc/posix-functions/iswgraph.texi: Likewise.
16218         * doc/posix-functions/iswlower.texi: Likewise.
16219         * doc/posix-functions/iswprint.texi: Likewise.
16220         * doc/posix-functions/iswpunct.texi: Likewise.
16221         * doc/posix-functions/iswspace.texi: Likewise.
16222         * doc/posix-functions/iswupper.texi: Likewise.
16223         * doc/posix-functions/iswxdigit.texi: Likewise.
16224         * doc/posix-functions/mbrtowc.texi: Likewise.
16225         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16226         * doc/posix-functions/mbstowcs.texi: Likewise.
16227         * doc/posix-functions/mbtowc.texi: Likewise.
16228         * doc/posix-functions/putwchar.texi: Likewise.
16229         * doc/posix-functions/putwc.texi: Likewise.
16230         * doc/posix-functions/swprintf.texi: Likewise.
16231         * doc/posix-functions/tolower.texi: Likewise.
16232         * doc/posix-functions/toupper.texi: Likewise.
16233         * doc/posix-functions/towctrans.texi: Likewise.
16234         * doc/posix-functions/ungetwc.texi: Likewise.
16235         * doc/posix-functions/vswprintf.texi: Likewise.
16236         * doc/posix-functions/wcrtomb.texi: Likewise.
16237         * doc/posix-functions/wcscat.texi: Likewise.
16238         * doc/posix-functions/wcschr.texi: Likewise.
16239         * doc/posix-functions/wcscmp.texi: Likewise.
16240         * doc/posix-functions/wcscoll.texi: Likewise.
16241         * doc/posix-functions/wcscpy.texi: Likewise.
16242         * doc/posix-functions/wcscspn.texi: Likewise.
16243         * doc/posix-functions/wcsftime.texi: Likewise.
16244         * doc/posix-functions/wcslen.texi: Likewise.
16245         * doc/posix-functions/wcsncat.texi: Likewise.
16246         * doc/posix-functions/wcsncmp.texi: Likewise.
16247         * doc/posix-functions/wcsncpy.texi: Likewise.
16248         * doc/posix-functions/wcspbrk.texi: Likewise.
16249         * doc/posix-functions/wcsrchr.texi: Likewise.
16250         * doc/posix-functions/wcsrtombs.texi: Likewise.
16251         * doc/posix-functions/wcsspn.texi: Likewise.
16252         * doc/posix-functions/wcsstr.texi: Likewise.
16253         * doc/posix-functions/wcstod.texi: Likewise.
16254         * doc/posix-functions/wcstof.texi: Likewise.
16255         * doc/posix-functions/wcstoimax.texi: Likewise.
16256         * doc/posix-functions/wcstok.texi: Likewise.
16257         * doc/posix-functions/wcstold.texi: Likewise.
16258         * doc/posix-functions/wcstoll.texi: Likewise.
16259         * doc/posix-functions/wcstol.texi: Likewise.
16260         * doc/posix-functions/wcstombs.texi: Likewise.
16261         * doc/posix-functions/wcstoull.texi: Likewise.
16262         * doc/posix-functions/wcstoul.texi: Likewise.
16263         * doc/posix-functions/wcstoumax.texi: Likewise.
16264         * doc/posix-functions/wcswidth.texi: Likewise.
16265         * doc/posix-functions/wcsxfrm.texi: Likewise.
16266         * doc/posix-functions/wctob.texi: Likewise.
16267         * doc/posix-functions/wctomb.texi: Likewise.
16268         * doc/posix-functions/wctrans.texi: Likewise.
16269         * doc/posix-functions/wctype.texi: Likewise.
16270         * doc/posix-functions/wcwidth.texi: Likewise.
16271         * doc/posix-functions/wmemchr.texi: Likewise.
16272         * doc/posix-functions/wmemcmp.texi: Likewise.
16273         * doc/posix-functions/wmemcpy.texi: Likewise.
16274         * doc/posix-functions/wmemmove.texi: Likewise.
16275         * doc/posix-functions/wmemset.texi: Likewise.
16276         * doc/posix-functions/wprintf.texi: Likewise.
16277         * doc/posix-functions/wscanf.texi: Likewise.
16278
16279 2008-12-21  Bruno Haible  <bruno@clisp.org>
16280
16281         Update doc for HP-UX 11.11.
16282         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16283         in HP-UX version 11.00, not in all versions of HP-UX 11.
16284         * doc/posix-functions/fwide.texi: Likewise.
16285         * doc/posix-functions/fwprintf.texi: Likewise.
16286         * doc/posix-functions/fwscanf.texi: Likewise.
16287         * doc/posix-functions/inet_ntop.texi: Likewise.
16288         * doc/posix-functions/inet_pton.texi: Likewise.
16289         * doc/posix-functions/mbrlen.texi: Likewise.
16290         * doc/posix-functions/mbrtowc.texi: Likewise.
16291         * doc/posix-functions/mbsinit.texi: Likewise.
16292         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16293         * doc/posix-functions/swprintf.texi: Likewise.
16294         * doc/posix-functions/swscanf.texi: Likewise.
16295         * doc/posix-functions/towctrans.texi: Likewise.
16296         * doc/posix-functions/vfwprintf.texi: Likewise.
16297         * doc/posix-functions/vswprintf.texi: Likewise.
16298         * doc/posix-functions/vwprintf.texi: Likewise.
16299         * doc/posix-functions/wcrtomb.texi: Likewise.
16300         * doc/posix-functions/wcsrtombs.texi: Likewise.
16301         * doc/posix-functions/wcsstr.texi: Likewise.
16302         * doc/posix-functions/wctob.texi: Likewise.
16303         * doc/posix-functions/wctrans.texi: Likewise.
16304         * doc/posix-functions/wmemchr.texi: Likewise.
16305         * doc/posix-functions/wmemcmp.texi: Likewise.
16306         * doc/posix-functions/wmemcpy.texi: Likewise.
16307         * doc/posix-functions/wmemmove.texi: Likewise.
16308         * doc/posix-functions/wmemset.texi: Likewise.
16309         * doc/posix-functions/wprintf.texi: Likewise.
16310         * doc/posix-functions/wscanf.texi: Likewise.
16311
16312 2008-12-21  Bruno Haible  <bruno@clisp.org>
16313
16314         Work around a portability problem.
16315         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16316         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16317
16318 2008-12-20  Bruno Haible  <bruno@clisp.org>
16319
16320         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16321         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16322         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16324         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16325
16326         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16327         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16328         set.
16329         (GNULIB_defined_mbstate_t): New macro.
16330         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16331         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16332         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16333         reuses the system's mbrtowc function but works around the bugs.
16334         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16335         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16336         macros.
16337         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16338         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16339         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16340         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16341         REPLACE_MBSINIT if mbsinit needs to be overridden.
16342         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16343         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16344         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16345         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16346         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16347         m4/locale-zh.m4.
16348         (Depends): Add mbsinit.
16349         * modules/mbsinit (Depends): Add mbrtowc.
16350         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16351
16352 2008-12-20  Bruno Haible  <bruno@clisp.org>
16353
16354         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16355         so that there are no conversion errors on AIX.
16356         * tests/test-mbsrtowcs.c (main): LIkewise.
16357
16358 2008-12-20  Bruno Haible  <bruno@clisp.org>
16359
16360         Work around wctob bug on Solaris <= 9.
16361         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16362         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16364         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16365         * modules/wctob (Files): Add m4/locale-fr.m4.
16366         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16367
16368 2008-12-20  Bruno Haible  <bruno@clisp.org>
16369
16370         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16371         /dev/null.
16372         * tests/test-select-in.sh: Likewise.
16373         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16374
16375 2008-12-20  Bruno Haible  <bruno@clisp.org>
16376
16377         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16378         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16379         Cygwin 1.5.x.
16380
16381 2008-12-20  Bruno Haible  <bruno@clisp.org>
16382
16383         Ensure mbstate_t is defined on HP-UX 11.11.
16384         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16385         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16386         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16387         AC_USE_SYSTEM_EXTENSIONS.
16388         * modules/fnmatch (Depends-on): Add extensions.
16389         * modules/mbrlen (Depends-on): Likewise.
16390         * modules/mbrtowc (Depends-on): Likewise.
16391         * modules/mbsinit (Depends-on): Likewise.
16392         * modules/mbsrtowcs (Depends-on): Likewise.
16393         * modules/mbswidth (Depends-on): Likewise.
16394         * modules/quotearg (Depends-on): Likewise.
16395         * modules/strftime (Depends-on): Likewise.
16396
16397 2008-12-20  Bruno Haible  <bruno@clisp.org>
16398
16399         Ensure wctob is declared on IRIX 6.5.
16400         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16401         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16402         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16403         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16404         of HAVE_WCTOB.
16405         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16406         HAVE_WCTOB.
16407         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16408
16409 2008-12-19  Bruno Haible  <bruno@clisp.org>
16410
16411         * modules/mbsrtowcs-tests: New file.
16412         * tests/test-mbsrtowcs1.sh: New file.
16413         * tests/test-mbsrtowcs2.sh: New file.
16414         * tests/test-mbsrtowcs3.sh: New file.
16415         * tests/test-mbsrtowcs4.sh: New file.
16416         * tests/test-mbsrtowcs.c: New file.
16417
16418         New module 'mbsrtowcs'.
16419         * lib/wchar.in.h (mbsrtowcs): New declaration.
16420         * lib/mbsrtowcs.c: New file.
16421         * m4/mbsrtowcs.m4: New file.
16422         * modules/mbsrtowcs: New file.
16423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16424         HAVE_MBSRTOWCS.
16425         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16426         HAVE_MBSRTOWCS.
16427         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16428
16429 2008-12-19  Bruno Haible  <bruno@clisp.org>
16430
16431         New module 'mbrlen'.
16432         * lib/wchar.in.h (mbrlen): New declaration.
16433         * lib/mbrlen.c: New file.
16434         * m4/mbrlen.m4: New file.
16435         * modules/mbrlen: New file.
16436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16437         HAVE_MBRLEN.
16438         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16439         HAVE_MBRLEN.
16440         * doc/posix-functions/mbrlen.texi: Document the new module.
16441
16442 2008-12-19  Bruno Haible  <bruno@clisp.org>
16443
16444         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16445         * modules/mbrtowc (Depends-on): Add verify.
16446         Suggested by Paul Eggert.
16447
16448 2008-12-18  Bruno Haible  <bruno@clisp.org>
16449
16450         * modules/mbsinit-tests: New file.
16451         * tests/test-mbsinit.sh: New file.
16452         * tests/test-mbsinit.c: New file.
16453
16454 2008-12-18  Bruno Haible  <bruno@clisp.org>
16455
16456         * modules/mbrtowc-tests: New file.
16457         * tests/test-mbrtowc1.sh: New file.
16458         * tests/test-mbrtowc2.sh: New file.
16459         * tests/test-mbrtowc3.sh: New file.
16460         * tests/test-mbrtowc4.sh: New file.
16461         * tests/test-mbrtowc.c: New file.
16462
16463         New module 'mbrtowc'.
16464         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16465         mbsinit and mbrtowc.
16466         (mbrtowc): New declaration.
16467         * lib/mbrtowc.c: New file.
16468         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16469         * modules/mbrtowc: New file.
16470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16471         HAVE_MBRTOWC.
16472         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16473         HAVE_MBRTOWC.
16474         * doc/posix-functions/mbrtowc.texi: Document the new module.
16475
16476 2008-12-18  Bruno Haible  <bruno@clisp.org>
16477
16478         New module 'wctob'.
16479         * lib/wchar.in.h (wctob): New declaration.
16480         * lib/wctob.c: New file.
16481         * m4/wctob.m4: New file.
16482         * modules/wctob: New file.
16483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16484         HAVE_WCTOB.
16485         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16486         * doc/posix-functions/wctob.texi: Document the new module.
16487
16488 2008-12-18  Bruno Haible  <bruno@clisp.org>
16489
16490         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16491         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16492
16493 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16494
16495         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16496         G. Christensen" <tgc@jupiterrise.com>.
16497
16498         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16499         G. Christensen" <tgc@jupiterrise.com>.
16500
16501         * lib/flock.c: Need to include string.h.  Reported by "Tom
16502         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16503         <ebb9@byu.net>.
16504
16505 2008-12-18  Bruno Haible  <bruno@clisp.org>
16506
16507         * m4/locale-ja.m4: New file, from GNU gettext.
16508
16509 2008-12-17  Bruno Haible  <bruno@clisp.org>
16510
16511         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16512         Suggested by Eric Blake.
16513
16514 2008-12-17  Bruno Haible  <bruno@clisp.org>
16515
16516         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16517
16518 2008-12-17  Bruno Haible  <bruno@clisp.org>
16519
16520         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16521         * modules/mbsinit (Depends-on): Add verify.
16522         Suggested by Paul Eggert.
16523
16524 2008-12-17  Bruno Haible  <bruno@clisp.org>
16525
16526         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16527         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16528         gl_FUNC_MBRTOWC.
16529         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16530         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16531         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16532         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16533         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16534         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16535         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16536         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16537         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16538         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16539         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16540         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16541         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16542         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16543         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16544         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16545         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16546         * modules/trim (configure.ac): Likewise.
16547
16548 2008-12-17  Bruno Haible  <bruno@clisp.org>
16549
16550         * modules/btowc-tests: New file.
16551         * tests/test-btowc1.sh: New file.
16552         * tests/test-btowc2.sh: New file.
16553         * tests/test-btowc.c: New file.
16554
16555         New module 'btowc'.
16556         * lib/wchar.in.h (btowc): New declaration.
16557         * lib/btowc.c: New file.
16558         * m4/btowc.m4: New file.
16559         * modules/btowc: New file.
16560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16561         HAVE_BTOWC.
16562         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16563         * doc/posix-functions/btowc.texi: Document the new module.
16564
16565 2008-12-17  Bruno Haible  <bruno@clisp.org>
16566
16567         New module 'mbsinit'.
16568         * lib/wchar.in.h (mbsinit): New declaration.
16569         * lib/mbsinit.c: New file.
16570         * m4/mbsinit.m4: New file.
16571         * modules/mbsinit: New file.
16572         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16573         HAVE_MBSINIT.
16574         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16575         HAVE_MBSINIT.
16576         * doc/posix-functions/mbsinit.texi: Document the new module.
16577
16578 2008-12-16  Bruno Haible  <bruno@clisp.org>
16579
16580         * lib/unistd.in.h: Add comment.
16581         * tests/test-environ.c: Don't include <stdlib.h>.
16582
16583 2008-12-16  Bruno Haible  <bruno@clisp.org>
16584
16585         * lib/parse-duration.h (parse_duration): Document return value
16586         convention.
16587         * lib/parse-duration.c: Include specification header first. Add
16588         comments.
16589         (_): Remove macro.
16590         (parse_year_month_day, parse_hour_minute_second): Move side effects
16591         outside of strchr call.
16592         (parse_non_iso8601): Move side effects outside of isspace call.
16593         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16594         call.
16595
16596 2008-12-16  Bruno Haible  <bruno@clisp.org>
16597
16598         * tests/test-parse-duration.sh: Produce no output when the test
16599         succeeds.
16600
16601 2008-12-16  Bruno Haible  <bruno@clisp.org>
16602
16603         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16604         expressions.
16605
16606 2008-12-15  Bruno Haible  <bruno@clisp.org>
16607
16608         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16609         * doc/glibc-functions/flistxattr.texi: Likewise.
16610         * doc/glibc-functions/fopencookie.texi: Likewise.
16611         * doc/glibc-functions/fremovexattr.texi: Likewise.
16612         * doc/glibc-functions/fsetxattr.texi: Likewise.
16613         * doc/glibc-functions/getxattr.texi: Likewise.
16614         * doc/glibc-functions/lgetxattr.texi: Likewise.
16615         * doc/glibc-functions/listxattr.texi: Likewise.
16616         * doc/glibc-functions/llistxattr.texi: Likewise.
16617         * doc/glibc-functions/lremovexattr.texi: Likewise.
16618         * doc/glibc-functions/lsetxattr.texi: Likewise.
16619         * doc/glibc-functions/removexattr.texi: Likewise.
16620         * doc/glibc-functions/setxattr.texi: Likewise.
16621         * doc/posix-functions/open_memstream.texi: Likewise.
16622
16623 2008-12-15  Eric Blake  <ebb9@byu.net>
16624
16625         Update doc for cygwin 1.7.
16626         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16627         functions.
16628         * doc/posix-functions/fchmodat.texi: Likewise.
16629         * doc/posix-functions/fchownat.texi: Likewise.
16630         * doc/posix-functions/fdopendir.texi: Likewise.
16631         * doc/posix-functions/fmemopen.texi: Likewise.
16632         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16633         * doc/posix-functions/fstatat.texi: Likewise.
16634         * doc/posix-functions/futimens.texi: Likewise.
16635         * doc/posix-functions/gai_strerror.texi: Likewise.
16636         * doc/posix-functions/getaddrinfo.texi: Likewise.
16637         * doc/posix-functions/getnameinfo.texi: Likewise.
16638         * doc/posix-functions/if_freenameindex.texi: Likewise.
16639         * doc/posix-functions/if_indextoname.texi: Likewise.
16640         * doc/posix-functions/if_nameindex.texi: Likewise.
16641         * doc/posix-functions/if_nametoindex.texi: Likewise.
16642         * doc/posix-functions/insque.texi: Likewise.
16643         * doc/posix-functions/linkat.texi: Likewise.
16644         * doc/posix-functions/llrint.texi: Likewise.
16645         * doc/posix-functions/llrintf.texi: Likewise.
16646         * doc/posix-functions/llrintl.texi: Likewise.
16647         * doc/posix-functions/lockf.texi: Likewise.
16648         * doc/posix-functions/lrintl.texi: Likewise.
16649         * doc/posix-functions/mkdirat.texi: Likewise.
16650         * doc/posix-functions/mkfifoat.texi: Likewise.
16651         * doc/posix-functions/mknodat.texi: Likewise.
16652         * doc/posix-functions/mq_close.texi: Likewise.
16653         * doc/posix-functions/mq_getattr.texi: Likewise.
16654         * doc/posix-functions/mq_notify.texi: Likewise.
16655         * doc/posix-functions/mq_open.texi: Likewise.
16656         * doc/posix-functions/mq_receive.texi: Likewise.
16657         * doc/posix-functions/mq_send.texi: Likewise.
16658         * doc/posix-functions/mq_setattr.texi: Likewise.
16659         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16660         * doc/posix-functions/mq_timedsend.texi: Likewise.
16661         * doc/posix-functions/mq_unlink.texi: Likewise.
16662         * doc/posix-functions/open_memstream.texi: Likewise.
16663         * doc/posix-functions/openat.texi: Likewise.
16664         * doc/posix-functions/posix_fadvise.texi: Likewise.
16665         * doc/posix-functions/posix_fallocate.texi: Likewise.
16666         * doc/posix-functions/posix_madvise.texi: Likewise.
16667         * doc/posix-functions/posix_memalign.texi: Likewise.
16668         * doc/posix-functions/posix_openpt.texi: Likewise.
16669         * doc/posix-functions/readlinkat.texi: Likewise.
16670         * doc/posix-functions/remque.texi: Likewise.
16671         * doc/posix-functions/renameat.texi: Likewise.
16672         * doc/posix-functions/rintl.texi: Likewise.
16673         * doc/posix-functions/sem_unlink.texi: Likewise.
16674         * doc/posix-functions/shm_open.texi: Likewise.
16675         * doc/posix-functions/shm_unlink.texi: Likewise.
16676         * doc/posix-functions/signgam.texi: Likewise.
16677         * doc/posix-functions/sigset.texi: Likewise.
16678         * doc/posix-functions/stpcpy.texi: Likewise.
16679         * doc/posix-functions/stpncpy.texi: Likewise.
16680         * doc/posix-functions/strerror.texi: Likewise.
16681         * doc/posix-functions/strtod.texi: Likewise.
16682         * doc/posix-functions/symlinkat.texi: Likewise.
16683         * doc/posix-functions/unlinkat.texi: Likewise.
16684         * doc/posix-functions/utimensat.texi: Likewise.
16685         * doc/glibc-functions/bindresvport.texi: Likewise.
16686         * doc/glibc-functions/dn_expand.texi: Likewise.
16687         * doc/glibc-functions/exp10.texi: Likewise.
16688         * doc/glibc-functions/exp10f.texi: Likewise.
16689         * doc/glibc-functions/fgetxattr.texi: Likewise.
16690         * doc/glibc-functions/flistxattr.texi: Likewise.
16691         * doc/glibc-functions/fopencookie.texi: Likewise.
16692         * doc/glibc-functions/freeifaddrs.texi: Likewise.
16693         * doc/glibc-functions/fremovexattr.texi: Likewise.
16694         * doc/glibc-functions/fsetxattr.texi: Likewise.
16695         * doc/glibc-functions/getifaddrs.texi: Likewise.
16696         * doc/glibc-functions/getxattr.texi: Likewise.
16697         * doc/glibc-functions/lgetxattr.texi: Likewise.
16698         * doc/glibc-functions/listxattr.texi: Likewise.
16699         * doc/glibc-functions/llistxattr.texi: Likewise.
16700         * doc/glibc-functions/lremovexattr.texi: Likewise.
16701         * doc/glibc-functions/lsetxattr.texi: Likewise.
16702         * doc/glibc-functions/pow10.texi: Likewise.
16703         * doc/glibc-functions/pow10f.texi: Likewise.
16704         * doc/glibc-functions/rcmd_af.texi: Likewise.
16705         * doc/glibc-functions/removexattr.texi: Likewise.
16706         * doc/glibc-functions/res_init.texi: Likewise.
16707         * doc/glibc-functions/res_mkquery.texi: Likewise.
16708         * doc/glibc-functions/res_query.texi: Likewise.
16709         * doc/glibc-functions/res_querydomain.texi: Likewise.
16710         * doc/glibc-functions/res_send.texi: Likewise.
16711         * doc/glibc-functions/rresvport_af.texi: Likewise.
16712         * doc/glibc-functions/setxattr.texi: Likewise.
16713         * doc/glibc-functions/strcasestr.texi: Likewise.
16714
16715 2008-12-15  Bruno Haible  <bruno@clisp.org>
16716
16717         Fix compilation error on OSF/1 4.0.
16718         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16719         <sys/time.h>, simply delegate to the system header.
16720         Reported by Daniel Richard G. <oss@teragram.com>.
16721
16722 2008-12-15  Bruno Haible  <bruno@clisp.org>
16723
16724         * doc/posix-functions/openat.texi: Mention the 'openat' module.
16725         * doc/posix-functions/fchmodat.texi: Likewise.
16726         * doc/posix-functions/fchownat.texi: Likewise.
16727         * doc/posix-functions/fdopendir.texi: Likewise.
16728         * doc/posix-functions/fstatat.texi: Likewise.
16729         * doc/posix-functions/mkdirat.texi: Likewise.
16730         * doc/posix-functions/unlinkat.texi: Likewise.
16731
16732 2008-12-14  Bruno Haible  <bruno@clisp.org>
16733
16734         Update doc for POSIX:2008.
16735         * doc/posix-functions/faccessat.texi: New file.
16736         * doc/posix-functions/fchmodat.texi: New file.
16737         * doc/posix-functions/fchownat.texi: New file.
16738         * doc/posix-functions/fdopendir.texi: New file.
16739         * doc/posix-functions/fstatat.texi: New file.
16740         * doc/posix-functions/futimens.texi: New file.
16741         * doc/posix-functions/linkat.texi: New file.
16742         * doc/posix-functions/mkdirat.texi: New file.
16743         * doc/posix-functions/mkfifoat.texi: New file.
16744         * doc/posix-functions/mknodat.texi: New file.
16745         * doc/posix-functions/open_wmemstream.texi: New file.
16746         * doc/posix-functions/openat.texi: New file.
16747         * doc/posix-functions/psiginfo.texi: New file.
16748         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16749         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16750         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16751         * doc/posix-functions/readlinkat.texi: New file.
16752         * doc/posix-functions/renameat.texi: New file.
16753         * doc/posix-functions/strerror_l.texi: New file.
16754         * doc/posix-functions/symlinkat.texi: New file.
16755         * doc/posix-functions/unlinkat.texi: New file.
16756         * doc/posix-functions/utimensat.texi: New file.
16757         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16758
16759 2008-12-14  Bruno Haible  <bruno@clisp.org>
16760
16761         Update doc for POSIX:2008.
16762         * doc/posix-functions/alphasort.texi: Renamed from
16763         doc/glibc-functions/alphasort.texi.
16764         * doc/posix-functions/dirfd.texi: Renamed from
16765         doc/glibc-functions/dirfd.texi.
16766         * doc/posix-functions/dprintf.texi: Renamed from
16767         doc/glibc-functions/dprintf.texi.
16768         * doc/posix-functions/duplocale.texi: Renamed from
16769         doc/glibc-functions/duplocale.texi.
16770         * doc/posix-functions/fexecve.texi: Renamed from
16771         doc/glibc-functions/fexecve.texi.
16772         * doc/posix-functions/fmemopen.texi: Renamed from
16773         doc/glibc-functions/fmemopen.texi.
16774         * doc/posix-functions/freelocale.texi: Renamed from
16775         doc/glibc-functions/freelocale.texi.
16776         * doc/posix-functions/getdate_err.texi: Renamed from
16777         doc/glibc-functions/getdate_err.texi.
16778         * doc/posix-functions/isalnum_l.texi: Renamed from
16779         doc/glibc-functions/isalnum_l.texi.
16780         * doc/posix-functions/isalpha_l.texi: Renamed from
16781         doc/glibc-functions/isalpha_l.texi.
16782         * doc/posix-functions/isblank_l.texi: Renamed from
16783         doc/glibc-functions/isblank_l.texi.
16784         * doc/posix-functions/iscntrl_l.texi: Renamed from
16785         doc/glibc-functions/iscntrl_l.texi.
16786         * doc/posix-functions/isdigit_l.texi: Renamed from
16787         doc/glibc-functions/isdigit_l.texi.
16788         * doc/posix-functions/isgraph_l.texi: Renamed from
16789         doc/glibc-functions/isgraph_l.texi.
16790         * doc/posix-functions/islower_l.texi: Renamed from
16791         doc/glibc-functions/islower_l.texi.
16792         * doc/posix-functions/isprint_l.texi: Renamed from
16793         doc/glibc-functions/isprint_l.texi.
16794         * doc/posix-functions/ispunct_l.texi: Renamed from
16795         doc/glibc-functions/ispunct_l.texi.
16796         * doc/posix-functions/isspace_l.texi: Renamed from
16797         doc/glibc-functions/isspace_l.texi.
16798         * doc/posix-functions/isupper_l.texi: Renamed from
16799         doc/glibc-functions/isupper_l.texi.
16800         * doc/posix-functions/iswalnum_l.texi: Renamed from
16801         doc/glibc-functions/iswalnum_l.texi.
16802         * doc/posix-functions/iswalpha_l.texi: Renamed from
16803         doc/glibc-functions/iswalpha_l.texi.
16804         * doc/posix-functions/iswblank_l.texi: Renamed from
16805         doc/glibc-functions/iswblank_l.texi.
16806         * doc/posix-functions/iswcntrl_l.texi: Renamed from
16807         doc/glibc-functions/iswcntrl_l.texi.
16808         * doc/posix-functions/iswctype_l.texi: Renamed from
16809         doc/glibc-functions/iswctype_l.texi.
16810         * doc/posix-functions/iswdigit_l.texi: Renamed from
16811         doc/glibc-functions/iswdigit_l.texi.
16812         * doc/posix-functions/iswgraph_l.texi: Renamed from
16813         doc/glibc-functions/iswgraph_l.texi.
16814         * doc/posix-functions/iswlower_l.texi: Renamed from
16815         doc/glibc-functions/iswlower_l.texi.
16816         * doc/posix-functions/iswprint_l.texi: Renamed from
16817         doc/glibc-functions/iswprint_l.texi.
16818         * doc/posix-functions/iswpunct_l.texi: Renamed from
16819         doc/glibc-functions/iswpunct_l.texi.
16820         * doc/posix-functions/iswspace_l.texi: Renamed from
16821         doc/glibc-functions/iswspace_l.texi.
16822         * doc/posix-functions/iswupper_l.texi: Renamed from
16823         doc/glibc-functions/iswupper_l.texi.
16824         * doc/posix-functions/iswxdigit_l.texi: Renamed from
16825         doc/glibc-functions/iswxdigit_l.texi.
16826         * doc/posix-functions/isxdigit_l.texi: Renamed from
16827         doc/glibc-functions/isxdigit_l.texi.
16828         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
16829         doc/glibc-functions/mbsnrtowcs.texi.
16830         * doc/posix-functions/mkdtemp.texi: Renamed from
16831         doc/glibc-functions/mkdtemp.texi.
16832         * doc/posix-functions/newlocale.texi: Renamed from
16833         doc/glibc-functions/newlocale.texi.
16834         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
16835         doc/glibc-functions/nl_langinfo_l.texi.
16836         * doc/posix-functions/open_memstream.texi: Renamed from
16837         doc/glibc-functions/open_memstream.texi.
16838         * doc/posix-functions/opterr.texi: Renamed from
16839         doc/glibc-functions/opterr.texi.
16840         * doc/posix-functions/optind.texi: Renamed from
16841         doc/glibc-functions/optind.texi.
16842         * doc/posix-functions/optopt.texi: Renamed from
16843         doc/glibc-functions/optopt.texi.
16844         * doc/posix-functions/psignal.texi: Renamed from
16845         doc/glibc-functions/psignal.texi.
16846         * doc/posix-functions/scandir.texi: Renamed from
16847         doc/glibc-functions/scandir.texi.
16848         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
16849         doc/glibc-functions/sched_get_priority_min.texi.
16850         * doc/posix-functions/signgam.texi: Renamed from
16851         doc/glibc-functions/signgam.texi.
16852         * doc/posix-functions/stpcpy.texi: Renamed from
16853         doc/glibc-functions/stpcpy.texi.
16854         * doc/posix-functions/stpncpy.texi: Renamed from
16855         doc/glibc-functions/stpncpy.texi.
16856         * doc/posix-functions/strcasecmp_l.texi: Renamed from
16857         doc/glibc-functions/strcasecmp_l.texi.
16858         * doc/posix-functions/strcoll_l.texi: Renamed from
16859         doc/glibc-functions/strcoll_l.texi.
16860         * doc/posix-functions/strfmon_l.texi: Renamed from
16861         doc/glibc-functions/strfmon_l.texi.
16862         * doc/posix-functions/strftime_l.texi: Renamed from
16863         doc/glibc-functions/strftime_l.texi.
16864         * doc/posix-functions/strncasecmp_l.texi: Renamed from
16865         doc/glibc-functions/strncasecmp_l.texi.
16866         * doc/posix-functions/strndup.texi: Renamed from
16867         doc/glibc-functions/strndup.texi.
16868         * doc/posix-functions/strnlen.texi: Renamed from
16869         doc/glibc-functions/strnlen.texi.
16870         * doc/posix-functions/strsignal.texi: Renamed from
16871         doc/glibc-functions/strsignal.texi.
16872         * doc/posix-functions/strxfrm_l.texi: Renamed from
16873         doc/glibc-functions/strxfrm_l.texi.
16874         * doc/posix-functions/timer_gettime.texi: Renamed from
16875         doc/glibc-functions/timer_gettime.texi.
16876         * doc/posix-functions/tolower_l.texi: Renamed from
16877         doc/glibc-functions/tolower_l.texi.
16878         * doc/posix-functions/toupper_l.texi: Renamed from
16879         doc/glibc-functions/toupper_l.texi.
16880         * doc/posix-functions/towctrans_l.texi: Renamed from
16881         doc/glibc-functions/towctrans_l.texi.
16882         * doc/posix-functions/towlower_l.texi: Renamed from
16883         doc/glibc-functions/towlower_l.texi.
16884         * doc/posix-functions/towupper_l.texi: Renamed from
16885         doc/glibc-functions/towupper_l.texi.
16886         * doc/posix-functions/uselocale.texi: Renamed from
16887         doc/glibc-functions/uselocale.texi.
16888         * doc/posix-functions/vdprintf.texi: Renamed from
16889         doc/glibc-functions/vdprintf.texi.
16890         * doc/posix-functions/wcpcpy.texi:
16891         Renamed from doc/glibc-functions/wcpcpy.texi.
16892         * doc/posix-functions/wcpncpy.texi: Renamed from
16893         doc/glibc-functions/wcpncpy.texi.
16894         * doc/posix-functions/wcscasecmp.texi: Renamed from
16895         doc/glibc-functions/wcscasecmp.texi.
16896         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
16897         doc/glibc-functions/wcscasecmp_l.texi.
16898         * doc/posix-functions/wcscoll_l.texi: Renamed from
16899         doc/glibc-functions/wcscoll_l.texi.
16900         * doc/posix-functions/wcsdup.texi: Renamed from
16901         doc/glibc-functions/wcsdup.texi.
16902         * doc/posix-functions/wcsncasecmp.texi: Renamed from
16903         doc/glibc-functions/wcsncasecmp.texi.
16904         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
16905         doc/glibc-functions/wcsncasecmp_l.texi.
16906         * doc/posix-functions/wcsnlen.texi: Renamed from
16907         doc/glibc-functions/wcsnlen.texi.
16908         * doc/posix-functions/wcsnrtombs.texi: Renamed from
16909         doc/glibc-functions/wcsnrtombs.texi.
16910         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
16911         doc/glibc-functions/wcsxfrm_l.texi.
16912         * doc/posix-functions/wctrans_l.texi: Renamed from
16913         doc/glibc-functions/wctrans_l.texi.
16914         * doc/posix-functions/wctype_l.texi: Renamed from
16915         doc/glibc-functions/wctype_l.texi.
16916         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16917         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
16918         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
16919         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
16920         these subsections.
16921         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
16922         Remove sections.
16923
16924 2008-12-14  Bruno Haible  <bruno@clisp.org>
16925
16926         Update doc for POSIX:2008.
16927         * doc/posix-functions/*.texi: Update URL of POSIX specification.
16928
16929 2008-12-14  Bruno Haible  <bruno@clisp.org>
16930
16931         Update doc for POSIX:2008.
16932         * doc/pastposix-functions/bcmp.texi: Renamed from
16933         doc/posix-functions/bcmp.texi.
16934         * doc/pastposix-functions/bcopy.texi: Renamed from
16935         doc/posix-functions/bcopy.texi.
16936         * doc/pastposix-functions/bsd_signal.texi: Renamed from
16937         doc/posix-functions/bsd_signal.texi.
16938         * doc/pastposix-functions/bzero.texi: Renamed from
16939         doc/posix-functions/bzero.texi.
16940         * doc/pastposix-functions/ecvt.texi: Renamed from
16941         doc/posix-functions/ecvt.texi.
16942         * doc/pastposix-functions/fcvt.texi: Renamed from
16943         doc/posix-functions/fcvt.texi.
16944         * doc/pastposix-functions/ftime.texi: Renamed from
16945         doc/posix-functions/ftime.texi.
16946         * doc/pastposix-functions/gcvt.texi: Renamed from
16947         doc/posix-functions/gcvt.texi.
16948         * doc/pastposix-functions/getcontext.texi: Renamed from
16949         doc/posix-functions/getcontext.texi.
16950         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
16951         doc/posix-functions/gethostbyaddr.texi.
16952         * doc/pastposix-functions/gethostbyname.texi: Renamed from
16953         doc/posix-functions/gethostbyname.texi.
16954         * doc/pastposix-functions/getwd.texi: Renamed from
16955         doc/posix-functions/getwd.texi.
16956         * doc/pastposix-functions/h_errno.texi: Renamed from
16957         doc/posix-functions/h_errno.texi.
16958         * doc/pastposix-functions/index.texi: Renamed from
16959         doc/posix-functions/index.texi.
16960         * doc/pastposix-functions/makecontext.texi: Renamed from
16961         doc/posix-functions/makecontext.texi.
16962         * doc/pastposix-functions/mktemp.texi: Renamed from
16963         doc/posix-functions/mktemp.texi.
16964         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
16965         doc/posix-functions/pthread_attr_getstackaddr.texi.
16966         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
16967         doc/posix-functions/pthread_attr_setstackaddr.texi.
16968         * doc/pastposix-functions/rindex.texi: Renamed from
16969         doc/posix-functions/rindex.texi.
16970         * doc/pastposix-functions/scalb.texi: Renamed from
16971         doc/posix-functions/scalb.texi.
16972         * doc/pastposix-functions/setcontext.texi: Renamed from
16973         doc/posix-functions/setcontext.texi.
16974         * doc/pastposix-functions/swapcontext.texi: Renamed from
16975         doc/posix-functions/swapcontext.texi.
16976         * doc/pastposix-functions/ualarm.texi: Renamed from
16977         doc/posix-functions/ualarm.texi.
16978         * doc/pastposix-functions/usleep.texi: Renamed from
16979         doc/posix-functions/usleep.texi.
16980         * doc/pastposix-functions/vfork.texi: Renamed from
16981         doc/posix-functions/vfork.texi.
16982         * doc/pastposix-functions/wcswcs.texi: Renamed from
16983         doc/posix-functions/wcswcs.texi.
16984         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
16985         (Function Substitutes): Update.
16986
16987 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16988
16989         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
16990         m4/strerror.m4.
16991
16992 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16993             Bruno Haible  <bruno@clisp.org>
16994
16995         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
16996
16997 2008-12-13  Bruno Haible  <bruno@clisp.org>
16998
16999         * modules/strtoull (Depends-on): Remove unistd.
17000
17001 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17002
17003         * modules/strtoull (Depends-on): Add stdlib.
17004
17005 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17006
17007         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17008
17009 2008-12-10  Jim Meyering  <meyering@redhat.com>
17010
17011         gl_ASSERT: don't say assertions are disabled when they're not
17012         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17013         "checking whether to enable assertions... no", when they are in
17014         fact enabled.  This is solely a bug in the output of configure.
17015         In spite of saying "no", NDEBUG was not defined in that case.
17016         Also, as noted by Eric Blake, leave assertions enabled upon
17017         --enable-assert=INVALID.
17018
17019 2008-12-10  Bruno Haible  <bruno@clisp.org>
17020
17021         Change MODULES.html to refer to POSIX:2008 where possible.
17022         * MODULES.html.sh (POSIX2008_URL): New variable.
17023         (posix_headers): Remove sys/timeb, ucontext.
17024         (posix2001_headers): New variable.
17025         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17026         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17027         index, makecontext, mktemp, pthread_attr_getstackaddr,
17028         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17029         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17030         (posix2001_functions): New variable.
17031         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17032         otherwise.
17033
17034 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17035
17036         add missing include to parse-duration.c
17037         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17038         * modules/parse-duration (Depends-on): Add xalloc.
17039
17040         fix sed script reading maint.mk
17041         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17042         (syntax-check-rules): Use it.
17043
17044 2008-12-09  Bruno Haible  <bruno@clisp.org>
17045
17046         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17047         MacOS X 10.4/PowerPC.
17048         Reported by Simon Josefsson.
17049
17050 2008-12-08  Jim Meyering  <meyering@redhat.com>
17051
17052         work around mingw's lack of some S_IF definitions
17053         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17054         Reported by Simon Josefsson.
17055
17056 2008-12-08  Bruno Haible  <bruno@clisp.org>
17057
17058         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17059         applied to variables. Needed on MacOS X 10.4/PowerPC.
17060         Reported by Simon Josefsson.
17061
17062 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17063         and Eric Blake  <ebb9@byu.net>
17064
17065         assert: honor --enable-assert
17066         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17067         order to honor --enable-assert, rather than treating it as a
17068         synonym for --disable-assert.
17069
17070 2008-12-08  Jim Meyering  <meyering@redhat.com>
17071
17072         * lib/posixtm.c: Remove now-useless declaration of mktime.
17073
17074         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17075
17076 2008-12-07  Bruno Haible  <bruno@clisp.org>
17077
17078         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17079         test_once): Mark functions as static.
17080         * tests/test-tls.c (test_tls): Likewise.
17081
17082 2008-12-07  Bruno Haible  <bruno@clisp.org>
17083
17084         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17085         iconv_register_autodetect.
17086
17087 2008-12-07  Jim Meyering  <meyering@redhat.com>
17088
17089         posixtm.c: avoid a warning
17090         * lib/posixtm.c (posixtime): Don't initialize tm0.
17091         It's no longer needed to placate gcc4's -Wuninitialized,
17092         and the attempt to placate would elicit a new warning.
17093
17094         unicodeio.c: mark unused parameters
17095         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17096         (fallback_failure_callback): Likewise.
17097
17098 2008-12-07  Bruno Haible  <bruno@clisp.org>
17099
17100         * gnulib-tool (func_create_testdir): When building the tests
17101         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17102         Reported by Simon Josefsson.
17103
17104 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17105
17106         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17107
17108 2008-12-06  Bruno Haible  <bruno@clisp.org>
17109
17110         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17111         Suggested by Eric Blake.
17112
17113 2008-12-06  Bruno Haible  <bruno@clisp.org>
17114
17115         Fix a c-stack test failure on MacOS X.
17116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17117         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17118         handler for SIGBUS as well.
17119         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17120         install a signal handler for SIGBUS as well.
17121         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17122
17123 2008-12-06  Bruno Haible  <bruno@clisp.org>
17124
17125         Advocacy documentation.
17126         * doc/gnulib-intro.texi (Benefits): New section.
17127         * doc/gnulib.texi: Update.
17128
17129 2008-12-06  Bruno Haible  <bruno@clisp.org>
17130
17131         Document the 'manywarnings' module.
17132         * doc/manywarnings.texi: New file.
17133         * doc/gnulib.texi: Include it.
17134
17135 2008-12-05  Eric Blake  <ebb9@byu.net>
17136
17137         tests: silence some gcc warnings
17138         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17139         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17140         type mismatches.
17141
17142 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17143             Bruno Haible  <bruno@clisp.org>
17144
17145         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17146
17147 2008-11-29  Jim Meyering  <meyering@redhat.com>
17148
17149         unicodeio.c: mark unused parameters
17150         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17151         (fallback_failure_callback): Likewise.
17152
17153         fts: fix a thinko
17154         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17155         (set_stat_type): Return S_IF*-valued "type" directly.
17156         Prompted by James Youngman's spotting a related bug.
17157         Confirmed by further testing through find.
17158
17159         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17160         * lib/fts.c (D_TYPE): Define.
17161         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17162         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17163         (s_ifmt_shift_bits): New function.
17164         (set_stat_type): New function.
17165         (fts_build): When not calling fts_stat, call set_stat_type
17166         to propagate dirent.d_type info to fts_read caller.
17167         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17168         fts_statp->st_mode type information may be valid.
17169
17170 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17171
17172         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17173         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17174         <sds@gnu.org>.
17175
17176 2008-11-20  Bruno Haible  <bruno@clisp.org>
17177
17178         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17179         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17180         INCLUDE_NEXT.
17181         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17182         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17183         * modules/math (Makefile.am): Substitute
17184         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17185         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17186
17187 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17188             Bruno Haible  <bruno@clisp.org>
17189
17190         * lib/stdint.in.h: Define all type macros so that their expansion is
17191         a single typedef'ed token. Fixes a compilation failure in Boost which
17192         does "using ::int8_t;".
17193
17194 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17195
17196         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17197         gl_MANYWARN_ALL_GCC.
17198         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17199         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17200         * modules/manywarnings: New file.
17201         * MODULES.html.sh: Mention manywarnings module.
17202
17203 2008-11-18  Bruno Haible  <bruno@clisp.org>
17204
17205         * doc/gnulib-tool.texi (Unit tests): New section.
17206
17207 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17208
17209         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17210         paths like 'lib/po/foo.po'.
17211
17212 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17213
17214         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17215         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17216
17217 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17218
17219         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17220         parameter works.
17221
17222 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17223
17224         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17225
17226 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17227
17228         * modules/parse-duration-tests: New file.
17229         * tests/test-parse-duration.sh: New file.
17230         * tests/test-parse-duration.c: New file.
17231
17232         New module 'parse-duration'.
17233         * lib/parse-duration.h: New file.
17234         * lib/parse-duration.c: New file.
17235         * modules/parse-duration: New file.
17236
17237 2008-11-17  Bruno Haible  <bruno@clisp.org>
17238
17239         * tests/test-select-out.sh: Comment out the first pipe test.
17240         Reported by Simon Josefsson.
17241
17242 2008-11-17  Bruno Haible  <bruno@clisp.org>
17243
17244         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17246         gl_HOSTENT.
17247
17248 2008-11-17  Bruno Haible  <bruno@clisp.org>
17249
17250         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17251         -lnetwork and -lnet. Needed for Haiku and BeOS.
17252
17253 2008-11-16  Bruno Haible  <bruno@clisp.org>
17254
17255         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17256
17257 2008-11-16  Bruno Haible  <bruno@clisp.org>
17258
17259         Avoid test failure on Haiku.
17260         * tests/test-fsync.c: Include <errno.h>.
17261         (main): Don't require that fsync (0) fails.
17262
17263 2008-11-15  Bruno Haible  <bruno@clisp.org>
17264
17265         New module 'hostent'.
17266         * modules/hostent: New file.
17267         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17268
17269 2008-11-15  Bruno Haible  <bruno@clisp.org>
17270
17271         New module 'servent'.
17272         * modules/servent: New file.
17273         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17274
17275 2008-11-15  Bruno Haible  <bruno@clisp.org>
17276
17277         Avoid generating same test program with two different rules.
17278         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17279         test-frexp to test-frexp-nolibm.
17280         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17281         test-frexpl to test-frexpl-nolibm.
17282
17283 2008-11-15  Bruno Haible  <bruno@clisp.org>
17284
17285         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17286         $(FREXPL_LIBM).
17287
17288 2008-11-15  Bruno Haible  <bruno@clisp.org>
17289
17290         * lib/netdb.in.h: Activate the definitions also when the system's
17291         <netdb.h> has 'struct addrinfo'.
17292         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17293         EAI_OVERFLOW or AI_NUMERICSERV.
17294         * doc/posix-headers/netdb.texi: Document the problem.
17295
17296 2008-11-15  Bruno Haible  <bruno@clisp.org>
17297
17298         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17299
17300         Make the 'sched' module work on platforms where <sched.h> exists but
17301         is incomplete (such as Haiku).
17302         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17303         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17304         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17305         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17306         HAVE_STRUCT_SCHED_PARAM.
17307         * modules/sched (Depends-on): Add include_next.
17308         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17309         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17310         * doc/posix-headers/sched.texi: Document the issue.
17311
17312 2008-11-13  Jim Meyering  <meyering@redhat.com>
17313
17314         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17315         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17316         test would fail due to the difference in the Report bugs to ...
17317         line.  The expected address is empty, "<>", while the actual
17318         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17319
17320 2008-11-12  Bruno Haible  <bruno@clisp.org>
17321
17322         lstat: don't compile lstat.c on systems lacking lstat
17323         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17324         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17325         Reported by Daniel P. Berrange via Jim Meyering.
17326
17327 2008-11-12  Jim Meyering  <meyering@redhat.com>
17328
17329         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17330
17331 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17332
17333         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17334         instead.
17335
17336 2008-11-12  Bruno Haible  <bruno@clisp.org>
17337
17338         * lib/unicodeio.c: Include unistr.h.
17339         (utf8_wctomb): Remove function.
17340         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17341
17342 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17343
17344         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17345         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17346         <bruno@clisp.org>.
17347         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17348
17349 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17350
17351         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17352         * doc/gnulib.texi: Add section for warnings.
17353
17354 2008-11-11  Bruno Haible  <bruno@clisp.org>
17355
17356         * lib/sockets.h: Add a comment.
17357
17358 2008-11-11  Karl Berry  <karl@gnu.org>
17359
17360         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17361
17362 2008-11-11  Eric Blake  <ebb9@byu.net>
17363
17364         fdl.texi: avoid git symlinks
17365         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17366
17367 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17368
17369         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17370
17371 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17372
17373         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17374         (gl_WARN_ADD): Substitute $2 if literal.
17375
17376 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17377
17378         * m4/warning.m4: Remove.
17379
17380 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17381
17382         * m4/warnings.m4: Almost complete rewrite. :-)
17383
17384 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17385
17386         * modules/warnings: New module.
17387         * m4/warnings.m4: New file.
17388         * MODULES.html.sh: Mention warnings module.
17389         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17390         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17391
17392 2008-11-10  Eric Blake  <ebb9@byu.net>
17393
17394         fdl.texi: make a symlink to the latest version
17395         * doc/standards.texi: Revert today's earlier change.
17396         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17397         * doc/fdl.texi: ...and replace this with a symlink to the newer
17398         fdl-1.3.texi.
17399
17400 2008-11-10  Bruno Haible  <bruno@clisp.org>
17401
17402         * tests/test-select-fd.c (main): Accept the result file name as fourth
17403         argument.
17404         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17405         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17406
17407 2008-11-10  Bruno Haible  <bruno@clisp.org>
17408
17409         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17410         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17411         as autoconf-substituted macros.
17412         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17414         gl_NETDB_H_DEFAULTS. Set these variables.
17415         * modules/netdb (Makefile.am): Substitute these variables.
17416
17417 2008-11-10  Eric Blake  <ebb9@byu.net>
17418
17419         standards.texi: include correct file for FDL 1.3
17420         * doc/standards.texi (GNU Free Documentation License): Change
17421         include file to pull in FDL 1.3, not 1.2.
17422
17423         fdl.texi: revert accidental change to license
17424         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17425
17426 2008-11-10  Bruno Haible  <bruno@clisp.org>
17427
17428         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17429         cross-compiling guesses also when the native compile gives no result.
17430
17431 2008-11-10  Bruno Haible  <bruno@clisp.org>
17432
17433         * lib/spawni.c (__spawni): Force variable into the stack.
17434
17435 2008-11-10  Bruno Haible  <bruno@clisp.org>
17436
17437         Add support for Haiku.
17438         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17439         glibc and BeOS, but also on Haiku.
17440         * lib/fpurge.c (fpurge): Likewise.
17441         * lib/freadable.c (freadable): Likewise.
17442         * lib/freadahead.c (freadahead): Likewise.
17443         * lib/freading.c (freading): Likewise.
17444         * lib/freadptr.c (freadptr): Likewise.
17445         * lib/freadseek.c (freadptrinc): Likewise.
17446         * lib/fseeko.c (rpl_fseeko): Likewise.
17447         * lib/fseterr.c (fseterr): Likewise.
17448         * lib/fwritable.c (fwritable): Likewise.
17449         * lib/fwriting.c (fwriting): Likewise.
17450         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17451
17452 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17453
17454         * lib/config.charset: Treat Haiku like BeOS.
17455
17456 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17457
17458         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17459         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17460
17461 2008-11-08  Bruno Haible  <bruno@clisp.org>
17462
17463         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17464         AC_CACHE_CHECK.
17465
17466 2008-11-08  Bruno Haible  <bruno@clisp.org>
17467
17468         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17469
17470 2008-11-08  Bruno Haible  <bruno@clisp.org>
17471
17472         * tests/test-select-fd.c: New file.
17473         * tests/test-select-in.sh: New file.
17474         * tests/test-select-out.sh: New file.
17475         * tests/test-select-stdin.c: New file.
17476         * modules/select-tests (Files): Add the new files.
17477         (Depends-on): Add gettimeofday.
17478         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17479         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17480         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17481
17482 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17483             Bruno Haible  <bruno@clisp.org>
17484
17485         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17486
17487 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17488
17489         * build-aux/pmccabe2html: Added support for C++ source files.
17490
17491 2008-11-05  Ben Pfaff  <blp@gnu.org>
17492
17493         Fix lib/close.c build on Windows.
17494         * modules/close (Files): Add lib/w32sock.h.
17495
17496 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17497
17498         Accept Bison's NEWS format.
17499         * build-aux/announce-gen (print_news_deltas): Tweak
17500         $re_prefix.
17501
17502 2008-11-04  Bruno Haible  <bruno@clisp.org>
17503
17504         * modules/random_r (Maintainer): Add glibc.
17505
17506 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17507
17508         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17509         by karl@freefriends.org (Karl Berry).
17510         * doc/alloca.texi: Likewise.
17511         * doc/c-ctype.texi: Likewise.
17512         * doc/c-strcase.texi: Likewise.
17513         * doc/c-strcaseeq.texi: Likewise.
17514         * doc/c-strcasestr.texi: Likewise.
17515         * doc/c-strstr.texi: Likewise.
17516         * doc/c-strtod.texi: Likewise.
17517         * doc/c-strtold.texi: Likewise.
17518         * doc/ctime.texi: Likewise.
17519         * doc/error.texi: Likewise.
17520         * doc/fdl.texi: Likewise.
17521         * doc/gcd.texi: Likewise.
17522         * doc/getdate.texi: Likewise.
17523         * doc/gnulib-intro.texi: Likewise.
17524         * doc/gnulib-tool.texi: Likewise.
17525         * doc/gnulib.texi: Likewise.
17526         * doc/inet_ntoa.texi: Likewise.
17527         * doc/maintain.texi: Likewise.
17528         * doc/make-stds.texi: Likewise.
17529         * doc/quote.texi: Likewise.
17530         * doc/regexprops-generic.texi: Likewise.
17531         * doc/standards.texi: Likewise.
17532         * doc/verify.texi: Likewise.
17533         * doc/visibility.texi: Likewise.
17534         * doc/gnulib.texi (GNU Free Documentation License): Include
17535         fdl-1.3.texi instead of fdl.texi.
17536
17537 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17538
17539         * doc/fdl-1.3.texi: New file, from
17540         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17541         * modules/fdl-1.3: Add.
17542         * MODULES.html.sh: Add fdl-1.3.
17543
17544 2008-11-03  Bruno Haible  <bruno@clisp.org>
17545
17546         Make determination of absolute name of header file work with AIX xlc.
17547         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17548         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17549         preprocessing.
17550         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17551         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17552
17553 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17554
17555         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17556         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17557         <ludo@gnu.org>.
17558
17559 2008-11-02  Bruno Haible  <bruno@clisp.org>
17560
17561         Mark 'strpbrk' obsolete.
17562         * modules/strpbrk (Status, Notice): New sections.
17563         * modules/strtok_r (Depends-on): Add strpbrk.
17564
17565 2008-11-02  Bruno Haible  <bruno@clisp.org>
17566
17567         Mark 'strdup' obsolete.
17568         * modules/strdup (Status, Notice): New sections.
17569         * modules/findprog (Depends-on): Add strdup.
17570         * modules/getaddrinfo (Depends-on): Likewise.
17571         * modules/localename (Depends-on): Likewise.
17572         * modules/relocatable-lib (Depends-on): Likewise.
17573         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17574         * modules/relocatable-prog (Depends-on): Likewise.
17575         * modules/trim (Depends-on): Likewise.
17576         * modules/unictype/gen-ctype (Depends-on): Likewise.
17577         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17578
17579 2008-11-02  Bruno Haible  <bruno@clisp.org>
17580
17581         Mark 'strcspn' obsolete.
17582         * modules/strcspn (Status, Notice): New sections.
17583
17584 2008-11-02  Bruno Haible  <bruno@clisp.org>
17585
17586         Mark 'rmdir' obsolete.
17587         * modules/rmdir (Status, Notice): New sections.
17588         * modules/clean-temp (Depends-on): Add rmdir.
17589         * modules/openat (Depends-on): Likewise.
17590
17591 2008-11-02  Bruno Haible  <bruno@clisp.org>
17592
17593         Mark 'raise' obsolete.
17594         * modules/raise (Status, Notice): New sections.
17595         (Include): Specify <signal.h>.
17596         * modules/stdio (Depends-on): Add raise.
17597         * modules/write (Depends-on): Likewise.
17598
17599 2008-11-02  Bruno Haible  <bruno@clisp.org>
17600
17601         Mark 'memset' obsolete.
17602         * modules/memset (Status, Notice): New sections.
17603
17604 2008-11-02  Bruno Haible  <bruno@clisp.org>
17605
17606         Mark 'memmove' obsolete.
17607         * modules/memmove (Status, Notice): New sections.
17608         * modules/argp (Depends-on): Add memmove.
17609         * modules/argz (Depends-on): Likewise.
17610         * modules/canonicalize (Depends-on): Likewise.
17611         * modules/canonicalize-lgpl (Depends-on): Likewise.
17612         * modules/fts (Depends-on): Likewise.
17613         * modules/getcwd (Depends-on): Likewise.
17614         * modules/human (Depends-on): Likewise.
17615         * modules/regex (Depends-on): Likewise.
17616         * modules/striconveh (Depends-on): Likewise.
17617         * modules/trim (Depends-on): Likewise.
17618         * modules/unistr/u8-move (Depends-on): Likewise.
17619         * modules/unistr/u16-move (Depends-on): Likewise.
17620         * modules/unistr/u32-move (Depends-on): Likewise.
17621
17622 2008-11-02  Bruno Haible  <bruno@clisp.org>
17623
17624         Mark 'memcpy' obsolete.
17625         * modules/memcpy (Status, Notice): New sections.
17626
17627 2008-11-02  Bruno Haible  <bruno@clisp.org>
17628
17629         Mark 'memcmp' obsolete.
17630         * modules/memcmp (Status, Notice): New sections.
17631         * modules/argmatch (Depends-on): Add memchr.
17632         * modules/backupfile (Depends-on): Likewise.
17633         * modules/c-strcasestr (Depends-on): Likewise.
17634         * modules/crypto/des (Depends-on): Likewise.
17635         * modules/csharpcomp (Depends-on): Likewise.
17636         * modules/fnmatch (Depends-on): Likewise.
17637         * modules/git-merge-changelog (Depends-on): Likewise.
17638         * modules/isnand (Depends-on): Likewise.
17639         * modules/isnand-nolibm (Depends-on): Likewise.
17640         * modules/isnanf (Depends-on): Likewise.
17641         * modules/isnanf-nolibm (Depends-on): Likewise.
17642         * modules/isnanl (Depends-on): Likewise.
17643         * modules/isnanl-nolibm (Depends-on): Likewise.
17644         * modules/mbchar (Depends-on): Likewise.
17645         * modules/memcoll (Depends-on): Likewise.
17646         * modules/quotearg (Depends-on): Likewise.
17647         * modules/regex (Depends-on): Likewise.
17648         * modules/relocatable-prog (Depends-on): Likewise.
17649         * modules/same (Depends-on): Likewise.
17650         * modules/signbit (Depends-on): Likewise.
17651         * modules/strcasestr-simple (Depends-on): Likewise.
17652         * modules/unictype/gen-ctype (Depends-on): Likewise.
17653         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17654         * modules/uniname/uniname (Depends-on): Likewise.
17655         * modules/unistr/u8-cmp (Depends-on): Likewise.
17656
17657 2008-11-02  Bruno Haible  <bruno@clisp.org>
17658
17659         Mark 'memchr' obsolete.
17660         * modules/memchr (Status, Notice): New sections.
17661         * modules/argp (Depends-on): Add memchr.
17662         * modules/base64 (Depends-on): Likewise.
17663         * modules/c-strcasestr (Depends-on): Likewise.
17664         * modules/chdir-long (Depends-on): Likewise.
17665         * modules/fnmatch (Depends-on): Likewise.
17666         * modules/getsubopt (Depends-on): Likewise.
17667         * modules/git-merge-changelog (Depends-on): Likewise.
17668         * modules/glob (Depends-on): Likewise.
17669         * modules/strcasestr-simple (Depends-on): Likewise.
17670         * modules/strnlen (Depends-on): Likewise.
17671
17672 2008-11-02  Bruno Haible  <bruno@clisp.org>
17673
17674         Mark 'atexit' obsolete.
17675         * modules/atexit (Status, Notice): New sections.
17676         * modules/chdir-long (Depends-on): Add atexit.
17677         * modules/wait-process (Depends-on): Likewise.
17678
17679 2008-11-02  Bruno Haible  <bruno@clisp.org>
17680
17681         * gnulib-tool: New option --with-obsolete.
17682         (func_usage): Document it.
17683         (func_modules_transitive_closure): Drop obsolete dependencies if
17684         incobsolete is not true.
17685         (func_import): Read and save the incobsolete variable to the cache.
17686
17687 2008-11-02  Bruno Haible  <bruno@clisp.org>
17688
17689         * modules/TEMPLATE-EXTENDED: New field 'Status'.
17690         * gnulib-tool: New option --extract-status.
17691         (func_usage): Document it.
17692         (sed_extract_prog): Recognize it.
17693         (func_get_status): New function.
17694
17695 2008-10-30  Simon Josefsson  <simon@josefsson.org>
17696
17697         * modules/sockets (License): Change from LGPL to LGPLv2+.
17698
17699 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17700
17701         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17702
17703 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17704
17705         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17706         Mention times and sys_times.
17707         * modules/sys_times, modules/sys_times-tests: New modules.
17708         * modules/times, modules/times-tests: Likewise
17709         * m4/sys_times_h.m4: New file.
17710         * lib/sys_times.in.h: Likewise
17711         * lib/times.c: Likewise.
17712         * tests/test-sys_times.c: Likewise.
17713         * tests/test-times.c: Likewise.
17714         * doc/posix-headers/sys_times.texi: Update.
17715         * doc/posix-functions/times.texi: Update.
17716
17717 2008-10-28  Jim Meyering  <meyering@redhat.com>
17718
17719         * modules/tempname (Depends-on): Add lstat.
17720
17721         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17722
17723 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17724
17725         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17726         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17727         using idiom used elsewhere in gnulib.
17728
17729 2008-10-27  Jim Meyering  <meyering@redhat.com>
17730
17731         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17732
17733 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17734
17735         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17736         TESTS_ENVIRONMENT, for shell scripts that needs to call built
17737         programs.
17738         * tests/test-argp-2.sh: Use $EXEEXT when needed.
17739
17740 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17741
17742         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17743
17744 2008-10-27  Bruno Haible  <bruno@clisp.org>
17745
17746         * tests/test-lstat.c: Include <stdio.h>.
17747
17748 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17749
17750         * modules/lstat-tests: New module.
17751         * tests/test-lstat.c: New file.
17752
17753 2008-10-26  Jim Meyering  <meyering@redhat.com>
17754
17755         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17756
17757 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17758             Bruno Haible  <bruno@clisp.org>
17759
17760         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
17761         * modules/configmake (Include): Add a note that the include must come
17762         after all system headers.
17763         * lib/javaversion.c: Include configmake.h after all other includes.
17764
17765 2008-10-26  Bruno Haible  <bruno@clisp.org>
17766
17767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
17768         HAVE_STRUCT_RANDOM_DATA to 1.
17769         (gl_STDLIB_H): Simplify.
17770
17771 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17772
17773         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
17774         substitute HAVE_STRUCT_RANDOM_DATA.
17775         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
17776         random_data.
17777         * modules/stdlib (Makefile.am): Substitute
17778         HAVE_STRUCT_RANDOM_DATA.
17779
17780 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17781
17782         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
17783         * doc/gnulib-intro.texi (Copyright): Likewise.
17784
17785 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17786
17787         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
17788         findings.
17789
17790 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
17791             Bruno Haible  <bruno@clisp.org>
17792
17793         * lib/unistd.in.h: Include <winsock2.h>.
17794         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
17795         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
17796         Provide dummy declarations.
17797         (gethostname): Override.
17798         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
17799         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
17800         gl_PREREQ_SYS_H_WINSOCK2.
17801         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
17802         * doc/posix-functions/gethostname.texi: More details.
17803
17804 2008-10-25  Bruno Haible  <bruno@clisp.org>
17805
17806         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17807         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
17808         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
17809
17810         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
17811         here ...
17812         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
17813         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
17814         gl_UNISTD_H_DEFAULTS.
17815
17816 2008-10-25  Eric Blake  <ebb9@byu.net>
17817
17818         signbit: avoid spurious compiler failure
17819         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
17820         declarations inside function.
17821
17822 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17823             Bruno Haible  <bruno@clisp.org>
17824
17825         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
17826         * modules/random_r (Depends-on): Add stdint.
17827
17828 2008-10-24  Bruno Haible  <bruno@clisp.org>
17829
17830         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
17831         Eggert.
17832         * modules/strerror (License): Likewise.
17833
17834 2008-10-24  Jim Meyering  <meyering@redhat.com>
17835
17836         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
17837         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
17838
17839 2008-10-24  Eric Blake  <ebb9@byu.net>
17840
17841         getgroups: fix compilation when getgroups is available
17842         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
17843         but with <config.h> override of getgroups disabled.
17844
17845 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17846
17847         * doc/gnulib.texi (Header files): Add note about C++ problems.
17848         Explained by Bruno Haible <bruno@clisp.org>.
17849
17850 2008-10-23  Bruno Haible  <bruno@clisp.org>
17851
17852         Define a dummy SA_NODEFER macro on Interix.
17853         * lib/signal.in.h (SA_NODEFER): Define fallback.
17854         Reported by Aleksey Cheusov <cheusov@tut.by> via
17855         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
17856
17857 2008-10-23  Bruno Haible  <bruno@clisp.org>
17858
17859         * modules/freadahead (License): Change to LGPLv2+.
17860         Suggested by Simon Josefsson.
17861
17862 2008-10-23  Jim Meyering  <meyering@redhat.com>
17863
17864         random_r: new module
17865         * modules/random_r: New file.
17866         * m4/random_r.m4: New file.
17867         * lib/random_r.c: New file, from glibc.
17868         * modules/random_r-tests: New file.
17869         * tests/test-random_r.c: New file.
17870         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
17871          Declare.
17872         (RAND_MAX): Define.
17873         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
17874         * modules/stdlib: Substitute them, too.
17875         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
17876         * doc/glibc-functions/initstate_r.texi: Mention the new module.
17877         * doc/glibc-functions/random_r.texi: Likewise.
17878         * doc/glibc-functions/setstate_r.texi: Likewise.
17879         * doc/glibc-functions/srandom_r.texi: Likewise.
17880         * config/srclist.txt: Mention it.
17881
17882 2008-10-23  David Lutterkort  <lutter@redhat.com>
17883
17884         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
17885         link requirement
17886
17887 2008-10-23  Jim Meyering  <meyering@redhat.com>
17888
17889         selinux-h: mark parameters of stub functions as intentionally unused
17890         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
17891         * lib/se-context.in.h: Likewise.
17892
17893 2008-10-22  Simon Josefsson  <simon@josefsson.org>
17894
17895         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
17896
17897 2008-10-22  Simon Josefsson  <simon@josefsson.org>
17898
17899         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
17900
17901 2008-10-22  Eric Blake  <ebb9@byu.net>
17902
17903         glthread/thread: avoid compiler warning
17904         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
17905         Add unreachable abort to silence compiler.
17906
17907 2008-10-22  Eric Blake  <ebb9@byu.net>
17908
17909         netdb: also supply struct addrinfo for cygwin 1.5.x
17910         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
17911         older cygwin.
17912         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
17913         cygwin.
17914         * doc/posix-headers/netdb.texi (netdb.h): Document this.
17915
17916 2008-10-22  Bruno Haible  <bruno@clisp.org>
17917
17918         * users.txt: Update entry about pspp.
17919
17920 2008-10-21  Bruno Haible  <bruno@clisp.org>
17921
17922         Simplification.
17923         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
17924         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
17925
17926         Simplification.
17927         * lib/ioctl.c (ioctl): Don't undefine.
17928         * lib/socket.c (socket): Don't undefine.
17929
17930         Remove unused module indicator macros.
17931         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
17932         GNULIB_$1 as a C macro.
17933
17934         * doc/posix-functions/close.texi: Undo last change.
17935         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
17936         Windows platforms.
17937
17938 2008-10-21  Bruno Haible  <bruno@clisp.org>
17939
17940         Add gethostname() declaration to <unistd.h>.
17941         * lib/unistd.in.h (gethostname): New declaration.
17942         * lib/gethostname.c: Include <unistd.h>.
17943         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
17944         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
17945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
17946         and HAVE_GETHOSTNAME.
17947         * modules/gethostname (Depends-on): Add unistd.
17948         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17949         (Include): Specify <unistd.h>.
17950         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
17951         HAVE_GETHOSTNAME.
17952         * tests/test-gethostname.c: Include <unistd.h> first.
17953
17954 2008-10-21  Bruno Haible  <bruno@clisp.org>
17955
17956         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
17957         * modules/select-tests (Depends-on): Likewise.
17958         Reported by Simon Josefsson.
17959
17960 2008-10-21  Simon Josefsson  <simon@josefsson.org>
17961
17962         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
17963         * lib/accept.c: New file, based on winsock.c.
17964         * lib/bind.c: New file, based on winsock.c.
17965         * lib/connect.c: New file, based on winsock.c.
17966         * lib/getpeername.c: New file, based on winsock.c.
17967         * lib/getsockname.c: New file, based on winsock.c.
17968         * lib/getsockopt.c: New file, based on winsock.c.
17969         * lib/ioctl.c: New file, based on winsock.c.
17970         * lib/listen.c: New file, based on winsock.c.
17971         * lib/recv.c: New file, based on winsock.c.
17972         * lib/recvfrom.c: New file, based on winsock.c.
17973         * lib/send.c: New file, based on winsock.c.
17974         * lib/sendto.c: New file, based on winsock.c.
17975         * lib/setsockopt.c: New file, based on winsock.c.
17976         * lib/shutdown.c: New file, based on winsock.c.
17977         * lib/socket.c: New file, based on winsock.c.
17978         * lib/w32sock.h: New file, based on winsock.c.
17979         * lib/winsock.c: Remove file.
17980         * modules/accept: Likewise.
17981         * modules/bind: Likewise.
17982         * modules/connect: Likewise.
17983         * modules/getpeername: Likewise.
17984         * modules/getsockname: Likewise.
17985         * modules/getsockopt: Likewise.
17986         * modules/ioctl: Likewise.
17987         * modules/listen: Likewise.
17988         * modules/recv: Likewise.
17989         * modules/recvfrom: Likewise.
17990         * modules/send: Likewise.
17991         * modules/sendto: Likewise.
17992         * modules/setsockopt: Likewise.
17993         * modules/shutdown: Likewise.
17994         * modules/socket: Use socket.c instead of winsock.c.
17995         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
17996         * doc/posix-functions/accept.texi: Doc fix.
17997         * doc/posix-functions/bind.texi: Doc fix.
17998         * doc/posix-functions/close.texi: Doc fix.
17999         * doc/posix-functions/connect.texi: Doc fix.
18000         * doc/posix-functions/getpeername.texi: Doc fix.
18001         * doc/posix-functions/getsockname.texi: Doc fix.
18002         * doc/posix-functions/getsockopt.texi: Doc fix.
18003         * doc/posix-functions/ioctl.texi: Doc fix.
18004         * doc/posix-functions/listen.texi: Doc fix.
18005         * doc/posix-functions/recv.texi: Doc fix.
18006         * doc/posix-functions/recvfrom.texi: Doc fix.
18007         * doc/posix-functions/send.texi: Doc fix.
18008         * doc/posix-functions/sendto.texi: Doc fix.
18009         * doc/posix-functions/setsockopt.texi: Doc fix.
18010         * doc/posix-functions/shutdown.texi: Doc fix.
18011         * doc/posix-functions/socket.texi: Doc fix.
18012
18013 2008-10-20  Bruno Haible  <bruno@clisp.org>
18014
18015         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18016         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18017         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18018         as an alias for SIGABRT.
18019         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18020         (sigaction): Map it to SIGABRT.
18021         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18022
18023 2008-10-20  Bruno Haible  <bruno@clisp.org>
18024
18025         * lib/fts.c: Don't include lstat.h.
18026         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18027
18028         Move the lstat() declaration to <sys/stat.h>.
18029         * lib/lstat.h: Remove file.
18030         * lib/sys_stat.in.h: Add special invocation convention.
18031         (lstat): New declaration.
18032         * lib/lstat.c (orig_lstat): New function.
18033         (rpl_lstat): Use orig_lstat instead of lstat.
18034         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18035         AC_C_INLINE. Set REPLACE_LSTAT.
18036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18037         and REPLACE_LSTAT.
18038         * modules/lstat (Files): Remove lib/lstat.h.
18039         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18040         (Include): Specify <sys/stat.h> instead of lstat.h.
18041         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18042         REPLACE_LSTAT.
18043         * NEWS: Mention the change.
18044
18045 2008-10-20  Bruno Haible  <bruno@clisp.org>
18046
18047         * modules/posix_spawn-tests: New file.
18048         * tests/test-posix_spawn3.c: New file.
18049
18050 2008-10-20  Bruno Haible  <bruno@clisp.org>
18051
18052         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18053         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18054         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18055         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18056         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18057
18058 2008-10-20  Bruno Haible  <bruno@clisp.org>
18059
18060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18061         of posix_spawn on AIX 5.3.
18062
18063 2008-10-20  Bruno Haible  <bruno@clisp.org>
18064
18065         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18066
18067 2008-10-20  Bruno Haible  <bruno@clisp.org>
18068
18069         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18070         of AC_LANG_PROGRAM.
18071
18072 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18073
18074         * lib/netdb.in.h: Don't define GNU specific constants until they
18075         are supported or needed.  Reported by Bruno Haible
18076         <bruno@clisp.org>.
18077
18078 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18079
18080         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18081
18082 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18083
18084         * lib/getaddrinfo.h: Remove file.
18085         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18086         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18087         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18088         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18089         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18090         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18091         * tests/test-getaddrinfo.c: Likewise.
18092         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18093         * NEWS: Mention change.
18094
18095 2008-10-19  Bruno Haible  <bruno@clisp.org>
18096
18097         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18098
18099 2008-10-19  Bruno Haible  <bruno@clisp.org>
18100
18101         * lib/wait-process.c: Include simply <sys/wait.h>.
18102         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18103         WIFSTOPPED): Remove fallback definitions.
18104         * modules/wait-process (Depends-on): Add sys_wait.
18105
18106         New module 'sys_wait'.
18107         * modules/sys_wait: New file.
18108         * lib/sys_wait.in.h: New file, partially copied from
18109         lib/wait-process.c.
18110         * m4/sys_wait_h.m4: New file.
18111         * doc/posix-headers/sys_wait.texi: Mention the new module.
18112
18113 2008-10-19  Bruno Haible  <bruno@clisp.org>
18114
18115         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18116
18117 2008-10-19  Bruno Haible  <bruno@clisp.org>
18118
18119         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18120         * lib/wait-process.c (WAIT_T): Remove type.
18121         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18122         (wait_subprocess): Update.
18123
18124 2008-10-19  Bruno Haible  <bruno@clisp.org>
18125
18126         New module 'atoll'.
18127         * modules/atoll: New file.
18128         * lib/stdlib.in.h (atoll): New declaration.
18129         * lib/atoll.c: New file, from glibc with modifications.
18130         * m4/atoll.m4: New file.
18131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18132         HAVE_ATOLL.
18133         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18134         * doc/posix-functions/atoll.texi: Mention the new module.
18135
18136 2008-10-19  Bruno Haible  <bruno@clisp.org>
18137
18138         Add strtoull() declaration to <stdlib.h>.
18139         * lib/stdlib.in.h (strtoull): New declaration.
18140         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18141         Set HAVE_STRTOULL.
18142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18143         HAVE_STRTOULL.
18144         * modules/strtoull (Depends-on): Add stdlib.
18145         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18146         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18147         HAVE_STRTOULL.
18148
18149 2008-10-19  Bruno Haible  <bruno@clisp.org>
18150
18151         Add strtoll() declaration to <stdlib.h>.
18152         * lib/stdlib.in.h (strtoll): New declaration.
18153         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18154         Set HAVE_STRTOLL.
18155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18156         HAVE_STRTOLL.
18157         * modules/strtoll (Depends-on): Add stdlib.
18158         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18159         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18160
18161 2008-10-19  Bruno Haible  <bruno@clisp.org>
18162
18163         * modules/bcopy (Depends-on): Add strings.
18164         (Include): Specify <strings.h>.
18165
18166 2008-10-19  Bruno Haible  <bruno@clisp.org>
18167
18168         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18169
18170 2008-10-19  Bruno Haible  <bruno@clisp.org>
18171
18172         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18173         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18174         mingw.
18175
18176 2008-10-19  Bruno Haible  <bruno@clisp.org>
18177
18178         * lib/atanl.c: Don't include isnanl.h.
18179         * lib/cosl.c: Likewise.
18180         * lib/ldexpl.c: Likewise.
18181         * lib/logl.c: Likewise.
18182         * lib/sinl.c: Likewise.
18183         * lib/sqrtl.c: Likewise.
18184         * lib/tanl.c: Likewise.
18185
18186         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18187         * lib/isnanf.h: Remove file.
18188         * lib/isnand.h: Remove file.
18189         * lib/isnanl.h: Remove file.
18190         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18191         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18192         macros.
18193         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18194         HAVE_ISNANF, don't define it as a C macro.
18195         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18196         HAVE_ISNAND, don't define it as a C macro.
18197         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18198         HAVE_ISNANL, don't define it as a C macro.
18199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18200         HAVE_ISNAN[FDL].
18201         * modules/isnanf (Files): Remove lib/isnanf.h.
18202         (Depends-on): Add math.
18203         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18204         (Include): Specify <math.h> instead of isnanf.h.
18205         * modules/isnand (Files): Remove lib/isnand.h.
18206         (Depends-on): Add math.
18207         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18208         (Include): Specify <math.h> instead of isnand.h.
18209         * modules/isnanl (Files): Remove lib/isnanl.h.
18210         (Depends-on): Add math.
18211         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18212         (Include): Specify <math.h> instead of isnanl.h.
18213         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18214         HAVE_ISNAN[FDL].
18215         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18216         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18217         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18218         * NEWS: Mention the change.
18219
18220 2008-10-18  Bruno Haible  <bruno@clisp.org>
18221
18222         Add getusershell(), setusershell(), endusershell() declarations to
18223         <unistd.h>.
18224         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18225         declarations.
18226         * lib/getusershell.c: Include unistd.h.
18227         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18228         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18229         HAVE_GETUSERSHELL.
18230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18231         and HAVE_GETUSERSHELL.
18232         * modules/getusershell (Depends-on): Add unistd, extensions.
18233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18234         (Include): Specify <unistd.h>.
18235         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18236         HAVE_GETUSERSHELL.
18237
18238 2008-10-18  Bruno Haible  <bruno@clisp.org>
18239
18240         Add a getloadavg() declaration to <stdlib.h>.
18241         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18242         getloadavg declaration.
18243         (getloadavg): New declaration.
18244         * lib/getloadavg.c: Include <stdlib.h> first.
18245         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18246         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18247         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18249         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18250         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18251         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18252         (Include): Specify <stdlib.h>.
18253         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18254         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18255
18256 2008-10-18  Bruno Haible  <bruno@clisp.org>
18257
18258         * lib/dirchownmod.c: Don't include lchmod.h.
18259
18260         Move the lchmod() declaration to <sys/stat.h>.
18261         * lib/lchmod.h: Remove file.
18262         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18263         (lchmod): New declaration, moved here from lib/lchown.h.
18264         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18265         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18266         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18267         and HAVE_LCHMOD.
18268         * modules/lchmod (Files): Remove lib/lchmod.h.
18269         (Depends-on): Add sys_stat, extensions.
18270         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18271         (Include): Specify <sys/stat.h> instead of lchmod.h.
18272         * modules/sys_stat (Depends-on): Add link-warning.
18273         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18274         definition of GL_LINK_WARNING.
18275         * NEWS: Mention the change.
18276
18277 2008-10-18  Bruno Haible  <bruno@clisp.org>
18278
18279         * lib/fchdir.c: Don't include dirfd.h.
18280         * lib/fts.c: Likewise.
18281         * lib/getcwd.c: Likewise.
18282         * lib/glob.c: Likewise.
18283
18284         Move the dirfd() declaration to <dirent.h>.
18285         * lib/dirfd.h: Remove file.
18286         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18287         (dirfd): New declaration.
18288         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18289         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18290         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18291         HAVE_DECL_DIRFD.
18292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18293         HAVE_DECL_DIRFD.
18294         * modules/dirfd (Files): Remove lib/dirfd.h.
18295         (Depends-on): Add dirent, extensions.
18296         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18297         (Include): Specify <dirent.h> instead of dirfd.h.
18298         * modules/dirent (Depends-on): Add link-warning.
18299         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18300         definition of GL_LINK_WARNING.
18301         * NEWS: Mention the change.
18302
18303 2008-10-18  Bruno Haible  <bruno@clisp.org>
18304
18305         Move the euidaccess() declaration to <unistd.h>.
18306         * lib/euidaccess.h: Remove file.
18307         * lib/unistd.in.h (euidaccess): New declaration.
18308         * lib/euidaccess.c: Don't include euidaccess.h.
18309         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18310         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18312         and HAVE_EUIDACCESS.
18313         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18314         (Depends-on): Add unistd.
18315         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18316         (Include): Specify <unistd.h> instead of euidaccess.h.
18317         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18318         HAVE_EUIDACCESS.
18319         * NEWS: Mention the change.
18320
18321 2008-10-18  Bruno Haible  <bruno@clisp.org>
18322
18323         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18324
18325         Move the getdomainname() declaration to <unistd.h>.
18326         * lib/getdomainname.h: Remove file.
18327         * lib/unistd.in.h (getdomainname): New declaration.
18328         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18329         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18330         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18331         HAVE_GETDOMAINNAME.
18332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18333         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18334         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18335         (Depends-on): Add unistd, extensions.
18336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18337         (Includes): Specify <unistd.h> instead of getdomainname.h.
18338         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18339         HAVE_GETDOMAINNAME.
18340         * NEWS: Mention the change.
18341
18342 2008-10-18  Bruno Haible  <bruno@clisp.org>
18343
18344         * modules/dirent: New file.
18345         * m4/dirent_h.m4: New file.
18346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18347         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18348         * modules/fchdir (Files): Remove lib/dirent.in.h.
18349         (Depends-on): Add dirent.
18350         (Makefile.am): Move rules to modules/dirent.
18351         * doc/posix-headers/dirent.texi: Mention the new module.
18352
18353 2008-10-18  Bruno Haible  <bruno@clisp.org>
18354
18355         Avoid -Wunused-parameter warnings in public gnulib header files.
18356         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18357         macro.
18358         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18359
18360 2008-10-18  Bruno Haible  <bruno@clisp.org>
18361
18362         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18363         * doc/glibc-functions/error.texi: Mention the module 'error'.
18364         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18365         * doc/glibc-functions/getdomainname.texi: Mention the module
18366         'getdomainname'.
18367         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18368         * doc/glibc-functions/getpagesize.texi: Mention the module
18369         'getpagesize'.
18370         * doc/glibc-functions/getusershell.texi: Mention the module
18371         'getusershell'.
18372         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18373         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18374         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18375         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18376         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18377         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18378         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18379         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18380         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18381         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18382         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18383         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18384         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18385         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18386
18387 2008-10-17  Bruno Haible  <bruno@clisp.org>
18388
18389         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18390         HP-UX and IRIX, use -0.0L.
18391         * tests/test-ceill.c (minus_zero): Likewise.
18392         * tests/test-floorl.c (minus_zero): Likewise.
18393         * tests/test-frexpl.c (minus_zero): Likewise.
18394         * tests/test-isnan.c (minus_zerol): Likewise.
18395         * tests/test-isnanl.h (minus_zero): Likewise.
18396         * tests/test-ldexpl.c (minus_zero): Likewise.
18397         * tests/test-roundl.c (minus_zero): Likewise.
18398         * tests/test-signbit.c (minus_zerol): Likewise.
18399         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18400         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18401         * tests/test-truncl.c (minus_zero): Likewise.
18402         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18403         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18404         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18405         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18406
18407 2008-10-17  Bruno Haible  <bruno@clisp.org>
18408
18409         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18410         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18411         that it gets activated only for gcc >= 3.0.
18412         * lib/dirent.in.h: Likewise.
18413         * lib/errno.in.h: Likewise.
18414         * lib/fcntl.in.h: Likewise.
18415         * lib/float.in.h: Likewise.
18416         * lib/iconv.in.h: Likewise.
18417         * lib/inttypes.in.h: Likewise.
18418         * lib/locale.in.h: Likewise.
18419         * lib/math.in.h: Likewise.
18420         * lib/netdb.in.h: Likewise.
18421         * lib/netinet_in.in.h: Likewise.
18422         * lib/search.in.h: Likewise.
18423         * lib/signal.in.h: Likewise.
18424         * lib/spawn.in.h: Likewise.
18425         * lib/stdarg.in.h: Likewise.
18426         * lib/stdint.in.h: Likewise.
18427         * lib/stdio.in.h: Likewise.
18428         * lib/stdlib.in.h: Likewise.
18429         * lib/string.in.h: Likewise.
18430         * lib/strings.in.h: Likewise.
18431         * lib/sys_file.in.h: Likewise.
18432         * lib/sys_ioctl.in.h: Likewise.
18433         * lib/sys_select.in.h: Likewise.
18434         * lib/sys_socket.in.h: Likewise.
18435         * lib/sys_stat.in.h: Likewise.
18436         * lib/sys_time.in.h: Likewise.
18437         * lib/sysexits.in.h: Likewise.
18438         * lib/time.in.h: Likewise.
18439         * lib/unistd.in.h: Likewise.
18440         * lib/wchar.in.h: Likewise.
18441         * lib/wctype.in.h: Likewise.
18442         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18443
18444 2008-10-17  Jim Meyering  <meyering@redhat.com>
18445
18446         ignore-value: don't depend on inline module
18447         * modules/ignore-value (Depends-on): Remove 'inline'.
18448         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18449         Suggestion from Bruno Haible.
18450
18451 2008-10-17  Bruno Haible  <bruno@clisp.org>
18452
18453         New implementation of condition variables for Win32.
18454         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18455         (gl_linked_waitqueue_t): New type.
18456         (gl_cond_t): Use it.
18457         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18458         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18459         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18460         (glthread_cond_init_func, glthread_cond_wait_func,
18461         glthread_cond_timedwait_func, glthread_cond_signal_func,
18462         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18463         Reimplemented on the basis of gl_linked_waitqueue_t.
18464         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18465         gl_waitqueue_t.
18466         (gl_rwlock_t): Update.
18467         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18468
18469 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18470
18471         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18472         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18473
18474 2008-10-17  Jim Meyering  <meyering@redhat.com>
18475
18476         ignore-value: new module
18477         * modules/ignore-value: New file.
18478         * lib/ignore-value.h: New file.
18479         * MODULES.html.sh (Compiler warning management): New section,
18480         just for this module.  More to come.
18481
18482 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18483
18484         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18485         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18486         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18487
18488 2008-10-16  Jim Meyering  <meyering@redhat.com>
18489
18490         openat-die.c: avoid 'no previous prototype' warning
18491         * lib/openat-die.c: Include "openat.h".
18492         Reported by Reuben Thomas <rrt@sc3d.org>.
18493
18494 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18495
18496         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18497         * lib/netdb.in.h: Fix typo.
18498         Reported by Bruno Haible  <bruno@clisp.org>
18499
18500         * lib/netdb.in.h: Include sys/socket.h for platforms without
18501         netdb.h, to get structures like hostent on MinGW.
18502         * modules/netdb (Depends-on): Add sys_socket.
18503
18504 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18505
18506         * modules/netdb, modules/netdb-tests: New file.
18507         * m4/netdb_h.m4: New file.
18508         * lib/netdb.in.h: Add, currently just an empty file pending
18509         definitions.
18510         * tests/test-netdb.c: New file.
18511         * doc/posix-headers/netdb.texi: Mention that we replace it if
18512         needed.
18513         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18514         netdb.
18515
18516 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18517
18518         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18519         with code.
18520
18521 2008-10-13  Bruno Haible  <bruno@clisp.org>
18522
18523         * lib/glthread/cond.c (glthread_cond_wait_func,
18524         glthread_cond_timedwait_func): Add a comment.
18525
18526 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18527
18528         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18529         * tests/test-select.c: Likewise,
18530
18531 2008-10-13  Bruno Haible  <bruno@clisp.org>
18532
18533         * lib/glthread/cond.c (glthread_cond_wait_func,
18534         glthread_cond_timedwait_func): Fix variable name.
18535         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18536
18537 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18538
18539         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18541         struct sockaddr.sa_len.
18542         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18543
18544 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18545
18546         * build-aux/pmccabe2html: Add css and css_url parameters.
18547
18548 2008-10-12  Bruno Haible  <bruno@clisp.org>
18549
18550         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18551         calling aclx_get.
18552         Reported by Rainer Tammer <tammer@tammer.net>.
18553
18554 2008-10-12  Bruno Haible  <bruno@clisp.org>
18555
18556         Use msvcrt aware primitives for creation/termination of Win32 threads.
18557         * lib/glthread/thread.c: Include <process.h>.
18558         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18559         (wrapper_func): Update signature.
18560         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18561
18562 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18563             Bruno Haible  <bruno@clisp.org>
18564
18565         Provide a Win32 implementation of the 'cond' module.
18566         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18567         * lib/glthread/cond.c (glthread_cond_init_func,
18568         glthread_cond_wait_func, glthread_cond_timedwait_func,
18569         glthread_cond_signal_func, glthread_cond_broadcast_func,
18570         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18571         * modules/cond (Dependencies): Add gettimeofday.
18572
18573 2008-10-11  Bruno Haible  <bruno@clisp.org>
18574
18575         Make sleep work on older versions of mingw.
18576         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18577         only whether it exists.
18578         * doc/posix-functions/sleep.texi: Mention the problem with older
18579         versions of mingw.
18580
18581 2008-10-11  Bruno Haible  <bruno@clisp.org>
18582
18583         New module 'shutdown'.
18584         * modules/shutdown: New file.
18585         * lib/sys_socket.in.h (shutdown): New declaration.
18586         * lib/winsock.c (shutdown): New function.
18587         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18588         GNULIB_SHUTDOWN.
18589         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18590         * doc/posix-functions/shutdown.texi: Document the new module.
18591
18592 2008-10-11  Jim Meyering  <meyering@redhat.com>
18593
18594         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18595
18596 2008-10-11  Bruno Haible  <bruno@clisp.org>
18597
18598         New module 'fclose'.
18599         * modules/fclose: New file.
18600         * lib/stdio.in.h (fclose): New declaration.
18601         * lib/fclose.c: New file.
18602         * m4/fclose.m4: New file.
18603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18604         REPLACE_FCLOSE.
18605         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18606         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18607         REPLACE_FCLOSE.
18608         * modules/close (Depends-on): fclose.
18609         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18610
18611 2008-10-11  Bruno Haible  <bruno@clisp.org>
18612
18613         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18614         set errno and don't call _close.
18615
18616 2008-10-10  Bruno Haible  <bruno@clisp.org>
18617
18618         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18619         ACL, not afterwards. Fixes test failure on Cygwin.
18620
18621 2008-10-09  Ben Pfaff  <blp@gnu.org>
18622
18623         * build-aux/announce-gen: Fix gnulib version related part of usage
18624         message.  Die with a useful error message if no tarballs are
18625         found.
18626
18627 2008-10-10  Jim Meyering  <meyering@redhat.com>
18628
18629         bootstrap: use git's --depth=N option only if it's supported
18630         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18631         recognize the --depth option.  Reported by Pádraig Brady.
18632
18633 2008-10-09  Bruno Haible  <bruno@clisp.org>
18634
18635         New module 'ioctl'.
18636         * modules/ioctl: New file.
18637         * lib/sys_socket.in.h (ioctl): Remove declaration.
18638         * lib/winsock.c: Include <sys/ioctl.h>.
18639         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18640         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18641         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18642         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18643         * doc/posix-functions/ioctl.texi: Mention the new module.
18644
18645 2008-10-09  Bruno Haible  <bruno@clisp.org>
18646
18647         New module 'sys_ioctl'.
18648         * lib/sys_ioctl.in.h: New file.
18649         * m4/sys_ioctl_h.m4: New file.
18650         * modules/sys_ioctl: New file.
18651         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18652
18653 2008-10-09  Bruno Haible  <bruno@clisp.org>
18654
18655         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18656         * lib/winsock.c: Include <stdarg.h>.
18657         (rpl_ioctl): Change to second argument 'int' and then varargs.
18658
18659 2008-10-09  Bruno Haible  <bruno@clisp.org>
18660
18661         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18662         when the sys_socket module is present and the system has <winsock2.h>.
18663
18664 2008-10-09  Bruno Haible  <bruno@clisp.org>
18665
18666         * doc/posix-functions/close.texi: Mention module 'close' instead of
18667         module 'sys_socket'.
18668
18669 2008-10-09  Bruno Haible  <bruno@clisp.org>
18670
18671         * doc/glibc-headers/sys_ioctl.texi: New file.
18672         * doc/gnulib.texi: Include it.
18673
18674 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18675             Bruno Haible  <bruno@clisp.org>
18676
18677         Combine the two replacements of 'close'.
18678         * lib/sys_socket.in.h (close): Define to a reminder to include
18679         <unistd.h>.
18680         (_gl_close_fd_maybe_socket): New declaration.
18681         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18682         * lib/winsock.c (close): Remove undefinition.
18683         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18684         needed for the gnulib module 'close'.
18685         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18686         define to an error symbol or to a warning, if suitable.
18687         * lib/close.c: Include <sys/socket.h>.
18688         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18689         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18690         UNISTD_H_HAVE_WINSOCK2_H.
18691         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18693         UNISTD_H_HAVE_WINSOCK2_H.
18694         * modules/sys_socket (Files): Add m4/unistd_h.m4.
18695         (configure.ac): Set a module indicator.
18696         (Makefile.am): Substitute GNULIB_CLOSE.
18697         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18698         * modules/poll-tests (Depends-on): Add close.
18699         * modules/select-tests (Depends-on): Likewise.
18700
18701 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18702             Bruno Haible  <bruno@clisp.org>
18703
18704         New module 'close'.
18705         * modules/close: New file.
18706         * lib/unistd.in.h (close): Move declaration out of the
18707         FCHDIR_REPLACEMENT scope.
18708         (_gl_unregister_fd): New declaration.
18709         * lib/close.c: New file.
18710         * lib/fchdir.c (rpl_close): Remove function.
18711         * m4/close.m4: New file.
18712         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18713         close.
18714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18715         REPLACE_CLOSE.
18716         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18717         REPLACE_CLOSE.
18718         * modules/fchdir (Depends-on): Add close.
18719
18720 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18721             Bruno Haible  <bruno@clisp.org>
18722
18723         * lib/fcntl.in.h (open): Simplify conditionals.
18724         (_gl_register_fd): New declaration.
18725         * lib/fchdir.c (rpl_open): Remove function.
18726         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18727         also.
18728         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18730         open.
18731
18732 2008-10-09  Jim Meyering  <meyering@redhat.com>
18733
18734         GNUmakefile: use the more name-space-friendly "_version"
18735         * top/GNUmakefile (_dummy): Update.
18736         (_version): Rename from "version".
18737
18738 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18739             Bruno Haible  <bruno@clisp.org>
18740
18741         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18742         rpl_close.
18743         (_gl_register_fd): New function, extracted from rpl_open.
18744         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18745         (rpl_open, rpl_opendir): Use _gl_register_fd.
18746
18747 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18748
18749         Fix organization of 'open' replacement.
18750         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18751         (gl_FUNC_OPEN): Use it.
18752         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18753
18754 2008-10-08  Bruno Haible  <bruno@clisp.org>
18755
18756         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
18757
18758 2008-10-08  Simon Josefsson  <simon@josefsson.org>
18759
18760         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
18761         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
18762         listen).
18763
18764 2008-10-08  Eric Blake  <ebb9@byu.net>
18765
18766         GNUmakefile: add 'make version' target
18767         * top/GNUmakefile (_curr-ver): Split version update rules...
18768         (version): ...into a target.
18769
18770 2008-10-07  Bruno Haible  <bruno@clisp.org>
18771
18772         Use a more portable replacement expression for -0.0L.
18773         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
18774         instead of -0.0L. Fix m4 quotation.
18775
18776         * tests/test-signbit.c: Include <float.h>.
18777         (minus_zero): New variable.
18778         (test_signbitl): Use minus_zero instead of -zero.
18779         * modules/signbit-tests (Depends-on): Add float.
18780
18781         * tests/test-ceill.c: Include <float.h>.
18782         (zero): Remove variable.
18783         (minus_zero): New variable.
18784         (main): Use minus_zero instead of -zero.
18785         * modules/ceill-tests (Depends-on): Add float.
18786
18787         * tests/test-floorl.c: Include <float.h>.
18788         (zero): Remove variable.
18789         (minus_zero): New variable.
18790         (main): Use minus_zero instead of -zero.
18791         * modules/floorl-tests (Depends-on): Add float.
18792
18793         * tests/test-roundl.c: Include <float.h>.
18794         (zero): Remove variable.
18795         (minus_zero): New variable.
18796         (main): Use minus_zero instead of -zero.
18797         * modules/roundl-tests (Depends-on): Add float.
18798
18799         * tests/test-truncl.c: Include <float.h>.
18800         (zero): Remove variable.
18801         (minus_zero): New variable.
18802         (main): Use minus_zero instead of -zero.
18803         * modules/truncl-tests (Depends-on): Add float.
18804
18805         * tests/test-frexpl.c (zero): Remove variable.
18806         (minus_zero): New variable.
18807         (main): Use minus_zero instead of -zero.
18808         * modules/frexpl-tests (Depends-on): Add float.
18809
18810         * tests/test-isnan.c (zerol): Remove variable.
18811         (minus_zerol): New variable.
18812         (test_long_double): Use minus_zerol instead of -zerol.
18813         * modules/isnan-tests (Depends-on): Add float.
18814
18815         * tests/test-isnanl.h (zero): Remove variable.
18816         (minus_zero): New variable.
18817         (main): Use minus_zero instead of -zero.
18818         * modules/isnanl-nolibm-tests (Depends-on): Add float.
18819         * modules/isnanl-tests (Depends-on): Add float.
18820
18821         * tests/test-ldexpl.c (zero): Remove variable.
18822         (minus_zero): New variable.
18823         (main): Use minus_zero instead of -zero.
18824         * modules/ldexpl-tests (Depends-on): Add float.
18825
18826         * tests/test-snprintf-posix.h (zerol): Remove variable.
18827         (minus_zerol): New variable.
18828         (test_function): Use minus_zerol instead of -zerol.
18829         * modules/snprintf-posix-tests (Depends-on): Add float.
18830         * modules/vsnprintf-posix-tests (Depends-on): Add float.
18831
18832         * tests/test-sprintf-posix.h (zerol): Remove variable.
18833         (minus_zerol): New variable.
18834         (test_function): Use minus_zerol instead of -zerol.
18835         * modules/sprintf-posix-tests (Depends-on): Add float.
18836         * modules/vsprintf-posix-tests (Depends-on): Add float.
18837
18838         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
18839         (minus_zerol): New variable.
18840         (test_function): Use minus_zerol instead of -zerol.
18841         * modules/vasnprintf-posix-tests (Depends-on): Add float.
18842
18843         * tests/test-vasprintf-posix.c (zerol): Remove variable.
18844         (minus_zerol): New variable.
18845         (test_function): Use minus_zerol instead of -zerol.
18846         * modules/vasprintf-posix-tests (Depends-on): Add float.
18847
18848 2008-10-07  Simon Josefsson  <simon@josefsson.org>
18849
18850         * MODULES.html.sh (Support for building documentation): Mention
18851         pmccabe2html.  Sort entries.
18852
18853         Add pmccabe2html module, from gnupdf.
18854         * build-aux/pmccabe.css: New file.
18855         * build-aux/pmccabe2html: New file.
18856         * m4/pmccabe2html.m4: New file.
18857         * modules/pmccabe2html: New file.
18858
18859 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
18860
18861         flock: new module
18862         * MODULES.html.sh: Add to list of modules.
18863         * lib/flock.c: flock implementation for Windows and Unix systems
18864         which have fcntl.
18865         * doc/glibc-functions/flock.texi: Update documentation.
18866         * lib/sys_file.in.h: <sys/file.h> header file.
18867         * m4/flock.m4: M4 macros.
18868         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
18869         * modules/flock: flock module.
18870         * modules/flock-tests: flock tests module.
18871         * modules/sys_file: sys/file.h module.
18872         * tests/test-flock.c: test suite for flock.
18873
18874 2008-10-06  Jim Meyering  <meyering@redhat.com>
18875
18876         bootstrap: check for LT_INIT more portably still ;-)
18877         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
18878         Spotted by Bruno Haible.
18879
18880 2008-10-06  Eric Blake  <ebb9@byu.net>
18881
18882         test-signbit: avoid tripping Irix cc bug on -0.0L
18883         * tests/test-signbit.c (minus_zerol): Delete, and replace with
18884         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
18885         entire testsuite consistent and avoids an Irix 6.2 bug.
18886
18887 2008-10-05  Bruno Haible  <bruno@clisp.org>
18888             Jim Meyering  <jim@meyering.net>
18889
18890         Add an option for ignoring EPIPE during close_stdout.
18891         * lib/closeout.h: Include <stdbool.h>.
18892         (close_stdout_set_ignore_EPIPE): New declaration.
18893         * lib/closeout.c: Include <stdbool.h>.
18894         (ignore_EPIPE): New variable.
18895         (close_stdout_set_ignore_EPIPE): New function.
18896         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
18897         * lib/close-stream.c (close_stream): Mention the possible EPIPE
18898         failure.
18899         * modules/closeout (Depends-on): Add stdbool.
18900
18901 2008-10-05  Bruno Haible  <bruno@clisp.org>
18902
18903         * modules/accept: New file.
18904         * modules/bind: New file.
18905         * modules/connect: New file.
18906         * modules/getpeername: New file.
18907         * modules/getsockname: New file.
18908         * modules/getsockopt: New file.
18909         * modules/listen: New file.
18910         * modules/recv: New file.
18911         * modules/recvfrom: New file.
18912         * modules/send: New file.
18913         * modules/sendto: New file.
18914         * modules/setsockopt: New file.
18915         * modules/socket: New file.
18916         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
18917         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18918         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
18919         the particular module is requested. Add a link warning when the
18920         particular module is not requested.
18921         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
18922         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
18923         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
18924         the particular module is requested.
18925         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
18926         gl_SYS_SOCKET_H_DEFAULTS): New macros.
18927         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
18928         * modules/sys_socket (Depends-on): Add link-warning.
18929         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
18930         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
18931         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
18932         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
18933         GL_LINK_WARNING.
18934         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
18935         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
18936         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
18937         * doc/posix-functions/getpeername.texi: Mention the new module
18938         'getpeername'.
18939         * doc/posix-functions/getsockname.texi: Mention the new module
18940         'getsockname'.
18941         * doc/posix-functions/getsockopt.texi: Mention the new module
18942         'getsockopt'.
18943         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
18944         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
18945         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
18946         * doc/posix-functions/send.texi: Mention the new module 'send'.
18947         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
18948         * doc/posix-functions/setsockopt.texi: Mention the new module
18949         'setsockopt'.
18950         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
18951         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
18952         listen, connect, accept.
18953         * modules/select-tests (Depends-on): Likewise.
18954
18955 2008-10-05  Bruno Haible  <bruno@clisp.org>
18956
18957         * lib/winsock.c (strerror): Remove unused #undef.
18958         (rpl_close): Remove unused local variable.
18959
18960         * modules/sys_socket (Depends-on); Add errno.
18961
18962 2008-10-05  Bruno Haible  <bruno@clisp.org>
18963
18964         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
18965         (select): Add a link warning when the 'select' module is not used.
18966         * modules/sys_select (Depends-on): Add link-warning.
18967         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
18968         Suggested by Paolo Bonzini.
18969
18970 2008-10-05  Jim Meyering  <meyering@redhat.com>
18971
18972         bootstrap: check for LT_INIT more portably
18973         * build-aux/bootstrap: Avoid using grep -E, since it's not
18974         portable enough.  Suggestion from Bruno Haible.
18975
18976 2008-10-05  Bruno Haible  <bruno@clisp.org>
18977
18978         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
18979         as being fixed by gnulib.
18980
18981 2008-10-05  Bruno Haible  <bruno@clisp.org>
18982
18983         * modules/select-tests: New file, mostly copied from
18984         modules/sys_select-tests.
18985         * tests/test-select.c: New file, mostly copied from
18986         tests/test-sys_select.c.
18987         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
18988         * modules/sys_select-tests (Depends-on): Remove all dependencies.
18989         (Makefile.am): Remove test_sys_select_LDADD.
18990
18991         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
18992         to an undefined symbol, for an error message.
18993         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
18994         (gl_SYS_SELECT_H_DEFAULTS): New macro.
18995         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
18996         winsock-select.c here.
18997         * modules/sys_select (Files): Remove lib/winsock-select.c.
18998         (Depends-on): Remove alloca.
18999         (Makefile.am): Substitute GNULIB_SELECT.
19000         * modules/select: New file.
19001         * doc/posix-functions/select.texi: Update.
19002
19003 2008-10-05  Bruno Haible  <bruno@clisp.org>
19004
19005         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19006         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19007         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19008         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19009         getdtablesize.
19010         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19011         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19012
19013 2008-10-05  Bruno Haible  <bruno@clisp.org>
19014
19015         * modules/getdtablesize-tests: New file.
19016         * tests/test-getdtablesize.c: New file.
19017
19018         New module 'getdtablesize'.
19019         * lib/unistd.in.h (getdtablesize): New declaration.
19020         * lib/getdtablesize.c: New file.
19021         * m4/getdtablesize.m4: New file.
19022         * modules/getdtablesize: New file.
19023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19024         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19025         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19026         HAVE_GETDTABLESIZE.
19027         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19028
19029 2008-10-05  Bruno Haible  <bruno@clisp.org>
19030
19031         * modules/sched (Makefile.am): Fix typo.
19032         Reported by Simon Josefsson.
19033
19034 2008-10-05  Jim Meyering  <meyering@redhat.com>
19035
19036         bootstrap: check for LT_INIT, too
19037         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19038         are deprecated.  Suggestion from Ralf Wildenhues.
19039
19040 2008-10-05  Bruno Haible  <bruno@clisp.org>
19041
19042         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19043         overriding them by ours.
19044         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19045
19046 2008-10-05  Jim Meyering  <meyering@redhat.com>
19047
19048         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19049         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19050         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19051
19052 2008-10-04  Bruno Haible  <bruno@clisp.org>
19053
19054         * modules/dup2 (License): Change to LGPLv2+.
19055         * modules/sleep (License): Likewise.
19056         * modules/perror (License): Likewise.
19057         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19058         Blake.
19059         * modules/signal (License): Likewise.
19060         * modules/sigprocmask (License): Likewise.
19061         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19062         Meyering.
19063
19064 2008-10-04  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19067         Reported by Rainer Tammer <tammer@tammer.net>.
19068
19069 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19070             Bruno Haible  <bruno@clisp.org>
19071
19072         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19073         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19074         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19075
19076 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19077
19078         filevercmp: new module
19079         * lib/filevercmp.h: New function filevercmp comparing version strings.
19080         * lib/filevercmp.c: Implementation of filevercmp function.
19081         * modules/filevercmp: Module metadata.
19082         * tests/test-filevercmp.c: Unit test for new module.
19083         * modules/filevercmp-tests: Unit test metadata.
19084         * MODULES.html.sh: Add filevercmp module.
19085
19086 2008-10-03  Bruno Haible  <bruno@clisp.org>
19087
19088         * lib/c-ctype.h: Add comment.
19089         Reported by Jim Meyering.
19090
19091 2008-10-02  Bruno Haible  <bruno@clisp.org>
19092
19093         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19094
19095 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19096
19097         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19098         name of bootstrap.conf accordingly.
19099
19100 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19101
19102         * build-aux/bootstrap: Install git-merge-changelog configuration
19103         items into .gitconfig if needed.
19104
19105 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19106
19107         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19108         git repository, and initialize/update it accordingly.
19109
19110 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19111
19112         * modules/fsync-tests: New file.
19113         * tests/test-fsync.c: New file.
19114
19115         New module 'fsync'.
19116         * lib/fsync.c: New file.
19117         * m4/fsync.m4: New file.
19118         * modules/fsync: New file.
19119         * lib/unistd.in.h (fsync): New declaration.
19120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19121         GNULIB_FSYNC and HAVE_FSYNC.
19122         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19123         * MODULES.html.sh (posix_functions): Add fsync.
19124         * doc/posix-functions/fsync.texi: Mention the new module.
19125
19126 2008-10-02  Jim Meyering  <meyering@redhat.com>
19127
19128         fts.c: sync with similar code from coreutils' remove.c
19129         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19130         Guard also with "#if defined __linux__", since for now at least,
19131         this code is Linux-kernel-specific.
19132
19133 2008-10-02  Jim Meyering  <meyering@redhat.com>
19134
19135         fts: bug fixes
19136         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19137         Include <sys/vfs.h>, not <sys/statfs.h>.
19138
19139         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19140         Include <sys/vfs.h>, not <sys/statfs.h>.
19141
19142 2008-10-01  Bruno Haible  <bruno@clisp.org>
19143
19144         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19145         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19146         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19147         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19148         * doc/posix-functions/posix_spawnp.texi: Likewise.
19149         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19150         whether posix_spawn actually works.
19151         * m4/pipe.m4 (gl_PIPE): Likewise.
19152         * modules/execute (Files): Add m4/posix_spawn.m4.
19153         * modules/pipe (Files): Add m4/posix_spawn.m4.
19154         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19155
19156 2008-10-01  Jim Meyering  <meyering@redhat.com>
19157
19158         remove trailing spaces
19159         * NEWS: Likewise.
19160         * lib/poll.c (poll): Likewise.
19161         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19162         * lib/winsock.c (rpl_close): Likewise.
19163         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19164         * modules/yield: Likewise.
19165         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19166         * tests/test-sys_select.c (connect_to_socket): Likewise.
19167
19168         fts.c: adjust a new interface to be more generally useful
19169         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19170         (fts_build): Adjust caller.
19171
19172 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19173
19174         * modules/cond-tests: New file.
19175         * tests/test-cond.c: New file.
19176
19177 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19178             Bruno Haible  <bruno@clisp.org>
19179
19180         * modules/cond (Dependencies): Add errno, time.
19181         * lib/glthread/cond.h: Include <time.h>.
19182         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19183         across platforms.
19184
19185 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19186             Bruno Haible  <bruno@clisp.org>
19187
19188         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19189
19190 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19191             Bruno Haible  <bruno@clisp.org>
19192
19193         * modules/tls-tests (Depends-on): Add thread, yield.
19194         (configure.ac): Remove all checks.
19195         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19196         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19197         gl_thread_self): Remove definitions. Include glthread/thread.h and
19198         glthread/yield.h instead.
19199         (test_tls): Pass an additional NULL argument to gl_thread_join.
19200
19201 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19202             Bruno Haible  <bruno@clisp.org>
19203
19204         * modules/lock-tests (Depends-on): Add thread, yield.
19205         (configure.ac): Remove all checks.
19206         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19207         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19208         gl_thread_self): Remove definitions. Include glthread/thread.h and
19209         glthread/yield.h instead.
19210         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19211         additional NULL argument to gl_thread_join.
19212
19213 2008-09-30  Bruno Haible  <bruno@clisp.org>
19214
19215         Fix the Win32 implementation of the 'thread' module.
19216         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19217         pointer type.
19218         (gl_thread_self): Invoke gl_thread_self_func.
19219         (gl_thread_self_func): New declaration.
19220         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19221         (do_init_self_key, init_self_key): New functions.
19222         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19223         Remove some fields.
19224         (running_threads, running_lock): Remove variables.
19225         (get_current_thread_handle): New function.
19226         (gl_thread_self_func, wrapper_func, glthread_create_func,
19227         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19228         simplified.
19229
19230 2008-09-30  Bruno Haible  <bruno@clisp.org>
19231
19232         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19233         files.
19234
19235 2008-09-30  Jim Meyering  <meyering@redhat.com>
19236
19237         fts.m4: correct the test for statfs.f_type
19238         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19239         when checking for statfs.f_type.
19240
19241 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19242
19243         tests: avoid some compiler warnings
19244         * tests/test-memchr.c (main): Pass NULL indirectly.
19245         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19246
19247 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
19248
19249         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19250         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19251         exactly specified dayshifts.
19252         (dayshift): New rule.
19253         (rel): Add dayshift.
19254         (relative_time_table) [tomorrow, yesterday, today, now]:
19255         Use tDAY_SHIFT in place of tDAY_UNIT.
19256         * tests/test-getdate.c: Add tests for now-disallowed countable
19257         dayshifts, e.g., "4 yesterday ago".
19258
19259 2008-09-29  Bruno Haible  <bruno@clisp.org>
19260
19261         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19262         * tests/test-posix_spawn1.in.sh: Renamed from
19263         tests/test-posix_spawn.in.sh.
19264         * tests/test-posix_spawn2.c: New file.
19265         * tests/test-posix_spawn2.in.sh: New file.
19266         * modules/posix_spawnp-tests (Files): Update.
19267         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19268
19269 2008-09-29  Bruno Haible  <bruno@clisp.org>
19270
19271         Propagate effects of putenv/setenv/unsetenv to child processes.
19272         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19273         * lib/pipe.c (create_pipe): Likewise.
19274
19275 2008-09-29  Bruno Haible  <bruno@clisp.org>
19276
19277         Enable use of shell scripts as executables in mingw.
19278         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19279         run the program as a shell script.
19280         * lib/pipe.c (create_pipe): Likewise.
19281         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19282         resulting array.
19283
19284 2008-09-29  Eric Blake  <ebb9@byu.net>
19285
19286         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19287
19288 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19289
19290         * doc/posix-functions/accept.texi: Update mingw problems.
19291         * doc/posix-functions/bind.texi: Update mingw problems.
19292         * doc/posix-functions/close.texi: Update mingw problems.
19293         * doc/posix-functions/connect.texi: Update mingw problems.
19294         * doc/posix-functions/getpeername.texi: Update mingw problems.
19295         * doc/posix-functions/getsockname.texi: Update mingw problems.
19296         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19297         * doc/posix-functions/ioctl.texi: Update mingw problems.
19298         * doc/posix-functions/listen.texi: Update mingw problems.
19299         * doc/posix-functions/recv.texi: Update mingw problems.
19300         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19301         * doc/posix-functions/select.texi: Update mingw problems.
19302         * doc/posix-functions/send.texi: Update mingw problems.
19303         * doc/posix-functions/sendto.texi: Update mingw problems.
19304         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19305         * doc/posix-functions/socket.texi: Update mingw problems.
19306
19307 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19308             Bruno Haible  <bruno@clisp.org>
19309
19310         * lib/sys_select.in.h: Include sys/time.h.
19311         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19312         * modules/sys_select: Depend on sys_time.
19313         * tests/test-sys_select.c: Test that sys/select.h defines struct
19314         timeval fully.
19315
19316 2008-09-29  Bruno Haible  <bruno@clisp.org>
19317
19318         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19319         * lib/sys_select.in.h: Likewise.
19320
19321 2008-09-29  Bruno Haible  <bruno@clisp.org>
19322
19323         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19324
19325 2008-09-29  Bruno Haible  <bruno@clisp.org>
19326
19327         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19328         Set LIBSOCKET instead of augmenting LIBS.
19329         * modules/sockets (Link): New section.
19330         * modules/sockets-tests (test_sockets_LDADD): New variable.
19331         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19332         * modules/poll-tests (test_poll_LDADD): New variable.
19333         * NEWS: Document the change.
19334
19335 2008-09-29  Bruno Haible  <bruno@clisp.org>
19336
19337         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19338         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19339         ARPA_INET_H directly.
19340         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19341
19342 2008-09-28  Bruno Haible  <bruno@clisp.org>
19343
19344         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19345         from gl_HEADER_SYS_SOCKET.
19346         (gl_HEADER_SYS_SOCKET): Invoke it.
19347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19348
19349 2008-09-28  Bruno Haible  <bruno@clisp.org>
19350
19351         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19352         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19353         Needed on OSF/1 4.0.
19354
19355 2008-09-28  Bruno Haible  <bruno@clisp.org>
19356
19357         Override open more carefully.
19358         * lib/open.c (orig_open): New function.
19359         (rpl_open): Use orig_open instead of open.
19360         * lib/fcntl.in.h: Add special invocation convention.
19361         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19362         (gl_FUNC_OPEN): Invoke it.
19363
19364         Override freopen more carefully.
19365         * lib/freopen.c (orig_freopen): New function.
19366         (rpl_freopen): Use orig_freopen instead of freopen.
19367         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19368         (gl_FUNC_FREOPEN): Invoke it.
19369
19370         Override fopen more carefully.
19371         * lib/fopen.c (orig_fopen): New function.
19372         (rpl_fopen): Use orig_fopen instead of fopen.
19373         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19374         (gl_FUNC_FOPEN): Invoke it.
19375         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19376
19377 2008-09-28  Bruno Haible  <bruno@clisp.org>
19378
19379         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19380         SIGPIPE.
19381
19382 2008-09-28  Bruno Haible  <bruno@clisp.org>
19383
19384         * tests/test-sigaction.c (handler, main): Disable the check whether
19385         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19386         glibc systems with LinuxThreads.
19387
19388 2008-09-28  Bruno Haible  <bruno@clisp.org>
19389
19390         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19391
19392         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19393         with AIX xlc.
19394         * lib/fcntl.in.h (open): Likewise.
19395         Reported by Rainer Tammer <tammer@tammer.net>.
19396
19397 2008-09-28  Bruno Haible  <bruno@clisp.org>
19398
19399         * modules/posix_spawnp-tests: New file.
19400         * tests/test-posix_spawn.c: New file.
19401         * tests/test-posix_spawn.in.sh: New file.
19402
19403         New module 'posix_spawnp'.
19404         * modules/posix_spawnp: New file.
19405         * lib/spawnp.c: New file, from GNU libc with modifications.
19406         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19407
19408         New module 'posix_spawn'.
19409         * modules/posix_spawn: New file.
19410         * lib/spawn.c: New file, from GNU libc with modifications.
19411         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19412
19413         New module 'posix_spawnattr_destroy'.
19414         * modules/posix_spawnattr_destroy: New file.
19415         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19416         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19417         module.
19418
19419         New module 'posix_spawnattr_setsigmask'.
19420         * modules/posix_spawnattr_setsigmask: New file.
19421         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19422         modifications.
19423         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19424         new module.
19425
19426         New module 'posix_spawnattr_getsigmask'.
19427         * modules/posix_spawnattr_getsigmask: New file.
19428         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19429         modifications.
19430         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19431         new module.
19432
19433         New module 'posix_spawnattr_setsigdefault'.
19434         * modules/posix_spawnattr_setsigdefault: New file.
19435         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19436         modifications.
19437         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19438         new module.
19439
19440         New module 'posix_spawnattr_getsigdefault'.
19441         * modules/posix_spawnattr_getsigdefault: New file.
19442         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19443         modifications.
19444         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19445         new module.
19446
19447         New module 'posix_spawnattr_setschedpolicy'.
19448         * modules/posix_spawnattr_setschedpolicy: New file.
19449         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19450         modifications.
19451         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19452         new module.
19453
19454         New module 'posix_spawnattr_getschedpolicy'.
19455         * modules/posix_spawnattr_getschedpolicy: New file.
19456         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19457         modifications.
19458         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19459         new module.
19460
19461         New module 'posix_spawnattr_setschedparam'.
19462         * modules/posix_spawnattr_setschedparam: New file.
19463         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19464         modifications.
19465         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19466         new module.
19467
19468         New module 'posix_spawnattr_getschedparam'.
19469         * modules/posix_spawnattr_getschedparam: New file.
19470         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19471         modifications.
19472         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19473         new module.
19474
19475         New module 'posix_spawnattr_setpgroup'.
19476         * modules/posix_spawnattr_setpgroup: New file.
19477         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19478         modifications.
19479         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19480         module.
19481
19482         New module 'posix_spawnattr_getpgroup'.
19483         * modules/posix_spawnattr_getpgroup: New file.
19484         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19485         modifications.
19486         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19487         module.
19488
19489         New module 'posix_spawnattr_setflags'.
19490         * modules/posix_spawnattr_setflags: New file.
19491         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19492         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19493         module.
19494
19495         New module 'posix_spawnattr_getflags'.
19496         * modules/posix_spawnattr_getflags: New file.
19497         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19498         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19499         module.
19500
19501         New module 'posix_spawnattr_init'.
19502         * modules/posix_spawnattr_init: New file.
19503         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19504         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19505         module.
19506
19507         New module 'posix_spawn_file_actions_destroy'.
19508         * modules/posix_spawn_file_actions_destroy: New file.
19509         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19510         modifications.
19511         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19512         the new module.
19513
19514         New module 'posix_spawn_file_actions_addopen'.
19515         * modules/posix_spawn_file_actions_addopen: New file.
19516         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19517         modifications.
19518         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19519         the new module.
19520
19521         New module 'posix_spawn_file_actions_adddup2'.
19522         * modules/posix_spawn_file_actions_adddup2: New file.
19523         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19524         modifications.
19525         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19526         the new module.
19527
19528         New module 'posix_spawn_file_actions_addclose'.
19529         * modules/posix_spawn_file_actions_addclose: New file.
19530         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19531         modifications.
19532         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19533         the new module.
19534
19535         New module 'posix_spawn_file_actions_init'.
19536         * modules/posix_spawn_file_actions_init: New file.
19537         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19538         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19539         new module.
19540
19541         New module 'posix_spawn-internal'.
19542         * modules/posix_spawn-internal: New file.
19543         * lib/spawn_int.h: New file, from GNU libc with modifications.
19544         * lib/spawni.c: New file, from GNU libc with modifications.
19545         * m4/posix_spawn.m4: New file.
19546
19547         New module 'spawn'.
19548         * modules/spawn: New file.
19549         * lib/spawn.in.h: New file, from GNU libc with modifications.
19550         * m4/spawn_h.m4: New file.
19551         * doc/posix-headers/spawn.texi: Mention the new module.
19552
19553 2008-09-28  Bruno Haible  <bruno@clisp.org>
19554
19555         * modules/sched-tests: New file.
19556         * tests/test-sched.c: New file.
19557
19558         New module 'sched'.
19559         * modules/sched: New file.
19560         * lib/sched.in.h: New file.
19561         * m4/sched_h.m4: New file.
19562         * doc/posix-headers/sched.texi: Mention the new module.
19563
19564 2008-09-27  Eric Blake  <ebb9@byu.net>
19565
19566         Fix previous patch, and tweak references to $0.
19567         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19568         (func_version, func_gnulib_dir): Don't call this program
19569         gnulib-tool.
19570         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19571         with using $0 in function.
19572         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19573         (func_fatal_error): Reuse the name the user invoked us with.
19574
19575 2008-09-27  Bruno Haible  <bruno@clisp.org>
19576
19577         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19578         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19579         (gl_ICONV_H): Not here.
19580         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19581         instead of assigning ICONV_H directly.
19582
19583         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19585         WCHAR_H directly.
19586
19587 2008-09-27  Bruno Haible  <bruno@clisp.org>
19588
19589         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19590         * modules/arpa_inet (Depends-on): Add link-warning.
19591         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19592         * modules/unistd (Makefile.am): Likewise.
19593
19594 2008-09-26  Bruno Haible  <bruno@clisp.org>
19595
19596         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19597         variables.
19598         (func_version): Essentially copied from gnulib-tool.
19599         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19600         func_readlink): Copied from gnulib-tool.
19601
19602 2008-09-26  Bruno Haible  <bruno@clisp.org>
19603
19604         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19605         invoking git-version-gen.
19606
19607 2008-09-26  Bruno Haible  <bruno@clisp.org>
19608
19609         * posix-modules: Update to directory names changed on 2008-01-19.
19610         Remove commas in output before splitting into words. No more need to
19611         avoid 'ftruncate' since 2007-02-19.
19612
19613 2008-09-26  Bruno Haible  <bruno@clisp.org>
19614
19615         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19616
19617 2008-09-26  Bruno Haible  <bruno@clisp.org>
19618
19619         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19620         * modules/fwriteerror (Depends-on): Add errno.
19621
19622 2008-09-26  Bruno Haible  <bruno@clisp.org>
19623
19624         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19625         * tests/test-vc-list-files-cvs.sh: Likewise.
19626
19627 2008-09-26  Bruno Haible  <bruno@clisp.org>
19628
19629         * doc/posix-headers/sys_resource.texi: Reorder items.
19630
19631 2008-09-26  Jim Meyering  <meyering@redhat.com>
19632
19633         fts: tweak inode comparison function
19634         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19635         inode numbers, as documented.
19636
19637         fts: sort dirent entries on inode number before traversing
19638         This avoids a quadratic, seek-related performance penalty when
19639         operating on a directory containing many entries (measurable at 10k;
19640         3.5 hours at 2 million entries with a cold cache) on certain types
19641         of file systems, including ext3 and ext4, but not tmpfs.
19642         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19643         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19644         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19645         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19646         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19647         (fts_build): Set the stat.st_ino member from D_INO.
19648         If it is likely to be useful, sort dirent entries on inode number.
19649
19650         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19651         and the struct statfs.f_type member.
19652         * modules/fts (Depends-on): Add d-ino.
19653
19654 2008-09-26  Bruno Haible  <bruno@clisp.org>
19655
19656         * modules/sigpipe-die (Depends-on): Add sigpipe.
19657
19658         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19659         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19660         and GNULIB_STDIO_H_SIGPIPE are set.
19661         * lib/stdio-write.c: New file.
19662         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19663         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19664         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19665         REPLACE_STDIO_WRITE_FUNCS.
19666         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19667         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19668         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19669         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19670         * modules/stdio (Files): Add lib/stdio-write.c.
19671         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19672         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19673         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19674         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19675         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19676         REPLACE_FPRINTF_POSIX.
19677         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19678         REPLACE_PRINTF_POSIX.
19679         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19680         REPLACE_VFPRINTF_POSIX.
19681         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19682         REPLACE_VPRINTF_POSIX.
19683         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19684         SIGPIPE issue.
19685         * doc/posix-functions/fputc.texi: Likewise.
19686         * doc/posix-functions/fputs.texi: Likewise.
19687         * doc/posix-functions/fwrite.texi: Likewise.
19688         * doc/posix-functions/printf.texi: Likewise.
19689         * doc/posix-functions/putc.texi: Likewise.
19690         * doc/posix-functions/putchar.texi: Likewise.
19691         * doc/posix-functions/puts.texi: Likewise.
19692         * doc/posix-functions/vfprintf.texi: Likewise.
19693         * doc/posix-functions/vprintf.texi: Likewise.
19694
19695         * modules/safe-write (Depends-on): Add write.
19696
19697         * modules/sigpipe-tests: New file.
19698         * tests/test-sigpipe.c: New file.
19699         * tests/test-sigpipe.sh: New file.
19700
19701         * modules/write: New file.
19702         * lib/unistd.in.h: Include <sys/types.h>.
19703         (write): New declaration.
19704         * lib/write.c: New file.
19705         * m4/write.m4: New file.
19706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19707         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19708         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19709         GNULIB_WRITE, REPLACE_WRITE.
19710         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19711         and the SIGPIPE issue.
19712
19713         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19714         (raise): New declaration.
19715         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19716         (ext_signal): New function.
19717         (rpl_raise): New function.
19718         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19719         GNULIB_SIGNAL_H_SIGPIPE.
19720         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19721         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19722
19723         * modules/sigpipe: New file.
19724         * m4/sigpipe.m4: New file.
19725
19726 2008-09-25  Derek Price  <derek@ximbiot.com>
19727             Bruno Haible  <bruno@clisp.org>
19728
19729         * gnulib-tool (func_import): Report all license incompatibilities, not
19730         just the first one.
19731
19732 2008-09-25  Bruno Haible  <bruno@clisp.org>
19733
19734         * gnulib-tool (func_import): When computing the edits, consider not
19735         only the Makefile.ams that exist but also those that will be generated.
19736
19737 2008-09-25  Simon Josefsson  <simon@josefsson.org>
19738
19739         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19740         fixes gnulib-tool --test warning about duplicate dependency.
19741
19742 2008-09-25  Bruno Haible  <bruno@clisp.org>
19743
19744         * gnulib-tool: Don't ask the user to perform edits in the generated
19745         Makefile.ams.
19746         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19747         apply to the Makefile.am being generated.
19748         (func_emit_tests_Makefile_am): Execute edits that apply to the
19749         Makefile.am being generated.
19750         (func_import): Setup list of Makefile.am edits before emitting the
19751         Makefile.ams, not at the end.
19752         (func_create_testdir): Update.
19753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19754
19755 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19756
19757         * gnulib-tool (func_import): Store the --tests-base option in the
19758         comment in gnulib-cache.m4.
19759
19760 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
19761
19762         * NEWS: Document increased portability that sys_select now provides.
19763
19764         * lib/sys_select.in.h: Install select wrapper.
19765         * lib/sys_socket.in.h: Use more descriptive name when there is no
19766         select wrapper.
19767         * lib/winsock-select.c: New.
19768         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
19769         Require gl_HEADER_SYS_SOCKET.
19770         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
19771         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
19772         * tests/test-sys_select.c: Add functional tests.
19773
19774 2008-09-24  Eric Blake  <ebb9@byu.net>
19775
19776         open, fopen: close fd leak in last patch
19777         * lib/open.c (rpl_open): Close fd before returning error.
19778         * lib/fopen.c (rpl_fopen): Close fd before returning error.
19779         * doc/posix-functions/open.texi (open): Document that Irix also
19780         has the bug.
19781         * doc/posix-functions/fopen.texi (fopen): Likewise.
19782         Reported by Paolo Bonzini.
19783
19784 2008-09-24  Bruno Haible  <bruno@clisp.org>
19785
19786         Ensure that a filename ending in a slash cannot be used to access a
19787         non-directory.
19788         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
19789         to check whether it's really a directory.
19790         * lib/fopen.c: Include fcntl.h, unistd.h.
19791         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
19792         and fdopen().
19793         * modules/fopen (Depends-on): Add unistd.
19794         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
19795         * tests/test-fopen.c (main): Likewise.
19796         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
19797         * doc/posix-functions/fopen.texi: Likewise.
19798         Reported by Eric Blake.
19799
19800 2008-09-23  Eric Blake  <ebb9@byu.net>
19801
19802         c-stack: avoid compiler optimizations when provoking overflow
19803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
19804         recursion harder to optimize, to ensure a stack overflow occurs.
19805         * tests/test-c-stack.c (recurse): Likewise.
19806         Borrowed from libsigsegv.
19807
19808         c-stack: work around Irix sigaltstack bug
19809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
19810         whether sigaltstack uses wrong end of stack_t (copied in part from
19811         libsigsegv).
19812         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
19813         Irix bug, without requiring an over-allocation.
19814         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
19815         bug.
19816
19817         fopen: document mingw bug on directories
19818         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
19819         not allowing a stream visiting a directory, even though reading
19820         from such a stream is not portable.
19821
19822 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19823
19824         * lib/poll.c: Rewrite.
19825         * modules/poll: Depend on alloca.
19826
19827 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19828
19829         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
19830         instead define prototypes for a full set of wrappers.  Ensure
19831         that Cygwin does not use the compatibility code, which is only
19832         for MinGW.
19833         * lib/winsock.c: New.
19834         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
19835         * modules/sys_socket: Add lib/winsock.c.
19836
19837         * modules/poll-tests: Add errno and perror.
19838         * tests/test-poll.c: Use ioctl, not ioctlsocket.
19839
19840 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19841
19842         * tests/test-poll.c: Downgrade minimum needed Winsock version.
19843
19844 2008-09-23  Bruno Haible  <bruno@clisp.org>
19845
19846         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
19847         * doc/glibc-functions/*: Likewise.
19848
19849 2008-09-23  Simon Josefsson  <simon@josefsson.org>
19850
19851         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
19852         success.
19853
19854 2008-09-22  Eric Blake  <ebb9@byu.net>
19855             Bruno Haible  <bruno@clisp.org>
19856
19857         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
19858         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
19859         supply %A but mishandle pseudo-NaN.
19860         Reported by Simon Josefsson.
19861
19862 2008-09-21  Bruno Haible  <bruno@clisp.org>
19863
19864         * tests/test-lock.c (main): Tweak skip message.
19865         * tests/test-tls.c (main): Likewise.
19866
19867 2008-09-21  Bruno Haible  <bruno@clisp.org>
19868
19869         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
19870         whether 'struct sigaction' has sa_sigaction here...
19871         (gl_PREREQ_SIG_HANDLER_H): ... not here.
19872         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
19873
19874 2008-09-21  Bruno Haible  <bruno@clisp.org>
19875
19876         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
19877         section.
19878         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
19879         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
19880         the new section.
19881         (Support for obsolete systems lacking POSIX:2001): New section.
19882         (String handling <string.h>): Move strdup to the new section.
19883         Suggested by Simon Josefsson and Paolo Bonzini.
19884
19885 2008-09-21  Bruno Haible  <bruno@clisp.org>
19886
19887         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
19888         exponents in %e and %g results on 'long double'. Needed for mingw's
19889         improved *printf functions.
19890         * tests/test-vasprintf-posix.c (test_function): Likewise.
19891         * tests/test-snprintf-posix.h (test_function): Likewise.
19892         * tests/test-sprintf-posix.h (test_function): Likewise.
19893         Reported by Eric Blake.
19894
19895 2008-09-21  Bruno Haible  <bruno@clisp.org>
19896
19897         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
19898         * tests/test-sprintf-posix.h (test_function): Likewise.
19899
19900 2008-09-21  Bruno Haible  <bruno@clisp.org>
19901
19902         * modules/getpass (Depends-on): Add strdup-posix.
19903
19904         New module 'strdup-posix'.
19905         * modules/strdup-posix: New file.
19906         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
19907         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
19908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19909         REPLACE_STRDUP.
19910         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
19911         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
19912         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19913         strdup-posix.
19914
19915         * modules/strdup (Depends-on): Remove malloc-posix.
19916
19917 2008-09-20  Bruno Haible  <bruno@clisp.org>
19918
19919         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
19920         Wildenhues.
19921
19922 2008-09-20  Bruno Haible  <bruno@clisp.org>
19923
19924         Ensure that wint_t gets defined on IRIX 5.3.
19925         * lib/wchar.in.h (wint_t): Define if not defined by the system.
19926         * lib/wctype.in.h (wint_t): Likewise.
19927         (__wctype_wint_t): Remove type.
19928         (isw*): Use wint_t instead of __wctype_wint_t.
19929         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
19930         * modules/wchar (Files): Add m4/wint_t.m4.
19931         (Makefile.am): Substitute HAVE_WINT_T.
19932         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
19933         * tests/test-wctype.c: Check that wint_t is defined.
19934         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
19935         * doc/posix-headers/wctype.texi: Likewise.
19936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19937
19938 2008-09-18  Bruno Haible  <bruno@clisp.org>
19939
19940         * gnulib-tool (func_exit): Update comment.
19941
19942 2008-09-18  Simon Josefsson  <simon@josefsson.org>
19943
19944         * modules/getaddrinfo (Depends-on): Remove strdup, this module
19945         assumes strdup exists and does not depend on strdup to return
19946         ENOMEM on out of memory conditions.
19947
19948 2008-09-18  Bruno Haible  <bruno@clisp.org>
19949
19950         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
19951         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
19952         digits for the exponent.
19953
19954 2008-09-18  Jim Meyering  <meyering@redhat.com>
19955             Bruno Haible  <bruno@clisp.org>
19956
19957         * lib/vasnprintf.c (decimal_point_char): Define also if
19958         NEED_PRINTF_INFINITE_LONG_DOUBLE.
19959
19960 2008-09-16  Bruno Haible  <bruno@clisp.org>
19961         and Eric Blake  <ebb9@byu.net>
19962
19963         vasnprintf: support Irix 5.3
19964         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
19965         that mishandle long double infinity.
19966         Reported by Tom G. Christensen.
19967
19968 2008-09-16  Bruno Haible  <bruno@clisp.org>
19969
19970         * doc/glibc-functions/scandir.texi: Mention the function is missing on
19971         Solaris 9.
19972         * doc/glibc-functions/alphasort.texi: Likewise.
19973         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
19974
19975 2008-09-16  Jim Meyering  <meyering@redhat.com>
19976
19977         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
19978         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
19979         a umask modification leak out of a subshell.  Otherwise, the
19980         opensolaris /bin/sh would be accepted and thus cause unwarranted
19981         failures in the coreutils test suite.
19982
19983 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
19984
19985         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
19986         to succeed.
19987
19988 2008-09-16  Jim Meyering  <meyering@redhat.com>
19989
19990         avoid spurious test failure when library is built without ACL support
19991         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
19992         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
19993         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
19994         * tests/test-copy-acl.sh: Likewise.
19995
19996 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19997
19998         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
19999         based on character occurrence counts.
20000
20001 2008-09-15  Eric Blake  <ebb9@byu.net>
20002
20003         tests: avoid some compiler warnings
20004         * tests/test-memchr.c (main): Pass NULL indirectly.
20005         * tests/test-closein.c (main): Avoid unused variable.
20006
20007 2008-09-15  Bruno Haible  <bruno@clisp.org>
20008
20009         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20010         are missing on OpenBSD 4.0 individually.
20011         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20012
20013 2008-09-15  Bruno Haible  <bruno@clisp.org>
20014
20015         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20016         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20017         * doc/posix-functions/perror.texi: Likewise.
20018         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20019         is missing.
20020         Reported by Eric Blake.
20021
20022         * lib/errno.in.h: Use replacement values >= 2000.
20023         Reported by Eric Blake.
20024
20025 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20026
20027         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20028         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20029         limit.
20030         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20031         compareseq was aborted.
20032
20033 2008-09-14  Bruno Haible  <bruno@clisp.org>
20034
20035         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20036         yvec_edit_count.
20037         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20038         (fstrcmp_bounded): Simplify result computation accordingly.
20039
20040 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20041
20042         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20043         (fstrcmp): Define in terms of fstrcmp_bounded.
20044         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20045         lower_bound argument.
20046         Return quickly if the result is certainly < lower_bound.
20047         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20048
20049 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20050
20051         * lib/diffseq.h (EARLY_ABORT): New macro.
20052         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20053         evaluates to true.
20054
20055 2008-09-14  Bruno Haible  <bruno@clisp.org>
20056
20057         * modules/perror-tests: New file.
20058         * tests/test-perror.sh: New file.
20059         * tests/test-perror.c: New file.
20060
20061         New module 'perror'.
20062         * lib/stdio.in.h (perror): New declaration.
20063         * lib/perror.c: New file.
20064         * m4/perror.m4: New file.
20065         * modules/perror: New file.
20066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20067         * doc/posix-functions/perror.texi: Mention the perror module.
20068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20069         REPLACE_PERROR.
20070         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20071         REPLACE_PERROR.
20072
20073 2008-09-14  Bruno Haible  <bruno@clisp.org>
20074
20075         * modules/stdio (Makefile.am): Reorder to match the order in
20076         lib/stdio.in.h.
20077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20078
20079 2008-09-13  Bruno Haible  <bruno@clisp.org>
20080
20081         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20082
20083 2008-09-13  Bruno Haible  <bruno@clisp.org>
20084
20085         Extend strerror to cover the added errno values.
20086         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20087         (rpl_strerror): Provide error messages for the added errno values and
20088         for the WSA* values.
20089         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20090         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20091         strerror.
20092         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20093         * modules/strerror (Depends-on): Add errno.
20094         * doc/posix-functions/strerror.texi: Document the change.
20095         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20096         and EOVERFLOW.
20097
20098 2008-09-13  Bruno Haible  <bruno@clisp.org>
20099
20100         * modules/EOVERFLOW: Remove file.
20101         * m4/eoverflow.m4: Remove file.
20102         * modules/EOVERFLOW-tests: Remove file.
20103         * tests/test-EOVERFLOW.c: Remove file.
20104         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20105         * modules/ftell (Depends-on): Likewise.
20106         * modules/getdelim (Depends-on): Likewise.
20107         * modules/getugroups (Depends-on): Likewise.
20108         * modules/poll (Depends-on): Likewise.
20109         * modules/snprintf (Depends-on): Likewise.
20110         * modules/sprintf-posix (Depends-on): Likewise.
20111         * modules/vasnprintf (Depends-on): Likewise.
20112         * modules/vasprintf (Depends-on): Likewise.
20113         * modules/vfprintf-posix (Depends-on): Likewise.
20114         * modules/vsnprintf (Depends-on): Likewise.
20115         * modules/vsprintf-posix (Depends-on): Likewise.
20116         * modules/xvasprintf (Depends-on): Likewise.
20117         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20118         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20119         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20120         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20121         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20122         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20123         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20124         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20125         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20126         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20127         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20128         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20129         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20130         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20131         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20132         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20133         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20134         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20135         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20136         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20137         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20138         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20139         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20140         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20141         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20142         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20143         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20144         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20145         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20146         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20147         * MODULES.html.sh: Remove EOVERFLOW.
20148         * NEWS: Mention the change.
20149
20150 2008-09-13  Bruno Haible  <bruno@clisp.org>
20151
20152         * modules/errno-tests: New file.
20153         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20154
20155         * lib/errno.in.h: New file.
20156         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20157         * modules/errno: New file.
20158         * doc/posix-headers/errno.texi: Update documentation.
20159         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20160
20161 2008-09-13  Bruno Haible  <bruno@clisp.org>
20162
20163         * tests/test-poll.c: Use #if for native Windows, rather than testing
20164         __MSVCRT__.
20165
20166 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20167             Bruno Haible  <bruno@clisp.org>
20168
20169         * lib/glob.c: Don't include <pwd.h> on native Windows.
20170         (WINDOWS32): New macro.
20171         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20172
20173 2008-09-13  Bruno Haible  <bruno@clisp.org>
20174
20175         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20176         (ETIMEDOUT): Remove macro.
20177         (glthread_cond_timedwait_multithreaded): New declaration.
20178         (glthread_cond_timedwait): Use it.
20179         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20180         (glthread_cond_timedwait_multithreaded): New function.
20181
20182 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20183
20184         * modules/poll-tests: Do not check for io.h.
20185         * tests/test-poll.c: Check for __MSVCRT__ instead.
20186
20187 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20188
20189         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20190         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20191         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20192
20193 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20194
20195         * modules/poll-tests: New.
20196         * tests/test-poll.c: New.
20197
20198 2008-09-12  Eric Blake  <ebb9@byu.net>
20199
20200         frexp: test for NetBSD failure on -0.0
20201         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20202         not all, bugs from NetBSD 3.0 have been fixed.
20203         * doc/posix-functions/frexp.texi (frexp): Document bug.
20204         Reported by Thomas Klausner.
20205
20206         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20207         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20208         literal -0.0.
20209         Reported by Jonathan C. Patschke <jp@centtech.com>.
20210
20211 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20212
20213         * lib/glthread/cond.h: Use dummy implementation also if
20214         USE_WIN32_THREADS.
20215
20216 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20217
20218         * modules/fnmatch-posix (License): Change to LGPLv2+.
20219         * modules/fnmatch-gnu (License): Likewise.
20220
20221 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20222
20223         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20224
20225 2008-09-11  Jim Meyering  <meyering@redhat.com>
20226
20227         * users.txt: Add gtk-vnc.
20228
20229 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20230
20231         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20232         rotate amounts.
20233
20234         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20235         required for 16-bit and 8-bit rotates.
20236         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20237         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20238         UINT8_MAX instead of hard-coded constants.
20239         Suggested by Paul Eggert.
20240
20241 2008-09-07  Bruno Haible  <bruno@clisp.org>
20242
20243         * tests/test-striconveh.c (main): Check behaviour when converting from
20244         UTF-7.
20245
20246         Make striconveh work better with stateful encodings.
20247         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20248         that iconv does not increment the inptr when returning -1/EINVAL.
20249
20250 2008-09-07  Bruno Haible  <bruno@clisp.org>
20251
20252         * build-aux/config.rpath: Update according to libtool-2.2.6.
20253         * build-aux/config.libpath: Likewise.
20254
20255 2008-09-06  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20258         * lib/freadptr.c (freadptr): Likewise.
20259         * lib/freadseek.c (freadptrinc): Likewise.
20260         Reported by Simon Josefsson.
20261
20262 2008-09-06  Bruno Haible  <bruno@clisp.org>
20263
20264         * modules/freadptr (License): Change to LGPLv2+.
20265         * modules/freadseek (License): Likewise.
20266         Suggested by Eric Blake.
20267
20268         * modules/memchr2 (License): Change to LGPLv2+.
20269         Approved by Eric Blake.
20270
20271 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20272             Bruno Haible  <bruno@clisp.org>
20273
20274         Make gnulib-tool work with native 'sed' on AIX.
20275         * gnulib-tool (sed_noop): New variable.
20276         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20277         func_add_or_update, func_create_testdir): Use it to initialize sed
20278         script variables.
20279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20280
20281 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20282             Bruno Haible  <bruno@clisp.org>
20283
20284         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20285         also works after #include directives.
20286
20287 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
20288
20289         getdate.y: reject an out-of-range timezone value
20290         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20291         the range [-24...+24].  When specified with only one or two digits,
20292         * tests/test-getdate.c: Tests for the fix.
20293         * doc/getdate.texi: Document this change.
20294
20295 2008-09-03  Bruno Haible  <bruno@clisp.org>
20296
20297         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20298
20299 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20300
20301         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20302         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20303         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20304         Blake <ebb9@byu.net>.
20305
20306         * tests/test-bitrotate.c: Add more test vectors.
20307
20308 2008-09-02  Eric Blake  <ebb9@byu.net>
20309
20310         vasnprintf-posix: handle large precision via %.*d
20311         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20312         when handling it ourselves.
20313         * tests/test-vasnprintf-posix.c (test_function): Add test.
20314         * tests/test-snprintf-posix.h (test_function): Likewise.
20315         * tests/test-sprintf-posix.h (test_function): Likewise.
20316         * tests/test-vasprintf-posix.c (test_function): Likewise.
20317         Reported by Alain Guibert.
20318
20319 2008-09-01  Eric Blake  <ebb9@byu.net>
20320
20321         c-stack: make configure-time check more robust
20322         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20323         successful sigaction call.
20324         Reported by Tom G. Christensen.
20325
20326 2008-09-01  Bruno Haible  <bruno@clisp.org>
20327
20328         New module 'findprog-lgpl'.
20329         * modules/findprog-lgpl: New file.
20330         * lib/findprog-lgpl.c: New file.
20331         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20332         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20333         to decide whether to use strdup or xstrdup, concatenated_filename or
20334         xconcatenated_filename.
20335
20336 2008-09-01  Bruno Haible  <bruno@clisp.org>
20337
20338         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20339         'xconcat-filename' (GPL).
20340         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20341         (License): Change to LGPLv2+.
20342         * modules/xconcat-filename: New file.
20343         * lib/concat-filename.h (concatenated_filename): Change specification.
20344         (xconcatenated_filename): New declaration.
20345         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20346         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20347         memory situations.
20348         * lib/xconcat-filename.c: New file.
20349         * NEWS: Mention the change.
20350         * lib/findprog.c: Include concat-filename.h, not filename.h.
20351         (find_in_path): Use xconcatenated_filename instead of
20352         concatenated_filename.
20353         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20354         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20355         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20356         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20357         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20358         instead of concatenated_filename.
20359         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20360         (execute_java_class): Use xconcatenated_filename instead of
20361         concatenated_filename.
20362         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20363         * modules/javacomp (Depends-on): Likewise.
20364         * modules/javaexec (Depends-on): Likewise.
20365
20366 2008-09-01  Bruno Haible  <bruno@clisp.org>
20367
20368         Split module 'filename' into 'filename' and 'concat-filename'.
20369         * modules/filename: Keep only lib/filename.h.
20370         (License): Change to LGPLv2+.
20371         * modules/concat-filename: New file, extracted from modules/filename.
20372         * lib/filename.h (concatenated_filename): Remove declaration.
20373         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20374         * lib/concat-filename.c: Include concat-filename.h.
20375         * NEWS: Mention the change.
20376
20377 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20378
20379         * lib/bitrotate.h (rotl8, rotr8): Add.
20380
20381         * modules/bitrotate (configure.ac): Need
20382         AC_REQUIRE([AC_C_INLINE]).
20383         (Description): Mention stdint.h.  Reported by Bruno Haible
20384         <bruno@clisp.org>.
20385
20386         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20387         Paolo Bonzini <bonzini@gnu.org>.
20388
20389 2008-08-31  Bruno Haible  <bruno@clisp.org>
20390
20391         Assume Solaris specific bi-arch conventions on Solaris systems.
20392         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20393         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20394         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20395         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20396         like acl_libdirstem.
20397         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20398         acl_libdirstem.
20399         * NEWS: Mention the change.
20400         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20401
20402 2008-08-31  Jim Meyering  <meyering@redhat.com>
20403
20404         * lib/strftime.h: Add comments describing the two added arguments.
20405
20406         remove duplicate #include directives
20407         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20408         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20409
20410 2008-08-31  Bruno Haible  <bruno@clisp.org>
20411
20412         New module 'sigpipe-die'.
20413         * modules/sigpipe-die: New file.
20414         * lib/sigpipe-die.h: New file.
20415         * lib/sigpipe-die.c: New file.
20416         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20417
20418 2008-08-31  Bruno Haible  <bruno@clisp.org>
20419
20420         Don't override previously installed signal handlers.
20421         * lib/fatal-signal.c (saved_sigactions): New variable.
20422         (uninstall_handlers): Reset the signal to the saved handler, not
20423         to SIG_DFL (except when ignored).
20424         (install_handlers): Save the previous handlers.
20425
20426 2008-08-30  Bruno Haible  <bruno@clisp.org>
20427
20428         * gnulib-tool (func_reset_sigpipe): New function.
20429         (func_get_automake_snippet, func_modules_transitive_closure,
20430         func_import): Invoke it before a join command that reads from stdin,
20431         to avoid "echo: write error: Broken pipe" error messages on stderr.
20432         Reported by Sam Steingold <sds@gnu.org>.
20433
20434 2008-08-30  Bruno Haible  <bruno@clisp.org>
20435
20436         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20437         Code copied from m4/open.m4.
20438         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20439         access and the filename ends in a slash. Code copied from lib/open.c.
20440         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20441         * tests/test-fopen.c (main): Check against bug with trailing slash.
20442
20443 2008-08-29  Bruno Haible  <bruno@clisp.org>
20444
20445         Avoid some "gcc -pedantic" warnings.
20446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20447         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20448         * lib/dirent.in.h: Likewise.
20449         * lib/fcntl.in.h: Likewise.
20450         * lib/float.in.h: Likewise.
20451         * lib/iconv.in.h: Likewise.
20452         * lib/inttypes.in.h: Likewise.
20453         * lib/locale.in.h: Likewise.
20454         * lib/math.in.h: Likewise.
20455         * lib/netinet_in.in.h: Likewise.
20456         * lib/search.in.h: Likewise.
20457         * lib/signal.in.h: Likewise.
20458         * lib/stdarg.in.h: Likewise.
20459         * lib/stdint.in.h: Likewise.
20460         * lib/stdio.in.h: Likewise.
20461         * lib/stdlib.in.h: Likewise.
20462         * lib/string.in.h: Likewise.
20463         * lib/strings.in.h: Likewise.
20464         * lib/sys_select.in.h: Likewise.
20465         * lib/sys_socket.in.h: Likewise.
20466         * lib/sys_stat.in.h: Likewise.
20467         * lib/sys_time.in.h: Likewise.
20468         * lib/sysexits.in.h: Likewise.
20469         * lib/time.in.h: Likewise.
20470         * lib/unistd.in.h: Likewise.
20471         * lib/wchar.in.h: Likewise.
20472         * lib/wctype.in.h: Likewise.
20473         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20474         * modules/fchdir (Makefile.am): Likewise.
20475         * modules/fcntl (Makefile.am): Likewise.
20476         * modules/float (Makefile.am): Likewise.
20477         * modules/iconv_open (Makefile.am): Likewise.
20478         * modules/inttypes (Makefile.am): Likewise.
20479         * modules/locale (Makefile.am): Likewise.
20480         * modules/math (Makefile.am): Likewise.
20481         * modules/netinet_in (Makefile.am): Likewise.
20482         * modules/search (Makefile.am): Likewise.
20483         * modules/signal (Makefile.am): Likewise.
20484         * modules/stdarg (Makefile.am): Likewise.
20485         * modules/stdint (Makefile.am): Likewise.
20486         * modules/stdio (Makefile.am): Likewise.
20487         * modules/stdlib (Makefile.am): Likewise.
20488         * modules/string (Makefile.am): Likewise.
20489         * modules/strings (Makefile.am): Likewise.
20490         * modules/sys_select (Makefile.am): Likewise.
20491         * modules/sys_socket (Makefile.am): Likewise.
20492         * modules/sys_stat (Makefile.am): Likewise.
20493         * modules/sys_time (Makefile.am): Likewise.
20494         * modules/sysexits (Makefile.am): Likewise.
20495         * modules/time (Makefile.am): Likewise.
20496         * modules/unistd (Makefile.am): Likewise.
20497         * modules/wchar (Makefile.am): Likewise.
20498         * modules/wctype (Makefile.am): Likewise.
20499         Reported by Reuben Thomas <rrt@sc3d.org>.
20500
20501 2008-08-29  Bruno Haible  <bruno@clisp.org>
20502
20503         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20504         any more.
20505
20506 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20507
20508         * MODULES.html.sh (Misc): Add bitrotate.
20509
20510         * modules/bitrotate: New file.
20511
20512         * lib/bitrotate.h: New file.
20513
20514         * modules/bitrotate-tests: New file.
20515
20516         * tests/test-bitrotate.c: New file.
20517
20518         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20519         on the bitrotate module.
20520
20521         * lib/arctwo.c: Use new bitrotate module.
20522
20523 2008-08-29  Jim Meyering  <meyering@redhat.com>
20524
20525         bootstrap: merge changes from coreutils
20526         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20527         of copied files.  Remove a kludge, now that this is fixed.
20528         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20529         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20530         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20531
20532 2008-08-29  Bruno Haible  <bruno@clisp.org>
20533
20534         * MODULES.html.sh: Remove --cvs-urls option.
20535
20536 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20537
20538         maint.mk: adjust to file name change
20539         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20540
20541 2008-08-28  Jim Meyering  <meyering@redhat.com>
20542
20543         * modules/getndelim2 (License): Relicense to LGPLv2+.
20544         Approved by Richard Stallman for the version of 1995, and by
20545         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20546
20547 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20548
20549         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20550         dummy if one is not available.  Do not touch them if
20551         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20552         (getc_maybe_unlocked): New.
20553         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20554
20555 2008-08-26  Eric Blake  <ebb9@byu.net>
20556
20557         doc/INSTALL: resync from autoconf
20558         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20559         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20560         moving...
20561         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20562         * INSTALL: Regenerate.
20563         * INSTALL.ISO: New file.
20564         * INSTALL.UTF-8: Likewise.
20565
20566 2008-08-26  Jim Meyering  <meyering@redhat.com>
20567
20568         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20569         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20570         these definitions conditional, so that they may be overridden, too.
20571
20572 2008-08-26  Bruno Haible  <bruno@clisp.org>
20573
20574         Generate INSTALL file variants with prettier quotes.
20575         * doc/Makefile (INSTALL_PRELUDE): New macro.
20576         (INSTALL): Use it.
20577         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20578
20579 2008-08-26  Bruno Haible  <bruno@clisp.org>
20580
20581         Run makeinfo in an English locale.
20582         * doc/Makefile (MAKEINFO): New variable.
20583
20584 2008-08-26  Bruno Haible  <bruno@clisp.org>
20585
20586         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20587         Suggested by Eric Blake.
20588
20589 2008-08-25  Bruno Haible  <bruno@clisp.org>
20590
20591         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20592
20593 2008-08-25  Eric Blake  <ebb9@byu.net>
20594
20595         c-stack: test that stack overflow can be caught
20596         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20597         that platform allows handling stack overflow; at least OS/2 EMX
20598         has sigaltstack, but crashes before transferring control to
20599         handler on stack overflow.
20600         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20601         check for HAVE_STACK_OVERFLOW_HANDLING.
20602         Reported by Elbert Pol.
20603
20604 2008-08-25  Bruno Haible  <bruno@clisp.org>
20605
20606         * doc/posix-functions/strftime.texi: Fix description of strftime
20607         module.
20608
20609 2008-08-24  Bruno Haible  <bruno@clisp.org>
20610
20611         * tests/uniwidth/test-uc_width2.c: New file.
20612         * tests/uniwidth/test-uc_width2.sh: New file.
20613         * modules/uniwidth/width-tests (Files): Add the new files.
20614         (TESTS): Add uniwidth/test-uc_width2.sh.
20615         (TESTS_ENVIRONMENT): New variable.
20616         (check_PROGRAMS): Add test-uc_width2.
20617         (test_uc_width2_SOURCES): New variable.
20618
20619         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20620         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20621         not 0x00AB.
20622         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20623
20624 2008-08-22  Eric Blake  <ebb9@byu.net>
20625
20626         test-lock, test-tls: mention why a test is skipped
20627         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20628         skipped.
20629         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20630
20631         count-one-bits: relax license
20632         * modules/count-one-bits (License): Relicense to LGPLv2+.
20633         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20634
20635 2008-08-22  Andreas Schwab  <schwab@suse.de>
20636
20637         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20638         Remove spurious space in assignment.
20639
20640 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20641
20642         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20643         Paul Eggert <eggert@CS.UCLA.EDU>.
20644
20645 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20646
20647         * modules/gettext: Add m4/threadlib.m4.
20648
20649 2008-08-19  Eric Blake  <ebb9@byu.net>
20650
20651         test-c-stack: fix compilation failure on FreeBSD 5.0
20652         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20653         headers before <sys/resource.h>.
20654         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20655         the bug.
20656         Reported by Nelson H. F. Beebe.
20657
20658         strverscmp: migrate from "strverscmp.h" to <string.h>
20659         * modules/string (Makefile.am): Add new hooks.
20660         * modules/strverscmp (Files): Remove strverscmp.h.
20661         (Depends-on): Add string.
20662         (configure.ac): Add indicator.
20663         (Include): Mention new header.
20664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20665         defaults.
20666         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20667         results.
20668         * lib/strverscmp.h: Delete.
20669         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20670         * tests/test-strverscmp.c (includes): Adjust client.
20671         * lib/check-version.c (includes): Likewise.
20672         * NEWS: Document the change.
20673
20674         strverscmp: add unit test
20675         * modules/strverscmp-tests: New file.
20676         * tests/test-strverscmp.c: Likewise.
20677
20678 2008-08-19  Simon Josefsson  <simon@josefsson.org>
20679
20680         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
20681         regarding Windows crypto stuff, from Mono.
20682
20683 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
20684
20685         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
20686         if present, for intel RND.  Return error on failures.
20687
20688 2008-08-18  Ben Pfaff  <blp@gnu.org>
20689
20690         gitlog-to-changelog: give better diagnostic for failed pipe-open
20691         * build-aux/gitlog-to-changelog: Improve error message: suggest
20692         that the version of Git may be too old.
20693
20694 2008-08-18  Simon Josefsson  <simon@josefsson.org>
20695
20696         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
20697         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
20698
20699 2008-08-18  Bruno Haible  <bruno@clisp.org>
20700
20701         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20702         pthread_in_use().
20703
20704 2008-08-18  Bruno Haible  <bruno@clisp.org>
20705
20706         * lib/glthread/threadlib.c: Include <pthread.h>.
20707
20708 2008-08-18  Bruno Haible  <bruno@clisp.org>
20709
20710         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20711         glthread_recursive_lock_* macros.
20712         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20713         Fix syntax error.
20714
20715 2008-08-18  Bruno Haible  <bruno@clisp.org>
20716
20717         * lib/glthread/thread.c: Avoid forcing a context switch right after
20718         thread creation.
20719
20720 2008-08-17  Bruno Haible  <bruno@clisp.org>
20721
20722         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20723         * lib/glthread/thread.h: Provide Win32 specific implementation.
20724         * modules/thread (Files): Add lib/glthread/thread.c.
20725         (Depends-on): Add lock.
20726         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20727
20728 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20729
20730         New module 'yield'.
20731         * modules/yield: New file.
20732         * lib/glthread/yield.h: New file.
20733         * m4/yield.m4: New file.
20734         * MODULES.html.sh (Multithreading): Add yield.
20735
20736 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20737
20738         New module 'thread'.
20739         * modules/thread: New file.
20740         * lib/glthread/thread.h: New file.
20741         * m4/thread.m4: New file.
20742         * MODULES.html.sh (Multithreading): Add thread.
20743
20744 2008-08-17  Bruno Haible  <bruno@clisp.org>
20745
20746         * lib/glthread/lock.h: Include <stdlib.h> always.
20747         * lib/glthread/tls.h: Likewise.
20748         * lib/glthread/cond.h: Likewise.
20749
20750 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20751
20752         New module 'cond'.
20753         * modules/cond: New file.
20754         * lib/glthread/cond.h: New file.
20755         * lib/glthread/cond.c: New file.
20756         * m4/cond.m4: New file.
20757         * MODULES.html.sh (Multithreading): Add cond.
20758
20759 2008-08-16  Eric Blake  <ebb9@byu.net>
20760
20761         c-stack: fix regression on Irix 5.3 from 2008-06-21
20762         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
20763         sa_sigaction...
20764         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
20765         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
20766         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
20767         * modules/signal (Makefile.am): Use the value.
20768         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
20769         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
20770         * doc/posix-headers/signal.texi (signal.h): Document this
20771         portability issue.
20772         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
20773         Reported by Tom G. Christensen.
20774
20775 2008-08-17  Bruno Haible  <bruno@clisp.org>
20776
20777         New module 'threadlib'.
20778         * modules/threadlib: New file.
20779         * lib/glthread/threadlib.c: New file, extracted from
20780         lib/glthread/lock.c.
20781         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
20782         functions.
20783         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
20784         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
20785         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
20786         macros.
20787         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
20788         (gl_DISABLE_THREADS): Remove macro.
20789         * modules/lock (Files): Remove build-aux/config.rpath.
20790         (Depends-on): Remove havelib. Add threadlib.
20791         (configure.ac-early): Remove section.
20792         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
20793         * modules/tls (Depends-on): Remove lock. Add threadlib.
20794         (Link): New section, copied from threadlib.
20795         * MODULES.html.sh (Multithreading): Add threadlib.
20796
20797 2008-08-14  Bruno Haible  <bruno@clisp.org>
20798
20799         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
20800         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
20801         glthread_rwlock_unlock, glthread_rwlock_destroy,
20802         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
20803         glthread_recursive_lock_destroy): Define as macros always.
20804         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
20805         glthread_lock_lock.
20806         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
20807         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
20808         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
20809         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
20810         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
20811         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
20812         (glthread_recursive_lock_lock_func): Renamed from
20813         glthread_recursive_lock_lock.
20814         (glthread_recursive_lock_unlock_func): Renamed from
20815         glthread_recursive_lock_unlock.
20816         (glthread_recursive_lock_destroy_func): Renamed from
20817         glthread_recursive_lock_destroy.
20818
20819 2008-08-14  Bruno Haible  <bruno@clisp.org>
20820
20821         * lib/glthread/lock.h: Renamed from lib/lock.h.
20822         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
20823         * lib/glthread/tls.h: Renamed from lib/tls.h.
20824         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
20825         * lib/fstrcmp.c: Update includes.
20826         * lib/strsignal.c: Update includes.
20827         * modules/lock (Files, Makefile.am): Update.
20828         (Include): Change to "glthread/lock.h".
20829         * modules/tls (Files, Makefile.am): Update.
20830         (Include): Change to "glthread/tls.h".
20831         * tests/test-lock.c: Update includes.
20832         * tests/test-tls.c: Update includes.
20833         * NEWS: Mention the renamed header files.
20834
20835 2008-08-11  Jim Meyering  <meyering@redhat.com>
20836
20837         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
20838
20839 2008-08-11  Eric Blake  <ebb9@byu.net>
20840
20841         test-c-stack: avoid C99-ism
20842         * tests/test-c-stack.c (main): Fix whitespace, move declaration
20843         before statement.
20844         Reported by Alain Guibert.
20845
20846 2008-08-10  Jim Meyering  <meyering@redhat.com>
20847
20848         ensure that return value of uinttostr et al are not ignored
20849         * lib/inttostr.h (__GNUC_PREREQ): Define.
20850         (__attribute_warn_unused_result__): Define.
20851         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
20852
20853 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
20854
20855         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
20856         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
20857
20858 2008-08-07  Jim Meyering  <meyering@redhat.com>
20859
20860         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
20861
20862         * modules/mkstemp (License): Relicense under LGPLv2+.
20863         * modules/tempname (License): Likewise.
20864
20865 2008-08-06  Bruno Haible  <bruno@clisp.org>
20866
20867         * lib/poll.c (poll): Further micro-optimization.
20868
20869 2008-08-06  Jim Meyering  <meyering@redhat.com>
20870
20871         inet_pton.c: use locale-independent tolower
20872         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
20873         (inet_pton6): Use c_tolower rather than tolower.
20874         * modules/inet_pton (Depends-on): Add c-ctype.
20875
20876 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
20877
20878         * lib/poll.c (poll): Avoid division when timeout is 0, cache
20879         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
20880
20881 2008-08-06  Jim Meyering  <meyering@redhat.com>
20882
20883         * modules/inet_pton (License): Relicense under LGPLv2+.
20884
20885 2008-08-03  Bruno Haible  <bruno@clisp.org>
20886
20887         Additional non-aborting API for lock and tls.
20888         * lib/lock.h: Include <errno.h>.
20889         (glthread_lock_init): New macro/function.
20890         (gl_lock_init): Define as wrapper around glthread_lock_init.
20891         (glthread_lock_lock): New macro/function.
20892         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
20893         (glthread_lock_unlock): New macro/function.
20894         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
20895         (glthread_lock_destroy): New macro/function.
20896         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
20897         (glthread_rwlock_init): New macro/function.
20898         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
20899         (glthread_rwlock_rdlock): New macro/function.
20900         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
20901         (glthread_rwlock_wrlock): New macro/function.
20902         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
20903         (glthread_rwlock_unlock): New macro/function.
20904         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
20905         (glthread_rwlock_destroy): New macro/function.
20906         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
20907         (glthread_recursive_lock_init): New macro/function.
20908         (gl_recursive_lock_init): Define as wrapper around
20909         glthread_recursive_lock_init.
20910         (glthread_recursive_lock_lock): New macro/function.
20911         (gl_recursive_lock_lock): Define as wrapper around
20912         glthread_recursive_lock_lock.
20913         (glthread_recursive_lock_unlock): New macro/function.
20914         (gl_recursive_lock_unlock): Define as wrapper around
20915         glthread_recursive_lock_unlock.
20916         (glthread_recursive_lock_destroy): New macro/function.
20917         (gl_recursive_lock_destroy): Define as wrapper around
20918         glthread_recursive_lock_destroy.
20919         (glthread_once): New macro/function.
20920         (gl_once): Define as wrapper around glthread_once.
20921         Update function declarations.
20922         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
20923         glthread_rwlock_init. Return error code.
20924         (glthread_rwlock_rdlock_multithreaded): Renamed from
20925         glthread_rwlock_rdlock. Return error code.
20926         (glthread_rwlock_wrlock_multithreaded): Renamed from
20927         glthread_rwlock_wrlock. Return error code.
20928         (glthread_rwlock_unlock_multithreaded): Renamed from
20929         glthread_rwlock_unlock. Return error code.
20930         (glthread_rwlock_destroy_multithreaded): Renamed from
20931         glthread_rwlock_destroy. Return error code.
20932         (glthread_recursive_lock_init_multithreaded): Renamed from
20933         glthread_recursive_lock_init. Return error code.
20934         (glthread_recursive_lock_lock_multithreaded): Renamed from
20935         glthread_recursive_lock_lock. Return error code.
20936         (glthread_recursive_lock_unlock_multithreaded): Renamed from
20937         glthread_recursive_lock_unlock. Return error code.
20938         (glthread_recursive_lock_destroy_multithreaded): Renamed from
20939         glthread_recursive_lock_destroy. Return error code.
20940         (glthread_once_call): Make static.
20941         (glthread_once_multithreaded): Renamed from glthread_once.
20942         * lib/tls.h: Include <errno.h>.
20943         (glthread_tls_key_init): New macro/function.
20944         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
20945         (glthread_tls_set): New macro/function.
20946         (gl_tls_set): Define as wrapper around glthread_tls_set.
20947         (glthread_tls_key_destroy): New macro/function.
20948         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
20949         Update function declarations.
20950         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
20951         glthread_tls_get.
20952         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20953
20954 2008-08-04  Eric Blake  <ebb9@byu.net>
20955
20956         gnumakefile: use space, not TAB, outside of targets
20957         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
20958
20959 2008-08-02  Jim Meyering  <meyering@redhat.com>
20960
20961         getdate.y: avoid locale-dependent date parsing failure
20962         In Turkish locales, getdate would fail to recognize keywords
20963         containing a lowercase "i".  The solution is not to rely on
20964         locale-sensitive case-conversion.
20965         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
20966         (lookup_word): Use c_toupper in place of toupper.
20967         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
20968         Reported by Vefa Bicakci <bicave@superonline.com> in
20969         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
20970         * modules/getdate (Depends-on): Add c-ctype.
20971
20972 2008-08-02  Bruno Haible  <bruno@clisp.org>
20973
20974         * gnulib-tool (func_import): When updating or creating a .gitignore
20975         file, prepend each added line with a slash, and ignore leading slashes
20976         from the existing lines.
20977         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20978
20979 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20980
20981         Portability fix for GNU make 3.79.1.
20982         * top/GNUmakefile: Avoid 'else COND', which older GNU make
20983         versions do not understand.
20984
20985 2008-08-01  Bruno Haible  <bruno@clisp.org>
20986
20987         Work around bug of HP-UX 10.20 cc with -0.0 literal.
20988         * tests/test-isnanf.h (zero): New variable.
20989         (main): Avoid literal -0.0f.
20990         * tests/test-isnand.h (zero): New variable.
20991         (main): Avoid literal -0.0.
20992         * tests/test-isnanl.h (zero): New variable.
20993         (main): Avoid literal -0.0L.
20994         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
20995         (test_float, test_double, test_long_double): Avoid literals -0.0f,
20996         -0.0, -0.0L.
20997         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
20998         (test_signbitd): Avoid literal -0.0.
20999         (test_signbitl): Avoid literal -0.0L.
21000         * tests/test-ceilf1.c (zero): New variable.
21001         (main): Avoid literal -0.0f.
21002         * tests/test-ceill.c (zero): New variable.
21003         (main): Avoid literal -0.0L.
21004         * tests/test-floorf1.c (zero): New variable.
21005         (main): Avoid literal -0.0f.
21006         * tests/test-floorl.c (zero): New variable.
21007         (main): Avoid literal -0.0L.
21008         * tests/test-roundf1.c (zero): New variable.
21009         (main): Avoid literal -0.0f.
21010         * tests/test-round1.c (zero): New variable.
21011         (main): Avoid literal -0.0.
21012         * tests/test-roundl.c (zero): New variable.
21013         (main): Avoid literal -0.0L.
21014         * tests/test-truncf1.c (zero): New variable.
21015         (main): Avoid literal -0.0f.
21016         * tests/test-trunc1.c (zero): New variable.
21017         (main): Avoid literal -0.0.
21018         * tests/test-truncl.c (zero): New variable.
21019         (main): Avoid literal -0.0L.
21020         * tests/test-frexp.c (zero): New variable.
21021         (main): Avoid literal -0.0.
21022         * tests/test-frexpl.c (zero): New variable.
21023         (main): Avoid literal -0.0L.
21024         * tests/test-ldexpl.c (zero): New variable.
21025         (main): Avoid literal -0.0L.
21026         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21027         (zerod, zerol): New variables.
21028         (test_function): Avoid literals -0.0, -0.0L.
21029         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21030         (zerod, zerol): New variables.
21031         (test_function): Avoid literals -0.0, -0.0L.
21032         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21033         (zerod, zerol): New variables.
21034         (test_function): Avoid literals -0.0, -0.0L.
21035         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21036         (zerod, zerol): New variables.
21037         (test_function): Avoid literals -0.0, -0.0L.
21038         * tests/test-strtod.c (zero): New variable.
21039         (main): Avoid literal -0.0.
21040         Reported by Jonathan C. Patschke <jp@centtech.com>.
21041
21042 2008-07-31  Jim Meyering  <meyering@redhat.com>
21043
21044         sha256.h: correct definition of SHA224_DIGEST_SIZE
21045         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21046         Reported by Paulie Pena IV <paulie4@gmail.com>.
21047         Define as 224 / 8, rather than as a literal.
21048         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21049         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21050         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21051
21052 2008-07-31  Bruno Haible  <bruno@clisp.org>
21053
21054         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21055         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21056         Reported by Jonathan Patschke <jp@centtech.com>.
21057
21058 2008-07-31  Bruno Haible  <bruno@clisp.org>
21059
21060         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21061         Reported by Paolo Bonzini <bonzini@gnu.org>.
21062
21063 2008-07-30  Eric Blake  <ebb9@byu.net>
21064
21065         test-strtod: allow compilation without -lm
21066         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21067         Reported by Dennis Clarke <blastwave@gmail.com>.
21068
21069 2008-07-28  Jim Meyering  <meyering@redhat.com>
21070
21071         bootstrap: work also when there are no .po files in po/
21072         * build-aux/bootstrap (update_po_files): Complete the change
21073         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21074
21075 2008-07-27  Jim Meyering  <meyering@redhat.com>
21076
21077         * users.txt: Add zile.
21078
21079 2008-07-26  Ben Pfaff  <blp@gnu.org>
21080
21081         Add missing dependencies on new m4/exponent[fdl].m4 files.
21082         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21083         * modules/isnand-nolibm: Add m4/exponentd.m4.
21084         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21085         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21086         m4/isnan[fdl].m4, because the macros actually used moved.
21087         Reported by Jim Meyering.
21088
21089 2008-07-14  Ben Pfaff  <blp@gnu.org>
21090
21091         Add isinf module.
21092         * lib/isinf.c: New file.
21093         * lib/math.in.h: Define isinf macro if we have decided to replace
21094         it.
21095         * m4/isinf.m4: New file.
21096         * m4/math_h.m4: Initialize and substitute variables for isinf
21097         module.
21098         * modules/isinf: New file.
21099         * modules/isinf-tests: New file.
21100         * modules/math: Add substitutions for new module.
21101         * tests/test-isinf.c: New file.
21102         * doc/posix-functions/isinf.texi: Mention new module.
21103         * MODULES.html.sh: Mention new module.
21104
21105 2008-07-14  Ben Pfaff  <blp@gnu.org>
21106
21107         Factor out some macros for use by additional modules.
21108         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21109         exponentf.m4.
21110         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21111         exponentd.m4.
21112         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21113         file exponentl.m4.
21114         * m4/exponentf.m4: New file.
21115         * m4/exponentd.m4: New file.
21116         * m4/exponentl.m4: New file.
21117         * modules/isnanf: Use new file m4/exponentf.m4.
21118         * modules/isnand: Use new file m4/exponentd.m4.
21119         * modules/isnanl: Use new file m4/exponentl.m4.
21120
21121 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21122
21123         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21124         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21125         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21126         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21127
21128         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21129         readlink on platforms without PATH_MAX.
21130
21131 2008-07-21  Eric Blake  <ebb9@byu.net>
21132
21133         Warn, not fail, on stale version.
21134         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21135
21136         Don't allow installation with stale devel version number.
21137         * top/GNUmakefile (_is-install-target): New macro.
21138         (_curr-ver): Forbid installation with stale version number.
21139
21140 2008-07-20  Bruno Haible  <bruno@clisp.org>
21141
21142         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21143         TESTS_ENVIRONMENT.
21144         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21145
21146 2008-07-20  Bruno Haible  <bruno@clisp.org>
21147
21148         * lib/c-stack.h (c_stack_action): Add documentation.
21149         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21150
21151 2008-07-20  Bruno Haible  <bruno@clisp.org>
21152
21153         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21154         * modules/readlink (License): Likewise.
21155
21156 2008-07-17  Eric Blake  <ebb9@byu.net>
21157
21158         * modules/c-stack (Link): Fix typo.
21159
21160         Make c-stack use libsigsegv, when available.
21161         * modules/c-stack (Depends-on): Add libsigsegv.
21162         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21163         needed.
21164         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21165         (segv_handler, overflow_handler, c_stack_action)
21166         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21167         implementation when libsigsegv is available, but only when using
21168         the library is necessary.
21169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21170         comment, explaining why XSI check fails on Linux.
21171         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21172         * tests/test-c-stack2.sh: Tweak skip message.
21173         * NEWS: Document new link-time requirements.
21174
21175 2008-07-16  Eric Blake  <ebb9@byu.net>
21176
21177         c-stack: Expose false positives when not using libsigsegv.
21178         * modules/c-stack-tests (Files): Expand test.
21179         * tests/test-c-stack.c (main): Add means to conditionally trigger
21180         non-overflow SIGSEGV.
21181         * tests/test-c-stack2.sh: New file.
21182
21183 2008-07-14  Bruno Haible  <bruno@clisp.org>
21184
21185         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21186         Reported by Eric Blake.
21187
21188 2008-07-14  Sam Steingold  <sds@gnu.org>
21189             Bruno Haible  <bruno@clisp.org>
21190
21191         New module libsigsegv.
21192         * modules/libsigsegv: New file.
21193         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21194         modifications.
21195         * MODULES.html.sh (Signal handling): New section.
21196
21197 2008-07-14  Bruno Haible  <bruno@clisp.org>
21198
21199         * modules/unictype/ctype-* (Description): Add the word "function".
21200         Improves the resulting doc in MODULES.html.
21201
21202 2008-07-12  Ben Pfaff  <blp@gnu.org>
21203
21204         Add longlong module.
21205         * modules/longlong: New file.
21206
21207 2008-07-12  Bruno Haible  <bruno@clisp.org>
21208
21209         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21210         to empty.
21211
21212 2008-07-10  Ben Pfaff  <blp@gnu.org>
21213
21214         Add isnan module.
21215         * doc/posix-functions/isnan.texi: Mention new module.
21216         * lib/math.in.h: Define isnan macro if we have decided to replace
21217         it.
21218         * m4/isnan.m4: New file.
21219         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21220         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21221         also.
21222         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21223         redundancy.
21224         * m4/math_h.m4: Initialize and substitute variables for isnan
21225         module.
21226         * modules/isnan: New file.
21227         * modules/isnan-tests: New file.
21228         * modules/math: Add substitutions for new module.
21229         * tests/test-isnan.c: New file.
21230         * MODULES.html.sh: Mention new module.
21231
21232 2008-07-10  Ben Pfaff  <blp@gnu.org>
21233
21234         Add isnanf module.
21235         * lib/isnanf.m4: New file.
21236         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21237         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21238         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21239         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21240         * modules/isnanf: New file.
21241         * modules/isnanf-tests: New file.
21242         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21243         files.
21244         * tests/test-isnanf-nolibm.c: factored most of its contents into
21245         new file tests/test-isnanf.h.
21246         * tests/test-isnanf.h: New file.
21247         * tests/test-isnanf.c: New file.
21248         * MODULES.html.sh: Mention new module.
21249         * doc/glibc-functions/isnanf.texi: Mention new module.
21250
21251 2008-07-10  Ben Pfaff  <blp@gnu.org>
21252
21253         Add isnand module.
21254         * lib/isnand.h: New file.
21255         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21256         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21257         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21258         functionality also.
21259         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21260         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21261         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21262         * modules/isnand: New file.
21263         * modules/isnand-tests: New file.
21264         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21265         files.
21266         * tests/test-isnand-nolibm.c: factored most of its contents into
21267         new file tests/test-isnand.h.
21268         * tests/test-isnand.h: New file.
21269         * tests/test-isnand.c: New file.
21270         * MODULES.html.sh: Mention new module.
21271
21272 2008-07-10  Ben Pfaff  <blp@gnu.org>
21273
21274         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21275         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21276         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21277         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21278         * modules/isnanf-nolibm: Update references to renamed files.
21279         * modules/isnand-nolibm: Likewise.
21280         * modules/isnanf-nolibm-tests: Likewise.
21281         * modules/isnand-nolibm-tests: Likewise.
21282         * lib/frexp.c: Likewise.
21283         * lib/isfinite.c: Likewise.
21284         * lib/signbitd.c: Likewise.
21285         * lib/signbitf.c: Likewise.
21286         * lib/vasnprintf.c: Likewise.
21287         * tests/test-ceilf1.c: Likewise.
21288         * tests/test-ceilf2.c: Likewise.
21289         * tests/test-floorf1.c: Likewise.
21290         * tests/test-floorf2.c: Likewise.
21291         * tests/test-frexp.c: Likewise.
21292         * tests/test-round1.c: Likewise.
21293         * tests/test-round2.c: Likewise.
21294         * tests/test-roundf1.c: Likewise.
21295         * tests/test-strtod.c: Likewise.
21296         * tests/test-trunc1.c: Likewise.
21297         * tests/test-trunc2.c: Likewise.
21298         * tests/test-truncf1.c: Likewise.
21299         * tests/test-truncf2.c: Likewise.
21300         * NEWS: Mention the renamed header files.
21301
21302 2008-07-11  Jim Meyering  <meyering@redhat.com>
21303
21304         vc-list-files: make the last-resort awk code more portable
21305         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21306         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21307         does not support it.
21308
21309 2008-07-10  Eric Blake  <ebb9@byu.net>
21310
21311         Work with tar's bootstrap.
21312         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21313         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21314         an m4 comment.
21315
21316 2008-07-09  Jim Meyering  <meyering@redhat.com>
21317
21318         posix-shell.m4: fix typo that made this test malfunction
21319         * m4/posix-shell.m4: Remove capitalization in variable name.
21320
21321 2008-07-08  Bruno Haible  <bruno@clisp.org>
21322
21323         * m4/onceonly.m4: Update comments.
21324         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21325
21326 2008-07-04  Jim Meyering  <meyering@redhat.com>
21327
21328         * users.txt: Add vc-dwim.
21329         (bison, coreutils): Use the gitweb URL.
21330
21331 2008-07-03  Jim Meyering  <meyering@redhat.com>
21332
21333         * users.txt: Add libffcall.  From Sam Steingold.
21334
21335 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
21336
21337         getdate.y: do not ignore TZ with relative day, month or year offset
21338         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21339         relative-date-handling, since otherwise, the latter would clobber the
21340         sole output (an updated Start value) of the tz-handling block.
21341         * tests/test-getdate.c: Tests for the fix
21342
21343 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21344
21345         Recognize 'foo_LIBRARIES += libgnu.a'.
21346         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21347         makefile snippet has already specified an installation location,
21348         also using '+='.
21349
21350 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
21351
21352         getdate.y: factor out common actions
21353         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21354         Use them in place of open-coded actions.
21355
21356 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21357
21358         Add self-test for getdate module.
21359         * modules/getdate-tests: New file.
21360         * tests/test-getdate.c: New file.
21361
21362 2008-06-29  Bruno Haible  <bruno@clisp.org>
21363
21364         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21365         .gitignore.
21366         Reported by Sylvain Beucler <beuc@beuc.net>.
21367
21368 2008-06-29  Bruno Haible  <bruno@clisp.org>
21369
21370         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21371         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21372
21373 2008-06-29  Bruno Haible  <bruno@clisp.org>
21374
21375         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21376         EXTRA_DIST.
21377         Reported by Sylvain Beucler <beuc@beuc.net>.
21378
21379 2008-06-26  Jim Meyering  <meyering@redhat.com>
21380
21381         make several modules depend on the "open" module
21382         This provides slightly increased consistency when opening-for-write
21383         the name of a non-directory spelled with a trailing slash.
21384         * modules/chdir-safer: Likewise.
21385         * modules/chown: Likewise.
21386         * modules/clean-temp: Likewise.
21387         * modules/copy-file: Likewise.
21388         * modules/fchdir: Likewise.
21389         * modules/fcntl-safer: Likewise.
21390         * modules/pipe: Likewise.
21391         * modules/utime: Likewise.
21392         Prompted by Eric Blake and Bruno Haible.
21393
21394 2008-06-24  Andreas Schwab  <schwab@suse.de>
21395
21396         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21397         literals can be used as initializers for global variables.
21398
21399 2008-06-23  Eric Blake  <ebb9@byu.net>
21400
21401         Make gnulib-cache.m4 easier to diff.
21402         * gnulib-tool (func_import): Allow newlines when reading cached
21403         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21404
21405 2008-06-23  Bruno Haible  <bruno@clisp.org>
21406
21407         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21408         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21409         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21410         m4/signalblocking.m4.
21411         (gl_PREREQ_SIGACTION): Don't invoke it.
21412         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21413         gl_PREREQ_SIG_HANDLER_H.
21414         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21415         Don't check for sigaction here.
21416
21417 2008-06-23  Bruno Haible  <bruno@clisp.org>
21418
21419         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21420         (install_handlers): Don't set the SA_RESETHAND flag.
21421
21422 2008-06-23  Bruno Haible  <bruno@clisp.org>
21423
21424         * m4/sigaction.m4: Comment fixes.
21425         * lib/signal.in.h: Likewise.
21426
21427 2008-06-23  Eric Blake  <ebb9@byu.net>
21428
21429         Fix typo.
21430         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21431
21432         Avoid SA_ namespace.
21433         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21434         Reported by Ralf Wildenhues.
21435
21436         Avoid test failure due to SA_RESTORER.
21437         * tests/test-sigaction.c (SA_MASK): New macro.
21438         (main): Avoid failing due to extension flags being set.
21439         Reported by Jim Meyering.
21440
21441         Revert use of sig-handler.h in sigprocmask.c.
21442         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21443         it requires the existence of struct sigaction.
21444         * lib/sigprocmask.c (handler_t): Restore typedef.
21445         (rpl_signal, old_handlers): Use local type.
21446
21447 2008-06-22  Bruno Haible  <bruno@clisp.org>
21448
21449         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21450         conditionally.
21451         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21452
21453 2008-06-22  Bruno Haible  <bruno@clisp.org>
21454
21455         * doc/posix-functions/siginterrupt.texi: Move note.
21456
21457         * lib/signal.in.h (SA_RESTART): New macro.
21458         * lib/sigaction.c: Update comment.
21459
21460         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21461
21462         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21463         (gl_PREREQ_SIGPROCMASK): Invoke it.
21464         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21465
21466         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21467
21468         * lib/sigprocmask.c: Update a comment.
21469
21470 2008-06-21  Eric Blake  <ebb9@byu.net>
21471
21472         Use sigaction module rather than signal().
21473         * modules/c-stack (Depends-on): Add sigaction.
21474         * modules/fatal-signal (Depends-on): Likewise.
21475         * modules/nanosleep (Depends-on): Likewise.
21476         * modules/sigprocmask (Files): Add sig-handler.h.
21477         * modules/sigaction (Files): Likewise.
21478         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21479         Eggert.
21480         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21481         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21482         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21483         (init_fatal_signals): Likewise.
21484         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21485         (siginterrupt): Delete fallback.
21486         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21487         instead.
21488         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21489         siginterrupt.
21490
21491         New module sigaction, for mingw.
21492         * modules/sigaction: New module...
21493         * modules/sigaction-tests: ...and its test.
21494         * m4/sigaction.m4: New file.
21495         * lib/sigaction.c: Likewise.
21496         * tests/test-sigaction.c: Likewise.
21497         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21498         * modules/signal (Makefile.am): Likewise.
21499         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21500         needed.
21501         * doc/posix-headers/signal.texi (signal.h): Mention provided
21502         types.
21503         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21504         that sigaction is preferable.
21505         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21506         module.
21507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21508         sigaction.
21509
21510         Improve robustness of sigprocmask by overriding signal.
21511         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21512         is in use.
21513         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21514         (SIGKILL, SIGSTOP): Provide fallbacks.
21515         (rpl_signal): Implement.
21516         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21517         signal can be called inside handlers.
21518
21519         Fix nanosleep module on mingw.
21520         * modules/nanosleep (Depends-on): Add sys_select.
21521         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21522
21523         Fix licensing of sigprocmask.
21524         * modules/raise (License): Relicense as LGPL.
21525
21526 2008-06-21  Bruno Haible  <bruno@clisp.org>
21527
21528         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21529         result if it contains question marks.
21530         Reported by Michael Geng <linux@michaelgeng.de>.
21531
21532 2008-06-19  Bruno Haible  <bruno@clisp.org>
21533
21534         Fix CVS-ism.
21535         * doc/gnulib.texi: Include updated-stamp.texi.
21536         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21537         (updated-stamp.texi): New rule.
21538         (gnulib.info): Depend on it.
21539         * doc/.gitignore: Add updated-stamp.texi.
21540         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21541
21542 2008-06-19  Bruno Haible  <bruno@clisp.org>
21543
21544         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21545         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21546
21547 2008-06-19  Eric Blake  <ebb9@byu.net>
21548
21549         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21550         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21551         Reported by Stepan Kasal.
21552
21553 2008-06-18  Bruno Haible  <bruno@clisp.org>
21554
21555         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21556         Reported by Eric Blake.
21557
21558 2008-06-18  Eric Blake  <ebb9@byu.net>
21559
21560         Work around cygwin 1.5.25 strsignal bug.
21561         * tests/test-strsignal.c: Allow for const char *.
21562         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21563
21564 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21565
21566         * users.txt: Update URL to article and add author/date
21567         information.
21568
21569 2008-06-17  Bruno Haible  <bruno@clisp.org>
21570
21571         New macro gl_DISABLE_THREADS.
21572         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21573         if the user did not pass --enable-threads or --disable-threads option.
21574         (gl_DISABLE_THREADS): New macro.
21575         Reported by Eric Blake <ebb9@byu.net>.
21576
21577 2008-06-17  Bruno Haible  <bruno@clisp.org>
21578
21579         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21580         when the macro ignores it.
21581         Based on a patch by Eric Blake <ebb9@byu.net>.
21582
21583 2008-06-17  Bruno Haible  <bruno@clisp.org>
21584
21585         * modules/tls (License): Change to LGPLv2+.
21586         Reported by Eric Blake.
21587
21588 2008-06-17  Eric Blake  <ebb9@byu.net>
21589
21590         Simplify c-stack prerequisites.
21591         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21592         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21593         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21594         check.
21595         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21596         <sys/resource.h>.
21597
21598         Move c-stack test into testsuite.
21599         * modules/c-stack-tests: New file.
21600         * lib/c-stack.c [DEBUG]: Move test program...
21601         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21602         fail test if sigaltstack is lacking.
21603         * tests/test-c-stack.sh: New driver file.
21604
21605 2008-06-16  Eric Blake  <ebb9@byu.net>
21606
21607         Use raise module consistently.
21608         * modules/fatal-signal (Depends-on): Add raise.
21609         * modules/sigprocmask (Depends-on): Likewise.
21610         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21611         * lib/sigprocmask.c (sigprocmask): Likewise.
21612         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21613         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21614
21615         Fix compliance bug in sigpending.
21616         * lib/sigprocmask.c (sigpending): Return pending array via
21617         parameter, not return value.
21618
21619 2008-06-14  Eric Blake  <ebb9@byu.net>
21620
21621         Improve obstack-printf test code.
21622         * tests/test-obstack-printf.c (test_function): Fix comment, and
21623         simplify usage of obstack_* in macros.  Add a test for coverage.
21624         Reported by Bruno Haible.
21625
21626 2008-06-14  Bruno Haible  <bruno@clisp.org>
21627
21628         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21629         array size as a constant, not as a const variable.
21630         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21631         AC_USE_SYSTEM_EXTENSIONS.
21632         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21633         Test whether the obstack_printf function actually exists.
21634         * modules/obstack-printf (Depends-on): Add extensions.
21635         (Include): Remove obstack.h.
21636         * modules/obstack-printf-posix (Depends-on): Add extensions.
21637         (Include): Remove obstack.h.
21638
21639 2008-06-13  Eric Blake  <ebb9@byu.net>
21640
21641         Add obstack-printf and obstack-printf-posix modules.
21642         * modules/obstack-printf: New file.
21643         * modules/obstack-printf-posix: Likewise.
21644         * MODULES.html.sh (Misc): Mention them.
21645         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21646         Likewise.
21647         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21648         Likewise.
21649         * modules/stdio (Makefile.am): Accomodate new modules.
21650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21651         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21652         Declare.
21653         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21654         functions.
21655         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21656         (gl_REPLACE_OBSTACK_PRINTF): New macros
21657         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21658         * tests/test-obstack-printf.c: New file.
21659         * modules/obstack-printf-tests: Likewise.
21660         * modules/obstack-printf-posix-tests: Likewise.
21661
21662 2008-06-11  Bruno Haible  <bruno@clisp.org>
21663
21664         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21665         * lib/open.c: Include errno.h.
21666         (open): Fail when attempting to write to a file that has a trailing
21667         slash.
21668         * tests/test-open.c (main): Test against trailing slash bug.
21669         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21670
21671 2008-06-10  Bruno Haible  <bruno@clisp.org>
21672
21673         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21674         for $? to work inside the trap command, with various /bin/sh-s.
21675         * tests/test-vc-list-files-cvs.sh: Likewise.
21676
21677 2008-06-10  Bruno Haible  <bruno@clisp.org>
21678
21679         * lib/acl-internal.h: Don't include gettext.h here.
21680         * lib/set-mode-acl.c: Include gettext.h here.
21681         * lib/copy-acl.c: Likewise.
21682
21683 2008-06-10  Bruno Haible  <bruno@clisp.org>
21684
21685         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21686         * lib/wait-process.c (wait_subprocess): Likewise.
21687         * lib/execute.h (execute): Add termsigp argument.
21688         * lib/execute.c (execute): Likewise.
21689         * lib/csharpcomp.c (compile_csharp_using_pnet,
21690         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21691         * lib/csharpexec.c (execute_csharp_using_pnet,
21692         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21693         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21694         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21695         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21696         is_jikes_present): Update.
21697         * lib/javaexec.c (execute_java_class): Update.
21698         * lib/javaversion.c (execute_and_read_line): Update.
21699         * NEWS: Document the changes.
21700         Reported by Eric Blake.
21701
21702 2008-06-10  Eric Blake  <ebb9@byu.net>
21703
21704         Add missing include.
21705         * tests/test-strstr.c (includes): Add <signal.h>.
21706         * tests/test-strcasestr.c (includes): Likewise.
21707         * tests/test-memmem.c (includes): Likewise.
21708
21709 2008-06-10  Bruno Haible  <bruno@clisp.org>
21710
21711         * lib/wait-process.c (wait_subprocess): Add an assertion.
21712
21713 2008-06-10  Bruno Haible  <bruno@clisp.org>
21714
21715         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21716
21717 2008-06-10  Bruno Haible  <bruno@clisp.org>
21718
21719         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21720         using alarm().
21721         * tests/test-strcasestr.c (main): Likewise.
21722         * tests/test-strstr.c (main): Likewise.
21723
21724 2008-06-09  Bruno Haible  <bruno@clisp.org>
21725
21726         Work around the Solaris 10 ACE ACLs ABI change.
21727         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21728         declare if ACL_NO_TRIVIAL is present.
21729         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21730         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21731         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21732         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21733         define if ACL_NO_TRIVIAL is present.
21734         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21735         and use the current ABI.
21736         (file_has_acl): Use same #if condition as elsewhere.
21737         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21738         in use, and use the current ABI.
21739         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21740         Reported by Jim Meyering.
21741
21742 2008-06-09  Eric Blake  <ebb9@byu.net>
21743
21744         Work around environments that (stupidly) ignore SIGALRM.
21745         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21746         before using alarm().
21747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21748         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21749         Reported by Ian Beckwith <ianb@erislabs.net>.
21750
21751         Produce autobuild blurb earlier in log.
21752         * modules/autobuild (configure.ac-early): Move AB_INIT here.
21753
21754 2008-06-09  Jim Meyering  <meyering@redhat.com>
21755         and Ondřej Vašík  <ovasik@redhat.com>
21756
21757         utimens.c: correct kernel bug work-around
21758         Ondřej Vašík found that the invalid return value of 280 indicates
21759         failure, not success, and the kernel bug we're trying to work
21760         around affects not just the utimensat call, but also the fallback
21761         futimens call.
21762         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
21763         not success.
21764         [HAVE_FUTIMENS]: Use the same work-around, here.
21765
21766 2008-06-09  Jim Meyering  <meyering@redhat.com>
21767
21768         add more guards around definition of ACE_-related code
21769         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
21770         ALLOW and ACE_OWNER are also defined.
21771
21772 2008-06-08  Bruno Haible  <bruno@clisp.org>
21773
21774         * lib/acl-internal.h: Add me as co-author.
21775         * lib/file-has-acl.c: Likewise.
21776         * lib/set-mode-acl.c: Likewise.
21777         * lib/copy-acl.c: Likewise.
21778
21779 2008-06-08  Bruno Haible  <bruno@clisp.org>
21780
21781         Add support for AIX ACLs.
21782         * lib/acl-internal.h (acl_nontrivial): New declaration.
21783         * lib/file-has-acl.c (acl_nontrivial): New function.
21784         (file_has_acl): Add implementation using AIX 4 ACL API.
21785         * lib/set-mode-acl.c (qset_acl): Likewise.
21786         * lib/copy-acl.c (qcopy_acl): Likewise.
21787
21788 2008-06-08  Bruno Haible  <bruno@clisp.org>
21789
21790         Add support for HP-UX ACLs.
21791         * lib/acl-internal.h (acl_nontrivial): New declaration.
21792         * lib/file-has-acl.c (acl_nontrivial): New function.
21793         (file_has_acl): Add implementation using HP-UX 11 ACL API.
21794         * lib/set-mode-acl.c (qset_acl): Likewise.
21795         * lib/copy-acl.c (qcopy_acl): Likewise.
21796
21797 2008-06-08  Bruno Haible  <bruno@clisp.org>
21798
21799         Add support for Cygwin ACLs.
21800         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
21801         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
21802         the chmod_or_fchmod call.
21803         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
21804
21805 2008-06-08  Bruno Haible  <bruno@clisp.org>
21806
21807         Fix bug with setuid modes in Solaris 10+ code.
21808         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
21809         succeeded, when the mode contains some special bits.
21810
21811 2008-06-08  Bruno Haible  <bruno@clisp.org>
21812
21813         Add support for Solaris 7..10 ACLs.
21814         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
21815         declarations.
21816         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
21817         functions.
21818         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
21819         * lib/set-mode-acl.c (qset_acl): Likewise.
21820         * lib/copy-acl.c (qcopy_acl): Likewise.
21821
21822 2008-06-08  Bruno Haible  <bruno@clisp.org>
21823
21824         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
21825         declaration.
21826         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
21827         (acl_access_nontrivial): Remove MacOS X case.
21828         (file_has_acl): Use acl_extended_nontrivial.
21829         * lib/copy-acl.c (qcopy_acl): Likewise.
21830
21831 2008-06-08  Bruno Haible  <bruno@clisp.org>
21832
21833         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
21834
21835 2008-06-08  Jim Meyering  <meyering@redhat.com>
21836
21837         * modules/acl (Maintainer): Add Bruno Haible.
21838
21839 2008-06-07  Bruno Haible  <bruno@clisp.org>
21840
21841         Improve support for Tru64 ACLs.
21842         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
21843         ACL on OSF/1.
21844
21845 2008-06-07  Bruno Haible  <bruno@clisp.org>
21846
21847         Add support for MacOS X ACLs.
21848         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
21849         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
21850         * lib/set-mode-acl.c (qset_acl): Likewise.
21851         * lib/copy-acl.c (qcopy_acl): Likewise.
21852
21853 2008-06-07  Bruno Haible  <bruno@clisp.org>
21854
21855         Fix memory leak introduced on 2008-05-22.
21856         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
21857         use.
21858
21859 2008-06-07  Bruno Haible  <bruno@clisp.org>
21860
21861         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
21862         to construct an empty ACL.
21863
21864 2008-06-07  Bruno Haible  <bruno@clisp.org>
21865
21866         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
21867         precisely.
21868         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
21869
21870 2008-06-07  Bruno Haible  <bruno@clisp.org>
21871
21872         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
21873         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
21874
21875 2008-06-07  Bruno Haible  <bruno@clisp.org>
21876
21877         * doc/posix-functions/_setjmp.texi: Explain the use of this function
21878         regardless of POSIX.
21879         * doc/posix-functions/_longjmp.texi: Likewise.
21880         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
21881         SystemV platform in this case.
21882
21883 2008-06-06  Eric Blake  <ebb9@byu.net>
21884
21885         Document abort() bugs.
21886         * doc/posix-functions/abort.texi (abort): Mention anomalies.
21887
21888         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
21889         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
21890         sigsetjmp.
21891         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
21892         siglongjmp, but only as a macro.
21893         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
21894         is obsolete.
21895         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
21896
21897         Tweak documentation to cover cygwin argz bugs.
21898         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
21899         argz bug fix; no code change needed since no cygwin releases
21900         occurred between the last fix and the bug being tested.
21901         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
21902         module and recently fixed cygwin bugs.
21903         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
21904         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
21905         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
21906         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
21907         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
21908         Likewise.
21909         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
21910         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
21911         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
21912         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
21913         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
21914         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
21915         Likewise.
21916
21917         Avoid gcc warning on cygwin.
21918         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
21919         !ACL_NO_TRIVIAL]: Avoid unused variable.
21920
21921 2008-06-05  Eric Blake  <ebb9@byu.net>
21922
21923         Be tolerant of UNKNOWN version in gnulib-tool test dir.
21924         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
21925         git-version-gen fails to come up with a version.
21926         Reported by Simon Josefsson.
21927
21928 2008-06-05  Jim Meyering  <meyering@redhat.com>
21929             Paul Eggert  <eggert@cs.ucla.edu>
21930
21931         utimens.c: work around a probable Linux kernel bug
21932         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
21933         appears to be a kernel bug that causes utimensat to return 280
21934         instead of 0, indicating success.
21935
21936 2008-06-04  Bruno Haible  <bruno@clisp.org>
21937
21938         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
21939         2008-06-01 commit.
21940
21941 2008-06-04  Bruno Haible  <bruno@clisp.org>
21942
21943         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
21944         * lib/file-has-acl.c (acl_access_nontrivial): New function.
21945         (file_has_acl): Use it. Save errno afterwards.
21946         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
21947
21948 2008-06-03  Bruno Haible  <bruno@clisp.org>
21949
21950         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
21951         draft code. Simplify #ifs.
21952         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
21953         Put Solaris code after POSIX-draft code. Fix comments regarding
21954         Solaris 10, HP-UX. Mention Cygwin.
21955         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
21956
21957 2008-06-03  Eric Blake  <ebb9@byu.net>
21958
21959         Provide fallback for older kernels.
21960         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
21961         Provide runtime fallback if kernel lacks support.
21962         Reported by Mike Frysinger.
21963
21964 2008-06-02  Bruno Haible  <bruno@clisp.org>
21965
21966         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
21967         it exists.
21968
21969 2008-06-02  Bruno Haible  <bruno@clisp.org>
21970
21971         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
21972         * lib/copy-acl.c (qcopy_acl): Update comment.
21973
21974 2008-06-02  Bruno Haible  <bruno@clisp.org>
21975
21976         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
21977         like ACL APIs.
21978
21979 2008-06-02  Bruno Haible  <bruno@clisp.org>
21980
21981         * tests/test-file-has-acl.sh: Use different code for Cygwin.
21982         * tests/test-set-mode-acl.sh: Likewise.
21983         * tests/test-copy-acl.sh: Likewise.
21984         * tests/test-copy-file.sh: Likewise.
21985
21986 2008-06-02  Bruno Haible  <bruno@clisp.org>
21987
21988         * tests/test-file-has-acl.sh: Remove unused code.
21989
21990 2008-06-01  Bruno Haible  <bruno@clisp.org>
21991
21992         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
21993         (copy_acl): Just a wrapper around qcopy_acl that emits the error
21994         messages.
21995         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
21996
21997 2008-06-01  Bruno Haible  <bruno@clisp.org>
21998
21999         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22000         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22001         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22002         APIs.
22003         * modules/acl-tests (configure.ac): Remove tests now contained in
22004         m4/acl.m4.
22005
22006 2008-06-02  Jim Meyering  <meyering@redhat.com>
22007
22008         announce-gen: use a better key-server host name
22009         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22010         it may be more consistently reliable.  Suggested by Werner Koch
22011         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22012
22013 2008-06-01  Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22016         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22017
22018 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22019
22020         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22021
22022 2008-06-01  Bruno Haible  <bruno@clisp.org>
22023
22024         New ACL tests.
22025         * tests/test-file-has-acl.sh: New file.
22026         * tests/test-file-has-acl.c: New file.
22027         * tests/test-set-mode-acl.sh: New file.
22028         * tests/test-set-mode-acl.c: New file.
22029         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22030         * tests/test-copy-acl.c: New file.
22031         * modules/acl-tests: New file, based on modules/copy-file-tests.
22032         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22033         (Depends-on): Add acl-tests.
22034         (configure.ac): Remove checks.
22035         (Makefile.am): Don't create test-sameacls program here any more.
22036
22037 2008-06-01  Bruno Haible  <bruno@clisp.org>
22038
22039         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22040         * tests/test-sameacls.c: Include progname.h.
22041         (main): Invoke set_program_name. Portability fixes for MacOS X,
22042         Solaris, HP-UX.
22043
22044 2008-06-01  Bruno Haible  <bruno@clisp.org>
22045
22046         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22047         function.
22048         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22049
22050 2008-06-01  Bruno Haible  <bruno@clisp.org>
22051
22052         * modules/rpmatch (Depends-on): Add strdup.
22053
22054 2008-06-01  Bruno Haible  <bruno@clisp.org>
22055
22056         * lib/pipe.c: Include unistd-safer.h.
22057         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22058         * modules/pipe (Depends-on): Add unistd-safer.
22059
22060 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22061
22062         * modules/autobuild (configure.ac): Call AB_INIT.
22063
22064 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22065
22066         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22067         Suggested by Bruno Haible <bruno@clisp.org>.
22068
22069 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22070
22071         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22072         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22073         <bruno@clisp.org>.
22074
22075 2008-05-29  Eric Blake  <ebb9@byu.net>
22076
22077         Prefer new POSIX 200x interfaces over futimesat.
22078         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22079         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22080         when available.
22081         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22082
22083 2008-05-28  Bruno Haible  <bruno@clisp.org>
22084
22085         * modules/stpcpy (License): Change to LGPLv2+.
22086         Requested by David Lutterkort <dlutter@redhat.com>.
22087
22088 2008-05-27  Bruno Haible  <bruno@clisp.org>
22089
22090         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22091         current mingw.
22092         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22093
22094 2008-05-27  Bruno Haible  <bruno@clisp.org>
22095
22096         * modules/iconv_open (Link): New section, from module 'iconv'.
22097         * modules/striconv (Link): Likewise.
22098         * modules/striconveh (Link): Likewise.
22099         * modules/xstriconv (Link): Likewise.
22100         * modules/unicodeio (Link): Likewise.
22101         * modules/propername (Link): Likewise.
22102         Reported by Jim Meyering.
22103
22104 2008-05-26  Jim Meyering  <meyering@redhat.com>
22105
22106         sha256: do not artificially restrict buffer length to be < 2^32
22107         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22108         uint32_t to size_t.
22109         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22110         to match.
22111
22112         avoid unaligned access errors, e.g., on sparc
22113         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22114         direct access through a possibly-unaligned uint64* pointer.
22115         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22116         direct access through a possibly-unaligned uint32* pointer.
22117         Prompted by this patch from Tom "spot" Callaway:
22118         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22119
22120         sha512.c: fix typo in comment
22121         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22122
22123 2008-05-25  Bruno Haible  <bruno@clisp.org>
22124
22125         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22126         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22127         (Makefile.am): Update lib_SOURCES.
22128
22129 2008-05-25  Bruno Haible  <bruno@clisp.org>
22130
22131         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22132
22133 2008-05-25  Jim Meyering  <meyering@redhat.com>
22134
22135         useless-if-before-free: freed expr may have white-space differences
22136         * build-aux/useless-if-before-free: Recognize cases in which the
22137         freed expression differs from the tested one in embedded white
22138         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22139         $1 was used, so we can't make any regexp shy.  Improved tests now
22140         detect this.
22141
22142         useless-if-before-free: accept white space in the expression.
22143         * build-aux/useless-if-before-free: For now, any white space
22144         in the expression must be identical in the free argument.
22145
22146         useless-if-before-free: efficiency tweak
22147         * build-aux/useless-if-before-free: Make the expression-matching
22148         regexp "shy".
22149         Make the *outer* regexp shy, not the expr-matching one.
22150
22151         update code-in-comment to accept cast of free arg
22152         * build-aux/useless-if-before-free: Update regexp.
22153
22154 2008-05-25  Bruno Haible  <bruno@clisp.org>
22155
22156         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22157         * modules/copy-file-tests (Files, Makefile.am): Update.
22158         * tests/test-copy-file.c (func_test_copy): Update.
22159
22160 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22161
22162         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22163
22164 2008-05-23  Bruno Haible  <bruno@clisp.org>
22165
22166         Improve support for ACLs on OSF/1.
22167         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22168         Remove fallback for unknown flavors of ACLs.
22169
22170 2008-05-22  Bruno Haible  <bruno@clisp.org>
22171
22172         Add support for ACLs on OSF/1.
22173         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22174         replacements.
22175         (acl_free_text): New macro fallback.
22176         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22177         acl_free.
22178         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22179         acl_free_text function. Require AC_C_INLINE.
22180
22181 2008-05-22  Bruno Haible  <bruno@clisp.org>
22182
22183         Make copy_acl work on MacOS X 10.5.
22184         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22185         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22186         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22187         If MODE_INSIDE_ACL, don't assume that every system has the same text
22188         representation for ACLs as FreeBSD.
22189         * lib/copy-acl.c (copy_acl): Add support for platforms with
22190         !MODE_INSIDE_ACL.
22191         * lib/file-has-acl.c (file_has_acl): Likewise.
22192         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22193         FreeBSD, MacOS X, or IRIX, respectively.
22194
22195 2008-05-22  Bruno Haible  <bruno@clisp.org>
22196
22197         * lib/acl.h: Don't include <sys/acl.h>.
22198         (GETACLCNT): Move fallback to lib/acl-internal.h.
22199         * lib/acl-internal.h: Include <sys/acl.h> here.
22200         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22201
22202 2008-05-22  Bruno Haible  <bruno@clisp.org>
22203
22204         Split off copy_acl function to separate file.
22205         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22206         * lib/acl.c (copy_acl): Moved function to separate file.
22207         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22208         * modules/acl (Files): Add lib/copy-acl.c.
22209         (Makefiles.am): Augment lib_SOURCES.
22210
22211 2008-05-22  Bruno Haible  <bruno@clisp.org>
22212
22213         * modules/copy-file-tests: New file.
22214         * tests/test-copy-file.sh: New file.
22215         * tests/test-copy-file.c: New file.
22216         * tests/test-copy-file-sameacls.c: New file.
22217
22218 2008-05-22  Eric Blake  <ebb9@byu.net>
22219
22220         Avoid gcc warning.
22221         * tests/test-memcmp.c (main): Pass NULL indirectly.
22222
22223 2008-05-21  Bruno Haible  <bruno@clisp.org>
22224
22225         Add reference doc about ACLs.
22226         * doc/acl-resources.txt: New file.
22227         * doc/acl-cygwin.txt: New file.
22228
22229 2008-05-21  Bruno Haible  <bruno@clisp.org>
22230
22231         Avoid one more warning from gcc.
22232         * lib/vasnprintf.c (IF_LINT): Update comments.
22233         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22234
22235 2008-05-21  Jim Meyering  <meyering@redhat.com>
22236
22237         avoid a warning from gcc
22238         * lib/vasnprintf.c (IF_LINT): Define.
22239         (scale10_round_decimal_long_double):
22240         Use it to avoid a "may be used uninitialized" warning.
22241         (scale10_round_decimal_double): Likewise.
22242
22243 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22244
22245         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22246         declared.
22247
22248 2008-05-20  Bruno Haible  <bruno@clisp.org>
22249
22250         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22251         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22252
22253 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22254
22255         * modules/memcmp-tests: New file.
22256         * tests/test-memcmp.c: New file.
22257
22258 2008-05-19  Bruno Haible  <bruno@clisp.org>
22259
22260         * modules/propername (Notice, configure.ac): Put quoted "..." into
22261         --keyword option.
22262         * lib/propername.h: Update comments accordingly.
22263         Reported by Eric Blake.
22264
22265 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22266
22267         * modules/getpass-gnu (Depends-on): Add fseeko.
22268
22269 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22270
22271         * modules/base64-tests: New file.
22272
22273 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22274
22275         * lib/base64.c (base64_decode_ctx): If a decode context structure
22276         was passed in use it to ignore newlines.  If a context structure
22277         was _not_ passed in, continue to treat newlines as garbage (this
22278         is the historical behavior).  Formerly base64_decode.
22279         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22280         takes a decode context structure.
22281         * lib/base64.h (base64_decode): Macro for four-argument calls.
22282         (base64_decode_alloc): Likewise.
22283         * lib/base64.c (base64_decode_ctx): If a decode context structure
22284         was passed in use it to ignore newlines.  If a context structure
22285         was _not_ passed in, continue to treat newlines as garbage (this
22286         is the historical behavior).  Formerly base64_decode.
22287         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22288         takes a decode context structure.
22289         * lib/base64.h (base64_decode): Macro for four-argument calls.
22290         (base64_decode_alloc): Likewise.
22291
22292 2008-05-19  Jim Meyering  <meyering@redhat.com>
22293
22294         avoid a warning from gcc
22295         * lib/trim.c (IF_LINT): Define.
22296         (trim2): Use it to avoid a "may be used uninitialized" warning.
22297
22298         Fix doc typo.
22299         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22300
22301 2008-05-19  Bruno Haible  <bruno@clisp.org>
22302
22303         * doc/glibc-functions/getpass.texi: Document limits of other
22304         implementations.
22305
22306 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22307             Bruno Haible <bruno@clisp.org>
22308
22309         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22310
22311 2008-05-18  Bruno Haible  <bruno@clisp.org>
22312
22313         * modules/propername: New file, from GNU gettext.
22314         * lib/propername.h: New file, from GNU gettext.
22315         * lib/propername.c: New file, from GNU gettext.
22316         * MODULES.html.sh (Internationalization functions): Add propername.
22317
22318 2008-05-16  Jim Meyering  <meyering@redhat.com>
22319             Bruno Haible  <bruno@clisp.org>
22320
22321         Avoid some warnings from "gcc -Wshadow".
22322         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22323
22324 2008-05-15  Eric Blake  <ebb9@byu.net>
22325
22326         Extend previous patch to cygwin 1.7.0.
22327         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22328         fast implementation in cygwin >= 1.7.0.
22329         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22330         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22331
22332 2008-05-15  Bruno Haible  <bruno@clisp.org>
22333
22334         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22335         implementation in glibc >= 2.9.
22336         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22338
22339 2008-05-15  Bruno Haible  <bruno@clisp.org>
22340
22341         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22342         (Unicode string functions): Add unilbrk/*.
22343         Reported by Karl Berry.
22344
22345 2008-05-15  Eric Blake  <ebb9@byu.net>
22346
22347         Fix violation of <stdbool.h> replacement in regex.
22348         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22349         * lib/regexec.c (re_search_internal): Likewise.
22350         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22351
22352 2008-05-15  Jim Meyering  <meyering@redhat.com>
22353
22354         avoid distracting test output when git or cvs is not found
22355         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22356         * tests/test-vc-list-files-git.sh: Likewise.
22357
22358 2008-05-15  Eric Blake  <ebb9@byu.net>
22359
22360         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22361         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22362         glibc version.
22363         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22364         * doc/posix-functions/strstr.texi (strstr): Likewise.
22365         * lib/str-two-way.h (MAX): Sychronize with glibc.
22366
22367 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22368
22369         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22370         opr.ctx_type.
22371         (calc_first): Initialize constraint field.
22372         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22373         Fix grammar.
22374         (duplicate_node): Merge constraint field for all node types.
22375         (calc_eclosure_iter): Look at constraint field for all node types.
22376         * lib/regex_internal.c (create_cd_newstate): Don't look at
22377         opr.ctx_type.
22378
22379 2008-05-14  Bruno Haible  <bruno@clisp.org>
22380
22381         Help GCC to do better code generation.
22382         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22383         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22384         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22385         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22386         Declare with attribute 'malloc' if supported.
22387
22388 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22389
22390         use "echo STR|wc -c" rather than unportable "expr length STR"
22391         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22392         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22393
22394 2008-05-14  Jim Meyering  <meyering@redhat.com>
22395
22396         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22397         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22398         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22399         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22400         via Collin Lasse.
22401
22402 2008-05-14  Eric Blake  <ebb9@byu.net>
22403
22404         Avoid quadratic growth in gl_LIBSOURCES.
22405         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22406         Suggested by Bruno Haible.
22407
22408         Test xmemdup0.
22409         * modules/xmemdup0-tests: New file.
22410         * tests/test-xmemdup0.c: Likewise.
22411
22412 2008-05-13  Eric Blake  <ebb9@byu.net>
22413
22414         Split xmemdup0 into its own module.
22415         * modules/xmemdup0: New file.
22416         * lib/xmemdup0.h: Likewise.
22417         * lib/xmemdup0.c: Likewise.
22418         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22419         * lib/xalloc.h (xmemdup0): Remove.
22420         * lib/xmalloc.c (xmemdup0): Likewise.
22421
22422 2008-05-13  Eric Blake  <ebb9@byu.net>
22423             Bruno Haible  <bruno@clisp.org>
22424
22425         Reduce number of forks required during autoconf.
22426         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22427         and gl_LIBSOURCES_DIR.
22428         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22429         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22430         m4_syscmd per file.
22431         <m4_foreach_w>: Move...
22432         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22433
22434 2008-05-13  Eric Blake  <ebb9@byu.net>
22435
22436         * gnulib-tool: Fix various comment typos.
22437
22438 2008-05-12  Bruno Haible  <bruno@clisp.org>
22439
22440         Tailor the linebreaking algorithm.
22441         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22442
22443 2008-05-12  Bruno Haible  <bruno@clisp.org>
22444
22445         Update to Unicode 5.0.0.
22446         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22447         LBP_JV, LBP_JT. Redistribute values.
22448         (unilbrk_table): Change size.
22449         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22450         Unicode TR#14 rev. 22.
22451         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22452         LBP_JV, LBP_JT. Redistribute values.
22453         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22454         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22455         Update.
22456         * lib/unilbrk/lbrkprop1.h: Regenerated.
22457         * lib/unilbrk/lbrkprop2.h: Regenerated.
22458         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22459         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22460         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22461         Likewise.
22462         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22463         Likewise.
22464         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22465         result.
22466         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22467         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22468         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22469         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22470         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22471         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22472
22473 2008-05-11  Bruno Haible  <bruno@clisp.org>
22474
22475         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22476
22477 2008-05-11  Bruno Haible  <bruno@clisp.org>
22478
22479         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22480         * modules/unilbrk/gen-lbrk: New file.
22481
22482 2008-05-11  Bruno Haible  <bruno@clisp.org>
22483
22484         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22485         * m4/sha512.m4 (gl_SHA512): Likewise.
22486
22487 2008-05-11  Jim Meyering  <meyering@redhat.com>
22488
22489         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22490         * modules/crypto/sha256: New file.
22491         * modules/crypto/sha512: Likewise.
22492         * lib/sha256.c: Likewise.
22493         * lib/sha256.h: Likewise.
22494         * lib/sha512.c: Likewise.
22495         * lib/sha512.h: Likewise.
22496         * lib/u64.h: Likewise.
22497         * m4/sha256.m4: Likewise.
22498         * m4/sha512.m4: Likewise.
22499         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22500
22501 2008-05-10  Bruno Haible  <bruno@clisp.org>
22502
22503         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22504         (Input/Output <stdio.h>): Add xprintf.
22505         (Signal handling <signal.h>): Add strsignal.
22506         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22507         (Core language properties): Add func.
22508         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22509         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22510         strings.
22511         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22512         (Input/output): New section.
22513         (File system functions): Add openat-die, stat-macros.
22514         (Networking functions): Add sockets.
22515         (Unicode string functions): Add unictype/*.
22516         (Support for building libraries and executables): Add gperf.
22517         (Support for building documentation): Add agpl-3.0.
22518         (Misc): Add nocrash.
22519
22520 2008-05-10  Bruno Haible  <bruno@clisp.org>
22521
22522         * modules/unictype/gen-ctype: New file.
22523
22524 2008-05-10  Jim Meyering  <meyering@redhat.com>
22525
22526         Make chdir-safer.c more efficient on a system with no symlinks.
22527         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22528         also if ELOOP is zero.  Suggested by Bruno Haible.
22529
22530         Make chdir-safer.c slightly safer.
22531         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22532         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22533
22534         Avoid compile failure on systems without ELOOP (like mingw).
22535         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22536         Reported by Bruno Haible.
22537
22538 2008-05-10  Bruno Haible  <bruno@clisp.org>
22539
22540         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22541         (is_utf8_encoding): Use a case-insensitive comparison.
22542         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22543         streq.
22544
22545 2008-05-10  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22548         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22549         * lib/unilbrk/ulc-common.h (iconv_string_length,
22550         iconv_string_keeping_offsets): Remove declarations.
22551         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22552         Don't include <iconv.h>, streq.h, xsize.h.
22553         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22554         conversion.
22555         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22556         <iconv.h>, streq.h, xsize.h.
22557         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22558         conversion.
22559         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22560         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22561         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22562         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22563
22564 2008-05-10  Bruno Haible  <bruno@clisp.org>
22565
22566         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22567         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22568
22569         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22570         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22571
22572         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22573         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22574
22575         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22576         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22577
22578         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22579         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22580
22581         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22582         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22583
22584         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22585         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22586
22587         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22588         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22589
22590 2008-05-10  Bruno Haible  <bruno@clisp.org>
22591
22592         Split up 'linebreak' module.
22593         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22594         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22595         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22596         modifications.
22597         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22598         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22599         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22600         lib/linebreak.c.
22601         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22602         lib/linebreak.c.
22603         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22604         lib/linebreak.c.
22605         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22606         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22607         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22608         lib/linebreak.c.
22609         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22610         lib/linebreak.c.
22611         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22612         lib/linebreak.c.
22613         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22614         lib/linebreak.c.
22615         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22616         lib/linebreak.c.
22617         * modules/unilbrk/base: New file.
22618         * modules/unilbrk/tables: New file.
22619         * modules/unilbrk/u8-possible-linebreaks: New file.
22620         * modules/unilbrk/u16-possible-linebreaks: New file.
22621         * modules/unilbrk/u32-possible-linebreaks: New file.
22622         * modules/unilbrk/ulc-common: New file.
22623         * modules/unilbrk/ulc-possible-linebreaks: New file.
22624         * modules/unilbrk/u8-width-linebreaks: New file.
22625         * modules/unilbrk/u16-width-linebreaks: New file.
22626         * modules/unilbrk/u32-width-linebreaks: New file.
22627         * modules/unilbrk/ulc-width-linebreaks: New file.
22628         * lib/linebreak.h: Remove file.
22629         * lib/linebreak.c: Remove file.
22630         * m4/linebreak.m4: Remove file.
22631         * modules/linebreak: Remove file.
22632         * NEWS: Mention the changes.
22633
22634 2008-05-09  Eric Blake  <ebb9@byu.net>
22635
22636         Add xmemdup0.
22637         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22638         implementation.
22639         * lib/xmalloc.c (xmemdup0): New C implementation.
22640
22641 2008-05-08  Bruno Haible  <bruno@clisp.org>
22642
22643         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22644
22645 2008-05-07  Eric Blake  <ebb9@byu.net>
22646
22647         Support cross-compilation of <wctype.h>.
22648         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22649         AC_CACHE_CHECK.
22650
22651 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22652
22653         * build-aux/vc-list-files: Add support for bzr.
22654
22655 2008-05-03  Jim Meyering  <meyering@redhat.com>
22656
22657         avoid failed assertion with tight malloc
22658         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22659
22660 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22661
22662         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22663         are needed from arpa/inet.h.
22664         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22665         Reported by Bruno Haible.
22666
22667 2008-05-02  Jim Meyering  <meyering@redhat.com>
22668
22669         avoid compilation error on FreeBSD 6
22670         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22671
22672 2008-05-01  Jim Meyering  <meyering@redhat.com>
22673
22674         useless-if-before-free: correct --help's exit status description
22675         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22676         for one or more matches, etc.  Reported by Bruno Haible.
22677
22678         vc-list-files: make the stand-alone gnulib test work
22679         * modules/vc-list-files-tests (configure.ac):
22680         Define and AC_SUBST abs_aux_dir.
22681         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22682         $(abs_top_srcdir) to each script and having each of them
22683         duplicate the work of setting PATH, set PATH here, using
22684         the new variable, abs_aux_dir instead.
22685         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22686         * tests/test-vc-list-files-git.sh: Likewise.
22687         Reported by Bruno Haible.
22688
22689 2008-05-01  Bruno Haible  <bruno@clisp.org>
22690
22691         * lib/getndelim2.c (getndelim2): Fix newsize computation during
22692         reallocation. Rename 'done' to 'found_delimiter'.
22693
22694 2008-05-01  Jim Meyering  <meyering@redhat.com>
22695
22696         vc-list-files: accommodate /bin/sh like the one from Solaris 10
22697         * build-aux/vc-list-files: Use `...`, not $(...).
22698
22699 2008-04-30  Jim Meyering  <meyering@redhat.com>
22700
22701         add tests for vc-list-files
22702         * modules/vc-list-files-tests: New module.
22703         * tests/test-vc-list-files-cvs.sh: New file.
22704         * tests/test-vc-list-files-git.sh: New file.
22705
22706         avoid a warning from gcc
22707         * lib/getndelim2.c (IF_LINT): Define.
22708         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22709
22710         vc-list-files: work properly with build-aux/cvsu, too
22711         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22712         to all cvs-based clauses.
22713
22714         vc-list-files: work properly in the CVS+awk case, too
22715         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22716
22717         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22718         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22719         take more than one file argument, so .  Add quotes, just in case $dir
22720         ever contains a shell meta-character.  Prompted by Soren Hansen in
22721         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22722
22723 2008-04-29  Eric Blake  <ebb9@byu.net>
22724
22725         Optimize getndelim2 to use block operations when possible.
22726         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22727         freadseek, and memchr2.
22728         * lib/getndelim2.c (getndelim2): Use them for block reads.
22729
22730 2008-04-29  Bruno Haible  <bruno@clisp.org>
22731
22732         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22733         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22734         * modules/inet_ntop (Depends-on): Add extensions.
22735         * modules/inet_pton (Depends-on): Likewise.
22736         Reported by Simon Josefsson.
22737
22738 2008-04-29  Jim Meyering  <meyering@redhat.com>
22739
22740         When the is more than one match in a block, match all of them.
22741         * build-aux/useless-if-before-free: Iterate through each block
22742         until there are no more matches.
22743
22744         Fix broken useless-if-before-free script.
22745         * build-aux/useless-if-before-free: Fix typo: missing "?" after
22746         the expression to match cast of argument to free-like function.
22747
22748 2008-04-29  Eric Blake  <ebb9@byu.net>
22749
22750         Use new header.
22751         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22752
22753 2008-04-29  Jim Meyering  <meyering@redhat.com>
22754
22755         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22756         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
22757         by gnulib to exist and to declare e.g., inet_ntop.
22758         Don't include "inet_ntop.h", now removed.
22759
22760         * m4/arpa_inet_h.m4: Remove trailing blanks.
22761
22762 2008-04-29  Eric Blake  <ebb9@byu.net>
22763
22764         Silence valgrind on safe reads beyond potential array bounds.
22765         * lib/rawmemchr.valgrind: New file.
22766         * lib/strchrnul.valgrind: Likewise.
22767         * modules/rawmemchr (Files): Distribute new file.
22768         * modules/strchrnul (Files): Likewise.
22769         Suggested by Bruno Haible.
22770
22771 2008-04-29  Bruno Haible  <bruno@clisp.org>
22772
22773         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
22774         (inet_ntop, inet_pton): Change portability warning's wording.
22775         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
22776         Invoke gl_CHECK_NEXT_HEADERS.
22777         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
22778         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
22779         set ARPA_INET_H.
22780         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22781         * modules/arpa_inet (Description): No longer only for systems that
22782         lack it.
22783         (Depends-on): Add include_next.
22784         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
22785         HAVE_ARPA_INET_H.
22786
22787 2008-04-29  Jim Meyering  <meyering@redhat.com>
22788
22789         * modules/mkdir (License): Re-license as LGPLv2+.
22790
22791 2008-04-29  Bruno Haible  <bruno@clisp.org>
22792
22793         * modules/rawmemchr (Maintainer): Set to Eric.
22794         * modules/strchrnul (Maintainer): Likewise.
22795
22796 2008-04-29  Simon Josefsson  <simon@josefsson.org>
22797
22798         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
22799         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
22800
22801         * modules/arpa_inet (arpa/inet.h): Use them.
22802
22803 2008-04-28  Eric Blake  <ebb9@byu.net>
22804
22805         Test getndelim2.
22806         * modules/getndelim2-tests: New file.
22807         * tests/test-getndelim2.c: Likewise.
22808         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
22809         stream.
22810         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
22811
22812         * MODULES.html.sh: Document new module.
22813
22814 2008-04-20  Bruno Haible  <bruno@clisp.org>
22815
22816         * lib/c-stack.c (die): Use raise.
22817         * modules/c-stack (Depends-on): Add raise.
22818
22819 2008-04-28  Bruno Haible  <bruno@clisp.org>
22820
22821         Expect rpmatch to be declared.
22822         * lib/yesno.c (rpmatch): Remove declaration.
22823
22824         Declare rpmatch.
22825         * lib/stdlib.in.h (rpmatch): New declaration.
22826         * lib/rpmatch.c: Include <stdlib.h> first.
22827         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
22828         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
22829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
22830         HAVE_RPMATCH.
22831         * modules/rpmatch (Depends-on): Add stdlib, extensions.
22832         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22833         (Include): Set to <stdlib.h>.
22834         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
22835         HAVE_RPMATCH.
22836         * NEWS: Document the change.
22837
22838 2008-04-28  Bruno Haible  <bruno@clisp.org>
22839
22840         Change rpmatch to use nl_langinfo when appropriate.
22841         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
22842         (N_): New macro.
22843         (localized_pattern): New function/macro.
22844         (try): Remove match, nomatch arguments. Copy the pattern into safe
22845         memory before caching it.
22846         (rpmatch): Use localized_pattern. Add translator comments.
22847         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
22848         Suggested by Eric Blake.
22849         * modules/rpmatch (Depends-on): Add stdbool.
22850
22851 2008-04-28  Eric Blake  <ebb9@byu.net>
22852
22853         Add rawmemchr module, matching glibc.
22854         * modules/string (Makefile.am): New indicator.
22855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
22856         * lib/string.in.h (rawmemchr): Declare when appropriate.
22857         * modules/rawmemchr: New file.
22858         * m4/rawmemchr.m4: Likewise.
22859         * lib/rawmemchr.c: Likewise.
22860         * modules/rawmemchr-tests: Likewise.
22861         * tests/test-rawmemchr.c: Likewise.
22862         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
22863         module.
22864         * modules/strchrnul (Depends-on): Add rawmemchr.
22865         * lib/strchrnul.c (strchrnul): Optimize a corner case.
22866
22867         Whitespace cleanup.
22868         * tests/test-strchrnul.c: Reindent.
22869         * lib/strchrnul.c: Likewise.
22870
22871         Optimize and test strchrnul.
22872         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
22873         * modules/strchrnul-tests: New file.
22874         * tests/test-strchrnul.c: Likewise.
22875
22876         Remove intprops dependency.
22877         * modules/memchr (Depends-on): Remove intprops.
22878         * modules/memrchr (Depends-on): Likewise.
22879         * modules/memchr2 (Depends-on): Likewise.
22880         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
22881         * lib/memrchr.c (__memrchr): Likewise.
22882         * lib/memrchr2.c (memchr2): Likewise.
22883         Reported by Simon Josefsson.
22884
22885 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22886
22887         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
22888         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22889
22890 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22891
22892         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
22893
22894         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
22895
22896         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
22897
22898         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
22899         declarations.
22900         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
22901
22902         * m4/inet_pton.m4: Don't check for header files.
22903
22904         * m4/inet_ntop.m4: Don't check for header files.
22905
22906 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22907
22908         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
22909         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
22910         trigger for cygwin).
22911         Reported by Bruno Haible  <bruno@clisp.org>.
22912
22913 2008-04-28  Bruno Haible  <bruno@clisp.org>
22914
22915         * doc/posix-functions/strdup.texi: Mention mingw problem.
22916
22917 2008-04-27  Bruno Haible  <bruno@clisp.org>
22918
22919         * modules/stat-time-tests (Depends-on): Add sleep.
22920         * tests/test-stat-time.c (force_unlink): New function.
22921         (cleanup): Use it.
22922         (test_mtime): Remove the ctime related tests.
22923         (test_ctime): New function, containing the ctime related tests.
22924         (main): Call test_ctime, except on native Windows platforms.
22925
22926 2008-04-27  Bruno Haible  <bruno@clisp.org>
22927
22928         * lib/rpmatch.c (rpmatch): Add some comments.
22929         Reported by James Youngman <jay@gnu.org>.
22930
22931 2008-04-27  Bruno Haible  <bruno@clisp.org>
22932
22933         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
22934         quiet NaNs.
22935
22936 2008-04-27  Bruno Haible  <bruno@clisp.org>
22937
22938         Make test-yesno.sh work on mingw.
22939         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
22940         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
22941         (main): Set stdin to binary mode.
22942         * modules/yesno-tests (Depends-on): Add binary-io.
22943
22944 2008-04-27  Bruno Haible  <bruno@clisp.org>
22945
22946         Fix 'isfinite' on x86, x86_64, ia64 platforms.
22947         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
22948         argument that lie outside the IEEE 854 domain.
22949         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
22950         (gl_ISFINITE): Use it.
22951         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
22952
22953 2008-04-27  Bruno Haible  <bruno@clisp.org>
22954
22955         Allow local renaming in config.h.
22956         * lib/memrchr.c (memrchr): Don't undefine outside libc.
22957
22958 2008-04-27  Bruno Haible  <bruno@clisp.org>
22959
22960         * lib/memchr.c (__memchr): Change type of 'i'.
22961         * lib/memchr2.c (memchr2): Likewise.
22962
22963 2008-04-26  Eric Blake  <ebb9@byu.net>
22964         and Bruno Haible  <bruno@clisp.org>
22965
22966         Optimize and test memrchr.
22967         * modules/memrchr (Depends-on): Add intprops.
22968         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
22969         * modules/memrchr-tests: New file.
22970         * tests/test-memrchr.c: New file.
22971
22972 2008-04-26  Bruno Haible  <bruno@clisp.org>
22973
22974         Add tentative support for DragonFly BSD.
22975         * lib/stdio-impl.h: Add macros for DragonFly BSD.
22976         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
22977         fp.
22978         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22979         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
22980         * lib/fpurge.c (fpurge): Likewise.
22981         * lib/freadable.c (freaadable): Likewise.
22982         * lib/freadahead.c (freadahead): Likewise.
22983         * lib/freading.c (freading): Likewise.
22984         * lib/freadptr.c (freadptr): Likewise.
22985         * lib/freadseek.c (freadptrinc): Likewise.
22986         * lib/fseeko.c (fseeko): Likewise.
22987         * lib/fseterr.c (fseterr): Likewise.
22988         * lib/fwritable.c (fwritable): Likewise.
22989         * lib/fwriting.c (fwriting): Likewise.
22990
22991 2008-04-26  Bruno Haible  <bruno@clisp.org>
22992
22993         * lib/stdio-impl.h: New file.
22994         * lib/fbufmode.c: Include stdio-impl.h.
22995         (fbufmode): Use fp_, remove redundant #defines.
22996         * lib/fflush.c: Include stdio-impl.h.
22997         (clear_ungetc_buffer): Remove redundant #defines.
22998         * lib/fpurge.c: Include stdio-impl.h.
22999         (fpurge): Remove redundant #defines.
23000         * lib/freadable.c: Include stdio-impl.h.
23001         (freadable): Remove redundant #defines.
23002         * lib/freadahead.c: Include stdio-impl.h.
23003         (freadahead): Remove redundant #defines.
23004         * lib/freading.c: Include stdio-impl.h.
23005         (freading): Remove redundant #defines.
23006         * lib/freadptr.c: Include stdio-impl.h.
23007         (freadptr): Remove redundant #defines.
23008         * lib/freadseek.c: Include stdio-impl.h.
23009         (freadptrinc): Remove redundant #defines.
23010         * lib/fseeko.c: Include stdio-impl.h.
23011         (rpl_fseeko): Remove redundant #defines.
23012         * lib/fseterr.c: Include stdio-impl.h.
23013         (fseterr): Remove redundant #defines.
23014         * lib/fwritable.c: Include stdio-impl.h.
23015         (fwritable: Remove redundant #defines.
23016         * lib/fwriting.c: Include stdio-impl.h.
23017         (fwriting): Remove redundant #defines.
23018         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23019         * modules/fflush (Files): Likewise.
23020         * modules/fpurge (Files): Likewise.
23021         * modules/freadable (Files): Likewise.
23022         * modules/freadahead (Files): Likewise.
23023         * modules/freading (Files): Likewise.
23024         * modules/freadptr (Files): Likewise.
23025         * modules/freadseek (Files): Likewise.
23026         * modules/fseeko (Files): Likewise.
23027         * modules/fseterr (Files): Likewise.
23028         * modules/fwritable (Files): Likewise.
23029         * modules/fwriting (Files): Likewise.
23030
23031 2008-04-26  Bruno Haible  <bruno@clisp.org>
23032
23033         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23034         restore_seek_optimization, update_fpos_cache): New functions, extracted
23035         from rpl_fflush.
23036         (rpl_fflush): Use them.
23037         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23038         (gl_REPLACE_FFLUSH): Use it.
23039
23040 2008-04-26  Bruno Haible  <bruno@clisp.org>
23041
23042         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23043         on Solaris.
23044         * tests/test-xstrtoimax.sh: Likewise.
23045         * tests/test-xstrtoumax.sh: Likewise.
23046         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23047
23048 2008-04-26  Bruno Haible  <bruno@clisp.org>
23049
23050         * modules/memchr-tests: New file.
23051         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23052
23053 2008-04-26  Eric Blake  <ebb9@byu.net>
23054             Bruno Haible  <bruno@clisp.org>
23055
23056         * lib/memchr.c: Include intprops.h.
23057         (__memchr): Optimize parallel detection of matching bytes. Rename local
23058         variables. Add explanatory comments.
23059
23060 2008-04-26  Bruno Haible  <bruno@clisp.org>
23061
23062         Fix module 'memchr', broken since 2000-10-28.
23063         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23064
23065 2008-04-26  Bruno Haible  <bruno@clisp.org>
23066
23067         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23068         comments.
23069
23070 2008-04-25  Eric Blake  <ebb9@byu.net>
23071
23072         Use native fstatat on cygwin 1.7.0.
23073         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23074         first.
23075
23076 2008-04-23  Eric Blake  <ebb9@byu.net>
23077
23078         Improve memchr2 performance.
23079         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23080         NUL bytes.
23081         * modules/memchr2 (Depends-on): Use intprops.h.
23082
23083 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23084
23085         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23086         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23087         <blp@cs.stanford.edu>.
23088
23089 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23090
23091         * lib/arpa_inet.in.h: New file.
23092
23093         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23094         (Makefile.am): Sed in substitute header file.
23095
23096         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23097         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23098
23099         * modules/inet_ntop (configure.ac): Use
23100         gl_ARPA_INET_MODULE_INDICATOR.
23101
23102         * modules/inet_pton (configure.ac): Use
23103         gl_ARPA_INET_MODULE_INDICATOR.
23104
23105 2008-04-22  Jim Meyering  <meyering@redhat.com>
23106
23107         * modules/verify (License): Re-license as LGPLv2+.
23108
23109 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23110
23111         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23112         parameter to void* as per POSIX standard (MinGW uses char*).
23113
23114 2008-04-21  Bruno Haible  <bruno@clisp.org>
23115
23116         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23117         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23118         Define to replacements if REPLACE_ISWCNTRL is 1.
23119         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23120         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23121         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23122         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23123         what it fixes.
23124         * doc/posix-functions/iswalpha.texi: Likewise.
23125         * doc/posix-functions/iswblank.texi: Likewise.
23126         * doc/posix-functions/iswcntrl.texi: Likewise.
23127         * doc/posix-functions/iswdigit.texi: Likewise.
23128         * doc/posix-functions/iswgraph.texi: Likewise.
23129         * doc/posix-functions/iswlower.texi: Likewise.
23130         * doc/posix-functions/iswprint.texi: Likewise.
23131         * doc/posix-functions/iswpunct.texi: Likewise.
23132         * doc/posix-functions/iswspace.texi: Likewise.
23133         * doc/posix-functions/iswupper.texi: Likewise.
23134         * doc/posix-functions/iswxdigit.texi: Likewise.
23135         Reported by Alain Guibert.
23136
23137 2008-04-21  Bruno Haible  <bruno@clisp.org>
23138
23139         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23140         Patch by Alain Guibert.
23141
23142 2008-04-21  Bruno Haible  <bruno@clisp.org>
23143
23144         Fix test failures on mingw.
23145         * tests/test-xstrtol.c (print_no_progname): New function.
23146         (main): Install it in error_print_progname hook.
23147         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23148         * tests/test-xstrtoimax.sh: Likewise.
23149         * tests/test-xstrtoumax.sh: Likewise.
23150
23151 2008-04-21  Bruno Haible  <bruno@clisp.org>
23152
23153         Fix test failure on mingw.
23154         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23155
23156 2008-04-21  Bruno Haible  <bruno@clisp.org>
23157
23158         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23159         Actually assign a value.
23160
23161 2008-04-20  Bruno Haible  <bruno@clisp.org>
23162
23163         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23164         take 2.
23165         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23166         'canonicalize-lgpl' module is also used.
23167         * lib/canonicalize-lgpl.c: Undo last change.
23168         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23169
23170 2008-04-20  Bruno Haible  <bruno@clisp.org>
23171
23172         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23173         config.h. Provide _mkdir based fallback for mingw.
23174         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23175         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23176         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23177         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23178         rather than defining mkdir in config.h.
23179         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23180         (gl_SYS_STAT_H_DEFAULTS): New macro.
23181         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23182         HAVE_IO_H any more.
23183         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23184         HAVE_DECL_MKDIR and HAVE_IO_H.
23185
23186 2008-04-20  Bruno Haible  <bruno@clisp.org>
23187
23188         * lib/isapipe.c: Port to native Windows platforms.
23189
23190 2008-04-20  Bruno Haible  <bruno@clisp.org>
23191
23192         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23193
23194 2008-04-21  Eric Blake  <ebb9@byu.net>
23195
23196         Work around preprocessors that don't handle UINTMAX_MAX.
23197         * lib/memchr2.c (memchr2): Avoid embedded #if.
23198         Reported by Alain Guibert, fix suggested by Bruno Haible.
23199
23200 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23201
23202         * doc/posix-functions/strftime.texi (strftime): Explain better
23203         Windows incompatibility.  Suggested by Micah Cowan
23204         <micah@cowan.name>.
23205
23206 2008-04-20  Bruno Haible  <bruno@clisp.org>
23207
23208         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23209         unistr/u8-mblen.
23210
23211 2008-04-20  Bruno Haible  <bruno@clisp.org>
23212
23213         Fix test failure on platforms with non-GNU iconv.
23214         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23215         (U_TO_U8): Use it, rather than u16_to_u8.
23216         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23217         units at the end of the input string.
23218         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23219
23220 2008-04-20  Bruno Haible  <bruno@clisp.org>
23221
23222         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23223         when the resulting length is 0.
23224         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23225
23226 2008-04-20  Bruno Haible  <bruno@clisp.org>
23227
23228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23229         works.
23230         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23231
23232 2008-04-20  Bruno Haible  <bruno@clisp.org>
23233
23234         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23235         * modules/tsearch-tests (configure.ac): Test for initstate function.
23236
23237 2008-04-20  Bruno Haible  <bruno@clisp.org>
23238
23239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23240         for nlink_t if missing.
23241         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23242
23243 2008-04-19  Bruno Haible  <bruno@clisp.org>
23244
23245         Work around snprintf bug on Linux libc5.
23246         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23248         gl_SNPRINTF_SIZE1.
23249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23250         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23251         that test failed.
23252         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23253         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23254         * modules/snprintf (Files): Add m4/printf.m4.
23255         * modules/vsnprintf (Files): Likewise.
23256         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23257         * doc/posix-functions/vsnprintf.texi: Likewise.
23258
23259 2008-04-19  Bruno Haible  <bruno@clisp.org>
23260
23261         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23262         from 0.0058 to less than 10^-7.
23263
23264 2008-04-19  Bruno Haible  <bruno@clisp.org>
23265
23266         Fix rounding when a precision is given.
23267         * lib/vasnprintf.c (is_borderline): New function.
23268         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23269         9...9x.
23270         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23271         %e, %g.
23272         * tests/test-vasprintf-posix.c (test_function): Likewise.
23273         * tests/test-snprintf-posix.h (test_function): Likewise.
23274         * tests/test-sprintf-posix.h (test_function): Likewise.
23275         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23276         * tests/test-printf-posix.h (test_function): Likewise.
23277         * tests/test-printf-posix.output: Update.
23278         Reported by John Darrington <john@darrington.wattle.id.au> via
23279         Ben Pfaff <blp@cs.stanford.edu>.
23280
23281 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23282
23283         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23284         Suggested by Bruno Haible <bruno@clisp.org>.
23285
23286 2008-04-17  Bruno Haible  <bruno@clisp.org>
23287
23288         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23289         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23290         implementation.
23291         Patch by Bruce Merry <bmerry@gmail.com>.
23292
23293 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23294
23295         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23296         doesn't work under Windows.
23297
23298 2008-04-16  Bruno Haible  <bruno@clisp.org>
23299
23300         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23301         New macros.
23302         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23303         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23304         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23305         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23306         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23307         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23308         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23309         macros.
23310         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23311         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23312         Northern Sotho, Uighur.
23313
23314 2008-04-16  Bruno Haible  <bruno@clisp.org>
23315
23316         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23317         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23318         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23319         Reported by Daniel Bergström <daniel@octocode.com>.
23320
23321 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23322             Bruno Haible  <bruno@clisp.org>
23323
23324         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23325         function.
23326         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23327         New functions, mostly extracted from gl_locale_name_default.
23328         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23329
23330 2008-04-16  Eric Blake  <ebb9@byu.net>
23331
23332         Adjust strtod detection to catch glibc 2.7 bug.
23333         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23334         Reported by John Gatewood Ham.
23335
23336 2008-04-16  Bruno Haible  <bruno@clisp.org>
23337
23338         Add tentative support for Linux libc5.
23339         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23340         * lib/fpurge.c (fpurge): Likewise.
23341         * lib/freadable.c (freadable): Likewise.
23342         * lib/freadahead.c (freadahead): Likewise.
23343         * lib/freading.c (freading): Likewise.
23344         * lib/freadptr.c (freadptr): Likewise.
23345         * lib/freadseek.c (freadptrinc): Likewise.
23346         * lib/fseeko.c (rpl_fseeko): Likewise.
23347         * lib/fseterr.c (fseterr): Likewise.
23348         * lib/fwritable.c (fwritable): Likewise.
23349         * lib/fwriting.c (fwriting): Likewise.
23350         Reported by Alain Guibert <alguibert+bts@free.fr>.
23351
23352 2008-04-15  Bruno Haible  <bruno@clisp.org>
23353
23354         * modules/mathl (configure.ac): Define module indicator.
23355
23356 2008-04-15  Bruno Haible  <bruno@clisp.org>
23357
23358         * lib/logl.c (logl): Remove unused variables.
23359
23360 2008-04-15  Bruno Haible  <bruno@clisp.org>
23361
23362         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23363         fails.
23364
23365 2008-04-15  Bruno Haible  <bruno@clisp.org>
23366
23367         * lib/trim.c (trim2): Fix argument of isspace() macro.
23368
23369 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23370
23371         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23372         to 0.
23373         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23374
23375 2008-04-14  Bruno Haible  <bruno@clisp.org>
23376
23377         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23378         AC_LANG_PROGRAM argument.
23379         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23380         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23382         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23383         * m4/math_h.m4 (gl_MATH_H): Likewise.
23384         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23385         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23386         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23387         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23388         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23389         * m4/regex.m4 (gl_REGEX): Likewise.
23390         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23391         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23392         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23393         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23394         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23395         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23398
23399 2008-04-14  Jim Meyering  <meyering@redhat.com>
23400
23401         test-strtod: fix typos: s/abs/fabs/
23402         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23403
23404 2008-04-13  Bruno Haible  <bruno@clisp.org>
23405
23406         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23407         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23408         module is also used and while not building the reloc-wrapper.
23409
23410 2008-04-13  Bruno Haible  <bruno@clisp.org>
23411
23412         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23413
23414 2008-04-13  Bruno Haible  <bruno@clisp.org>
23415
23416         Fix AIX compilation failure introduced on 2008-04-02.
23417         * tests/test-frexp.c (exp): Undefine before redefining.
23418         * tests/test-frexpl.c (exp): Likewise.
23419
23420 2008-04-13  Bruno Haible  <bruno@clisp.org>
23421
23422         Work around a HP-UX stdio bug.
23423         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23424         * tests/test-ftello.c (main): Likewise.
23425         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23426         * doc/posix-functions/ftello.texi: Likewise.
23427
23428 2008-04-13  Bruno Haible  <bruno@clisp.org>
23429
23430         Make test-signbit pass on HP-UX/hppa.
23431         * tests/test-signbit.c (minus_zerol): New variable.
23432         (test_signbitl): Use it.
23433
23434 2008-04-13  Bruno Haible  <bruno@clisp.org>
23435
23436         Make truncl work on OSF/1 4.0.
23437         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23438         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23439         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23441         HAVE_DECL_TRUNCL.
23442         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23443         HAVE_DECL_TRUNCL.
23444         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23445
23446 2008-04-13  Bruno Haible  <bruno@clisp.org>
23447
23448         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23449
23450 2008-04-13  Bruno Haible  <bruno@clisp.org>
23451
23452         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23453         expression, so as to avoid HP-UX 11 cc compiler bug.
23454
23455 2008-04-13  Bruno Haible  <bruno@clisp.org>
23456
23457         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23458
23459 2008-04-13  Bruno Haible  <bruno@clisp.org>
23460
23461         * lib/git-merge-changelog.c: Remove empty declaration outside of
23462         functions.
23463
23464 2008-04-13  Bruno Haible  <bruno@clisp.org>
23465
23466         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23467
23468 2008-04-13  Bruno Haible  <bruno@clisp.org>
23469
23470         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23471         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23473         also if it exists but lacks definitions of the SHUT_* macros.
23474         * modules/sys_socket (Description): Update.
23475         Reported by Elbert Pol <e.pol@chello.nl>.
23476
23477 2008-04-13  Bruno Haible  <bruno@clisp.org>
23478
23479         * lib/localcharset.c (OS2): Don't redefine if already defined.
23480         Reported by Elbert Pol <e.pol@chello.nl>.
23481
23482 2008-04-13  Bruno Haible  <bruno@clisp.org>
23483
23484         * lib/binary-io.h [__EMX__]: Include <io.h>.
23485         Reported by Elbert Pol <e.pol@chello.nl>.
23486
23487 2008-04-12  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/fpucw.h: Enable the definitions also for x86_64.
23490         Needed for NetBSD/x86_64.
23491         Reported by Thomas Klausner <tk@giga.or.at>.
23492
23493 2008-04-12  Bruno Haible  <bruno@clisp.org>
23494
23495         * tests/test-strtod.c: Include isnand.h.
23496         (main): Use isnand instead of isnan.
23497         Reported by Jim Meyering.
23498
23499 2008-04-12  Bruno Haible  <bruno@clisp.org>
23500
23501         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23502         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23503
23504 2008-04-12  Jim Meyering  <meyering@redhat.com>
23505
23506         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23507
23508 2008-04-12  Bruno Haible  <bruno@clisp.org>
23509
23510         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23511         Reported by Elbert Pol <e.pol@chello.nl>.
23512
23513 2008-04-12  Eric Blake  <ebb9@byu.net>
23514
23515         Work around Solaris 10 math.h bug.
23516         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23517         (gl_MATH_H_DEFAULTS): Set up default.
23518         * modules/math (Makefile.am): Replace new indicators.
23519         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23520         * tests/test-math.c (main): Test this.
23521         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23522         * doc/posix-headers/math.texi (math.h): Mention bug.
23523         Reported by Nelson H. F. Beebe and Jim Meyering.
23524
23525 2008-04-11  Bruno Haible  <bruno@clisp.org>
23526
23527         Adapt to future versions of Apple GCC.
23528         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23529         Reported by Peter O'Gorman <peter@pogma.com>.
23530
23531 2008-04-11  Bruno Haible  <bruno@clisp.org>
23532
23533         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23534
23535 2008-04-11  Bruno Haible  <bruno@clisp.org>
23536
23537         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23538
23539         * modules/getaddrinfo-tests (Makefile.am): Define
23540         test_getaddrinfo_LDADD.
23541
23542 2008-04-11  Bruno Haible  <bruno@clisp.org>
23543
23544         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23545         (init): Fix syntax error.
23546         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23547         is declared.
23548
23549 2008-04-11  Bruno Haible  <bruno@clisp.org>
23550
23551         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23552         * modules/glob (Depends-on): Add stdbool.
23553
23554 2008-04-11  Bruno Haible  <bruno@clisp.org>
23555
23556         * lib/trim.c: Include <string.h>.
23557
23558 2008-04-11  Eric Blake  <ebb9@byu.net>
23559
23560         Avoid compile failure on OS/2.
23561         * lib/regex_internal.h (internal_function): Disable optimization
23562         on OS/2 (__EMX__), where it caused compiler error.
23563         Reported by Elbert Pol.
23564
23565 2008-04-11  Bruno Haible  <bruno@clisp.org>
23566
23567         Flush the standard error stream before aborting. Needed on mingw.
23568         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23569         * tests/test-array_list.c (ASSERT): Likewise.
23570         * tests/test-array_oset.c (ASSERT): Likewise.
23571         * tests/test-avltree_list.c (ASSERT): Likewise.
23572         * tests/test-avltree_oset.c (ASSERT): Likewise.
23573         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23574         * tests/test-binary-io.c (ASSERT): Likewise.
23575         * tests/test-byteswap.c (ASSERT): Likewise.
23576         * tests/test-c-ctype.c (ASSERT): Likewise.
23577         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23578         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23579         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23580         * tests/test-c-strstr.c (ASSERT): Likewise.
23581         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23582         * tests/test-canonicalize.c (ASSERT): Likewise.
23583         * tests/test-carray_list.c (ASSERT): Likewise.
23584         * tests/test-ceilf1.c (ASSERT): Likewise.
23585         * tests/test-ceilf2.c (ASSERT): Likewise.
23586         * tests/test-ceill.c (ASSERT): Likewise.
23587         * tests/test-count-one-bits.c (ASSERT): Likewise.
23588         * tests/test-fbufmode.c (ASSERT): Likewise.
23589         * tests/test-fflush2.c (ASSERT): Likewise.
23590         * tests/test-floorf1.c (ASSERT): Likewise.
23591         * tests/test-floorf2.c (ASSERT): Likewise.
23592         * tests/test-floorl.c (ASSERT): Likewise.
23593         * tests/test-fopen.c (ASSERT): Likewise.
23594         * tests/test-fpending.c (ASSERT): Likewise.
23595         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23596         * tests/test-fpurge.c (ASSERT): Likewise.
23597         * tests/test-freadable.c (ASSERT): Likewise.
23598         * tests/test-freadahead.c (ASSERT): Likewise.
23599         * tests/test-freading.c (ASSERT): Likewise.
23600         * tests/test-freadptr.c (ASSERT): Likewise.
23601         * tests/test-freadptr2.c (ASSERT): Likewise.
23602         * tests/test-freadseek.c (ASSERT): Likewise.
23603         * tests/test-freopen.c (ASSERT): Likewise.
23604         * tests/test-frexp.c (ASSERT): Likewise.
23605         * tests/test-frexpl.c (ASSERT): Likewise.
23606         * tests/test-fseek.c (ASSERT): Likewise.
23607         * tests/test-fseeko.c (ASSERT): Likewise.
23608         * tests/test-fstrcmp.c (ASSERT): Likewise.
23609         * tests/test-ftell.c (ASSERT): Likewise.
23610         * tests/test-ftello.c (ASSERT): Likewise.
23611         * tests/test-func.c (ASSERT): Likewise.
23612         * tests/test-fwritable.c (ASSERT): Likewise.
23613         * tests/test-fwriting.c (ASSERT): Likewise.
23614         * tests/test-getdelim.c (ASSERT): Likewise.
23615         * tests/test-getline.c (ASSERT): Likewise.
23616         * tests/test-i-ring.c (ASSERT): Likewise.
23617         * tests/test-iconv-utf.c (ASSERT): Likewise.
23618         * tests/test-iconv.c (ASSERT): Likewise.
23619         * tests/test-isfinite.c (ASSERT): Likewise.
23620         * tests/test-isnand.c (ASSERT): Likewise.
23621         * tests/test-isnanf.c (ASSERT): Likewise.
23622         * tests/test-isnanl.h (ASSERT): Likewise.
23623         * tests/test-ldexpl.c (ASSERT): Likewise.
23624         * tests/test-linked_list.c (ASSERT): Likewise.
23625         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23626         * tests/test-localename.c (ASSERT): Likewise.
23627         * tests/test-lseek.c (ASSERT): Likewise.
23628         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23629         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23630         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23631         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23632         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23633         * tests/test-mbschr.c (ASSERT): Likewise.
23634         * tests/test-mbscspn.c (ASSERT): Likewise.
23635         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23636         * tests/test-mbspbrk.c (ASSERT): Likewise.
23637         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23638         * tests/test-mbsrchr.c (ASSERT): Likewise.
23639         * tests/test-mbsspn.c (ASSERT): Likewise.
23640         * tests/test-mbsstr1.c (ASSERT): Likewise.
23641         * tests/test-mbsstr2.c (ASSERT): Likewise.
23642         * tests/test-mbsstr3.c (ASSERT): Likewise.
23643         * tests/test-memchr2.c (ASSERT): Likewise.
23644         * tests/test-memmem.c (ASSERT): Likewise.
23645         * tests/test-open.c (ASSERT): Likewise.
23646         * tests/test-printf-frexp.c (ASSERT): Likewise.
23647         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23648         * tests/test-printf-posix.c (ASSERT): Likewise.
23649         * tests/test-quotearg.c (ASSERT): Likewise.
23650         * tests/test-rbtree_list.c (ASSERT): Likewise.
23651         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23652         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23653         * tests/test-round1.c (ASSERT): Likewise.
23654         * tests/test-roundf1.c (ASSERT): Likewise.
23655         * tests/test-roundl.c (ASSERT): Likewise.
23656         * tests/test-signbit.c (ASSERT): Likewise.
23657         * tests/test-sleep.c (ASSERT): Likewise.
23658         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23659         * tests/test-snprintf.c (ASSERT): Likewise.
23660         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23661         * tests/test-stat-time.c (ASSERT): Likewise.
23662         * tests/test-strcasestr.c (ASSERT): Likewise.
23663         * tests/test-strerror.c (ASSERT): Likewise.
23664         * tests/test-striconv.c (ASSERT): Likewise.
23665         * tests/test-striconveh.c (ASSERT): Likewise.
23666         * tests/test-striconveha.c (ASSERT): Likewise.
23667         * tests/test-strsignal.c (ASSERT): Likewise.
23668         * tests/test-strstr.c (ASSERT): Likewise.
23669         * tests/test-strtod.c (ASSERT): Likewise.
23670         * tests/test-trunc1.c (ASSERT): Likewise.
23671         * tests/test-trunc2.c (ASSERT): Likewise.
23672         * tests/test-truncf1.c (ASSERT): Likewise.
23673         * tests/test-truncf2.c (ASSERT): Likewise.
23674         * tests/test-truncl.c (ASSERT): Likewise.
23675         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23676         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23677         * tests/test-vasnprintf.c (ASSERT): Likewise.
23678         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23679         * tests/test-vasprintf.c (ASSERT): Likewise.
23680         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23681         * tests/test-vprintf-posix.c (ASSERT): Likewise.
23682         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23683         * tests/test-vsnprintf.c (ASSERT): Likewise.
23684         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23685         * tests/test-wcwidth.c (ASSERT): Likewise.
23686         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23687         * tests/test-xprintf-posix.c (ASSERT): Likewise.
23688         * tests/test-xvasprintf.c (ASSERT): Likewise.
23689         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23690         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23691         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23692         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23693         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23694         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23695         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23696         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23697         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23698         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23699         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23700         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23701         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23702         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23703         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23704         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23705         * tests/unictype/test-block_list.c (ASSERT): Likewise.
23706         * tests/unictype/test-block_of.c (ASSERT): Likewise.
23707         * tests/unictype/test-block_test.c (ASSERT): Likewise.
23708         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23709         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23710         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23711         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23712         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23713         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23714         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23715         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23716         * tests/unictype/test-combining.c (ASSERT): Likewise.
23717         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23718         * tests/unictype/test-digit.c (ASSERT): Likewise.
23719         * tests/unictype/test-mirror.c (ASSERT): Likewise.
23720         * tests/unictype/test-numeric.c (ASSERT): Likewise.
23721         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23722         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23723         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23724         * tests/unictype/test-scripts.c (ASSERT): Likewise.
23725         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23726         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23727         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23728         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23729         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23730         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23731         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23732         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23733         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23734         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23735         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23736         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23737         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23738         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23739         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23740         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23741         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23742         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23743         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23744         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23745         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23746         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23747         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23748         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23749         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23750         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23751         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23752         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23753         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23754         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23755         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23756         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
23757         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
23758         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
23759         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
23760         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
23761         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
23762         Reported by Eric Blake.
23763
23764 2008-04-11  Bruno Haible  <bruno@clisp.org>
23765
23766         * lib/wchar.in.h: Tweak comment.
23767
23768 2008-04-11  Bruno Haible  <bruno@clisp.org>
23769
23770         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
23771         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
23772         gl_COMMON.
23773         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
23774
23775 2008-04-11  Bruno Haible  <bruno@clisp.org>
23776
23777         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
23778
23779 2008-04-11  Simon Josefsson  <simon@josefsson.org>
23780
23781         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
23782         of attempting to use non-existing /dev/*random.  Based on patch
23783         from Adam Strzelecki <ono@java.pl> in
23784         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
23785
23786 2008-04-08  Bruno Haible  <bruno@clisp.org>
23787
23788         Add tentative support for emx+gcc.
23789         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
23790         * lib/fpurge.c (fpurge): Likewise.
23791         * lib/freadable.c (freadable): Likewise.
23792         * lib/freadahead.c (freadahead): Likewise.
23793         * lib/freading.c (freading): Likewise.
23794         * lib/freadptr.c (freadptr): Likewise.
23795         * lib/freadseek.c (freadptrinc): Likewise.
23796         * lib/fseeko.c (rpl_fseeko): Likewise.
23797         * lib/fseterr.c (fseterr): Likewise.
23798         * lib/fwritable.c (fwritable): Likewise.
23799         * lib/fwriting.c (fwriting): Likewise.
23800         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
23801
23802 2008-04-09  Eric Blake  <ebb9@byu.net>
23803
23804         Avoid some autoconf warnings.
23805         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
23806         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
23807         * m4/afs.m4 (gl_AFS): Likewise.
23808         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
23809         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
23810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23811         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
23812         (gl_INTEGER_TYPE_SUFFIX): Likewise.
23813         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
23814         (AC_CHECK_DECLS_ONCE): Likewise.
23815         Rename file...
23816         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
23817         gnulib-tool requires autoconf 2.59 or better.
23818         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
23819
23820 2008-04-08  Eric Blake  <ebb9@byu.net>
23821
23822         Use 'git describe --match' if present (added in git 1.5.5).
23823         * build-aux/git-version-gen: Limit result to tags that match 'v*'
23824         if possible.
23825
23826 2008-04-08  Bruno Haible  <bruno@clisp.org>
23827
23828         Add tentative support for OpenServer.
23829         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
23830         _ptr, _cnt.
23831         * lib/fpurge.c (fpurge): Likewise.
23832         * lib/freadable.c (freadable): Likewise.
23833         * lib/freadahead.c (freadahead): Likewise.
23834         * lib/freading.c (freading): Likewise.
23835         * lib/freadptr.c (freadptr): Likewise.
23836         * lib/freadseek.c (freadptrinc): Likewise.
23837         * lib/fseeko.c (rpl_fseeko): Likewise.
23838         * lib/fseterr.c (fseterr): Likewise.
23839         * lib/fwritable.c (fwritable): Likewise.
23840         * lib/fwriting.c (fwriting): Likewise.
23841         Reported by Roger Cornelius <rac@tenzing.org> and
23842         Brian K. White <brian@aljex.com>.
23843
23844 2008-04-06  Jim Meyering  <meyering@redhat.com>
23845
23846         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
23847
23848 2008-04-06  Bruno Haible  <bruno@clisp.org>
23849
23850         Avoid possible error with non-ASCII bytes in UTF-8 locales.
23851         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
23852         * tests/test-printf-posix.sh: Likewise.
23853         * tests/test-vfprintf-posix.sh: Likewise.
23854         * tests/test-vprintf-posix.sh: Likewise.
23855         * tests/test-xprintf-posix.sh: Likewise.
23856
23857 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23858
23859         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
23860         hide error from 'ls', needed on OS/2.
23861         Report by Elbert Pol <elbert.pol@gmail.com>.
23862
23863 2008-04-04  Eric Blake  <ebb9@byu.net>
23864
23865         Make test-fseeko.c failures meaningful.
23866         * tests/test-fseeko.c: Print line number on failure.
23867         * tests/test-fseek.c: Likewise.
23868         Reported by Nelson H. F. Beebe.
23869
23870         Improve strtod bug detection check.
23871         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
23872         required for Solaris 10.
23873         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
23874
23875 2008-04-04  Bruno Haible  <bruno@clisp.org>
23876
23877         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
23878         by m4/setenv.m4.
23879
23880 2008-04-03  Eric Blake  <ebb9@byu.net>
23881
23882         Ensure sane .version contents.
23883         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
23884         version string.
23885         * build-aux/git-version-gen: Improve documentation.
23886
23887         Make GNU make output nicer.
23888         * top/GNUmakefile [!_have-Makefile]: Add dependency on
23889         MAKECMDGOALS to enforce message for all command line targets.  Set
23890         srcdir for use in maint.mk.
23891
23892         Another maintainer tweak.
23893         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
23894         a target that regenerates version.
23895
23896 2008-04-03  Jim Meyering  <meyering@redhat.com>
23897
23898         vc-list-files: don't cause coreutils "make po-check" failure
23899         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
23900
23901 2008-04-03  Eric Blake  <ebb9@byu.net>
23902
23903         Allow VPATH usage of vc-list-files.
23904         * build-aux/vc-list-files (scriptversion): Add timestamp.
23905         (options): Add --help, --version, -C.
23906         (CVS): Support installed cvsu.
23907
23908 2008-04-02  Bruno Haible  <bruno@clisp.org>
23909
23910         Avoid some "statement with no effect" warnings from gcc.
23911         * tests/test-wctype.c (main): Explicitly ignore unused values.
23912         Reported by Jim Meyering.
23913
23914 2008-04-02  Jim Meyering  <meyering@redhat.com>
23915
23916         Avoid some warnings from "gcc -Wshadow".
23917         * tests/test-frexp.c (exp): Define to a different identifier.
23918         * tests/test-frexpl.c (exp): Likewise.
23919
23920 2008-04-03  Jim Meyering  <meyering@redhat.com>
23921
23922         bootstrap: remove dangling *.[ch] symlinks from lib
23923         * build-aux/bootstrap [dangling symlink removal]: Move find's
23924         -depth option to precede all others, to avoid a warning.
23925         Remove *.[ch] files too, and from "$source_base" (usually lib/).
23926
23927 2008-04-02  Bruno Haible  <bruno@clisp.org>
23928
23929         Avoid some warnings from "gcc -Wshadow".
23930         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
23931         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
23932         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
23933         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
23934         Reported by Jim Meyering.
23935
23936 2008-04-01  Bruno Haible  <bruno@clisp.org>
23937
23938         Fix test to work on IRIX 6.5 with cc.
23939         * tests/test-math.c (numeric_equal): New function.
23940         (main): Use it.
23941
23942 2008-04-01  Bruno Haible  <bruno@clisp.org>
23943
23944         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
23945
23946 2008-04-01  Bruno Haible  <bruno@clisp.org>
23947
23948         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
23949         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23950         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
23951         (Depends-on): Remove math.
23952
23953         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
23954         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23955         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
23956         (Depends-on): Remove math.
23957
23958         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
23959         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23960         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
23961         (Depends-on): Remove math.
23962         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
23963         (Depends-on): Remove math.
23964
23965         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
23966         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23967         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
23968         (Depends-on): Remove math.
23969         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
23970         (Depends-on): Remove math.
23971
23972         * tests/test-round1.c: Include nan.h.
23973         (main): Use NaNd instead of NAN.
23974         * modules/round-tests (Files): Add tests/nan.h.
23975
23976         * tests/test-trunc1.c: Include nan.h.
23977         (main): Use NaNd instead of NAN.
23978         * modules/trunc-tests (Files): Add tests/nan.h.
23979
23980         * tests/test-roundf1.c: Include nan.h.
23981         (main): Use NaNf instead of NAN.
23982         * modules/roundf-tests (Files): Add tests/nan.h.
23983
23984         * tests/test-truncf1.c: Include nan.h.
23985         (main): Use NaNf instead of NAN.
23986         * modules/truncf-tests (Files): Add tests/nan.h.
23987
23988         * tests/test-ceilf1.c: Include nan.h.
23989         (main): Use NaNf instead of NAN.
23990         * modules/ceilf-tests (Files): Add tests/nan.h.
23991
23992         * tests/test-floorf1.c: Include nan.h.
23993         (main): Use NaNf instead of NAN.
23994         * modules/floorf-tests (Files): Add tests/nan.h.
23995
23996         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
23997         (main): Use NaNf instead of NAN.
23998         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
23999
24000         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24001         (main): Use NaNd instead of NAN.
24002         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24003
24004         * tests/test-frexp.c: Include nan.h.
24005         (main): Use NaNd instead of NAN.
24006         * modules/frexp-tests (Files): Add tests/nan.h.
24007
24008         * lib/isnan.c: Don't include <math.h>.
24009         (FUNC): Don't use NAN macro.
24010         * modules/isnand-nolibm (Depends-on): Remove math.
24011         * modules/isnanf-nolibm (Depends-on): Remove math.
24012         * modules/isnanl (Depends-on): Remove math.
24013         * modules/isnanl-nolibm (Depends-on): Remove math.
24014
24015         * tests/nan.h: New file.
24016
24017 2008-04-01  Eric Blake  <ebb9@byu.net>
24018
24019         Fix typos.
24020         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24021         values to be the right type.
24022
24023         For now, cater to gnulib strtod inaccuracies.
24024         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24025         fractional results.  While not as nice from a QoI perspective, it
24026         is a quicker patch than correctly implementing decimal to binary
24027         rounding.
24028
24029 2008-03-31  Eric Blake  <ebb9@byu.net>
24030
24031         Guarantee a definition of NAN.
24032         * lib/math.in.h (NAN): Define if missing.
24033         * tests/test-math.c (main): Test it.
24034         * doc/posix-headers/math.texi (math.h): Document this.
24035         * lib/isnan.c (rpl_isnand): Use it.
24036         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24037         * tests/test-floorf1.c (NaN): Likewise.
24038         * tests/test-frexp.c (NaN): Likewise.
24039         * tests/test-isnand.c (NaN): Likewise.
24040         * tests/test-isnanf.c (NaN): Likewise.
24041         * tests/test-round1.c (NaN): Likewise.
24042         * tests/test-roundf1.c (NaN): Likewise.
24043         * tests/test-snprintf-posix.h (NaN): Likewise.
24044         * tests/test-sprintf-posix.h (NaN): Likewise.
24045         * tests/test-trunc1.c (NaN): Likewise.
24046         * tests/test-truncf1.c (NaN): Likewise.
24047         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24048         * tests/test-vasprintf-posix.c (NaN): Likewise.
24049         * modules/isnand-nolibm (Depends-on): Add math.
24050         * modules/isnanf-nolibm (Depends-on): Likewise.
24051         * modules/isnanl (Depends-on): Likewise.
24052         * modules/isnanl-nolibm (Depends-on): Likewise.
24053         * modules/snprintf-posix-tests (Depends-on): Likewise.
24054         * modules/sprintf-posix-tests (Depends-on): Likewise.
24055         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24056         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24057         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24058         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24059
24060 2008-03-31  Bruno Haible  <bruno@clisp.org>
24061
24062         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24063         * doc/posix-functions/strtod.texi: Likewise.
24064
24065 2008-03-31  Bruno Haible  <bruno@clisp.org>
24066
24067         * tests/test-strtod.c (main): Don't use C99 syntax.
24068
24069 2008-03-31  Bruno Haible  <bruno@clisp.org>
24070
24071         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24072         Reported by Eric Blake.
24073
24074 2008-03-31  Jim Meyering  <meyering@redhat.com>
24075
24076         Don't compare actual signbit return values.
24077         * tests/test-strtod.c (main): Rather, compare only their
24078         zero/non-zero nature.
24079
24080 2008-03-31  Eric Blake  <ebb9@byu.net>
24081
24082         More strtod documentation.
24083         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24084         failures as distinct bugs.
24085
24086 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24087
24088         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24089         Problem reported by Erik Benada in
24090         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24091
24092 2008-03-30  Bruno Haible  <bruno@clisp.org>
24093
24094         * tests/test-strtod.c: Add comments about which assertion fails on which
24095         platform.
24096         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24097
24098 2008-03-30  Eric Blake  <ebb9@byu.net>
24099
24100         Test signbit behavior on zeros.
24101         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24102         (test_signbitd, test_signbitl): Likewise.
24103
24104         More strtod touchups.
24105         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24106         sign of negative underflow, for now.  Use .5, not .1.
24107         * doc/posix-functions/strtod.texi (strtod): Mention these
24108         limitations.
24109         Reported by Jim Meyering.
24110
24111 2008-03-30  Bruno Haible  <bruno@clisp.org>
24112
24113         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24114         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24115
24116 2008-03-30  Bruno Haible  <bruno@clisp.org>
24117
24118         Avoid failure when attempting to return empty iconv results on some
24119         platforms.
24120         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24121         allocation, don't report ENOMEM when the resulting string is empty.
24122
24123 2008-03-30  Bruno Haible  <bruno@clisp.org>
24124
24125         Fix buffer overrun.
24126         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24127         Don't consider the width for tmp_length. Check count against tmp_length
24128         before doing the padding. Ensure enough allocation during padding.
24129
24130 2008-03-30  Eric Blake  <ebb9@byu.net>
24131
24132         strtod touchups.
24133         * lib/strtod.c (strtod): Avoid compiler warnings.
24134         Reported by Jim Meyering.
24135
24136 2008-03-30  Bruno Haible  <bruno@clisp.org>
24137
24138         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24139         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24140         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24141         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24142         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24143         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24144         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24145         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24146
24147         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24148         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24149         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24150         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24151         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24152         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24153         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24154         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24155
24156         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24157         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24158         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24159         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24160         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24161         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24162         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24163         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24164
24165         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24166         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24167
24168         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24169         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24170
24171         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24172         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24173
24174         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24176         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24177
24178         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24179         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24180         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24181
24182         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24183         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24184         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24185
24186         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24187         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24188         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24189
24190         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24191         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24192         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24193         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24194         (Depends-on): Add EOVERFLOW.
24195         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24196         (Depends-on): Add EOVERFLOW.
24197         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24198         (Depends-on): Add EOVERFLOW.
24199         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24200         (Depends-on): Add EOVERFLOW.
24201         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24202         (Depends-on): Add EOVERFLOW.
24203         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24204         (Depends-on): Add EOVERFLOW.
24205         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24206         (Depends-on): Add EOVERFLOW.
24207         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24208         (Depends-on): Add EOVERFLOW.
24209
24210         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24212         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24213
24214         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24216         * modules/snprintf (Depends-on): Add EOVERFLOW.
24217
24218         * lib/poll.c (EOVERFLOW): Remove fallback.
24219         * modules/poll (Depends-on): Add EOVERFLOW.
24220
24221         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24222         * modules/getugroups (Depends-on): Add EOVERFLOW.
24223
24224         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24225         * modules/getdelim (Depends-on): Add EOVERFLOW.
24226
24227         * lib/ftell.c (EOVERFLOW): Remove fallback.
24228         * modules/ftell (Depends-on): Add EOVERFLOW.
24229
24230         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24232         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24233
24234         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24235
24236         * modules/EOVERFLOW-tests: New file.
24237         * tests/test-EOVERFLOW.c: New file.
24238
24239         * modules/EOVERFLOW: New file.
24240         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24241
24242 2008-03-30  Bruno Haible  <bruno@clisp.org>
24243
24244         Fix bug introduced on 2007-06-10.
24245         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24246         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24247
24248 2008-03-30  Bruno Haible  <bruno@clisp.org>
24249
24250         Improve freadseek's efficiency after ungetc.
24251         * lib/freadseek.c: Include freadahead.h.
24252         (freadptrinc): New function, extracted from freadseek.
24253         (freadseek): Use it in a loop. Use freadahead to determine the number
24254         of loop iterations.
24255         * modules/freadseek (Depends-on): Add freadahead.
24256         (configure.ac): Require AC_C_INLINE.
24257
24258 2008-03-30  Bruno Haible  <bruno@clisp.org>
24259
24260         * lib/freadseek.c (freadseek): Don't ignore the return value of
24261         freadptr.
24262
24263 2008-03-29  Eric Blake  <ebb9@byu.net>
24264
24265         Add hex float support.
24266         * modules/strtod (Depends-on): Add c-ctype.
24267         (Link): Mention POW_LIB.
24268         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24269         whitespace between 'e' and exponent.
24270         * tests/test-strtod.c (main): Enable hex float tests.
24271         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24272         now provides.
24273
24274         Document various strtod bugs, with some fixes.
24275         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24276         "-0x", "inf", "nan", and hex constants.
24277         * doc/posix-functions/atof.texi (atof): Likewise.
24278         * modules/stdlib (Makefile.am): Support strtod.
24279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24280         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24281         detect additional strtod bugs.
24282         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24283         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24284         bool where appropriate.  Parse 'inf' and 'nan'.
24285         * tests/test-strtod.c: New file.
24286         * modules/strtod (Depends-on): Add stdbool, stdlib.
24287         (configure.ac): Turn on module indicator.
24288         * modules/strtod-tests: New module.
24289
24290 2008-03-29  Eric Blake  <ebb9@byu.net>
24291
24292         Fix ftell on mingw.
24293         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24294         * modules/ftell-tests (Depends-on): Add binary-io.
24295         * modules/ftello-tests (Depends-on): Likewise.
24296         * tests/test-ftell.c (main): Enhance test to cover behavior after
24297         ungetc.  Enforce binary mode.
24298         * tests/test-ftello.c (main): Likewise.
24299
24300         Pass test-freadseek on cygwin.
24301         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24302         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24303         ungetc buffer.
24304
24305         * tests/test-fflush2.c (main): Fix typo.
24306
24307 2008-03-29  Bruno Haible  <bruno@clisp.org>
24308
24309         * tests/test-fflush2.c (main): Temporarily disable the contents of
24310         this test.
24311         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24312         Reported by Eric Blake.
24313
24314 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24315
24316         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24317         (GC_SHA224_DIGEST_SIZE): Add.
24318
24319         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24320         (gc_hash_digest_length): Likewise.
24321         (gc_hash_buffer): Likewise.
24322
24323 2008-03-25  Bruno Haible  <bruno@clisp.org>
24324
24325         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24326         detail which gettext release to use.
24327         Reported by Simon Josefsson.
24328
24329 2008-03-26  Jim Meyering  <meyering@redhat.com>
24330
24331         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24332         * modules/gnumakefile (clean-GNUmakefile): Also, use
24333         test ... && ... || : syntax rather than if-then ... fi.
24334
24335         gnumakefile: Don't double-quote-expand $(VPATH) value.
24336         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24337
24338 2008-03-24  Eric Blake  <ebb9@byu.net>
24339
24340         Alter GNUmakefile to install into top directory.
24341         * modules/maintainer-makefile: Split, and add dependency...
24342         * modules/gnumakefile: to this new module.
24343         * build-aux/GNUmakefile: Move...
24344         * top/GNUmakefile: ...here.
24345         * build-aux/maint.mk: Move...
24346         * top/maint.mk: ...here.
24347         * MODULES.html.sh (Support for maintaining...): Document new
24348         module.
24349
24350 2008-03-23  Bruno Haible  <bruno@clisp.org>
24351
24352         * gnulib-tool: New options --vc-files, --no-vc-files.
24353         (func_usage): Document them.
24354         (vc_files): New variable.
24355         (func_import): Consider vc_files.
24356         (func_create_testdir): Set vc_files to empty.
24357         Suggested by Jim Meyering and Karl Berry.
24358
24359 2008-03-23  Bruno Haible  <bruno@clisp.org>
24360
24361         Fix regex compilation error on HP-UX 11.
24362         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24363         * modules/regex (Files): Add m4/mbstate_t.m4.
24364         Reported by Ton Voon <ton.voon@altinity.com>.
24365
24366 2008-03-23  Bruno Haible  <bruno@clisp.org>
24367
24368         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24369
24370 2008-03-23  Eric Blake  <ebb9@byu.net>
24371             Bruno Haible  <bruno@clisp.org>
24372
24373         Install files from top/ in the destination directory.
24374         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24375         augmentation also for the files from top/.
24376         (func_import, func_create_testdir): Rewrite file names:
24377         top/filename -> filename.
24378
24379 2008-03-23  Bruno Haible  <bruno@clisp.org>
24380
24381         Tweak "gnulib --version" output.
24382         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24383
24384 2008-03-23  Bruno Haible  <bruno@clisp.org>
24385
24386         Tweak "gnulib --version" output.
24387         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24388         rather than contents of ChangeLog, when possible.
24389
24390 2008-03-21  Eric Blake  <ebb9@byu.net>
24391
24392         More --version tweaks.
24393         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24394         date of last ChangeLog entry.
24395
24396 2008-03-21  Jim Meyering  <meyering@redhat.com>
24397
24398         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24399
24400 2008-03-20  Eric Blake  <ebb9@byu.net>
24401
24402         VPATH fix.
24403         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24404
24405 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24406
24407         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24408         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24409
24410 2008-03-20  Eric Blake  <ebb9@byu.net>
24411
24412         Sync GNUmakefile with coreutils.
24413         * build-aux/GNUmakefile (have-Makefile): Rename...
24414         (_have-Makefile): ...to this, for namespace consideration.
24415         (GNUmakefile.cfg): Include, if present.
24416         (_autoreconf): Define a default.
24417         (_is-dist-target): New rule for rebuilds to pick up intra-release
24418         version.
24419         (maint-cfg.mk): Rename...
24420         (cfg.mk): ...to this.
24421
24422 2008-03-18  Jim Meyering  <meyering@redhat.com>
24423
24424         New script and module: mktempd
24425         * MODULES.html.sh (maint+release support): Add mktempd.
24426         * build-aux/mktempd: New file.
24427         * modules/mktempd: New file.
24428
24429 2008-03-15  Jim Meyering  <meyering@redhat.com>
24430
24431         Undo last change.
24432         * lib/sha1.c, lib/md5.c: 63 != ~63.
24433         Reported by Andreas Schwab.
24434
24435         sha1.c, md5.c: Hoist a redundant expression.
24436         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24437         "ctx->buflen" only once, before calling *_process_block.
24438         * lib/md5.c (md5_process_bytes): Likewise.
24439
24440 2008-03-14  Eric Blake  <ebb9@byu.net>
24441
24442         Bump copyright year in files generated by gnulib-tool.
24443         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24444         gnulib-tool, rather than hard-coding it.
24445
24446         Fix 'gnulib-tool --version' output to work with git.
24447         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24448         (startup): ...here.
24449         (func_version): Use it to invoke git-version-gen, rather than
24450         relying on CVS keyword expansion.  Modernize wording.
24451         (cvsdatestamp, last_checkin_date, version): Kill unused
24452         variables.
24453
24454 2008-03-12  Jim Meyering  <meyering@redhat.com>
24455
24456         Recognize optional cast of the argument to free.
24457         * build-aux/useless-if-before-free: Update regexps.
24458
24459         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24460
24461 2008-03-11  Bruno Haible  <bruno@clisp.org>
24462
24463         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24464         by a single package.
24465         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24466         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24467         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24468         Reported by Sam Steingold <sds@gnu.org>.
24469
24470 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24471
24472         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24473         repositories.
24474
24475 2008-03-11  Bruno Haible  <bruno@clisp.org>
24476
24477         Avoid conflicts between local macro definitions.
24478         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24479         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24480
24481 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24482             Bruno Haible  <bruno@clisp.org>
24483
24484         Make va_copy work with some version of xlc on AIX 5.1.
24485         * lib/stdarg.in.h: New file.
24486         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24487         On AIX, use a <stdarg.h> file substitute.
24488         * modules/stdarg (Files): Add lib/stdarg.in.h.
24489         (Depends-on): Add include_next.
24490         (Makefile.am): Build a stdarg.h substitute if requested.
24491         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24492
24493 2008-03-10  Bruno Haible  <bruno@clisp.org>
24494
24495         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24496         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24497         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24498
24499 2008-03-10  Bruno Haible  <bruno@clisp.org>
24500
24501         * modules/stdlib (Depends-on): Add include_next, remove
24502         absolute-header.
24503
24504 2008-03-09  Bruno Haible  <bruno@clisp.org>
24505
24506         * lib/freadahead.h (freadahead): Document more precisely.
24507         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24508         the sum of both buffer sizes.
24509         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24510         * NEWS: Document the change.
24511
24512 2008-03-09  Bruno Haible  <bruno@clisp.org>
24513
24514         Extend freadptr to return also the buffer size.
24515         * lib/freadptr.h (freadptr): Add sizep argument.
24516         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24517         (freadptr): Add sizep argument. Determine buffer size like freadahead
24518         does.
24519         * tests/test-freadptr.c: Don't include freadahead.h.
24520         (main): Adapt for new calling convention of freadptr.
24521         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24522         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24523         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24524         tests/test-freadptr2.sh.
24525         (Depends): Remove freadahead.
24526         (TESTS): Add test-freadptr2.sh.
24527         (check_PROGRAMS): Add test-freadptr2.
24528
24529 2008-03-09  Bruno Haible  <bruno@clisp.org>
24530
24531         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24532         Report and solution by Simon Josefsson.
24533
24534 2008-03-06  Bruno Haible  <bruno@clisp.org>
24535
24536         Make fflush after ungetc work on BSD platforms.
24537         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24538         * tests/test-fflush2.c: New file.
24539         * tests/test-fflush2.sh: New file.
24540         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24541         tests/test-fflush2.c.
24542         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24543         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24544
24545 2008-03-06  Eric Blake  <ebb9@byu.net>
24546
24547         Likewise for ftello.
24548         * modules/ftello (Dependencies): Add extensions.
24549         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24550
24551 2008-03-06  Bruno Haible  <bruno@clisp.org>
24552
24553         * modules/fseeko (Dependencies): Add extensions.
24554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24555         Needed on glibc systems.
24556
24557 2008-03-06  Bruno Haible  <bruno@clisp.org>
24558
24559         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24560         email address.
24561         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24562
24563 2008-03-06  Bruno Haible  <bruno@clisp.org>
24564
24565         * users.txt: Add libgnupdf.
24566
24567 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24568
24569         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24570         (Header File Substitutes, Function Substitutes,
24571         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24572         (Build robot for gnulib): Fix typo.
24573
24574 2008-03-06  Bruno Haible  <bruno@clisp.org>
24575
24576         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24577         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24578
24579 2008-03-06  Bruno Haible  <bruno@clisp.org>
24580
24581         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24582         * doc/gnulib.texi: Include it.
24583
24584 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24585
24586         * modules/func (License): Change license to unlimited; there was
24587         no LGPL parts in the module anyway.
24588
24589 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24590
24591         * modules/__func__: Renamed to modules/func.
24592         * modules/__func__-tests: Renamed to modules/func-tests.
24593         * tests/test-__func__.c: Renamed to tests/test-func.c.
24594         * m4/__func__.m4: Renamed to m4/func.m4.
24595         * doc/gnulib.texi (__func__): Section renamed to func.
24596         Suggested by Eric Blake <ebb9@byu.net>.
24597
24598 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24599
24600         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24601         about __func__.  Make example self-contained.  Suggested by Eric
24602         Blake <ebb9@byu.net>.
24603
24604         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24605         Suggested by Eric Blake <ebb9@byu.net>.
24606
24607 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24608
24609         * modules/__func__: New file.
24610         * modules/__func__-tests: New file.
24611         * tests/test-__func__.c: New file.
24612         * m4/__func__.m4: New file.
24613         * doc/gnulib.texi (__func__): Document __func__ module.
24614
24615 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24616
24617         * modules/byteswap (License): Re-license as LGPLv2+.
24618
24619 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24620
24621         * doc/Makefile: Add pdf target.
24622
24623 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24624
24625         * modules/inline (License): Use 'unlimited', since there are only
24626         *.m4 files in this module.
24627
24628 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24629             Bruno Haible  <bruno@clisp.org>
24630
24631         Add support for HP C 7.1 on OpenVMS 8.3.
24632         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24633
24634 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24635
24636         Update VMS specifics.
24637         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24638
24639 2008-03-02  Jim Meyering  <meyering@redhat.com>
24640
24641         Remove the last dependency on the "free" module.
24642         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24643         Reported by Bob Proulx.
24644
24645         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24646
24647         Remove useless "if" tests before free.  Deprecate "free" module.
24648         * doc/posix-functions/free.texi: Mention that this
24649         module is no longer useful.
24650         * modules/free (Notice): Say this module is obsolete.
24651         * modules/readutmp (Depends-on): Remove free.
24652         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24653         * lib/putenv.c (putenv): Likewise.
24654         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24655         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24656         * tests/test-c-strcasestr.c (main): Likewise.
24657         * tests/test-c-strstr.c (main): Likewise.
24658         * tests/test-mbscasestr1.c (main): Likewise.
24659         * tests/test-mbscasestr2.c (main): Likewise.
24660         * tests/test-mbsstr1.c (main): Likewise.
24661         * tests/test-mbsstr2.c (main): Likewise.
24662         * tests/test-memmem.c (main): Likewise.
24663         * tests/test-strcasestr.c (main): Likewise.
24664         * tests/test-striconv.c (main): Likewise.
24665         * tests/test-striconveh.c (main): Likewise.
24666         * tests/test-striconveha.c (main): Likewise.
24667         * tests/test-strstr.c (main): Likewise.
24668
24669         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24670
24671         bootstrap: sync from coreutils again
24672         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24673
24674 2008-03-01  Jim Meyering  <meyering@redhat.com>
24675
24676         bootstrap: sync from coreutils
24677         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24678         also when the target doesn't exist.
24679
24680 2008-03-01  Eric Blake  <ebb9@byu.net>
24681
24682         Fix bugs in last patch.
24683         * lib/memchr2.c (memchr2): Fix typo.
24684         * tests/test-memchr2.c: Test previous bug, and don't use GNU
24685         extension.
24686         Reported by Bruce Korb.
24687
24688         New module 'memchr2'.
24689         * modules/memchr2: New file.
24690         * modules/memchr2-tests: Likewise.
24691         * lib/memchr2.h: Likewise.
24692         * lib/memchr2.c: Likewise, based on memchr.c.
24693         * tests/test-memchr2.c: New test.
24694         * MODULES.html.sh (String handling): Add memchr2.
24695
24696 2008-02-29  Bruno Haible  <bruno@clisp.org>
24697
24698         * modules/freadseek-tests: New file.
24699         * tests/test-freadseek.sh: New file.
24700         * tests/test-freadseek.c: New file.
24701
24702         New module 'freadseek'.
24703         * modules/freadseek: New file.
24704         * lib/freadseek.h: New file.
24705         * lib/freadseek.c: New file.
24706         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24707
24708 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24709
24710         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24711         wydawca.
24712
24713         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24714         program_invocation_name and program_invocation_short_name are
24715         present.
24716
24717 2008-02-28  Bruno Haible  <bruno@clisp.org>
24718
24719         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24720         * tests/test-freadptr.sh: Also test non-seekable stdin.
24721
24722 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
24723
24724         * build-aux/bootstrap (source_base, m4_base)
24725         (doc_base, tests_base): New variables.
24726         (gnulib_tool_options): Do not hardcode base directories, use
24727         the above variables instead.
24728
24729 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
24730
24731         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24732
24733 2008-02-28  Bruno Haible  <bruno@clisp.org>
24734
24735         * modules/freadptr-tests: New file.
24736         * tests/test-freadptr.sh: New file.
24737         * tests/test-freadptr.c: New file.
24738
24739         New module 'freadptr'.
24740         * modules/freadptr: New file.
24741         * lib/freadptr.h: New file.
24742         * lib/freadptr.c: New file.
24743         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24744
24745 2008-02-26  Karl Berry  <karl@freefriends.org>
24746
24747         Sync from Libtool:
24748         * libltdl/argz.c (argz_add, argz_count): New functions.
24749         * libltdl/argz.in.h: Declare them.
24750         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24751
24752 2008-02-22  Bruno Haible  <bruno@clisp.org>
24753
24754         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24755         is a pointer type.  Needed for HP-UX 10.
24756         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
24757         * doc/posix-functions/gmtime_r.texi: Likewise.
24758         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24759
24760 2008-02-24  Bruno Haible  <bruno@clisp.org>
24761
24762         * modules/environ-tests: New file.
24763         * tests/test-environ.c: New file.
24764
24765         New module 'environ'.
24766         * modules/environ: New file.
24767         * lib/unistd.in.h (environ): New declaration.
24768         * m4/environ.m4: New file.
24769         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
24770         after use.
24771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
24772         HAVE_DECL_ENVIRON.
24773         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
24774         HAVE_DECL_ENVIRON.
24775         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
24776         wrong claim that 'environ' is missing on some systems.
24777         * modules/execute (Depends-on): Add environ.
24778         * lib/execute.c (environ): Remove fallback declaration.
24779         * modules/pipe (Depends-on): Add environ.
24780         * lib/pipe.c (environ): Remove fallback declaration.
24781         * modules/setenv (Depends-on): Add environ.
24782         * lib/setenv.c (environ): Remove fallback declaration.
24783         * modules/unsetenv (Depends-on): Add environ.
24784         * lib/unsetenv.c (environ): Remove fallback declaration.
24785         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24786         m4/environ.m4.
24787         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
24788         (gl_PREREQ_UNSETENV): Likewise.
24789
24790 2008-02-24  Bruno Haible  <bruno@clisp.org>
24791
24792         * doc/posix-functions/environ.texi: Document the MacOS X problem.
24793
24794 2008-02-20  Bob Proulx  <bob@proulx.com>
24795
24796         Enable use of older two part flavor 'git describe'.
24797         * build-aux/git-version-gen: If using the older two part flavor of
24798         git version then recreate the third part now present in the
24799         newer three part flavor of git describe.
24800
24801 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
24802
24803         * lib/fts.c (fts_build): Typo correction to comment.
24804
24805 2008-02-17  Bruno Haible  <bruno@clisp.org>
24806
24807         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
24808         generating no-op conflicts.
24809
24810 2008-02-17  Bruno Haible  <bruno@clisp.org>
24811
24812         Speed up by 10%.
24813         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
24814         result_entries, rather than an index-based loop.
24815
24816 2008-02-17  Bruno Haible  <bruno@clisp.org>
24817
24818         Speed up by 25%.
24819         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
24820         'hashcode_cached'.
24821         (entry_create): New function.
24822         (entry_hashcode): Use the cached hashcode if possible.
24823         (read_changelog_file, try_split_merged_entry): Use entry_create.
24824
24825 2008-02-17  Bruno Haible  <bruno@clisp.org>
24826
24827         Speed up from O(n^2) to O(n) for long ChangeLog files.
24828         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
24829         (read_changelog_file): Change implementation of entries_reversed list
24830         to rbtreehash.
24831         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24832
24833 2008-02-17  Bruno Haible  <bruno@clisp.org>
24834
24835         New option --split-merged-entry.
24836         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
24837         (find_paragraph_end, try_split_merged_entry): New functions.
24838         (long_options): Add option --split-merged-entry.
24839         (usage): Document option --split-merged-entry.
24840         (main): Implement option --split-merged-entry.
24841         Reported by Eric Blake.
24842
24843 2008-02-17  Bruno Haible  <bruno@clisp.org>
24844
24845         * lib/git-merge-changelog.c: Include c-strstr.h.
24846         (main): Support the "git pull --rebase" situation.
24847         * modules/git-merge-changelog (Depends-on): Add c-strstr.
24848         Reported by Eric Blake.
24849
24850 2008-02-16  Eric Blake  <ebb9@byu.net>
24851
24852         Avoid doubling \ in common case of "c-maybe" quoting style.
24853         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
24854         eliding outer quotes.
24855         * lib/quotearg.h: Document this.
24856         * tests/test-quotearg.c (result_strings, inputs, results_g)
24857         (flag_results, locale_results): Test it by adding a new string to
24858         each test group.
24859         (compare_strings): Test new string.
24860
24861 2008-02-13  Eric Blake  <ebb9@byu.net>
24862
24863         Avoid trigraph quoting in default output.
24864         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
24865         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
24866         unless explicitly requested.
24867         * tests/test-quotearg.c (flag_results, main): Add additional tests.
24868
24869 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
24870
24871         Don't rely on signed integer overflowing to negative value.
24872         * lib/getugroups.c (getugroups): Include <limits.h>.
24873         Instead, compare against INT_MAX, and increment only if the test passes.
24874
24875 2008-02-13  Jim Meyering  <meyering@redhat.com>
24876         and Eric Blake  <ebb9@byu.net>
24877
24878         Avoid shadowing warning and compile errors on Linux.
24879         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
24880         forwarding macros on Linux.
24881         (dcgettext): Define a stub, for Linux.
24882         (results_g, main): Avoid warnings.
24883
24884 2008-02-12  Eric Blake  <ebb9@byu.net>
24885
24886         Silence warning in last patch.
24887         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
24888
24889         Quotearg part 4: add tests, fix c-maybe colon quoting.
24890         * lib/quotearg.h: Improve documentation.
24891         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
24892         escapes when adding outer quotes.  When quoting trigraphs, use
24893         valid C notation.  When quoting NUL, omit extra characters if next
24894         character is not digit.  Alter prototype.
24895         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
24896         callers.
24897         * modules/quotearg-tests: New module.
24898         * tests/test-quotearg.c: New test.
24899
24900 2008-02-07  Eric Blake  <ebb9@byu.net>
24901
24902         Quotearg part 3: add flag to control outer quote elision.
24903         * lib/quotearg.h (c_maybe_quoting_style): New style.
24904         (enum quoting_flags): Better documentation of flags.
24905         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
24906         c-maybe style.
24907         (quotearg_buffer_restyled): Handle new flag to elide outer
24908         quotes.
24909
24910         Quotearg part 2: add flag that can control NUL elision.
24911         * lib/quotearg.h (set_quoting_flags): New prototype.
24912         * lib/quotearg.c (struct quoting_options): Add flag field.
24913         (set_quoting_flags): New function.
24914         (quotearg_buffer_restyled): Add flags parameter.
24915         (quotearg_alloc_mem): Set the flag if length cannot be returned.
24916         (quotearg_n_options): Set the flag, since length cannot be
24917         returned.
24918         (quoting_options_from_style): Default flags correctly.
24919
24920         Quotearg part 1: more wrappers, restore quotearg_char state.
24921         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
24922         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
24923         (quotearg_colon_mem): New wrappers.
24924         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
24925         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
24926         functions.
24927         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
24928         (quotearg_colon_mem): New functions.
24929
24930 2008-02-11  Bruno Haible  <bruno@clisp.org>
24931
24932         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
24933         library in the current directory: it does not work with parallel make.
24934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24935
24936 2008-02-11  Bruno Haible  <bruno@clisp.org>
24937
24938         * .gitattributes: New file.
24939
24940 2008-02-11  Jim Meyering  <meyering@redhat.com>
24941
24942         useless-if-before-free: Fix reversed exit values.
24943         * build-aux/useless-if-before-free: Use correct values
24944         for EXIT_MATCH and EXIT_NO_MATCH.
24945
24946         * build-aux/useless-if-before-free: Close stdout carefully.
24947
24948 2008-02-10  Bruno Haible  <bruno@clisp.org>
24949
24950         New module 'git-merge-changelog'.
24951         * modules/git-merge-changelog: New file.
24952         * lib/git-merge-changelog.c: New file.
24953
24954 2008-02-10  Jim Meyering  <meyering@redhat.com>
24955
24956         useless-if-before-free: New option: --list (-l).
24957
24958         useless-if-before-free: Don't exit immediately upon open failure.
24959         * build-aux/useless-if-before-free: Exit 2 for errors.
24960         Upon failure to open a file, don't exit immediately.
24961         Rather, just warn and continue with any remaining files.
24962
24963 2008-02-10  Bruno Haible  <bruno@clisp.org>
24964
24965         New abstract list operation 'node_set_value'.
24966         * lib/gl_list.h (gl_list_node_set_value): New function.
24967         (struct gl_list_implementation): New field node_set_value.
24968         * lib/gl_list.c (gl_list_node_set_value): New function.
24969         * lib/gl_array_list.c (gl_array_node_set_value): New function.
24970         (gl_array_list_implementation): Update.
24971         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
24972         (gl_carray_list_implementation): Update.
24973         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
24974         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
24975         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
24976         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
24977         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
24978         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
24979         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
24980         Update.
24981         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
24982         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
24983         (gl_sublist_list_implementation): Update.
24984
24985 2008-02-10  Bruno Haible  <bruno@clisp.org>
24986
24987         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
24988         Needed when ELEMENT is #defined to 'some_type *'.
24989
24990 2008-02-10  Jim Meyering  <meyering@redhat.com>
24991
24992         New script and module: useless-if-before-free
24993         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
24994         * build-aux/useless-if-before-free: New file.
24995         * modules/useless-if-before-free: New file.
24996
24997         * build-aux/gitlog-to-changelog: Use committer date, not author date.
24998
24999         xstrtol_error: Fix typo.
25000         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25001         s/exit_failure/exit_status/.
25002
25003 2008-02-09  Jim Meyering  <meyering@redhat.com>
25004
25005         New script and module: gitlog-to-changelog
25006         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25007         * modules/gitlog-to-changelog: New file.
25008         * build-aux/gitlog-to-changelog: New file.
25009
25010 2008-02-08  Jim Meyering  <meyering@redhat.com>
25011
25012         Avoid two "parameter unused" warnings.
25013         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25014         Mark "st" as used.
25015
25016         Use "git COMMAND", not "git-COMMAND".
25017         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25018         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25019         * build-aux/git-version-gen: Use "git status", not "git-status".
25020
25021 2008-02-07  Bruno Haible  <bruno@clisp.org>
25022
25023         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25024         Avoids a crash on Windows Vista.
25025         Reported by Adam Strzelecki <ono@java.pl> via
25026         Simon Josefsson <simon@josefsson.org>.
25027
25028 2008-02-06  Bruno Haible  <bruno@clisp.org>
25029
25030         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25031         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25032         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25034         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25035         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25036         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25037         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25038         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25045         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25046         left-adjust flag.
25047         * tests/test-snprintf-posix.h (test_function): Likewise.
25048         * tests/test-sprintf-posix.h (test_function): Likewise.
25049         * tests/test-vasprintf-posix.c (test_function): Likewise.
25050         * doc/posix-functions/fprintf.texi: Update.
25051         * doc/posix-functions/printf.texi: Update.
25052         * doc/posix-functions/snprintf.texi: Update.
25053         * doc/posix-functions/sprintf.texi: Update.
25054         * doc/posix-functions/vfprintf.texi: Update.
25055         * doc/posix-functions/vprintf.texi: Update.
25056         * doc/posix-functions/vsnprintf.texi: Update.
25057         * doc/posix-functions/vsprintf.texi: Update.
25058         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25059
25060 2008-02-06  Bruno Haible  <bruno@clisp.org>
25061
25062         Fix bug introduced on 2008-01-26.
25063         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25064
25065 2008-02-06  Bruno Haible  <bruno@clisp.org>
25066
25067         Fix bug introduced on 2007-06-10.
25068         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25069         !NEED_PRINTF_FLAG_ZERO.
25070
25071 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25072
25073         getloadavg: use libperfstat on AIX5
25074         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25075
25076 2008-02-03  Bruno Haible  <bruno@clisp.org>
25077
25078         * lib/diffseq.h: Add comments about required #includes.
25079         Reported by Michael Biggs <gnulib@doubleplum.net>.
25080
25081 2008-02-01  Bruno Haible  <bruno@clisp.org>
25082
25083         * users.txt: Add gnuit.
25084
25085 2008-01-31  Bruno Haible  <bruno@clisp.org>
25086
25087         * lib/md4.c (set_uint32): Mark as inline.
25088         * lib/md5.c (set_uint32): Likewise.
25089         * lib/sha1.c (set_uint32): Likewise.
25090         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25091         * m4/md5.m4 (gl_MD5): Likewise.
25092         * m4/sha1.m4 (gl_SHA1): Likewise.
25093
25094 2008-01-31  Jim Meyering  <meyering@redhat.com>
25095
25096         Use "sizeof VAR", rather than a literal "4".
25097         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25098         * lib/md4.c (md4_read_ctx): Likewise.
25099         * lib/sha1.c (sha1_read_ctx): Likewise.
25100
25101 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25102
25103         * tests/test-sha1.c: New file, based on test-md5.c.
25104
25105         * modules/crypto/sha1-tests: New file.
25106
25107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25108
25109         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25110
25111 2008-01-31  Jim Meyering  <meyering@redhat.com>
25112
25113         Prefer "sizeof v" over the equivalent "4".
25114         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25115         * lib/md5.c (set_uint32): Likewise.
25116         * lib/sha1.c (set_uint32): Likewise.
25117
25118 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25119
25120         * lib/sha1.c (set_uint32): Mark function as static.
25121
25122 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25123
25124         md2: clarify comments to say that alignment is not required.
25125         * lib/md2.h: Remove warning about alignment in comment.
25126         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25127         never been required.
25128
25129 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25130
25131         md4: adapt alignment constraint fix from sha1.
25132         * lib/md4.c (set_uint32): New function, from sha1.c
25133         (md4_read_ctx): Use it.
25134         (md4_finish_ctx): Doc fix.
25135         * lib/md4.h: Doc fix.
25136
25137 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25138
25139         md5: adapt alignment constraint fix from sha1.
25140         * lib/md5.c (set_uint32): New function, from sha1.c
25141         (md5_read_ctx): Use it.
25142         (md5_finish_ctx): Doc fix.
25143         * lib/md5.h: Doc fix.
25144
25145 2008-01-30  Peter Palfrader  <weasel@debian.org>
25146
25147         sha1: remove the result buffer alignment constraint
25148         * lib/sha1.c (set_uint32): New function.
25149         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25150         constraint.
25151         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25152         * lib/sha1.h: Likewise.
25153
25154 2008-01-30  Andreas Schwab  <schwab@suse.de>
25155             Bruno Haible  <bruno@clisp.org>
25156
25157         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25158         correct definition of LDBL_MIN_EXP.
25159
25160 2008-01-30  Karl Berry  <karl@gnu.org>
25161
25162         * config/srclist-update: try to preserve x bit on updates.
25163         * config/srclistvars.sh: update for karl.
25164
25165 2008-01-29  Jim Meyering  <meyering@redhat.com>
25166
25167         vasnprintf.c: Avoid warning about unused label
25168         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25169         "overflow" label definition and associated code with the
25170         same cpp condition that guards the sole use of that label.
25171
25172 2008-01-26  Bruno Haible  <bruno@clisp.org>
25173
25174         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25175         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25176         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25177         * lib/isnanl-nolibm.h (isnanl): Likewise.
25178         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25179
25180 2008-01-26  Bruno Haible  <bruno@clisp.org>
25181
25182         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25183         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25184
25185 2008-01-26  Bruno Haible  <bruno@clisp.org>
25186
25187         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25188         GCC >= 4.0 built-in.
25189         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25190
25191 2008-01-26  Bruno Haible  <bruno@clisp.org>
25192
25193         Rename isnan, applicable to 'double' only, to isnand.
25194         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25195         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25196         (configure.ac): Update.
25197         (Include): Replace "isnan.h" with "isnand.h".
25198         * m4/isnand.m4: Renamed from m4/isnan.m4.
25199         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25200         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25201         instead of isnan.c.
25202         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25203         instead of HAVE_ISNAN_IN_LIBC.
25204         (isnand): Renamed from isnan.
25205         * lib/isnand.c: New file.
25206         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25207         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25208         (Makefile.am): Update.
25209         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25210         Include isnand.h instead of isnan.h.
25211         (main): Test isnand instead of isnan.
25212         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25213         isnan-nolibm.
25214         * modules/frexp (Depends-on): Likewise.
25215         * modules/frexp-tests (Depends-on): Likewise.
25216         * modules/frexp-nolibm (Depends-on): Likewise.
25217         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25218         * modules/isfinite (Depends-on): Likewise.
25219         * modules/round-tests (Depends-on): Likewise.
25220         * modules/signbit (Depends-on): Likewise.
25221         * modules/signbit-tests (Depends-on): Likewise.
25222         * modules/snprintf-posix (Depends-on): Likewise.
25223         * modules/sprintf-posix (Depends-on): Likewise.
25224         * modules/trunc-tests (Depends-on): Likewise.
25225         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25226         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25227         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25228         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25229         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25230         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25231         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25232         * modules/vasnprintf-posix (Depends-on): Likewise.
25233         * modules/vasprintf-posix (Depends-on): Likewise.
25234         * modules/vfprintf-posix (Depends-on): Likewise.
25235         * modules/vsnprintf-posix (Depends-on): Likewise.
25236         * modules/vsprintf-posix (Depends-on): Likewise.
25237         * lib/frexp.c: Include isnand.h instead of isnan.h.
25238         (ISNAN): Set to isnand instead of isnan.
25239         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25240         (gl_isfinited): Use isnand instead of isnan.
25241         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25242         (gl_signbitd): Use isnand instead of isnan.
25243         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25244         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25245         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25246         (main): Use isnand instead of isnan.
25247         * tests/test-round1.c: Include isnand.h.
25248         (main): Use isnand instead of isnan.
25249         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25250         (ISNAN): Set to isnand instead of isnan.
25251         * tests/test-trunc1.c: Include isnand.h.
25252         (main): Use isnand instead of isnan.
25253         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25254         (equal): Use isnand instead of isnan.
25255         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25256         isnand-nolibm.
25257         * NEWS: Mention the change.
25258
25259 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25260             Bruno Haible  <bruno@clisp.org>
25261
25262         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25263         the GCC builtins for signbits are present and set
25264         REPLACE_SIGNBIT_USING_GCC if so.
25265         * lib/math.in.h (signbit): Define using GCC builtins if
25266         REPLACE_SIGNBIT_USING_GCC is set.
25267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25268         REPLACE_SIGNBIT_USING_GCC.
25269         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25270
25271 2008-01-25  Jim Meyering  <meyering@redhat.com>
25272
25273         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25274         * lib/poll.c: Include <config.h>, not "config.h".
25275         * tests/test-getaddrinfo.c: Likewise.
25276
25277 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25278
25279         * modules/sockets-tests: New file.
25280
25281 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25282
25283         * modules/sockets: New module, can be used to call WSA_Startup and
25284         WSA_Cleanup when needed.
25285
25286         * lib/sockets.h, lib/sockets.c: New files.
25287
25288         * m4/sockets.m4: New file.
25289
25290         * tests/test-sockets.c: New file.
25291
25292 2008-01-19  Bruno Haible  <bruno@clisp.org>
25293
25294         * doc/posix-headers: Renamed from doc/headers.
25295         * doc/posix-functions: Renamed from doc/functions.
25296         * doc/gnulib.texi: Update.
25297
25298 2008-01-19  Bruno Haible  <bruno@clisp.org>
25299
25300         * doc/glibc-functions/strcasestr.texi: Include contents of
25301         doc/functions/strcasestr.texi, fixing the list of platforms.
25302         * doc/functions/strcasestr.texi: Remove file.
25303
25304 2008-01-19  Bruno Haible  <bruno@clisp.org>
25305
25306         * doc/glibc-functions/memmem.texi: Include contents of
25307         doc/functions/memmem.texi.
25308         * doc/functions/memmem.texi: Remove file.
25309
25310 2008-01-18  Bruno Haible  <bruno@clisp.org>
25311
25312         * doc/glibc-functions/*.texi: New files.
25313         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25314         to use the new files.
25315
25316 2008-01-17  Bruno Haible  <bruno@clisp.org>
25317
25318         * tests/test-gethostname.c (main): Fix printf statement.
25319
25320 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25321
25322         * modules/gethostname-tests: New file.
25323
25324         * tests/test-gethostname.c: New file.
25325
25326 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25327
25328         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25329         used by the UNAME case.  Reported by Bruno Haible
25330         <bruno@clisp.org>.
25331
25332 2008-01-17  Eric Blake  <ebb9@byu.net>
25333
25334         Convert c-strcasestr to be more efficient.
25335         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25336         (Depends-on): Add c-strcase, remove malloca, strnlen.
25337         * tests/test-c-strcasestr.c (main): Enhance test.
25338         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25339
25340 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25341
25342         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25343         Use it in creating po/Makevars.
25344
25345 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25346
25347         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25348         Applications that requires it should initialize libgcrypt
25349         manually.
25350
25351 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25352
25353         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25354
25355 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25356
25357         Fix problem with getdate on mingw32 reported by Simon Josefsson
25358         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25359         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25360         tzname", when deciding whether to declare tzname.
25361         * lib/strftime.c (tzname): Likewise.
25362
25363 2008-01-15  Bruno Haible  <bruno@clisp.org>
25364
25365         Work around a MacOS X 10.5 bug in frexpl().
25366         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25367         * doc/functions/frexpl.texi: Document the bug.
25368         Reported by Elias Pipping <pipping@gentoo.org>.
25369
25370 2008-01-14  Eric Blake  <ebb9@byu.net>
25371
25372         Touch up previous patch.
25373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25374         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25375
25376         Convert strcasestr module to use Two-Way algorithm.
25377         * modules/strcasestr-simple: New module, based on the old
25378         strcasestr, but with Two-Way rather than KMP.
25379         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25380         * lib/string.in.h (rpl_strcasestr): Declare.
25381         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25382         performance.
25383         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25384         * modules/string (Makefile.am): Support strcasestr.
25385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25386         * modules/strcasestr-tests (Depends-on): Check for alarm.
25387         * tests/test-strcasestr.c: Augment test.
25388         * lib/str-two-way.h: Clean up stray macro.
25389         * NEWS: Document new module.
25390         * MODULES.html.sh (string handling): Likewise.
25391         * doc/functions/strcasestr.texi: New file.
25392         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25393         here, since it is not a POSIX function.
25394
25395 2008-01-14  Colin Watson  <cjwatson@debian.org>
25396             Bruno Haible  <bruno@clisp.org>
25397
25398         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25399         works fine; if not, set REPLACE_STRSIGNAL.
25400         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25402         REPLACE_STRSIGNAL.
25403         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25404         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25405         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25406
25407 2008-01-14  Bruno Haible  <bruno@clisp.org>
25408
25409         * modules/strsignal (Include): Change to <string.h>.
25410
25411 2008-01-14  Colin Watson  <cjwatson@debian.org>
25412
25413         * modules/argp (Notice): Add a notice recommending to change
25414         XGETTEXT_OPTIONS.
25415         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25416
25417 2008-01-13  Colin Watson  <cjwatson@debian.org>
25418
25419         * modules/strsignal-tests: New file.
25420         * tests/test-strsignal.c: New file.
25421
25422         * lib/strsignal.c: New file, from glibc with modifications.
25423         * lib/siglist.h: New file, from glibc with modifications.
25424         * lib/string.in.h (strsignal): New declaration.
25425         * m4/strsignal.m4: New file.
25426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25427         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25428         * modules/strsignal: New file.
25429         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25430         HAVE_DECL_STRSIGNAL.
25431
25432 2008-01-13  Bruno Haible  <bruno@clisp.org>
25433
25434         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25435         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25436         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25437         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25438
25439 2008-01-13  Bruno Haible  <bruno@clisp.org>
25440
25441         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25442         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25443         * lib/argp.h (__attribute__): Likewise.
25444         * lib/c-stack.c (__attribute__): Likewise.
25445         * lib/error.h (__attribute__): Likewise.
25446         * lib/fts.c (__attribute__): Likewise.
25447         * lib/openat.h (__attribute__): Likewise.
25448         * lib/stdio.in.h (__attribute__): Likewise.
25449         * lib/string.in.h (__attribute__): Likewise.
25450         * lib/utimens.c (__attribute__): Likewise.
25451         * lib/vasnprintf.h (__attribute__): Likewise.
25452         * lib/xalloc.h (__attribute__): Likewise.
25453         * lib/xprintf.h (__attribute__): Likewise.
25454         * lib/xstrtol.h (__attribute__): Likewise.
25455         * lib/xvasprintf.h (__attribute__): Likewise.
25456
25457 2008-01-12  Bruno Haible  <bruno@clisp.org>
25458
25459         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25460         * doc/glibc-headers/a.out.texi: New file.
25461         * doc/glibc-headers/aliases.texi: New file.
25462         * doc/glibc-headers/alloca.texi: New file.
25463         * doc/glibc-headers/ar.texi: New file.
25464         * doc/glibc-headers/argp.texi: New file.
25465         * doc/glibc-headers/argz.texi: New file.
25466         * doc/glibc-headers/byteswap.texi: New file.
25467         * doc/glibc-headers/crypt.texi: New file.
25468         * doc/glibc-headers/endian.texi: New file.
25469         * doc/glibc-headers/envz.texi: New file.
25470         * doc/glibc-headers/err.texi: New file.
25471         * doc/glibc-headers/error.texi: New file.
25472         * doc/glibc-headers/execinfo.texi: New file.
25473         * doc/glibc-headers/fpu_control.texi: New file.
25474         * doc/glibc-headers/fstab.texi: New file.
25475         * doc/glibc-headers/fts.texi: New file.
25476         * doc/glibc-headers/getopt.texi: New file.
25477         * doc/glibc-headers/ieee754.texi: New file.
25478         * doc/glibc-headers/ifaddrs.texi: New file.
25479         * doc/glibc-headers/libintl.texi: New file.
25480         * doc/glibc-headers/mcheck.texi: New file.
25481         * doc/glibc-headers/mntent.texi: New file.
25482         * doc/glibc-headers/obstack.texi: New file.
25483         * doc/glibc-headers/paths.texi: New file.
25484         * doc/glibc-headers/printf.texi: New file.
25485         * doc/glibc-headers/pty.texi: New file.
25486         * doc/glibc-headers/resolv.texi: New file.
25487         * doc/glibc-headers/shadow.texi: New file.
25488         * doc/glibc-headers/sysexits.texi: New file.
25489         * doc/glibc-headers/ttyent.texi: New file.
25490
25491 2008-01-12  Jim Meyering  <meyering@redhat.com>
25492
25493         announce-gen: emit Gnulib's git-based version string.
25494         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25495         New option --gnulib-version=V, where V is expected to be
25496         the output of running git describe in the gnulib directory.
25497         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25498         not useful, and plan to stop publishing an xdelta file with each
25499         coreutils release.
25500
25501         * build-aux/announce-gen: Also check for lzma-compressed files.
25502
25503 2008-01-11  Bruno Haible  <bruno@clisp.org>
25504
25505         * tests/test-memmem.c (main): Increase maximum allowed time.
25506         * tests/test-strstr.c (main): Likewise.
25507
25508 2008-01-11  Bruno Haible  <bruno@clisp.org>
25509
25510         * doc/functions/memmem.texi: Add more precisions about platforms.
25511         * doc/functions/strstr.texi: Likewise.
25512
25513 2008-01-10  Eric Blake  <ebb9@byu.net>
25514
25515         * m4/strstr.m4: Delete cruft from copy-n-paste.
25516         Reported by Bruno Haible.
25517
25518 2008-01-10  Bruno Haible  <bruno@clisp.org>
25519
25520         Make c-strstr rely on strstr.
25521         * lib/c-strstr.c: Don't include str-kmp.h.
25522         (c_strstr): Define in terms of strstr.
25523         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25524         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25525
25526 2008-01-10  Bruno Haible  <bruno@clisp.org>
25527
25528         * doc/gnulib.texi (String Functions in C Locale): New section.
25529         * doc/c-ctype.texi: New file.
25530         * doc/c-strcase.texi: New file.
25531         * doc/c-strcaseeq.texi: New file.
25532         * doc/c-strcasestr.texi: New file.
25533         * doc/c-strstr.texi: New file.
25534         * doc/c-strtod.texi: New file.
25535         * doc/c-strtold.texi: New file.
25536
25537 2008-01-10  Eric Blake  <ebb9@byu.net>
25538
25539         * lib/relocatable.h: Fix a comment.
25540
25541 2008-01-10  Eric Blake  <ebb9@byu.net>
25542
25543         Share two-way algorithm.
25544         * lib/str-two-way.h: New file, merged from...
25545         * lib/memmem.c: ...here...
25546         * lib/strstr.c: ...and here.
25547         * modules/memmem (Files): Use it.
25548         * modules/strstr (Files): Likewise.
25549
25550         Avoid quadratic strstr implementations.
25551         * lib/strstr.c: New file.
25552         * m4/strstr.m4: Likewise.
25553         * modules/strstr: Likewise.
25554         * modules/strstr-tests: Likewise.
25555         * tests/test-strstr.c: Likewise.
25556         * lib/string.in.h (rpl_strstr): Declare.
25557         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25559         * modules/string (Makefile.am): Likewise.
25560         * MODULES.html.sh (string handling): Mention new module.
25561         * doc/functions/strstr.texi (strstr): Document the bug.
25562
25563 2008-01-10  Bruno Haible  <bruno@clisp.org>
25564
25565         * lib/relocatable.h (relocate): State whether result is freshly
25566         allocated or not.
25567         * lib/relocatable.c (relocate): Return a freshly allocated string
25568         instead of a pointer to a privately held string.
25569         Reported by Sylvain Beucler <beuc@gnu.org>.
25570
25571 2008-01-10  Colin Watson  <cjwatson@debian.org>
25572
25573         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25574         s/S_ISNLK/S_ISLNK/.
25575
25576 2008-01-09  Bruno Haible  <bruno@clisp.org>
25577
25578         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25579         and other files.
25580         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25581         if it's only a guess.
25582         * modules/memmem: Simplify by depending on memmem-simple.
25583
25584 2008-01-09  Bruno Haible  <bruno@clisp.org>
25585
25586         Work around OpenBSD 4.0 tdelete() bug.
25587         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25588         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25589         macros and don't redefine the enum values.
25590         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25591         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25592         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25593
25594 2008-01-09  Bruno Haible  <bruno@clisp.org>
25595
25596         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25597         (main): Don't perform the tests if setlocale did not install a UTF-8
25598         locale. Needed on OpenBSD 4.0.
25599         * modules/wcwidth-tests (Depends-on): Add localcharset.
25600
25601 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25602
25603         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25604         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25605         * NEWS: announce this.
25606         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25607
25608 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25609         and Eric Blake  <ebb9@byu.net>
25610
25611         Add memmem-simple module.
25612         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25613         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25614         * modules/memmem-simple: New file.
25615         * modules/memmem (Description): Tweak.
25616         * MODULES.html.sh (string handling): Mention new module.
25617         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25618         addressed by memmem-simple.
25619         * NEWS: Document the difference.
25620
25621 2008-01-09  Eric Blake  <ebb9@byu.net>
25622
25623         Give gcc some memmem optimization hints.
25624         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25625         (strcasestr): Declare as pure.
25626         * modules/memmem (Maintainer): Claim my implementation.
25627
25628 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25629
25630         Support AIX 6.1 and higher.
25631         * build-aux/config.libpath: Likewise.
25632         * build-aux/config.rpath: Likewise.
25633
25634 2008-01-08  Jim Meyering  <meyering@redhat.com>
25635             Bruno Haible  <bruno@clisp.org>
25636
25637         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25638         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25639         Reported by Peter Fales in
25640         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25641
25642 2008-01-08  Bruno Haible  <bruno@clisp.org>
25643
25644         * modules/unictype/category-of (Depends-on): Add
25645         unictype/category-none.
25646         * modules/unictype/category-and-tests (Depends-on): Add
25647         unictype/category-{L,N,Lu,Nd}.
25648         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25649         * modules/unictype/category-or-tests (Depends-on): Add
25650         unictype/category-{L,N}.
25651         * modules/unictype/category-name-tests (Depends-on): Add
25652         unictype/category-{Z,Nl}.
25653         Reported by Simon Josefsson.
25654
25655 2008-01-08  Bruno Haible  <bruno@clisp.org>
25656
25657         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25658         convention better.
25659         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25660         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25661         Reported by Peter Miller <millerp@canb.auug.org.au>.
25662
25663 2008-01-08  Eric Blake  <ebb9@byu.net>
25664
25665         Rewrite memmem to guarantee linear complexity without malloc.
25666         * lib/memmem.c (memmem): Use Two-Way rather than
25667         Knuth-Morris-Pratt, to allow O(1) space usage.
25668         (critical_factorization, two_way_short_needle)
25669         (two_way_long_needle): New functions.
25670         (knuth_morris_pratt): Delete.
25671         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25672         Add stdint.
25673         * tests/test-memmem.c (main): Add tests for periodic needle and
25674         sublinear performance.
25675         * doc/functions/memmem.texi (memmem): Document other deficiencies
25676         in cygwin and older glibc.
25677
25678 2008-01-08  Bruno Haible  <bruno@clisp.org>
25679
25680         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25681         augmentation.
25682
25683 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
25684
25685         Add a configure time option: --disable-acl.
25686         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25687         AC_ARG_ENABLE(acl).
25688
25689 2008-01-06  Simon Josefsson  <simon@josefsson.org>
25690
25691         * tests/test-localename.c: Don't include obsolete "setenv.h".
25692
25693         * modules/localename-tests (Depends-on): Need unsetenv.
25694
25695 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25696
25697         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25698
25699 2008-01-06  Colin Watson  <cjwatson@debian.org>
25700
25701         * users.txt: Add man-db.
25702
25703 2008-01-07  Bruno Haible  <bruno@clisp.org>
25704
25705         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25706         previous section name.
25707
25708 2008-01-07  Bruno Haible  <bruno@clisp.org>
25709
25710         * lib/progname.c (set_program_name): Don't strip off a leading
25711         "lt-" prefix outside a .libs directory.
25712         Suggested by Paul Eggert.
25713
25714 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
25715             Bruno Haible  <bruno@clisp.org>
25716
25717         Improve memory cleanup in 'relocatable' module.
25718         * lib/relocatable.h (compute_curr_prefix): Change return type to
25719         'char *'.
25720         * lib/relocatable.c (compute_curr_prefix): Change return type to
25721         'char *'. Free curr_installdir after use.
25722         (relocate): Free curr_prefix_better after use.
25723         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25724
25725 2008-01-01  Bruno Haible  <bruno@clisp.org>
25726
25727         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25728         failure on older glibc systems.
25729         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25730
25731 2008-01-05  Eric Blake  <ebb9@byu.net>
25732
25733         Avoid quadratic system memmem.
25734         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25735         Reported by Ralf Wildenhues.
25736
25737         Fix memmem test for mingw.
25738         * modules/memmem-tests (configure.ac): Check for alarm.
25739         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25740         it.
25741         * doc/functions/memmem.texi: New file.
25742         * doc/gnulib.texi (Function Substitutes): Add memmem.
25743         Reported by Bruno Haible.
25744
25745 2008-01-04  Bruno Haible  <bruno@clisp.org>
25746
25747         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25748         Require gl_HEADER_STRINGS_H_DEFAULTS, not
25749         gl_HEADER_STRING_H_DEFAULTS.
25750
25751 2008-01-04  Eric Blake  <ebb9@byu.net>
25752
25753         Shorten duration of memmem test.
25754         * tests/test-memmem.c (main): Use alarm to declare failure if test
25755         is taking too long.
25756         Reported by Ralf Wildenhues.
25757
25758 2007-12-21  Simon Josefsson  <simon@josefsson.org>
25759
25760         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
25761         string, needed by strerror.
25762
25763 2008-01-03  Colin Watson  <cjwatson@debian.org>
25764             Bruno Haible  <bruno@clisp.org>
25765
25766         * doc/gnulib-tool.texi (Localization): New section.
25767
25768 2008-01-02  Bruno Haible  <bruno@clisp.org>
25769
25770         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
25771         variables to 'unsigned char *' type.
25772         Reported by Paul Eggert.
25773
25774 2008-01-02  Jim Meyering  <jim@meyering.net>
25775
25776         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
25777
25778 2007-12-31  Jim Meyering  <jim@meyering.net>
25779
25780         Avoid use of private FTS type name.
25781         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
25782
25783 2007-12-30  Karl Berry  <karl@gnu.org>
25784
25785         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
25786         work around defect in Texinfo and/or the standalone Info browser.
25787
25788 2007-12-30  Bruno Haible  <bruno@clisp.org>
25789
25790         Unify 5 copies of the KMP code.
25791         * lib/str-kmp.h: New file.
25792         * lib/c-strcasestr.c: Include str-kmp.h.
25793         (knuth_morris_pratt): Remove function.
25794         (c_strcasestr): Update.
25795         * lib/c-strstr.c: Include str-kmp.h.
25796         (knuth_morris_pratt): Remove function.
25797         (c_strcasestr): Update.
25798         * lib/mbscasestr.c: Include str-kmp.h.
25799         (knuth_morris_pratt_unibyte): Remove function.
25800         * lib/mbsstr.c: Include str-kmp.h.
25801         (knuth_morris_pratt_unibyte): Remove function.
25802         * lib/strcasestr.c: Include str-kmp.h.
25803         (knuth_morris_pratt): Remove function.
25804         (strcasestr): Update.
25805         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
25806         * modules/c-strstr (Files): Likewise.
25807         * modules/mbscasestr (Files): Likewise.
25808         * modules/mbsstr (Files): Likewise.
25809         * modules/strcasestr (Files): Likewise.
25810         Suggested by Paul Eggert.
25811
25812 2007-12-30  Bruno Haible  <bruno@clisp.org>
25813
25814         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
25815         defined.
25816
25817 2007-12-30  Bruno Haible  <bruno@clisp.org>
25818
25819         * lib/xmalloca.h: Include xalloc.h.
25820         (xnmalloca): New macro.
25821
25822 2007-12-30  Bruno Haible  <bruno@clisp.org>
25823
25824         * lib/malloca.h (nmalloca): New macro.
25825         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
25826         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
25827         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
25828         knuth_morris_pratt_multibyte): Likewise.
25829         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
25830         knuth_morris_pratt_multibyte): Likewise.
25831         * lib/memmem.c (knuth_morris_pratt): Likewise.
25832         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
25833
25834 2007-12-25  Bruno Haible  <bruno@clisp.org>
25835
25836         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
25837         * lib/glob.c: Don't include openat.h.
25838         (link_exists2_p): Add back the code that deals with the
25839         !GLOB_ALTDIRFUNC case.
25840         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
25841         let it do the filename concatenation.
25842         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
25843         * modules/glob (Depends-on): Remove openat.
25844
25845 2007-12-31  Bruno Haible  <bruno@clisp.org>
25846
25847         * modules/dirfd (License): Change to LGPLv2+.
25848         Approved by Jim Meyering.
25849
25850 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25851
25852         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
25853         when multiplying M by sizeof (size_t).
25854
25855 2007-12-10  Martin Lambers  <marlam@marlam.de>
25856
25857         Override getpagesize on mingw.
25858         * lib/getpagesize.c: New file.
25859         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
25860         * modules/getpagesize (Files): Add lib/getpagesize.c.
25861         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
25862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25863         REPLACE_GETPAGESIZE.
25864         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
25865
25866 2007-12-25  Bruno Haible  <bruno@clisp.org>
25867
25868         * modules/localcharset (Notice): New field.
25869         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
25870         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
25871
25872 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25873             Bruno Haible  <bruno@clisp.org>
25874
25875         Avoid using the syntax symbol() in formatted documentation.
25876         * MODULES.html.sh (func_module): When replacing symbol() with a
25877         hyperlink, remove the parentheses. Show an error if some remain.
25878         Recognize and render the '...' syntax.
25879         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
25880         Rework. Add paragraph about GCC's inlining.
25881         * doc/alloca.texi: Likewise.
25882         * doc/error.texi: Remove parentheses from symbol reference.
25883         * doc/gnulib-intro.texi: Likewise.
25884         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
25885         * modules/fnmatch (Description): Reword to say "the ... function".
25886         * modules/full-read (Description): Likewise.
25887         * modules/full-write (Description): Likewise.
25888         * modules/safe-read (Description): Likewise.
25889         * modules/safe-write (Description): Likewise.
25890         * modules/strchrnul (Description): Likewise.
25891         * modules/trim (Description): Likewise.
25892         * modules/error (Description): Remove parentheses from symbol
25893         references.
25894         * modules/verror (Description): Likewise.
25895         Reported by Karl Berry.
25896
25897 2007-12-25  Bruno Haible  <bruno@clisp.org>
25898
25899         Fixup after 2007-10-16 commit.
25900         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
25901
25902 2007-12-24  Bruno Haible  <bruno@clisp.org>
25903
25904         Make --enable-relocatable work with DESTDIR.
25905         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
25906         to compute installdir from destprog.
25907         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
25908         also set the RELOC_DESTDIR variable.
25909         Reported by Левашев Иван <octagram@bluebottle.com>.
25910
25911 2007-12-24  Bruno Haible  <bruno@clisp.org>
25912
25913         Fix link error due to xalloc_die().
25914         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
25915         of xreadlink.
25916         * lib/relocwrapper.c: Update comments.
25917         * build-aux/install-reloc: Remove xreadlink.c from file list.
25918         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
25919         xreadlink.c.
25920         Reported by Левашев Иван <octagram@bluebottle.com>.
25921
25922 2007-12-24  Bruno Haible  <bruno@clisp.org>
25923
25924         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
25925         * lib/setenv.h: Remove file.
25926         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
25927         lib/setenv.h.
25928         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
25929         (Depends-on): Add stdlib.
25930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
25931         gl_FUNC_UNSETENV.
25932         (Include): Replace setenv.h with <stdlib.h>.
25933         * modules/unsetenv: New file.
25934         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
25935         * lib/unsetenv.c: Include <stdlib.h> first.
25936         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
25937         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
25938         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
25939         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
25940         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
25941         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
25943         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25944         * doc/functions/unsetenv.texi: Update.
25945         * modules/xsetenv (Depends-on): Add unsetenv.
25946         * modules/getdate (Depends-on): Likewise.
25947         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
25948         * lib/xsetenv.c: Don't include setenv.h.
25949         * lib/getdate.y: Likewise.
25950         * lib/relocwrapper.c: Likewise.
25951         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
25952         (Depends-on): Add stdlib.
25953         * NEWS: Mention the changes.
25954         Reported by Левашев Иван <octagram@bluebottle.com>.
25955
25956 2007-12-23  Bruno Haible  <bruno@clisp.org>
25957
25958         * lib/memmem.c (memmem): Use lowercase variable names. Tab
25959         indentation.
25960
25961 2007-12-23  Bruno Haible  <bruno@clisp.org>
25962
25963         * lib/c-strcasestr.c: Add more comments.
25964         * lib/c-strstr.c: Likewise.
25965         * lib/mbscasestr.c: Likewise.
25966         * lib/mbsstr.c: Likewise.
25967         * lib/strcasestr.c: Likewise.
25968         * lib/memmem.c: Likewise.
25969
25970 2007-12-23  Bruno Haible  <bruno@clisp.org>
25971
25972         * tests/test-memmem.c: Include <string.h> first.
25973
25974 2007-12-22  Bruno Haible  <bruno@clisp.org>
25975
25976         * gnulib-tool (func_create_testdir): Change $auxdir while generating
25977         the contents of $testsbase.
25978         Reported by Ralf Wildenhues.
25979
25980 2007-12-22  Bruno Haible  <bruno@clisp.org>
25981
25982         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
25983         two variables local_ldadd_before, local_ldadd_last.
25984
25985 2007-12-20  Eric Blake  <ebb9@byu.net>
25986
25987         Work around circular library issue when cross-compiling.
25988         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
25989         that progname.o does not need to pull in rpl_memcmp.
25990
25991 2007-12-19  Eric Blake  <ebb9@byu.net>
25992
25993         Fix memmem to avoid O(n^2) worst-case complexity.
25994         * lib/memmem.c (knuth_morris_pratt): New function.
25995         (memmem): Use it if first few naive iterations fail.
25996         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
25997         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
25998         * modules/memchr (License): Likewise.
25999         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26000         malloca.
26001         * tests/test-memmem.c: Rewrite, borrowing ideas from
26002         test-mbsstr1.c; the old version wouldn't even compile!
26003         * modules/memmem-tests: New file.
26004         * lib/string.in.h (rpl_memmem): Add declaration.
26005         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26007         REPLACE_MEMMEM.
26008
26009 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26010
26011         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26012         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26013         before any system include files, and undef after them all.  This
26014         should fix a problem on VMS reported by John E. Malmberg in
26015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26016
26017 2007-12-17  Eric Blake  <ebb9@byu.net>
26018
26019         Revert addition of verify, for BSD/OS.
26020         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26021         can't handle large files, for the sake of obsolete platforms.
26022         * modules/fseeko (Depends-on): Remove verify.
26023         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26024         * doc/functions/ftello.texi (ftello): Likewise.
26025         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26026         Reported by Larry Jones.
26027
26028 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26029
26030         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26031         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26032
26033 2007-12-17  Jim Meyering  <meyering@redhat.com>
26034
26035         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26036         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26037         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26038         * modules/getcwd (Depends-on): Add openat.
26039         Reported by Petr Salinger.
26040
26041 2007-12-17  Bruno Haible  <bruno@clisp.org>
26042
26043         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26044         avoid a segmentation fault of the configure test on x86_64 systems.
26045
26046 2007-12-15  Jim Meyering  <meyering@redhat.com>
26047
26048         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26049
26050 2007-12-13  Eric Blake  <ebb9@byu.net>
26051
26052         Another fseek test.
26053         * tests/test-fseek.c (main): Also test ungetc handling.
26054         * tests/test-fseeko.c (main): Likewise.
26055         * modules/fseeko (Depends-on): Add verify.
26056         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26057         large.
26058         Reported by Larry Jones.
26059
26060         Fix fseeko on mingw.
26061         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26062         seek.
26063
26064         Beef up fseek tests.
26065         * tests/test-fseek.c (main): Also test eof handling.
26066         * tests/test-fseeko.c (main): Likewise.
26067         Reported by Larry Jones.
26068
26069 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26070
26071         Fix fseeko on BSD-based platforms.
26072         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26073         successful seek.
26074
26075 2007-12-12  Eric Blake  <ebb9@byu.net>
26076
26077         Allow circular dependency of separate libtests.a
26078         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26079         when use_libtests.
26080
26081 2007-12-11  Eric Blake  <ebb9@byu.net>
26082
26083         Fix bug with -0.0L in previous patch.
26084         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26085         * tests/test-isnan.c (main): Also test on zeroes.
26086         * tests/test-isnanf.c (main): Likewise.
26087         * tests/test-isnanl.h (main): Likewise.
26088
26089         Detect pseudo-denormals on x86 even when cross-compiling.
26090         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26091         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26092         invalid bit patterns that happen to satisfy ==.
26093
26094         Avoid link failures with separate libtests.a.
26095         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26096         last, to satisfy circular dependencies.
26097
26098 2007-12-11  Eric Blake  <ebb9@byu.net>
26099         and Bruno Haible  <bruno@clisp.org>
26100
26101         Fix OpenBSD 4.0 <float.h> handling of long double.
26102         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26103         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26104         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26105
26106 2007-12-11  Jim Meyering  <meyering@redhat.com>
26107
26108         * users.txt: Add libvirt.
26109
26110         Support versions of autoconf prior to 2.59c.
26111         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26112         if it is not already defined.
26113
26114 2007-12-09  Bruno Haible  <bruno@clisp.org>
26115
26116         Let 'gnulib-tool --import' collect sources needed for the tests in
26117         tests/ rather than in lib/.
26118         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26119         argument. If true, add rules to generate libtests.a, and put libtests.a
26120         into $(LDADD). Consider source files in subdirectories and set
26121         uses_subdirs.
26122         (func_emit_initmacro_start, func_emit_initmacro_end,
26123         func_emit_initmacro_done): Pass all arguments explicitly.
26124         (func_import): Determine two module lists main_modules,
26125         testsrelated_modules. Determine use_libtests. Determine two variables
26126         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26127         instead of just sed_transform_lib_file. Determine two variables
26128         main_files and testsrelated_files. Compute 'files' as the union of
26129         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26130         func_add_or_update. In the generated gnulib-comp.m4, collect the
26131         object files for tests/ in different variables than those for lib/.
26132         Substitute LIBTESTS_LIBDEPS.
26133         (func_create_testdir): Combine the uses_subdirs results from
26134         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26135
26136 2007-12-09  Bruno Haible  <bruno@clisp.org>
26137
26138         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26139         the build-aux directory.
26140
26141 2007-12-09  Bruno Haible  <bruno@clisp.org>
26142
26143         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26144         introduced on 2006-09-09.
26145
26146 2007-12-07  Jim Meyering  <meyering@redhat.com>
26147
26148         Let these macros work also with autoconf-2.59.
26149         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26150         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26152
26153 2007-12-06  Jim Meyering  <meyering@redhat.com>
26154
26155         Avoid a configure-time syntax error in gl_FUNC_ACL.
26156         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26157         function in each branch, before testing the cache variable.
26158
26159 2007-12-04  Eric Blake  <ebb9@byu.net>
26160
26161         Make scripts executable.
26162         * build-aux/config.guess: Add execute permissions.
26163         * build-aux/config.sub: Likewise.
26164         * build-aux/gendocs.sh: Likewise.
26165
26166         Fix frexp on mingw.
26167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26168         cross-compiling.
26169         * doc/functions/frexp.texi (frexp): Document the bug.
26170
26171         Make cygwin fseeko check more reliable.
26172         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26173         version numbers, rather than unrelated feature check.
26174         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26175         * doc/functions/ftello.texi (ftello): Likewise.
26176         Reported by Bruno Haible.
26177
26178         * m4/strerror.m4: Bump version number.
26179
26180 2007-12-03  Bruno Haible  <bruno@clisp.org>
26181
26182         * doc/functions/mprotect.texi: Mention the mingw problem.
26183
26184 2007-12-03  Eric Blake  <ebb9@byu.net>
26185
26186         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26187         REPLACE_STRERROR is initialized before this macro.
26188
26189 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26190
26191         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26192         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26193         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26194         put -lsec in even for programs other than 'ls'.  This fixes a problem
26195         for gettext reported by Bruno Haible in
26196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26197         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26198         Add support for Solaris 10.  This isn't efficient, but should get the
26199         job done for now.
26200
26201 2007-12-03  James Youngman  <jay@gnu.org>
26202
26203         * doc/regexprops-generic.texi: change "an close-group" to "a
26204         close-group" and "illegal" to "not allowed".
26205
26206 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26207
26208         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26209         pr_byname.h. Needed for the rare case when the maintainer has done
26210         "make maintainer-clean" in the source directory and then attempts a
26211         build outside the source directory.
26212         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26213         scripts_byname.h.
26214
26215 2007-12-02  Martin Lambers <marlam@marlam.de>
26216             Bruno Haible  <bruno@clisp.org>
26217
26218         * lib/getpagesize.h: Remove file.
26219         * lib/unistd.in.h: Include declaration of getpagesize here.
26220         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26221         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26222         HAVE_SYS_PARAM_H.
26223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26224         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26225         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26226         (Depends-on): Add unistd.
26227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26228         (Include): Use <unistd.h> instead of getpagesize.h.
26229         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26230         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26231         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26232         gl_GETPAGESIZE invocation, already handled by module dependency.
26233         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26234
26235 2007-12-02  Bruno Haible  <bruno@clisp.org>
26236
26237         * modules/strings-tests: New file.
26238         * tests/test-strings.c: New file.
26239
26240         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26241         * lib/strings.in.h: New file.
26242         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26243         * m4/strings_h.m4: New file.
26244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26245         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26246         * modules/strings: New file.
26247         * modules/string (Makefile.am): Update.
26248         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26249         Reported by Karl Berry.
26250
26251 2007-12-01  Eric Blake  <ebb9@byu.net>
26252
26253         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26254         accomodate fix in cygwin 1.5.25.
26255
26256 2007-12-01  Jim Meyering  <meyering@redhat.com>
26257
26258         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26259         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26260         that would inhibit utf8-optimization of a regexp containing line-
26261         or buffer-anchors, e.g., `^', `$'.
26262
26263 2007-11-30  Bruno Haible  <bruno@clisp.org>
26264
26265         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26266         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26267         glthread_recursive_lock_init.
26268         * lib/lock.c (glthread_recursive_lock_init)
26269         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26271
26272 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26273
26274         New function qset_acl, like set_acl but with syscall semantics.
26275         * lib/acl.h (qset_acl): New decl.
26276         * lib/acl.c (qset_acl): New function.
26277         (set_acl): Use new function.  Use more-consistent diagnostics.
26278
26279 2007-11-28  Jim Meyering  <meyering@redhat.com>
26280
26281         * modules/physmem (License): Change from GPL to LGPLv2+.
26282
26283 2007-11-26  Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26286         'long double' type has excess precision.
26287         Reported by Jim Meyering in
26288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26289
26290 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26291
26292         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26293         Sync from <http://gnu.org/licenses>.
26294         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26295         with license text from same location.
26296         * doc/maintain.texi, doc/standards.texi:  Sync from
26297         <http://savannah.gnu.org/projects/gnustandards>.
26298
26299 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
26300         and Jim Meyering  <meyering@redhat.com>
26301
26302         Adjust getdate' grammar to accept a slightly more regular language.
26303         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26304         Before, the former was rejected.
26305         * lib/getdate.y (digits_to_date_time): New function, factored
26306         out of ...
26307         (number): ...here.  Just call digits_to_date_time.
26308         (hybrid): New non-terminal to handle an <unsigned number,
26309         signed relative offset> sequence consistently.
26310
26311 2007-11-18  Jim Meyering  <meyering@redhat.com>
26312
26313         Pull my changes from coreutils:
26314         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26315         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26316         use of $gnulib_tool_option_extras, so that it's separated from the
26317         preceding argument.
26318
26319         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26320         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26321         parent destination directories before copying a file into place.
26322
26323 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26324
26325         bootstrap: work also with 4-argument variant of AC_INIT
26326         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26327
26328 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26329
26330         Port test-getaddrinfo to Solaris.
26331         Problem reported by Bruno Haible in
26332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26333         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26334         explanation of setting 'hints'.
26335         Don't reject an implementation merely because it returns EAI_SERVICE.
26336         (EAI_SERVICE): Define to 0 if not defined.
26337
26338 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26339
26340         The license of gnu-make and posix-shell is now "GPLed build tool".
26341         * modules/gnu-make (License): Likewise.
26342         * modules/posix-shell (License): Likewise.
26343
26344         New module posix-shell, for determining a POSIX shell
26345         or perhaps something that is close enough to a POSIX shell.
26346         * m4/posix-shell.m4: New file.
26347         * modules/posix-shell: New file.
26348
26349         * MODULES.html.sh: Mention new module.
26350
26351         New module gnu-make, for determining whether we're using GNU Make.
26352         * m4/gnu-make.m4: New file.
26353         * modules/gnu-make: New file.
26354         * MODULES.html.sh: Mention new module.
26355
26356 2007-11-14  Jim Meyering  <meyering@redhat.com>
26357
26358         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26359         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26360         use this macro to create a function _definition_.
26361         Remove useless "#undef ARGMATCH_DIE".
26362
26363 2007-11-14  Bruno Haible  <bruno@clisp.org>
26364
26365         * lib/config.charset: Update for OpenBSD 4.1.
26366         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26367
26368 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26369
26370         Document 64-bit #if problems in stdint.texi.
26371         * doc/headers/stdint.texi (stdint.h): Mention problems with
26372         64-bit-#if, and how to work around them.
26373
26374         Don't insist on 'long long int' support in the preprocessor.  It
26375         breaks too many things.  For example, PRIdMAX still uses a 'long
26376         long int' format with the latest Sun compiler, even though
26377         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26378         preprocessor problem.  This causes the latest coreutils to dump
26379         core on Solaris 10 sparc with the Sun C compiler.
26380         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26381         the troublesome expressions at configure-time, not at #if-time.
26382         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26383         preprocessor.
26384         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26385         compile-time C checks, done at 'configure'-time.
26386         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26387         * modules/inttypes (Makefile): Substitute the new symbols that
26388         gl_INTTYPES_H now generates.
26389         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26390
26391 2007-11-12  Bruno Haible  <bruno@clisp.org>
26392
26393         Tests for Unicode character classification functions.
26394
26395         * modules/unictype/bidicategory-byname-tests: New file.
26396         * modules/unictype/bidicategory-name-tests: New file.
26397         * modules/unictype/bidicategory-of-tests: New file.
26398         * modules/unictype/bidicategory-test-tests: New file.
26399         * modules/unictype/block-list-tests: New file.
26400         * modules/unictype/block-of-tests: New file.
26401         * modules/unictype/block-test-tests: New file.
26402         * modules/unictype/category-C-tests: New file.
26403         * modules/unictype/category-Cc-tests: New file.
26404         * modules/unictype/category-Cf-tests: New file.
26405         * modules/unictype/category-Cn-tests: New file.
26406         * modules/unictype/category-Co-tests: New file.
26407         * modules/unictype/category-Cs-tests: New file.
26408         * modules/unictype/category-L-tests: New file.
26409         * modules/unictype/category-Ll-tests: New file.
26410         * modules/unictype/category-Lm-tests: New file.
26411         * modules/unictype/category-Lo-tests: New file.
26412         * modules/unictype/category-Lt-tests: New file.
26413         * modules/unictype/category-Lu-tests: New file.
26414         * modules/unictype/category-M-tests: New file.
26415         * modules/unictype/category-Mc-tests: New file.
26416         * modules/unictype/category-Me-tests: New file.
26417         * modules/unictype/category-Mn-tests: New file.
26418         * modules/unictype/category-N-tests: New file.
26419         * modules/unictype/category-Nd-tests: New file.
26420         * modules/unictype/category-Nl-tests: New file.
26421         * modules/unictype/category-No-tests: New file.
26422         * modules/unictype/category-P-tests: New file.
26423         * modules/unictype/category-Pc-tests: New file.
26424         * modules/unictype/category-Pd-tests: New file.
26425         * modules/unictype/category-Pe-tests: New file.
26426         * modules/unictype/category-Pf-tests: New file.
26427         * modules/unictype/category-Pi-tests: New file.
26428         * modules/unictype/category-Po-tests: New file.
26429         * modules/unictype/category-Ps-tests: New file.
26430         * modules/unictype/category-S-tests: New file.
26431         * modules/unictype/category-Sc-tests: New file.
26432         * modules/unictype/category-Sk-tests: New file.
26433         * modules/unictype/category-Sm-tests: New file.
26434         * modules/unictype/category-So-tests: New file.
26435         * modules/unictype/category-Z-tests: New file.
26436         * modules/unictype/category-Zl-tests: New file.
26437         * modules/unictype/category-Zp-tests: New file.
26438         * modules/unictype/category-Zs-tests: New file.
26439         * modules/unictype/category-and-not-tests: New file.
26440         * modules/unictype/category-and-tests: New file.
26441         * modules/unictype/category-byname-tests: New file.
26442         * modules/unictype/category-name-tests: New file.
26443         * modules/unictype/category-none-tests: New file.
26444         * modules/unictype/category-of-tests: New file.
26445         * modules/unictype/category-or-tests: New file.
26446         * modules/unictype/category-test-withtable-tests: New file.
26447         * modules/unictype/combining-class-tests: New file.
26448         * modules/unictype/ctype-alnum-tests: New file.
26449         * modules/unictype/ctype-alpha-tests: New file.
26450         * modules/unictype/ctype-blank-tests: New file.
26451         * modules/unictype/ctype-cntrl-tests: New file.
26452         * modules/unictype/ctype-digit-tests: New file.
26453         * modules/unictype/ctype-graph-tests: New file.
26454         * modules/unictype/ctype-lower-tests: New file.
26455         * modules/unictype/ctype-print-tests: New file.
26456         * modules/unictype/ctype-punct-tests: New file.
26457         * modules/unictype/ctype-space-tests: New file.
26458         * modules/unictype/ctype-upper-tests: New file.
26459         * modules/unictype/ctype-xdigit-tests: New file.
26460         * modules/unictype/decimal-digit-tests: New file.
26461         * modules/unictype/digit-tests: New file.
26462         * modules/unictype/mirror-tests: New file.
26463         * modules/unictype/numeric-tests: New file.
26464         * modules/unictype/property-alphabetic-tests: New file.
26465         * modules/unictype/property-ascii-hex-digit-tests: New file.
26466         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26467         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26468         * modules/unictype/property-bidi-block-separator-tests: New file.
26469         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26470         * modules/unictype/property-bidi-common-separator-tests: New file.
26471         * modules/unictype/property-bidi-control-tests: New file.
26472         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26473         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26474         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26475         * modules/unictype/property-bidi-european-digit-tests: New file.
26476         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26477         * modules/unictype/property-bidi-left-to-right-tests: New file.
26478         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26479         * modules/unictype/property-bidi-other-neutral-tests: New file.
26480         * modules/unictype/property-bidi-pdf-tests: New file.
26481         * modules/unictype/property-bidi-segment-separator-tests: New file.
26482         * modules/unictype/property-bidi-whitespace-tests: New file.
26483         * modules/unictype/property-byname-tests: New file.
26484         * modules/unictype/property-combining-tests: New file.
26485         * modules/unictype/property-composite-tests: New file.
26486         * modules/unictype/property-currency-symbol-tests: New file.
26487         * modules/unictype/property-dash-tests: New file.
26488         * modules/unictype/property-decimal-digit-tests: New file.
26489         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26490         * modules/unictype/property-deprecated-tests: New file.
26491         * modules/unictype/property-diacritic-tests: New file.
26492         * modules/unictype/property-extender-tests: New file.
26493         * modules/unictype/property-format-control-tests: New file.
26494         * modules/unictype/property-grapheme-base-tests: New file.
26495         * modules/unictype/property-grapheme-extend-tests: New file.
26496         * modules/unictype/property-grapheme-link-tests: New file.
26497         * modules/unictype/property-hex-digit-tests: New file.
26498         * modules/unictype/property-hyphen-tests: New file.
26499         * modules/unictype/property-id-continue-tests: New file.
26500         * modules/unictype/property-id-start-tests: New file.
26501         * modules/unictype/property-ideographic-tests: New file.
26502         * modules/unictype/property-ids-binary-operator-tests: New file.
26503         * modules/unictype/property-ids-trinary-operator-tests: New file.
26504         * modules/unictype/property-ignorable-control-tests: New file.
26505         * modules/unictype/property-iso-control-tests: New file.
26506         * modules/unictype/property-join-control-tests: New file.
26507         * modules/unictype/property-left-of-pair-tests: New file.
26508         * modules/unictype/property-line-separator-tests: New file.
26509         * modules/unictype/property-logical-order-exception-tests: New file.
26510         * modules/unictype/property-lowercase-tests: New file.
26511         * modules/unictype/property-math-tests: New file.
26512         * modules/unictype/property-non-break-tests: New file.
26513         * modules/unictype/property-not-a-character-tests: New file.
26514         * modules/unictype/property-numeric-tests: New file.
26515         * modules/unictype/property-other-alphabetic-tests: New file.
26516         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26517         * modules/unictype/property-other-grapheme-extend-tests: New file.
26518         * modules/unictype/property-other-id-continue-tests: New file.
26519         * modules/unictype/property-other-id-start-tests: New file.
26520         * modules/unictype/property-other-lowercase-tests: New file.
26521         * modules/unictype/property-other-math-tests: New file.
26522         * modules/unictype/property-other-uppercase-tests: New file.
26523         * modules/unictype/property-paired-punctuation-tests: New file.
26524         * modules/unictype/property-paragraph-separator-tests: New file.
26525         * modules/unictype/property-pattern-syntax-tests: New file.
26526         * modules/unictype/property-pattern-white-space-tests: New file.
26527         * modules/unictype/property-private-use-tests: New file.
26528         * modules/unictype/property-punctuation-tests: New file.
26529         * modules/unictype/property-quotation-mark-tests: New file.
26530         * modules/unictype/property-radical-tests: New file.
26531         * modules/unictype/property-sentence-terminal-tests: New file.
26532         * modules/unictype/property-soft-dotted-tests: New file.
26533         * modules/unictype/property-space-tests: New file.
26534         * modules/unictype/property-terminal-punctuation-tests: New file.
26535         * modules/unictype/property-test-tests: New file.
26536         * modules/unictype/property-titlecase-tests: New file.
26537         * modules/unictype/property-unassigned-code-value-tests: New file.
26538         * modules/unictype/property-unified-ideograph-tests: New file.
26539         * modules/unictype/property-uppercase-tests: New file.
26540         * modules/unictype/property-variation-selector-tests: New file.
26541         * modules/unictype/property-white-space-tests: New file.
26542         * modules/unictype/property-xid-continue-tests: New file.
26543         * modules/unictype/property-xid-start-tests: New file.
26544         * modules/unictype/property-zero-width-tests: New file.
26545         * modules/unictype/scripts-tests: New file.
26546         * modules/unictype/syntax-c-ident-tests: New file.
26547         * modules/unictype/syntax-c-whitespace-tests: New file.
26548         * modules/unictype/syntax-java-ident-tests: New file.
26549         * modules/unictype/syntax-java-whitespace-tests: New file.
26550         * tests/unictype/test-bidi_byname.c: New file.
26551         * tests/unictype/test-bidi_name.c: New file.
26552         * tests/unictype/test-bidi_of.c: New file.
26553         * tests/unictype/test-bidi_test.c: New file.
26554         * tests/unictype/test-block_list.c: New file.
26555         * tests/unictype/test-block_of.c: New file.
26556         * tests/unictype/test-block_test.c: New file.
26557         * tests/unictype/test-categ_and.c: New file.
26558         * tests/unictype/test-categ_and_not.c: New file.
26559         * tests/unictype/test-categ_byname.c: New file.
26560         * tests/unictype/test-categ_name.c: New file.
26561         * tests/unictype/test-categ_none.c: New file.
26562         * tests/unictype/test-categ_of.c: New file.
26563         * tests/unictype/test-categ_or.c: New file.
26564         * tests/unictype/test-categ_test_withtable.c: New file.
26565         * tests/unictype/test-combining.c: New file.
26566         * tests/unictype/test-decdigit.c: New file.
26567         * tests/unictype/test-digit.c: New file.
26568         * tests/unictype/test-mirror.c: New file.
26569         * tests/unictype/test-numeric.c: New file.
26570         * tests/unictype/test-pr_byname.c: New file.
26571         * tests/unictype/test-pr_test.c: New file.
26572         * tests/unictype/test-predicate-part1.h: New file.
26573         * tests/unictype/test-predicate-part2.h: New file.
26574         * tests/unictype/test-scripts.c: New file.
26575         * tests/unictype/test-sy_c_ident.c: New file.
26576         * tests/unictype/test-sy_java_ident.c: New file.
26577
26578         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26579         for Unicode 5.0.0.
26580         * tests/unictype/test-categ_Cc.c: Likewise.
26581         * tests/unictype/test-categ_Cf.c: Likewise.
26582         * tests/unictype/test-categ_Cn.c: Likewise.
26583         * tests/unictype/test-categ_Co.c: Likewise.
26584         * tests/unictype/test-categ_Cs.c: Likewise.
26585         * tests/unictype/test-categ_L.c: Likewise.
26586         * tests/unictype/test-categ_Ll.c: Likewise.
26587         * tests/unictype/test-categ_Lm.c: Likewise.
26588         * tests/unictype/test-categ_Lo.c: Likewise.
26589         * tests/unictype/test-categ_Lt.c: Likewise.
26590         * tests/unictype/test-categ_Lu.c: Likewise.
26591         * tests/unictype/test-categ_M.c: Likewise.
26592         * tests/unictype/test-categ_Mc.c: Likewise.
26593         * tests/unictype/test-categ_Me.c: Likewise.
26594         * tests/unictype/test-categ_Mn.c: Likewise.
26595         * tests/unictype/test-categ_N.c: Likewise.
26596         * tests/unictype/test-categ_Nd.c: Likewise.
26597         * tests/unictype/test-categ_Nl.c: Likewise.
26598         * tests/unictype/test-categ_No.c: Likewise.
26599         * tests/unictype/test-categ_P.c: Likewise.
26600         * tests/unictype/test-categ_Pc.c: Likewise.
26601         * tests/unictype/test-categ_Pd.c: Likewise.
26602         * tests/unictype/test-categ_Pe.c: Likewise.
26603         * tests/unictype/test-categ_Pf.c: Likewise.
26604         * tests/unictype/test-categ_Pi.c: Likewise.
26605         * tests/unictype/test-categ_Po.c: Likewise.
26606         * tests/unictype/test-categ_Ps.c: Likewise.
26607         * tests/unictype/test-categ_S.c: Likewise.
26608         * tests/unictype/test-categ_Sc.c: Likewise.
26609         * tests/unictype/test-categ_Sk.c: Likewise.
26610         * tests/unictype/test-categ_Sm.c: Likewise.
26611         * tests/unictype/test-categ_So.c: Likewise.
26612         * tests/unictype/test-categ_Z.c: Likewise.
26613         * tests/unictype/test-categ_Zl.c: Likewise.
26614         * tests/unictype/test-categ_Zp.c: Likewise.
26615         * tests/unictype/test-categ_Zs.c: Likewise.
26616         * tests/unictype/test-ctype_alnum.c: Likewise.
26617         * tests/unictype/test-ctype_alpha.c: Likewise.
26618         * tests/unictype/test-ctype_blank.c: Likewise.
26619         * tests/unictype/test-ctype_cntrl.c: Likewise.
26620         * tests/unictype/test-ctype_digit.c: Likewise.
26621         * tests/unictype/test-ctype_graph.c: Likewise.
26622         * tests/unictype/test-ctype_lower.c: Likewise.
26623         * tests/unictype/test-ctype_print.c: Likewise.
26624         * tests/unictype/test-ctype_punct.c: Likewise.
26625         * tests/unictype/test-ctype_space.c: Likewise.
26626         * tests/unictype/test-ctype_upper.c: Likewise.
26627         * tests/unictype/test-ctype_xdigit.c: Likewise.
26628         * tests/unictype/test-decdigit.h: Likewise.
26629         * tests/unictype/test-digit.h: Likewise.
26630         * tests/unictype/test-numeric.h: Likewise.
26631         * tests/unictype/test-pr_alphabetic.c: Likewise.
26632         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26633         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26634         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26635         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26636         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26637         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26638         * tests/unictype/test-pr_bidi_control.c: Likewise.
26639         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26640         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26641         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26642         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26643         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26644         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26645         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26646         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26647         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26648         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26649         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26650         * tests/unictype/test-pr_combining.c: Likewise.
26651         * tests/unictype/test-pr_composite.c: Likewise.
26652         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26653         * tests/unictype/test-pr_dash.c: Likewise.
26654         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26655         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26656         * tests/unictype/test-pr_deprecated.c: Likewise.
26657         * tests/unictype/test-pr_diacritic.c: Likewise.
26658         * tests/unictype/test-pr_extender.c: Likewise.
26659         * tests/unictype/test-pr_format_control.c: Likewise.
26660         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26661         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26662         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26663         * tests/unictype/test-pr_hex_digit.c: Likewise.
26664         * tests/unictype/test-pr_hyphen.c: Likewise.
26665         * tests/unictype/test-pr_id_continue.c: Likewise.
26666         * tests/unictype/test-pr_id_start.c: Likewise.
26667         * tests/unictype/test-pr_ideographic.c: Likewise.
26668         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26669         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26670         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26671         * tests/unictype/test-pr_iso_control.c: Likewise.
26672         * tests/unictype/test-pr_join_control.c: Likewise.
26673         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26674         * tests/unictype/test-pr_line_separator.c: Likewise.
26675         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26676         * tests/unictype/test-pr_lowercase.c: Likewise.
26677         * tests/unictype/test-pr_math.c: Likewise.
26678         * tests/unictype/test-pr_non_break.c: Likewise.
26679         * tests/unictype/test-pr_not_a_character.c: Likewise.
26680         * tests/unictype/test-pr_numeric.c: Likewise.
26681         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26682         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26683         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26684         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26685         * tests/unictype/test-pr_other_id_start.c: Likewise.
26686         * tests/unictype/test-pr_other_lowercase.c: Likewise.
26687         * tests/unictype/test-pr_other_math.c: Likewise.
26688         * tests/unictype/test-pr_other_uppercase.c: Likewise.
26689         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26690         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26691         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26692         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26693         * tests/unictype/test-pr_private_use.c: Likewise.
26694         * tests/unictype/test-pr_punctuation.c: Likewise.
26695         * tests/unictype/test-pr_quotation_mark.c: Likewise.
26696         * tests/unictype/test-pr_radical.c: Likewise.
26697         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26698         * tests/unictype/test-pr_soft_dotted.c: Likewise.
26699         * tests/unictype/test-pr_space.c: Likewise.
26700         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26701         * tests/unictype/test-pr_titlecase.c: Likewise.
26702         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26703         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26704         * tests/unictype/test-pr_uppercase.c: Likewise.
26705         * tests/unictype/test-pr_variation_selector.c: Likewise.
26706         * tests/unictype/test-pr_white_space.c: Likewise.
26707         * tests/unictype/test-pr_xid_continue.c: Likewise.
26708         * tests/unictype/test-pr_xid_start.c: Likewise.
26709         * tests/unictype/test-pr_zero_width.c: Likewise.
26710         * tests/unictype/test-sy_c_whitespace.c: Likewise.
26711         * tests/unictype/test-sy_java_whitespace.c: Likewise.
26712
26713 2007-11-12  Bruno Haible  <bruno@clisp.org>
26714
26715         Unicode character classification functions.
26716         * lib/unictype.h: New file.
26717         * modules/unictype/base: New file.
26718         * modules/unictype/category-L: New file.
26719         * modules/unictype/category-Lu: New file.
26720         * modules/unictype/category-Ll: New file.
26721         * modules/unictype/category-Lt: New file.
26722         * modules/unictype/category-Lm: New file.
26723         * modules/unictype/category-Lo: New file.
26724         * modules/unictype/category-M: New file.
26725         * modules/unictype/category-Mn: New file.
26726         * modules/unictype/category-Mc: New file.
26727         * modules/unictype/category-Me: New file.
26728         * modules/unictype/category-N: New file.
26729         * modules/unictype/category-Nd: New file.
26730         * modules/unictype/category-Nl: New file.
26731         * modules/unictype/category-No: New file.
26732         * modules/unictype/category-P: New file.
26733         * modules/unictype/category-Pc: New file.
26734         * modules/unictype/category-Pd: New file.
26735         * modules/unictype/category-Ps: New file.
26736         * modules/unictype/category-Pe: New file.
26737         * modules/unictype/category-Pi: New file.
26738         * modules/unictype/category-Pf: New file.
26739         * modules/unictype/category-Po: New file.
26740         * modules/unictype/category-S: New file.
26741         * modules/unictype/category-Sm: New file.
26742         * modules/unictype/category-Sc: New file.
26743         * modules/unictype/category-Sk: New file.
26744         * modules/unictype/category-So: New file.
26745         * modules/unictype/category-Z: New file.
26746         * modules/unictype/category-Zs: New file.
26747         * modules/unictype/category-Zl: New file.
26748         * modules/unictype/category-Zp: New file.
26749         * modules/unictype/category-C: New file.
26750         * modules/unictype/category-Cc: New file.
26751         * modules/unictype/category-Cf: New file.
26752         * modules/unictype/category-Cs: New file.
26753         * modules/unictype/category-Co: New file.
26754         * modules/unictype/category-Cn: New file.
26755         * modules/unictype/category-or: New file.
26756         * modules/unictype/category-of: New file.
26757         * modules/unictype/category-test: New file.
26758         * modules/unictype/category-test-withtable: New file.
26759         * modules/unictype/category-byname: New file.
26760         * modules/unictype/category-none: New file.
26761         * modules/unictype/category-and: New file.
26762         * modules/unictype/category-and-not: New file.
26763         * modules/unictype/category-name: New file.
26764         * modules/unictype/combining-class: New file.
26765         * modules/unictype/category-all: New file.
26766         * modules/unictype/bidicategory-all: New file.
26767         * modules/unictype/bidicategory-byname: New file.
26768         * modules/unictype/bidicategory-name: New file.
26769         * modules/unictype/bidicategory-of: New file.
26770         * modules/unictype/bidicategory-test: New file.
26771         * modules/unictype/decimal-digit: New file.
26772         * modules/unictype/digit: New file.
26773         * modules/unictype/numeric: New file.
26774         * modules/unictype/mirror: New file.
26775         * modules/unictype/property-white-space: New file.
26776         * modules/unictype/property-alphabetic: New file.
26777         * modules/unictype/property-other-alphabetic: New file.
26778         * modules/unictype/property-not-a-character: New file.
26779         * modules/unictype/property-default-ignorable-code-point: New file.
26780         * modules/unictype/property-other-default-ignorable-code-point: New
26781         file.
26782         * modules/unictype/property-deprecated: New file.
26783         * modules/unictype/property-logical-order-exception: New file.
26784         * modules/unictype/property-variation-selector: New file.
26785         * modules/unictype/property-private-use: New file.
26786         * modules/unictype/property-unassigned-code-value: New file.
26787         * modules/unictype/property-uppercase: New file.
26788         * modules/unictype/property-other-uppercase: New file.
26789         * modules/unictype/property-lowercase: New file.
26790         * modules/unictype/property-other-lowercase: New file.
26791         * modules/unictype/property-titlecase: New file.
26792         * modules/unictype/property-soft-dotted: New file.
26793         * modules/unictype/property-id-start: New file.
26794         * modules/unictype/property-other-id-start: New file.
26795         * modules/unictype/property-id-continue: New file.
26796         * modules/unictype/property-other-id-continue: New file.
26797         * modules/unictype/property-xid-start: New file.
26798         * modules/unictype/property-xid-continue: New file.
26799         * modules/unictype/property-pattern-white-space: New file.
26800         * modules/unictype/property-pattern-syntax: New file.
26801         * modules/unictype/property-join-control: New file.
26802         * modules/unictype/property-grapheme-base: New file.
26803         * modules/unictype/property-grapheme-extend: New file.
26804         * modules/unictype/property-other-grapheme-extend: New file.
26805         * modules/unictype/property-grapheme-link: New file.
26806         * modules/unictype/property-bidi-control: New file.
26807         * modules/unictype/property-bidi-left-to-right: New file.
26808         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
26809         * modules/unictype/property-bidi-arabic-right-to-left: New file.
26810         * modules/unictype/property-bidi-european-digit: New file.
26811         * modules/unictype/property-bidi-eur-num-separator: New file.
26812         * modules/unictype/property-bidi-eur-num-terminator: New file.
26813         * modules/unictype/property-bidi-arabic-digit: New file.
26814         * modules/unictype/property-bidi-common-separator: New file.
26815         * modules/unictype/property-bidi-block-separator: New file.
26816         * modules/unictype/property-bidi-segment-separator: New file.
26817         * modules/unictype/property-bidi-whitespace: New file.
26818         * modules/unictype/property-bidi-non-spacing-mark: New file.
26819         * modules/unictype/property-bidi-boundary-neutral: New file.
26820         * modules/unictype/property-bidi-pdf: New file.
26821         * modules/unictype/property-bidi-embedding-or-override: New file.
26822         * modules/unictype/property-bidi-other-neutral: New file.
26823         * modules/unictype/property-hex-digit: New file.
26824         * modules/unictype/property-ascii-hex-digit: New file.
26825         * modules/unictype/property-ideographic: New file.
26826         * modules/unictype/property-unified-ideograph: New file.
26827         * modules/unictype/property-radical: New file.
26828         * modules/unictype/property-ids-binary-operator: New file.
26829         * modules/unictype/property-ids-trinary-operator: New file.
26830         * modules/unictype/property-zero-width: New file.
26831         * modules/unictype/property-space: New file.
26832         * modules/unictype/property-non-break: New file.
26833         * modules/unictype/property-iso-control: New file.
26834         * modules/unictype/property-format-control: New file.
26835         * modules/unictype/property-dash: New file.
26836         * modules/unictype/property-hyphen: New file.
26837         * modules/unictype/property-punctuation: New file.
26838         * modules/unictype/property-line-separator: New file.
26839         * modules/unictype/property-paragraph-separator: New file.
26840         * modules/unictype/property-quotation-mark: New file.
26841         * modules/unictype/property-sentence-terminal: New file.
26842         * modules/unictype/property-terminal-punctuation: New file.
26843         * modules/unictype/property-currency-symbol: New file.
26844         * modules/unictype/property-math: New file.
26845         * modules/unictype/property-other-math: New file.
26846         * modules/unictype/property-paired-punctuation: New file.
26847         * modules/unictype/property-left-of-pair: New file.
26848         * modules/unictype/property-combining: New file.
26849         * modules/unictype/property-composite: New file.
26850         * modules/unictype/property-decimal-digit: New file.
26851         * modules/unictype/property-numeric: New file.
26852         * modules/unictype/property-diacritic: New file.
26853         * modules/unictype/property-extender: New file.
26854         * modules/unictype/property-ignorable-control: New file.
26855         * modules/unictype/property-test: New file.
26856         * modules/unictype/property-byname: New file.
26857         * modules/unictype/property-all: New file.
26858         * modules/unictype/scripts: New file.
26859         * modules/unictype/scripts-all: New file.
26860         * modules/unictype/block-of: New file.
26861         * modules/unictype/block-test: New file.
26862         * modules/unictype/block-list: New file.
26863         * modules/unictype/block-all: New file.
26864         * modules/unictype/syntax-c-whitespace: New file.
26865         * modules/unictype/syntax-java-whitespace: New file.
26866         * modules/unictype/syntax-c-ident: New file.
26867         * modules/unictype/syntax-java-ident: New file.
26868         * modules/unictype/ctype-alnum: New file.
26869         * modules/unictype/ctype-alpha: New file.
26870         * modules/unictype/ctype-cntrl: New file.
26871         * modules/unictype/ctype-digit: New file.
26872         * modules/unictype/ctype-graph: New file.
26873         * modules/unictype/ctype-lower: New file.
26874         * modules/unictype/ctype-print: New file.
26875         * modules/unictype/ctype-punct: New file.
26876         * modules/unictype/ctype-space: New file.
26877         * modules/unictype/ctype-upper: New file.
26878         * modules/unictype/ctype-xdigit: New file.
26879         * modules/unictype/ctype-blank: New file.
26880         * lib/unictype/bidi_byname.c: New file.
26881         * lib/unictype/bidi_name.c: New file.
26882         * lib/unictype/bidi_of.c: New file.
26883         * lib/unictype/bidi_test.c: New file.
26884         * lib/unictype/bitmap.h: New file.
26885         * lib/unictype/block_test.c: New file.
26886         * lib/unictype/blocks.c: New file.
26887         * lib/unictype/categ_C.c: New file.
26888         * lib/unictype/categ_Cc.c: New file.
26889         * lib/unictype/categ_Cf.c: New file.
26890         * lib/unictype/categ_Cn.c: New file.
26891         * lib/unictype/categ_Co.c: New file.
26892         * lib/unictype/categ_Cs.c: New file.
26893         * lib/unictype/categ_L.c: New file.
26894         * lib/unictype/categ_Ll.c: New file.
26895         * lib/unictype/categ_Lm.c: New file.
26896         * lib/unictype/categ_Lo.c: New file.
26897         * lib/unictype/categ_Lt.c: New file.
26898         * lib/unictype/categ_Lu.c: New file.
26899         * lib/unictype/categ_M.c: New file.
26900         * lib/unictype/categ_Mc.c: New file.
26901         * lib/unictype/categ_Me.c: New file.
26902         * lib/unictype/categ_Mn.c: New file.
26903         * lib/unictype/categ_N.c: New file.
26904         * lib/unictype/categ_Nd.c: New file.
26905         * lib/unictype/categ_Nl.c: New file.
26906         * lib/unictype/categ_No.c: New file.
26907         * lib/unictype/categ_P.c: New file.
26908         * lib/unictype/categ_Pc.c: New file.
26909         * lib/unictype/categ_Pd.c: New file.
26910         * lib/unictype/categ_Pe.c: New file.
26911         * lib/unictype/categ_Pf.c: New file.
26912         * lib/unictype/categ_Pi.c: New file.
26913         * lib/unictype/categ_Po.c: New file.
26914         * lib/unictype/categ_Ps.c: New file.
26915         * lib/unictype/categ_S.c: New file.
26916         * lib/unictype/categ_Sc.c: New file.
26917         * lib/unictype/categ_Sk.c: New file.
26918         * lib/unictype/categ_Sm.c: New file.
26919         * lib/unictype/categ_So.c: New file.
26920         * lib/unictype/categ_Z.c: New file.
26921         * lib/unictype/categ_Zl.c: New file.
26922         * lib/unictype/categ_Zp.c: New file.
26923         * lib/unictype/categ_Zs.c: New file.
26924         * lib/unictype/categ_and.c: New file.
26925         * lib/unictype/categ_and_not.c: New file.
26926         * lib/unictype/categ_byname.c: New file.
26927         * lib/unictype/categ_name.c: New file.
26928         * lib/unictype/categ_none.c: New file.
26929         * lib/unictype/categ_of.c: New file.
26930         * lib/unictype/categ_or.c: New file.
26931         * lib/unictype/categ_test.c: New file.
26932         * lib/unictype/combining.c: New file.
26933         * lib/unictype/ctype_alnum.c: New file.
26934         * lib/unictype/ctype_alpha.c: New file.
26935         * lib/unictype/ctype_blank.c: New file.
26936         * lib/unictype/ctype_cntrl.c: New file.
26937         * lib/unictype/ctype_digit.c: New file.
26938         * lib/unictype/ctype_graph.c: New file.
26939         * lib/unictype/ctype_lower.c: New file.
26940         * lib/unictype/ctype_print.c: New file.
26941         * lib/unictype/ctype_punct.c: New file.
26942         * lib/unictype/ctype_space.c: New file.
26943         * lib/unictype/ctype_upper.c: New file.
26944         * lib/unictype/ctype_xdigit.c: New file.
26945         * lib/unictype/decdigit.c: New file.
26946         * lib/unictype/digit.c: New file.
26947         * lib/unictype/identsyntaxmap.h: New file.
26948         * lib/unictype/mirror.c: New file.
26949         * lib/unictype/numeric.c: New file.
26950         * lib/unictype/pr_alphabetic.c: New file.
26951         * lib/unictype/pr_ascii_hex_digit.c: New file.
26952         * lib/unictype/pr_bidi_arabic_digit.c: New file.
26953         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
26954         * lib/unictype/pr_bidi_block_separator.c: New file.
26955         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
26956         * lib/unictype/pr_bidi_common_separator.c: New file.
26957         * lib/unictype/pr_bidi_control.c: New file.
26958         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
26959         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
26960         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
26961         * lib/unictype/pr_bidi_european_digit.c: New file.
26962         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
26963         * lib/unictype/pr_bidi_left_to_right.c: New file.
26964         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
26965         * lib/unictype/pr_bidi_other_neutral.c: New file.
26966         * lib/unictype/pr_bidi_pdf.c: New file.
26967         * lib/unictype/pr_bidi_segment_separator.c: New file.
26968         * lib/unictype/pr_bidi_whitespace.c: New file.
26969         * lib/unictype/pr_byname.c: New file.
26970         * lib/unictype/pr_byname.gperf: New file.
26971         * lib/unictype/pr_combining.c: New file.
26972         * lib/unictype/pr_composite.c: New file.
26973         * lib/unictype/pr_currency_symbol.c: New file.
26974         * lib/unictype/pr_dash.c: New file.
26975         * lib/unictype/pr_decimal_digit.c: New file.
26976         * lib/unictype/pr_default_ignorable_code_point.c: New file.
26977         * lib/unictype/pr_deprecated.c: New file.
26978         * lib/unictype/pr_diacritic.c: New file.
26979         * lib/unictype/pr_extender.c: New file.
26980         * lib/unictype/pr_format_control.c: New file.
26981         * lib/unictype/pr_grapheme_base.c: New file.
26982         * lib/unictype/pr_grapheme_extend.c: New file.
26983         * lib/unictype/pr_grapheme_link.c: New file.
26984         * lib/unictype/pr_hex_digit.c: New file.
26985         * lib/unictype/pr_hyphen.c: New file.
26986         * lib/unictype/pr_id_continue.c: New file.
26987         * lib/unictype/pr_id_start.c: New file.
26988         * lib/unictype/pr_ideographic.c: New file.
26989         * lib/unictype/pr_ids_binary_operator.c: New file.
26990         * lib/unictype/pr_ids_trinary_operator.c: New file.
26991         * lib/unictype/pr_ignorable_control.c: New file.
26992         * lib/unictype/pr_iso_control.c: New file.
26993         * lib/unictype/pr_join_control.c: New file.
26994         * lib/unictype/pr_left_of_pair.c: New file.
26995         * lib/unictype/pr_line_separator.c: New file.
26996         * lib/unictype/pr_logical_order_exception.c: New file.
26997         * lib/unictype/pr_lowercase.c: New file.
26998         * lib/unictype/pr_math.c: New file.
26999         * lib/unictype/pr_non_break.c: New file.
27000         * lib/unictype/pr_not_a_character.c: New file.
27001         * lib/unictype/pr_numeric.c: New file.
27002         * lib/unictype/pr_other_alphabetic.c: New file.
27003         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27004         * lib/unictype/pr_other_grapheme_extend.c: New file.
27005         * lib/unictype/pr_other_id_continue.c: New file.
27006         * lib/unictype/pr_other_id_start.c: New file.
27007         * lib/unictype/pr_other_lowercase.c: New file.
27008         * lib/unictype/pr_other_math.c: New file.
27009         * lib/unictype/pr_other_uppercase.c: New file.
27010         * lib/unictype/pr_paired_punctuation.c: New file.
27011         * lib/unictype/pr_paragraph_separator.c: New file.
27012         * lib/unictype/pr_pattern_syntax.c: New file.
27013         * lib/unictype/pr_pattern_white_space.c: New file.
27014         * lib/unictype/pr_private_use.c: New file.
27015         * lib/unictype/pr_punctuation.c: New file.
27016         * lib/unictype/pr_quotation_mark.c: New file.
27017         * lib/unictype/pr_radical.c: New file.
27018         * lib/unictype/pr_sentence_terminal.c: New file.
27019         * lib/unictype/pr_soft_dotted.c: New file.
27020         * lib/unictype/pr_space.c: New file.
27021         * lib/unictype/pr_terminal_punctuation.c: New file.
27022         * lib/unictype/pr_test.c: New file.
27023         * lib/unictype/pr_titlecase.c: New file.
27024         * lib/unictype/pr_unassigned_code_value.c: New file.
27025         * lib/unictype/pr_unified_ideograph.c: New file.
27026         * lib/unictype/pr_uppercase.c: New file.
27027         * lib/unictype/pr_variation_selector.c: New file.
27028         * lib/unictype/pr_white_space.c: New file.
27029         * lib/unictype/pr_xid_continue.c: New file.
27030         * lib/unictype/pr_xid_start.c: New file.
27031         * lib/unictype/pr_zero_width.c: New file.
27032         * lib/unictype/scripts.c: New file.
27033         * lib/unictype/sy_c_ident.c: New file.
27034         * lib/unictype/sy_c_whitespace.c: New file.
27035         * lib/unictype/sy_java_ident.c: New file.
27036         * lib/unictype/sy_java_whitespace.c: New file.
27037
27038         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27039         Unicode 5.0.0.
27040         * lib/unictype/blocks.h: Likewise.
27041         * lib/unictype/categ_C.h: Likewise.
27042         * lib/unictype/categ_Cc.h: Likewise.
27043         * lib/unictype/categ_Cf.h: Likewise.
27044         * lib/unictype/categ_Cn.h: Likewise.
27045         * lib/unictype/categ_Co.h: Likewise.
27046         * lib/unictype/categ_Cs.h: Likewise.
27047         * lib/unictype/categ_L.h: Likewise.
27048         * lib/unictype/categ_Ll.h: Likewise.
27049         * lib/unictype/categ_Lm.h: Likewise.
27050         * lib/unictype/categ_Lo.h: Likewise.
27051         * lib/unictype/categ_Lt.h: Likewise.
27052         * lib/unictype/categ_Lu.h: Likewise.
27053         * lib/unictype/categ_M.h: Likewise.
27054         * lib/unictype/categ_Mc.h: Likewise.
27055         * lib/unictype/categ_Me.h: Likewise.
27056         * lib/unictype/categ_Mn.h: Likewise.
27057         * lib/unictype/categ_N.h: Likewise.
27058         * lib/unictype/categ_Nd.h: Likewise.
27059         * lib/unictype/categ_Nl.h: Likewise.
27060         * lib/unictype/categ_No.h: Likewise.
27061         * lib/unictype/categ_P.h: Likewise.
27062         * lib/unictype/categ_Pc.h: Likewise.
27063         * lib/unictype/categ_Pd.h: Likewise.
27064         * lib/unictype/categ_Pe.h: Likewise.
27065         * lib/unictype/categ_Pf.h: Likewise.
27066         * lib/unictype/categ_Pi.h: Likewise.
27067         * lib/unictype/categ_Po.h: Likewise.
27068         * lib/unictype/categ_Ps.h: Likewise.
27069         * lib/unictype/categ_S.h: Likewise.
27070         * lib/unictype/categ_Sc.h: Likewise.
27071         * lib/unictype/categ_Sk.h: Likewise.
27072         * lib/unictype/categ_Sm.h: Likewise.
27073         * lib/unictype/categ_So.h: Likewise.
27074         * lib/unictype/categ_Z.h: Likewise.
27075         * lib/unictype/categ_Zl.h: Likewise.
27076         * lib/unictype/categ_Zp.h: Likewise.
27077         * lib/unictype/categ_Zs.h: Likewise.
27078         * lib/unictype/categ_of.h: Likewise.
27079         * lib/unictype/combining.h: Likewise.
27080         * lib/unictype/ctype_alnum.h: Likewise.
27081         * lib/unictype/ctype_alpha.h: Likewise.
27082         * lib/unictype/ctype_blank.h: Likewise.
27083         * lib/unictype/ctype_cntrl.h: Likewise.
27084         * lib/unictype/ctype_digit.h: Likewise.
27085         * lib/unictype/ctype_graph.h: Likewise.
27086         * lib/unictype/ctype_lower.h: Likewise.
27087         * lib/unictype/ctype_print.h: Likewise.
27088         * lib/unictype/ctype_punct.h: Likewise.
27089         * lib/unictype/ctype_space.h: Likewise.
27090         * lib/unictype/ctype_upper.h: Likewise.
27091         * lib/unictype/ctype_xdigit.h: Likewise.
27092         * lib/unictype/decdigit.h: Likewise.
27093         * lib/unictype/digit.h: Likewise.
27094         * lib/unictype/mirror.h: Likewise.
27095         * lib/unictype/numeric.h: Likewise.
27096         * lib/unictype/pr_alphabetic.h: Likewise.
27097         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27098         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27099         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27100         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27101         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27102         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27103         * lib/unictype/pr_bidi_control.h: Likewise.
27104         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27105         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27106         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27107         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27108         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27109         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27110         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27111         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27112         * lib/unictype/pr_bidi_pdf.h: Likewise.
27113         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27114         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27115         * lib/unictype/pr_combining.h: Likewise.
27116         * lib/unictype/pr_composite.h: Likewise.
27117         * lib/unictype/pr_currency_symbol.h: Likewise.
27118         * lib/unictype/pr_dash.h: Likewise.
27119         * lib/unictype/pr_decimal_digit.h: Likewise.
27120         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27121         * lib/unictype/pr_deprecated.h: Likewise.
27122         * lib/unictype/pr_diacritic.h: Likewise.
27123         * lib/unictype/pr_extender.h: Likewise.
27124         * lib/unictype/pr_format_control.h: Likewise.
27125         * lib/unictype/pr_grapheme_base.h: Likewise.
27126         * lib/unictype/pr_grapheme_extend.h: Likewise.
27127         * lib/unictype/pr_grapheme_link.h: Likewise.
27128         * lib/unictype/pr_hex_digit.h: Likewise.
27129         * lib/unictype/pr_hyphen.h: Likewise.
27130         * lib/unictype/pr_id_continue.h: Likewise.
27131         * lib/unictype/pr_id_start.h: Likewise.
27132         * lib/unictype/pr_ideographic.h: Likewise.
27133         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27134         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27135         * lib/unictype/pr_ignorable_control.h: Likewise.
27136         * lib/unictype/pr_iso_control.h: Likewise.
27137         * lib/unictype/pr_join_control.h: Likewise.
27138         * lib/unictype/pr_left_of_pair.h: Likewise.
27139         * lib/unictype/pr_line_separator.h: Likewise.
27140         * lib/unictype/pr_logical_order_exception.h: Likewise.
27141         * lib/unictype/pr_lowercase.h: Likewise.
27142         * lib/unictype/pr_math.h: Likewise.
27143         * lib/unictype/pr_non_break.h: Likewise.
27144         * lib/unictype/pr_not_a_character.h: Likewise.
27145         * lib/unictype/pr_numeric.h: Likewise.
27146         * lib/unictype/pr_other_alphabetic.h: Likewise.
27147         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27148         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27149         * lib/unictype/pr_other_id_continue.h: Likewise.
27150         * lib/unictype/pr_other_id_start.h: Likewise.
27151         * lib/unictype/pr_other_lowercase.h: Likewise.
27152         * lib/unictype/pr_other_math.h: Likewise.
27153         * lib/unictype/pr_other_uppercase.h: Likewise.
27154         * lib/unictype/pr_paired_punctuation.h: Likewise.
27155         * lib/unictype/pr_paragraph_separator.h: Likewise.
27156         * lib/unictype/pr_pattern_syntax.h: Likewise.
27157         * lib/unictype/pr_pattern_white_space.h: Likewise.
27158         * lib/unictype/pr_private_use.h: Likewise.
27159         * lib/unictype/pr_punctuation.h: Likewise.
27160         * lib/unictype/pr_quotation_mark.h: Likewise.
27161         * lib/unictype/pr_radical.h: Likewise.
27162         * lib/unictype/pr_sentence_terminal.h: Likewise.
27163         * lib/unictype/pr_soft_dotted.h: Likewise.
27164         * lib/unictype/pr_space.h: Likewise.
27165         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27166         * lib/unictype/pr_titlecase.h: Likewise.
27167         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27168         * lib/unictype/pr_unified_ideograph.h: Likewise.
27169         * lib/unictype/pr_uppercase.h: Likewise.
27170         * lib/unictype/pr_variation_selector.h: Likewise.
27171         * lib/unictype/pr_white_space.h: Likewise.
27172         * lib/unictype/pr_xid_continue.h: Likewise.
27173         * lib/unictype/pr_xid_start.h: Likewise.
27174         * lib/unictype/pr_zero_width.h: Likewise.
27175         * lib/unictype/scripts.h: Likewise.
27176         * lib/unictype/scripts_byname.gperf: Likewise.
27177         * lib/unictype/sy_c_ident.h: Likewise.
27178         * lib/unictype/sy_c_whitespace.h: Likewise.
27179         * lib/unictype/sy_java_ident.h: Likewise.
27180         * lib/unictype/sy_java_whitespace.h: Likewise.
27181
27182         * lib/unictype/Makefile: New file.
27183         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27184         glibc.
27185         * lib/unictype/3level.h: New file, copied from glibc.
27186         * lib/unictype/3levelbit.h: New file.
27187
27188 2007-11-11  Bruno Haible  <bruno@clisp.org>
27189
27190         * modules/gperf: New file.
27191         * modules/iconv_open (Depends-on): Add it.
27192         (Makefile.am): Remove the GPERF definition.
27193
27194 2007-11-11  Bruno Haible  <bruno@clisp.org>
27195
27196         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27197         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27198
27199 2007-11-11  Bruno Haible  <bruno@clisp.org>
27200
27201         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27202         (usage): Remove function.
27203
27204 2007-11-11  Bruno Haible  <bruno@clisp.org>
27205
27206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27207         gl_FUNC_CEILF_LIBS.
27208         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27209         gl_FUNC_CEIL_LIBS.
27210         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27211         gl_FUNC_CEILL_LIBS.
27212         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27213         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27214         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27215
27216 2007-11-11  Bruno Haible  <bruno@clisp.org>
27217
27218         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27219         roundf were declared but do not exist on functions.
27220         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27221         roundl were declared but do not exist on functions.
27222         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27223         HAVE_FLOORL_AND_CEILL, respectively.
27224         Needed for Sun C on Solaris 10.
27225
27226 2007-11-11  Bruno Haible  <bruno@clisp.org>
27227
27228         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27229         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27230         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27231         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27232         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27233         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27234         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27235         HAVE_DECL_ROUNDF.
27236         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27237         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27239         of HAVE_DECL_ROUND*.
27240         * modules/math (Makefile.am): Update.
27241
27242 2007-11-10  Bruno Haible  <bruno@clisp.org>
27243
27244         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27245         ptrdiff_t as m4/intl.m4.
27246
27247 2007-11-10  Jim Meyering  <meyering@redhat.com>
27248
27249         Avoid link failure for the argmatch test.
27250         * tests/test-argmatch.c (usage): Define function to avoid a link
27251         failure: argmatch_die requires a usage function.
27252
27253 2007-11-09  Bruno Haible  <bruno@clisp.org>
27254
27255         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27256         * doc/functions/vsnprintf.texi: Likewise.
27257         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27258         with a size argument < 2.
27259
27260 2007-11-09  Bruno Haible  <bruno@clisp.org>
27261
27262         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27263         buffer. Fixes an inefficiency introduced on 2007-11-03.
27264
27265 2007-11-09  Bruno Haible  <bruno@clisp.org>
27266
27267         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27268         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27269
27270 2007-11-08  Jim Meyering  <meyering@redhat.com>
27271
27272         Change cache variable name prefix "jm_" to "gl_" everywhere.
27273         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27274         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27275         * m4/uptime.m4: s/gl_/jm_/
27276
27277 2007-11-07  Bruno Haible  <bruno@clisp.org>
27278
27279         Update to GNU gettext 0.17.
27280         * m4/intl.m4: Update to GNU gettext 0.17.
27281         * m4/po.m4: Likewise.
27282         * modules/gettext (Files): Remove m4/ulonglong.m4.
27283         (configure.ac): Require gettext infrastructure from version 0.17.
27284
27285 2007-11-06  Bruno Haible  <bruno@clisp.org>
27286
27287         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27288         symbolic values are not defined in a public header.
27289         * lib/freadable.c (freadable) [QNX]: Likewise.
27290         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27291         * lib/freading.c (freading) [QNX]: Likewise.
27292         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27293         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27294         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27295         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27296         Reported by Alain Magloire.
27297
27298         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27299
27300 2007-11-05  Bruno Haible  <bruno@clisp.org>
27301
27302         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27303         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27304         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27305         Reported by Eric Blake.
27306
27307 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27308             Bruno Haible  <bruno@clisp.org>
27309
27310         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27311         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27312         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27313         (malloc): Undefine also before including <stdlib.h>.
27314         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27315         Needed on OSF/1 4.0.
27316
27317 2007-11-05  Jim Meyering  <meyering@redhat.com>
27318
27319         git-version-gen: sync from coreutils.
27320         * build-aux/git-version-gen: Add comments.
27321         Change the first '-' to '.' in the snapshot version string,
27322         e.g., 6.9-377-08144 -> 6.9.377-08144
27323         Remove first parameter.
27324         Don't declare a version "-dirty" merely because a time
27325         stamp has changed.
27326
27327 2007-11-04  Bruno Haible  <bruno@clisp.org>
27328
27329         * lib/lock.h: Protect all macro definitions containing an 'if'
27330         statement through a "do { ... } while (0)".
27331         * lib/tls.h: Likewise.
27332
27333 2007-11-04  Bruno Haible  <bruno@clisp.org>
27334
27335         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27336
27337 2007-11-04  Bruno Haible  <bruno@clisp.org>
27338
27339         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27340         * modules/fprintf-posix (Depends-on): Add nocrash.
27341         * modules/snprintf-posix (Depends-on): Likewise.
27342         * modules/sprintf-posix (Depends-on): Likewise.
27343         * modules/vasnprintf-posix (Depends-on): Likewise.
27344         * modules/vasprintf-posix (Depends-on): Likewise.
27345         * modules/vfprintf-posix (Depends-on): Likewise.
27346         * modules/vsnprintf-posix (Depends-on): Likewise.
27347         * modules/vsprintf-posix (Depends-on): Likewise.
27348         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27349         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27350         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27351         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27352         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27353         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27354         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27355
27356 2007-11-04  Bruno Haible  <bruno@clisp.org>
27357
27358         * modules/nocrash: New file.
27359         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27360         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27361
27362 2007-11-04  Bruno Haible  <bruno@clisp.org>
27363
27364         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27365         precision handling.
27366         * tests/test-vasprintf-posix.c (test_function): Likewise.
27367         * tests/test-snprintf-posix.h (test_function): Likewise.
27368         * tests/test-sprintf-posix.h (test_function): Likewise.
27369
27370         Fix *printf behaviour for large precisions on mingw and BeOS.
27371         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27372         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27373         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27374         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27375         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27376         gl_PRINTF_PRECISION and test its result. Invoke
27377         gl_PREREQ_VASNPRINTF_PRECISION.
27378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27385         * doc/functions/fprintf.texi: Update.
27386         * doc/functions/printf.texi: Update.
27387         * doc/functions/snprintf.texi: Update.
27388         * doc/functions/sprintf.texi: Update.
27389         * doc/functions/vfprintf.texi: Update.
27390         * doc/functions/vprintf.texi: Update.
27391         * doc/functions/vsnprintf.texi: Update.
27392         * doc/functions/vsprintf.texi: Update.
27393
27394 2007-11-04  Bruno Haible  <bruno@clisp.org>
27395
27396         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27397
27398 2007-11-04  Bruno Haible  <bruno@clisp.org>
27399
27400         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27401         Reported by Sylvain Beucler <beuc@gnu.org>.
27402
27403 2007-11-03  Bruno Haible  <bruno@clisp.org>
27404
27405         * tests/test-fprintf-posix2.sh: New file.
27406         * tests/test-fprintf-posix2.c: New file.
27407         * modules/fprintf-posix-tests (Files): Add them.
27408         (TESTS): Add test-fprintf-posix2.sh.
27409         (configure.ac): Check for getrlimit and setrlimit.
27410         (check_PROGRAMS): Add test-fprintf-posix2.
27411
27412         * tests/test-printf-posix2.sh: New file.
27413         * tests/test-printf-posix2.c: New file.
27414         * modules/printf-posix-tests (Files): Add them.
27415         (TESTS): Add test-printf-posix2.sh.
27416         (configure.ac): Check for getrlimit and setrlimit.
27417         (check_PROGRAMS): Add test-printf-posix2.
27418
27419         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27420         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27421         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27422         (decode_double): New function, copied from decode_long_double.
27423         (scale10_round_decimal_decoded): New function, extracted from
27424         scale10_round_decimal_long_double.
27425         (scale10_round_decimal_long_double): Use it.
27426         (scale10_round_decimal_double): New function.
27427         (floorlog10): New function.
27428         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27430         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27432         gl_PRINTF_ENOMEM and test its result. Invoke
27433         gl_PREREQ_VASNPRINTF_ENOMEM.
27434         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27435         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27436         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27437         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27438         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27441         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27442         * modules/snprintf-posix (Depends-on): Likewise.
27443         * modules/sprintf-posix (Depends-on): Likewise.
27444         * modules/vasnprintf-posix (Depends-on): Likewise.
27445         * modules/vasprintf-posix (Depends-on): Likewise.
27446         * modules/vfprintf-posix (Depends-on): Likewise.
27447         * modules/vsnprintf-posix (Depends-on): Likewise.
27448         * modules/vsprintf-posix (Depends-on): Likewise.
27449         * doc/functions/fprintf.texi: Update.
27450         * doc/functions/printf.texi: Update.
27451         * doc/functions/snprintf.texi: Update.
27452         * doc/functions/sprintf.texi: Update.
27453         * doc/functions/vfprintf.texi: Update.
27454         * doc/functions/vprintf.texi: Update.
27455         * doc/functions/vsnprintf.texi: Update.
27456         * doc/functions/vsprintf.texi: Update.
27457
27458 2007-11-03  Bruno Haible  <bruno@clisp.org>
27459
27460         * modules/frexp-nolibm-tests: New file.
27461
27462         * modules/frexp-nolibm: New file.
27463         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27464
27465 2007-11-03  Bruno Haible  <bruno@clisp.org>
27466
27467         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27468         value is C99 compliant.
27469         Needed for OSF/1 5.1.
27470
27471 2007-11-03  Bruno Haible  <bruno@clisp.org>
27472
27473         Fix out-of-memory handling of vasnprintf.
27474         * lib/printf-parse.c: Include <errno.h>.
27475         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27476         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27477         is already set.
27478
27479 2007-11-02  Eric Blake  <ebb9@byu.net>
27480
27481         Fix tests on cygwin.
27482         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27483
27484 2007-11-01  Bruno Haible  <bruno@clisp.org>
27485
27486         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27487         warning.
27488         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27489         needed for POSIX compatibility.
27490
27491 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27492
27493         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27494         for compatibility with GNU.
27495
27496 2007-11-01  Bruno Haible  <bruno@clisp.org>
27497
27498         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27499         (putenv): Renamed from rpl_putenv. Change argument type from
27500         'const char *' to 'char *'.
27501         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27502         of defining putenv in config.h, just set REPLACE_PUTENV.
27503         * modules/putenv (Depends-on): Add stdlib.
27504         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27505         (Include): Use <stdlib.h>.
27506         * lib/stdlib.in.h (putenv): New declaration.
27507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27508         REPLACE_PUTENV.
27509         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27510         REPLACE_PUTENV.
27511         Needed for MacOS X 10.5.0.
27512         Reported by Peter O'Gorman <peter@pogma.com>.
27513
27514 2007-11-01  Jim Meyering  <meyering@redhat.com>
27515
27516         Treat an empty date string exactly like "0".
27517         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27518         if the remaining date string (to be parsed) is empty, use "0".
27519         Reported by Mischa Molhoek and discussed in this thread:
27520         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27521
27522 2007-10-31  Bruno Haible  <bruno@clisp.org>
27523
27524         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27525         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27526         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27527         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27528         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27529         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27530
27531 2007-10-31  Bruno Haible  <bruno@clisp.org>
27532
27533         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27534         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27535         (AC_TYPE_LONG_LONG_INT): Use it.
27536         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27537         it as well.
27538         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27539         to m4/longlong.m4.
27540         * modules/stdint (Files): Remove m4/ulonglong.m4.
27541         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27542         m4/ulonglong.m4.
27543         * modules/strtoumax (Files): Likewise.
27544
27545 2007-10-30  Bruno Haible  <bruno@clisp.org>
27546
27547         * modules/xvasprintf-posix: New file.
27548         Suggested by Eric Blake.
27549
27550 2007-10-30  Bruno Haible  <bruno@clisp.org>
27551
27552         * modules/xprintf-posix-tests: New file.
27553         * tests/test-xprintf-posix.sh: New file.
27554         * tests/test-xprintf-posix.c: New file.
27555         * tests/test-xfprintf-posix.c: New file.
27556
27557         * modules/xprintf-posix: New file.
27558
27559 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27560
27561         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27562         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27563         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27564
27565 2007-10-29  Bruno Haible  <bruno@clisp.org>
27566
27567         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27568         contain the special marker '_cv_'.
27569         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27570         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27571         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27572         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27573         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27574         Reported by Ralf Wildenhues.
27575
27576 2007-10-29  Bruno Haible  <bruno@clisp.org>
27577
27578         * gnulib-tool (func_import): When --lgpl is not specified, set
27579         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27580         GPLv3.
27581         Reported by Simon Josefsson.
27582
27583 2007-10-28  Bruno Haible  <bruno@clisp.org>
27584
27585         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27586         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27587         HAVE_DECL_ISFINITE.
27588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27589         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27590         HAVE_DECL_ISFINITE.
27591
27592 2007-10-28  Bruno Haible  <bruno@clisp.org>
27593
27594         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27595         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27596
27597 2007-10-28  Bruno Haible  <bruno@clisp.org>
27598
27599         Fix link errors with Sun C 5.0 on Solaris 10.
27600         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27601         function is declared but not present in the compiler's libm.
27602         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27603         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27604         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27605         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27606         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27607         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27608         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27610         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27611         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27612         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27613         HAVE_DECL_FLOORL.
27614
27615 2007-10-28  Bruno Haible  <bruno@clisp.org>
27616
27617         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27618         gl_FUNC_FLOORL. Cache the result.
27619         (gl_FUNC_FLOORL): Use it.
27620         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27621         gl_FUNC_CEILL. Cache the result.
27622         (gl_FUNC_CEILL): Use it.
27623
27624         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27625         gl_FUNC_FLOOR. Cache the result.
27626         (gl_FUNC_FLOOR): Use it.
27627         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27628         gl_FUNC_CEIL. Cache the result.
27629         (gl_FUNC_CEIL): Use it.
27630
27631         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27632         gl_FUNC_FLOORF. Cache the result.
27633         (gl_FUNC_FLOORF): Use it.
27634         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27635         gl_FUNC_CEILF. Cache the result.
27636         (gl_FUNC_CEILF): Use it.
27637
27638 2007-10-28  Bruno Haible  <bruno@clisp.org>
27639
27640         * gnulib-tool: Allow specifying the LGPL version number through
27641         --lgpl=2 or --lgpl=3.
27642         (func_usage): Document --lgpl with argument.
27643         Handle --lgpl=... arguments.
27644         (func_import): Recognize also gl_LGPL calls with an argument. When
27645         --lgpl=2 is used and the module's license is just LGPL, report an
27646         error. Set sed_transform_lib_file according to the lgpl variable. In
27647         the generated files, use --lgpl or gl_LGPL invocations with argument,
27648         if necessary.
27649         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27650         an LGPv2+ license.
27651         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27652         gl_LGPL macro.
27653
27654 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27655             Bruno Haible  <bruno@clisp.org>
27656
27657         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27658         (u16_uctomb_aux): Likewise.
27659         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27660         !HAVE_INLINE.
27661         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27662
27663 2007-10-28  Bruno Haible  <bruno@clisp.org>
27664
27665         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27666         Invoke AM_GETTEXT_OPTION if it exists.
27667         * modules/vasprintf: Likewise.
27668         * modules/verror: Likewise.
27669         * modules/xprintf: Likewise.
27670         * modules/xvasprintf: Likewise.
27671
27672 2007-10-27  Ben Pfaff  <blp@gnu.org>
27673
27674         * lib/math.in.h: Define isfinite macro and prototypes for
27675         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27676         implementations.
27677         * m4/math_h.m4: New substitutions for isfinite module.
27678         * lib/isfinite.c: New file.
27679         * m4/isfinite.m4: New file.
27680         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27681         * modules/isfinite: New file.
27682         * modules/isfinite-tests: New file.
27683         * tests/tests-isfinite.c: New file.
27684         * doc/functions/isfinite.texi: Mention isfinite module.
27685         * MODULES.html.sh: Mention new module.
27686
27687 2007-10-27  Ben Pfaff  <blp@gnu.org>
27688
27689         Ralf Wildenhues reported that Tru64 4.0D declares the round
27690         functions but does not have definitions.
27691         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27692         cannot be found in any library, set the output variable to
27693         "missing" instead of "".
27694         * m4/round.m4: Also use our substitute if we cannot find round in
27695         any library, even if it is declared.
27696         * m4/roundf.m4: Likewise for roundf.
27697         * m4/roundl.m4: Likewise for roundl.
27698         * lib/math.in.h: Undefine roundf, round, roundl before defining
27699         their replacements, to allow for hypothetical systems where these
27700         may be defined as macros but not available in libraries.
27701
27702 2007-10-27  Bruno Haible  <bruno@clisp.org>
27703
27704         * doc/gnulib.texi: Invoke @firstparagraphindent.
27705         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27706         changes in gnulib.
27707         (Source changes): New section.
27708
27709 2007-10-26  Bruno Haible  <bruno@clisp.org>
27710
27711         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27712         borrowed from autoconf.
27713
27714 2007-10-26  Bruno Haible  <bruno@clisp.org>
27715
27716         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27717         strerror returned the empty string. Needed on HP-UX 11.00.
27718
27719 2007-10-24  Micah Cowan  <micah@cowan.name>
27720
27721         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
27722         * build-aux/bootstrap: Remove support for now-unnecessary option,
27723         --cvs-user, and envvars CVS_USER, CVS_RSH.
27724
27725 2007-10-24  Jim Meyering  <meyering@redhat.com>
27726
27727         Avoid diagnostics from sha1sum when there is no cached checksum.
27728         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27729         if the po.s1 file hasn't been created yet.
27730
27731         * build-aux/bootstrap: Sync from coreutils:
27732         2007-10-24  Jim Meyering  <meyering@redhat.com>
27733         Get gnulib from the git repository, not from an obsolete cvs one.
27734         * build-aux/bootstrap: Suggestion from Micah Cowan.
27735         2007-10-04  Jim Meyering  <jim@meyering.net>
27736         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27737         (update_po_files): Work also when there are no .po files in po/.
27738
27739 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27740
27741         * README: Append ".git" to git and cg examples.
27742         Problem reported by Benoit Sigoure.
27743
27744 2007-10-23  Micah Cowan  <micah@cowan.name>
27745
27746         * users.txt: Add wget.
27747
27748 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27749
27750         Fix linking of some unistdio tests on FreeBSD.
27751         * modules/unistdio/u16-vsnprintf-tests
27752         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27753         * modules/unistdio/u16-vsprintf-tests
27754         (test_u16_vsnprintf1_LDADD): Likewise.
27755         * modules/unistdio/u32-vsnprintf-tests
27756         (test_u32_vsnprintf1_LDADD): Likewise.
27757         * modules/unistdio/u32-vsprintf-tests
27758         (test_u32_vsprintf1_LDADD): Likewise.
27759         * modules/unistdio/u8-vsnprintf-tests
27760         (test_u8_vsnprintf1_LDADD): Likewise.
27761         * modules/unistdio/u8-vsprintf-tests
27762         (test_u8_vsprintf1_LDADD): Likewise.
27763         * modules/unistdio/ulc-vsnprintf-tests
27764         (test_ulc_vsnprintf1_LDADD): Likewise.
27765         * modules/unistdio/ulc-vsprintf-tests
27766         (test_ulc_vsprintf1_LDADD): Likewise.
27767
27768         Fix linking of some uniconv tests on FreeBSD.
27769         * modules/uniconv/u16-conv-from-enc-tests
27770         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
27771         * modules/uniconv/u16-conv-to-enc-tests
27772         (test_u16_conv_to_enc_LDADD): Likewise.
27773         * modules/uniconv/u16-strconv-from-enc-tests
27774         (test_u16_strconv_from_enc_LDADD): Likewise.
27775         * modules/uniconv/u16-strconv-to-enc-tests
27776         (test_u16_strconv_to_enc_LDADD): Likewise.
27777         * modules/uniconv/u32-conv-from-enc-tests
27778         (test_u32_conv_from_enc_LDADD): Likewise.
27779         * modules/uniconv/u32-conv-to-enc-tests
27780         (test_u32_conv_to_enc_LDADD): Likewise.
27781         * modules/uniconv/u32-strconv-from-enc-tests
27782         (test_u32_strconv_from_enc_LDADD): Likewise.
27783         * modules/uniconv/u32-strconv-to-enc-tests
27784         (test_u32_strconv_to_enc_LDADD): Likewise.
27785         * modules/uniconv/u8-conv-from-enc-tests
27786         (test_u8_conv_from_enc_LDADD): Likewise.
27787         * modules/uniconv/u8-conv-to-enc-tests
27788         (test_u8_conv_to_enc_LDADD): Likewise.
27789         * modules/uniconv/u8-strconv-from-enc-tests
27790         (test_u8_strconv_from_enc_LDADD): Likewise.
27791         * modules/uniconv/u8-strconv-to-enc-tests
27792         (test_u8_strconv_to_enc_LDADD): Likewise.
27793
27794 2007-10-22  Bruno Haible  <bruno@clisp.org>
27795
27796         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
27797         size.
27798
27799 2007-10-22  Eric Blake  <ebb9@byu.net>
27800
27801         Tweak x*printf documentation.
27802         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
27803         variable name and comments.
27804         Suggested by Bruno Haible.
27805
27806 2007-10-22  Bruno Haible  <bruno@clisp.org>
27807
27808         * lib/acl.c (copy_acl): Fix file name in comment.
27809
27810 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27811
27812         Fix Tru64 problem with stdbool.h.
27813         * lib/stdbool.in.h (false, true):
27814         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
27815         Don't declare as an enum in this situation; it runs afoul of Tru64.
27816         Problem reported by Steven M. Schweda in
27817         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
27818
27819 2007-10-22  Eric Blake  <ebb9@byu.net>
27820
27821         Also wrap vf?printf.
27822         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
27823         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
27824         (xvprintf, xvfprintf): New functions.
27825
27826 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27827
27828         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
27829         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
27830
27831         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
27832         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
27833
27834 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27835
27836         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
27837         by Bruno Haible.
27838
27839 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27840
27841         * lib/getloadavg.c
27842         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
27843         Undef `sys' after including sys/table.h, for Tru64 4.0D.
27844
27845         * tests/test-i-ring.c: Work for C89.
27846
27847 2007-10-22  Bruno Haible  <bruno@clisp.org>
27848
27849         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
27850         -1u, in preprocessor expression, so that we don't test for the bug
27851         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
27852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
27853
27854 2007-10-22  Eric Blake  <ebb9@byu.net>
27855
27856         * tests/test-yesno.sh: Silence stderr during test.
27857
27858 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27859
27860         * modules/crypto/gc-camellia: New file.
27861
27862         * m4/gc-camellia.m4: New file.
27863
27864         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
27865
27866         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
27867
27868 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27869
27870         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
27871         --help to stdout.  Reported by sms@antinode.org (Steven
27872         M. Schweda).
27873
27874 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27875
27876         * users.txt: Fix link to libksba.
27877
27878 2007-10-21  Ben Pfaff  <blp@gnu.org>
27879
27880         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
27881         round.c roundf implementation that depends on floorf and ceilf to
27882         be tested unconditionally.
27883
27884 2007-10-21  Ben Pfaff  <blp@gnu.org>
27885
27886         * m4/check-libm-func.m4: Removed.
27887         * m4/check-math-lib.m4: New file.
27888         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
27889         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
27890         definition and lack of AC_LIBOBJ([roundf]).
27891         * m4/roundl.m4: Ditto, and similarly for roundl.
27892         * modules/round: Reference new m4 file.
27893         * modules/roundf: Ditto.
27894         * modules/roundl: Ditto.
27895         * tests/test-round2.c (main): Use ROUND instead of round.
27896         Bug report from Bruno Haible.
27897
27898 2007-10-21  Bruno Haible  <bruno@clisp.org>
27899
27900         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
27901         context.
27902
27903 2007-10-21  Bruno Haible  <bruno@clisp.org>
27904
27905         * tests/test-wcwidth.c (main): Allow negative result for some control
27906         characters.
27907
27908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
27909         Needed on OSF/1 5.1.
27910
27911 2007-10-21  Bruno Haible  <bruno@clisp.org>
27912
27913         * tests/test-floorf1.c: Include isnanf.h.
27914         (main): Use isnanf() instead of isnan().
27915         * tests/test-ceilf1.c: Include isnanf.h.
27916         (main): Use isnanf() instead of isnan().
27917         * tests/test-truncf1.c: Include isnanf.h.
27918         (main): Use isnanf() instead of isnan().
27919         * tests/test-roundf1.c: Include isnanf.h.
27920         (main): Use isnanf() instead of isnan().
27921
27922 2007-10-21  Eric Blake  <ebb9@byu.net>
27923
27924         * users.txt: Update URL for m4.
27925
27926 2007-10-21  Bruno Haible  <bruno@clisp.org>
27927
27928         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
27929
27930 2007-10-21  Bruno Haible  <bruno@clisp.org>
27931
27932         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
27933         Git's management files if the CVS files are not present.
27934
27935 2007-10-20  Bruno Haible  <bruno@clisp.org>
27936
27937         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
27938         gcc-3.4.x.
27939
27940 2007-10-20  Ben Pfaff  <blp@gnu.org>
27941
27942         * lib/math.in.h: Declare round, roundf, roundl if we are providing
27943         implementations.
27944         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
27945         * lib/round.c: New file.
27946         * lib/roundf.c: New file.
27947         * lib/roundl.c: New file.
27948         * m4/round.m4: New file.
27949         * m4/roundf.m4: New file.
27950         * m4/roundl.m4: New file.
27951         * m4/check-libm-func-m4: New file.
27952         * modules/math: Replace round, roundf, roundl related @VARS@ in
27953         math.in.h.
27954         * modules/round: New file.
27955         * modules/round-tests: New file.
27956         * modules/roundf: New file.
27957         * modules/roundf-tests: New file.
27958         * modules/roundl: New file.
27959         * modules/roundl-tests: New file.
27960         * tests/test-round1.c: New file.
27961         * tests/test-round2.c: New file.
27962         * tests/test-roundf1.c: New file.
27963         * tests/test-roundf2.c: New file.
27964         * tests/test-roundl.c: New file.
27965         * doc/functions/round.texi: Mention round module.
27966         * doc/functions/roundf.texi: Mention roundf module.
27967         * doc/functions/roundl.texi: Mention roundl module.
27968         * MODULES.html.sh: Mention new modules.
27969         Thanks to Bruno Haible for suggestions.
27970
27971 2007-10-20  Jim Meyering  <meyering@redhat.com>
27972
27973         * lib/xprintf.c: Include <config.h> unconditionally.
27974
27975         Change xprintf's license to GPL.
27976         * modules/xprintf (License): s/LGPL/GPL/, since this module
27977         depends on modules (exit and exitfail) which are GPL.
27978         Suggestion from Bruno Haible.
27979
27980         xprintf fixes.
27981         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
27982         Use a clearer diagnostic.
27983         Patch from Bruno Haible.
27984
27985 2007-10-20  Bruno Haible  <bruno@clisp.org>
27986
27987         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
27988         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
27989         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27990
27991 2007-10-20  Bruno Haible  <bruno@clisp.org>
27992
27993         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
27994         precision in the comparison result > x - 1 or similar.
27995         * tests/test-ceilf2.c (correct_result_p): Likewise.
27996         * tests/test-truncf2.c (correct_result_p): Likewise.
27997         * tests/test-trunc2.c (correct_result_p): Likewise.
27998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27999
28000 2007-10-20  Bruno Haible  <bruno@clisp.org>
28001
28002         * modules/ceil: New file.
28003         * m4/ceil.m4: New file.
28004         * doc/functions/ceil.texi: Mention the 'ceil' module.
28005
28006 2007-10-20  Bruno Haible  <bruno@clisp.org>
28007
28008         * modules/floor: New file.
28009         * m4/floor.m4: New file.
28010         * doc/functions/floor.texi: Mention the 'floor' module.
28011
28012 2007-10-20  Bruno Haible  <bruno@clisp.org>
28013
28014         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28015         of %a.
28016         * modules/floorf-tests (Depends-on): Likewise.
28017         * modules/truncf-tests (Depends-on): Likewise.
28018         * modules/trunc-tests (Depends-on): Likewise.
28019         Reported by Ben Pfaff.
28020
28021 2007-10-19  Jim Meyering  <meyering@redhat.com>
28022
28023         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28024         Don't bother testing specific errno values.  Just test ferror.
28025
28026         New module: xprintf
28027         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28028
28029 2007-10-19  Bruno Haible  <bruno@clisp.org>
28030
28031         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28032         syntax.
28033         * modules/javaexec (Makefile.am): Likewise.
28034         * modules/relocatable-prog (Makefile.am): Likewise.
28035         Suggested by Jim Meyering.
28036
28037 2007-10-18  Bruno Haible  <bruno@clisp.org>
28038
28039         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28040         Reported by Jim Meyering.
28041
28042 2007-10-18  Eric Blake  <ebb9@byu.net>
28043
28044         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28045
28046 2007-10-18  Bruno Haible  <bruno@clisp.org>
28047
28048         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28049         the format string into writable memory. Needed in Fortify conditions.
28050
28051 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28052             Bruno Haible  <bruno@clisp.org>
28053
28054         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28055         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28056         * modules/trim (Depends-on): Add mbchar.
28057         (configure.ac): Add gl_FUNC_MBRTOWC.
28058         (Makefile.am): Augment lib_SOURCES.
28059
28060 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28061
28062         Modify glob.c to use fstatat and dirfd, to simplify it.
28063         Suggested by Eric Blake.
28064         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28065         Don't include <stdbool.h>; not used.
28066         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28067         (link_exists_p): Simplify implementation, since we can now assume
28068         dirfd and fstatat.
28069         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28070
28071 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28072
28073         * gnulib-tool (func_get_dependencies): Fix sed script to
28074         match only tests.
28075
28076 2007-10-17  Bruno Haible  <bruno@clisp.org>
28077
28078         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28079         allow locale names without encoding suffix.
28080         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28081         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28082
28083 2007-10-16  Bruno Haible  <bruno@clisp.org>
28084
28085         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28086         * lib/getgroups.c (getgroups): Likewise.
28087         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28088
28089 2007-10-16  Bruno Haible  <bruno@clisp.org>
28090
28091         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28092         * modules/malloc-posix (License): Likewise.
28093         * modules/realloc-posix (License): Likewise.
28094         * modules/calloc-posix (License): Likewise.
28095         * modules/intprops (License): Change from GPL to LGPL, with
28096         Paul Eggert's approval.
28097
28098 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28099
28100         Merge glibc changes into lib/glob.c.
28101
28102         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28103         2007-10-15 04:59:03 UTC.  Here are the changes:
28104
28105         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28106
28107         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28108
28109         * lib/glob.c: Add some branch prediction throughout.
28110
28111         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28112
28113         [BZ #5103]
28114         * lib/glob.c (glob): Recognize patterns starting \/.
28115
28116         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28117
28118         [BZ #3996]
28119         * lib/glob.c (attribute_hidden): Define if not defined.
28120         (glob): Unescape dirname, filename or username when needed and not
28121         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28122         is NULL.  Handle unescaped [ in pattern without closing ].
28123         Don't pass GLOB_CHECK down to recursive glob for directories.
28124         (__glob_pattern_type): New function.
28125         (__glob_pattern_p): Implement using __glob_pattern_type.
28126         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28127         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28128         Remove unreachable code.
28129
28130         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28131
28132         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28133         explain why there are no leaks.
28134
28135         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28136
28137         [BZ #3253]
28138         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28139         time, rather allocate increasingly bigger arrays of pointers, if
28140         possible with alloca, if too large with malloc.
28141
28142 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28143
28144         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28145         Problem reported by H.Merijn Brand in
28146         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28147         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28148         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28149
28150 2007-10-15  Bruno Haible  <bruno@clisp.org>
28151
28152         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28153         with explicit rpl_ prefix.
28154         * lib/fopen.c (fopen): Likewise.
28155         * lib/freopen.c (freopen): Likewise.
28156         * lib/iconv.c (iconv): Likewise.
28157         * lib/iconv_close.c (iconv_close): Likewise.
28158
28159 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28160
28161         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28162
28163 2007-10-15  Bruno Haible  <bruno@clisp.org>
28164
28165         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28166         <stddef.h> instead of <stdlib.h> since we only need NULL.
28167         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28168
28169 2007-10-15  Bruno Haible  <bruno@clisp.org>
28170
28171         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28172         Replace paragraph talking about LIBOBJS.
28173         Reported by Colin Watson <cjwatson@debian.org>.
28174
28175 2007-10-15  Bruno Haible  <bruno@clisp.org>
28176
28177         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28178         <stdlib.h> before using NULL.
28179
28180 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28181
28182         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28183         Reported by Albert Chin <china@thewrittenword.com>.
28184
28185 2007-10-14  Bruno Haible  <bruno@clisp.org>
28186
28187         * modules/iconv_open-utf-tests: New file.
28188         * tests/test-iconv-utf.c: New file.
28189
28190         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28191         * modules/iconv_open-utf: New file.
28192         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28193         (iconv, iconv_close): New declarations.
28194         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28195         be defined.
28196         (iconv_open): Add special handling of conversion between UTF-8 and
28197         UTF-{16,32}{BE,LE}.
28198         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28199         * lib/iconv_close.c: New file.
28200         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28201         gl_FUNC_ICONV_OPEN.
28202         (gl_FUNC_ICONV_OPEN): Use it.
28203         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28204         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28205         and REPLACE_ICONV_UTF.
28206         * modules/iconv_open (Depends-on): Add c-strcase.
28207         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28208         ICONV_CONST.
28209         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28210
28211 2007-10-13  Albert Chin  <china@thewrittenword.com>
28212             Bruno Haible  <bruno@clisp.org>
28213
28214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28215         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28216
28217 2007-10-13  Bruno Haible  <bruno@clisp.org>
28218
28219         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28220         defined, use the ISO C99 inline semantics.
28221         * lib/argp.h (ARGP_EI): Likewise.
28222
28223 2007-10-13  Bruno Haible  <bruno@clisp.org>
28224
28225         Handle 'inline' change in gcc 4.3.0.
28226         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28227         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28228         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28229         argp_fmtstream_point): Disable 'extern' declaration if the function
28230         definition is going to be provided inline.
28231         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28232         semantics, not the ISO C99 inline semantics.
28233         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28234         'extern' declaration if the function definition is going to be provided
28235         inline.
28236         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28237         the GNU C inline semantics, not the ISO C99 inline semantics. With
28238         GCC 4.2, avoid a warning.
28239
28240 2007-10-13  Bruno Haible  <bruno@clisp.org>
28241
28242         * lib/freading.h (freading): Enable the use of __freading for
28243         glibc >= 2.7.
28244         * lib/freading.c (freading): Likewise.
28245
28246 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28247
28248         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28249         "warning: C99 inline functions are not supported; using GNU89".
28250
28251 2007-10-12  Bruno Haible  <bruno@clisp.org>
28252
28253         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28254         of 2.
28255         * tests/test-ceilf2.c: New file.
28256         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28257
28258         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28259         * modules/ceilf-tests: Update.
28260
28261 2007-10-12  Bruno Haible  <bruno@clisp.org>
28262
28263         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28264         of 2.
28265         * tests/test-floorf2.c: New file.
28266         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28267
28268         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28269         * modules/floorf-tests: Update.
28270
28271 2007-10-12  Bruno Haible  <bruno@clisp.org>
28272
28273         * tests/test-trunc2.c: New file.
28274         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28275
28276         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28277         * modules/trunc-tests: Update.
28278
28279 2007-10-12  Bruno Haible  <bruno@clisp.org>
28280
28281         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28282         of 2.
28283         * tests/test-truncf2.c: New file.
28284         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28285
28286         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28287         * modules/truncf-tests: Update.
28288
28289 2007-10-11  Eric Blake  <ebb9@byu.net>
28290
28291         Don't claim strerror is broken on Interix.
28292         * doc/functions/strerror.texi (strerror): Known broken systems are
28293         now Solaris 8, and not Interix.
28294         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28295         Interix on cross-compile.
28296         Reported by Martin Koeppe in
28297         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28298
28299 2007-10-11  Bruno Haible  <bruno@clisp.org>
28300
28301         * modules/i-ring-tests: New file.
28302         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28303         instead of assert.
28304
28305 2007-10-11  Bruno Haible  <bruno@clisp.org>
28306
28307         * modules/filenamecat-tests: New file.
28308         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28309         * lib/filenamecat.c: Remove test code.
28310
28311 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28312
28313         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28314
28315         * lib/strerror.c: Include <string.h> always, to test interface,
28316         and to remove the need for the dummy.
28317         Include intprops.h to compute width instead of doing it ourselves
28318         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28319         (strerror): Define it to return NULL if there's no system strerror.
28320         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28321         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28322         ancient pre-strerror Unix systems well any more.  Saying "unknown
28323         system error" is enough.
28324         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28325         simpler strerror.c implementation.
28326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28327         Simplify the tests to reflect the simpler strerror implementation.
28328         * modules/strerror (Depends-on): Add intprops.
28329
28330 2007-10-09  Eric Blake  <ebb9@byu.net>
28331
28332         Silence test-fpending.
28333         * modules/fpending-tests (Files): Add wrapper script.
28334         * tests/test-fpending.sh: New file.
28335
28336 2007-10-09  Bruno Haible  <bruno@clisp.org>
28337
28338         * MODULES.html.sh (func_module): Don't create a hyperlink for
28339         function names like 'printf_frexp'.
28340         (Misc): Add crc, memxor.
28341         (Characteristics of floating types): New section.
28342         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28343         isnanf-nolibm, signbit, trunc, truncf, truncl.
28344         (Enhancements for ISO C 99 functions): New subsection Input/output.
28345         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28346         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28347         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28348         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28349         (Enhancements for POSIX:2001 functions): Add chdir-long.
28350         (File system functions): Add areadlink, chdir-safer, read-file.
28351         Remove cycle-check.
28352         (File system as inode set): New section.
28353         (Date and time): Add gethrxtime.
28354         (Multithreading): Add openmp.
28355         (Internationalization functions): Add localename.
28356         (Unicode string functions): Add unistr/u*-mbsnlen.
28357         (Support for maintaining and releasing projects): Add git-version-gen.
28358         (Lone files): Remove directories.
28359
28360 2007-10-08  Ben Pfaff  <blp@gnu.org>
28361
28362         * lib/xmalloca.h: Fix typo in comment.
28363
28364 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28365
28366         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28367         when avoiding problems with integer overflow.  Use a portable test
28368         instead.
28369
28370 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28371
28372         * modules/dummy (License): Change to LGPLv2+.
28373         * modules/float (License): Likewise
28374         * modules/realloc (License): Likewise
28375         * modules/stdlib (License): Likewise
28376
28377 2007-10-07  Bruno Haible  <bruno@clisp.org>
28378
28379         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28380         * floor.c (TWO_MANT_DIG): Likewise.
28381         * ceil.c (TWO_MANT_DIG): Likewise.
28382         Reported by Ben Pfaff.
28383
28384 2007-10-07  Bruno Haible  <bruno@clisp.org>
28385
28386         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28387         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28388         * lib/frexp.c (FUNC): Likewise.
28389         * lib/printf-frexp.h (printf_frexp): Likewise.
28390         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28391         * lib/printf-frexp.c (FUNC): Likewise.
28392         Suggested by Jim Meyering.
28393
28394 2007-10-07  Jim Meyering  <meyering@redhat.com>
28395
28396         Make xnanosleep's integer overflow test more robust.
28397         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28398         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28399
28400 2007-10-07  Bruno Haible  <bruno@clisp.org>
28401
28402         * NEWS: Mention the license change.
28403
28404         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28405         abbreviations in the modules files.
28406
28407         Change copyright notice from GPLv2+ to GPLv3+.
28408         * README: Change copyright notice.
28409         * MODULES.html.sh: Likewise.
28410         * build-aux/bootstrap.conf: Likewise.
28411         * build-aux/config.libpath: Likewise.
28412         * build-aux/csharpcomp.sh.in: Likewise.
28413         * build-aux/csharpexec.sh.in: Likewise.
28414         * build-aux/install-reloc: Likewise.
28415         * build-aux/javacomp.sh.in: Likewise.
28416         * build-aux/javaexec.sh.in: Likewise.
28417         * build-aux/ldd.sh.in: Likewise.
28418         * build-aux/reloc-ldflags: Likewise.
28419         * build-aux/relocatable.sh.in: Likewise.
28420         * build-aux/x-to-1.in: Likewise.
28421         * check-module: Likewise.
28422         * config/srclistvars.sh: Likewise.
28423         * gnulib-tool: Likewise.
28424         * lib/acl-internal.h: Likewise.
28425         * lib/acl.c: Likewise.
28426         * lib/acl.h: Likewise.
28427         * lib/acl_entries.c: Likewise.
28428         * lib/areadlink-with-size.c: Likewise.
28429         * lib/areadlink.c: Likewise.
28430         * lib/areadlink.h: Likewise.
28431         * lib/argmatch.c: Likewise.
28432         * lib/argmatch.h: Likewise.
28433         * lib/argp-ba.c: Likewise.
28434         * lib/argp-eexst.c: Likewise.
28435         * lib/argp-fmtstream.c: Likewise.
28436         * lib/argp-fmtstream.h: Likewise.
28437         * lib/argp-fs-xinl.c: Likewise.
28438         * lib/argp-help.c: Likewise.
28439         * lib/argp-namefrob.h: Likewise.
28440         * lib/argp-parse.c: Likewise.
28441         * lib/argp-pin.c: Likewise.
28442         * lib/argp-pv.c: Likewise.
28443         * lib/argp-pvh.c: Likewise.
28444         * lib/argp-xinl.c: Likewise.
28445         * lib/argp.h: Likewise.
28446         * lib/at-func.c: Likewise.
28447         * lib/atanl.c: Likewise.
28448         * lib/backupfile.c: Likewise.
28449         * lib/backupfile.h: Likewise.
28450         * lib/basename.c: Likewise.
28451         * lib/binary-io.h: Likewise.
28452         * lib/byteswap.in.h: Likewise.
28453         * lib/c-stack.c: Likewise.
28454         * lib/c-stack.h: Likewise.
28455         * lib/c-strcasestr.c: Likewise.
28456         * lib/c-strcasestr.h: Likewise.
28457         * lib/c-strstr.c: Likewise.
28458         * lib/c-strstr.h: Likewise.
28459         * lib/c-strtod.c: Likewise.
28460         * lib/calloc.c: Likewise.
28461         * lib/canon-host.c: Likewise.
28462         * lib/canon-host.h: Likewise.
28463         * lib/canonicalize-lgpl.c: Likewise.
28464         * lib/canonicalize.c: Likewise.
28465         * lib/canonicalize.h: Likewise.
28466         * lib/ceil.c: Likewise.
28467         * lib/ceilf.c: Likewise.
28468         * lib/ceill.c: Likewise.
28469         * lib/chdir-long.c: Likewise.
28470         * lib/chdir-long.h: Likewise.
28471         * lib/chdir-safer.c: Likewise.
28472         * lib/chdir-safer.h: Likewise.
28473         * lib/chown.c: Likewise.
28474         * lib/classpath.c: Likewise.
28475         * lib/classpath.h: Likewise.
28476         * lib/clean-temp.c: Likewise.
28477         * lib/clean-temp.h: Likewise.
28478         * lib/cloexec.c: Likewise.
28479         * lib/close-stream.c: Likewise.
28480         * lib/closein.c: Likewise.
28481         * lib/closein.h: Likewise.
28482         * lib/closeout.c: Likewise.
28483         * lib/closeout.h: Likewise.
28484         * lib/concat-filename.c: Likewise.
28485         * lib/copy-file.c: Likewise.
28486         * lib/copy-file.h: Likewise.
28487         * lib/count-one-bits.h: Likewise.
28488         * lib/crc.c: Likewise.
28489         * lib/crc.h: Likewise.
28490         * lib/creat-safer.c: Likewise.
28491         * lib/csharpcomp.c: Likewise.
28492         * lib/csharpcomp.h: Likewise.
28493         * lib/csharpexec.c: Likewise.
28494         * lib/csharpexec.h: Likewise.
28495         * lib/cycle-check.c: Likewise.
28496         * lib/cycle-check.h: Likewise.
28497         * lib/diacrit.c: Likewise.
28498         * lib/diacrit.h: Likewise.
28499         * lib/diffseq.h: Likewise.
28500         * lib/dirchownmod.c: Likewise.
28501         * lib/dirent.in.h: Likewise.
28502         * lib/dirfd.c: Likewise.
28503         * lib/dirfd.h: Likewise.
28504         * lib/dirname.c: Likewise.
28505         * lib/dirname.h: Likewise.
28506         * lib/dummy.c: Likewise.
28507         * lib/dup-safer.c: Likewise.
28508         * lib/dup2.c: Likewise.
28509         * lib/eealloc.h: Likewise.
28510         * lib/error.c: Likewise.
28511         * lib/error.h: Likewise.
28512         * lib/euidaccess.c: Likewise.
28513         * lib/exclude.c: Likewise.
28514         * lib/exclude.h: Likewise.
28515         * lib/execute.c: Likewise.
28516         * lib/execute.h: Likewise.
28517         * lib/exitfail.c: Likewise.
28518         * lib/exitfail.h: Likewise.
28519         * lib/expl.c: Likewise.
28520         * lib/fatal-signal.c: Likewise.
28521         * lib/fatal-signal.h: Likewise.
28522         * lib/fbufmode.c: Likewise.
28523         * lib/fbufmode.h: Likewise.
28524         * lib/fchdir.c: Likewise.
28525         * lib/fchmodat.c: Likewise.
28526         * lib/fchownat.c: Likewise.
28527         * lib/fcntl--.h: Likewise.
28528         * lib/fcntl-safer.h: Likewise.
28529         * lib/fcntl.in.h: Likewise.
28530         * lib/fd-safer.c: Likewise.
28531         * lib/fflush.c: Likewise.
28532         * lib/file-has-acl.c: Likewise.
28533         * lib/file-set.c: Likewise.
28534         * lib/file-type.c: Likewise.
28535         * lib/file-type.h: Likewise.
28536         * lib/fileblocks.c: Likewise.
28537         * lib/filemode.c: Likewise.
28538         * lib/filemode.h: Likewise.
28539         * lib/filename.h: Likewise.
28540         * lib/filenamecat.c: Likewise.
28541         * lib/filenamecat.h: Likewise.
28542         * lib/findprog.c: Likewise.
28543         * lib/findprog.h: Likewise.
28544         * lib/float.in.h: Likewise.
28545         * lib/floor.c: Likewise.
28546         * lib/floorf.c: Likewise.
28547         * lib/floorl.c: Likewise.
28548         * lib/fopen-safer.c: Likewise.
28549         * lib/fopen.c: Likewise.
28550         * lib/fpending.c: Likewise.
28551         * lib/fpending.h: Likewise.
28552         * lib/fprintf.c: Likewise.
28553         * lib/fprintftime.h: Likewise.
28554         * lib/fpucw.h: Likewise.
28555         * lib/fpurge.c: Likewise.
28556         * lib/fpurge.h: Likewise.
28557         * lib/freadable.c: Likewise.
28558         * lib/freadable.h: Likewise.
28559         * lib/freadahead.c: Likewise.
28560         * lib/freadahead.h: Likewise.
28561         * lib/freading.c: Likewise.
28562         * lib/freading.h: Likewise.
28563         * lib/free.c: Likewise.
28564         * lib/freopen.c: Likewise.
28565         * lib/frexp.c: Likewise.
28566         * lib/frexpl.c: Likewise.
28567         * lib/fseek.c: Likewise.
28568         * lib/fseterr.c: Likewise.
28569         * lib/fseterr.h: Likewise.
28570         * lib/fstatat.c: Likewise.
28571         * lib/fstrcmp.c: Likewise.
28572         * lib/fstrcmp.h: Likewise.
28573         * lib/fsusage.c: Likewise.
28574         * lib/fsusage.h: Likewise.
28575         * lib/ftell.c: Likewise.
28576         * lib/ftello.c: Likewise.
28577         * lib/fts-cycle.c: Likewise.
28578         * lib/fts.c: Likewise.
28579         * lib/fts_.h: Likewise.
28580         * lib/full-read.c: Likewise.
28581         * lib/full-read.h: Likewise.
28582         * lib/full-write.c: Likewise.
28583         * lib/full-write.h: Likewise.
28584         * lib/fwritable.c: Likewise.
28585         * lib/fwritable.h: Likewise.
28586         * lib/fwriteerror.c: Likewise.
28587         * lib/fwriteerror.h: Likewise.
28588         * lib/fwriting.c: Likewise.
28589         * lib/fwriting.h: Likewise.
28590         * lib/gcd.c: Likewise.
28591         * lib/gcd.h: Likewise.
28592         * lib/getcwd.c: Likewise.
28593         * lib/getdate.h: Likewise.
28594         * lib/getdate.y: Likewise.
28595         * lib/getdomainname.c: Likewise.
28596         * lib/getdomainname.h: Likewise.
28597         * lib/getgroups.c: Likewise.
28598         * lib/gethostname.c: Likewise.
28599         * lib/gethrxtime.c: Likewise.
28600         * lib/gethrxtime.h: Likewise.
28601         * lib/getloadavg.c: Likewise.
28602         * lib/getndelim2.c: Likewise.
28603         * lib/getndelim2.h: Likewise.
28604         * lib/getnline.c: Likewise.
28605         * lib/getnline.h: Likewise.
28606         * lib/getopt.c: Likewise.
28607         * lib/getopt.in.h: Likewise.
28608         * lib/getopt1.c: Likewise.
28609         * lib/getopt_int.h: Likewise.
28610         * lib/getpagesize.h: Likewise.
28611         * lib/getsubopt.c: Likewise.
28612         * lib/gettime.c: Likewise.
28613         * lib/getugroups.c: Likewise.
28614         * lib/getugroups.h: Likewise.
28615         * lib/getusershell.c: Likewise.
28616         * lib/gl_anyavltree_list1.h: Likewise.
28617         * lib/gl_anyavltree_list2.h: Likewise.
28618         * lib/gl_anyhash_list1.h: Likewise.
28619         * lib/gl_anyhash_list2.h: Likewise.
28620         * lib/gl_anylinked_list1.h: Likewise.
28621         * lib/gl_anylinked_list2.h: Likewise.
28622         * lib/gl_anyrbtree_list1.h: Likewise.
28623         * lib/gl_anyrbtree_list2.h: Likewise.
28624         * lib/gl_anytree_list1.h: Likewise.
28625         * lib/gl_anytree_list2.h: Likewise.
28626         * lib/gl_anytree_oset.h: Likewise.
28627         * lib/gl_anytreehash_list1.h: Likewise.
28628         * lib/gl_anytreehash_list2.h: Likewise.
28629         * lib/gl_array_list.c: Likewise.
28630         * lib/gl_array_list.h: Likewise.
28631         * lib/gl_array_oset.c: Likewise.
28632         * lib/gl_array_oset.h: Likewise.
28633         * lib/gl_avltree_list.c: Likewise.
28634         * lib/gl_avltree_list.h: Likewise.
28635         * lib/gl_avltree_oset.c: Likewise.
28636         * lib/gl_avltree_oset.h: Likewise.
28637         * lib/gl_avltreehash_list.c: Likewise.
28638         * lib/gl_avltreehash_list.h: Likewise.
28639         * lib/gl_carray_list.c: Likewise.
28640         * lib/gl_carray_list.h: Likewise.
28641         * lib/gl_linked_list.c: Likewise.
28642         * lib/gl_linked_list.h: Likewise.
28643         * lib/gl_linkedhash_list.c: Likewise.
28644         * lib/gl_linkedhash_list.h: Likewise.
28645         * lib/gl_list.c: Likewise.
28646         * lib/gl_list.h: Likewise.
28647         * lib/gl_oset.c: Likewise.
28648         * lib/gl_oset.h: Likewise.
28649         * lib/gl_rbtree_list.c: Likewise.
28650         * lib/gl_rbtree_list.h: Likewise.
28651         * lib/gl_rbtree_oset.c: Likewise.
28652         * lib/gl_rbtree_oset.h: Likewise.
28653         * lib/gl_rbtreehash_list.c: Likewise.
28654         * lib/gl_rbtreehash_list.h: Likewise.
28655         * lib/gl_sublist.c: Likewise.
28656         * lib/gl_sublist.h: Likewise.
28657         * lib/group-member.c: Likewise.
28658         * lib/group-member.h: Likewise.
28659         * lib/hard-locale.c: Likewise.
28660         * lib/hard-locale.h: Likewise.
28661         * lib/hash-pjw.c: Likewise.
28662         * lib/hash-pjw.h: Likewise.
28663         * lib/hash-triple.c: Likewise.
28664         * lib/hash.c: Likewise.
28665         * lib/hash.h: Likewise.
28666         * lib/human.c: Likewise.
28667         * lib/human.h: Likewise.
28668         * lib/i-ring.c: Likewise.
28669         * lib/i-ring.h: Likewise.
28670         * lib/idcache.c: Likewise.
28671         * lib/imaxabs.c: Likewise.
28672         * lib/imaxdiv.c: Likewise.
28673         * lib/inet_pton.c: Likewise.
28674         * lib/inet_pton.h: Likewise.
28675         * lib/intprops.h: Likewise.
28676         * lib/inttostr.c: Likewise.
28677         * lib/inttostr.h: Likewise.
28678         * lib/inttypes.in.h: Likewise.
28679         * lib/isapipe.c: Likewise.
28680         * lib/isdir.c: Likewise.
28681         * lib/isnan.c: Likewise.
28682         * lib/isnan.h: Likewise.
28683         * lib/isnanf.c: Likewise.
28684         * lib/isnanf.h: Likewise.
28685         * lib/isnanl-nolibm.h: Likewise.
28686         * lib/isnanl.c: Likewise.
28687         * lib/isnanl.h: Likewise.
28688         * lib/javacomp.c: Likewise.
28689         * lib/javacomp.h: Likewise.
28690         * lib/javaexec.c: Likewise.
28691         * lib/javaexec.h: Likewise.
28692         * lib/javaversion.c: Likewise.
28693         * lib/javaversion.h: Likewise.
28694         * lib/javaversion.java: Likewise.
28695         * lib/lbrkprop.h: Likewise.
28696         * lib/lchmod.h: Likewise.
28697         * lib/lchown.c: Likewise.
28698         * lib/ldexpl.c: Likewise.
28699         * lib/linebreak.c: Likewise.
28700         * lib/linebreak.h: Likewise.
28701         * lib/linebuffer.c: Likewise.
28702         * lib/linebuffer.h: Likewise.
28703         * lib/locale.in.h: Likewise.
28704         * lib/logl.c: Likewise.
28705         * lib/long-options.c: Likewise.
28706         * lib/long-options.h: Likewise.
28707         * lib/lstat.c: Likewise.
28708         * lib/lstat.h: Likewise.
28709         * lib/math.in.h: Likewise.
28710         * lib/mbchar.c: Likewise.
28711         * lib/mbchar.h: Likewise.
28712         * lib/mbfile.h: Likewise.
28713         * lib/mbiter.h: Likewise.
28714         * lib/mbscasecmp.c: Likewise.
28715         * lib/mbscasestr.c: Likewise.
28716         * lib/mbschr.c: Likewise.
28717         * lib/mbscspn.c: Likewise.
28718         * lib/mbslen.c: Likewise.
28719         * lib/mbsncasecmp.c: Likewise.
28720         * lib/mbsnlen.c: Likewise.
28721         * lib/mbspbrk.c: Likewise.
28722         * lib/mbspcasecmp.c: Likewise.
28723         * lib/mbsrchr.c: Likewise.
28724         * lib/mbssep.c: Likewise.
28725         * lib/mbsspn.c: Likewise.
28726         * lib/mbsstr.c: Likewise.
28727         * lib/mbstok_r.c: Likewise.
28728         * lib/mbswidth.c: Likewise.
28729         * lib/mbswidth.h: Likewise.
28730         * lib/mbuiter.h: Likewise.
28731         * lib/memcasecmp.c: Likewise.
28732         * lib/memcasecmp.h: Likewise.
28733         * lib/memchr.c: Likewise.
28734         * lib/memcmp.c: Likewise.
28735         * lib/memcoll.c: Likewise.
28736         * lib/memcoll.h: Likewise.
28737         * lib/memcpy.c: Likewise.
28738         * lib/memrchr.c: Likewise.
28739         * lib/mkancesdirs.c: Likewise.
28740         * lib/mkdir-p.c: Likewise.
28741         * lib/mkdir-p.h: Likewise.
28742         * lib/mkdir.c: Likewise.
28743         * lib/mkdirat.c: Likewise.
28744         * lib/mkdtemp.c: Likewise.
28745         * lib/mkstemp-safer.c: Likewise.
28746         * lib/mkstemp.c: Likewise.
28747         * lib/modechange.c: Likewise.
28748         * lib/modechange.h: Likewise.
28749         * lib/mountlist.c: Likewise.
28750         * lib/mountlist.h: Likewise.
28751         * lib/mpsort.c: Likewise.
28752         * lib/nanosleep.c: Likewise.
28753         * lib/obstack.c: Likewise.
28754         * lib/obstack.h: Likewise.
28755         * lib/open-safer.c: Likewise.
28756         * lib/open.c: Likewise.
28757         * lib/openat-die.c: Likewise.
28758         * lib/openat-priv.h: Likewise.
28759         * lib/openat-proc.c: Likewise.
28760         * lib/openat.c: Likewise.
28761         * lib/openat.h: Likewise.
28762         * lib/pagealign_alloc.c: Likewise.
28763         * lib/pagealign_alloc.h: Likewise.
28764         * lib/physmem.c: Likewise.
28765         * lib/physmem.h: Likewise.
28766         * lib/pipe-safer.c: Likewise.
28767         * lib/pipe.c: Likewise.
28768         * lib/pipe.h: Likewise.
28769         * lib/posixtm.c: Likewise.
28770         * lib/posixtm.h: Likewise.
28771         * lib/posixver.c: Likewise.
28772         * lib/printf-frexp.c: Likewise.
28773         * lib/printf-frexp.h: Likewise.
28774         * lib/printf-frexpl.c: Likewise.
28775         * lib/printf-frexpl.h: Likewise.
28776         * lib/printf.c: Likewise.
28777         * lib/progname.c: Likewise.
28778         * lib/progname.h: Likewise.
28779         * lib/progreloc.c: Likewise.
28780         * lib/putenv.c: Likewise.
28781         * lib/quote.c: Likewise.
28782         * lib/quote.h: Likewise.
28783         * lib/quotearg.c: Likewise.
28784         * lib/quotearg.h: Likewise.
28785         * lib/raise.c: Likewise.
28786         * lib/readline.c: Likewise.
28787         * lib/readline.h: Likewise.
28788         * lib/readlink.c: Likewise.
28789         * lib/readtokens.c: Likewise.
28790         * lib/readtokens.h: Likewise.
28791         * lib/readtokens0.c: Likewise.
28792         * lib/readtokens0.h: Likewise.
28793         * lib/readutmp.c: Likewise.
28794         * lib/readutmp.h: Likewise.
28795         * lib/realloc.c: Likewise.
28796         * lib/relocwrapper.c: Likewise.
28797         * lib/rename-dest-slash.c: Likewise.
28798         * lib/rename.c: Likewise.
28799         * lib/rmdir.c: Likewise.
28800         * lib/rpmatch.c: Likewise.
28801         * lib/safe-read.c: Likewise.
28802         * lib/safe-read.h: Likewise.
28803         * lib/safe-write.c: Likewise.
28804         * lib/safe-write.h: Likewise.
28805         * lib/same-inode.h: Likewise.
28806         * lib/same.c: Likewise.
28807         * lib/same.h: Likewise.
28808         * lib/save-cwd.c: Likewise.
28809         * lib/save-cwd.h: Likewise.
28810         * lib/savedir.c: Likewise.
28811         * lib/savedir.h: Likewise.
28812         * lib/savewd.c: Likewise.
28813         * lib/savewd.h: Likewise.
28814         * lib/search.in.h: Likewise.
28815         * lib/setenv.c: Likewise.
28816         * lib/setenv.h: Likewise.
28817         * lib/settime.c: Likewise.
28818         * lib/sh-quote.c: Likewise.
28819         * lib/sh-quote.h: Likewise.
28820         * lib/sig2str.c: Likewise.
28821         * lib/sig2str.h: Likewise.
28822         * lib/signal.in.h: Likewise.
28823         * lib/signbitd.c: Likewise.
28824         * lib/signbitf.c: Likewise.
28825         * lib/signbitl.c: Likewise.
28826         * lib/sigprocmask.c: Likewise.
28827         * lib/sincosl.c: Likewise.
28828         * lib/sleep.c: Likewise.
28829         * lib/sprintf.c: Likewise.
28830         * lib/sqrtl.c: Likewise.
28831         * lib/stat-time.h: Likewise.
28832         * lib/stdio--.h: Likewise.
28833         * lib/stdio-safer.h: Likewise.
28834         * lib/stdlib--.h: Likewise.
28835         * lib/stdlib-safer.h: Likewise.
28836         * lib/stdlib.in.h: Likewise.
28837         * lib/stpcpy.c: Likewise.
28838         * lib/stpncpy.c: Likewise.
28839         * lib/strchrnul.c: Likewise.
28840         * lib/strcspn.c: Likewise.
28841         * lib/strerror.c: Likewise.
28842         * lib/strftime.c: Likewise.
28843         * lib/strftime.h: Likewise.
28844         * lib/striconveh.c: Likewise.
28845         * lib/striconveh.h: Likewise.
28846         * lib/striconveha.c: Likewise.
28847         * lib/striconveha.h: Likewise.
28848         * lib/stripslash.c: Likewise.
28849         * lib/strnlen1.c: Likewise.
28850         * lib/strnlen1.h: Likewise.
28851         * lib/strtod.c: Likewise.
28852         * lib/strtoimax.c: Likewise.
28853         * lib/strtok_r.c: Likewise.
28854         * lib/strtol.c: Likewise.
28855         * lib/strtoll.c: Likewise.
28856         * lib/strtoul.c: Likewise.
28857         * lib/strtoull.c: Likewise.
28858         * lib/sysexits.in.h: Likewise.
28859         * lib/tempname.c: Likewise.
28860         * lib/tempname.h: Likewise.
28861         * lib/timespec.h: Likewise.
28862         * lib/tls.c: Likewise.
28863         * lib/tls.h: Likewise.
28864         * lib/tmpdir.c: Likewise.
28865         * lib/tmpdir.h: Likewise.
28866         * lib/tmpfile-safer.c: Likewise.
28867         * lib/tmpfile.c: Likewise.
28868         * lib/trigl.c: Likewise.
28869         * lib/trigl.h: Likewise.
28870         * lib/trim.c: Likewise.
28871         * lib/trim.h: Likewise.
28872         * lib/trunc.c: Likewise.
28873         * lib/truncf.c: Likewise.
28874         * lib/truncl.c: Likewise.
28875         * lib/tsearch.c: Likewise.
28876         * lib/unicodeio.c: Likewise.
28877         * lib/unicodeio.h: Likewise.
28878         * lib/unistd--.h: Likewise.
28879         * lib/unistd-safer.h: Likewise.
28880         * lib/unistdio/ulc-fprintf.c: Likewise.
28881         * lib/unistdio/ulc-vfprintf.c: Likewise.
28882         * lib/unlinkdir.c: Likewise.
28883         * lib/unlinkdir.h: Likewise.
28884         * lib/unlocked-io.h: Likewise.
28885         * lib/unsetenv.c: Likewise.
28886         * lib/userspec.c: Likewise.
28887         * lib/utime.c: Likewise.
28888         * lib/utimecmp.c: Likewise.
28889         * lib/utimecmp.h: Likewise.
28890         * lib/utimens.c: Likewise.
28891         * lib/verify.h: Likewise.
28892         * lib/verror.c: Likewise.
28893         * lib/verror.h: Likewise.
28894         * lib/version-etc-fsf.c: Likewise.
28895         * lib/version-etc.c: Likewise.
28896         * lib/version-etc.h: Likewise.
28897         * lib/vfprintf.c: Likewise.
28898         * lib/vprintf.c: Likewise.
28899         * lib/vsprintf.c: Likewise.
28900         * lib/w32spawn.h: Likewise.
28901         * lib/wait-process.c: Likewise.
28902         * lib/wait-process.h: Likewise.
28903         * lib/wcwidth.c: Likewise.
28904         * lib/write-any-file.c: Likewise.
28905         * lib/xalloc-die.c: Likewise.
28906         * lib/xalloc.h: Likewise.
28907         * lib/xasprintf.c: Likewise.
28908         * lib/xgetcwd.c: Likewise.
28909         * lib/xgetcwd.h: Likewise.
28910         * lib/xgetdomainname.c: Likewise.
28911         * lib/xgetdomainname.h: Likewise.
28912         * lib/xgethostname.c: Likewise.
28913         * lib/xmalloc.c: Likewise.
28914         * lib/xmalloca.c: Likewise.
28915         * lib/xmalloca.h: Likewise.
28916         * lib/xmemcoll.c: Likewise.
28917         * lib/xnanosleep.c: Likewise.
28918         * lib/xreadlink.c: Likewise.
28919         * lib/xreadlink.h: Likewise.
28920         * lib/xsetenv.c: Likewise.
28921         * lib/xsetenv.h: Likewise.
28922         * lib/xstriconv.c: Likewise.
28923         * lib/xstriconv.h: Likewise.
28924         * lib/xstrndup.c: Likewise.
28925         * lib/xstrndup.h: Likewise.
28926         * lib/xstrtod.c: Likewise.
28927         * lib/xstrtod.h: Likewise.
28928         * lib/xstrtol-error.c: Likewise.
28929         * lib/xstrtol.c: Likewise.
28930         * lib/xstrtol.h: Likewise.
28931         * lib/xtime.h: Likewise.
28932         * lib/xvasprintf.c: Likewise.
28933         * lib/xvasprintf.h: Likewise.
28934         * lib/yesno.c: Likewise.
28935         * lib/yesno.h: Likewise.
28936         * posix-modules: Likewise.
28937         * tests/test-alloca-opt.c: Likewise.
28938         * tests/test-arcfour.c: Likewise.
28939         * tests/test-arctwo.c: Likewise.
28940         * tests/test-argmatch.c: Likewise.
28941         * tests/test-argp-2.sh: Likewise.
28942         * tests/test-argp.c: Likewise.
28943         * tests/test-arpa_inet.c: Likewise.
28944         * tests/test-array_list.c: Likewise.
28945         * tests/test-array_oset.c: Likewise.
28946         * tests/test-atexit.c: Likewise.
28947         * tests/test-avltree_list.c: Likewise.
28948         * tests/test-avltree_oset.c: Likewise.
28949         * tests/test-avltreehash_list.c: Likewise.
28950         * tests/test-base64.c: Likewise.
28951         * tests/test-binary-io.c: Likewise.
28952         * tests/test-byteswap.c: Likewise.
28953         * tests/test-c-ctype.c: Likewise.
28954         * tests/test-c-strcasecmp.c: Likewise.
28955         * tests/test-c-strcasestr.c: Likewise.
28956         * tests/test-c-strncasecmp.c: Likewise.
28957         * tests/test-c-strstr.c: Likewise.
28958         * tests/test-canonicalize-lgpl.c: Likewise.
28959         * tests/test-canonicalize.c: Likewise.
28960         * tests/test-carray_list.c: Likewise.
28961         * tests/test-ceilf.c: Likewise.
28962         * tests/test-ceill.c: Likewise.
28963         * tests/test-count-one-bits.c: Likewise.
28964         * tests/test-crc.c: Likewise.
28965         * tests/test-dirname.c: Likewise.
28966         * tests/test-fbufmode.c: Likewise.
28967         * tests/test-fcntl.c: Likewise.
28968         * tests/test-fflush.c: Likewise.
28969         * tests/test-floorf.c: Likewise.
28970         * tests/test-floorl.c: Likewise.
28971         * tests/test-fopen.c: Likewise.
28972         * tests/test-fprintf-posix.c: Likewise.
28973         * tests/test-fprintf-posix.h: Likewise.
28974         * tests/test-fpurge.c: Likewise.
28975         * tests/test-freadable.c: Likewise.
28976         * tests/test-freadahead.c: Likewise.
28977         * tests/test-freading.c: Likewise.
28978         * tests/test-freopen.c: Likewise.
28979         * tests/test-frexp.c: Likewise.
28980         * tests/test-frexpl.c: Likewise.
28981         * tests/test-fseek.c: Likewise.
28982         * tests/test-fseeko.c: Likewise.
28983         * tests/test-fseterr.c: Likewise.
28984         * tests/test-fstrcmp.c: Likewise.
28985         * tests/test-ftell.c: Likewise.
28986         * tests/test-ftello.c: Likewise.
28987         * tests/test-fwritable.c: Likewise.
28988         * tests/test-fwriting.c: Likewise.
28989         * tests/test-getaddrinfo.c: Likewise.
28990         * tests/test-getpass.c: Likewise.
28991         * tests/test-gettimeofday.c: Likewise.
28992         * tests/test-hmac-md5.c: Likewise.
28993         * tests/test-hmac-sha1.c: Likewise.
28994         * tests/test-iconv.c: Likewise.
28995         * tests/test-iconvme.c: Likewise.
28996         * tests/test-inttypes.c: Likewise.
28997         * tests/test-isnan.c: Likewise.
28998         * tests/test-isnanf.c: Likewise.
28999         * tests/test-isnanl-nolibm.c: Likewise.
29000         * tests/test-isnanl.c: Likewise.
29001         * tests/test-isnanl.h: Likewise.
29002         * tests/test-ldexpl.c: Likewise.
29003         * tests/test-linked_list.c: Likewise.
29004         * tests/test-linkedhash_list.c: Likewise.
29005         * tests/test-locale.c: Likewise.
29006         * tests/test-localename.c: Likewise.
29007         * tests/test-lock.c: Likewise.
29008         * tests/test-lseek.c: Likewise.
29009         * tests/test-malloca.c: Likewise.
29010         * tests/test-math.c: Likewise.
29011         * tests/test-mbscasecmp.c: Likewise.
29012         * tests/test-mbscasestr1.c: Likewise.
29013         * tests/test-mbscasestr2.c: Likewise.
29014         * tests/test-mbscasestr3.c: Likewise.
29015         * tests/test-mbscasestr4.c: Likewise.
29016         * tests/test-mbschr.c: Likewise.
29017         * tests/test-mbscspn.c: Likewise.
29018         * tests/test-mbsncasecmp.c: Likewise.
29019         * tests/test-mbspbrk.c: Likewise.
29020         * tests/test-mbspcasecmp.c: Likewise.
29021         * tests/test-mbsrchr.c: Likewise.
29022         * tests/test-mbsspn.c: Likewise.
29023         * tests/test-mbsstr1.c: Likewise.
29024         * tests/test-mbsstr2.c: Likewise.
29025         * tests/test-mbsstr3.c: Likewise.
29026         * tests/test-md5.c: Likewise.
29027         * tests/test-memmem.c: Likewise.
29028         * tests/test-netinet_in.c: Likewise.
29029         * tests/test-open.c: Likewise.
29030         * tests/test-printf-frexp.c: Likewise.
29031         * tests/test-printf-frexpl.c: Likewise.
29032         * tests/test-printf-posix.c: Likewise.
29033         * tests/test-printf-posix.h: Likewise.
29034         * tests/test-rbtree_list.c: Likewise.
29035         * tests/test-rbtree_oset.c: Likewise.
29036         * tests/test-rbtreehash_list.c: Likewise.
29037         * tests/test-read-file.c: Likewise.
29038         * tests/test-rijndael.c: Likewise.
29039         * tests/test-search.c: Likewise.
29040         * tests/test-signbit.c: Likewise.
29041         * tests/test-sleep.c: Likewise.
29042         * tests/test-snprintf-posix.c: Likewise.
29043         * tests/test-snprintf-posix.h: Likewise.
29044         * tests/test-snprintf.c: Likewise.
29045         * tests/test-sprintf-posix.c: Likewise.
29046         * tests/test-sprintf-posix.h: Likewise.
29047         * tests/test-stat-time.c: Likewise.
29048         * tests/test-stdbool.c: Likewise.
29049         * tests/test-stdint.c: Likewise.
29050         * tests/test-stdio.c: Likewise.
29051         * tests/test-stdlib.c: Likewise.
29052         * tests/test-stpncpy.c: Likewise.
29053         * tests/test-strcasestr.c: Likewise.
29054         * tests/test-striconv.c: Likewise.
29055         * tests/test-striconveh.c: Likewise.
29056         * tests/test-striconveha.c: Likewise.
29057         * tests/test-string.c: Likewise.
29058         * tests/test-sys_select.c: Likewise.
29059         * tests/test-sys_socket.c: Likewise.
29060         * tests/test-sys_stat.c: Likewise.
29061         * tests/test-sys_time.c: Likewise.
29062         * tests/test-sysexits.c: Likewise.
29063         * tests/test-time.c: Likewise.
29064         * tests/test-tls.c: Likewise.
29065         * tests/test-trunc.c: Likewise.
29066         * tests/test-truncf.c: Likewise.
29067         * tests/test-truncl.c: Likewise.
29068         * tests/test-unistd.c: Likewise.
29069         * tests/test-vasnprintf-posix.c: Likewise.
29070         * tests/test-vasnprintf-posix2.c: Likewise.
29071         * tests/test-vasnprintf.c: Likewise.
29072         * tests/test-vasprintf-posix.c: Likewise.
29073         * tests/test-vasprintf.c: Likewise.
29074         * tests/test-verify.c: Likewise.
29075         * tests/test-vfprintf-posix.c: Likewise.
29076         * tests/test-vprintf-posix.c: Likewise.
29077         * tests/test-vsnprintf-posix.c: Likewise.
29078         * tests/test-vsnprintf.c: Likewise.
29079         * tests/test-vsprintf-posix.c: Likewise.
29080         * tests/test-wchar.c: Likewise.
29081         * tests/test-wctype.c: Likewise.
29082         * tests/test-wcwidth.c: Likewise.
29083         * tests/test-xstrtol.c: Likewise.
29084         * tests/test-xvasprintf.c: Likewise.
29085         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29086         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29087         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29088         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29089         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29090         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29091         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29092         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29093         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29094         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29095         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29096         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29097         * tests/uniname/test-uninames.c: Likewise.
29098         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29099         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29100         * tests/unistdio/test-u16-printf1.h: Likewise.
29101         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29102         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29103         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29104         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29105         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29106         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29107         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29108         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29109         * tests/unistdio/test-u32-printf1.h: Likewise.
29110         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29111         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29112         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29113         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29114         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29115         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29116         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29117         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29118         * tests/unistdio/test-u8-printf1.h: Likewise.
29119         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29120         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29121         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29122         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29123         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29124         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29125         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29126         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29127         * tests/unistdio/test-ulc-printf1.h: Likewise.
29128         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29129         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29130         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29131         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29132         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29133         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29134         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29135         * tests/uniwidth/test-u16-width.c: Likewise.
29136         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29137         * tests/uniwidth/test-u32-width.c: Likewise.
29138         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29139         * tests/uniwidth/test-u8-width.c: Likewise.
29140         * tests/uniwidth/test-uc_width.c: Likewise.
29141         * config/srclist-update: Likewise.
29142         (fixlicense): Update to GPLv3+.
29143
29144         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29145         * tests/test-tsearch.c: Change copyright notice.
29146
29147         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29148         * lib/c-strcaseeq.h: Change copyright notice.
29149         * lib/streq.h: Likewise.
29150         * lib/uniconv.h: Likewise.
29151         * lib/uniconv/u-conv-from-enc.h: Likewise.
29152         * lib/uniconv/u-conv-to-enc.h: Likewise.
29153         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29154         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29155         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29156         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29157         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29158         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29159         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29160         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29161         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29162         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29163         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29164         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29165         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29166         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29167         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29168         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29169         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29170         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29171         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29172         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29173         * lib/uniname.h: Likewise.
29174         * lib/uniname/uniname.c: Likewise.
29175         * lib/unistdio.h: Likewise.
29176         * lib/unistdio/u-asnprintf.h: Likewise.
29177         * lib/unistdio/u-asprintf.h: Likewise.
29178         * lib/unistdio/u-printf-args.c: Likewise.
29179         * lib/unistdio/u-printf-args.h: Likewise.
29180         * lib/unistdio/u-printf-parse.h: Likewise.
29181         * lib/unistdio/u-snprintf.h: Likewise.
29182         * lib/unistdio/u-sprintf.h: Likewise.
29183         * lib/unistdio/u-vasprintf.h: Likewise.
29184         * lib/unistdio/u-vsnprintf.h: Likewise.
29185         * lib/unistdio/u-vsprintf.h: Likewise.
29186         * lib/unistdio/u16-asnprintf.c: Likewise.
29187         * lib/unistdio/u16-asprintf.c: Likewise.
29188         * lib/unistdio/u16-printf-parse.c: Likewise.
29189         * lib/unistdio/u16-snprintf.c: Likewise.
29190         * lib/unistdio/u16-sprintf.c: Likewise.
29191         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29192         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29193         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29194         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29195         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29196         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29197         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29198         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29199         * lib/unistdio/u16-vasnprintf.c: Likewise.
29200         * lib/unistdio/u16-vasprintf.c: Likewise.
29201         * lib/unistdio/u16-vsnprintf.c: Likewise.
29202         * lib/unistdio/u16-vsprintf.c: Likewise.
29203         * lib/unistdio/u32-asnprintf.c: Likewise.
29204         * lib/unistdio/u32-asprintf.c: Likewise.
29205         * lib/unistdio/u32-printf-parse.c: Likewise.
29206         * lib/unistdio/u32-snprintf.c: Likewise.
29207         * lib/unistdio/u32-sprintf.c: Likewise.
29208         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29209         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29210         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29211         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29212         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29213         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29214         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29215         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29216         * lib/unistdio/u32-vasnprintf.c: Likewise.
29217         * lib/unistdio/u32-vasprintf.c: Likewise.
29218         * lib/unistdio/u32-vsnprintf.c: Likewise.
29219         * lib/unistdio/u32-vsprintf.c: Likewise.
29220         * lib/unistdio/u8-asnprintf.c: Likewise.
29221         * lib/unistdio/u8-asprintf.c: Likewise.
29222         * lib/unistdio/u8-printf-parse.c: Likewise.
29223         * lib/unistdio/u8-snprintf.c: Likewise.
29224         * lib/unistdio/u8-sprintf.c: Likewise.
29225         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29226         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29227         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29228         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29229         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29230         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29231         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29232         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29233         * lib/unistdio/u8-vasnprintf.c: Likewise.
29234         * lib/unistdio/u8-vasprintf.c: Likewise.
29235         * lib/unistdio/u8-vsnprintf.c: Likewise.
29236         * lib/unistdio/u8-vsprintf.c: Likewise.
29237         * lib/unistdio/ulc-asnprintf.c: Likewise.
29238         * lib/unistdio/ulc-asprintf.c: Likewise.
29239         * lib/unistdio/ulc-printf-parse.c: Likewise.
29240         * lib/unistdio/ulc-snprintf.c: Likewise.
29241         * lib/unistdio/ulc-sprintf.c: Likewise.
29242         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29243         * lib/unistdio/ulc-vasprintf.c: Likewise.
29244         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29245         * lib/unistdio/ulc-vsprintf.c: Likewise.
29246         * lib/unistr.h: Likewise.
29247         * lib/unistr/u-cpy-alloc.h: Likewise.
29248         * lib/unistr/u-cpy.h: Likewise.
29249         * lib/unistr/u-endswith.h: Likewise.
29250         * lib/unistr/u-move.h: Likewise.
29251         * lib/unistr/u-set.h: Likewise.
29252         * lib/unistr/u-startswith.h: Likewise.
29253         * lib/unistr/u-stpcpy.h: Likewise.
29254         * lib/unistr/u-stpncpy.h: Likewise.
29255         * lib/unistr/u-strcat.h: Likewise.
29256         * lib/unistr/u-strcpy.h: Likewise.
29257         * lib/unistr/u-strcspn.h: Likewise.
29258         * lib/unistr/u-strdup.h: Likewise.
29259         * lib/unistr/u-strlen.h: Likewise.
29260         * lib/unistr/u-strncat.h: Likewise.
29261         * lib/unistr/u-strncpy.h: Likewise.
29262         * lib/unistr/u-strnlen.h: Likewise.
29263         * lib/unistr/u-strpbrk.h: Likewise.
29264         * lib/unistr/u-strspn.h: Likewise.
29265         * lib/unistr/u-strstr.h: Likewise.
29266         * lib/unistr/u-strtok.h: Likewise.
29267         * lib/unistr/u16-check.c: Likewise.
29268         * lib/unistr/u16-chr.c: Likewise.
29269         * lib/unistr/u16-cmp.c: Likewise.
29270         * lib/unistr/u16-cpy-alloc.c: Likewise.
29271         * lib/unistr/u16-cpy.c: Likewise.
29272         * lib/unistr/u16-endswith.c: Likewise.
29273         * lib/unistr/u16-mblen.c: Likewise.
29274         * lib/unistr/u16-mbsnlen.c: Likewise.
29275         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29276         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29277         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29278         * lib/unistr/u16-mbtouc.c: Likewise.
29279         * lib/unistr/u16-mbtoucr.c: Likewise.
29280         * lib/unistr/u16-move.c: Likewise.
29281         * lib/unistr/u16-next.c: Likewise.
29282         * lib/unistr/u16-prev.c: Likewise.
29283         * lib/unistr/u16-set.c: Likewise.
29284         * lib/unistr/u16-startswith.c: Likewise.
29285         * lib/unistr/u16-stpcpy.c: Likewise.
29286         * lib/unistr/u16-stpncpy.c: Likewise.
29287         * lib/unistr/u16-strcat.c: Likewise.
29288         * lib/unistr/u16-strchr.c: Likewise.
29289         * lib/unistr/u16-strcmp.c: Likewise.
29290         * lib/unistr/u16-strcpy.c: Likewise.
29291         * lib/unistr/u16-strcspn.c: Likewise.
29292         * lib/unistr/u16-strdup.c: Likewise.
29293         * lib/unistr/u16-strlen.c: Likewise.
29294         * lib/unistr/u16-strmblen.c: Likewise.
29295         * lib/unistr/u16-strmbtouc.c: Likewise.
29296         * lib/unistr/u16-strncat.c: Likewise.
29297         * lib/unistr/u16-strncmp.c: Likewise.
29298         * lib/unistr/u16-strncpy.c: Likewise.
29299         * lib/unistr/u16-strnlen.c: Likewise.
29300         * lib/unistr/u16-strpbrk.c: Likewise.
29301         * lib/unistr/u16-strrchr.c: Likewise.
29302         * lib/unistr/u16-strspn.c: Likewise.
29303         * lib/unistr/u16-strstr.c: Likewise.
29304         * lib/unistr/u16-strtok.c: Likewise.
29305         * lib/unistr/u16-to-u32.c: Likewise.
29306         * lib/unistr/u16-to-u8.c: Likewise.
29307         * lib/unistr/u16-uctomb-aux.c: Likewise.
29308         * lib/unistr/u16-uctomb.c: Likewise.
29309         * lib/unistr/u32-check.c: Likewise.
29310         * lib/unistr/u32-chr.c: Likewise.
29311         * lib/unistr/u32-cmp.c: Likewise.
29312         * lib/unistr/u32-cpy-alloc.c: Likewise.
29313         * lib/unistr/u32-cpy.c: Likewise.
29314         * lib/unistr/u32-endswith.c: Likewise.
29315         * lib/unistr/u32-mblen.c: Likewise.
29316         * lib/unistr/u32-mbsnlen.c: Likewise.
29317         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29318         * lib/unistr/u32-mbtouc.c: Likewise.
29319         * lib/unistr/u32-mbtoucr.c: Likewise.
29320         * lib/unistr/u32-move.c: Likewise.
29321         * lib/unistr/u32-next.c: Likewise.
29322         * lib/unistr/u32-prev.c: Likewise.
29323         * lib/unistr/u32-set.c: Likewise.
29324         * lib/unistr/u32-startswith.c: Likewise.
29325         * lib/unistr/u32-stpcpy.c: Likewise.
29326         * lib/unistr/u32-stpncpy.c: Likewise.
29327         * lib/unistr/u32-strcat.c: Likewise.
29328         * lib/unistr/u32-strchr.c: Likewise.
29329         * lib/unistr/u32-strcmp.c: Likewise.
29330         * lib/unistr/u32-strcpy.c: Likewise.
29331         * lib/unistr/u32-strcspn.c: Likewise.
29332         * lib/unistr/u32-strdup.c: Likewise.
29333         * lib/unistr/u32-strlen.c: Likewise.
29334         * lib/unistr/u32-strmblen.c: Likewise.
29335         * lib/unistr/u32-strmbtouc.c: Likewise.
29336         * lib/unistr/u32-strncat.c: Likewise.
29337         * lib/unistr/u32-strncmp.c: Likewise.
29338         * lib/unistr/u32-strncpy.c: Likewise.
29339         * lib/unistr/u32-strnlen.c: Likewise.
29340         * lib/unistr/u32-strpbrk.c: Likewise.
29341         * lib/unistr/u32-strrchr.c: Likewise.
29342         * lib/unistr/u32-strspn.c: Likewise.
29343         * lib/unistr/u32-strstr.c: Likewise.
29344         * lib/unistr/u32-strtok.c: Likewise.
29345         * lib/unistr/u32-to-u16.c: Likewise.
29346         * lib/unistr/u32-to-u8.c: Likewise.
29347         * lib/unistr/u32-uctomb.c: Likewise.
29348         * lib/unistr/u8-check.c: Likewise.
29349         * lib/unistr/u8-chr.c: Likewise.
29350         * lib/unistr/u8-cmp.c: Likewise.
29351         * lib/unistr/u8-cpy-alloc.c: Likewise.
29352         * lib/unistr/u8-cpy.c: Likewise.
29353         * lib/unistr/u8-endswith.c: Likewise.
29354         * lib/unistr/u8-mblen.c: Likewise.
29355         * lib/unistr/u8-mbsnlen.c: Likewise.
29356         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29357         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29358         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29359         * lib/unistr/u8-mbtouc.c: Likewise.
29360         * lib/unistr/u8-mbtoucr.c: Likewise.
29361         * lib/unistr/u8-move.c: Likewise.
29362         * lib/unistr/u8-next.c: Likewise.
29363         * lib/unistr/u8-prev.c: Likewise.
29364         * lib/unistr/u8-set.c: Likewise.
29365         * lib/unistr/u8-startswith.c: Likewise.
29366         * lib/unistr/u8-stpcpy.c: Likewise.
29367         * lib/unistr/u8-stpncpy.c: Likewise.
29368         * lib/unistr/u8-strcat.c: Likewise.
29369         * lib/unistr/u8-strchr.c: Likewise.
29370         * lib/unistr/u8-strcmp.c: Likewise.
29371         * lib/unistr/u8-strcpy.c: Likewise.
29372         * lib/unistr/u8-strcspn.c: Likewise.
29373         * lib/unistr/u8-strdup.c: Likewise.
29374         * lib/unistr/u8-strlen.c: Likewise.
29375         * lib/unistr/u8-strmblen.c: Likewise.
29376         * lib/unistr/u8-strmbtouc.c: Likewise.
29377         * lib/unistr/u8-strncat.c: Likewise.
29378         * lib/unistr/u8-strncmp.c: Likewise.
29379         * lib/unistr/u8-strncpy.c: Likewise.
29380         * lib/unistr/u8-strnlen.c: Likewise.
29381         * lib/unistr/u8-strpbrk.c: Likewise.
29382         * lib/unistr/u8-strrchr.c: Likewise.
29383         * lib/unistr/u8-strspn.c: Likewise.
29384         * lib/unistr/u8-strstr.c: Likewise.
29385         * lib/unistr/u8-strtok.c: Likewise.
29386         * lib/unistr/u8-to-u16.c: Likewise.
29387         * lib/unistr/u8-to-u32.c: Likewise.
29388         * lib/unistr/u8-uctomb-aux.c: Likewise.
29389         * lib/unistr/u8-uctomb.c: Likewise.
29390         * lib/unitypes.h: Likewise.
29391         * lib/uniwidth.h: Likewise.
29392         * lib/uniwidth/cjk.h: Likewise.
29393         * lib/uniwidth/u16-strwidth.c: Likewise.
29394         * lib/uniwidth/u16-width.c: Likewise.
29395         * lib/uniwidth/u32-strwidth.c: Likewise.
29396         * lib/uniwidth/u32-width.c: Likewise.
29397         * lib/uniwidth/u8-strwidth.c: Likewise.
29398         * lib/uniwidth/u8-width.c: Likewise.
29399         * lib/uniwidth/width.c: Likewise.
29400
29401 2007-10-07  Bruno Haible  <bruno@clisp.org>
29402
29403         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29404         The file is still under LGPL (see modules/inttypes).
29405
29406 2007-10-06  Bruno Haible  <bruno@clisp.org>
29407
29408         * modules/trunc (Dependencies): Add 'extensions'.
29409         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29410         Reported by Ben Pfaff <blp@gnu.org>.
29411
29412 2007-10-06  Bruno Haible  <bruno@clisp.org>
29413
29414         * modules/freopen-tests: New file.
29415         * tests/test-freopen.c: New file.
29416
29417         * modules/fopen-tests: New file.
29418         * tests/test-fopen.c: New file.
29419
29420         * modules/fopen: New file.
29421         * lib/fopen.c: New file.
29422         * m4/fopen.m4: New file.
29423         * modules/freopen: New file.
29424         * lib/freopen.c: New file.
29425         * m4/freopen.m4: New file.
29426         * lib/stdio.in.h (fopen, freopen): New declarations.
29427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29428         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29429         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29430         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29431         * doc/functions/fopen.texi: Mention the 'fopen' module.
29432         * doc/functions/freopen.texi: Mention the 'freopen' module.
29433
29434 2007-10-06  Bruno Haible  <bruno@clisp.org>
29435
29436         * modules/open-tests: New file.
29437         * tests/test-open.c: New file.
29438
29439         * modules/open: New file.
29440         * lib/open.c: New file.
29441         * m4/open.m4: New file.
29442         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29443         lib/open.c does.
29444         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29445         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29446         macros.
29447         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29448         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29449         REPLACE_OPEN.
29450         * doc/functions/open.texi: Mention the 'open' module.
29451
29452 2007-10-04  Bruno Haible  <bruno@clisp.org>
29453
29454         * modules/ceill-tests: New file.
29455         * tests/test-ceill.c: New file.
29456
29457         * modules/ceill: New file.
29458         * lib/ceill.c: Replace entire file.
29459         * m4/ceill.m4: New file.
29460         * lib/math.in.h (ceill): Replace declaration.
29461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29462         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29463         * doc/functions/ceill.texi: Mention the 'ceill' module.
29464         * modules/mathl (Files): Remove lib/ceill.c.
29465         (Depends-on): Add ceill.
29466
29467 2007-10-04  Bruno Haible  <bruno@clisp.org>
29468
29469         * modules/ceilf-tests: New file.
29470         * tests/test-ceilf.c: New file.
29471
29472         * modules/ceilf: New file.
29473         * lib/ceil.c: New file.
29474         * lib/ceilf.c: New file.
29475         * m4/ceilf.m4: New file.
29476         * lib/math.in.h (ceilf): New declaration.
29477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29478         HAVE_DECL_CEILF.
29479         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29480         HAVE_DECL_CEILF.
29481         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29482
29483 2007-10-04  Bruno Haible  <bruno@clisp.org>
29484
29485         * modules/floorl-tests: New file.
29486         * tests/test-floorl.c: New file.
29487
29488         * modules/floorl: New file.
29489         * lib/floorl.c: Replace entire file.
29490         * m4/floorl.m4: New file.
29491         * lib/math.in.h (floorl): Replace declaration.
29492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29493         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29494         * doc/functions/floorl.texi: Mention the 'floorl' module.
29495         * modules/mathl (Files): Remove lib/floorl.c.
29496         (Depends-on): Add floorl.
29497
29498 2007-10-04  Bruno Haible  <bruno@clisp.org>
29499
29500         * modules/floorf-tests: New file.
29501         * tests/test-floorf.c: New file.
29502
29503         * modules/floorf: New file.
29504         * lib/floor.c: New file.
29505         * lib/floorf.c: New file.
29506         * m4/floorf.m4: New file.
29507         * lib/math.in.h (floorf): New declaration.
29508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29509         HAVE_DECL_FLOORF.
29510         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29511         HAVE_DECL_FLOORF.
29512         * doc/functions/floorf.texi: Mention the 'floorf' module.
29513
29514 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29515             Bruno Haible  <bruno@clisp.org>
29516
29517         Advertise for the Git server instead of the CVS server.
29518         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29519         repository instead of the CVS one.
29520         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29521         about all VCS systems generically.
29522         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29523
29524 2007-10-04  Bruno Haible  <bruno@clisp.org>
29525
29526         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29527         means.
29528         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29529
29530 2007-10-04  Bruno Haible  <bruno@clisp.org>
29531
29532         * modules/truncl-tests: New file.
29533         * tests/test-truncl.c: New file.
29534
29535         * modules/truncl: New file.
29536         * lib/truncl.c: New file.
29537         * m4/truncl.m4: New file.
29538         * lib/math.in.h (truncl): New declaration.
29539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29540         HAVE_DECL_TRUNCL.
29541         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29542         HAVE_DECL_TRUNCL.
29543         * doc/functions/truncl.texi: Mention the 'truncl' module.
29544
29545 2007-10-04  Bruno Haible  <bruno@clisp.org>
29546
29547         * modules/truncf-tests: New file.
29548         * tests/test-truncf.c: New file.
29549
29550         * modules/truncf: New file.
29551         * lib/trunc.c: Make paramerizable through USE_* macros.
29552         * lib/truncf.c: New file.
29553         * m4/truncf.m4: New file.
29554         * lib/math.in.h (truncf): New declaration.
29555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29556         HAVE_DECL_TRUNCF.
29557         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29558         HAVE_DECL_TRUNCF.
29559         * doc/functions/truncf.texi: Mention the 'truncf' module.
29560
29561 2007-10-03  Bruno Haible  <bruno@clisp.org>
29562
29563         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29564         augmentation also for tests modules.
29565         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29566         * modules/atexit-tests (Makefile.am): Likewise.
29567         * modules/binary-io-tests (Makefile.am): Likewise.
29568         * modules/c-strcase-tests (Makefile.am): Likewise.
29569         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29570         * modules/canonicalize-tests (Makefile.am): Likewise.
29571         * modules/closein-tests (Makefile.am): Likewise.
29572         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29573         * modules/freadahead-tests (Makefile.am): Likewise.
29574         * modules/fseek-tests (Makefile.am): Likewise.
29575         * modules/fseeko-tests (Makefile.am): Likewise.
29576         * modules/ftell-tests (Makefile.am): Likewise.
29577         * modules/ftello-tests (Makefile.am): Likewise.
29578         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29579         * modules/isnanl-tests (Makefile.am): Likewise.
29580         * modules/lseek-tests (Makefile.am): Likewise.
29581         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29582         * modules/mbscasestr-tests (Makefile.am): Likewise.
29583         * modules/mbschr-tests (Makefile.am): Likewise.
29584         * modules/mbscspn-tests (Makefile.am): Likewise.
29585         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29586         * modules/mbspbrk-tests (Makefile.am): Likewise.
29587         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29588         * modules/mbsrchr-tests (Makefile.am): Likewise.
29589         * modules/mbsspn-tests (Makefile.am): Likewise.
29590         * modules/mbsstr-tests (Makefile.am): Likewise.
29591         * modules/printf-posix-tests (Makefile.am): Likewise.
29592         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29593         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29594         * modules/tsearch-tests (Makefile.am): Likewise.
29595         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29596         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29597         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29598         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29599         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29600         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29601         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29602         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29603         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29604         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29605         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29606         * modules/xstrtol-tests (Makefile.am): Likewise.
29607         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29608         * modules/yesno-tests (Makefile.am): Likewise.
29609
29610 2007-10-03  Bruno Haible  <bruno@clisp.org>
29611
29612         * modules/trunc-tests: New file.
29613         * tests/test-trunc.c: New file.
29614
29615         * modules/trunc: New file.
29616         * lib/trunc.c: New file.
29617         * m4/trunc.m4: New file.
29618         * lib/math.in.h (trunc): New declaration.
29619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29620         HAVE_DECL_TRUNC.
29621         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29622         HAVE_DECL_TRUNC.
29623         * doc/functions/trunc.texi: Mention the 'trunc' module.
29624
29625 2007-10-03  Bruno Haible  <bruno@clisp.org>
29626
29627         * tests/test-fpending.c: New file, mostly copied
29628         from coreutils/lib/t-fpending.c.
29629         * modules/fpending-tests: New file.
29630
29631 2007-10-03  Bruno Haible  <bruno@clisp.org>
29632
29633         Port the stdio extensions to QNX (untested).
29634         * lib/fseterr.c (fseterr): Add support for QNX.
29635         * lib/fbufmode.c (fbufmode): Likewise.
29636         * lib/freadable.c (freadable): Likewise.
29637         * lib/fwritable.c (fwritable): Likewise.
29638         * lib/freading.c (freading): Likewise.
29639         * lib/fwriting.c (fwriting): Likewise.
29640         * lib/freadahead.c (freadahed): Likewise.
29641         * lib/fpurge.c (fpurge): Likewise.
29642         * lib/fseeko.c (rpl_fseeko): Likewise.
29643
29644 2007-10-03  Bruno Haible  <bruno@clisp.org>
29645             Jim Meyering  <jim@meyering.net>
29646             Eric Blake  <ebb9@byu.net>
29647
29648         * doc/relocatable.texi: Use @command instead of @program.
29649
29650 2007-10-02  Jim Meyering  <jim@meyering.net>
29651
29652         Perform one more "_.h" -> ".in.h" substitution.
29653         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29654         instead of unistd_.h here, too.
29655
29656 2007-10-01  Bruno Haible  <bruno@clisp.org>
29657
29658         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29659         Needed for the alloca-opt module.
29660
29661 2007-09-30  Bruno Haible  <bruno@clisp.org>
29662
29663         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29664         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29665         alloca_.h.
29666         * lib/argz.in.h: Renamed from lib/argz_.h.
29667         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29668         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29669         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29670         byteswap_.h.
29671         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29672         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29673         dirent_.h.
29674         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29675         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29676         fcntl_.h.
29677         * lib/float.in.h: Renamed from lib/float_.h.
29678         * modules/float (Files, Makefile.am): Use float.in.h instead of
29679         float_.h.
29680         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29681         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29682         fnmatch_.h.
29683         * lib/getopt.in.h: Renamed from lib/getopt_.h.
29684         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29685         getopt_.h.
29686         * lib/glob.in.h: Renamed from lib/glob_.h.
29687         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29688         * lib/iconv.in.h: Renamed from lib/iconv_.h.
29689         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29690         iconv_.h.
29691         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29692         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29693         inttypes_.h.
29694         * lib/locale.in.h: Renamed from lib/locale_.h.
29695         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29696         locale_.h.
29697         * lib/math.in.h: Renamed from lib/math_.h.
29698         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29699         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29700         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29701         of netinet_in_.h. Add dependency.
29702         * lib/poll.in.h: Renamed from lib/poll_.h.
29703         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29704         * lib/search.in.h: Renamed from lib/search_.h.
29705         * modules/search (Files, Makefile.am): Use search.in.h instead of
29706         search_.h.
29707         * lib/signal.in.h: Renamed from lib/signal_.h.
29708         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29709         _signal.h.
29710         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29711         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29712         stdbool_.h.
29713         * lib/stdint.in.h: Renamed from lib/stdint_.h.
29714         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29715         stdint_.h.
29716         * lib/stdio.in.h: Renamed from lib/stdio_.h.
29717         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29718         stdio_.h.
29719         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29720         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29721         stdlib_.h.
29722         * lib/string.in.h: Renamed from lib/string_.h.
29723         * modules/string (Files, Makefile.am): Use string.in.h instead of
29724         string_.h.
29725         * doc/gnulib-tool.texi (Initial import): Update.
29726         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29727         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29728         of sys_select_.h. Add dependency.
29729         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29730         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29731         of sys_socket_.h.
29732         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29733         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29734         sys_stat_.h.
29735         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29736         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29737         sys_time_.h.
29738         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29739         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29740         sysexits_.h.
29741         * lib/time.in.h: Renamed from lib/time_.h.
29742         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29743         * lib/unistd.in.h: Renamed from lib/unistd_.h.
29744         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29745         unistd_.h.
29746         * lib/wchar.in.h: Renamed from lib/wchar_.h.
29747         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29748         wchar_.h.
29749         * lib/wctype.in.h: Renamed from lib/wctype_.h.
29750         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29751         wctype_.h.
29752         * build-aux/bootstrap (slurp): Update.
29753         * lib/.cppi-disable: Update.
29754
29755 2007-09-30  Bruno Haible  <bruno@clisp.org>
29756
29757         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
29758         Needed on BeOS.
29759
29760 2007-09-30  Bruno Haible  <bruno@clisp.org>
29761
29762         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
29763
29764 2007-09-29  Bruno Haible  <bruno@clisp.org>
29765
29766         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
29767
29768 2007-09-29  Bruno Haible  <bruno@clisp.org>
29769
29770         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
29771         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
29772         * build-aux/install-reloc: Compile also areadlink.c.
29773         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
29774
29775 2007-09-29  Bruno Haible  <bruno@clisp.org>
29776
29777         * gnulib-tool (func_emit_initmacro_done): Indentation.
29778
29779 2007-09-29  Bruno Haible  <bruno@clisp.org>
29780
29781         * README: Add CVS checkout update instructions.
29782         Info from Bob Proulx <bob@proulx.com>.
29783
29784 2007-09-28  Eric Blake  <ebb9@byu.net>
29785
29786         Provide move-if-change.
29787         * build-aux/move-if-change: New file, based on best practice
29788         rather than any canonical upstream location.
29789
29790 2007-09-28  Jim Meyering  <jim@meyering.net>
29791
29792         Fix canonicalize loop-detection corner case.
29793         Do not attempt to stat the symlink values stored via seen_triple.
29794         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
29795         on linux-2.6.18, (but not 2.6.22).
29796         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
29797         triple_compare.  The former compares dev,ino,filename, while the latter
29798         would actually stat dirname(filename) when dev and ino were equal.
29799         * lib/hash-triple.c: Install <string.h>.
29800         (STREQ): Define.
29801         (triple_compare_ino_str): New function.
29802         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
29803
29804 2007-09-28  Eric Blake  <ebb9@byu.net>
29805
29806         Enforce that AC_REPLACE_FUNCS files exist.
29807         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
29808         override check for typos.
29809
29810         Fix test-closein on Solaris 10.
29811         * tests/test-closein.c (main): Don't assume stdin can be inherited
29812         closed on all systems.
29813         * tests/test-closein.sh: Likewise.
29814         Reported by Piotr Tarnowski.
29815
29816 2007-09-28  Jim Meyering  <jim@meyering.net>
29817
29818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
29819
29820 2007-09-27  Jim Meyering  <jim@meyering.net>
29821
29822         canonicalize: Avoid a false-positive cycle failure.
29823         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
29824         Sort.  Remove cycle-check.
29825         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
29826         not cycle-check.h.
29827         (seen_triple): New function.
29828         (canonicalize_filename_mode): Use it instead of cycle-check.
29829         * tests/test-canonicalize.c: Add a test for this bug.
29830         * tests/test-canonicalize.sh: Set up and run the test.
29831
29832         New module, file-set, from coreutils.
29833         * modules/file-set: Define it.
29834         * lib/file-set.c, lib/file-set.h: Implement.
29835
29836         New module, hash-triple, from coreutils.
29837         * modules/hash-triple: Define it.
29838         * lib/hash-triple.c, lib/hash-triple.h: Implement.
29839
29840 2007-09-25  Eric Blake  <ebb9@byu.net>
29841
29842         Fix strerror on Interix.
29843         * lib/string_.h (strerror): Declare replacement.
29844         * doc/functions/strerror.texi (strerror): Document the Interix
29845         shortcoming.
29846         * modules/string (Makefile.am): Support new hooks.
29847         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
29848         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
29849         gl_FUNC_STRERROR_SEPARATE.
29850         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
29851         * lib/strerror.c (rpl_strerror): Provide replacement.
29852         * modules/strerror (Depends-on): Add string.
29853         (configure.ac): Detect use of module.
29854         * tests/test-strerror.c: New file.
29855         * modules/strerror-tests: New test module.
29856         * modules/argp (Depends-on): Add strerror.
29857         * modules/error (Depends-on): Likewise.
29858         Reported by Martin Koeppe.
29859
29860 2007-09-24  Bruno Haible  <bruno@clisp.org>
29861
29862         * README: Update git instructions.
29863
29864 2007-09-24  Eric Blake  <ebb9@byu.net>
29865
29866         Revert fpending breakage from 2007-09-08.
29867         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
29868         __fpending.c.
29869
29870 2007-09-24  Jim Meyering  <jim@meyering.net>
29871
29872         filenamecat.c: Add a test.
29873         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
29874         showing how the function works when DIR is the empty string.
29875
29876 2007-09-21  Simon Josefsson  <simon@josefsson.org>
29877
29878         * tests/test-canonicalize.sh: Turn on executable bit.
29879
29880 2007-09-19  Eric Blake  <ebb9@byu.net>
29881
29882         * README: Update CVS instructions.
29883
29884 2007-09-18  Bruno Haible  <bruno@clisp.org>
29885
29886         * modules/areadlink: New file.
29887         * lib/areadlink.h (areadlink): New declaration.
29888         * lib/areadlink.c: New file, based on lib/xreadlink.c.
29889
29890 2007-09-17  Jim Meyering  <jim@meyering.net>
29891
29892         * lib/savewd.c (ESTALE) [!defined]: Define.
29893         Reported to be required on Interix by Martin Koeppe.
29894
29895 2007-09-17  Bruno Haible  <bruno@clisp.org>
29896
29897         * gnulib-tool (func_version): Use $version.
29898
29899 2007-09-16  Bruno Haible  <bruno@clisp.org>
29900
29901         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
29902         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
29903         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
29904         Reported by Greg Schafer <gschafer@zip.com.au>.
29905
29906 2007-09-15  Bruno Haible  <bruno@clisp.org>
29907
29908         * gnulib-tool (sed): Try a little harder to make bash understand the
29909         alias.
29910         Reported by Bruce Korb <bruce.korb@gmail.com>.
29911
29912 2007-09-13  Eric Blake  <ebb9@byu.net>
29913
29914         * ChangeLog: Remove conflict markers.
29915
29916 2007-09-13  Simon Josefsson  <simon@josefsson.org>
29917
29918         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
29919         Reported by Bruno Haible <bruno@clisp.org>.
29920
29921 2007-09-12  Bruno Haible  <bruno@clisp.org>
29922
29923         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
29924         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
29925         is not defined.
29926
29927 2007-09-12  Eric Blake  <ebb9@byu.net>
29928
29929         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
29930         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
29931         Autoconf definition.
29932         * modules/euidaccess (Depends-on): Add extensions, for
29933         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
29934         * modules/fnmatch (Depends-on): Likewise.
29935         * modules/getaddrinfo (Depends-on): Likewise.
29936         * modules/getdelim (Depends-on): Likewise.
29937         * modules/getline (Depends-on): Likewise.
29938         * modules/getsubopt (Depends-on): Likewise.
29939         * modules/gettext (Depends-on): Likewise.
29940         * modules/group-member (Depends-on): Likewise.
29941         * modules/mbchar (Depends-on): Likewise.
29942         * modules/memmem (Depends-on): Likewise.
29943         * modules/mempcpy (Depends-on): Likewise.
29944         * modules/memrchr (Depends-on): Likewise.
29945         * modules/pagealign_alloc (Depends-on): Likewise.
29946         * modules/readutmp (Depends-on): Likewise.
29947         * modules/stpcpy (Depends-on): Likewise.
29948         * modules/stpncpy (Depends-on): Likewise.
29949         * modules/strchrnul (Depends-on): Likewise.
29950         * modules/strndup (Depends-on): Likewise.
29951         * modules/strsep (Depends-on): Likewise.
29952         * modules/strverscmp (Depends-on): Likewise.
29953         * modules/vasprintf (Depends-on): Likewise.
29954         * modules/wcwidth (Depends-on): Likewise.
29955         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
29956         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
29957         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
29958         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
29959         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29960         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29961         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
29962         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
29963         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
29964         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29965         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29966         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29967         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29968         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29969         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
29970         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29971         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29972         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29974         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29976         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29977         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29978         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
29979         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
29980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29981         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
29982         so that lock.m4 can be used in gettext without extensions module.
29983
29984 2007-09-11  Bruno Haible  <bruno@clisp.org>
29985
29986         * m4/isc-posix.m4: Remove file.
29987         Suggested by Eric Blake.
29988
29989 2007-09-11  Eric Blake  <ebb9@byu.net>
29990
29991         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
29992
29993 2007-09-10  Bruno Haible  <bruno@clisp.org>
29994
29995         * posix-modules: Fix typo in error message.
29996         Reported by Matt <mkraai@beckman.com>.
29997
29998 2007-09-09  Bruno Haible  <bruno@clisp.org>
29999
30000         * doc/functions/getdelim.texi: Update list of platforms lacking the
30001         function.
30002         * doc/functions/getline.texi: Likewise.
30003
30004 2007-09-09  Jim Meyering  <jim@meyering.net>
30005
30006         * lib/hash.c (hash_initialize): Detect calloc failure.
30007         Reported by Bruno Haible.
30008
30009 2007-09-09  Bruno Haible  <bruno@clisp.org>
30010
30011         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30012         malloc or realloc fails.
30013
30014 2007-09-09  Bruno Haible  <bruno@clisp.org>
30015
30016         * modules/getcwd (Depends-on): Add malloc-posix.
30017         * modules/glob (Depends-on): Likewise.
30018         * modules/putenv (Depends-on): Likewise.
30019         * modules/strdup (Depends-on): Likewise.
30020         * modules/getdelim (Depends-on): Add realloc-posix.
30021         * modules/read-file (Depends-on): Likewise.
30022
30023 2007-09-09  Bruno Haible  <bruno@clisp.org>
30024
30025         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30026         (gl_FUNC_MALLOC_POSIX): Require it.
30027         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30028         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30029         * modules/realloc (Files): Add m4/malloc.m4.
30030         * modules/calloc (Files): Likewise.
30031
30032 2007-09-09  Bruno Haible  <bruno@clisp.org>
30033
30034         * modules/malloc-posix: New file.
30035         * modules/malloc (Depends-on): Add malloc-posix.
30036         * lib/malloc.c: Include errno.h.
30037         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30038         and a POSIX-compatible malloc into a single function. Set ENOMEM
30039         when returning NULL.
30040         * m4/malloc.m4: New file.
30041         * doc/functions/malloc.texi: Mention the malloc-posix module.
30042         * lib/stdlib_.h (malloc): New declaration.
30043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30044         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30045         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30046         and HAVE_MALLOC_POSIX.
30047
30048 2007-09-09  Bruno Haible  <bruno@clisp.org>
30049
30050         * modules/realloc-posix: New file.
30051         * modules/realloc (Depends-on): Add realloc-posix.
30052         * lib/realloc.c: Include errno.h.
30053         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30054         and a POSIX-compatible realloc into a single function. Set ENOMEM
30055         when returning NULL.
30056         * m4/realloc.m4: New file.
30057         * doc/functions/realloc.texi: Mention the realloc-posix module.
30058         * lib/stdlib_.h (realloc): New declaration.
30059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30060         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30061         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30062         and HAVE_REALLOC_POSIX.
30063
30064 2007-09-09  Bruno Haible  <bruno@clisp.org>
30065
30066         * modules/calloc-posix: New file.
30067         * modules/calloc (Depends-on): Add calloc-posix.
30068         * lib/calloc.c: Include errno.h.
30069         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30070         and a POSIX-compatible calloc into a single function. Set ENOMEM
30071         when returning NULL.
30072         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30073         * doc/functions/calloc.texi: Mention the calloc-posix module.
30074         * lib/stdlib_.h (calloc): New declaration.
30075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30076         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30077         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30078         and HAVE_CALLOC_POSIX.
30079
30080 2007-09-09  Bruno Haible  <bruno@clisp.org>
30081
30082         Allow for modules to show an arbitrary notice.
30083         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30084         * gnulib-tool: New option --extract-notice.
30085         (func_usage): Document it.
30086         (sed_extract_prog): Update.
30087         (func_get_notice): New function.
30088         (func_modules_notice): New function.
30089         (func_import, func_create_testdir): Invoke it.
30090         Suggested by Jim Meyering.
30091
30092 2007-09-09  Bruno Haible  <bruno@clisp.org>
30093
30094         * gnulib-tool: New options --verbose, --quiet.
30095         (func_usage): Document them.
30096         (verbose): New variable.
30097         (func_execute_command): New function.
30098         (func_import): Don't show the module list and the file list if
30099         $verbose < 0.
30100         (func_create_testdir): Likewise. Use func_execute_command.
30101         (func_create_megatestdir): Use func_execute_command.
30102
30103 2007-09-08  Bruno Haible  <bruno@clisp.org>
30104
30105         * gnulib-tool (func_import): Prefer rsync over wget when available,
30106         for fetching the PO files.
30107
30108 2007-09-08  Bruno Haible  <bruno@clisp.org>
30109
30110         * posix-modules: New file. Portions copied from gnulib-tool.
30111         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30112
30113 2007-09-08  Jim Meyering  <jim@meyering.net>
30114
30115         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30116         * lib/fpending.h: Rename from __fpending.h.
30117         * lib/fpending.c: Rename from __fpending.c.
30118         Include "fpending.h", not "__fpending.h".
30119         * lib/__fpending.h, lib/__fpending.c: Remove files.
30120         * modules/fpending (Files): Reflect new file names.
30121         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30122
30123 2007-09-08  Bruno Haible  <bruno@clisp.org>
30124
30125         * m4/inttypes-h.m4: Remove stub file.
30126
30127 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30128
30129         * doc/headers/stdint.texi: Discuss #include_next issue.
30130
30131 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30132
30133         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30134
30135 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30136
30137         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30138         in variable name.
30139
30140 2007-09-03  Jim Meyering  <jim@meyering.net>
30141
30142         New module: git-version-gen.
30143         * modules/git-version-gen: New file.
30144
30145         Import changes from coreutils for bootstrap script.
30146
30147         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30148
30149         bootstrap: uses rsync to download the .po files
30150         * build-aux/bootstrap (po_download_command_format): New global.
30151         (download_po_files): Use rsync.
30152         (update_po_files): Don't remove .po files after download,
30153         so future rsync runs can take advantage of the copies.
30154
30155         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30156
30157         Solve the unnecessary-.po-file-regeneration problem once and for all.
30158         * build-aux/bootstrap (download_po_files): New function, renamed from
30159         get_translations.  Now, downloads, but doesn't update LINGUAS.
30160         (update_po_files): New function.
30161
30162         bootstrap: Ignore more.
30163         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30164         uniwidth to e.g., lib/.gitignore.
30165         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30166
30167         * build-aux/bootstrap: New setting: vc_ignore.
30168         (insert_sorted_if_absent): Create $file if absent.
30169         Adapt to new, possibly empty, list: $vc_ignore.
30170
30171         bootstrap: generate more ignorable names
30172         * build-aux/bootstrap (slurp): When generating ignorable names,
30173         also map .sin to .sed, .gperf to .c, and .y to .c.
30174
30175 2007-09-03  Jim Meyering  <jim@meyering.net>
30176
30177         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30178         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30179
30180 2007-09-02  Bruno Haible  <bruno@clisp.org>
30181
30182         Fix mis-recognition of 'mcs' on QNX 6.
30183         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30184         output contains the string "Mono".
30185         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30186         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30187
30188 2007-09-01  Bruno Haible  <bruno@clisp.org>
30189
30190         Fix collision between uniwidth/* and linebreak modules.
30191         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30192         u32_width): Remove declarations.
30193         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30194         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30195         streq3, streq2, streq1, streq0): Remove functions.
30196         (STREQ): Remove macro.
30197         (is_cjk_encoding): Remove function.
30198         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30199         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30200         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30201         * NEWS: Document the change.
30202
30203 2007-09-01  Bruno Haible  <bruno@clisp.org>
30204
30205         * lib/streq.h: Add double-inclusion guard.
30206
30207 2007-09-01  Karl Berry  <karl@gnu.org>
30208
30209         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30210
30211 2007-08-28  Jim Meyering  <jim@meyering.net>
30212
30213         Rename mreadlink_with_size to areadlink_with_size.
30214         * NEWS: Document the change.
30215         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30216         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30217         * lib/mreadlink.h: Rename this to...
30218         * lib/areadlink.h: ...this.
30219         * modules/mreadlink-with-size: Rename this to...
30220         * modules/areadlink-with-size: ...this.
30221         * lib/canonicalize.c: Reflect the renaming.
30222         * modules/canonicalize: Likewise.
30223
30224 2007-08-26  Bruno Haible  <bruno@clisp.org>
30225
30226         * gnulib-tool (func_import): When deciding which files to remove,
30227         consider also dangling symbolic links.
30228         Reported by Eric Blake.
30229
30230 2007-08-26  Bruno Haible  <bruno@clisp.org>
30231
30232         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30233
30234 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30235
30236         * lib/readline.c: Don't include getline.h, the prototype is now
30237         found in stdio.h.
30238
30239 2007-08-23  Jim Meyering  <jim@meyering.net>
30240
30241         Getdelim touchup.
30242         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30243         around the funlockfile call, since funlockfile never sets errno.
30244         Don't set errno upon failed realloc.
30245
30246 2007-08-22  Eric Blake  <ebb9@byu.net>
30247
30248         Getline touchups.
30249         * lib/getdelim.c (getdelim): Revert regression that required *n to
30250         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30251         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30252         getdelim, rather than whether implementation is missing.
30253         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30254         * lib/stdio_.h (getline): Also declare if replacement is
30255         required.
30256         * doc/functions/getdelim.texi: New file.
30257         * doc/functions/getline.texi: Likewise.
30258         * doc/gnulib.texi (Function Substitutes): Add new files.
30259         Reported by Bruno Haible.
30260
30261 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30262
30263         * users.txt: Add Guile.
30264
30265 2007-08-22  Eric Blake  <ebb9@byu.net>
30266
30267         * tests/test-getdelim.c (main): Use remove, not unlink.
30268         * tests/test-getline.c (main): Likewise.
30269
30270         Move getline and getdelim into stdio.h, per POSIX 200x.
30271         * modules/getline (Files): Remove getline.h.
30272         (Depends-on): Add stdio.
30273         (configure.ac): Add module indicator.
30274         * modules/getdelim (Files): Remove getdelim.h.
30275         (Depends-on): Add stdio.
30276         (configure.ac): Add module indicator.
30277         * modules/stdio (Makefile.am): Work with new indicators.
30278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30280         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30281         * lib/getdelim.h: Delete.
30282         * lib/getline.h: Delete.
30283         * lib/stdio_.h (getdelim, getline): Declare.
30284         * modules/getdelim-tests: New module.
30285         * modules/getline-tests: Likewise.
30286         * tests/test-getdelim.c: New file.
30287         * tests/test-getline.c: Likewise.
30288         * NEWS: Document the change.
30289         * lib/getline.c: Update choice of header.
30290         * lib/csharpcomp.c: Likewise.
30291         * lib/getpass.c: Likewise.
30292         * lib/javacomp.c: Likewise.
30293         * lib/javaversion.c: Likewise.
30294         * lib/yesno.c: Likewise.
30295         * lib/getdelim.c: Likewise.
30296         (getdelim): Set errno on failure, and avoid memory leak.
30297
30298 2007-08-19  Bruno Haible  <bruno@clisp.org>
30299
30300         * modules/closein (Depends-on): Add freadahead.
30301         * lib/closein.c: Include freadahead.h.
30302         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30303         is zero.
30304
30305 2007-08-19  Bruno Haible  <bruno@clisp.org>
30306
30307         * modules/freadahead-tests: New file.
30308         * tests/test-freadahead.sh: New file.
30309         * tests/test-freadahead.c: New file.
30310
30311         * modules/freadahead: New file.
30312         * lib/freadahead.h: New file.
30313         * lib/freadahead.c: New file.
30314         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30315         fbufmode, fpurge, freadable, fwritable.
30316
30317 2007-08-19  Eric Blake  <ebb9@byu.net>
30318
30319         Test yesno in combination with closein.
30320         * lib/yesno.c (yesno): Document use of stdin.
30321         * modules/yesno-tests (Files): New module.
30322         * tests/test-yesno.c (main): New file.
30323         * tests/test-yesno.sh: Likewise.
30324
30325 2007-08-19  Bruno Haible  <bruno@clisp.org>
30326
30327         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30328         * lib/fseeko.c (rpl_fseeko): Likewise.
30329         * lib/fseterr.c (fseterr): Likewise.
30330
30331 2007-08-19  Bruno Haible  <bruno@clisp.org>
30332
30333         * tests/test-lseek.c (main): Disable a test for BeOS.
30334         * doc/functions/lseek.texi: Document the BeOS bug.
30335
30336 2007-08-19  Bruno Haible  <bruno@clisp.org>
30337             Eric Blake  <ebb9@byu.net>
30338
30339         * lib/lseek.c: Include <sys/stat.h>.
30340         (rpl_lseek): Add workaround code also for Unix platforms.
30341         Needed for BeOS.
30342         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30343         * doc/functions/lseek.texi: Document BeOS definiency.
30344
30345 2007-08-18  Bruno Haible  <bruno@clisp.org>
30346
30347         * modules/fstrcmp-tests: New file.
30348         * tests/test-fstrcmp.c: New file.
30349
30350 2007-08-18  Bruno Haible  <bruno@clisp.org>
30351
30352         * modules/fstrcmp: New file, from GNU gettext with modifications.
30353         * lib/fstrcmp.h: New file, from GNU gettext.
30354         * lib/fstrcmp.c: New file, from GNU gettext.
30355         * MODULES.html.sh (String handling): Add fstrcmp.
30356
30357 2007-08-18  Bruno Haible  <bruno@clisp.org>
30358
30359         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30360         'bool'.
30361         (diag, compareseq): Remove const from the ctxt argument.
30362         (USE_HEURISTIC): Undefine at the end.
30363
30364 2007-08-18  Jim Meyering  <jim@meyering.net>
30365
30366         New file: lib/idcache.h
30367         * NEWS: Mention the addition.
30368         * modules/idcache (Files): Add lib/idcache.h
30369         * lib/idcache.c: Include "idcache.h".
30370         Don't include <sys/types.h>.
30371         Add a FIXME comment.
30372         Move file-scoped "static" declarations to the top.
30373         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30374
30375 2007-08-17  Bruno Haible  <bruno@clisp.org>
30376         and Paul Eggert  <eggert@cs.ucla.edu>
30377
30378         * MODULES.html.sh: Add diffseq.
30379         * modules/diffseq: New file.
30380         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30381         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30382
30383 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30384
30385         Import changes from coreutils for bootstrap script.
30386
30387         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30388
30389         * build-aux/bootstrap (slurp): Work even in environments where
30390         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30391         current code does not slurp files whose names start with ".", and
30392         this looks like it might be a troublesome area.
30393
30394         2007-07-11  Jim Meyering  <jim@meyering.net>
30395
30396         If there's a GPL vN copyright comment, require that N == 3.
30397
30398         2007-07-08  Jim Meyering  <jim@meyering.net>
30399
30400         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30401         * build-aux/bootstrap (mam_template): Move definition out of loop.
30402
30403         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30404
30405         * build-aux/bootstrap (symlink_to_dir): Rename function from
30406         symlink_to_gnulib.  Add a directory parameter.  Update all
30407         callers.
30408         (cp_mark_as_generated): Also check for -- and link to -- files in
30409         gl/.
30410
30411         2007-07-08  Jim Meyering  <jim@meyering.net>
30412
30413         Adapt to deeper hierarchy in gnulib.
30414         * build-aux/bootstrap (symlink_to_dir): If the destination
30415         directory doesn't exist, create it. This is required at least for
30416         "lib/uniwidth/cjk.h".
30417
30418         2007-05-15  Jim Meyering  <jim@meyering.net>
30419
30420         * build-aux/bootstrap: Now that generated Makefile.am files
30421         are no longer under version control, they must be created at
30422         bootstrap time.
30423
30424 2007-08-14  Ben Pfaff  <blp@gnu.org>
30425
30426         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30427
30428 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30429
30430         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30431         given the changes below.
30432         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30433         even on hosts that have padding bits beyond the supported 64.
30434
30435 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30436
30437         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30438         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30439         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30440         depends on it.
30441         (xstrtol_error): Remove.
30442         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30443         but with a different signature.
30444         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30445         * lib/xstrtol-error.c: Include exitfail.h.
30446         (xstrtol_fatal): New function, with a different signature from the
30447         old xstrtol_error, so that the caller need not worry about passing
30448         in an exit status, or about storage management of the option argument.
30449         (xstrtol_error): Now a static function.  Redo signature to
30450         implement xstrtol_fatal.  Output the correct number of hyphens in
30451         front of the option so that the caller need not worry about
30452         storage management.
30453         (N_): New macro.
30454         (_): Remove; not used now.
30455         * modules/xstrtol: Depend on getopt.
30456         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30457         of old STRTOL_FATAL_ERROR macro.
30458         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30459         of test program.
30460         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30461         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30462
30463 2007-08-08  Eric Blake  <ebb9@byu.net>
30464
30465         * lib/xstrtol-error.c: Add missing include.
30466
30467         Move xstrtol messages into gnulib domain, when --pobase is used.
30468         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30469         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30470         * modules/xstrtol (Files): Distribute new file.
30471         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30472         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30473         * tests/test-xstrtol.c: ...into new file.
30474         * tests/test-xstrtoul.c: Also test xstrtoul.
30475         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30476         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30477         * tests/test-xstrtol.sh: Drive the tests.
30478         * tests/test-xstrtoimax.sh: Likewise.
30479         * tests/test-xstrtoumax.sh: Likewise.
30480         * modules/xstrtol-tests: New module.
30481         * modules/xstrtoimax-tests: Likewise.
30482         * modules/xstrtoumax-tests: Likewise.
30483
30484 2007-08-08  Jim Meyering  <jim@meyering.net>
30485
30486         New function: mfile_name_concat.
30487         * lib/filenamecat.c (mfile_name_concat): New function, just like
30488         file_name_concat, but return NULL upon failure rather than exiting
30489         with a diagnostic.
30490         * lib/filenamecat.h: Declare it.
30491
30492 2007-08-07  Bruno Haible  <bruno@clisp.org>
30493
30494         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30495         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30496         warning from gcc.
30497         Reported by Eric Blake.
30498
30499 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30500
30501         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30502         * modules/crypto/arcfour (License): Likewise.
30503         * modules/crypto/des-tests (License): Likewise.
30504         * modules/crypto/gc-arctwo-tests (License): Likewise.
30505         * modules/crypto/gc-des-tests (License): Likewise.
30506         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30507         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30508         * modules/crypto/gc-md2-tests (License): Likewise.
30509         * modules/crypto/gc-md4-tests (License): Likewise.
30510         * modules/crypto/gc-md5-tests (License): Likewise.
30511         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30512         * modules/crypto/gc-rijndael-tests (License): Likewise.
30513         * modules/crypto/gc-sha1-tests (License): Likewise.
30514         * modules/crypto/gc-tests (License): Likewise.
30515         * modules/crypto/hmac-md5 (License): Likewise.
30516         * modules/crypto/hmac-sha1 (License): Likewise.
30517         * modules/crypto/md2-tests (License): Likewise.
30518         * modules/crypto/md4-tests (License): Likewise.
30519         * modules/crypto/md5 (License): Likewise.
30520         * modules/crypto/rijndael (License): Likewise.
30521         * modules/crypto/sha1 (License): Likewise.
30522         * modules/memxor (License): Likewise.
30523
30524 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30525         and Bruno Haible  <bruno@clisp.org>
30526
30527         * NEWS: Describe interface changes to human, xstrtol.
30528         * lib/human.h: Include <xstrtol.h>.
30529         (human_options): Return enum strtol_error, not int.  Remove
30530         bool arg; take int * instead.
30531         * lib/human.c: Don't include "gettext.h".
30532         (_): Remove; no longer used.
30533         Don't include <xstrtol.h>, since human.h does it.
30534         (human_options): Adjust to abovementioned interface changes.
30535         Do not report error to stderr; that's now the caller's
30536         responsibility.
30537         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30538         interface change.
30539         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30540         Str, Argument_type_string.  All uses changed.  Put " argument"
30541         in diagnostics to make them clearer.  Change wording of suffix
30542         message for clarity.
30543         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30544         Argument_type_string.
30545         (STRTOL_FATAL_WARN): Remove; no longer used.
30546         * modules/human (Depends-on): Remove gettext-h.
30547
30548 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30549
30550         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30551
30552 2007-07-31  Bruno Haible  <bruno@clisp.org>
30553
30554         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30555         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30556         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30557
30558 2007-07-31  Bruno Haible  <bruno@clisp.org>
30559
30560         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30561         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30562
30563 2007-07-30  Bruno Haible  <bruno@clisp.org>
30564
30565         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30566         * modules/c-ctype (License): Likewise.
30567         * modules/c-strcase (License): Likewise.
30568         * modules/check-version (License): Likewise.
30569         * modules/iconv (License): Likewise.
30570         * modules/iconv_open (License): Likewise.
30571         * modules/read-file (License): Likewise.
30572         * modules/striconv (License): Likewise.
30573         * modules/strverscmp (License): Likewise.
30574         * modules/vasprintf (License): Likewise.
30575         * modules/crypto/des (License): Likewise.
30576         * modules/crypto/gc (License): Likewise.
30577         * modules/crypto/gc-arcfour (License): Likewise.
30578         * modules/crypto/gc-arctwo (License): Likewise.
30579         * modules/crypto/gc-des (License): Likewise.
30580         * modules/crypto/gc-hmac-md5 (License): Likewise.
30581         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30582         * modules/crypto/gc-md2 (License): Likewise.
30583         * modules/crypto/gc-md4 (License): Likewise.
30584         * modules/crypto/gc-md5 (License): Likewise.
30585         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30586         * modules/crypto/gc-random (License): Likewise.
30587         * modules/crypto/gc-rijndael (License): Likewise.
30588         * modules/crypto/gc-sha1 (License): Likewise.
30589         * modules/crypto/md2 (License): Likewise.
30590         * modules/crypto/md4 (License): Likewise.
30591
30592 2007-07-30  Jim Meyering  <jim@meyering.net>
30593
30594         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30595         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30596         it has valid stat data.  This bug would cause du not to count the
30597         sizes of inaccessible directories.
30598         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30599         in <http://bugzilla.redhat.com/250077>.
30600
30601 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30602             Bruno Haible  <bruno@clisp.org>
30603
30604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30605         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30606         #include_next, gives a diagnostic about it, but reports no error in
30607         the exit code.
30608         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30609
30610 2007-07-24  Ben Pfaff  <blp@gnu.org>
30611
30612         Improve name: "count-one-bits" is better than "popcount".
30613         * MODULES.html.sh: Update name.
30614         * lib/popcount.h: Renamed lib/count-one-bits.h.
30615         (popcount): Renamed count_one_bits.
30616         (popcountl): Renamed count_one_bits_l.
30617         (popcountll): Renamed count_one_bits_ll.
30618         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30619         * modules/popcount: Renamed module/count-one-bits.
30620         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30621         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30622
30623 2007-07-23  Ben Pfaff  <blp@gnu.org>
30624
30625         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30626         better code generation, and add U to large constants to avoid
30627         warnings, in non-GCC case.
30628         Suggested by Bruno Haible.
30629
30630 2007-07-23  Ben Pfaff  <blp@gnu.org>
30631
30632         * lib/popcount.h: Use verify_true instead of if...abort.
30633         * modules/popcount: Depend on verify module.
30634         Suggested by Jim Meyering.
30635
30636 2007-07-23  Bruno Haible  <bruno@clisp.org>
30637
30638         * gnulib-tool (func_import): Create a .cvsignore file also when the
30639         directory is not yet in CVS but the toplevel directory is. When
30640         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30641         Reported by Karl Berry.
30642
30643 2007-07-22  Ben Pfaff  <blp@gnu.org>
30644
30645         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30646         case.
30647         Suggested by Eric Blake.
30648
30649 2007-07-22  Ben Pfaff  <blp@gnu.org>
30650
30651         New module: popcount.
30652         * MODULES.html.sh: Add popcount.
30653         * modules/popcount: New file.
30654         * modules/popcount-tests: New file.
30655         * tests/test-popcount.c: New file.
30656         * lib/popcount.h: New file.
30657         * m4/popcount.m4: New file.
30658
30659 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30660
30661         * build-aux/announce-gen: Update to GPLv3.
30662
30663         * build-aux/config.guess: Update from config.
30664
30665 2007-07-21  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30668         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30669
30670 2007-07-20  Jim Meyering  <jim@meyering.net>
30671
30672         * check-module: Diagnose a self-dependency.
30673
30674 2007-07-19  Bruno Haible  <bruno@clisp.org>
30675
30676         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30677         empty.
30678         Reported by Eric Blake.
30679
30680 2007-07-18  Bruno Haible  <bruno@clisp.org>
30681
30682         * gnulib-tool: New options --po-base, --po-domain.
30683         (func_usage): Document them.
30684         (pobase, po_domain): New variables.
30685         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30686         DEFAULT_TEXT_DOMAIN.
30687         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30688         (func_import): Consider pobase and po_domain. Create a po/ directory.
30689         (func_create_testdir): Set pobase and po_domain to empty.
30690         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30691         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30692
30693 2007-07-18  Bruno Haible  <bruno@clisp.org>
30694
30695         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30696         EXTRA_DIST augmentation for files in build-aux/.
30697
30698 2007-07-16  Bruno Haible  <bruno@clisp.org>
30699
30700         * modules/lseek (License): Use the synonymous term "LGPLv2+".
30701         * modules/getdelim (License): Likewise.
30702
30703 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30704
30705         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30706         * modules/d-type (License): Likewise.
30707         * modules/extensions (License): Likewise.
30708         * modules/fnmatch (License): Likewise.
30709         * modules/fseeko (License): Likewise.
30710         * modules/getaddrinfo (License): Likewise.
30711         * modules/getline (License): Likewise.
30712         * modules/getlogin_r (License): Likewise.
30713         * modules/getpass (License): Likewise.
30714         * modules/gettimeofday (License): Likewise.
30715         * modules/glob (License): Likewise.
30716         * modules/inet_ntop (License): Likewise.
30717         * modules/malloc (License): Likewise.
30718         * modules/malloca (License): Likewise.
30719         * modules/memmem (License): Likewise.
30720         * modules/mempcpy (License): Likewise.
30721         * modules/memset (License): Likewise.
30722         * modules/minmax (License): Likewise.
30723         * modules/mktime (License): Likewise.
30724         * modules/netinet_in (License): Likewise.
30725         * modules/pathmax (License): Likewise.
30726         * modules/poll (License): Likewise.
30727         * modules/regex (License): Likewise.
30728         * modules/snprintf (License): Likewise.
30729         * modules/stdbool (License): Likewise.
30730         * modules/stdint (License): Likewise.
30731         * modules/stdio (License): Likewise.
30732         * modules/strcase (License): Likewise.
30733         * modules/strcasestr (License): Likewise.
30734         * modules/strdup (License): Likewise.
30735         * modules/string (License): Likewise.
30736         * modules/strndup (License): Likewise.
30737         * modules/strnlen (License): Likewise.
30738         * modules/strpbrk (License): Likewise.
30739         * modules/strptime (License): Likewise.
30740         * modules/strsep (License): Likewise.
30741         * modules/sys_select (License): Likewise.
30742         * modules/sys_socket (License): Likewise.
30743         * modules/sys_stat (License): Likewise.
30744         * modules/sys_time (License): Likewise.
30745         * modules/time (License): Likewise.
30746         * modules/time_r (License): Likewise.
30747         * modules/timegm (License): Likewise.
30748         * modules/unistd (License): Likewise.
30749         * modules/vsnprintf (License): Likewise.
30750         * modules/wctype (License): Likewise.
30751
30752 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30753
30754         * modules/argz (License): LGPLv2+.
30755
30756 2007-07-15  Karl Berry  <karl@gnu.org>
30757
30758         * doc/gnulib.texi: revise node structure per new fdl.texi.
30759
30760 2007-07-14  Bruno Haible  <bruno@clisp.org>
30761
30762         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
30763         the output file.
30764         * lib/uniname/uninames.h: Regenerated.
30765
30766 2007-07-14  Karl Berry  <karl@gnu.org>
30767
30768         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
30769         omitting sectioning and index commands.
30770
30771 2007-07-13  Bruno Haible  <bruno@clisp.org>
30772
30773         New gnulib-tool option --more-symlinks.
30774         * gnulib-tool (func_usage): Document --more-symlinks.
30775         (do_copyrights): New variable.
30776         Recognize option --more-symlinks.
30777         (func_import): Don't add a copyright notice transform to
30778         sed_transform_lib_file if do_copyrights is empty.
30779
30780 2007-07-13  Bruno Haible  <bruno@clisp.org>
30781
30782         * lib/vasnprintf.c (decimal_point_char): Define also if
30783         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
30784         && !NEED_PRINTF_DIRECTIVE_A.
30785         Reported by Clemens Koller <clemens.koller@anagramm.de> via
30786         Gary V. Vaughan <gary@gnu.org>.
30787
30788 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
30789
30790         * lib/inttypes_.h: Undo previous change, since it was fixed
30791         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
30792
30793 2007-07-13  Bruno Haible  <bruno@clisp.org>
30794
30795         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
30796         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
30797
30798 2007-07-13  Jim Meyering  <jim@meyering.net>
30799
30800         df: Don't fail for Tru64's "file-on-file mount".
30801         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
30802         so we fall through and use statfs instead.  Details here:
30803         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
30804         Reported by Albert Chin.
30805
30806 2007-07-13  Bruno Haible  <bruno@clisp.org>
30807
30808         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
30809         * modules/configmake (License): Likewise.
30810         * modules/gettext (License): Likewise.
30811         * modules/gettext-h (License): Likewise.
30812         * modules/include_next (License): Likewise.
30813         * modules/link-warning (License): Likewise.
30814         * modules/localcharset (License): Likewise.
30815         * modules/localename (License): Likewise.
30816         * modules/lock (License): Likewise.
30817         * modules/relocatable-lib-lgpl (License): Likewise.
30818         * modules/size_max (License): Likewise.
30819         * modules/vasnprintf (License): Likewise.
30820         * modules/wchar (License): Likewise.
30821         * modules/xsize (License): Likewise.
30822
30823 2007-07-13  Bruno Haible  <bruno@clisp.org>
30824
30825         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
30826         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
30827
30828 2007-07-12  Bruno Haible  <bruno@clisp.org>
30829
30830         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
30831         in the modules files.
30832
30833 2007-07-11  Karl Berry  <karl@gnu.org>
30834
30835         * MODULES.html.sh (func_module): use
30836          sed -e '\|^'"${includefile}"'$|d'
30837          instead of /.../d, to avoid errors on $includefile's containing /.
30838
30839 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
30840
30841         * gnulib-tool (func_import): Avoid duplication of --avoid
30842         statements
30843         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
30844         names to `_' in variable names.
30845
30846 2007-07-10  Eric Blake  <ebb9@byu.net>
30847
30848         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
30849         * NEWS: Document this change.
30850
30851 2007-07-08  Bruno Haible  <bruno@clisp.org>
30852
30853         Update to Unicode 5.0.
30854         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
30855         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
30856         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
30857         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
30858         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
30859         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
30860         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
30861         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
30862         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
30863         U+10A3F, U+1D242..U+1D244.
30864         (nonspacing_table_ind): Update.
30865         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
30866         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
30867
30868 2007-07-08  Bruno Haible  <bruno@clisp.org>
30869
30870         Update to Unicode 5.0.
30871         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
30872         code transform. Extend the name index field of unicode_name_to_code and
30873         unicode_code_to_name from 16 to 24 bits.
30874         * lib/uniname/uniname.c (unicode_character_name,
30875         unicode_name_character): Add the range 0x12xxx to the code transform.
30876         * lib/uniname/uninames.h: Regenerated.
30877         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
30878
30879 2007-07-07  Bruno Haible  <bruno@clisp.org>
30880
30881         * modules/wcwidth-tests: New file.
30882         * tests/test-wcwidth.c: New file.
30883
30884         Work around MacOS X wcwidth() bug.
30885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
30886         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
30887         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
30888         original wcwidth in non-UTF-8 locales.
30889         * modules/wcwidth (Depends-on): Add localcharset, streq,
30890         uniwidth/width.
30891         * doc/functions/wcwidth.texi: Update.
30892
30893 2007-07-07  Bruno Haible  <bruno@clisp.org>
30894
30895         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
30896         (wcwidth): New declaration.
30897         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
30898         macros.
30899         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
30900         here. Prepare for creating <wchar.h> unconditionally.
30901         * modules/wchar (Depends-on): Add link-warning.
30902         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
30903         REPLACE_WCWIDTH, and GL_LINK_WARNING.
30904         * lib/wcwidth.h: Remove file.
30905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
30906         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
30907         * modules/wcwidth (Files): Remove lib/wcwidth.h.
30908         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
30909         (Include): Replace wcwidth.h with <wchar.h>.
30910         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
30911         * lib/mbchar.h: Don't include wcwidth.h.
30912         * lib/mbswidth.c: Likewise.
30913         * NEWS: Mention the change.
30914
30915 2007-07-07  Bruno Haible  <bruno@clisp.org>
30916
30917         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
30918         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
30919         definition with an external declaration.
30920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
30921         defined as a function. Remove AC_C_INLINE requirement.
30922         * modules/wcwidth (Files): Add lib/wcwidth.c.
30923         (Makefile.am): Remove redundant statement.
30924
30925 2007-07-07  Bruno Haible  <bruno@clisp.org>
30926
30927         * MODULES.html.sh (Unicode string functions): Add the new modules.
30928
30929         * tests/uniwidth/test-u32-strwidth.c: New file.
30930         * modules/uniwidth/u32-strwidth-tests: New file.
30931
30932         * lib/uniwidth/u32-strwidth.c: New file.
30933         * modules/uniwidth/u32-strwidth: New file.
30934
30935         * tests/uniwidth/test-u16-strwidth.c: New file.
30936         * modules/uniwidth/u16-strwidth-tests: New file.
30937
30938         * lib/uniwidth/u16-strwidth.c: New file.
30939         * modules/uniwidth/u16-strwidth: New file.
30940
30941         * tests/uniwidth/test-u8-strwidth.c: New file.
30942         * modules/uniwidth/u8-strwidth-tests: New file.
30943
30944         * lib/uniwidth/u8-strwidth.c: New file.
30945         * modules/uniwidth/u8-strwidth: New file.
30946
30947         * tests/uniwidth/test-u32-width.c: New file.
30948         * modules/uniwidth/u32-width-tests: New file.
30949
30950         * lib/uniwidth/u32-width.c: New file.
30951         * modules/uniwidth/u32-width: New file.
30952
30953         * tests/uniwidth/test-u16-width.c: New file.
30954         * modules/uniwidth/u16-width-tests: New file.
30955
30956         * lib/uniwidth/u16-width.c: New file.
30957         * modules/uniwidth/u16-width: New file.
30958
30959         * tests/uniwidth/test-u8-width.c: New file.
30960         * modules/uniwidth/u8-width-tests: New file.
30961
30962         * lib/uniwidth/u8-width.c: New file.
30963         * modules/uniwidth/u8-width: New file.
30964
30965         * tests/uniwidth/test-uc_width.c: New file.
30966         * modules/uniwidth/width-tests: New file.
30967
30968         * lib/uniwidth/width.c: New file, from GNU libiconv.
30969         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
30970         * modules/uniwidth/width: New file.
30971
30972         * lib/uniwidth.h: New file, from GNU libiconv.
30973         * modules/uniwidth/base: New file.
30974
30975 2007-07-07  Bruno Haible  <bruno@clisp.org>
30976
30977         * lib/uniname.h: New file, from GNU gettext.
30978         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
30979         * lib/uniname/uninames.h: New file, from GNU gettext.
30980         * lib/uniname/uniname.c: New file, from GNU gettext.
30981         * tests/uniname/test-uninames.sh: New file.
30982         * tests/uniname/test-uninames.c: New file, from GNU gettext.
30983         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
30984         * modules/uniname/base: New file.
30985         * modules/uniname/uniname: New file.
30986         * modules/uniname/uniname-tests: New file.
30987         * MODULES.html.sh (Unicode string functions): Add the new modules.
30988
30989 2007-07-06  Bruno Haible  <bruno@clisp.org>
30990
30991         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
30992
30993 2007-07-06  Bruno Haible  <bruno@clisp.org>
30994
30995         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
30996         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
30997         includes <cygwin/sys_time.h> which includes <sys/select.h> which
30998         include <sys/time.h>.
30999         Reported by Eric Blake.
31000
31001 2007-07-06  Eric Blake  <ebb9@byu.net>
31002
31003         Fix testing canonicalize on cygwin.
31004         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31005         Revert patch from 2007-06-19.
31006         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31007         canonicalize module is also in use.
31008         * tests/test-canonicalize.c: New file.
31009         * tests/test-canonicalize.sh: Likewise.
31010         * modules/canonicalize-tests: Likewise.
31011
31012 2007-07-06  Jim Meyering  <jim@meyering.net>
31013
31014         * lib/getugroups.c (getugroups): Detect getgrent failure.
31015         Adjust comment to reflect reality: this function may return -1.
31016
31017 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31018
31019         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31020         the new TP address.
31021         (usage): Fix typo
31022         (gnulib_mk): New variable.
31023
31024 2007-07-05  Jim Meyering  <jim@meyering.net>
31025
31026         Don't let endgrent clobber errno, no matter how improbable.
31027         * lib/getugroups.c (getugroups): Save and restore errno around
31028         endgrent call.
31029
31030         Close the group DB even when failing with 2^31 or more members.
31031         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31032
31033 2007-07-04  Jim Meyering  <jim@meyering.net>
31034
31035         * lib/getugroups.h: New file.
31036         * lib/getugroups.c: Include "getugroups.h".
31037         Remove uses of "register" keyword.
31038         Move local variable, "cp", down into scope where used.
31039         Give "username" parameter the "const" attribute.
31040         * modules/getugroups (Files): Add lib/getugroups.h
31041
31042 2007-07-04  Karl Berry  <karl@gnu.org>
31043
31044         * MODULES.html.sh (func_all_modules): Complete rename of
31045         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31046
31047 2007-07-02  Bruno Haible  <bruno@clisp.org>
31048
31049         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31050         mode, when inttypes.h comes from gnulib.
31051         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31052
31053 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31054
31055         * NEWS: Mention lgpl module name change.
31056
31057         * modules/lgpl-2.1: Renamed from lgpl.
31058
31059         * NEWS: Mention gpl module name change.
31060
31061         * modules/gpl-3.0: New file, based on gpl-2.0.
31062
31063         * modules/gpl-2.0: Renamed from gpl.
31064
31065         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31066         doc/gpl-2.0.texi.
31067
31068 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31069
31070         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31071         #define __STDC_LIMIT_MACROS temporarily while including
31072         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31073         Problem reported by Joel E. Denny in
31074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31075
31076 2007-07-01  Bruno Haible  <bruno@clisp.org>
31077
31078         * lib/unistdio.h: New file.
31079         * lib/unistdio/u-asnprintf.h: New file.
31080         * lib/unistdio/u-asprintf.h: New file.
31081         * lib/unistdio/u-printf-args.c: New file.
31082         * lib/unistdio/u-printf-args.h: New file.
31083         * lib/unistdio/u-printf-parse.h: New file.
31084         * lib/unistdio/u-snprintf.h: New file.
31085         * lib/unistdio/u-sprintf.h: New file.
31086         * lib/unistdio/u-vasprintf.h: New file.
31087         * lib/unistdio/u-vsnprintf.h: New file.
31088         * lib/unistdio/u-vsprintf.h: New file.
31089         * lib/unistdio/ulc-asnprintf.c: New file.
31090         * lib/unistdio/ulc-asprintf.c: New file.
31091         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31092         * lib/unistdio/ulc-printf-parse.c: New file.
31093         * lib/unistdio/ulc-snprintf.c: New file.
31094         * lib/unistdio/ulc-sprintf.c: New file.
31095         * lib/unistdio/ulc-vasnprintf.c: New file.
31096         * lib/unistdio/ulc-vasprintf.c: New file.
31097         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31098         * lib/unistdio/ulc-vsnprintf.c: New file.
31099         * lib/unistdio/ulc-vsprintf.c: New file.
31100         * lib/unistdio/u8-asnprintf.c: New file.
31101         * lib/unistdio/u8-asprintf.c: New file.
31102         * lib/unistdio/u8-printf-parse.c: New file.
31103         * lib/unistdio/u8-snprintf.c: New file.
31104         * lib/unistdio/u8-sprintf.c: New file.
31105         * lib/unistdio/u8-vasnprintf.c: New file.
31106         * lib/unistdio/u8-vasprintf.c: New file.
31107         * lib/unistdio/u8-vsnprintf.c: New file.
31108         * lib/unistdio/u8-vsprintf.c: New file.
31109         * lib/unistdio/u8-u8-asnprintf.c: New file.
31110         * lib/unistdio/u8-u8-asprintf.c: New file.
31111         * lib/unistdio/u8-u8-snprintf.c: New file.
31112         * lib/unistdio/u8-u8-sprintf.c: New file.
31113         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31114         * lib/unistdio/u8-u8-vasprintf.c: New file.
31115         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31116         * lib/unistdio/u8-u8-vsprintf.c: New file.
31117         * lib/unistdio/u16-asnprintf.c: New file.
31118         * lib/unistdio/u16-asprintf.c: New file.
31119         * lib/unistdio/u16-printf-parse.c: New file.
31120         * lib/unistdio/u16-snprintf.c: New file.
31121         * lib/unistdio/u16-sprintf.c: New file.
31122         * lib/unistdio/u16-vasnprintf.c: New file.
31123         * lib/unistdio/u16-vasprintf.c: New file.
31124         * lib/unistdio/u16-vsnprintf.c: New file.
31125         * lib/unistdio/u16-vsprintf.c: New file.
31126         * lib/unistdio/u16-u16-asnprintf.c: New file.
31127         * lib/unistdio/u16-u16-asprintf.c: New file.
31128         * lib/unistdio/u16-u16-snprintf.c: New file.
31129         * lib/unistdio/u16-u16-sprintf.c: New file.
31130         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31131         * lib/unistdio/u16-u16-vasprintf.c: New file.
31132         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31133         * lib/unistdio/u16-u16-vsprintf.c: New file.
31134         * lib/unistdio/u32-asnprintf.c: New file.
31135         * lib/unistdio/u32-asprintf.c: New file.
31136         * lib/unistdio/u32-printf-parse.c: New file.
31137         * lib/unistdio/u32-snprintf.c: New file.
31138         * lib/unistdio/u32-sprintf.c: New file.
31139         * lib/unistdio/u32-vasnprintf.c: New file.
31140         * lib/unistdio/u32-vasprintf.c: New file.
31141         * lib/unistdio/u32-vsnprintf.c: New file.
31142         * lib/unistdio/u32-vsprintf.c: New file.
31143         * lib/unistdio/u32-u32-asnprintf.c: New file.
31144         * lib/unistdio/u32-u32-asprintf.c: New file.
31145         * lib/unistdio/u32-u32-snprintf.c: New file.
31146         * lib/unistdio/u32-u32-sprintf.c: New file.
31147         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31148         * lib/unistdio/u32-u32-vasprintf.c: New file.
31149         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31150         * lib/unistdio/u32-u32-vsprintf.c: New file.
31151         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31152         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31153         * tests/unistdio/test-ulc-printf1.h: New file.
31154         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31155         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31156         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31157         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31158         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31159         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31160         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31161         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31162         * tests/unistdio/test-u8-asnprintf1.c: New file.
31163         * tests/unistdio/test-u8-asnprintf1.h: New file.
31164         * tests/unistdio/test-u8-printf1.h: New file.
31165         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31166         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31167         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31168         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31169         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31170         * tests/unistdio/test-u8-vasprintf1.c: New file.
31171         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31172         * tests/unistdio/test-u8-vsprintf1.c: New file.
31173         * tests/unistdio/test-u16-asnprintf1.c: New file.
31174         * tests/unistdio/test-u16-asnprintf1.h: New file.
31175         * tests/unistdio/test-u16-printf1.h: New file.
31176         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31177         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31178         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31179         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31180         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31181         * tests/unistdio/test-u16-vasprintf1.c: New file.
31182         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31183         * tests/unistdio/test-u16-vsprintf1.c: New file.
31184         * tests/unistdio/test-u32-asnprintf1.c: New file.
31185         * tests/unistdio/test-u32-asnprintf1.h: New file.
31186         * tests/unistdio/test-u32-printf1.h: New file.
31187         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31188         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31189         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31190         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31191         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31192         * tests/unistdio/test-u32-vasprintf1.c: New file.
31193         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31194         * tests/unistdio/test-u32-vsprintf1.c: New file.
31195         * modules/unistdio/base: New file.
31196         * modules/unistdio/u-printf-args: New file.
31197         * modules/unistdio/ulc-asnprintf: New file.
31198         * modules/unistdio/ulc-asprintf: New file.
31199         * modules/unistdio/ulc-fprintf: New file.
31200         * modules/unistdio/ulc-printf-parse: New file.
31201         * modules/unistdio/ulc-snprintf: New file.
31202         * modules/unistdio/ulc-sprintf: New file.
31203         * modules/unistdio/ulc-vasnprintf: New file.
31204         * modules/unistdio/ulc-vasprintf: New file.
31205         * modules/unistdio/ulc-vfprintf: New file.
31206         * modules/unistdio/ulc-vsnprintf: New file.
31207         * modules/unistdio/ulc-vsprintf: New file.
31208         * modules/unistdio/u8-asnprintf: New file.
31209         * modules/unistdio/u8-asprintf: New file.
31210         * modules/unistdio/u8-printf-parse: New file.
31211         * modules/unistdio/u8-snprintf: New file.
31212         * modules/unistdio/u8-sprintf: New file.
31213         * modules/unistdio/u8-vasnprintf: New file.
31214         * modules/unistdio/u8-vasprintf: New file.
31215         * modules/unistdio/u8-vsnprintf: New file.
31216         * modules/unistdio/u8-vsprintf: New file.
31217         * modules/unistdio/u8-u8-asnprintf: New file.
31218         * modules/unistdio/u8-u8-asprintf: New file.
31219         * modules/unistdio/u8-u8-snprintf: New file.
31220         * modules/unistdio/u8-u8-sprintf: New file.
31221         * modules/unistdio/u8-u8-vasnprintf: New file.
31222         * modules/unistdio/u8-u8-vasprintf: New file.
31223         * modules/unistdio/u8-u8-vsnprintf: New file.
31224         * modules/unistdio/u8-u8-vsprintf: New file.
31225         * modules/unistdio/u16-asnprintf: New file.
31226         * modules/unistdio/u16-asprintf: New file.
31227         * modules/unistdio/u16-printf-parse: New file.
31228         * modules/unistdio/u16-snprintf: New file.
31229         * modules/unistdio/u16-sprintf: New file.
31230         * modules/unistdio/u16-vasnprintf: New file.
31231         * modules/unistdio/u16-vasprintf: New file.
31232         * modules/unistdio/u16-vsnprintf: New file.
31233         * modules/unistdio/u16-vsprintf: New file.
31234         * modules/unistdio/u16-u16-asnprintf: New file.
31235         * modules/unistdio/u16-u16-asprintf: New file.
31236         * modules/unistdio/u16-u16-snprintf: New file.
31237         * modules/unistdio/u16-u16-sprintf: New file.
31238         * modules/unistdio/u16-u16-vasnprintf: New file.
31239         * modules/unistdio/u16-u16-vasprintf: New file.
31240         * modules/unistdio/u16-u16-vsnprintf: New file.
31241         * modules/unistdio/u16-u16-vsprintf: New file.
31242         * modules/unistdio/u32-asnprintf: New file.
31243         * modules/unistdio/u32-asprintf: New file.
31244         * modules/unistdio/u32-printf-parse: New file.
31245         * modules/unistdio/u32-snprintf: New file.
31246         * modules/unistdio/u32-sprintf: New file.
31247         * modules/unistdio/u32-vasnprintf: New file.
31248         * modules/unistdio/u32-vasprintf: New file.
31249         * modules/unistdio/u32-vsnprintf: New file.
31250         * modules/unistdio/u32-vsprintf: New file.
31251         * modules/unistdio/u32-u32-asnprintf: New file.
31252         * modules/unistdio/u32-u32-asprintf: New file.
31253         * modules/unistdio/u32-u32-snprintf: New file.
31254         * modules/unistdio/u32-u32-sprintf: New file.
31255         * modules/unistdio/u32-u32-vasnprintf: New file.
31256         * modules/unistdio/u32-u32-vasprintf: New file.
31257         * modules/unistdio/u32-u32-vsnprintf: New file.
31258         * modules/unistdio/u32-u32-vsprintf: New file.
31259         * modules/unistdio/ulc-asnprintf-tests: New file.
31260         * modules/unistdio/ulc-vasnprintf-tests: New file.
31261         * modules/unistdio/ulc-vasprintf-tests: New file.
31262         * modules/unistdio/ulc-vsnprintf-tests: New file.
31263         * modules/unistdio/ulc-vsprintf-tests: New file.
31264         * modules/unistdio/u8-asnprintf-tests: New file.
31265         * modules/unistdio/u8-vasnprintf-tests: New file.
31266         * modules/unistdio/u8-vasprintf-tests: New file.
31267         * modules/unistdio/u8-vsnprintf-tests: New file.
31268         * modules/unistdio/u8-vsprintf-tests: New file.
31269         * modules/unistdio/u16-asnprintf-tests: New file.
31270         * modules/unistdio/u16-vasnprintf-tests: New file.
31271         * modules/unistdio/u16-vasprintf-tests: New file.
31272         * modules/unistdio/u16-vsnprintf-tests: New file.
31273         * modules/unistdio/u16-vsprintf-tests: New file.
31274         * modules/unistdio/u32-asnprintf-tests: New file.
31275         * modules/unistdio/u32-vasnprintf-tests: New file.
31276         * modules/unistdio/u32-vasprintf-tests: New file.
31277         * modules/unistdio/u32-vsnprintf-tests: New file.
31278         * modules/unistdio/u32-vsprintf-tests: New file.
31279         * MODULES.html.sh (Unicode string functions): Add the new modules.
31280
31281 2007-07-01  Bruno Haible  <bruno@clisp.org>
31282
31283         * lib/sprintf.c (sprintf): Limit the available length estimation,
31284         to avoid address wraparound.
31285         * lib/vsprintf.c (vsprintf): Likewise.
31286         * modules/sprintf-posix (Dependencies): Add stdint.
31287         * modules/vsprintf-posix (Dependencies): Likewise.
31288
31289 2007-07-01  Bruno Haible  <bruno@clisp.org>
31290
31291         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31292         Windows PATH as well. Conservative double-quoting. Comments.
31293
31294 2007-07-01  Bruno Haible  <bruno@clisp.org>
31295             Eric Blake  <ebb9@byu.net>
31296             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31297
31298         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31299         empty components in $PATH, denoting '.'.
31300
31301 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31302
31303         * gnulib-tool: Fix indentation.
31304         (func_create_megatestdir): Likewise.
31305         Report by Bruno Haible.
31306
31307 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31308
31309         Sync from Automake.
31310         * build-aux/gnupload: Fix shell portability issues with for loops.
31311         Report by Karl Berry.
31312
31313 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31314
31315         * build-aux/maint.mk (POURL): Use translationproject.org.
31316
31317 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31318             Bruno Haible  <bruno@clisp.org>
31319
31320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31321         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31322         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31323         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31324         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31325
31326 2007-06-27  Bruno Haible  <bruno@clisp.org>
31327
31328         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31329         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31330
31331 2007-06-26  Karl Berry  <karl@gnu.org>
31332
31333         * MODULES.html.sh: remove xreadlink-with-size.
31334
31335 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31336
31337         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31338         method that I hope also handles the double-include problem noted
31339         by Bruno Haible in
31340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31341
31342 2007-06-23  Bruno Haible  <bruno@clisp.org>
31343
31344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31345         Don't let the 'mostlyclean' target fail if the last subdirectory could
31346         not be removed.
31347         Reported by Karl Berry.
31348
31349 2007-06-23  Bruno Haible  <bruno@clisp.org>
31350
31351         * gnulib-tool (echo): Add a speedier workaround for ksh.
31352         * tests/test-echo.sh: Likewise.
31353
31354 2007-06-23  Bruno Haible  <bruno@clisp.org>
31355
31356         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31357         * tests/test-echo.sh: Likewise.
31358
31359 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31360
31361         * gnulib-tool (IFS): Initialize early, so we don't set it to
31362         empty later.
31363         (self_abspathname): Rewrite algorithm to set it, reindent.
31364         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31365         (func_create_megatestdir): Merge some sed scripts.
31366
31367 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31368
31369         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31370         exposed by Sun Studio 11 cc on Solaris 8.
31371
31372 2007-06-22  Bruno Haible  <bruno@clisp.org>
31373
31374         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31375         backslashes.
31376         * tests/test-echo.sh: New file.
31377
31378 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31379
31380         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31381         simplify `sed_replace_build_aux' scripts, they are portable but
31382         echoing them with `echo' is not.
31383         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31384
31385 2007-06-21  Karl Berry  <karl@gnu.org>
31386
31387         * config/srclist.txt: guess we can't handle the licenses via
31388         srclist at the moment.
31389
31390 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31391
31392         * MODULES.html.sh: Add include_next.
31393         * modules/include_next: New file.
31394
31395 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31396
31397         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31398         INCLUDE_NEXT.
31399         (gl_CHECK_NEXT_HEADERS): New macro.
31400         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31401         the obsolescent gl_ABSOLUTE_HEADER.
31402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31403         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31404         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31405         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31406         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31407         * m4/math_h.m4 (gl_MATH_H): Likewise.
31408         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31409         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31410         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31411         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31412         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31413         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31414         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31416         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31418         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31419         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31420         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31421         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31422         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31423         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31424         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31425         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31426         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31427         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31428         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31429         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31430         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31431         * lib/float_.h: Likewise.
31432         * lib/inttypes_.h: Likewise.
31433         * lib/math_.h: Likewise.
31434         * lib/search_.h: Likewise.
31435         * lib/signal_.h: Likewise.
31436         * lib/stdint_.h: Likewise.
31437         * lib/stdio_.h: Likewise.
31438         * lib/stdlib_.h: Likewise.
31439         * lib/string_.h: Likewise.
31440         * lib/sys_stat_.h: Likewise.
31441         * lib/sys_time_.h: Likewise.
31442         * lib/time_.h: Likewise.
31443         * lib/unistd_.h: Likewise.
31444         * lib/wchar_.h: Likewise.
31445         * lib/wctype_.h: Likewise.
31446         * lib/dirent_.h: Likewise.
31447         * lib/iconv_.h: Likewise.
31448         * lib/locale_.h: Likewise.
31449         * lib/netinet_in_.h: Likewise.
31450         * lib/sys_select_.h: Likewise.
31451         * lib/sys_socket_.h: Likewise.
31452         * lib/sysexits_.h: Likewise.
31453         * modules/fcntl (Depends-on): Depend on include_next, not
31454         absolute_header.
31455         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31456         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31457         * modules/fchdir: Likewise.
31458         * modules/float: Likewise.
31459         * modules/iconv_open: Likewise.
31460         * modules/inttypes: Likewise.
31461         * modules/locale: Likewise.
31462         * modules/math: Likewise.
31463         * modules/netinet_in: Likewise.
31464         * modules/search: Likewise.
31465         * modules/signal: Likewise.
31466         * modules/stdint: Likewise.
31467         * modules/stdio: Likewise.
31468         * modules/stdlib: Likewise.
31469         * modules/string: Likewise.
31470         * modules/sys_select: Likewise.
31471         * modules/sys_socket: Likewise.
31472         * modules/sys_stat: Likewise.
31473         * modules/sys_time: Likewise.
31474         * modules/sysexits: Likewise.
31475         * modules/time: Likewise.
31476         * modules/unistd: Likewise.
31477         * modules/wchar: Likewise.
31478         * modules/wctype: Likewise.
31479         * modules/sys_stat: Change maintainer to "all".
31480         * modules/unistd: Likewise.
31481
31482 2007-06-20  Karl Berry  <karl@gnu.org>
31483
31484         * config/srclist.txt: track www changes in license files.
31485
31486 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31487
31488         * build-aux/bootstrap: Remove stray dot.
31489         Make sure build_aux settings are honored when linking
31490         gnulib_extra_files.
31491
31492 2007-06-19  Eric Blake  <ebb9@byu.net>
31493
31494         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31495         Allow compilation on cygwin.
31496
31497 2007-06-19  Jim Meyering  <jim@meyering.net>
31498
31499         xreadlink-with-size: Remove module.  No longer used.
31500         Ex-callers now use xreadlink or mreadlink-with-size.
31501         * modules/xreadlink-with-size: Remove module.
31502         * lib/xreadlink-with-size.c: Remove file.
31503         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31504         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31505         just before the function definition *is* accurate.
31506
31507         Eliminate one way canonicalize_filename_mode could exit.
31508         * lib/canonicalize.c (canonicalize_filename_mode):
31509         Use mreadlink_with_size, not xreadlink_with_size.
31510
31511 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31512
31513         Detect porting problems to FreeBSD/arm, which has time_t wider than
31514         long int.  Original problem reported for GNU diff by Xin Li in
31515         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31516         * modules/getdate (Depends-on): Add intprops, verify.
31517         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31518         is an integer type no wider than long int.
31519
31520 2007-06-18  Jim Meyering  <jim@meyering.net>
31521
31522         New module: mreadlink-with-size.
31523         * MODULES.html.sh: Add mreadlink-with-size.
31524         * modules/mreadlink-with-size: New module
31525         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31526         not xreadlink-with-size.
31527         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31528
31529 2007-06-16  Bruno Haible  <bruno@clisp.org>
31530
31531         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31532         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31533         Reported by Gary V. Vaughan <gary@gnu.org>.
31534
31535 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31536
31537         Revamp lchown so that it lives in unistd.h where it belongs.
31538         * lib/lchown.h: Remove.
31539         * lib/dirchownmod.c: Don't include lib/lchown.h.
31540         * lib/fchownat.c: Likewise.
31541         * lib/openat.c: Likewise.
31542         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31543         does not follow symlinks.
31544         (EOPNOTSUPP): Define if not defined.
31545         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31546         is defined to 0.
31547         (lchown): New decl.
31548         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31549         Do not check for lchown decl.
31550         Set REPLACE_LCHOWN.
31551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31552         REPLACE_LCHOWN.
31553         * modules/chown: Make it clear it follows symlinks.
31554         * modules/lchown: Make it clear it doesn't follow symlinks.
31555         (Files): Remove lib/lchown.h
31556         (Depends-on): Add unistd.
31557         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31558         (Include): Include <unistd.h>, not "lchown.h".
31559         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31560         REPLACE_LCHOWN.
31561
31562 2007-06-15  Jim Meyering  <jim@meyering.net>
31563
31564         Change license (GPL to LGPL) of fsusage and dependents.
31565         * modules/fsusage (License): Change to LGPL.
31566         * modules/full-read (License): Likewise.
31567         * modules/full-write (License): Likewise.
31568         * modules/safe-read (License): Likewise.
31569         * modules/safe-write (License): Likewise.
31570
31571 2007-06-14  Ben Pfaff  <blp@gnu.org>
31572
31573         Missing part of allocsa -> malloca transition.
31574         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31575         gl_MALLOCA.
31576
31577 2007-06-12  Bruno Haible  <bruno@clisp.org>
31578
31579         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31580         to ia64, x86_64, i386.
31581         Reported by Eric Blake.
31582
31583 2007-06-12  Bruno Haible  <bruno@clisp.org>
31584
31585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31586         cross-compiling to x86_64.
31587
31588 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31589
31590         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31591         glitch reported by Ralf Wildenhues in
31592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31593
31594         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31595         Vin Shelton.
31596
31597 2007-06-11  Bruno Haible  <bruno@clisp.org>
31598
31599         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31600         replacement string.
31601         Reported by Eric Blake.
31602
31603 2007-06-10  Bruno Haible  <bruno@clisp.org>
31604
31605         Prepare vasnprintf code for use with Unicode strings.
31606         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31607         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31608         TYPE_U32_STRING.
31609         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31610         a_u32_string variants.
31611         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31612         * lib/printf-args.c: Don't include config.h and the specification
31613         header if PRINTF_FETCHARGS is already defined.
31614         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31615         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31616         TYPE_U16_STRING, TYPE_U32_STRING.
31617         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31618         u16_directive, u16_directives, u32_directive, u32_directives): New
31619         types.
31620         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31621         New declarations.
31622         * lib/printf-parse.c: Don't include config.h and the specification
31623         header if PRINTF_PARSE is already defined. Eliminate the set of
31624         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31625         them now. Include c-ctype.h.
31626         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31627         directive and CHAR_T_ONLY_ASCII.
31628         * lib/vasnprintf.c: Don't include config.h and the specification header
31629         if VASNPRINTF is already defined.
31630         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31631         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31632         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31633         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31634         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31635         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31636         code accordingly.
31637         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31638         pad_ourselves also in this case, with the 'c' and 's' directives, and
31639         with a different notion of "width".
31640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31641
31642 2007-06-10  Bruno Haible  <bruno@clisp.org>
31643
31644         * modules/unistr/u32-mbsnlen: New file.
31645         * lib/unistr/u32-mbsnlen.c: New file.
31646
31647         * modules/unistr/u16-mbsnlen: New file.
31648         * lib/unistr/u16-mbsnlen.c: New file.
31649
31650         * modules/unistr/u8-mbsnlen: New file.
31651         * lib/unistr/u8-mbsnlen.c: New file.
31652
31653         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31654         declarations.
31655
31656 2007-06-10  Bruno Haible  <bruno@clisp.org>
31657
31658         * lib/string_.h (mbsnlen): New declaration.
31659         * lib/mbsnlen.c: New file.
31660         * m4/mbsnlen.m4: New file.
31661         * modules/mbsnlen: New file.
31662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31663         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31664         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31665
31666 2007-06-10  Bruno Haible  <bruno@clisp.org>
31667
31668         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31669
31670 2007-06-10  Bruno Haible  <bruno@clisp.org>
31671
31672         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31673         * lib/mbuiter.h: Likewise.
31674
31675 2007-06-10  Bruno Haible  <bruno@clisp.org>
31676
31677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31678         declaration.
31679
31680 2007-06-10  Karl Berry  <karl@gnu.org>
31681
31682         * config/srclist.txt: remove gettext entries, Bruno prefers
31683         to update individually.
31684
31685 2007-06-10  Bruno Haible  <bruno@clisp.org>
31686
31687         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31688         'maxlen'. Ensure only length + width bytes are allocated, not
31689         length + 1 + width.
31690
31691 2007-06-09  Bruno Haible  <bruno@clisp.org>
31692
31693         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31694         (CHAR_T): Remove macro.
31695         (VASNPRINTF): Update.
31696
31697 2007-06-09  Bruno Haible  <bruno@clisp.org>
31698
31699         * MODULES.html.sh (Unicode string functions): Add the new modules.
31700
31701         * modules/uniconv/u32-conv-to-enc: New file.
31702         * lib/uniconv/u32-conv-to-enc.c: New file.
31703         * modules/uniconv/u32-conv-to-enc-tests: New file.
31704         * tests/uniconv/test-u32-conv-to-enc.c: New file.
31705
31706         * modules/uniconv/u16-conv-to-enc: New file.
31707         * lib/uniconv/u16-conv-to-enc.c: New file.
31708         * lib/uniconv/u-conv-to-enc.h: New file.
31709         * modules/uniconv/u16-conv-to-enc-tests: New file.
31710         * tests/uniconv/test-u16-conv-to-enc.c: New file.
31711
31712         * modules/uniconv/u8-conv-to-enc: New file.
31713         * lib/uniconv/u8-conv-to-enc.c: New file.
31714         * modules/uniconv/u8-conv-to-enc-tests: New file.
31715         * tests/uniconv/test-u8-conv-to-enc.c: New file.
31716
31717         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31718         u32_conv_to_encoding): New declarations.
31719
31720 2007-06-09  Bruno Haible  <bruno@clisp.org>
31721
31722         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31723
31724 2007-06-09  Bruno Haible  <bruno@clisp.org>
31725
31726         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31727         * modules/malloca: Renamed from modules/allocsa, updated.
31728         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31729         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31730         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31731         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31732         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31733         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31734         * modules/xmalloca: Renamed from modules/xallocsa, updated.
31735         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31736         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31737         * modules/c-strcasestr (Depends-on): Update.
31738         * lib/c-strcasestr.c: Update.
31739         * modules/c-strstr (Depends-on): Update.
31740         * lib/c-strstr.c: Update.
31741         * modules/canonicalize-lgpl (Depends-on): Update.
31742         * lib/canonicalize-lgpl.c: Update.
31743         * modules/clean-temp (Depends-on): Update.
31744         * lib/clean-temp.c: Update.
31745         * modules/csharpcomp (Depends-on): Update.
31746         * lib/csharpcomp.c: Update.
31747         * modules/csharpexec (Depends-on): Update.
31748         * lib/csharpexec.c: Update.
31749         * modules/javacomp (Depends-on): Update.
31750         * lib/javacomp.c: Update.
31751         * modules/javaexec (Depends-on): Update.
31752         * lib/javaexec.c: Update.
31753         * modules/mbscasestr (Depends-on): Update.
31754         * lib/mbscasestr.c: Update.
31755         * modules/mbsstr (Depends-on): Update.
31756         * lib/mbsstr.c: Update.
31757         * modules/setenv (Depends-on): Update.
31758         * lib/setenv.c: Update.
31759         * modules/strcasestr (Depends-on): Update.
31760         * lib/strcasestr.c: Update.
31761         * modules/striconveha (Depends-on): Update.
31762         * lib/striconveha.c: Update.
31763         * modules/relocatable-prog-wrapper (Files): Update.
31764         * lib/relocwrapper.c: Update.
31765         * build-aux/install-reloc: Update.
31766         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
31767
31768 2007-06-08  Bruno Haible  <bruno@clisp.org>
31769
31770         Port to uClibc.
31771         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
31772         * lib/fpurge.c (fpurge): Likewise.
31773         * lib/freading.c (freading): Likewise.
31774         * lib/fseeko.c (rpl_fseeko): Likewise.
31775         * lib/fseterr.c (fseterr): Likewise.
31776         * lib/fwriting.c (fwriting): Likewise.
31777         * tests/test-fflush.c (main): Avoid a failure on uClibc.
31778
31779 2007-06-08  Bruno Haible  <bruno@clisp.org>
31780
31781         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
31782         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
31783         * modules/gettext (Files): Add m4/intlmacosx.m4.
31784
31785 2007-06-07  Bruno Haible  <bruno@clisp.org>
31786
31787         * modules/localename-tests: New file.
31788         * tests/test-localename.c: New file.
31789
31790         New module 'localename'.
31791         * lib/localename.h: New file.
31792         * lib/localename.c: New file, from GNU gettext.
31793         * m4/localename.m4: New file.
31794         * modules/localename: New file.
31795
31796 2007-06-07  Bruno Haible  <bruno@clisp.org>
31797
31798         Work around the lack of <wchar.h> on some builds of uClibc.
31799         * doc/headers/wchar.texi: Update.
31800         * lib/wchar_.h: Include <wchar.h> only if it exists.
31801         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
31802         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
31803         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
31804         doesn't exist.
31805         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
31806         * modules/mbfile (Depends-on): Add wchar.
31807         * modules/mbiter (Depends-on): Likewise.
31808         * modules/mbuiter (Depends-on): Likewise.
31809         Reported by Simon Josefsson.
31810
31811 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31812
31813         Work around problem reported by Steven M. Schweda in
31814         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
31815         Tru64 5.1B with the Compaq compiler environment installed declares
31816         an 'isblank' function but does not define it in the C library.
31817         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
31818         * lib/regex_internal.h (isblank): Likewise.
31819         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
31820         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31821
31822 2007-06-05  Bruno Haible  <bruno@clisp.org>
31823
31824         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
31825         ia64.
31826         * modules/printf-safe: New file.
31827         * modules/fprintf-posix (Depends-on): Add printf-safe.
31828         * modules/printf-posix (Depends-on): Likewise.
31829         * modules/snprintf-posix (Depends-on): Likewise.
31830         * modules/sprintf-posix (Depends-on): Likewise.
31831         * modules/vasnprintf-posix (Depends-on): Likewise.
31832         * modules/vasprintf-posix (Depends-on): Likewise.
31833         * modules/vfprintf-posix (Depends-on): Likewise.
31834         * modules/vprintf-posix (Depends-on): Likewise.
31835         * modules/vsnprintf-posix (Depends-on): Likewise.
31836         * modules/vsprintf-posix (Depends-on): Likewise.
31837         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31838         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
31839         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
31840         "no" on i386, x86_64, ia64.
31841         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
31842         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31843         on i386, x86_64, ia64.
31844         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
31845         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31846         on i386, x86_64, ia64.
31847         * tests/test-vasnprintf-posix.c: Include float.h.
31848         (LDBL80_WORDS): New macro.
31849         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31850         on i386, x86_64, ia64.
31851         * tests/test-vasprintf-posix.c: Include float.h.
31852         (LDBL80_WORDS): New macro.
31853         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31854         on i386, x86_64, ia64.
31855         * tests/test-snprintf-posix.c: Include float.h.
31856         * tests/test-sprintf-posix.c: Likewise.
31857         * tests/test-vsnprintf-posix.c: Likewise.
31858         * tests/test-vsprintf-posix.c: Likewise.
31859
31860 2007-06-05  Bruno Haible  <bruno@clisp.org>
31861
31862         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
31863         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
31864         non-IEEE numbers on i386, x86_64, ia64.
31865         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
31866         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
31867         * tests/test-isnanl.h: Include float.h.
31868         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
31869
31870 2007-06-05  Bruno Haible  <bruno@clisp.org>
31871
31872         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
31873         also the %a / %A. Handle the %a / %A code before this extra handling.
31874
31875 2007-06-05  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
31878         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
31879
31880 2007-06-05  Bruno Haible  <bruno@clisp.org>
31881
31882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
31883         typo in variable name.
31884
31885 2007-06-05  Eric Blake  <ebb9@byu.net>
31886
31887         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
31888         Reported by Simon Josefsson.
31889
31890 2007-06-04  Bruno Haible  <bruno@clisp.org>
31891
31892         Avoid test failures on some PowerPC platforms.
31893         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
31894         Define differently for PowerPC.
31895         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
31896         Reported by Gary V. Vaughan <gary@gnu.org>.
31897
31898 2007-06-02  Bruno Haible  <bruno@clisp.org>
31899
31900         Fix test-stdint failure on FreeBSD/ia64.
31901         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
31902         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
31903         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
31904         * doc/headers/stdint.texi: Update.
31905
31906 2007-06-01  Bruno Haible  <bruno@clisp.org>
31907
31908         * tests/test-binary-io.c (main): Pass a third argument to open().
31909         Reported by Gary V. Vaughan <gary@gnu.org>.
31910
31911 2007-06-01  Bruno Haible  <bruno@clisp.org>
31912
31913         * doc/functions/frexpl.texi: Update for mingw.
31914
31915 2007-06-01  Bruno Haible  <bruno@clisp.org>
31916
31917         * tests/test-lseek.c (main): Disable test of errno for invalid third
31918         argument.
31919         * doc/functions/lseek.texi: Update.
31920         Reported by Gary V. Vaughan <gary@gnu.org>.
31921
31922 2007-05-28  Bruno Haible  <bruno@clisp.org>
31923
31924         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
31925
31926 2007-05-31  Eric Blake  <ebb9@byu.net>
31927
31928         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
31929         cross compiling.
31930
31931 2007-05-30  Eric Blake  <ebb9@byu.net>
31932         and Bruno Haible  <bruno@clisp.org>
31933
31934         Work around mingw test failures exposed by m4-1.4.9b.
31935         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
31936         * tests/test-unistd.c: Disable uid_t and git_t tests for the
31937         moment.
31938
31939 2007-05-30  Bruno Haible  <bruno@clisp.org>
31940
31941         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
31942         assuming that they are closed. Needed on HP-UX 11.
31943
31944 2007-05-29  Bruno Haible  <bruno@clisp.org>
31945
31946         Fix a problem with #include_next.
31947         * lib/dirent_.h: Split the double-inclusion guard.
31948         * lib/fcntl_.h: Likewise.
31949         * lib/float_.h: Likewise.
31950         * lib/iconv_.h: Likewise.
31951         * lib/inttypes_.h: Likewise.
31952         * lib/locale_.h: Likewise.
31953         * lib/math_.h: Likewise.
31954         * lib/netinet_in_.h: Likewise.
31955         * lib/search_.h: Likewise.
31956         * lib/signal_.h: Likewise.
31957         * lib/stdint_.h: Likewise.
31958         * lib/stdio_.h: Likewise.
31959         * lib/stdlib_.h: Likewise.
31960         * lib/string_.h: Likewise.
31961         * lib/sys_select_.h: Likewise.
31962         * lib/sys_socket_.h: Likewise.
31963         * lib/sys_stat_.h: Likewise.
31964         * lib/sys_time_.h: Likewise.
31965         * lib/sysexits_.h: Likewise.
31966         * lib/time_.h: Likewise.
31967         * lib/unistd_.h: Likewise.
31968         * lib/wchar_.h: Likewise.
31969         * lib/wctype_.h: Likewise.
31970
31971 2007-05-29  Bruno Haible  <bruno@clisp.org>
31972
31973         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
31974         for the moment.
31975
31976 2007-05-29  Bruno Haible  <bruno@clisp.org>
31977
31978         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
31979         invocation.
31980         Reported by Eric Blake.
31981
31982 2007-05-29  Bruno Haible  <bruno@clisp.org>
31983
31984         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
31985         compiling case.
31986
31987 2007-05-29  Eric Blake  <ebb9@byu.net>
31988             Bruno Haible  <bruno@clisp.org>
31989
31990         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
31991         cross compiles.
31992
31993 2007-05-28  Eric Blake  <ebb9@byu.net>
31994
31995         * modules/closein-tests (test_closein_LDADD): Support test on
31996         cygwin with libtool.
31997
31998 2007-05-28  Bruno Haible  <bruno@clisp.org>
31999
32000         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32001         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32002         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32003         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32004         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32005         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32006         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32007         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32008         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32009
32010 2007-05-28  Eric Blake  <ebb9@byu.net>
32011
32012         Unconditionally include <config.h> in unit tests.
32013         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32014         * tests/test-allocsa.c, tests/test-arcfour.c,
32015         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32016         tests/test-array_list.c, tests/test-array_oset.c,
32017         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32018         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32019         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32020         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32021         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32022         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32023         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32024         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32025         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32026         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32027         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32028         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32029         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32030         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32031         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32032         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32033         test-md5.c, test-memmem.c, test-printf-posix.c,
32034         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32035         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32036         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32037         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32038         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32039         test-vasnprintf-posix2.c, test-vasnprintf.c,
32040         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32041         test-vfprintf-posix.c, test-vprintf-posix.c,
32042         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32043         test-xvasprintf.c: Likewise.
32044
32045 2007-05-28  Bruno Haible  <bruno@clisp.org>
32046
32047         * gnulib-tool (func_import): Remember the --with-tests command-line
32048         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32049         Reported by Eric Blake.
32050
32051 2007-05-28  Bruno Haible  <bruno@clisp.org>
32052
32053         * modules/ftell-tests: New file.
32054         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32055         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32056
32057         * lib/ftell.c: New file.
32058         * modules/ftell: New file.
32059         * m4/ftell.m4: New file.
32060         * doc/functions/ftell.texi: Update.
32061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32062         REPLACE_FTELL.
32063         * lib/stdio_.h (rpl_ftell): New declaration.
32064         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32065         REPLACE_FTELL.
32066
32067 2007-05-28  Eric Blake  <ebb9@byu.net>
32068
32069         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32070
32071 2007-05-28  Bruno Haible  <bruno@clisp.org>
32072
32073         * modules/fseek-tests: New file.
32074         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32075         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32076
32077         * lib/fseek.c: New file.
32078         * modules/fseek: New file.
32079         * m4/fseek.m4: New file.
32080         * doc/functions/fseek.texi: Update.
32081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32082         REPLACE_FSEEK.
32083         * lib/stdio_.h (rpl_fseek): New declaration.
32084         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32085         REPLACE_FSEEK.
32086
32087 2007-05-28  Bruno Haible  <bruno@clisp.org>
32088
32089         * lib/stdio_.h (fflush): More comments.
32090
32091 2007-05-28  Bruno Haible  <bruno@clisp.org>
32092
32093         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32094         runtime test.
32095
32096 2007-05-28  Eric Blake  <ebb9@byu.net>
32097
32098         Improve lseek module.
32099         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32100         * lib/unistd_.h (lseek): Scale back link warning message.
32101         * tests/test-lseek.c: Beef up test.
32102         * tests/test-lseek.sh: Exercise more facets of lseek.
32103         Reported by Bruno Haible.
32104
32105 2007-05-28  Bruno Haible  <bruno@clisp.org>
32106
32107         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32108         to define.
32109
32110 2007-05-27  Bruno Haible  <bruno@clisp.org>
32111
32112         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32113
32114 2007-05-27  Bruno Haible  <bruno@clisp.org>
32115
32116         * modules/openmp: New file.
32117         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32118         Noah Misch.
32119
32120 2007-05-26  Bruno Haible  <bruno@clisp.org>
32121
32122         * modules/chdir-long (Depends-on): Add fchdir.
32123         * modules/chdir-safer (Depends-on): Likewise.
32124         * modules/fts (Depends-on): Likewise.
32125         * modules/fts-lgpl (Depends-on): Likewise.
32126         * modules/openat (Depends-on): Likewise.
32127         * modules/savewd (Depends-on): Likewise.
32128
32129 2007-05-24  Eric Blake  <ebb9@byu.net>
32130
32131         Fix lseek on mingw.
32132         * modules/lseek: New module.
32133         * m4/lseek.m4: New file.
32134         * lib/lseek.c: New file.
32135         * modules/lseek-tests: New file.
32136         * tests/test-lseek.c: New file.
32137         * tests/test-lseek.sh: New file.
32138         * MODULES.html.sh: Document lseek module.
32139         * modules/fflush (Depends-on): Add lseek, fseeko.
32140         * modules/fseeko (Depends-on): Likewise.
32141         * modules/ftello (Depends-on): Likewise.
32142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32143         broken.
32144         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32145         broken.
32146         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32147         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32148         * lib/ftello.c (rpl_ftello): Likewise.
32149         * tests/test-fseeko.c (main): Test this.
32150         * tests/test-fseeko.sh: Likewise.
32151         * tests/test-ftello.c (main): Likewise.
32152         * tests/test-ftello.sh: Likewise.
32153         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32154         implies replacing fseek.
32155         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32156         HAVE_FTELLO.
32157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32158         * modules/unistd (Makefile.am): Likewise.
32159         * lib/unistd_.h (lseek): Declare a replacement.
32160         * doc/functions/lseek.texi (lseek): Document this fix.
32161         * doc/functions/fseek.texi (fseek): Likewise.
32162         * doc/functions/ftell.texi (ftell): Likewise.
32163
32164 2007-05-24  Bruno Haible  <bruno@clisp.org>
32165
32166         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32167         in the printed representation of a NaN.
32168         * tests/test-vasprintf-posix.c (test_function): Likewise.
32169         * tests/test-snprintf-posix.h (test_function): Likewise.
32170         * tests/test-sprintf-posix.h (test_function): Likewise.
32171         Reported by Eric Blake.
32172
32173 2007-05-23  Eric Blake  <ebb9@byu.net>
32174
32175         Fix fseeko/ftello on cygwin 1.5.24.
32176         * doc/functions/fseeko.texi (fseeko): Document the fix.
32177         * doc/functions/ftello.texi (ftello): Document the fix.
32178         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32179         * doc/functions/stdout.text (stdout): New file.
32180         * doc/functions/stderr.text (stderr): New file.
32181         * doc/gnulib.texi (Function Substitutes): Use new files.
32182         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32183         prior to 1.7.0.
32184         * tests/test-ftello.c (main): Likewise for ftello.
32185         * tests/test-fseeko.sh: New file.
32186         * tests/test-ftello.sh: New file.
32187         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32188         with seekable stdin.
32189         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32190         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32191         (gl_REPLACE_FSEEKO): New macro.
32192         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32193         * modules/fseeko (Files): Distribute fseeko.c.
32194         * modules/ftello (Files): Distribute ftello.c.
32195         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32196         mode.
32197         * lib/ftello.c (rpl_ftello): New file.
32198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32199         fseeko, ftello.
32200         (gl_STDIN_LARGE_OFFSET): New macro.
32201         * modules/stdio (Makefile.am): Perform the replacement.
32202         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32203
32204 2007-05-23  Bruno Haible  <bruno@clisp.org>
32205
32206         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32207         GNULIB_POSIXCHECK is defined.
32208
32209 2007-05-21  Bruno Haible  <bruno@clisp.org>
32210
32211         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32212         Check also the output for NaN arguments. When cross-compiling, guess
32213         no on IRIX.
32214         * lib/vasnprintf.c: Update comments.
32215         * tests/test-vasnprintf-posix.c (strisnan): New function.
32216         (test_function): Use it.
32217         * tests/test-vasprintf-posix.c (strisnan): New function.
32218         (test_function): Use it.
32219         * tests/test-snprintf-posix.h (strisnan): New function.
32220         (test_function): Use it.
32221         * tests/test-sprintf-posix.h (strisnan): New function.
32222         (test_function): Use it.
32223         Reported by Eric Blake.
32224
32225 2007-05-20  Bruno Haible  <bruno@clisp.org>
32226
32227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32228         numbers that fails on BeOS.
32229         * doc/functions/frexpl.texi: Update.
32230
32231 2007-05-20  Jim Meyering  <jim@meyering.net>
32232
32233         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32234         forced upon us by glibc-2.6.
32235
32236 2007-05-20  Bruno Haible  <bruno@clisp.org>
32237
32238         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32239         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32240         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32241         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32242         NEED_PRINTF_INFINITE.
32243         (is_infinitel): New function.
32244         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32246         gl_PREREQ_VASNPRINTF_INFINITE.
32247         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32248         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32249         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32250         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32251         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32252         gl_PREREQ_VASNPRINTF_INFINITE.
32253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32254         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32256         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32257         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32259         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32260         * doc/functions/fprintf.texi: Update.
32261         * doc/functions/printf.texi: Update.
32262         * doc/functions/snprintf.texi: Update.
32263         * doc/functions/sprintf.texi: Update.
32264         * doc/functions/vfprintf.texi: Update.
32265         * doc/functions/vprintf.texi: Update.
32266         * doc/functions/vsnprintf.texi: Update.
32267         * doc/functions/vsprintf.texi: Update.
32268
32269 2007-05-20  Bruno Haible  <bruno@clisp.org>
32270
32271         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32272         was not found in libc.
32273         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32274
32275 2007-05-20  Bruno Haible  <bruno@clisp.org>
32276
32277         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32278         printed as "-nan" instead of "nan".
32279         * tests/test-vasprintf-posix.c (test_function): Likewise.
32280         * tests/test-snprintf-posix.h (test_function): Likewise.
32281         * tests/test-sprintf-posix.h (test_function): Likewise.
32282         Needed for HP-UX 11.
32283
32284 2007-05-20  Jim Meyering  <jim@meyering.net>
32285
32286         Fix buggy test for the fchownat-deref bug.
32287         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32288         symlink required for the run-test.  Without it, this test would
32289         always declare that fchownat doesn't work, and client code would
32290         unnecessarily use the replacement function with fixed libc.
32291         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32292         Reported by Greg Schafer.
32293
32294 2007-05-19  Bruno Haible  <bruno@clisp.org>
32295
32296         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32297         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32298         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32299         Needed for IRIX 6.5 and Solaris 2.5.1.
32300
32301 2007-05-19  Bruno Haible  <bruno@clisp.org>
32302
32303         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32304         (test_function): Skip tests involving -0.0 on platforms where
32305         -0.0 = 0.0.
32306         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32307         (test_function): Skip tests involving -0.0 on platforms where
32308         -0.0 = 0.0.
32309         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32310         (test_function): Skip tests involving -0.0 on platforms where
32311         -0.0 = 0.0.
32312         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32313         (test_function): Skip tests involving -0.0 on platforms where
32314         -0.0 = 0.0.
32315         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32316         tests.
32317         * tests/test-printf-posix.h (test_function): Likewise.
32318         * tests/test-printf-posix.output: Remove all -0.0 related results.
32319         Needed for IRIX 6.5.
32320
32321 2007-05-19  Bruno Haible  <bruno@clisp.org>
32322
32323         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32324         printed as "nan0x7fffffff" instead of "nan".
32325         * tests/test-vasprintf-posix.c (test_function): Likewise.
32326         * tests/test-snprintf-posix.h (test_function): Likewise.
32327         * tests/test-sprintf-posix.h (test_function): Likewise.
32328         * tests/test-fprintf-posix.h (NaN): Remove macro.
32329         (test_function): Remove all NaN related tests.
32330         * tests/test-printf-posix.h (NaN): Remove macro.
32331         (test_function): Remove all NaN related tests.
32332         * tests/test-printf-posix.output: Remove all NaN related results.
32333         Needed for IRIX 6.5.
32334
32335 2007-05-19  Bruno Haible  <bruno@clisp.org>
32336
32337         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32338         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32339
32340 2007-05-19  Bruno Haible  <bruno@clisp.org>
32341
32342         * lib/float_.h: New file.
32343         * m4/float_h.m4: New file.
32344         * modules/float: New file.
32345         * modules/isnanl (Dependencies): Add float.
32346         * modules/isnanl-nolibm (Dependencies): Likewise.
32347         * modules/mathl (Dependencies): Likewise.
32348         * modules/printf-frexpl (Dependencies): Likewise.
32349         * modules/signbit (Dependencies): Likewise.
32350         * modules/vasnprintf (Dependencies): Likewise.
32351         * doc/headers/float.texi: Update.
32352
32353 2007-05-19  Jim Meyering  <jim@meyering.net>
32354
32355         * lib/utimens.c (gl_futimens): Rename from futimens,
32356         now that glibc-2.6 declares futimens.
32357         * lib/utimens.h: Likewise.
32358
32359 2007-05-19  Bruno Haible  <bruno@clisp.org>
32360
32361         Avoid test failures on mingw.
32362         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32363         * tests/test-printf-posix.sh: Likewise.
32364         * tests/test-vfprintf-posix.sh: Likewise.
32365         * tests/test-vprintf-posix.sh: Likewise.
32366
32367 2007-05-19  Bruno Haible  <bruno@clisp.org>
32368
32369         Fix *printf result for NaN, Inf, -0.0 on mingw.
32370         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32371         * lib/vasnprintf.c: Include math.h and isnan.h.
32372         (is_infinite_or_zero): New function.
32373         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32374         values in the %f, %F, %e, %E, %g, %G directives.
32375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32377         gl_PRINTF_INFINITE and test its result. Invoke
32378         gl_PREREQ_VASNPRINTF_INFINITE.
32379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32383         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32385         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32386         * doc/functions/fprintf.texi: Update.
32387         * doc/functions/printf.texi: Update.
32388         * doc/functions/snprintf.texi: Update.
32389         * doc/functions/sprintf.texi: Update.
32390         * doc/functions/vfprintf.texi: Update.
32391         * doc/functions/vprintf.texi: Update.
32392         * doc/functions/vsnprintf.texi: Update.
32393         * doc/functions/vsprintf.texi: Update.
32394
32395 2007-05-19  Bruno Haible  <bruno@clisp.org>
32396
32397         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32398         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32399         Instead of multiplying with 10^k, set extra_zeroes to k.
32400         (scale10_round_long_double): Remove function.
32401
32402 2007-05-18  Bruno Haible  <bruno@clisp.org>
32403
32404         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32405         introduced on 2007-05-06.
32406
32407 2007-05-18  Bruno Haible  <bruno@clisp.org>
32408
32409         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32410         %g directives.
32411         * tests/test-vasprintf-posix.c (test_function): Likewise.
32412         * tests/test-snprintf-posix.h (test_function): Likewise.
32413         * tests/test-sprintf-posix.h (test_function): Likewise.
32414
32415 2007-05-18  Bruno Haible  <bruno@clisp.org>
32416
32417         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32418         (strmatch): New function.
32419         (test_function): Test the %f directive on numbers of various exponents.
32420         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32421         (strmatch): New function.
32422         (test_function): Test the %f directive on numbers of various exponents.
32423         * tests/test-snprintf-posix.h (strmatch): New function.
32424         (test_function): Test the %f directive on numbers of various exponents.
32425         * tests/test-sprintf-posix.h (strmatch): New function.
32426         (test_function): Test the %f directive on numbers of various exponents.
32427         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32428         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32429         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32430         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32431
32432 2007-05-18  Bruno Haible  <bruno@clisp.org>
32433
32434         Add support for 'long double' number output.
32435         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32436         * lib/vasnprintf.c: Include math.h and float+.h.
32437         (mp_limb_t): New type.
32438         (GMP_LIMB_BITS): New macro.
32439         (mp_twolimb_t): New type.
32440         (GMP_TWOLIMB_BITS): New macro.
32441         (mpn_t): New type.
32442         (multiply, divide, convert_to_decimal, decode_long_double,
32443         scale10_round_long_double, scale10_round_decimal_long_double,
32444         floorlog10l): New functions.
32445         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32446         for the %f, %F, %e, %E, %g, %G directives.
32447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32448         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32449         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32450         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32451         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32458         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32459         * modules/snprintf-posix (Depends-on): Likewise.
32460         * modules/sprintf-posix (Depends-on): Likewise.
32461         * modules/vasnprintf-posix (Depends-on): Likewise.
32462         * modules/vasprintf-posix (Depends-on): Likewise.
32463         * modules/vfprintf-posix (Depends-on): Likewise.
32464         * modules/vsnprintf-posix (Depends-on): Likewise.
32465         * modules/vsprintf-posix (Depends-on): Likewise.
32466         * modules/vasnprintf (Files): Add lib/float+.h.
32467         * doc/functions/fprintf.texi: Update.
32468         * doc/functions/printf.texi: Update.
32469         * doc/functions/snprintf.texi: Update.
32470         * doc/functions/sprintf.texi: Update.
32471         * doc/functions/vfprintf.texi: Update.
32472         * doc/functions/vprintf.texi: Update.
32473         * doc/functions/vsnprintf.texi: Update.
32474         * doc/functions/vsprintf.texi: Update.
32475
32476 2007-05-18  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32479
32480 2007-05-18  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32483         for printing 64-bit integers. Needed for mingw.
32484
32485 2007-05-18  Bruno Haible  <bruno@clisp.org>
32486
32487         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32488         gl_FUNC_FREXPL_WORKS.
32489         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32490
32491 2007-05-18  Bruno Haible  <bruno@clisp.org>
32492
32493         * modules/frexpl-nolibm-tests: New file.
32494
32495         * modules/frexpl-nolibm: New file.
32496         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32497
32498 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32499
32500         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32501         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32502         GCC 4.2, which otherwise issues a lot of warnings.
32503         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32504         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32505         Likewise.
32506         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32507         * modules/iconv_open (iconv.h): Likewise.
32508         * modules/locale (locale.h): Likewise.
32509         * modules/netinet_in (netinet/in.h): Likewise.
32510         * modules/sys_select (sys_select.h): Likewise.
32511         * modules/sys_socket (sys/socket.h): Likewise.
32512         * modules/sys_stat (sys/stat.h): Likewise.
32513         * modules/sysexits (sysexits.h): Likewise.
32514         * modules/unistd (unistd.h): Likewise.
32515
32516 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32517
32518         * modules/closein-tests (Makefile.am): Distribute
32519         `test-closein.sh'.
32520
32521 2007-05-17  Bruno Haible  <bruno@clisp.org>
32522
32523         * tests/test-printf-posix.output: Renamed from
32524         tests/test-fprintf-posix.out.
32525         * modules/fprintf-posix-tests: Update.
32526         * modules/printf-posix-tests: Update.
32527         * modules/vfprintf-posix-tests: Update.
32528         * modules/vprintf-posix-tests: Update.
32529         * tests/test-fprintf-posix.sh: Update.
32530         * tests/test-printf-posix.sh: Update.
32531         * tests/test-vfprintf-posix.sh: Update.
32532         * tests/test-vprintf-posix.sh: Update.
32533         Reported by Ralf Wildenhues.
32534
32535 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32536
32537         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32538         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32539         GCC 4.2, which otherwise issues a lot of warnings.
32540         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32541         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32542         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32543         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32544         it should no longer be needed.
32545         * lib/string_.h: Likewise.
32546         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32547         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32548         * modules/inttypes (inttypes.h): Likewise.
32549         * modules/math (math.h): Likewise.
32550         * modules/search (search.h): Likewise.
32551         * modules/signal (signal.h): Likewise.
32552         * modules/stdint (stdint.h): Likewise.
32553         * modules/stdio (stdio.h): Likewise.
32554         * modules/stdlib (stdlib.h): Likewise.
32555         * modules/string (string.h): Likewise.
32556         * modules/sys_time (sys/time.h): Likewise.
32557         * modules/time (time.h): Likewise.
32558         * modules/wchar (wchar.h): Likewise.
32559         * modules/wctype (wtype.h): Likewise.
32560
32561 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32562
32563         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32564
32565 2007-05-13  Bruno Haible  <bruno@clisp.org>
32566
32567         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32568         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32569         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32570         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32571         (gl_PREREQ_STRTOK_R): Don't require it here.
32572
32573 2007-05-13  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32576         when used in C++ mode.
32577
32578 2007-05-12  Bruno Haible  <bruno@clisp.org>
32579
32580         * lib/linebuffer.h: Tweak doc.
32581         * lib/linebuffer.c: Likewise.
32582
32583 2007-05-12  James Youngman  <jay@gnu.org>
32584
32585         * lib/linebuffer.c (readlinebuffer_delim): New function,
32586         like readlinebuffer, but use a caller-specified delimiter.
32587         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32588         as the delimiter.
32589         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32590
32591 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32592
32593         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32594         * modules/openat (Files): Remove openat-die.c.
32595         (Depends-on): Add openat-die.
32596         * modules/openat-die: New module.
32597
32598 2007-05-06  Bruno Haible  <bruno@clisp.org>
32599
32600         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32601         Update with info about Cygwin.
32602         * doc/functions/fprintf.texi: Update.
32603         * doc/functions/printf.texi: Update.
32604         * doc/functions/snprintf.texi: Update.
32605         * doc/functions/sprintf.texi: Update.
32606         * doc/functions/vfprintf.texi: Update.
32607         * doc/functions/vprintf.texi: Update.
32608         * doc/functions/vsnprintf.texi: Update.
32609         * doc/functions/vsprintf.texi: Update.
32610         Reported by Eric Blake.
32611
32612 2007-05-06  Bruno Haible  <bruno@clisp.org>
32613
32614         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32615         padding ourselves for the floating-point directives.
32616         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32619         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32620         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32621         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32628         * tests/test-snprintf-posix.h (test_function): Also check the width
32629         and some flags in the %f directive.
32630         * tests/test-sprintf-posix.h (test_function): Likewise.
32631         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32632         * tests/test-vasprintf-posix.c (test_function): Likewise.
32633         * doc/functions/fprintf.texi: Update.
32634         * doc/functions/printf.texi: Update.
32635         * doc/functions/snprintf.texi: Update.
32636         * doc/functions/sprintf.texi: Update.
32637         * doc/functions/vfprintf.texi: Update.
32638         * doc/functions/vprintf.texi: Update.
32639         * doc/functions/vsnprintf.texi: Update.
32640         * doc/functions/vsprintf.texi: Update.
32641
32642 2007-05-06  Bruno Haible  <bruno@clisp.org>
32643
32644         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32645         pass the ' flag character to sprintf or snprintf.
32646         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32647         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32649         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32650         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32652         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32653         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32655         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32658         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32659         flag.
32660         * tests/test-sprintf-posix.h (test_function): Likewise.
32661         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32662         * tests/test-vasprintf-posix.c (test_function): Likewise.
32663         * doc/functions/fprintf.texi: Update.
32664         * doc/functions/printf.texi: Update.
32665         * doc/functions/snprintf.texi: Update.
32666         * doc/functions/sprintf.texi: Update.
32667         * doc/functions/vfprintf.texi: Update.
32668         * doc/functions/vprintf.texi: Update.
32669         * doc/functions/vsnprintf.texi: Update.
32670         * doc/functions/vsprintf.texi: Update.
32671
32672 2007-05-01  Bruno Haible  <bruno@clisp.org>
32673
32674         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32675
32676 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32677
32678         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32679         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
32680
32681 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32682
32683         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32684         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
32685         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32686
32687 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
32688
32689         * lib/argp-help.c (struct hol_entry): New member `ord'.
32690         (HOL_ENTRY_PTRCMP): Use ord for comparison
32691         (hol_sort): Initialize ord.
32692
32693 2007-05-01  Bruno Haible  <bruno@clisp.org>
32694
32695         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32696         Reported by Eric Blake.
32697         * doc/gnulib.texi (Function Substitutes): Update.
32698
32699 2007-05-01  Bruno Haible  <bruno@clisp.org>
32700
32701         * doc/functions.texi: Remove file, now redundant through
32702         doc/functions/*.texi.
32703
32704 2007-05-01  Bruno Haible  <bruno@clisp.org>
32705
32706         * modules/argp (Depends-on): Add sleep.
32707
32708 2007-05-01  Bruno Haible  <bruno@clisp.org>
32709
32710         * modules/sleep-tests: New file.
32711         * tests/test-sleep.c: New file.
32712
32713         * modules/sleep: New file.
32714         * lib/sleep.c: New file.
32715         * m4/sleep.m4: New file.
32716         * lib/unistd_.h (sleep): New declaration.
32717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32718         HAVE_SLEEP.
32719         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32720         * doc/functions/sleep.texi: Document the sleep module.
32721
32722 2007-05-01  Bruno Haible  <bruno@clisp.org>
32723
32724         * lib/sigprocmask.h: Remove file.
32725         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32726         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32728         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32729         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32730         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32731         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32732         HAVE_SIGSET_T as a shell variable.
32733         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32734         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32735         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32736         (Depends-on): Add signal. Remove verify.
32737         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32738         (Include): Mention <signal.h> instead of sigprocmask.h.
32739         * NEWS: Mention the change.
32740         * lib/fatal-signal.c: Don't include sigprocmask.h.
32741
32742 2007-05-01  Bruno Haible  <bruno@clisp.org>
32743
32744         * modules/signal: New file.
32745         * lib/signal_.h: New file.
32746         * m4/signal_h.m4: New file.
32747
32748 2007-05-01  Bruno Haible  <bruno@clisp.org>
32749
32750         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32751         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32752         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32753         HAVE_WCTYPE_CTMP_BUG into wctype.h.
32754
32755 2007-05-01  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
32758         configure time.
32759         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
32760         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
32761         * modules/sys_stat (Makefile.am): Substitute their values into
32762         sys/stat.h.
32763
32764 2007-05-01  Bruno Haible  <bruno@clisp.org>
32765
32766         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
32767         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
32768         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
32769
32770 2007-05-01  Bruno Haible  <bruno@clisp.org>
32771
32772         * doc/header/assert.texi: Undo last change: don't mention the gnulib
32773         'assert' module here.
32774
32775 2007-05-01  Bruno Haible  <bruno@clisp.org>
32776
32777         * doc/functions/*.texi: New files.
32778         * doc/functions/google-ranking.txt: New file.
32779         * doc/gnulib.texi (Function Substitutes): New chapter.
32780         (ctime, inet_ntoa): Remove sections.
32781         * doc/ctime.texi: Remove file.
32782         * doc/inet_ntoa.texi: Remove file.
32783         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
32784         dependencies.
32785         (%.info): New rule, specifying a --reference-limit.
32786
32787 2007-05-01  Bruno Haible  <bruno@clisp.org>
32788
32789         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
32790
32791 2007-05-01  Bruno Haible  <bruno@clisp.org>
32792
32793         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
32794         the portability of 'mkdir' to mingw systems.
32795
32796 2007-05-01  Bruno Haible  <bruno@clisp.org>
32797
32798         * doc/headers/google-ranking.txt: New file.
32799
32800 2007-04-30  Eric Blake  <ebb9@byu.net>
32801
32802         Prefer fseeko to fseek.
32803         * modules/getpass (Depends-on): Add fseeko.
32804         * lib/getpass.c (getpass): Use fseeko, not fseek.
32805
32806 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
32807
32808         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
32809         assumes the sorting is stable, while most qsort implementations
32810         are not.  Use argument addresses to ensure they never compare as
32811         equal.
32812
32813         * tests/test-argp-2.sh (usage-indent test): Fix output
32814         (func_compare): Restore diff options
32815         * tests/test-argp.c: Restore #include "progname.h"
32816
32817 2007-04-29  Bruno Haible  <bruno@clisp.org>
32818
32819         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
32820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32821         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
32822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32823         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
32824         (configure.ac): Define CHECK_SNPRINTF_POSIX.
32825         (TESTS, check_PROGRAMS): Add test-snprintf.
32826         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
32827         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
32828         (TESTS, check_PROGRAMS): Add test-vsnprintf.
32829         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
32830         assertions that fail on HP-UX, OSF/1, or IRIX.
32831         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
32832
32833 2007-04-29  Bruno Haible  <bruno@clisp.org>
32834
32835         * MODULES.html.sh (posix_functions): Remove 'contents'.
32836
32837 2007-04-29  Karl Berry  <karl@gnu.org>
32838
32839         * config/srclist.txt (gendocs_template_min): new entry.
32840
32841 2007-04-29  Bruno Haible  <bruno@clisp.org>
32842
32843         Work around fpurge bug on BSD systems.
32844         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
32845         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
32846         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
32847         fpurge to rpl_fpurge if the system already has this function.
32848         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
32849         the case where the system already has this function. Correct invariants
32850         on BSD systems.
32851         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
32852         BSD systems.
32853
32854 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32855
32856         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
32857         proposed by Sven Verdoolaege.
32858
32859         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
32860         options.
32861         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
32862         (usage and help tests): Update
32863
32864 2007-04-29  Bruno Haible  <bruno@clisp.org>
32865
32866         * tests/test-fflush.c (main): Use a file of size 17, not 10.
32867         Print more information in case of failure. Disable a test on BeOS.
32868
32869 2007-04-29  Bruno Haible  <bruno@clisp.org>
32870
32871         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
32872         This helps debugging on systems on which no gdb is available.
32873
32874 2007-04-29  Bruno Haible  <bruno@clisp.org>
32875
32876         * lib/freading.h: Improve comments.
32877         * lib/fwriting.h: Likewise.
32878         * tests/test-freading.c (main): Don't check freading immediately after
32879         repositioning. Needed for glibc.
32880
32881 2007-04-29  Bruno Haible  <bruno@clisp.org>
32882
32883         * lib/freading.c (freading): Trivial simplification.
32884
32885 2007-04-28  Bruno Haible  <bruno@clisp.org>
32886
32887         * tests/test-fwriting.c (main): Also test the interaction between
32888         fflush and fwriting.
32889         * modules/fwriting-tests (Depends-on): Add fflush.
32890
32891         * tests/test-freading.c (main): Also test the interaction between
32892         fflush and freading.
32893         * modules/freading-tests (Depends-on): Add fflush.
32894
32895 2007-04-28  Bruno Haible  <bruno@clisp.org>
32896
32897         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
32898         fseeko and ftello.
32899         Suggested by Eric Blake.
32900
32901 2007-04-28  Jim Meyering  <jim@meyering.net>
32902
32903         Avoid false-negative in gl_STDINT_H's C99 conformance test.
32904         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
32905         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
32906
32907 2007-04-27  Eric Blake  <ebb9@byu.net>
32908
32909         * doc/headers/assert.texi (assert.h): Document assert module use.
32910
32911 2007-04-27  Bruno Haible  <bruno@clisp.org>
32912
32913         * doc/headers/*.texi: New files.
32914         * doc/gnulib.texi (Header File Substitutes): New chapter.
32915         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
32916         dependencies.
32917         (standards.info ,standards.html, standards.dvi): Update dependencies.
32918         (mostlyclean, clean): New targets.
32919
32920 2007-04-27  Bruno Haible  <bruno@clisp.org>
32921
32922         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
32923         * modules/sysexits (Files, Makefile.am): Update.
32924
32925         * lib/sys_socket_.h: Renamed from lib/socket_.h.
32926         * modules/sys_socket (Files, Makefile.am): Update.
32927
32928         * lib/sys_stat_.h: Renamed from lib/stat_.h.
32929         * modules/sys_stat (Files, Makefile.am): Update.
32930
32931 2007-04-27  Eric Blake  <ebb9@byu.net>
32932
32933         * lib/freading.h: Improve comments.
32934         * lib/fwriting.h: Likewise.
32935         * lib/fflush.c: Likewise.
32936
32937         Fix closein for mingw.
32938         * modules/closein-tests: Add tests for closein.
32939         * tests/test-closein.c: New file.
32940         * tests/test-closein.sh: Likewise.
32941         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
32942         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
32943
32944 2007-04-27  Bruno Haible  <bruno@clisp.org>
32945
32946         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
32947         version is < 6.
32948         * lib/math_.h [__DECC]: Likewise.
32949         * lib/stdio_.h [__DECC]: Likewise.
32950         * lib/stdlib_.h [__DECC]: Likewise.
32951         * lib/string_.h [__DECC]: Likewise.
32952         * lib/time_.h [__DECC]: Likewise.
32953         * lib/wchar_.h [__DECC]: Likewise.
32954         * lib/wctype_.h [__DECC]: Likewise.
32955
32956 2007-04-27  Bruno Haible  <bruno@clisp.org>
32957
32958         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
32959
32960 2007-04-27  Bruno Haible  <bruno@clisp.org>
32961
32962         * lib/fflush.c: Add comments.
32963         * modules/fpurge-tests (Depends-on): Add fflush.
32964         * modules/freadable-tests (Depends-on): Likewise.
32965         * modules/fwritable-tests (Depends-on): Likewise.
32966
32967 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
32968
32969         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
32970         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
32971         Report by Bruno Haible <bruno@clisp.org>.
32972
32973 2007-04-26  Eric Blake  <ebb9@byu.net>
32974
32975         Fix fflush on mingw.
32976         * modules/fflush (Depends-on): Add freading.
32977         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
32978         but unread data.
32979
32980 2007-04-26  Eric Blake  <ebb9@byu.net>
32981         and Bruno Haible  <bruno@clisp.org>
32982
32983         Implement freading and fwriting.
32984         * lib/freading.c: New file.
32985         * lib/freading.h: Likewise.
32986         * m4/freading.m4: Likewise.
32987         * modules/freading: Likewise.
32988         * modules/freading-tests: Likewise.
32989         * tests/test-freading.c: Likewise.
32990         * lib/fwriting.c: New file.
32991         * lib/fwriting.h: Likewise.
32992         * m4/fwriting.m4: Likewise.
32993         * modules/fwriting: Likewise.
32994         * modules/fwriting-tests: Likewise.
32995         * tests/test-fwriting.c: Likewise.
32996         * MODULES.html.sh (File stream based Input/Output): Mention them.
32997
32998 2007-04-26  Bruno Haible  <bruno@clisp.org>
32999
33000         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33001         'long' when we assume it.
33002         Suggested by Eric Blake.
33003
33004 2007-04-26  Bruno Haible  <bruno@clisp.org>
33005
33006         Ensure fseeko, ftello are declared on glibc systems.
33007         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33008         * modules/fseeko (configure.ac-early): Likewise.
33009         * modules/ftello (configure.ac-early): Likewise.
33010         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33011         AC_FUNC_FSEEKO for this.
33012         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33013         (gl_CHECK_FSEEKO): Remove macro.
33014
33015 2007-04-26  Bruno Haible  <bruno@clisp.org>
33016
33017         * tests/test-fflush.c (main): Also check the ftell result after
33018         fflush and fseek/fseeko.
33019         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33020         file descriptor position cache in the stream.
33021         * lib/fseeko.c (rpl_fseeko): Likewise.
33022
33023 2007-04-26  Bruno Haible  <bruno@clisp.org>
33024
33025         * modules/fflush-tests (Depends-on): Add fseeko.
33026
33027 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33028             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33029
33030         * lib/argz_.h: ensure error_t definition is obtained in same
33031         mechanism system argz.h would have.
33032         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33033         argz facilities are known bad.  Err on the side of caution if
33034         cross-compiling.
33035
33036 2007-04-25  Eric Blake  <ebb9@byu.net>
33037
33038         * lib/fpurge.c (includes): Use stdlib.h for free.
33039         * tests/test-fflush.c (main): Also test fflush-fseeko.
33040
33041 2007-04-25  Bruno Haible  <bruno@clisp.org>
33042
33043         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33044         * lib/fseeko.c: New file.
33045         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33046         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33047         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33048         gl_FUNC_FSEEKO.
33049         (gl_FUNC_FSEEKO): Invoke it.
33050         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33051         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33052         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33053
33054 2007-04-25  Bruno Haible  <bruno@clisp.org>
33055
33056         * modules/fflush (Depends-on): Add ftello.
33057
33058 2007-04-25  Bruno Haible  <bruno@clisp.org>
33059
33060         * modules/ftello-tests: New file.
33061         * tests/test-ftello.c: New file.
33062
33063         * modules/ftello: New file.
33064         * m4/ftello.m4: New file.
33065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33066         HAVE_FTELLO.
33067         * lib/stdio_.h (ftello): New declaration.
33068         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33069         HAVE_FTELLO.
33070
33071 2007-04-25  Bruno Haible  <bruno@clisp.org>
33072
33073         * modules/fseeko-tests: New file.
33074         * tests/test-fseeko.c: New file.
33075
33076         * modules/fseeko: New file.
33077         * m4/fseeko.m4: New file.
33078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33079         HAVE_FSEEKO.
33080         * lib/stdio_.h (fseeko): New declaration.
33081         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33082         HAVE_FSEEKO.
33083
33084 2007-04-25  Bruno Haible  <bruno@clisp.org>
33085
33086         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33087
33088 2007-04-25  Bruno Haible  <bruno@clisp.org>
33089
33090         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33091         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33092         * tests/test-unistd.c: Likewise.
33093         * tests/test-fcntl.c: Likewise.
33094
33095 2007-04-23  Eric Blake  <ebb9@byu.net>
33096
33097         * lib/fflush.c: Fix missing include.
33098         Reported by Bruno Haible.
33099
33100 2007-04-23  Bruno Haible  <bruno@clisp.org>
33101
33102         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33103         Reported by Eric Blake.
33104
33105 2007-04-23  Bruno Haible  <bruno@clisp.org>
33106
33107         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33108
33109 2007-04-23  Bruno Haible  <bruno@clisp.org>
33110
33111         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33112
33113 2007-04-23  Bruno Haible  <bruno@clisp.org>
33114
33115         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33116         Needed on HP-UX 11.
33117
33118 2007-04-16  Eric Blake  <ebb9@byu.net>
33119
33120         Make fflush rely on fpurge.
33121         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33122         open coding all variants.
33123         * modules/fflush (Depends-on): Add fpurge and unistd.
33124         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33125         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33126
33127         Fix --with-tests compilation on cygwin.
33128         * modules/argmatch-tests (Makefile.am): List gnulib library first
33129         in LDADD.
33130         * modules/argp-tests (Makefile.am): Likewise.
33131         * modules/array-list-tests (Makefile.am): Likewise.
33132         * modules/array-oset-tests (Makefile.am): Likewise.
33133         * modules/avltree-list-tests (Makefile.am): Likewise.
33134         * modules/avltree-oset-tests (Makefile.am): Likewise.
33135         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33136         * modules/carray-list-tests (Makefile.am): Likewise.
33137         * modules/dirname-tests (Makefile.am): Likewise.
33138         * modules/frexp-tests (Makefile.am): Likewise.
33139         * modules/isnanl-tests (Makefile.am): Likewise.
33140         * modules/linked-list-tests (Makefile.am): Likewise.
33141         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33142         * modules/lock-tests (Makefile.am): Likewise.
33143         * modules/rbtree-list-tests (Makefile.am): Likewise.
33144         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33145         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33146         * modules/tls-tests (Makefile.am): Likewise.
33147         * modules/tsearch-tests (Makefile.am): Likewise.
33148         * modules/xvasprintf-tests (Makefile.am): Likewise.
33149
33150         Fix fpurge for cygwin.
33151         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33152         value.
33153         * modules/fpurge-tests (Depends-on): Clean up trash.
33154
33155 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33156
33157         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33158
33159         * m4/autobuild.m4: Re-indent.
33160
33161 2007-04-13  Bruno Haible  <bruno@clisp.org>
33162
33163         * modules/fpurge-tests: New file.
33164         * tests/test-fpurge.c: New file.
33165
33166         * modules/fpurge: New file.
33167         * lib/fpurge.h: New file.
33168         * lib/fpurge.c: New file.
33169         * m4/fpurge.m4: New file.
33170
33171 2007-04-13  Bruno Haible  <bruno@clisp.org>
33172
33173         * modules/fbufmode-tests: New file.
33174         * tests/test-fbufmode.c: New file.
33175
33176         * modules/fbufmode: New file.
33177         * lib/fbufmode.h: New file.
33178         * lib/fbufmode.c: New file.
33179         * m4/fbufmode.m4: New file.
33180
33181 2007-04-13  Bruno Haible  <bruno@clisp.org>
33182
33183         * modules/fwritable-tests: New file.
33184         * tests/test-fwritable.c: New file.
33185
33186         * modules/fwritable: New file.
33187         * lib/fwritable.h: New file.
33188         * lib/fwritable.c: New file.
33189         * m4/fwritable.m4: New file.
33190
33191 2007-04-13  Bruno Haible  <bruno@clisp.org>
33192
33193         * modules/freadable-tests: New file.
33194         * tests/test-freadable.c: New file.
33195
33196         * modules/freadable: New file.
33197         * lib/freadable.h: New file.
33198         * lib/freadable.c: New file.
33199         * m4/freadable.m4: New file.
33200
33201 2007-04-13  Bruno Haible  <bruno@clisp.org>
33202
33203         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33204         MOSTLYCLEANFILES.
33205
33206 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33207
33208         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33209         gzip bootstrap.conf to avoid dragging in i18n machinery.
33210         (gnulib_tool_option): Use it.
33211
33212 2007-04-13  Bruno Haible  <bruno@clisp.org>
33213
33214         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33215         %F directives.
33216         * tests/test-vasprintf-posix.c (test_function): Likewise.
33217         * tests/test-snprintf-posix.h (test_function): Likewise.
33218         * tests/test-sprintf-posix.h (test_function): Likewise.
33219         * tests/test-fprintf-posix.h (test_function): Likewise.
33220         * tests/test-printf-posix.h (test_function): Likewise.
33221         * tests/test-fprintf-posix.out: Likewise.
33222
33223 2007-04-13  Bruno Haible  <bruno@clisp.org>
33224
33225         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33226         * modules/tls-tests (configure.ac): Likewise.
33227         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33228
33229 2007-04-13  Bruno Haible  <bruno@clisp.org>
33230
33231         * lib/tls.c (glthread_tls_get): Fix return type.
33232         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33233
33234 2007-04-12  Eric Blake  <ebb9@byu.net>
33235
33236         * modules/gettime (Depends-on): Remove gettime.
33237         Reported by Dmitry V. Levin.
33238
33239 2007-04-12  Bruno Haible  <bruno@clisp.org>
33240
33241         * modules/fflush (Include): Mention <stdio.h>.
33242         * modules/strtoimax (Include): Mention <inttypes.h>.
33243         * modules/strtoumax (Include): Likewise.
33244
33245 2007-04-12  Eric Blake  <ebb9@byu.net>
33246
33247         * .cvsignore: New file.
33248         * .gitignore: Likewise.
33249
33250 2007-04-12  Bruno Haible  <bruno@clisp.org>
33251
33252         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33253         not before, since $(LDADD) often contains libgnu.a.
33254         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33255         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33256         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33257         Needed on Cygwin.
33258
33259 2007-04-12  Eric Blake  <ebb9@byu.net>
33260
33261         Work around glibc's failure to flush stdin on fclose.
33262         * lib/closein.c (close_stdin): Flush stdin before closing.
33263
33264         Work around glibc's failure to reset seekable stdin on exit.
33265         * modules/closein: New module.
33266         * lib/closein.c: New file.
33267         * lib/closein.h: Likewise.
33268         * m4/closein.m4: Likewise.
33269         * MODULES.html.sh (File stream based Input/Output): Document it.
33270
33271 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33272
33273         * gnulib-tool: Rename generated 'autobuild' script to
33274         'do-autobuild' in --create-megatestdir output.
33275
33276         * doc/gnulib.texi (Build robot for gnulib): Fix.
33277
33278 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33279
33280         * modules/sysexits (Depends-on): Add absolute-header.
33281
33282 2007-04-12  Eric Blake  <ebb9@byu.net>
33283
33284         No need to preserve errno on success.
33285         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33286         Reported by Bruno Haible.
33287
33288 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33289
33290         * MODULES.html.sh (Support for maintaining and releasing
33291         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33292
33293 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33294
33295         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33296
33297 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33298
33299         * modules/autobuild: New module.
33300
33301         * m4/autobuild.m4: New file.
33302
33303 2007-04-11  Bruno Haible  <bruno@clisp.org>
33304
33305         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33306         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33310         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33311         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33318         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33322         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33323         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33325         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33326         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33327         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33328         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33329         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33331         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33332         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33333         Reported by Eric Blake.
33334
33335 2007-04-11  Bruno Haible  <bruno@clisp.org>
33336
33337         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33338
33339 2007-04-10  Bruno Haible  <bruno@clisp.org>
33340
33341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33342         for NaN and Infinity. Needed on FreeBSD 6.1.
33343         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33344         regarding results for "%010a" of Infinity and NaN.
33345         * tests/test-vasprintf-posix.c (test_function): Likewise.
33346         * tests/test-snprintf-posix.h (test_function): Likewise.
33347         * tests/test-sprintf-posix.h (test_function): Likewise.
33348         * tests/test-fprintf-posix.h (test_function): Likewise.
33349         * tests/test-printf-posix.h (test_function): Likewise.
33350         * tests/test-fprintf-posix.out: Likewise.
33351
33352 2007-04-10  Bruno Haible  <bruno@clisp.org>
33353
33354         * modules/locale-tests: New file.
33355         * tests/test-locale.c: New file.
33356
33357         * modules/locale: New file.
33358         * lib/locale_.h: New file.
33359         * m4/locale_h.m4: New file.
33360
33361 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33362             Bruno Haible  <bruno@clisp.org>
33363
33364         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33365         be determined, test for availability of the copysignf, copysign,
33366         copysignl functions.
33367         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33368         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33369         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33370
33371 2007-04-09  Eric Blake  <ebb9@byu.net>
33372
33373         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33374         * modules/stdio (Makefile.am): Support fflush.
33375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33376         * modules/fflush: New file.
33377         * lib/fflush.c: Likewise.
33378         * m4/fflush.m4: Likewise.
33379         * modules/fflush-tests: New test.
33380         * tests/test-fflush.c: Likewise.
33381         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33382
33383 2007-04-06  Bruno Haible  <bruno@clisp.org>
33384
33385         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33386         (VASNPRINTF): Use signbit for faster determination whether to print a
33387         minus sign.
33388         * modules/vasnprintf (Files): Remove lib/float+.h.
33389         * modules/fprintf-posix (Depends-on): Add signbit.
33390         * modules/snprintf-posix (Depends-on): Likewise.
33391         * modules/sprintf-posix (Depends-on): Likewise.
33392         * modules/vasnprintf-posix (Depends-on): Likewise.
33393         * modules/vasprintf-posix (Depends-on): Likewise.
33394         * modules/vfprintf-posix (Depends-on): Likewise.
33395         * modules/vsnprintf-posix (Depends-on): Likewise.
33396         * modules/vsprintf-posix (Depends-on): Likewise.
33397
33398 2007-04-06  Bruno Haible  <bruno@clisp.org>
33399
33400         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33401         * tests/test-frexpl.c (main): Likewise.
33402         * tests/test-ldexpl.c (main): Likewise.
33403         * modules/frexp-tests (Depends-on): Add signbit.
33404         * modules/frexpl-tests (Depdends-on): Likewise.
33405         * modules/ldexpl-tests (Depdends-on): Likewise.
33406
33407 2007-04-06  Bruno Haible  <bruno@clisp.org>
33408
33409         * modules/signbit-tests: New file.
33410         * tests/test-signbit.c: New file.
33411
33412         * modules/signbit: New file.
33413         * lib/signbitf.c: New file.
33414         * lib/signbitd.c: New file.
33415         * lib/signbitl.c: New file.
33416         * m4/signbit.m4: New file.
33417         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33418         (signbit): New macro.
33419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33420         REPLACE_SIGNBIT.
33421         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33422         REPLACE_FREXPL into math.h.
33423
33424 2007-04-06  Bruno Haible  <bruno@clisp.org>
33425
33426         * modules/isnanf-nolibm-tests: New file.
33427         * tests/test-isnanf.c: New file.
33428
33429         * modules/isnanf-nolibm: New file.
33430         * lib/isnanf.h: New file.
33431         * lib/isnanf.c: New file.
33432         * lib/isnan.c: Consider the USE_FLOAT macro.
33433         * m4/isnanf.m4: New file.
33434
33435 2007-04-06  Bruno Haible  <bruno@clisp.org>
33436
33437         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33438         (Link): New section.
33439
33440         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33441
33442 2007-04-06  Bruno Haible  <bruno@clisp.org>
33443
33444         Assume the 'long double' type.
33445         * m4/longdouble.m4: Remove file.
33446         * config/srclist.txt: Don't mention longdouble.m4.
33447         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33448         * lib/float+.h: Likewise.
33449         * lib/frexp.c: Likewise.
33450         * lib/printf-args.h: Likewise.
33451         * lib/printf-args.c: Likewise.
33452         * lib/printf-frexp.c: Likewise.
33453         * lib/printf-parse.c: Likewise.
33454         * lib/vasnprintf.c: Likewise.
33455         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33456         * m4/intl.m4: Likewise.
33457         * m4/isnanl.m4: Likewise.
33458         * m4/printf.m4: Likewise.
33459         * m4/printf-frexpl.m4: Likewise.
33460         * m4/vasnprintf.m4: Likewise.
33461         * modules/allocsa (Files): Remove m4/longdouble.m4.
33462         * modules/gettext (Files): Likewise.
33463         * modules/relocatable-prog-wrapper (Files): Likewise.
33464         * modules/vasnprintf (Files): Likewise.
33465         * modules/isnanl (Files): Likewise.
33466         (Include): Simplify.
33467         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33468         (Include): Simplify.
33469         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33470         (Include): Simplify.
33471         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33472         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33473         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33475         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33477         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33479         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33481         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33483         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33484         * tests/test-isnanl.c: Likewise.
33485         * tests/test-snprintf-posix.h: Likewise.
33486         * tests/test-sprintf-posix.h: Likewise.
33487         * tests/test-vasnprintf-posix.c: Likewise.
33488         * tests/test-vasnprintf-posix2.c: Likewise.
33489         * tests/test-vasprintf-posix.c: Likewise.
33490
33491 2007-04-06  Bruno Haible  <bruno@clisp.org>
33492
33493         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33494         * lib/math_.h [__DECC]: Include the overridden include file through
33495         #include_next, outside the double-inclusion guard.
33496         * lib/stdio_.h [__DECC]: Likewise.
33497         * lib/stdlib_.h [__DECC]: Likewise.
33498         * lib/string_.h [__DECC]: Likewise.
33499         * lib/time_.h [__DECC]: Likewise.
33500         * lib/wchar_.h [__DECC]: Likewise.
33501         * lib/wctype_.h [__DECC]: Likewise.
33502         * lib/inttypes_.h [__DECC]: Likewise.
33503         Reported by Albert Chin <china@thewrittenword.com> in
33504         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33505
33506 2007-04-04  Eric Blake  <ebb9@byu.net>
33507
33508         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33509         1.5.x.
33510
33511 2007-04-04  Bruno Haible  <bruno@clisp.org>
33512
33513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33514         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33515
33516 2007-04-04  Bruno Haible  <bruno@clisp.org>
33517
33518         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33519         results for "%010a" of Infinity and NaN.
33520         * tests/test-vasprintf-posix.c (test_function): Likewise.
33521         * tests/test-snprintf-posix.h (test_function): Likewise.
33522         * tests/test-sprintf-posix.h (test_function): Likewise.
33523         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33524         * tests/test-printf-posix.h (test_function): Likewise.
33525         * tests/test-fprintf-posix.out: Update.
33526         Needed for FreeBSD 6.1.
33527
33528 2007-04-04  Bruno Haible  <bruno@clisp.org>
33529
33530         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33531         directly used by the gnulib modules nor by gnulib-tool.
33532
33533 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33534
33535         * DEPENDENCIES: Give overall description of version dependency
33536         desirability.  Use more-typical names for apps.
33537         Add shell, coreutils, diffutils, grep, tar, gzip.
33538
33539 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33540
33541         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33542
33543 2007-04-04  Karl Berry  <karl@gnu.org>
33544
33545         * MODULES.html.sh (func_module): missing '.
33546
33547 2007-04-03  Bruno Haible  <bruno@clisp.org>
33548
33549         * modules/argmatch-tests (Makefile.am): New variable
33550         test_argmatch_LDADD.
33551         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33552         * modules/array-list-tests (Makefile.am): New variable
33553         test_array_list_LDADD.
33554         * modules/array-oset-tests (Makefile.am): New variable
33555         test_array_oset_LDADD.
33556         * modules/avltree-list-tests (Makefile.am): New variable
33557         test_avltree_list_LDADD.
33558         * modules/avltree-oset-tests (Makefile.am): New variable
33559         test_avltree_oset_LDADD.
33560         * modules/avltreehash-list-tests (Makefile.am): New variable
33561         test_avltreehash_list_LDADD.
33562         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33563         test_canonicalize_lgpl_LDADD.
33564         * modules/carray-list-tests (Makefile.am): New variable
33565         test_carray_list_LDADD.
33566         * modules/dirname-tests (Makefile.am): New variable
33567         test_dirname_LDADD.
33568         * modules/linked-list-tests (Makefile.am): New variable
33569         test_linked_list_LDADD.
33570         * modules/linkedhash-list-tests (Makefile.am): New variable
33571         test_linkedhash_list_LDADD.
33572         * modules/rbtree-list-tests (Makefile.am): New variable
33573         test_rbtree_list_LDADD.
33574         * modules/rbtree-oset-tests (Makefile.am): New variable
33575         test_rbtree_oset_LDADD.
33576         * modules/rbtreehash-list-tests (Makefile.am): New variable
33577         test_rbtreehash_list_LDADD.
33578         * modules/xvasprintf-tests (Makefile.am): New variable
33579         test_xvasprintf_LDADD.
33580         Reported by Eric Blake.
33581
33582 2007-04-03  Eric Blake  <ebb9@byu.net>
33583
33584         * DEPENDENCIES: Weaken m4 requirements.
33585
33586 2007-04-03  Bruno Haible  <bruno@clisp.org>
33587
33588         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33589         * modules/isnanl-tests (configure.ac): Likewise.
33590
33591 2007-04-03  Ben Pfaff  <blp@gnu.org>
33592
33593         * modules/iconv_open: Add $(srcdir)/ to source directory
33594         references in Makefile fragments that call gperf, to fix VPATH
33595         builds.
33596
33597 2007-04-03  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33600         * lib/ldexpl.c: Undo last change.
33601
33602 2007-04-03  Bruno Haible  <bruno@clisp.org>
33603
33604         * modules/printf-frexpl (Depends-on): Undo last change.
33605         (Files): Add m4/ldexpl.m4.
33606
33607 2007-04-03  Bruno Haible  <bruno@clisp.org>
33608
33609         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33610         * modules/isnanl (Link): New section.
33611
33612         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33613         * modules/frexp (Link): New section.
33614
33615         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33616         * modules/frexpl (Link): New section.
33617
33618         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33619         * modules/ldexpl (Link): New section.
33620
33621 2007-04-03  Bruno Haible  <bruno@clisp.org>
33622
33623         * modules/TEMPLATE-EXTENDED: New file.
33624         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33625
33626 2007-04-03  Bruno Haible  <bruno@clisp.org>
33627
33628         * DEPENDENCIES: New file.
33629         Suggested by Simon Josefsson.
33630
33631 2007-04-03  Bruno Haible  <bruno@clisp.org>
33632
33633         * doc/gnulib.texi: Escape @.
33634
33635 2007-04-03  James Youngman  <jay@gnu.org>
33636         and Paul Eggert  <eggert@cs.ucla.edu>
33637
33638         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33639         birthtime on all systems that have birthtime, not just those which
33640         use st_birthtimensec rather than st_birthtim.  Putting zero in
33641         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33642         that the birth time is not available for files on an NFS mount.
33643
33644 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33645
33646         * modules/memxor: Move back from crypto/, suggested by Bruno.
33647         * modules/crypto/hmac-sha1: Fix memxor dependency.
33648
33649         * modules/crypto/gc: Moved from ../.
33650
33651 2007-04-02  Eric Blake  <ebb9@byu.net>
33652
33653         * lib/ldexpl.c (includes): Avoid libm.
33654
33655         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33656
33657 2007-04-02  Bruno Haible  <bruno@clisp.org>
33658
33659         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33660         on IRIX.
33661
33662 2007-04-02  Bruno Haible  <bruno@clisp.org>
33663
33664         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33665         x86 or x86_64 platforms running MacOS X.
33666         Reported by Ryan Schmidt <@ryandesign.com>.
33667
33668 2007-04-02  Bruno Haible  <bruno@clisp.org>
33669
33670         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33671         i386.
33672
33673 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33674
33675         * modules/crypto/arcfour: Moved from ../.
33676         * modules/crypto/arcfour-tests: Moved from ../.
33677         * modules/crypto/arctwo: Moved from ../.
33678         * modules/crypto/arctwo-tests: Moved from ../.
33679         * modules/crypto/des: Moved from ../.
33680         * modules/crypto/des-tests: Moved from ../.
33681         * modules/crypto/gc-arcfour: Moved from ../.
33682         * modules/crypto/gc-arcfour-tests: Moved from ../.
33683         * modules/crypto/gc-arctwo: Moved from ../.
33684         * modules/crypto/gc-arctwo-tests: Moved from ../.
33685         * modules/crypto/gc-des: Moved from ../.
33686         * modules/crypto/gc-des-tests: Moved from ../.
33687         * modules/crypto/gc-hmac-md5: Moved from ../.
33688         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33689         * modules/crypto/gc-hmac-sha1: Moved from ../.
33690         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33691         * modules/crypto/gc-md2: Moved from ../.
33692         * modules/crypto/gc-md2-tests: Moved from ../.
33693         * modules/crypto/gc-md4: Moved from ../.
33694         * modules/crypto/gc-md4-tests: Moved from ../.
33695         * modules/crypto/gc-md5: Moved from ../.
33696         * modules/crypto/gc-md5-tests: Moved from ../.
33697         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33698         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33699         * modules/crypto/gc-random: Moved from ../.
33700         * modules/crypto/gc-rijndael: Moved from ../.
33701         * modules/crypto/gc-rijndael-tests: Moved from ../.
33702         * modules/crypto/gc-sha1: Moved from ../.
33703         * modules/crypto/gc-sha1-tests: Moved from ../.
33704         * modules/crypto/gc-tests: Moved from ../.
33705         * modules/crypto/hmac-md5: Moved from ../.
33706         * modules/crypto/hmac-md5-tests: Moved from ../.
33707         * modules/crypto/hmac-sha1: Moved from ../.
33708         * modules/crypto/hmac-sha1-tests: Moved from ../.
33709         * modules/crypto/md2: Moved from ../.
33710         * modules/crypto/md2-tests: Moved from ../.
33711         * modules/crypto/md4: Moved from ../.
33712         * modules/crypto/md4-tests: Moved from ../.
33713         * modules/crypto/md5: Moved from ../.
33714         * modules/crypto/md5-tests: Moved from ../.
33715         * modules/crypto/memxor: Moved from ../.
33716         * modules/crypto/rijndael: Moved from ../.
33717         * modules/crypto/rijndael-tests: Moved from ../.
33718         * modules/crypto/sha1: Moved from ../.
33719
33720 2007-03-30  James Youngman  <jay@gnu.org>
33721
33722         * tests/test-stat-time.c (prepare_test): use chmod() rather than
33723         rename() to change the ctime of a file (because ctime is unaffected
33724         by rename on jfs2 on AIX 5.1).
33725         (main): Start by doing cleanup, in case a previous run failed leaving
33726         test files behind.
33727
33728 2007-03-31  Bruno Haible  <bruno@clisp.org>
33729
33730         Support old proprietary implementations of iconv.
33731         * modules/iconv_open: New file.
33732         * lib/iconv_.h: New file.
33733         * m4/iconv_h.m4: New file.
33734         * lib/iconv_open.c: New file.
33735         * lib/iconv_open-aix.gperf: New file.
33736         * lib/iconv_open-hpux.gperf: New file.
33737         * lib/iconv_open-irix.gperf: New file.
33738         * lib/iconv_open-osf.gperf: New file.
33739         * m4/iconv_open.m4: New file.
33740         * modules/linebreak (Depends-on): Add iconv_open.
33741         * modules/striconv (Depends-on): Likewise.
33742         * modules/striconveh (Depends-on): Likewise.
33743         * modules/unicodeio (Depends-on): Likewise.
33744         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33745         (iconv_t)(-1).
33746         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33747         conversion if cd is (iconv_t)(-1).
33748         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33749         is not possible.
33750
33751 2007-03-31  Bruno Haible  <bruno@clisp.org>
33752
33753         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33754         work on Solaris either. Protect also second use of "autodetect_jp".
33755
33756 2007-03-31  Bruno Haible  <bruno@clisp.org>
33757
33758         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
33759         the function is not present.
33760
33761 2007-03-31  Bruno Haible  <bruno@clisp.org>
33762
33763         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
33764         the function is not present.
33765
33766 2007-03-31  Bruno Haible  <bruno@clisp.org>
33767
33768         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
33769         a bug in HP-UX iconv_open().
33770
33771 2007-03-31  Bruno Haible  <bruno@clisp.org>
33772
33773         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
33774         (Mathematics <math.h>): New section, add fpieee.
33775         (Input/output <stdio.h>): Add fseterr.
33776         (Mathematics <math.h>): New section, add printf-frexp.
33777         (Container data structures): Add sublist.
33778         (Core language properties): Add fpucw, inline.
33779         (Functions for greatest-width integer types <inttypes.h>): Add
33780         imaxabs, imaxdiv, inttypes.
33781         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
33782         isnanl-nolibm, ldexp.
33783         (Mathematics <math.h>): New section, add printf-frexpl.
33784         (Support for systems lacking POSIX:2001): Add fprintf-posix,
33785         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
33786         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
33787         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
33788         (Unicode string functions): Add unistr/u*-mbtoucr.
33789         (Java): Add javacomp-script, javaexec-script.
33790         (C#): Add csharpcomp-script, csharpexec-script.
33791         (Support for building libraries and executables): Add havelib,
33792         relocatable-*.
33793         (Support for maintaining and releasing projects): Renamed from
33794         'Support for maintaining and release projects'. Add announce-gen.
33795
33796 2007-03-31  Bruno Haible  <bruno@clisp.org>
33797
33798         * README: Talk primarily about git.
33799         (git and CVS): Renamed from CVS.
33800         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
33801         gnulib is available through git.
33802         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
33803
33804 2007-03-30  Bruno Haible  <bruno@clisp.org>
33805
33806         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
33807         * lib/poll_.h: Likewise.
33808         * lib/stat_.h: Likewise.
33809         * lib/sys_time_.h: Likewise.
33810         * lib/sysexit_.h: Likewise.
33811         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
33812         * lib/stdbool_.h: Likewise.
33813         * lib/byteswap_.h: Add double-inclusion guard.
33814
33815 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
33816
33817         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
33818
33819 2007-03-30  Karl Berry  <karl@gnu.org>
33820
33821         * config/srclist-update: double space after USA in the license
33822         substitution, since that's how it's usually (?) written.
33823
33824 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33825
33826         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
33827         reported by Bruno Haible.
33828
33829 2007-03-29  Bruno Haible  <bruno@clisp.org>
33830
33831         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
33832         a bug in AIX iconv().
33833
33834 2007-03-29  Bruno Haible  <bruno@clisp.org>
33835
33836         * modules/ldexpl-tests: New file.
33837         * tests/test-ldexpl.c: New file.
33838
33839 2007-03-29  Bruno Haible  <bruno@clisp.org>
33840
33841         * lib/ldexpl.c: Include fpucw.h.
33842         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
33843         multiplication.
33844         * modules/ldexpl (Depends-on): Add fpucw.
33845
33846 2007-03-29  Bruno Haible  <bruno@clisp.org>
33847
33848         * modules/ldexpl: New file.
33849         * m4/ldexpl.m4: New file.
33850         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
33851         set.
33852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
33853         REPLACE_LDEXPL.
33854         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
33855         REPLACE_LDEXPL.
33856         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33857         gl_FUNC_LDEXPL_WORKS.
33858         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
33859         * modules/mathl (Files): Remove lib/ldexpl.c.
33860         (Depends-on): Add ldexpl.
33861
33862 2007-03-29  Bruno Haible  <bruno@clisp.org>
33863
33864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
33865
33866 2007-03-29  Bruno Haible  <bruno@clisp.org>
33867
33868         * tests/test-striconveh.c (main): Don't assume that a direct conversion
33869         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
33870         and possibly also HP-UX.
33871         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33872         work on AIX, IRIX, HP-UX, OSF/1.
33873         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33874         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33875         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33876         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33877         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
33878         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33879
33880 2007-03-29  Bruno Haible  <bruno@clisp.org>
33881
33882         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
33883
33884 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33885
33886         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
33887         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
33888
33889 2007-03-29  Eric Blake  <ebb9@byu.net>
33890
33891         * lib/acl-internal.h: Remove redundant include.
33892         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
33893         Cygwin when a file is locked.
33894
33895 2007-03-29  Bruno Haible  <bruno@clisp.org>
33896
33897         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
33898         file.
33899         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
33900
33901 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33902
33903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
33904         try to remove a parent directory if the child couldn't be removed
33905         (except for the first rmdir, which could fail because the child
33906         doesn't exist).  Problem reported by Jeff Blaine in
33907         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
33908
33909 2007-03-28  Bruno Haible  <bruno@clisp.org>
33910
33911         * lib/striconveh.c (utf8conv_carefully): New function.
33912         (mem_cd_iconveh_internal): Invoke it.
33913
33914 2007-03-28  Bruno Haible  <bruno@clisp.org>
33915
33916         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
33917         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
33918         input.
33919         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
33920         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
33921         unistr/u8-uctomb.
33922
33923 2007-03-28  Bruno Haible  <bruno@clisp.org>
33924
33925         * modules/unistr/u8-mbtoucr: New file.
33926         * lib/unistr/u8-mbtoucr.c: New file.
33927         * modules/unistr/u16-mbtoucr: New file.
33928         * lib/unistr/u16-mbtoucr.c: New file.
33929         * modules/unistr/u16-mbtoucr: New file.
33930         * lib/unistr/u16-mbtoucr.c: New file.
33931         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
33932
33933 2007-03-27  Simon Josefsson  <simon@josefsson.org>
33934             Bruno Haible  <bruno@clisp.org>
33935
33936         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
33937         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
33938         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
33939
33940         * m4/stdio_h.m4: Add stubs for vasprintf too.
33941
33942         * modules/stdio: Support vasprintf in sed command.
33943
33944         * modules/vasprintf: Depend on stdio for prototypes.  Remove
33945         vasprintf.h.  Add stdio module indicator.
33946
33947         * lib/stdio_.h: Declare asprintf and vasprintf, based on
33948         vasprintf.h.
33949
33950         * lib/vasprintf.h: File removed.
33951
33952         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
33953         * lib/vasprintf.c: Ditto.
33954         * lib/xvasprintf.c: Ditto.
33955         * tests/test-vasprintf-posix.c: Ditto.
33956         * tests/test-vasprintf.c: Ditto.
33957
33958 2007-03-27  Bruno Haible  <bruno@clisp.org>
33959
33960         Make vasnprintf multithread-safe.
33961         * lib/vasnprintf.c (decimal_point_char): New function.
33962         (VASNPRINTF): Use it.
33963         Suggested by Simon Josefsson.
33964
33965 2007-03-27  Eric Blake  <ebb9@byu.net>
33966
33967         Support sub-second birthtime on cygwin.
33968         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
33969         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
33970         (get_stat_birthtime): Also work with st_birthtim.
33971
33972 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33973
33974         * lib/stat-time.h (USE_BIRTHTIME): Remove.
33975         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
33976         (get_stat_birthtime_ns): Do not try to use "spare" fields.
33977         (get_stat_birthtime_ns): Simplify compile-time tests.
33978         (get_stat_birthtime): Change the API to look like
33979         get_stat_mtime etc., except return a negative tv_nsec on error.
33980         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33981         Don't check for "spare" fields.
33982         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
33983         or for struct stat.st_birthtime, as these tests aren't used.
33984         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
33985
33986 2007-03-27  Bruno Haible  <bruno@clisp.org>
33987
33988         * lib/stat-time.h: Include <sys/stat.h>.
33989
33990 2007-03-27  James Youngman  <jay@gnu.org>
33991
33992         * lib/stat-time.h (get_stat_birthtime): New function for
33993           retrieving st_birthtime as provided by UFS2 (hence *BSD).
33994         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
33995           and its variants.
33996         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
33997         * modules/stat-time-test: New file.
33998         * tests/test-stat-time.c: New test, devised by Bruno Haible.
33999
34000 2007-03-26  Bruno Haible  <bruno@clisp.org>
34001
34002         Better support of signalling NaNs.
34003         * lib/atanl.c: Include isnanl.h.
34004         (atanl): Perform test for NaN at the beginning of the function and
34005         through a call to isnanl.
34006         * lib/cosl.c: Include isnanl.h.
34007         (cosl): Perform test for NaN at the beginning of the function and
34008         through a call to isnanl.
34009         * lib/ldexpl.c: Include isnanl.h.
34010         (ldexpl): Perform test for NaN through a call to isnanl.
34011         * lib/logl.c: Include isnanl.h.
34012         (logl): Perform test for NaN at the beginning of the function and
34013         through a call to isnanl.
34014         * lib/sinl.c: Include isnanl.h.
34015         (sinl): Perform test for NaN at the beginning of the function and
34016         through a call to isnanl.
34017         * lib/sqrtl.c: Include isnanl.h.
34018         (sqrtl): Perform test for NaN at the beginning of the function and
34019         through a call to isnanl.
34020         * lib/tanl.c: Include isnanl.h.
34021         (tanl): Perform test for NaN at the beginning of the function and
34022         through a call to isnanl.
34023         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34024         * modules/mathl (Depends-on): Add isnanl.
34025
34026 2007-03-26  Eric Blake  <ebb9@byu.net>
34027
34028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34029         regression in logic sense of previous patch.
34030
34031 2007-03-26  Bruno Haible  <bruno@clisp.org>
34032
34033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34034         unportable shell command "if ! ...".
34035         Reported by Ralf Wildenhues.
34036
34037 2007-03-25  Bruno Haible  <bruno@clisp.org>
34038
34039         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34040         <sysexits.h> file, and only add EX_CONFIG.
34041         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34042         absolute file name and whether it is sufficient. Substitute also
34043         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34044         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34045         ABSOLUTE_SYSEXITS_H into sysexits.h.
34046
34047 2007-03-25  Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34050         hints is NULL.
34051
34052 2007-03-25  Bruno Haible  <bruno@clisp.org>
34053
34054         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34055         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34056
34057 2007-03-25  Bruno Haible  <bruno@clisp.org>
34058
34059         * lib/vasnprintf.c: Include langinfo.h.
34060         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34061         multithread-safe.
34062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34063         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34071         Reported by Simon Josefsson.
34072
34073 2007-03-25  Bruno Haible  <bruno@clisp.org>
34074
34075         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34076         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34077         * modules/vasnprintf (Depends-on): Add stdint.
34078
34079 2007-03-25  Bruno Haible  <bruno@clisp.org>
34080
34081         * modules/fpieee: New file.
34082         * m4/fpieee.m4: New file.
34083         * modules/isnan-nolibm (Depends-on): Add fpieee.
34084         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34085         * modules/isnanl (Depends-on): Add fpieee.
34086
34087 2007-03-25  Bruno Haible  <bruno@clisp.org>
34088
34089         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34090
34091 2007-03-25  Bruno Haible  <bruno@clisp.org>
34092
34093         Avoid test failures on IRIX 6.5.
34094         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34095         (main): Use it.
34096         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34097         macros.
34098         (main): Use them.
34099
34100 2007-03-25  Bruno Haible  <bruno@clisp.org>
34101
34102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34103         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34104         exists but doesn't work.
34105         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34106         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34108         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34109
34110 2007-03-25  Bruno Haible  <bruno@clisp.org>
34111
34112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34113         returns inf. Needed on IRIX 6.5.
34114
34115 2007-03-25  Bruno Haible  <bruno@clisp.org>
34116
34117         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34118         (main): Use isnanl instead of x != x idiom.
34119         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34120
34121         * tests/test-frexp.c: Include isnan.h.
34122         (main): Use isnan instead of x != x idiom.
34123         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34124
34125 2007-03-25  Bruno Haible  <bruno@clisp.org>
34126
34127         * tests/test-frexp.c (NaN): New function/macro.
34128         (main): Use it instead of 0.0 / 0.0.
34129         * tests/test-isnan.c (NaN): New function/macro.
34130         (main): Use it instead of 0.0 / 0.0.
34131         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34132         (test_function): Use it instead of 0.0 / 0.0.
34133         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34134         (test_function): Use it instead of 0.0 / 0.0.
34135         * tests/test-snprintf-posix.h (NaN): New function/macro.
34136         (test_function): Use it instead of 0.0 / 0.0.
34137         * tests/test-sprintf-posix.h (NaN): New function/macro.
34138         (test_function): Use it instead of 0.0 / 0.0.
34139         * tests/test-fprintf-posix.h (NaN): New function/macro.
34140         (test_function): Use it instead of 0.0 / 0.0.
34141         * tests/test-printf-posix.h (NaN): New function/macro.
34142         (test_function): Use it instead of 0.0 / 0.0.
34143
34144         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34145
34146 2007-03-25  Bruno Haible  <bruno@clisp.org>
34147
34148         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34149
34150 2007-03-25  Bruno Haible  <bruno@clisp.org>
34151
34152         * lib/regexec.c (merge_state_with_log): Make static.
34153
34154 2007-03-25  Bruno Haible  <bruno@clisp.org>
34155
34156         * lib/trigl.c (kernel_rem_pio2): Make static.
34157
34158 2007-03-25  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/sincosl.c (sincosl_table): Make static.
34161
34162 2007-03-25  Bruno Haible  <bruno@clisp.org>
34163
34164         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34165         if the compiler does not support C99.
34166
34167 2007-03-25  Bruno Haible  <bruno@clisp.org>
34168
34169         * modules/time (Makefile.am): Ensure all rule action lines start with a
34170         tab.
34171
34172 2007-03-24  Bruno Haible  <bruno@clisp.org>
34173
34174         * modules/tsearch-tests: New file.
34175         * tests/test-tsearch.sh: New file.
34176         * tests/test-tsearch.c: New file, mostly copied from glibc.
34177
34178         * modules/search-tests: New file.
34179         * tests/test-search.c: New file.
34180
34181         * modules/search: New file.
34182         * lib/search_.h: New file, incorporating lib/tsearch.h.
34183         * m4/search_h.m4: New file.
34184         * lib/tsearch.h: Remove file.
34185         * lib/tsearch.c: Include search.h instead of tsearch.h.
34186         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34187         HAVE_TSEARCH.
34188         * modules/tsearch (Files): Remove lib/tsearch.h.
34189         (Depends-on): Add search.
34190         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34191         (Include): Change tsearch.h into search.h.
34192
34193 2007-03-24  Bruno Haible  <bruno@clisp.org>
34194
34195         * modules/fpucw: New file.
34196         * lib/fpucw.h: New file.
34197         * lib/frexp.c: Include fpucw.h.
34198         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34199         (FUNC): Use them.
34200         * lib/printf-frexp.c: Include fpucw.h.
34201         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34202         (FUNC): Use them.
34203         * lib/vasnprintf.c: Include fpucw.h.
34204         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34205         'long double' calculations.
34206         * tests/test-frexpl.c: Include fpucw.h.
34207         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34208         * tests/test-printf-frexpl.c: Include fpucw.h.
34209         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34210         * modules/frexpl (Depends-on): Add fpucw.
34211         * modules/printf-frexpl (Depends-on): Likewise.
34212         * modules/fprintf-posix (Depends-on): Likewise.
34213         * modules/snprintf-posix (Depends-on): Likewise.
34214         * modules/sprintf-posix (Depends-on): Likewise.
34215         * modules/vasnprintf-posix (Depends-on): Likewise.
34216         * modules/vasprintf-posix (Depends-on): Likewise.
34217         * modules/vfprintf-posix (Depends-on): Likewise.
34218         * modules/vsnprintf-posix (Depends-on): Likewise.
34219         * modules/vsprintf-posix (Depends-on): Likewise.
34220         * modules/frexpl-tests (Depends-on): Likewise.
34221         * modules/printf-frexpl-tests (Depends-on): Likewise.
34222
34223 2007-03-24  Bruno Haible  <bruno@clisp.org>
34224
34225         * lib/float+.h: New file.
34226         * lib/isnan.c: Include float+.h.
34227         (SIZE): New macro.
34228         (FUNC): Compare only SIZE bytes of the value.
34229         * lib/vasnprintf.c: Include float+.h.
34230         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34231         SIZEOF_LDBL or SIZEOF_DBL bytes.
34232         * modules/isnan-nolibm (Files): Add lib/float+.h.
34233         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34234         * modules/isnanl (Files): Add lib/float+.h.
34235         * modules/vasnprintf (Files): Add lib/float+.h.
34236
34237 2007-03-24  Bruno Haible  <bruno@clisp.org>
34238
34239         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34240         include isnanl-nolibm.h.
34241
34242 2007-03-24  Bruno Haible  <bruno@clisp.org>
34243
34244         * tests/test-read-file.c (main): Don't produce spurious output for
34245         expected situations. Make the test fail if it encountered unexpected
34246         results.
34247
34248 2007-03-24  Bruno Haible  <bruno@clisp.org>
34249
34250         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34251         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34252
34253 2007-03-24  Bruno Haible  <bruno@clisp.org>
34254
34255         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34256
34257 2007-03-24  Bruno Haible  <bruno@clisp.org>
34258
34259         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34260         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34261
34262         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34263         * modules/utf8-ucs4: Turn into a symbolic link to module
34264         unistr/u8-mbtouc.
34265
34266         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34267         utf8-ucs4-unsafe.
34268         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34269         unistr/u8-mbtouc-unsafe.
34270
34271         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34272         * modules/utf16-ucs4: Turn into a symbolic link to module
34273         unistr/u16-mbtouc.
34274
34275         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34276         utf16-ucs4-unsafe.
34277         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34278         unistr/u16-mbtouc-unsafe.
34279
34280         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34281         * modules/ucs4-utf8: Turn into a symbolic link to module
34282         unistr/u8-ubtomb.
34283
34284         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34285         * modules/ucs4-utf16: Turn into a symbolic link to module
34286         unistr/u16-ubtomb.
34287
34288 2007-03-24  Bruno Haible  <bruno@clisp.org>
34289
34290         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34291         Enable the function only if HAVE_INLINE.
34292         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34293         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34294         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34295         Enable the function only if HAVE_INLINE.
34296         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34297         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34298         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34299         Enable the function only if HAVE_INLINE.
34300         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34301         Enable the function only if HAVE_INLINE.
34302         * modules/utf8-ucs4: Update.
34303         * modules/utf8-ucs4-unsafe: Update.
34304         * modules/utf16-ucs4: Update.
34305         * modules/utf16-ucs4-unsafe: Update.
34306         * modules/ucs4-utf8: Update.
34307         * modules/ucs4-utf16: Update.
34308
34309 2007-03-24  Bruno Haible  <bruno@clisp.org>
34310
34311         * lib/utf8-ucs4.h: Remove file.
34312         * lib/utf8-ucs4-unsafe.h: Remove file.
34313         * lib/utf16-ucs4.h: Remove file.
34314         * lib/utf16-ucs4-unsafe.h: Remove file.
34315         * lib/ucs4-utf8.h: Remove file.
34316         * lib/ucs4-utf16.h: Remove file.
34317         * lib/unistr.h: Include their previous contents.
34318         * m4/utf-ucs4.m4: Remove file.
34319         * m4/ucs4-utf.m4: Remove file.
34320         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34321         (Depends-on): Add unistr/base.
34322         (configure.ac): Remove gl_UTF_UCS4.
34323         (Makefile.am): Update.
34324         (Include): Change to unistr.h.
34325         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34326         (Depends-on): Add unistr/base.
34327         (configure.ac): Remove gl_UTF_UCS4.
34328         (Makefile.am): Update.
34329         (Include): Change to unistr.h.
34330         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34331         (Depends-on): Add unistr/base.
34332         (configure.ac): Remove gl_UTF_UCS4.
34333         (Makefile.am): Update.
34334         (Include): Change to unistr.h.
34335         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34336         (Depends-on): Add unistr/base.
34337         (configure.ac): Remove gl_UTF_UCS4.
34338         (Makefile.am): Update.
34339         (Include): Change to unistr.h.
34340         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34341         (Depends-on): Add unistr/base.
34342         (configure.ac): Remove gl_UCS4_UTF.
34343         (Makefile.am): Update.
34344         (Include): Change to unistr.h.
34345         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34346         (Depends-on): Add unistr/base.
34347         (configure.ac): Remove gl_UCS4_UTF.
34348         (Makefile.am): Update.
34349         (Include): Change to unistr.h.
34350         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34351         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34352         utf8-ucs4-unsafe.h.
34353         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34354         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34355         utf16-ucs4-unsafe.h.
34356         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34357         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34358         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34359         * lib/unistr/u8-strchr.c: Likewise.
34360         * lib/unistr/u8-strrchr.c: Likewise.
34361         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34362         * lib/unistr/u16-strchr.c: Likewise.
34363         * lib/unistr/u16-strrchr.c: Likewise.
34364         * lib/striconveh.c: Update.
34365         * lib/linebreak.c: Update.
34366
34367 2007-03-24  Bruno Haible  <bruno@clisp.org>
34368
34369         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34370         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34371
34372 2007-03-22  Bruno Haible  <bruno@clisp.org>
34373
34374         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34375
34376 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34377
34378         * MODULES.html.sh (File system functions): New module write-any-file.
34379         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34380         * m4/write-any-file.m4: New files.
34381
34382 2007-03-23  Eric Blake  <ebb9@byu.net>
34383
34384         * gnulib-tool: Rearrange space-tab sequences, since some editors
34385         like to eat them.
34386
34387 2007-03-23  Eric Blake  <ebb9@byu.net>
34388
34389         * lib/version-etc.c (version_etc_va): Update license wording to
34390         be more concise.  Recommended by Richard Stallman.
34391
34392 2007-03-22  Bruno Haible  <bruno@clisp.org>
34393
34394         * lib/poll.c (MSG_PEEK): New fallback definition.
34395
34396 2007-03-22  Bruno Haible  <bruno@clisp.org>
34397
34398         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34399         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34400         (main): Update.
34401         Fixes a compilation error on BeOS.
34402
34403 2007-03-22  Bruno Haible  <bruno@clisp.org>
34404
34405         * modules/frexpl-tests: New file.
34406         * tests/test-frexpl.c: New file.
34407
34408         * modules/frexpl: New file.
34409         * m4/frexpl.m4: New file.
34410         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34411         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34413         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34414         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34415         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34416
34417 2007-03-22  Bruno Haible  <bruno@clisp.org>
34418
34419         * lib/frexpl.c: Share code with lib/frexp.c.
34420         * modules/mathl (Files): Add lib/frexp.c.
34421         (Depends-on): Add isnanl-nolibm.
34422
34423 2007-03-22  Bruno Haible  <bruno@clisp.org>
34424
34425         * modules/printf-frexp (Files): Add m4/frexp.m4.
34426         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34427         only if the found frexp function actually works.
34428
34429 2007-03-22  Bruno Haible  <bruno@clisp.org>
34430
34431         * lib/frexp.c: Remove older implementation that uses divisions.
34432
34433 2007-03-21  Bruno Haible  <bruno@clisp.org>
34434
34435         * modules/frexp-tests: New file.
34436         * tests/test-frexp.c: New file.
34437
34438         * modules/frexp: New file.
34439         * lib/frexp.c: New file.
34440         * m4/frexp.m4: New file.
34441         * lib/math_.h (frexp): New declaration.
34442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34443         REPLACE_FREXP.
34444         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34445
34446 2007-03-21  Bruno Haible  <bruno@clisp.org>
34447
34448         * modules/isnanl-tests: New file.
34449         * tests/test-isnanl.c: New file.
34450
34451         * modules/isnanl: New file.
34452         * lib/isnanl.h: New file.
34453         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34454         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34455         gl_FUNC_ISNANL_WORKS.
34456         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34457         New macros.
34458
34459 2007-03-21  Bruno Haible  <bruno@clisp.org>
34460
34461         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34462         lib/isnanl.h.
34463         (Include): Update.
34464         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34465         * lib/vasnprintf.c: Update.
34466         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34467         tests/test-isnanl.h, remove tests/test-isnanl.c.
34468         (Makefile.am): Update.
34469         * tests/test-isnanl-nolibm.c: New file.
34470         * tests/test-isnanl.h: New file.
34471         * tests/test-isnanl.c: Remove file.
34472
34473 2007-03-21  Jim Meyering  <jim@meyering.net>
34474
34475         When trying to open ".", treat ESTALE like EACCES.
34476         * lib/savewd.c (savewd_save): Resort to forking not just upon
34477         failure with EACCES, but also when errno is ESTALE.
34478
34479 2007-03-20  Bruno Haible  <bruno@clisp.org>
34480
34481         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34482         Needed on AIX 5.1. Reported by Matthew Woehlke.
34483
34484 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34485
34486         Suggestions by Bruno Haible:
34487         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34488         our own.
34489         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34490         * modules/acl (Depends-on): Add gettext.
34491
34492 2007-03-19  Bruno Haible  <bruno@clisp.org>
34493
34494         * modules/iconvme: Remove file.
34495         * lib/iconvme.h: Remove file.
34496         * lib/iconvme.c: Remove file.
34497         * m4/iconvme.m4: Remove file.
34498
34499 2007-03-19  Bruno Haible  <bruno@clisp.org>
34500
34501         * doc/relocatable-maint.texi: Break long shell script line.
34502         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34503
34504 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34505
34506         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34507         handle file_has_acl.
34508         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34509         * lib/acl.c: Move header inclusions and related macro defns into
34510         lib/acl-internal.h.
34511         (S_ISLNK): Remove defn, since that's now done for us.
34512         (file_has_acl): Move to lib/file-has-acl.c.
34513         Call acl_trivial if available.  This is the crucial part of the fix.
34514         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34515         shared within the library.  Rewrite a bit, partly to make it compatible
34516         with the GNU coding style.
34517         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34518         Remove unnecessary double-quotes.
34519         Don't test for acl_to_text; the build will catch that.
34520         Replace acl_entries if it doesn't exist and it is needed.
34521         Check for -lsec and acl_trivial (as used on Solaris 10).
34522         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34523         lib/file-has-acl.c.
34524         (Depends-on): Add sys_stat, for S_ISLNK.
34525
34526 2007-03-19  Ben Pfaff  <blp@gnu.org>
34527
34528         * doc/gnulib.texi: Fix typos.
34529         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34530
34531 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34532
34533         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34534         If size is zero here, buf must be zero.
34535
34536 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34537
34538         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34539         <bruno@clisp.org>.
34540
34541 2007-03-18  Bruno Haible  <bruno@clisp.org>
34542
34543         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34544         Suggested by Eric Blake.
34545
34546 2007-03-18  Ben Pfaff  <blp@gnu.org>
34547
34548         * doc/relocatable.texi: Recommend using as prefix a directory
34549         that does not exist and will never be created.  Based on
34550         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34551         and others.
34552
34553 2007-03-17  Bruno Haible  <bruno@clisp.org>
34554
34555         * lib/fchownat.c: Include lchown.h.
34556
34557 2007-03-17  Bruno Haible  <bruno@clisp.org>
34558
34559         Fix endless loop when the given allocated size was > INT_MAX.
34560         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34561         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34562         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34563         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34564         * lib/sprintf.c (sprintf): Likewise.
34565
34566 2007-03-17  Bruno Haible  <bruno@clisp.org>
34567
34568         * tests/test-argp-2.sh (func_compare): Output a context diff.
34569
34570 2007-03-17  Bruno Haible  <bruno@clisp.org>
34571
34572         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34573         locale's decimal-point character.
34574
34575 2007-03-17  Bruno Haible  <bruno@clisp.org>
34576
34577         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34578         before comparing it. Needed because on some platforms (e.g. x86) a
34579         'long double' occupies less bytes than sizeof (long double).
34580
34581 2007-03-17  Bruno Haible  <bruno@clisp.org>
34582
34583         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34584         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34585         * tests/test-getaddrinfo.c (simple): Likewise.
34586         * tests/test-read-file.c (main): Likewise.
34587
34588 2007-03-17  Bruno Haible  <bruno@clisp.org>
34589
34590         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34591
34592 2007-03-17  Bruno Haible  <bruno@clisp.org>
34593
34594         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34595         unused variable.
34596
34597 2007-03-17  Bruno Haible  <bruno@clisp.org>
34598
34599         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34600         * tests/test-c-strncasecmp.c: Likewise.
34601
34602 2007-03-17  Bruno Haible  <bruno@clisp.org>
34603
34604         * modules/stdlib (Depends-on): Add unistd.
34605         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34606         Needed for MacOS X 10.3.
34607
34608 2007-03-17  Bruno Haible  <bruno@clisp.org>
34609
34610         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34611
34612 2007-03-17  Bruno Haible  <bruno@clisp.org>
34613
34614         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34615
34616 2007-03-17  Bruno Haible  <bruno@clisp.org>
34617
34618         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34619         to reflect files copied from gnulib (with or without modifications).
34620         Suggested by Jim Meyering.
34621
34622 2007-03-17  Eric Blake  <ebb9@byu.net>
34623
34624         * NEWS: Document stdlib change from 2007-02-18.
34625
34626 2007-03-17  Jim Meyering  <jim@meyering.net>
34627
34628         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34629         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34630         someone uses a name containing shell meta-characters.
34631         Reported by Alfred M. Szmidt.
34632
34633         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34634
34635 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34636
34637         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34638         and copy gettext configuration files only if configure.ac contains
34639         a use of AM_GNU_GETTEXT_VERSION.
34640
34641 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34642
34643         * build-aux/bootstrap (gnulib_name): New variable.
34644         (gnulib_tool_options): Use it.
34645
34646 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34647
34648         * tests/test-des.c: Use new namespace.
34649
34650 2007-03-15  Bruno Haible  <bruno@clisp.org>
34651
34652         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34653         Reported by James Youngman <jay@gnu.org>.
34654
34655 2007-03-15  Bruno Haible  <bruno@clisp.org>
34656
34657         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34658         declared prototype. Needed with cc on OSF/1 5.1.
34659
34660 2007-03-15  Bruno Haible  <bruno@clisp.org>
34661
34662         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34663         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34664         (struct gl_list_implementation): Add dispose_fn argument to the
34665         'create_empty', 'create' methods.
34666         (struct gl_list_impl_base): Add field 'dispose_fn'.
34667         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34668         argument.
34669         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34670         dispose_fn argument.
34671         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34672         dispose_fn on the dropped values.
34673         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34674         dispose_fn argument.
34675         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34676         dropped values.
34677         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34678         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34679         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34680         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34681         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34682         argument.
34683         (gl_tree_list_free): Call dispose_fn on the dropped values.
34684         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34685         the dropped values.
34686         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34687         Add dispose_fn argument.
34688         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34689         Call dispose_fn on the dropped values.
34690         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34691         Add dispose_fn argument.
34692         (gl_sublist_create): Initialize the 'dispose_fn' field.
34693         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34694         * tests/test-array_list.c (main): Update.
34695         * tests/test-carray_list.c (main): Update.
34696         * tests/test-avltree_list.c (main): Update.
34697         * tests/test-rbtree_list.c (main): Update.
34698         * tests/test-avltreehash_list.c (main): Update.
34699         * tests/test-rbtreehash_list.c (main): Update.
34700         * tests/test-linked_list.c (main): Update.
34701         * tests/test-linkedhash_list.c (main): Update.
34702         * tests/test-array_oset.c (main): Update.
34703
34704 2007-03-15  Bruno Haible  <bruno@clisp.org>
34705
34706         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34707         (gl_oset_create_empty): Add dispose_fn argument.
34708         (struct gl_oset_implementation): Add dispose_fn argument to
34709         'create_empty' method.
34710         (struct gl_oset_impl_base): Add dispose_fn field.
34711         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34712         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34713         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34714         values.
34715         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34716         (gl_tree_oset_free): Call dispose_fn on the dropped values.
34717         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34718         dropped value.
34719         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34720         dropped value.
34721         * tests/test-array_oset.c (main): Update.
34722         * tests/test-avltree_oset.c (main): Update.
34723         * tests/test-rbtree_oset.c (main): Update.
34724         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34725
34726 2007-03-13  Bruno Haible  <bruno@clisp.org>
34727
34728         * tests/test-stdbool.c (i): Update after last patch.
34729
34730 2007-03-12  Bruno Haible  <bruno@clisp.org>
34731
34732         * lib/quotearg.c: Include <wctype.h> early, before the definition of
34733         the iswprint macro. Needed on Solaris 2.5.1.
34734
34735 2007-03-12  Bruno Haible  <bruno@clisp.org>
34736
34737         * tests/test-printf-frexp.c (main): Declare x as volatile.
34738
34739 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34740
34741         * doc/gnulib.texi (Build robot for gnulib): New section.
34742
34743 2007-03-12  Jim Meyering  <jim@meyering.net>
34744
34745         * build-aux/bootstrap: New file.
34746         * build-aux/bootstrap.conf: New file, from coreutils.
34747
34748 2007-03-11  Bruno Haible  <bruno@clisp.org>
34749
34750         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34751
34752 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34753
34754         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34755         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
34756         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
34757
34758 2007-03-11  Bruno Haible  <bruno@clisp.org>
34759
34760         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
34761         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
34762
34763 2007-03-11  Bruno Haible  <bruno@clisp.org>
34764
34765         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
34766         formula. Needed for SunPRO C 5.0.
34767
34768 2007-03-11  Bruno Haible  <bruno@clisp.org>
34769
34770         * modules/long-options (Depends-on): Add getopt.
34771
34772 2007-03-11  Bruno Haible  <bruno@clisp.org>
34773
34774         * modules/modechange (Depends-on): Add stdbool.
34775
34776 2007-03-11  Bruno Haible  <bruno@clisp.org>
34777
34778         * modules/i-ring (Depends-on): Add stdbool.
34779
34780 2007-03-11  Bruno Haible  <bruno@clisp.org>
34781
34782         * modules/gc-des (Depends-on): Add stdbool.
34783
34784 2007-03-11  Bruno Haible  <bruno@clisp.org>
34785
34786         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
34787
34788 2007-03-11  Bruno Haible  <bruno@clisp.org>
34789
34790         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
34791
34792 2007-03-11  Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
34795
34796 2007-03-11  Bruno Haible  <bruno@clisp.org>
34797
34798         * lib/vasnprintf.c (sprintf): Undefine.
34799
34800 2007-03-11  Bruno Haible  <bruno@clisp.org>
34801
34802         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
34803         initializers in SunPRO C and Compaq C compilers.
34804
34805 2007-03-11  Bruno Haible  <bruno@clisp.org>
34806
34807         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
34808         decrementing code ANSI C compliant.
34809
34810 2007-03-11  Bruno Haible  <bruno@clisp.org>
34811
34812         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
34813         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
34814
34815 2007-03-11  Bruno Haible  <bruno@clisp.org>
34816
34817         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
34818         <stdbool.h> substitute doesn't pass.
34819
34820 2007-03-11  Bruno Haible  <bruno@clisp.org>
34821
34822         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
34823
34824 2007-03-11  Bruno Haible  <bruno@clisp.org>
34825
34826         * gnulib-tool (func_create_megatestdir): Create also an autobuild
34827         script, for submission to autobuild.josefsson.org.
34828
34829 2007-03-10  Bruno Haible  <bruno@clisp.org>
34830
34831         * modules/canonicalize-lgpl-tests: New file.
34832         * tests/test-canonicalize-lgpl.sh: New file.
34833         * tests/test-canonicalize-lgpl.c: New file.
34834
34835         * modules/c-strcase-tests: New file.
34836         * tests/test-c-strcase.sh: New file.
34837         * tests/test-c-strcasecmp.c: New file.
34838         * tests/test-c-strncasecmp.c: New file.
34839
34840         * modules/atexit-tests: New file.
34841         * tests/test-atexit.sh: New file.
34842         * tests/test-atexit.c: New file.
34843
34844 2007-03-10  Bruno Haible  <bruno@clisp.org>
34845
34846         * tests/test-binary-io.sh: Use temporary filenames that are not so
34847         likely to clash with those of other tests (in a parallel make).
34848         * tests/test-binary-io.c: Likewise.
34849
34850 2007-03-10  Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
34853         fallback; use #error instead.
34854         Suggested by Simon Josefsson.
34855
34856 2007-03-10  Bruno Haible  <bruno@clisp.org>
34857
34858         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
34859         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
34860         first and the last.
34861
34862 2007-03-10  Bruno Haible  <bruno@clisp.org>
34863
34864         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
34865
34866 2007-03-10  Bruno Haible  <bruno@clisp.org>
34867
34868         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
34869         "make distcheck".
34870         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
34871         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
34872         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
34873
34874 2007-03-10  Bruno Haible  <bruno@clisp.org>
34875
34876         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
34877         variable.
34878         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
34879         variable.
34880
34881 2007-03-09  Eric Blake  <ebb9@byu.net>
34882         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
34883
34884         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
34885         types are not being provided by gnulib.
34886         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
34887         types are supported.
34888
34889 2007-03-10  Bruno Haible  <bruno@clisp.org>
34890
34891         * lib/stdio_.h (__attribute__): New macro.
34892         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
34893         vsprintf): Specify __attribute__ __format__ for GCC.
34894         Suggested by Eric Blake.
34895
34896 2007-03-09  Bruno Haible  <bruno@clisp.org>
34897
34898         * modules/printf-posix-tests: New file.
34899         * tests/test-printf-posix.sh: New file.
34900         * tests/test-printf-posix.c: New file.
34901
34902         * modules/printf-posix: New file.
34903         * lib/printf.c: New file.
34904         * m4/printf-posix-rpl.m4: New file.
34905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
34906         REPLACE_PRINTF.
34907         * lib/stdio_.h (printf): New declaration.
34908         (format, __format__, ____printf____, ____scanf____, ____strftime____,
34909         ____strfmon____): New macros.
34910         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
34911         REPLACE_PRINTF.
34912
34913 2007-03-09  Bruno Haible  <bruno@clisp.org>
34914
34915         * tests/test-vasnprintf-posix2.sh: New file.
34916         * tests/test-vasnprintf-posix2.c: New file.
34917         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
34918         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34919         (Makefile.am): Activate test-vasnprintf-posix2.sh.
34920
34921         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
34922         a locale dependent decimal point, rather than always '.'.
34923
34924 2007-03-09  Eric Blake  <ebb9@byu.net>
34925
34926         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
34927         spite of platforms like Tandem/NSK that define it to -1.
34928
34929 2007-03-08  Bruno Haible  <bruno@clisp.org>
34930
34931         * modules/vprintf-posix-tests: New file.
34932         * tests/test-vprintf-posix.sh: New file.
34933         * tests/test-vprintf-posix.c: New file.
34934         * tests/test-printf-posix.h: New file.
34935
34936         * modules/vprintf-posix: New file.
34937         * lib/vprintf.c: New file.
34938         * m4/vprintf-posix.m4: New file.
34939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
34940         REPLACE_VPRINTF.
34941         * lib/stdio_.h (vprintf): New declaration.
34942         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
34943         REPLACE_VPRINTF.
34944
34945 2007-03-08  Bruno Haible  <bruno@clisp.org>
34946
34947         * modules/fprintf-posix-tests: New file.
34948         * tests/test-fprintf-posix.sh: New file.
34949         * tests/test-fprintf-posix.c: New file.
34950
34951         * modules/fprintf-posix: New file.
34952         * lib/fprintf.c: New file.
34953         * m4/fprintf-posix.m4: New file.
34954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
34955         REPLACE_FPRINTF.
34956         * lib/stdio_.h (fprintf): New declaration.
34957         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
34958         REPLACE_FPRINTF.
34959
34960 2007-03-08  Bruno Haible  <bruno@clisp.org>
34961
34962         * modules/vfprintf-posix-tests: New file.
34963         * tests/test-vfprintf-posix.sh: New file.
34964         * tests/test-vfprintf-posix.c: New file.
34965         * tests/test-fprintf-posix.h: New file.
34966         * tests/test-fprintf-posix.out: New file.
34967
34968         * modules/vfprintf-posix: New file.
34969         * lib/vfprintf.c: New file.
34970         * m4/vfprintf-posix.m4: New file.
34971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
34972         REPLACE_VFPRINTF.
34973         * lib/stdio_.h (vfprintf): New declaration.
34974         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
34975         REPLACE_VFPRINTF.
34976
34977 2007-03-08  Bruno Haible  <bruno@clisp.org>
34978
34979         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
34980
34981 2007-03-08  Bruno Haible  <bruno@clisp.org>
34982
34983         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
34984         instead of 'expr' invocations.
34985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34988         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34989         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34990         Suggested by Paul Eggert.
34991
34992 2007-03-08  Bruno Haible  <bruno@clisp.org>
34993
34994         * modules/fseterr-tests: New file.
34995         * tests/test-fseterr.c: New file.
34996
34997         * modules/fseterr: New file.
34998         * lib/fseterr.h: New file.
34999         * lib/fseterr.c: New file.
35000
35001 2007-03-08  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35004         * lib/getopt_.h: Likewise.
35005         * lib/mbswidth.h: Likewise.
35006         * lib/setenv.h: Likewise.
35007         * lib/vasnprintf.h: Likewise.
35008         * lib/vasprintf.h: Likewise.
35009         * lib/verror.h: Likewise.
35010         * lib/xsetenv.h: Likewise.
35011         * lib/xvasprintf.h: Likewise.
35012
35013 2007-03-08  Jim Meyering  <jim@meyering.net>
35014
35015         * users.txt: Add parted.
35016
35017         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35018
35019 2007-03-07  Bruno Haible  <bruno@clisp.org>
35020
35021         * m4/printf.m4: Make the shell script snippets copy&pastable.
35022
35023 2007-03-02  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/netinet_in_.h: New file.
35026         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35027         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35028         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35029         (Depends-on): Add absolute-header.
35030         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35031         into netinet/in.h.
35032
35033 2007-03-03  Bruno Haible  <bruno@clisp.org>
35034
35035         * lib/sys_select_.h: New file.
35036         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35037         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35038         * modules/sys_select (Files): Add lib/sys_select_.h.
35039         (Depends-on): Add absolute-header.
35040         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35041         into sys/select.h.
35042
35043 2007-03-02  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35046         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35047         values.
35048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35049         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35050         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35051         * modules/sys_socket (Depends-on): Add absolute-header.
35052         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35053         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35054         (Include): Remove requirement of inclusion of <sys/types.h>.
35055
35056 2007-03-02  Bruno Haible  <bruno@clisp.org>
35057
35058         * lib/byteswap_.h (bswap_32): Fix formula.
35059
35060 2007-03-06  Bruno Haible  <bruno@clisp.org>
35061
35062         * modules/sprintf-posix-tests: New file.
35063         * tests/test-sprintf-posix.c: New file.
35064
35065         * modules/sprintf-posix: New file.
35066         * lib/sprintf.c: New file.
35067         * m4/sprintf-posix.m4: New file.
35068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35069         REPLACE_SPRINTF.
35070         * lib/stdio_.h (sprintf): New declaration.
35071         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35072         REPLACE_SPRINTF.
35073
35074 2007-03-06  Bruno Haible  <bruno@clisp.org>
35075
35076         * modules/vsprintf-posix-tests: New file.
35077         * tests/test-vsprintf-posix.c: New file.
35078         * tests/test-sprintf-posix.h: New file.
35079
35080         * modules/vsprintf-posix: New file.
35081         * lib/vsprintf.c: New file.
35082         * m4/vsprintf-posix.m4: New file.
35083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35084         REPLACE_VSPRINTF.
35085         * lib/stdio_.h (vsprintf): New declaration.
35086         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35087         REPLACE_VSPRINTF.
35088
35089 2007-03-06  Bruno Haible  <bruno@clisp.org>
35090
35091         * modules/vsnprintf (Depend-on): Remove minmax.
35092
35093 2007-03-06  Bruno Haible  <bruno@clisp.org>
35094
35095         * modules/snprintf-posix-tests: New file.
35096         * tests/test-snprintf-posix.c: New file.
35097
35098         * modules/snprintf-posix: New file.
35099         * m4/snprintf-posix.m4: New file.
35100         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35101         gl_FUNC_SNPRINTF.
35102         (gl_FUNC_SNPRINTF): Invoke it.
35103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35104         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35105         is set.
35106         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35107
35108 2007-03-06  Bruno Haible  <bruno@clisp.org>
35109
35110         * modules/vsnprintf-posix-tests: New file.
35111         * tests/test-vsnprintf-posix.c: New file.
35112         * tests/test-snprintf-posix.h: New file.
35113
35114         * modules/vsnprintf-posix: New file.
35115         * m4/vsnprintf-posix.m4: New file.
35116         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35117         gl_FUNC_VSNPRINTF.
35118         (gl_FUNC_VSNPRINTF): Invoke it.
35119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35120         * lib/stdio_.h (vsnprintf): Define as a replacement if
35121         REPLACE_VSNPRINTF is set.
35122         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35123
35124 2007-03-06  Bruno Haible  <bruno@clisp.org>
35125
35126         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35128
35129 2007-03-06  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35132         (asinl): Declare also if HAVE_DECL_ASINL is set.
35133         (atanl): Declare also if HAVE_DECL_ATANL is set.
35134         (ceill): Declare also if HAVE_DECL_CEILL is set.
35135         (cosl): Declare also if HAVE_DECL_COSL is set.
35136         (expl): Declare also if HAVE_DECL_EXPL is set.
35137         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35138         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35139         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35140         (logl): Declare also if HAVE_DECL_LOGL is set.
35141         (sinl): Declare also if HAVE_DECL_SINL is set.
35142         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35143         (tanl): Declare also if HAVE_DECL_TANL is set.
35144         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35146         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35147         declaration of frexpl, ldexpl.
35148         * modules/printf-frexpl (Depends-on): Add math.
35149         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35150
35151 2007-03-05  Bruno Haible  <bruno@clisp.org>
35152
35153         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35154         frexpl and ldexpl are declared.
35155         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35156
35157 2007-03-05  Bruno Haible  <bruno@clisp.org>
35158
35159         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35160         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35161
35162 2007-03-05  Bruno Haible  <bruno@clisp.org>
35163
35164         * lib/stdio_.h: Include <stddef.h>.
35165
35166 2007-03-05  Bruno Haible  <bruno@clisp.org>
35167
35168         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35169
35170 2007-03-05  Bruno Haible  <bruno@clisp.org>
35171
35172         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35173         NetBSD 4, from Ralf Wildenhues.
35174
35175 2007-03-04  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/vasprintf.h: Update #if logic for the case when the functions
35178         exist but are overridden.
35179
35180 2007-03-04  Bruno Haible  <bruno@clisp.org>
35181
35182         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35183         implementations: glibc-2.4 and MacOS X 10.3.
35184         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35185         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35186         * tests/test-vasprintf-posix.c (test_function): Likewise.
35187
35188 2007-03-04  Bruno Haible  <bruno@clisp.org>
35189
35190         * modules/vasprintf-posix-tests: New file.
35191         * tests/test-vasprintf-posix.c: New file.
35192
35193         * modules/vasprintf-posix: New file.
35194         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35195         defined.
35196         * m4/vasprintf-posix.m4: New file.
35197         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35198         gl_FUNC_VASPRINTF.
35199         (gl_FUNC_VASPRINTF): Invoke it.
35200         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35201         here.
35202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35203
35204 2007-03-04  Bruno Haible  <bruno@clisp.org>
35205
35206         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35207         REPLACE_GETTIMEOFDAY.
35208         * modules/sys_time (Makefile.am): Likewise.
35209         * m4/sys_time_h.m4: Likewise.
35210         * m4/gettimeofday.m4: Likewise.
35211
35212 2007-03-04  Bruno Haible  <bruno@clisp.org>
35213
35214         * modules/vasnprintf-posix-tests: New file.
35215         * tests/test-vasnprintf-posix.c: New file.
35216
35217         * modules/vasnprintf-posix: New file.
35218         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35219         printf-frexpl.h.
35220         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35221         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35222         REPLACE_VASNPRINTF is defined.
35223         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35224         gl_FUNC_VASNPRINTF.
35225         (gl_FUNC_VASNPRINTF): Invoke it.
35226         * m4/vasnprintf-posix.m4: New file.
35227         * m4/printf.m4: New file.
35228
35229 2007-03-04  Bruno Haible  <bruno@clisp.org>
35230
35231         Compile progreloc.c only if --enable-relocatable is specified.
35232         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35233         if --enable-relocatable was specified.
35234         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35235         lib_SOURCES.
35236
35237 2007-03-04  Jim Meyering  <jim@meyering.net>
35238
35239         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35240         Use it consistently, rather than enumerating errno constants.
35241
35242 2007-03-04  Bruno Haible  <bruno@clisp.org>
35243
35244         * modules/xvasprintf-tests: New file.
35245         * tests/test-xvasprintf.c: New file.
35246
35247         * modules/vasprintf-tests: New file.
35248         * tests/test-vasprintf.c: New file.
35249
35250         * modules/vasnprintf-tests: New file.
35251         * tests/test-vasnprintf.c: New file.
35252
35253         * modules/vsnprintf-tests: New file.
35254         * tests/test-vsnprintf.c: New file.
35255
35256         * modules/snprintf-tests: New file.
35257         * tests/test-snprintf.c: New file.
35258
35259 2007-03-04  Bruno Haible  <bruno@clisp.org>
35260
35261         Compile relocatable.c only if --enable-relocatable is specified.
35262         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35263         gl_RELOCATABLE_LIBRARY.
35264         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35265         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35266         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35267         gl_RELOCATABLE_LIBRARY.
35268         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35269         (Makefile.am): Remove lib_SOURCES.
35270         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35271         gl_RELOCATABLE_LIBRARY.
35272         (Makefile.am): Remove lib_SOURCES.
35273         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35274         always.
35275         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35276         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35277
35278 2007-03-04  Bruno Haible  <bruno@clisp.org>
35279
35280         * modules/argmatch-tests: New file.
35281         * tests/test-argmatch.c: New file.
35282
35283         * tests/test-allocsa.c (main): Halve the number of loop runs.
35284
35285         * modules/alloca-opt-tests: New file.
35286         * tests/test-alloca-opt.c: New file.
35287
35288 2007-03-04  Jim Meyering  <jim@meyering.net>
35289
35290         Work around difference between Linux ACLs and Solaris 10 ZFS.
35291         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35292         for EINVAL.
35293
35294 2007-03-03  Bruno Haible  <bruno@clisp.org>
35295
35296         * modules/relocatable-prog (Depends-on): Add back progreloc's
35297         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35298
35299 2007-03-03  Bruno Haible  <bruno@clisp.org>
35300
35301         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35302         * modules/relocatable-lib: New file.
35303
35304 2007-03-03  Bruno Haible  <bruno@clisp.org>
35305
35306         * modules/relocatable-prog: Renamed from modules/relocatable.
35307         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35308
35309 2007-03-03  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35312         m4/relocatable-lib.m4.
35313         (Depends-on): Remove 'relocatable'.
35314         (configure.ac): Add gl_RELOCATABLE_NOP.
35315
35316 2007-03-03  Bruno Haible  <bruno@clisp.org>
35317
35318         * modules/relocatable-prog-wrapper: New file.
35319         * modules/relocatable (Depends-on): Add it. Remove all other
35320         dependencies except progname.
35321         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35322
35323         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35324         (gl_FUNC_STRERROR): Nop.
35325         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35326
35327         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35328         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35329
35330         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35331         (gl_FUNC_READLINK): Update.
35332
35333         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35334
35335 2007-03-03  Bruno Haible  <bruno@clisp.org>
35336
35337         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35338         * modules/xreadlink (Depends-on): Add unistd.
35339         * modules/xreadlink-with-size (Depends-on): Likewise.
35340
35341 2007-03-03  Bruno Haible  <bruno@clisp.org>
35342
35343         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35344         extracted from gt_FUNC_SETENV.
35345         (gt_FUNC_SETENV): Remove macro.
35346         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35347         remove gt_FUNC_SETENV.
35348
35349 2007-03-03  Bruno Haible  <bruno@clisp.org>
35350
35351         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35352         ENABLE_RELOCATABLE here.
35353         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35354
35355 2007-03-03  Bruno Haible  <bruno@clisp.org>
35356
35357         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35358         * tests/test-rbtreehash_list.c: Include progname.h.
35359         (main): Call set_program_name.
35360
35361         * modules/rbtree-oset-tests (Depends-on): Add progname.
35362         * tests/test-rbtree_oset.c: Include progname.h.
35363         (main): Call set_program_name.
35364
35365         * modules/rbtree-list-tests (Depends-on): Add progname.
35366         * tests/test-rbtree_list.c: Include progname.h.
35367         (main): Call set_program_name.
35368
35369         * modules/linked-list-tests (Depends-on): Add progname.
35370         * tests/test-linked_list.c: Include progname.h.
35371         (main): Call set_program_name.
35372
35373 2007-03-03  Bruno Haible  <bruno@clisp.org>
35374
35375         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35376         All uses of __restrict changed to _Restrict_.
35377         * lib/glob_.h (__restrict): Remove macro.
35378
35379 2007-03-02  Bruno Haible  <bruno@clisp.org>
35380
35381         * modules/gettext (configure.ac): Require gettext infrastructure
35382         from version 0.16.1.
35383
35384 2007-03-02  Bruno Haible  <bruno@clisp.org>
35385
35386         * modules/linkedhash-list-tests (Depends-on): Add progname.
35387         * tests/test-linkedhash_list.c: Include progname.h.
35388         (main): Call set_program_name.
35389
35390         * modules/carray-list-tests (Depends-on): Add progname.
35391         * tests/test-carray_list.c: Include progname.h.
35392         (main): Call set_program_name.
35393
35394         * modules/avltreehash-list-tests (Depends-on): Add progname.
35395         * tests/test-avltreehash_list.c: Include progname.h.
35396         (main): Call set_program_name.
35397
35398         * modules/avltree-oset-tests (Depends-on): Add progname.
35399         * tests/test-avltree_oset.c: Include progname.h.
35400         (main): Call set_program_name.
35401
35402         * modules/avltree-list-tests (Depends-on): Add progname.
35403         * tests/test-avltree_list.c: Include progname.h.
35404         (main): Call set_program_name.
35405
35406         * modules/array-oset-tests (Depends-on): Add progname.
35407         * tests/test-array_oset.c: Include progname.h.
35408         (main): Call set_program_name.
35409
35410         * modules/array-list-tests (Depends-on): Add progname.
35411         * tests/test-array_list.c: Include progname.h.
35412         (main): Call set_program_name.
35413
35414         * modules/argp-tests (Depends-on): Add progname.
35415         * tests/test-argp.c: Include argp.h first. Include progname.h.
35416         (main): Call set_program_name.
35417
35418 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35419
35420         * doc/gnulib-tool.texi (Initial import): Reword description of
35421         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35422         limited effect even if defined after the first system include.
35423
35424 2007-03-01  Bruno Haible  <bruno@clisp.org>
35425
35426         * build-aux/config.libpath: Update to libtool-1.5.22.
35427         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35428
35429 2007-03-01  Bruno Haible  <bruno@clisp.org>
35430
35431         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35432         foo_CFLAGS.
35433         Reported by Ralf Wildenhues.
35434
35435 2007-03-01  Bruno Haible  <bruno@clisp.org>
35436
35437         * build-aux/install-reloc: Remove object files left over by some
35438         compilers.
35439         Reported by Ralf Wildenhues.
35440
35441 2007-03-01  Bruno Haible  <bruno@clisp.org>
35442
35443         * build-aux/install-reloc: Break long lines.
35444
35445 2007-03-01  Bruno Haible  <bruno@clisp.org>
35446
35447         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35448         Reported by Ralf Wildenhues.
35449
35450 2007-03-01  Bruno Haible  <bruno@clisp.org>
35451
35452         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35453         include ordering constraints.
35454
35455 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35456
35457         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35459         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35460         as another example.
35461         * lib/time_.h: Fix misspelling.
35462         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35463         Require gl_HEADER_TIME_H_DEFAULTS.
35464         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35465         * m4/time_r.m4 (gl_TIME_R): Likewise.
35466         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35467
35468 2007-03-01  Bruno Haible  <bruno@clisp.org>
35469
35470         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35471         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35472
35473 2007-03-01  Jim Meyering  <jim@meyering.net>
35474
35475         * modules/xreadlink (Maintainer): Add my name.
35476         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35477
35478 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35479             Bruno Haible  <bruno@clisp.org>
35480
35481         * build-aux/install-reloc: Compile also c-ctype.c.
35482         * build-aux/relocatable.sh.in: New file.
35483         * doc/relocatable.texi: New file.
35484         * doc/relocatable-maint.texi: New file.
35485         * doc/gnulib.texi: Include relocatable-maint.texi.
35486         * lib/progreloc.c: Include unistd.h unconditionally.
35487         * lib/relocwrapper.c: Include unistd.h unconditionally.
35488         Include c-ctype.h.
35489         (add_dotbin): Use c_tolower.
35490         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35491         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35492         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35493         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35494         to m4/relocatable-lib.m4.
35495         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35496         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35497         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35498         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35499         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35500         * modules/relocatable: New file.
35501         * modules/relocatable-lib: New file.
35502         * modules/relocatable-script: New file.
35503
35504 2007-02-28  Bruno Haible  <bruno@clisp.org>
35505
35506         Import --enable-relocatable infrastructure.
35507         * build-aux/config.libpath: New file, from GNU gettext.
35508         * build-aux/install-reloc: New file, from GNU gettext.
35509         * build-aux/reloc-ldflags: New file, from GNU gettext.
35510         * lib/relocatable.h: New file, from GNU gettext.
35511         * lib/relocatable.c: New file, from GNU gettext.
35512         * lib/relocwrapper.c: New file, from GNU gettext.
35513         * m4/relocatable.m4: New file, from GNU gettext.
35514
35515 2007-02-28  Bruno Haible  <bruno@clisp.org>
35516
35517         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35518
35519         * modules/xreadlink: New file, from GNU gettext with modifications.
35520         * lib/xreadlink.c: New file, from GNU gettext.
35521         * lib/xreadlink.h: Add comments.
35522         (xreadlink): New declaration.
35523
35524         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35525         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35526         lib/xreadlink-with-size.c.
35527         (configure.ac): Remove gl_XREADLINK invocation.
35528         (Makefile.am): Augment lib_SOURCES.
35529         * m4/xreadlink.m4: Remove file.
35530         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35531         (xreadlink_with_size): Renamed from xreadink.
35532         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35533         * modules/canonicalize (Depends-on): Replace xreadlink with
35534         xreadlink-with-size.
35535         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35536
35537 2007-02-25  Jim Meyering  <jim@meyering.net>
35538
35539         * build-aux/announce-gen: When complaining about excess arguments,
35540         list them.
35541
35542 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         * README: Document signed integer overflow situation more
35545         accurately.
35546
35547 2007-02-25  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35550         'a' or 'A' conversion.
35551
35552 2007-02-25  Bruno Haible  <bruno@clisp.org>
35553
35554         * modules/filename: Renamed from modules/pathname.
35555         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35556         lib/concatpath.c with lib/concat-filename.c.
35557         (Makefile.am): Update.
35558         (Include): Replace pathname.h with filename.h.
35559         * lib/filename.h: Renamed from lib/pathname.h.
35560         (concatenated_filename): Renamed from concatenated_pathname.
35561         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35562         (concatenated_filename): Renamed from concatenated_pathname.
35563         * lib/findprog.c: Include filename.h instead of pathname.h.
35564         (find_in_path): Update.
35565         * lib/javacomp.c: Include filename.h instead of pathname.h.
35566         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35567         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35568         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35569         is_oldgcj_14_13_usable, is_javac_usable): Update.
35570         * lib/javaexec.c: Include filename.h instead of pathname.h.
35571         (execute_java_class): Update.
35572         * modules/findprog: Update.
35573         * modules/javacomp: Update.
35574         * modules/javaexec: Update.
35575         * MODULES.html.sh (File system functions): Add 'filename', remove
35576         'pathname'.
35577
35578 2007-02-25  Bruno Haible  <bruno@clisp.org>
35579
35580         * modules/printf-frexpl-tests: New file.
35581         * tests/test-printf-frexpl.c: New file.
35582
35583         * modules/printf-frexpl: New file.
35584         * lib/printf-frexpl.h: New file.
35585         * lib/printf-frexpl.c: New file.
35586         * m4/printf-frexpl.m4: New file.
35587
35588 2007-02-25  Bruno Haible  <bruno@clisp.org>
35589
35590         * modules/printf-frexp-tests: New file.
35591         * tests/test-printf-frexp.c: New file.
35592
35593         * modules/printf-frexp: New file.
35594         * lib/printf-frexp.h: New file.
35595         * lib/printf-frexp.c: New file.
35596         * m4/printf-frexp.m4: New file.
35597
35598 2007-02-25  Bruno Haible  <bruno@clisp.org>
35599
35600         Assume automake >= 1.10 for the tests.
35601         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35602         * modules/arctwo-tests: Likewise.
35603         * modules/argp-tests: Likewise.
35604         * modules/avltree-list-tests: Likewise.
35605         * modules/avltree-oset-tests: Likewise.
35606         * modules/avltreehash-list-tests: Likewise.
35607         * modules/carray-list-tests: Likewise.
35608         * modules/crc-tests: Likewise.
35609         * modules/des-tests: Likewise.
35610         * modules/gc-arcfour-tests: Likewise.
35611         * modules/gc-arctwo-tests: Likewise.
35612         * modules/gc-des-tests: Likewise.
35613         * modules/gc-hmac-md5-tests: Likewise.
35614         * modules/gc-hmac-sha1-tests: Likewise.
35615         * modules/gc-md2-tests: Likewise.
35616         * modules/gc-md4-tests: Likewise.
35617         * modules/gc-md5-tests: Likewise.
35618         * modules/gc-pbkdf2-sha1-tests: Likewise.
35619         * modules/gc-rijndael-tests: Likewise.
35620         * modules/gc-sha1-tests: Likewise.
35621         * modules/gc-tests: Likewise.
35622         * modules/getaddrinfo-tests: Likewise.
35623         * modules/hmac-md5-tests: Likewise.
35624         * modules/hmac-sha1-tests: Likewise.
35625         * modules/linked-list-tests: Likewise.
35626         * modules/linkedhash-list-tests: Likewise.
35627         * modules/lock-tests: Likewise.
35628         * modules/md2-tests: Likewise.
35629         * modules/md4-tests: Likewise.
35630         * modules/md5-tests: Likewise.
35631         * modules/rbtree-list-tests: Likewise.
35632         * modules/rbtree-oset-tests: Likewise.
35633         * modules/rbtreehash-list-tests: Likewise.
35634         * modules/read-file-tests: Likewise.
35635         * modules/rijndael-tests: Likewise.
35636         * modules/stdint-tests: Likewise.
35637         * modules/tls-tests: Likewise.
35638
35639 2007-02-24  Bruno Haible  <bruno@clisp.org>
35640
35641         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35642         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35643         function; instead check whether isnan with a double argument links.
35644         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35645         function; instead check whether isnan with a 'long double' argument
35646         links.
35647         Reported by Eric Blake <ebb9@byu.net>.
35648
35649 2007-02-24  Bruno Haible  <bruno@clisp.org>
35650
35651         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35652         defined.
35653         * lib/isnanl.c: Remove all code. Just include isnan.c.
35654         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35655
35656 2007-02-25  Jim Meyering  <jim@meyering.net>
35657
35658         Avoid conflicting types for 'unsetenv' on FreeBSD.
35659         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35660         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35661         in stdlib.h.
35662
35663 2007-02-24  Bruno Haible  <bruno@clisp.org>
35664
35665         * modules/isnanl-nolibm-tests: New file.
35666         * tests/test-isnanl.c: New file.
35667
35668         * modules/isnanl-nolibm: New file.
35669         * lib/isnanl.h: New file.
35670         * lib/isnanl.c: New file.
35671         * m4/isnanl.m4: New file.
35672
35673 2007-02-24  Bruno Haible  <bruno@clisp.org>
35674
35675         * modules/isnan-nolibm-tests: New file.
35676         * tests/test-isnan.c: New file.
35677
35678         * modules/isnan-nolibm: New file.
35679         * lib/isnan.h: New file.
35680         * lib/isnan.c: New file.
35681         * m4/isnan.m4: New file.
35682
35683 2007-02-24  Bruno Haible  <bruno@clisp.org>
35684
35685         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35686         assume that an exponent fits in 20 bits.
35687
35688 2007-02-24  Jim Meyering  <jim@meyering.net>
35689
35690         * m4/regex.m4: Update the description of the configure-time option,
35691         --without-included-regex, to state accurately what the defaults are,
35692         and perhaps to give people an idea why using this option is risky.
35693
35694 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35695
35696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35697         loops on small arguments.  This attempts to avoid the problem
35698         Bruno Haible reported for AIX 4.3.2 in
35699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35700
35701 2007-02-23  Bruno Haible  <bruno@clisp.org>
35702
35703         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35704         Needed for help2man.
35705
35706 2007-02-23  Karl Berry  <karl@gnu.org>
35707
35708         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35709         exists, foo.h should be cvs-ignored, not committed.
35710
35711 2007-02-23  Eric Blake  <ebb9@byu.net>
35712
35713         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
35714         * lib/stat-time.h (includes): Likewise.
35715         * lib/utimecmp.c (includes): Likewise.
35716         * lib/utimens.h (includes): Likewise.
35717         * lib/getdate.y (includes): Also include "timespec.h" for use
35718         internal to the module.
35719         * modules/utimens (Depends-on): Revert yesterday's patch.
35720         * modules/nanosleep (Depends-on): Add missing dependency.
35721
35722 2007-02-22  Bruno Haible  <bruno@clisp.org>
35723
35724         * lib/glob.c: Don't include getlogin_r.h.
35725
35726 2007-02-22  Jim Meyering  <jim@meyering.net>
35727
35728         * modules/utimens (Depends-on): Add timespec, required for
35729         utimens.h's inclusion of timespec.h.
35730
35731 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35732
35733         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35734         long unreadable paths in GNU/Linux.  Problem reported by Andreas
35735         Schwab in
35736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35737         I'll try to think of a better way to fix the Solaris problem.
35738
35739         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35740         like glibc; on Solaris 10, it fails with errno == EINVAL.
35741         POSIX says the behavior is unspecified if the first argument is NULL,
35742         so play it safe and never pass NULL to the system getcwd.
35743
35744 2007-02-21  Jim Meyering  <jim@meyering.net>
35745
35746         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35747         of gettimeofday.  It would conflict with the one now always
35748         provided via sys_time_.h.  Reported by Matthew Woehlke, as
35749         an IRIX 6.5 build failure.
35750
35751 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35752
35753         Minor fixups to port to Solaris 10 with Sun C 5.8.
35754         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35755         * modules/getcwd (Depends-on): Add dirfd.
35756         * lib/putenv.c (putenv): #undef it.
35757         (rpl_putenv): New decl.
35758         (malloc, free): Include <stdlib.h> rather than prototyping separately.
35759
35760 2007-02-20  Bruno Haible  <bruno@clisp.org>
35761
35762         * modules/stdio-tests: New file.
35763         * tests/test-stdio.c: New file.
35764
35765         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
35766         (Depends-on): Add stdio.
35767         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35768         (Include): Use <stdio.h> instead of vsnprintf.h.
35769         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35770         HAVE_DECL_VSNPRINTF.
35771         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
35772
35773         * modules/snprintf (Files): Remove lib/snprintf.h.
35774         (Depends-on): Add stdio.
35775         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35776         (Include): Use <stdio.h> instead of snprintf.h.
35777         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35778         HAVE_DECL_SNPRINTF.
35779         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
35780         * lib/getaddrinfo.c: Likewise.
35781
35782         * modules/stdio: New file.
35783         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
35784         * lib/snprintf.h: Remove file.
35785         * lib/vsnprintf.h: Remove file.
35786         * lib/.cppi-disable: Remove snprintf.h.
35787         * m4/stdio_h.m4: New file.
35788         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
35789
35790 2007-02-20  Jim Meyering  <jim@meyering.net>
35791
35792         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
35793         used by e.g., mingw.  From Bruno Haible.
35794
35795 2007-02-19  Bruno Haible  <bruno@clisp.org>
35796
35797         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
35798         warnings.
35799         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35800
35801 2007-02-19  Bruno Haible  <bruno@clisp.org>
35802
35803         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
35804         from mingw users.
35805
35806 2007-02-19  Bruno Haible  <bruno@clisp.org>
35807
35808         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
35809         warnings.
35810         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
35811
35812 2007-02-19  Jim Meyering  <jim@meyering.net>
35813
35814         Don't use FD after a successful "fdopendir (fd)".
35815         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
35816         Reset it by calling dirfd on the just-obtained DIR*.
35817
35818         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
35819         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
35820
35821 2007-02-18  Bruno Haible  <bruno@clisp.org>
35822
35823         * lib/readlink.c: Include <unistd.h>.
35824         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
35825         HAVE_READLINK.
35826         * modules/readlink (Depends-on): Add unistd.
35827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35828         (Include): Add <unistd.h>.
35829
35830         * lib/getlogin_r.h: Remove file.
35831         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
35832         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
35833         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
35834         HAVE_DECL_GETLOGIN_R.
35835         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
35836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35837         (Include): Use <unistd.h> instead of getlogin_r.h.
35838
35839         * lib/getcwd.h: Remove file.
35840         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
35841         * lib/xgetcwd.c: Likewise.
35842         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
35843         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
35844         * modules/getcwd (Files): Remove lib/getcwd.h.
35845         (Depends-on): Add unistd.
35846         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35847         (Include): Use <unistd.h> instad of getcwd.h.
35848
35849         * lib/ftruncate.c: Include <unistd.h> first.
35850         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
35851         Set HAVE_FTRUNCATE.
35852         * modules/ftruncate (Depends-on): Add unistd.
35853         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35854
35855         * lib/fchdir.c: Include <unistd.h> first.
35856         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
35857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
35858         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
35859         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35860         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
35861
35862         * lib/dup2.c: Include <unistd.h> first.
35863         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
35864         HAVE_DUP2.
35865         * modules/dup2 (Depends-on): Add unistd.
35866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35867
35868         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
35869         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
35870         REPLACE_CHOWN. Don't define chown as a macro here.
35871         * modules/chown (Depends-on): Add unistd.
35872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35873
35874         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
35875         Add definition for GL_LINK_WARNING.
35876         (chown, dup2): New declarations.
35877         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
35878         link warning.
35879         (ftruncate): New declaration.
35880         (getcwd): New declaration, taken from old getcwd.h.
35881         (getlogin_r): New declaration, taken from old getlogin_r.h.
35882         (readlink): New declaration.
35883         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
35884         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
35885         (gl_PREREQ_UNISTD): Remove macro.
35886         (gl_UNISTD_MODULE_INDICATOR): New macro.
35887         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
35888         many new variables. Don't set UNISTD_H.
35889         * modules/unistd (Description): Change.
35890         (Depends-on): Add link-warning.
35891         (configure.ac): Update.
35892         (Makefile.am): Create unistd.h always. Substitute many new variables
35893         into it.
35894
35895 2007-02-18  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
35898         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
35899         HAVE_GETSUBOPT.
35900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
35901         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
35902         * lib/getsubopt.h: Remove file.
35903         * modules/getsubopt (Files): Remove lib/getsubopt.h.
35904         (Depends-on): Add stdlib.
35905         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35906         (Includes): Use <stdlib.h> instead of getsubopt.h.
35907         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
35908         Set HAVE_GETSUBOPT.
35909         * lib/getsubopt.c: Don't include getsubopt.h.
35910
35911 2007-02-18  Bruno Haible  <bruno@clisp.org>
35912
35913         * modules/fchdir (Depends-on): Add dup2.
35914
35915 2007-02-18  Bruno Haible  <bruno@clisp.org>
35916
35917         * lib/stdlib_.h: Handle glibc's special invocation convention
35918         specially.
35919
35920 2007-02-18  Bruno Haible  <bruno@clisp.org>
35921
35922         * modules/stdlib-tests: New file.
35923         * tests/test-stdlib.c: New file.
35924
35925         * modules/mkstemp (Files): Remove lib/mkstemp.h.
35926         (Depends-on): Add stdlib.
35927         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35928         (Includes): Use <stdlib.h> instead of mkstemp.h.
35929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35930         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
35931         * lib/mkstemp.c: Don't include mkstemp.h.
35932         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
35933         * lib/stdlib--.h: Don't include mkstemp.h.
35934
35935         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
35936         (Depends-on): Add stdlib.
35937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35938         (Includes): Use <stdlib.h> instead of mkdtemp.h.
35939         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35940         HAVE_MKDTEMP.
35941         * lib/mkdtemp.c: Don't include mkdtemp.h.
35942         * lib/clean-temp.c: Don't include mkdtemp.h.
35943
35944         * modules/exit (Files): Remove lib/exit.h.
35945         (Depends-on): Add stdlib.
35946         (Makefile.am): Remove lib_SOURCES.
35947         (Include): Use <stdlib.h> instead of exit.h.
35948         * lib/argmatch.c: Don't include exit.h.
35949         * lib/execute.c: Likewise.
35950         * lib/pagealign_alloc.c: Likewise.
35951         * lib/pipe.c: Likewise.
35952         * lib/wait-process.c: Likewise.
35953         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
35954         * lib/exitfail.c: Likewise.
35955         * lib/savewd.c: Likewise.
35956         * lib/xsetenv.c: Likewise.
35957
35958         * modules/stdlib: New file.
35959         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
35960         and extra comments about mkstemp().
35961         * lib/exit.h: Remove file.
35962         * lib/mkdtemp.h: Remove file.
35963         * lib/mkstemp.h: Remove file.
35964         * m4/stdlib_h.m4: New file.
35965         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
35966
35967 2007-02-18  Bruno Haible  <bruno@clisp.org>
35968
35969         * modules/math-tests: New file.
35970         * tests/test-math.c: New file.
35971
35972         * modules/math: New file.
35973         * modules/mathl (Files): Remove lib/mathl.h.
35974         (Depends-on): Add math.
35975         (Makefile.am): Don't mention mathl.h.
35976         (Include): Use <math.h> instead of mathl.h.
35977         * lib/math_.h: New file.
35978         * lib/mathl.h: Remove file.
35979         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
35980         mathl.h.
35981         * lib/asinl.c: Likewise.
35982         * lib/atanl.c: Likewise.
35983         * lib/ceill.c: Likewise.
35984         * lib/cosl.c: Likewise.
35985         * lib/expl.c: Likewise.
35986         * lib/floorl.c: Likewise.
35987         * lib/frexpl.c: Likewise.
35988         * lib/ldexpl.c: Likewise.
35989         * lib/logl.c: Likewise.
35990         * lib/sincosl.c: Likewise.
35991         * lib/sinl.c: Likewise.
35992         * lib/sqrtl.c: Likewise.
35993         * lib/tanl.c: Likewise.
35994         * lib/trigl.c: Likewise.
35995         * m4/math_h.m4: New file.
35996         * MODULES.html.sh (Mathematics): Add math.
35997
35998 2007-02-17  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/wctype-tests: New file.
36001         * tests/test-wctype.c: New file.
36002
36003         * modules/wchar-tests: New file.
36004         * tests/test-wchar.c: New file.
36005
36006         * modules/unistd-tests: New file.
36007         * tests/test-unistd.c: New file.
36008
36009         * modules/time-tests: New file.
36010         * tests/test-time.c: New file.
36011
36012         * modules/sysexits-tests: New file.
36013         * tests/test-sysexits.c: New file.
36014
36015         * modules/sys_time-tests: New file.
36016         * tests/test-sys_time.c: New file.
36017
36018         * modules/sys_stat-tests: New file.
36019         * tests/test-sys_stat.c: New file.
36020
36021         * modules/sys_socket-tests: New file.
36022         * tests/test-sys_socket.c: New file.
36023
36024         * modules/sys_select-tests: New file.
36025         * tests/test-sys_select.c: New file.
36026
36027         * modules/string-tests: New file.
36028         * tests/test-string.c: New file.
36029
36030         * modules/stdbool-tests: New file.
36031         * tests/test-stdbool.c: New file.
36032
36033         * modules/netinet_in-tests: New file.
36034         * tests/test-netinet_in.c: New file.
36035
36036         * modules/inttypes-tests: New file.
36037         * tests/test-inttypes.c: New file.
36038
36039         * modules/fcntl-tests: New file.
36040         * tests/test-fcntl.c: New file.
36041
36042         * modules/byteswap-tests: New file.
36043         * tests/test-byteswap.c: New file.
36044
36045         * modules/arpa_inet-tests: New file.
36046         * tests/test-arpa_inet.c: New file.
36047
36048 2007-02-17  Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36051         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36052         if the corresponding module is not enabled. Emit link warnings if
36053         the function is used nevertheless.
36054         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36055         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36056         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36057         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36058         * modules/inttypes (Depends-on): Add link-warning.
36059         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36060         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36061         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36062         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36063         * modules/imaxdiv (configure.ac): Likewise.
36064         * modules/strtoimax (configure.ac): Likewise.
36065         * modules/strtoumax (configure.ac): Likewise.
36066
36067 2007-02-17  Bruno Haible  <bruno@clisp.org>
36068
36069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36070         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36071         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36072         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36073
36074 2007-02-17  Bruno Haible  <bruno@clisp.org>
36075
36076         * modules/link-warning: New file.
36077         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36078         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36079         * modules/string (Depends-on): Add link-warning.
36080         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36081         string.h.
36082         * MODULES.html.sh (Support for building libraries and executables): Add
36083         link-warning.
36084
36085 2007-02-17  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36088         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36089         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36090         long lines.
36091
36092 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36093             Bruno Haible  <bruno@clisp.org>
36094
36095         * modules/tmpfile: New file.
36096         * lib/tmpfile.c: New file.
36097         * m4/tmpfile.m4: New file.
36098         * MODULES.html.sh (func_all_modules): New section "Input/output".
36099
36100 2007-02-15  Bruno Haible  <bruno@clisp.org>
36101
36102         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36103         (supports_delete_on_close): New function.
36104         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36105
36106 2007-02-14  Bruno Haible  <bruno@clisp.org>
36107
36108         * modules/mbspcasecmp-tests: New file.
36109         * tests/test-mbspcasecmp.sh: New file.
36110         * tests/test-mbspcasecmp.c: New file.
36111
36112         New module mbspcasecmp.
36113         * modules/mbspcasecmp: New file.
36114         * lib/mbspcasecmp.c: New file.
36115         * lib/string_.h (strncasecmp): Change warning message.
36116         (mbspcasecmp): New declaration.
36117         * m4/mbspcasecmp.m4: New file.
36118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36119         GNULIB_MBSPCASECMP.
36120         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36121         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36122
36123 2007-02-14  Bruno Haible  <bruno@clisp.org>
36124
36125         * modules/mbsncasecmp-tests: New file.
36126         * tests/test-mbsncasecmp.sh: New file.
36127         * tests/test-mbsncasecmp.c: New file.
36128
36129         New module mbsncasecmp.
36130         * modules/mbsncasecmp: New file.
36131         * lib/mbsncasecmp.c: New file.
36132         * lib/string_.h (mbsncasecmp): New declaration.
36133         * m4/mbsncasecmp.m4: New file.
36134         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36135         GNULIB_MBSNCASECMP.
36136         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36137         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36138
36139 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36140
36141         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36142         Verify that it doesn't overlap with our flags.
36143         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36144         do not have the desired effect in multibyte locales; instead, use
36145         mbscasecmp.
36146         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36147         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36148         we don't require GNU fnmatch ourselves (if our users require it, they
36149         should do so explicitly).
36150
36151         Fix regex code so it doesn't rely on strcasecmp.
36152         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36153         Otherwise, include gnulib's langinfo.h.
36154         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36155         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36156         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36157         * modules/regex (FILES): Remove m4/codeset.m4.
36158         (Depends-on): Add localcharset.  Remove strcase.
36159
36160 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36161
36162         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36163         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36164
36165 2007-02-13  Bruno Haible  <bruno@clisp.org>
36166
36167         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36169
36170 2007-02-12  Bruno Haible  <bruno@clisp.org>
36171
36172         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36173         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36174         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36175         time warning rather than a link error.
36176
36177 2007-02-12  Bruno Haible  <bruno@clisp.org>
36178
36179         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36180         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36182
36183 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36184
36185         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36186         args, not 2.
36187
36188 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36189
36190         New module 'time', so that apps can include <time.h> as per
36191         POSIX and GNU instead of separate include files like time_r.h
36192         and timegm.h.  This implementation tries out a simpler approach
36193         for replacing decls in standard include files (as compared to
36194         the string module), somewhat as an experiment.
36195
36196         * config/srclist.txt: Comment out mktime.c for now.
36197         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36198         since it doesn't apply any more.  Use generic wording instead.
36199         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36200         'time'.
36201         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36202         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36203         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36204         Don't include <sys/types.h>; no longer needed since we assume C89.
36205         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36206         * lib/strftime.c: Likewise.
36207         * lib/time_r.c: Likewise.
36208         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36209         * lib/nanosleep.c: Include <time.h> first, to check interface.
36210         * lib/strptime.c: Likewise.
36211         * lib/time_r.c: Likewise.
36212         * lib/timegm.c: Likewise.
36213         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36214         needed.
36215         * lib/timegm.c: Don't include timegm.h; no longer needed.
36216         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36217         time.h now handles any problems in that area.
36218         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36219         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36220         that time.h defines struct timespec.
36221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36222         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36223         handles that.
36224         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36225         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36226         needed.  Set REPLACE_LOCALTIME.
36227         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36228         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36229         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36230         nanosleep; time_h.m4 now does that.  Don't require
36231         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36232         module handles this now.
36233         * modules/getdate (Depends-on): Remove timespec.  Add time.
36234         * modules/nanosleep (Depends-on): Likewise.
36235         * modules/stat-time (Depends-on): Likewise.
36236         * modules/nanosleep (Include): Include time.h, not timespec.h.
36237         * modules/strptime (Files): Remove lib/strptime.h.
36238         (Depends-on): Add extensions, time.
36239         (Include): Include time.h, not strptime.h.
36240         * modules/time_r (Files): Remove lib/time_r.h.
36241         (Depends-on): Add time.
36242         (Include): Include time.h, not time_r.h.
36243         * modules/timegm: Likewise.
36244         * modules/timespec (Description): Now does timespec-related decls
36245         of our own, instead of struct timespec itself.
36246         (Depends-on): Add time; remove extensions.
36247         (Maintainer): Add self.
36248         * modules/utimecmp (Depends-on): Add time; remove timespec.
36249         * modules/utimens (Depends-on): Likewise.
36250         * modules/xnanosleep (Depends-on): Likewise.
36251
36252 2007-02-11  Bruno Haible  <bruno@clisp.org>
36253
36254         * lib/c-strstr.c: Include allocsa.h.
36255         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36256         * lib/c-strcasestr.c: Include allocsa.h.
36257         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36258         * lib/strcasestr.c: Include allocsa.h.
36259         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36260         * lib/mbsstr.c: Include allocsa.h.
36261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36262         allocsa/freesa instead of malloc/free.
36263         * lib/mbscasestr.c: Include allocsa.h.
36264         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36265         allocsa/freesa instead of malloc/free.
36266         * modules/c-strstr (Depends-on): Add allocsa.
36267         * modules/c-strcasestr (Depends-on): Likewise.
36268         * modules/strcasestr (Depends-on): Likewise.
36269         * modules/mbsstr (Depends-on): Likewise.
36270         * modules/mbscasestr (Depends-on): Likewise.
36271
36272 2007-02-11  Bruno Haible  <bruno@clisp.org>
36273
36274         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36275
36276         * modules/mbsspn-tests: New file.
36277         * tests/test-mbsspn.sh: New file.
36278         * tests/test-mbsspn.c: New file.
36279
36280 2007-02-11  Bruno Haible  <bruno@clisp.org>
36281
36282         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36283
36284         * modules/mbspbrk-tests: New file.
36285         * tests/test-mbspbrk.sh: New file.
36286         * tests/test-mbspbrk.c: New file.
36287
36288 2007-02-11  Bruno Haible  <bruno@clisp.org>
36289
36290         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36291         unneeded cast.
36292
36293         * modules/mbscspn-tests: New file.
36294         * tests/test-mbscspn.sh: New file.
36295         * tests/test-mbscspn.c: New file.
36296
36297 2007-02-11  Bruno Haible  <bruno@clisp.org>
36298
36299         * modules/mbscasecmp-tests: New file.
36300         * tests/test-mbscasecmp.sh: New file.
36301         * tests/test-mbscasecmp.c: New file.
36302
36303 2007-02-11  Bruno Haible  <bruno@clisp.org>
36304
36305         Ensure O(n) worst-case complexity of mbscasestr.
36306         * lib/mbscasestr.c: Include stdbool.h.
36307         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36308         functions.
36309         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36310         the bookkeeping indicates that it's worth it.
36311         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36312
36313         * modules/mbscasestr-tests: New file.
36314         * tests/test-mbscasestr1.c: New file.
36315         * tests/test-mbscasestr2.sh: New file.
36316         * tests/test-mbscasestr2.c: New file.
36317         * tests/test-mbscasestr3.sh: New file.
36318         * tests/test-mbscasestr3.c: New file.
36319         * tests/test-mbscasestr4.sh: New file.
36320         * tests/test-mbscasestr4.c: New file.
36321         * m4/locale-tr.m4: New file.
36322
36323 2007-02-11  Bruno Haible  <bruno@clisp.org>
36324
36325         Ensure O(n) worst-case complexity of mbsstr.
36326         * lib/mbsstr.c: Include stdbool.h.
36327         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36328         functions.
36329         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36330         bookkeeping indicates that it's worth it.
36331         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36332
36333         * modules/mbsstr-tests: New file.
36334         * tests/test-mbsstr1.c: New file.
36335         * tests/test-mbsstr2.sh: New file.
36336         * tests/test-mbsstr2.c: New file.
36337         * tests/test-mbsstr3.sh: New file.
36338         * tests/test-mbsstr3.c: New file.
36339         * m4/locale-fr.m4: New file.
36340
36341 2007-02-11  Bruno Haible  <bruno@clisp.org>
36342
36343         * lib/mbsrchr.c (mbsrchr): Fix bug.
36344
36345         * modules/mbsrchr-tests: New file.
36346         * tests/test-mbsrchr.sh: New file.
36347         * tests/test-mbsrchr.c: New file.
36348
36349 2007-02-11  Bruno Haible  <bruno@clisp.org>
36350
36351         * lib/mbschr.c (mbschr): Fix bug.
36352
36353         * modules/mbschr-tests: New file.
36354         * tests/test-mbschr.sh: New file.
36355         * tests/test-mbschr.c: New file.
36356         * m4/locale-zh.m4: New file.
36357
36358 2007-02-11  Bruno Haible  <bruno@clisp.org>
36359
36360         Support for copying multibyte string iterators.
36361         * lib/mbiter.h: Include <string.h>.
36362         (mbiter_multi_copy): New function.
36363         (mbi_copy): New macro.
36364         * lib/mbuiter.h: Include <string.h>.
36365         (mbuiter_multi_copy): New function.
36366         (mbui_copy): New macro.
36367
36368 2007-02-11  Bruno Haible  <bruno@clisp.org>
36369
36370         New module mbslen.
36371         * modules/mbslen: New file.
36372         * lib/mbslen.c: New file.
36373         * lib/string_.h (mbslen): New declaration.
36374         * m4/mbslen.m4: New file.
36375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36376         GNULIB_MBSLEN.
36377         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36378         * MODULES.html.sh (Internationalization functions): Add mbslen.
36379
36380 2007-02-11  Bruno Haible  <bruno@clisp.org>
36381
36382         Ensure O(n) worst-case complexity of strcasestr substitute.
36383         * lib/strcasestr.c: Include stdbool.h.
36384         (knuth_morris_pratt): New function.
36385         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36386         bookkeeping indicates that it's worth it.
36387         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36388
36389         * modules/strcasestr-tests: New file.
36390         * tests/test-strcasestr.c: New file.
36391
36392 2007-02-11  Bruno Haible  <bruno@clisp.org>
36393
36394         Ensure O(n) worst-case complexity of c_strcasestr.
36395         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36396         (knuth_morris_pratt): New function.
36397         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36398         the bookkeeping indicates that it's worth it.
36399         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36400
36401         * modules/c-strcasestr-tests: New file.
36402         * tests/test-c-strcasestr.c: New file.
36403
36404 2007-02-11  Bruno Haible  <bruno@clisp.org>
36405
36406         Ensure O(n) worst-case complexity of c_strstr.
36407         * lib/c-strstr.c: Include stdbool.h, string.h.
36408         (knuth_morris_pratt): New function.
36409         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36410         bookkeeping indicates that it's worth it.
36411         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36412
36413         * lib/c-strstr.c: Complete rewrite for maintainability.
36414
36415         * modules/c-strstr-tests: New file.
36416         * tests/test-c-strstr.c: New file.
36417
36418 2007-02-11  Bruno Haible  <bruno@clisp.org>
36419
36420         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36421         5.2.1 and earlier, whereby \055 was treated just like the range
36422         delimiter '-'.
36423         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36424
36425 2007-02-08  Bruno Haible  <bruno@clisp.org>
36426
36427         * modules/regex (Depends-on): Add stdbool.
36428         Reported by Dalibor Topic <robilad@kaffe.org>.
36429
36430 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36431
36432         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36433         Prefer returning from main to exiting from it.
36434         Remove unnecessary parens after sizeof.
36435
36436 2007-02-05  Bruno Haible  <bruno@clisp.org>
36437
36438         New module mbssep.
36439         * modules/mbssep: New file.
36440         * lib/mbssep.c: New file.
36441         * lib/string_.h (strsep): Add a conditional link warning.
36442         (mbssep): New declaration.
36443         * m4/mbssep.m4: New file.
36444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36445         GNULIB_MBSSEP.
36446         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36447         * MODULES.html.sh (Internationalization functions): Add mbssep.
36448
36449 2007-02-05  Bruno Haible  <bruno@clisp.org>
36450
36451         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36452         Optimize search in case of 1 delimiter.
36453
36454 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36455
36456         * lib/acl.h: Include sys/types.h before sys/acl.h.
36457
36458 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36459
36460         Merge upstream fix for glibc bugzilla #3957:
36461
36462         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36463
36464         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36465         bit for RE_HAT_LISTS_NOT_NEWLINE.
36466         (build_charclass_op): Remove bogus comment.
36467
36468 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36469
36470         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36471
36472 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36473
36474         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36475         * lib/memmem.c [!defined _LIBC]: Include config.h.
36476
36477 2007-02-04  Bruno Haible  <bruno@clisp.org>
36478
36479         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36480         warning message.
36481
36482 2007-02-04  Bruno Haible  <bruno@clisp.org>
36483
36484         New module mbstok_r.
36485         * modules/mbstok_r: New file.
36486         * lib/mbstok_r.c: New file.
36487         * lib/string_.h (strtok_r): Change argument names to match the
36488         comments. Add a conditional link warning.
36489         (mbstok_r): New declaration.
36490         * m4/mbstok_r.m4: New file.
36491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36492         GNULIB_MBSTOK_R.
36493         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36494         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36495
36496 2007-02-04  Bruno Haible  <bruno@clisp.org>
36497
36498         New module mbsspn.
36499         * modules/mbsspn: New file.
36500         * lib/mbsspn.c: New file.
36501         * lib/string_.h (strspn): Add a conditional link warning.
36502         (mbsspn): New declaration.
36503         * m4/mbsspn.m4: New file.
36504         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36505         GNULIB_MBSSPN.
36506         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36507         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36508
36509 2007-02-04  Bruno Haible  <bruno@clisp.org>
36510
36511         New module mbspbrk.
36512         * modules/mbspbrk: New file.
36513         * lib/mbspbrk.c: New file.
36514         * lib/string_.h (strpbrk): Add a conditional link warning.
36515         (mbspbrk): New declaration.
36516         * m4/mbspbrk.m4: New file.
36517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36518         GNULIB_MBSPBRK.
36519         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36520         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36521
36522 2007-02-04  Bruno Haible  <bruno@clisp.org>
36523
36524         New module mbscspn.
36525         * modules/mbscspn: New file.
36526         * lib/mbscspn.c: New file.
36527         * lib/string_.h (strcspn): Add a conditional link warning.
36528         (mbscspn): New declaration.
36529         * m4/mbscspn.m4: New file.
36530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36531         GNULIB_MBSCSPN.
36532         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36533         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36534
36535 2007-02-04  Bruno Haible  <bruno@clisp.org>
36536
36537         New module mbscasestr, reduced goal of strcasestr.
36538         * modules/mbscasestr: New file.
36539         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36540         (mbscasestr): Renamed from strcasestr.
36541         * lib/strcasestr.c: Don't include mbuiter.h.
36542         (strcasestr): Remove support for multibyte locales.
36543         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36544         Change the conditional link warning.
36545         (mbscasestr): New declaration.
36546         * m4/mbscasestr.m4: New file.
36547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36548         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36549         REPLACE_STRCASESTR.
36550         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36552         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36553         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36554         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36555         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36556         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36557         (Depends-on): Remove mbuiter.
36558         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36559
36560 2007-02-04  Bruno Haible  <bruno@clisp.org>
36561
36562         Simplify handling of strncasecmp.
36563         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36564         the conditional link warning.
36565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36566         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36567         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36568         * modules/strcase (configure.ac): Don't invoke
36569         gl_STRING_MODULE_INDICATOR.
36570         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36571
36572 2007-02-04  Bruno Haible  <bruno@clisp.org>
36573
36574         New module mbscasecmp, reduced goal of strcasecmp.
36575         * modules/mbscasecmp: New file.
36576         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36577         (mbscasecmp): Renamed from strcasecmp.
36578         * lib/strcasecmp.c: Don't include mbuiter.h.
36579         (strcasecmp): Remove support for multibyte locales.
36580         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36581         Change the conditional link warning.
36582         (mbscasecmp): New declaration.
36583         * m4/mbscasecmp.m4: New file.
36584         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36585         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36586         REPLACE_STRCASECMP.
36587         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36589         GNULIB_MBSCASECMP.
36590         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36591         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36592         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36593         (Depends-on): Remove mbuiter.
36594         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36595
36596 2007-02-04  Bruno Haible  <bruno@clisp.org>
36597
36598         New module mbsstr. Remove module strstr.
36599         * modules/mbsstr: New file.
36600         * modules/strstr: Remove file.
36601         * lib/mbsstr.c: Renamed from lib/strstr.c.
36602         (mbsstr): Renamed from strstr.
36603         * lib/string_.h (strstr): Remove declaration. Change the conditional
36604         link warning.
36605         (mbsstr): New declaration.
36606         * m4/mbsstr.m4: New file.
36607         * m4/strstr.m4: Remove file.
36608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36609         REPLACE_STRSTR.
36610         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36611         Don't initialize GNULIB_STRSTR.
36612         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36613         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36614         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36615         (Support for systems lacking ANSI C 89): Remove strstr.
36616
36617 2007-02-04  Bruno Haible  <bruno@clisp.org>
36618
36619         New module mbsrchr.
36620         * modules/mbsrchr: New file.
36621         * lib/mbsrchr.c: New file.
36622         * lib/string_.h (strrchr): Add a conditional link warning.
36623         (mbsrchr): New declaration.
36624         * m4/mbsrchr.m4: New file.
36625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36626         GNULIB_MBSRCHR.
36627         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36628         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36629
36630 2007-02-04  Bruno Haible  <bruno@clisp.org>
36631
36632         New module mbschr.
36633         * modules/mbschr: New file.
36634         * lib/mbschr.c: New file.
36635         * lib/string_.h (strchr): Add a conditional link warning.
36636         (mbschr): New declaration.
36637         * m4/mbschr.m4: New file.
36638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36639         GNULIB_MBSCHR.
36640         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36641         * MODULES.html.sh (Internationalization functions): Add mbschr.
36642
36643 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36644
36645         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36646
36647         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36648
36649 2007-02-04  Bruno Haible  <bruno@clisp.org>
36650
36651         New module description section 'configure.ac-early'.
36652         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36653         (func_get_autoconf_early_snippet): New function.
36654         (func_import, func_create_testdir): Use it. Remove special cases for
36655         modules 'extensions' and 'lock'.
36656         * modules/extensions (configure.ac-early): Require
36657         gl_USE_SYSTEM_EXTENSIONS.
36658         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36659
36660 2007-02-04  Bruno Haible  <bruno@clisp.org>
36661
36662         Make use of gcj-4.3's -fsource and -ftarget option.
36663         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36664         and if so try the options -fsource and -ftarget.
36665         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36666         source_version, ftarget_option, target_version arguments.
36667         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36668         (is_envjavac_oldgcj_14_14_usable): Renamed from
36669         is_envjavac_gcj_14_14_usable.
36670         (is_envjavac_oldgcj_14_13_usable): Renamed from
36671         is_envjavac_gcj_14_13_usable.
36672         (is_gcj_present): Update.
36673         (is_gcj_43, is_gcj43_usable): New functions.
36674         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36675         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36676         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36677         try the options -fsource and -ftarget.
36678
36679 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36680
36681         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36682         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
36683         larger value.
36684
36685 2007-02-03  Jim Meyering  <jim@meyering.net>
36686
36687         Give tools a better chance to allocate space for very large buffers.
36688         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36689
36690         Make pwd and readlink work also when run with an unreadable parent dir
36691         on systems with openat support.
36692         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36693         provided getcwd function, even when we have openat support.
36694         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36695
36696 2007-02-02  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36699         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36700         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36701         portability problems if one of these functions is only used on specific
36702         platforms.
36703         Reported by Paul Eggert.
36704
36705 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
36706
36707         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36708         is causing more trouble than it's curing.
36709         * lib/regex_internal.h (__mempcpy): Remove.
36710         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36711         (and make the code a tad smaller to boot).
36712         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36713
36714 2007-02-02  Jim Meyering  <jim@meyering.net>
36715
36716         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36717         section, not in the Makefile.am: one.
36718
36719 2007-02-02  Eric Blake  <ebb9@byu.net>
36720
36721         * lib/strchrnul.c: Always include config.h first.
36722
36723         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36724         gnulib strstr is not necessary here.
36725
36726 2007-02-02  Simon Josefsson  <simon@josefsson.org>
36727
36728         * m4/socklen.m4: Fix typo.
36729
36730 2007-02-02  Eric Blake  <ebb9@byu.net>
36731
36732         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36733         * modules/netinet_in (Makefile.am): Likewise.
36734
36735 2007-02-01  Bruno Haible  <bruno@clisp.org>
36736
36737         * lib/string_.h (GL_LINK_WARNING): New macro.
36738         (strcasecmp, strstr, strcasestr): If provided by the system,
36739         conditionally define as a macro that leads to a warning instead of to
36740         an error.
36741         (strncasecmp): Conditionally define as a macro that leads to a warning.
36742
36743 2007-02-01  Karl Berry  <karl@gnu.org>
36744
36745         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36746
36747 2007-02-01  Bruno Haible  <bruno@clisp.org>
36748
36749         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36750         renamings.
36751
36752 2007-02-01  Eric Blake  <ebb9@byu.net>
36753
36754         * modules/regex (Depends-on): Revert dependence on mempcpy.
36755         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36756         module's definition of mempcpy.
36757         Reported by Paul Eggert.
36758
36759 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
36760
36761         * lib/string_.h: If the gnulib module XYZ is not present, undefine
36762         the symbol XYZ before redefining it.  This fixes a problem with
36763         programs that don't use XYZ, when compiled on systems that define
36764         XYZ to something else.
36765
36766 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36767
36768         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
36769         occurs when "mkdir -m foo" creates a setgid directory that is (1)
36770         writeable to group or other and (2) is intended to have a special
36771         mode bit that is set or cleared.  In such a case, the directory
36772         should be neither group- nor other-writeable until the special
36773         mode bits are right.
36774
36775 2007-01-31  Eric Blake  <ebb9@byu.net>
36776
36777         * modules/mountlist (Depends-on): Add strstr.
36778
36779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
36780         bug.
36781         * modules/string (Makefile.am): Remove redundant replacement.
36782         * modules/regex (Depends-on): Add mempcpy.
36783
36784 2007-01-31  Bruno Haible  <bruno@clisp.org>
36785
36786         New module description field 'Link'.
36787         * gnulib-tool (func_usage): Document --extract-link-directive.
36788         (sed_extract_prog): Recognize 'Link' directive.
36789         (func_get_link_directive): New function.
36790         (func_import): Show summary of link directives.
36791         Handle --extract-link-directive option.
36792         * modules/acl (Link): New section.
36793         * modules/clock-time (Link): New section.
36794         * modules/euidaccess (Link): New section.
36795         * modules/gettext (Link): New section.
36796         * modules/iconv (Link): New section.
36797         * modules/lock (Link): New section.
36798         * modules/nanosleep (Link): New section.
36799         * modules/readline (Link): New section.
36800
36801 2007-01-27  Bruno Haible  <bruno@clisp.org>
36802
36803         Enforce the use of gnulib modules for unportable <string.h> functions.
36804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
36805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
36806         (gl_HEADER_STRING_H_BODY): Require it.
36807         * lib/string_.h: If the gnulib module XYZ is not present, redefine
36808         the symbol XYZ to one that gives a link error.
36809         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
36810         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
36811         * modules/mempcpy (configure.ac): Likewise.
36812         * modules/memrchr (configure.ac): Likewise.
36813         * modules/stpcpy (configure.ac): Likewise.
36814         * modules/stpncpy (configure.ac): Likewise.
36815         * modules/strcase (configure.ac): Likewise.
36816         * modules/strcasestr (configure.ac): Likewise.
36817         * modules/strchrnul (configure.ac): Likewise.
36818         * modules/strdup (configure.ac): Likewise.
36819         * modules/strndup (configure.ac): Likewise.
36820         * modules/strnlen (configure.ac): Likewise.
36821         * modules/strpbrk (configure.ac): Likewise.
36822         * modules/strsep (configure.ac): Likewise.
36823         * modules/strstr (configure.ac): Likewise.
36824         * modules/strtok_r (configure.ac): Likewise.
36825
36826 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
36827
36828         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
36829
36830 2007-01-30  Jim Meyering  <jim@meyering.net>
36831
36832         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
36833
36834 2007-01-29  Bruno Haible  <bruno@clisp.org>
36835
36836         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
36837         * lib/execute.c: Likewise.
36838         * lib/pipe.c: Likewise.
36839         * lib/printf-args.h: Likewise.
36840         * lib/printf-args.c: Likewise.
36841         * lib/printf-parse.c: Likewise.
36842         * lib/vasnprintf.c: Likewise.
36843
36844 2007-01-29  Eric Blake  <ebb9@byu.net>
36845
36846         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
36847         declaration.
36848
36849 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36850
36851         * lib/strptime.h (strptime): Use 'restrict' for args where
36852         POSIX requires this.
36853         * lib/strptime.c (strptime): Likewise.
36854         Change license notice from LGPL to GPL, since gnulib-tool will
36855         change this as needed.
36856         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
36857         defined.
36858         Include "strptime.h" first, to check interface.
36859         Do not #undef _LIBC and _NL_CURRENT.
36860         Do not include <stdlib.h>; no longer needed.
36861         Include "time_r.h" and declare ptime_locale_status
36862         only if _LIBC is not defined.
36863         (__P): Remove unused macro.
36864         (match_string): Bring back glibc version, but use it only if _LIBC
36865         is defined.
36866         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
36867         Remove unnecessary assertion and abort() call.
36868         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
36869         * m4/strptime.m4: Fix serial number comment.
36870         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
36871         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
36872         (Depends-on): Add time_r.
36873
36874 2007-01-29  Bruno Haible  <bruno@clisp.org>
36875
36876         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36877         strptime.
36878         * modules/strptime (Depends-on): Add stdbool.
36879         * lib/strptime.h: Include <time.h> always. Add comments.
36880
36881 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36882
36883         * modules/strptime: New file.
36884         * lib/strptime.h: New file.
36885         * lib/strptime.c: New file.
36886         * m4/strptime.m4: New file.
36887
36888 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
36889
36890         * MODULES.html.sh: New module mpsort.
36891         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
36892
36893         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
36894         a circularity problem with HP-UX ia64 reported by Bob Proulx in
36895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
36896         All uses changed.
36897         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
36898         All uses changed.
36899         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
36900         to _Restrict_.
36901         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
36902         the parameter matches the prototype.
36903
36904 2007-01-28  Jim Meyering  <jim@meyering.net>
36905
36906         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
36907         sys/time.h here, reverting that part of the previous patch:
36908         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
36909
36910 2007-01-28  Bruno Haible  <bruno@clisp.org>
36911
36912         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
36913         value of $(SYS_TIME_H).
36914         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
36915         remove it conditionally, too. [added by Jim Meyering]
36916         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
36917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36918         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
36919         GETTIMEOFDAY_REPLACEMENT to 1.
36920
36921 2007-01-28  Bruno Haible  <bruno@clisp.org>
36922
36923         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
36924         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
36925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
36926         Set UNISTD_H instead of UNISTD_H2.
36927         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
36928
36929 2007-01-28  Bruno Haible  <bruno@clisp.org>
36930
36931         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
36932         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
36933
36934 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36935
36936         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
36937         (func_create_testdir): Ensure C locale for `grep' and `tr'
36938         character ranges.
36939         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
36940         ACLOCAL_AMFLAGS parsing state machine.
36941
36942 2007-01-27  Bruno Haible  <bruno@clisp.org>
36943
36944         * modules/unistr/base: Update.
36945
36946 2007-01-27  Bruno Haible  <bruno@clisp.org>
36947
36948         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
36949         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
36950         * modules/unistr/u32-mbtouc-unsafe: Renamed from
36951         modules/unistr/u32-mbtouc.
36952         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
36953         * lib/unistr.h: Update.
36954         * lib/linebreak.c: Update.
36955         * modules/unistr/u32-mbtouc: Renamed from
36956         modules/unistr/u32-mbtouc-safe.
36957         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
36958         * lib/unistr.h: Update.
36959         * lib/unistr/u32-to-u8.c: Update.
36960         * lib/unistr/u32-to-u16.c: Update.
36961
36962 2007-01-27  Bruno Haible  <bruno@clisp.org>
36963
36964         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
36965         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
36966         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
36967         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
36968         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
36969         * modules/unistr/u16-mbtouc-unsafe: Renamed from
36970         modules/unistr/u16-mbtouc.
36971         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
36972         * lib/unistr.h: Update.
36973         * lib/linebreak.c: Update.
36974         * modules/linebreak: Update.
36975         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
36976         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
36977         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
36978         * modules/unistr/u16-mbtouc: Renamed from
36979         modules/unistr/u16-mbtouc-safe.
36980         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
36981         * lib/unistr.h: Update.
36982         * lib/unistr/u16-to-u8.c: Update.
36983         * modules/unistr/u16-to-u8: Update.
36984         * lib/unistr/u16-to-u32.c: Update.
36985         * modules/unistr/u16-to-u32: Update.
36986
36987 2007-01-27  Bruno Haible  <bruno@clisp.org>
36988
36989         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
36990         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
36991         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
36992         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
36993         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
36994         * modules/unistr/u8-mbtouc-unsafe: Renamed from
36995         modules/unistr/u8-mbtouc.
36996         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
36997         * lib/unistr.h: Update.
36998         * lib/striconveh.c: Update.
36999         * modules/striconveh: Update.
37000         * lib/linebreak.c: Update.
37001         * modules/linebreak: Update.
37002         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37003         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37004         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37005         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37006         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37007         * lib/unistr.h: Update.
37008         * lib/striconveh.c: Update.
37009         * modules/striconveh: Update.
37010         * lib/unistr/u8-to-u16.c: Update.
37011         * modules/unistr/u8-to-u16: Update.
37012         * lib/unistr/u8-to-u32.c: Update.
37013         * modules/unistr/u8-to-u32: Update.
37014
37015 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37016
37017         Sync from Libtool.
37018         * lib/argz.c: Do not include strings.h nor memory.h, include
37019         string.h unconditionally.  Patch by Simon Josefsson.
37020
37021 2007-01-27  Bruno Haible  <bruno@clisp.org>
37022
37023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37024         from gl_HEADER_STRING_H_BODY.
37025         (gl_HEADER_STRING_H_BODY): Require it.
37026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37027         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37028         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37029         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37030         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37031         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37032         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37033         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37034         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37035         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37036         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37037         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37038         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37039         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37041
37042 2007-01-27  Bruno Haible  <bruno@clisp.org>
37043
37044         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37045         check_PROGRAMS into noinst_PROGRAMS.
37046         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37047         check_PROGRAMS in this case.
37048         (func_import): Set for_test to false.
37049         (func_create_testdir): Set for_test to true.
37050
37051 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37052             Bruno Haible  <bruno@clisp.org>
37053
37054         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37055         (Depends-on): Add string.
37056         (Includes): Use <string.h> instead of strcasestr.h.
37057         * modules/string (Makefile.am): Also substitute the value of
37058         REPLACE_STRCASESTR.
37059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37060         assume strcasestr is declared in <string.h> not <strings.h>. Also
37061         set REPLACE_STRCASESTR.
37062         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37063         REPLACE_STRCASESTR.
37064         * lib/strcasestr.h: Remove file.
37065         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37066         * lib/string_.h (strcasestr): New declaration.
37067
37068 2007-01-27  Bruno Haible  <bruno@clisp.org>
37069
37070         * lib/string_.h: Use 'extern'.
37071
37072 2007-01-27  Jim Meyering  <jim@meyering.net>
37073
37074         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37075         of set-but-not-used local, "q".
37076
37077         * lib/mempcpy.c: Include <config.h> before <string.h>.
37078         This fixes a compilation error on HP-UX, due to the system's
37079         "restrict"-using mempcpy prototype.
37080
37081 2007-01-26  Bruno Haible  <bruno@clisp.org>
37082
37083         Small optimization.
37084         * lib/javacomp.c: Include c-strstr.h.
37085          (is_envjavac_gcj): Use c_strstr instead of strstr.
37086         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37087
37088 2007-01-26  Bruno Haible  <bruno@clisp.org>
37089
37090         * MODULES.html.sh (Unicode string functions): Add the new modules.
37091
37092         * modules/uniconv/u32-strconv-to-locale: New file.
37093         * lib/uniconv/u32-strconv-to-locale.c: New file.
37094
37095         * modules/uniconv/u16-strconv-to-locale: New file.
37096         * lib/uniconv/u16-strconv-to-locale.c: New file.
37097
37098         * modules/uniconv/u8-strconv-to-locale: New file.
37099         * lib/uniconv/u8-strconv-to-locale.c: New file.
37100
37101         * modules/uniconv/u32-strconv-from-locale: New file.
37102         * lib/uniconv/u32-strconv-from-locale.c: New file.
37103
37104         * modules/uniconv/u16-strconv-from-locale: New file.
37105         * lib/uniconv/u16-strconv-from-locale.c: New file.
37106
37107         * modules/uniconv/u8-strconv-from-locale: New file.
37108         * lib/uniconv/u8-strconv-from-locale.c: New file.
37109
37110         * modules/uniconv/u32-strconv-to-enc: New file.
37111         * lib/uniconv/u32-strconv-to-enc.c: New file.
37112         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37113         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37114
37115         * modules/uniconv/u16-strconv-to-enc: New file.
37116         * lib/uniconv/u16-strconv-to-enc.c: New file.
37117         * lib/uniconv/u-strconv-to-enc.h: New file.
37118         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37119         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37120
37121         * modules/uniconv/u8-strconv-to-enc: New file.
37122         * lib/uniconv/u8-strconv-to-enc.c: New file.
37123         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37124         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37125
37126         * modules/uniconv/u32-strconv-from-enc: New file.
37127         * lib/uniconv/u32-strconv-from-enc.c: New file.
37128         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37129         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37130
37131         * modules/uniconv/u16-strconv-from-enc: New file.
37132         * lib/uniconv/u16-strconv-from-enc.c: New file.
37133         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37134         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37135
37136         * modules/uniconv/u8-strconv-from-enc: New file.
37137         * lib/uniconv/u8-strconv-from-enc.c: New file.
37138         * lib/uniconv/u-strconv-from-enc.h: New file.
37139         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37140         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37141
37142         * modules/uniconv/u32-conv-from-enc: New file.
37143         * lib/uniconv/u32-conv-from-enc.c: New file.
37144         * modules/uniconv/u32-conv-from-enc-tests: New file.
37145         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37146
37147         * modules/uniconv/u16-conv-from-enc: New file.
37148         * lib/uniconv/u16-conv-from-enc.c: New file.
37149         * lib/uniconv/u-conv-from-enc.h: New file.
37150         * modules/uniconv/u16-conv-from-enc-tests: New file.
37151         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37152
37153         * modules/uniconv/u8-conv-from-enc: New file.
37154         * lib/uniconv/u8-conv-from-enc.c: New file.
37155         * modules/uniconv/u8-conv-from-enc-tests: New file.
37156         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37157
37158         * modules/uniconv/base: New file.
37159         * lib/uniconv.h: New file.
37160
37161 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37162
37163         * doc/gnulib-tool.texi (Initial import): Update to match current
37164         behavior with strdup module.
37165         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37166         * lib/memmem.h: Remove; all uses removed.  This is now done
37167         by <string.h>.
37168         * lib/mempcpy.h: Likewise.
37169         * lib/memrchr.h: Likewise.
37170         * lib/stpcpy.h: Likewise.
37171         * lib/stpncpy.h: Likewise.
37172         * lib/strcase.h: Likewise.
37173         * lib/strchrnul.h: Likewise.
37174         * lib/strdup.h: Likewise.
37175         * lib/strndup.h: Likewise.
37176         * lib/strnlen.h: Likewise.
37177         * lib/strpbrk.h: Likewise.
37178         * lib/strsep.h: Likewise.
37179         * lib/strstr.h: Likewise.
37180         * lib/strtok_r.h: Likewise.
37181         * lib/string_.h: New file.
37182         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37183         Rely on <string.h> instead.
37184         * lib/canon-host.c: Likewise.
37185         * lib/chdir-long.c: Likewise.
37186         * lib/concatpath.c: Likewise.
37187         * lib/exclude.c: Likewise.
37188         * lib/fchdir.c: Likewise.
37189         * lib/getaddrinfo.c: Likewise.
37190         * lib/getcwd.c: Likewise.
37191         * lib/getsubopt.c: Likewise.
37192         * lib/glob.c: Likewise.
37193         * lib/hard-locale.c: Likewise.
37194         * lib/iconvme.c: Likewise.
37195         * lib/javacomp.c: Likewise.
37196         * lib/mempcpy.c: Likewise.
37197         * lib/memrchr.c: Likewise.
37198         * lib/regex_internal.h: Likewise.
37199         * lib/stpncpy.c: Likewise.
37200         * lib/strcasecmp.c: Likewise.
37201         * lib/strchrnul.c: Likewise.
37202         * lib/strdup.c: Likewise.
37203         * lib/striconv.c: Likewise.
37204         * lib/striconveh.c: Likewise.
37205         * lib/striconveha.c: Likewise.
37206         * lib/strncasecmp.c: Likewise.
37207         * lib/strndup.c: Likewise.
37208         * lib/strnlen.c: Likewise.
37209         * lib/strsep.c: Likewise.
37210         * lib/strstr.c: Likewise.
37211         * lib/strtok_r.c: Likewise.
37212         * lib/userspec.c: Likewise.
37213         * lib/w32spawn.h: Likewise.
37214         * lib/xstrndup.c: Likewise.
37215         * lib/mountlist.c (strstr): Remove decl.
37216         * m4/string_h.m4: New file.
37217         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37218         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37219         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37220         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37221         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37222         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37223         Set REPLACE_STRCASECMP if necessary.
37224         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37225         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37226         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37227         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37228         HAVE_DECL_STRDUP if necessary.
37229         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37230         since gl_FUNC_STRNDUP does that now.
37231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37232         Check for decl here...
37233         (gl_PREREQ_STRNLEN): ... not here.
37234         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37235         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37236         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37237         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37238         necessary.
37239         * modules/string: New file.
37240         * modules/memmem (Files): Remove special-purpose include file.
37241         (Depends-on): Add string.
37242         (Include): Include <string.h>, not the removed file.
37243         * modules/mempcpy: Likewise.
37244         * modules/memrchr: Likewise.
37245         * modules/stpcpy: Likewise.
37246         * modules/stpncpy: Likewise.
37247         * modules/strcase: Likewise.
37248         * modules/strchrnul: Likewise.
37249         * modules/strdup: Likewise.
37250         * modules/strndup: Likewise.
37251         * modules/strnlen: Likewise.
37252         * modules/strpbrk: Likewise.
37253         * modules/strsep: Likewise.
37254         * modules/strstr: Likewise.
37255         * modules/strtok_r: Likewise.
37256         * tests/test-dirname.c: Don't include "strdup.h", since
37257         <string.h> now suffices.
37258         * tests/test-memmem.c: Don't include "memmem.h", since
37259         <string.h> now suffices.
37260
37261 2007-01-25  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37264         *resultp is 0.
37265
37266         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37267         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37268         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37269         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37270
37271         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37272         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37273         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37274         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37275         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37276         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37277
37278 2007-01-24  Bruno Haible  <bruno@clisp.org>
37279
37280         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37281         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37282         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37283         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37284         gl_FUNC_FTS_CORE.
37285         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37286         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37287         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37288         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37289         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37290         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37291         gl_FUNC_FCHOWNAT.
37292         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37293         gl_FUNC_STRFTIME.
37294         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37295         Reported by Ralf Wildenhues.
37296
37297 2007-01-24  Bruno Haible  <bruno@clisp.org>
37298
37299         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37300         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37301         gl_GETADDRINFO.
37302         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37303         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37304         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37305
37306 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37307
37308         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37309         Don't use 'exit'; just return from 'main'.
37310         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37311
37312         * lib/fnmatch_.h: Readjust white space and comments to match
37313         glibc, to avoid spurious diffs.
37314
37315 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37316
37317         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37318         2004-12-01 change by Jakub Jelinek, since this code won't compile
37319         if !LIBC.  Problem reported by Bob Proulx.
37320
37321 2007-01-23  Bruno Haible  <bruno@clisp.org>
37322
37323         * lib/striconveh.c: Include c-strcaseeq.h.
37324         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37325         * modules/striconveh (Depends-on): Add c-strcaseeq.
37326
37327 2007-01-23  Bruno Haible  <bruno@clisp.org>
37328
37329         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37330
37331         * modules/c-strcaseeq: New file.
37332         * lib/c-strcaseeq.h: New file.
37333
37334         * modules/streq: New file.
37335         * lib/streq.h: New file.
37336
37337 2007-01-23  Bruno Haible  <bruno@clisp.org>
37338
37339         * modules/striconveha-tests: New file.
37340         * tests/test-striconveha.c: New file.
37341
37342         * lib/striconveha.h: Include <stdbool.h>.
37343         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37344         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37345         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37346         (mem_iconveha): New function.
37347         (str_iconveha_notranslit): Renamed from str_iconveha.
37348         (str_iconveha): New function.
37349         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37350         c-strcase.
37351
37352 2007-01-23  Bruno Haible  <bruno@clisp.org>
37353
37354         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37355         encodings without forgiving before trying any encoding with handler.
37356         (str_iconveha): Try all encodings without forgiving before trying any
37357         encoding with handler.
37358
37359 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37360
37361         Import the following changes from libc.
37362
37363         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37364
37365         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37366
37367         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37368
37369         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37370         normal_bracket label.
37371
37372         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37373
37374         [BZ #361]
37375         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37376         to normal_bracket after fetching the next character.
37377
37378 2007-01-22  Bruno Haible  <bruno@clisp.org>
37379
37380         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37381         argument.
37382         * lib/striconveh.c (iconv_carefully_1): New function.
37383         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37384         argument.
37385         (str_cd_iconveh): Update.
37386         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37387         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37388         * tests/test-striconveh.c (MAGIC): New macro.
37389         (new_offsets): New function.
37390         (main): Test call with and without offsets.
37391
37392 2007-01-22  Bruno Haible  <bruno@clisp.org>
37393
37394         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37395         * modules/sys_select (Makefile.am): Likewise.
37396         * modules/sys_socket (Makefile.am): Likewise.
37397         * modules/sys_time (Makefile.am): Likewise.
37398
37399 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37400
37401         * modules/gettimeofday (License): Change from GPL to LGPL, since
37402         gettimeofday is a library function.
37403
37404 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37405
37406         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37407
37408 2007-01-21  Bruno Haible  <bruno@clisp.org>
37409
37410         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37411
37412 2007-01-21  Bruno Haible  <bruno@clisp.org>
37413
37414         * modules/striconveha: New file.
37415         * lib/striconveha.h: New file.
37416         * lib/striconveha.c: New file.
37417         * MODULES.html.sh (Internationalization functions): Add striconveha.
37418         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37419         string.
37420         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37421
37422 2007-01-21  Bruno Haible  <bruno@clisp.org>
37423
37424         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37425         * lib/striconveh.c (str_iconveh): Likewise.
37426
37427 2007-01-21  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/striconveh.h (mem_iconveh): New declaration.
37430         * lib/striconveh.c (mem_iconveh): New function.
37431         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37432
37433 2007-01-21  Bruno Haible  <bruno@clisp.org>
37434
37435         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37436
37437         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37438         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37439         original result buffer.
37440         (str_cd_iconveh): Update.
37441         * tests/test-striconveh.c (main): Update.
37442
37443         * lib/striconv.h (mem_cd_iconv): Change specification.
37444         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37445         result buffer.
37446         (str_cd_iconv): Update.
37447         * tests/test-striconv.c (main): Update.
37448
37449 2007-01-21  Bruno Haible  <bruno@clisp.org>
37450
37451         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37452
37453 2007-01-20  Jim Meyering  <jim@meyering.net>
37454
37455         * lib/userspec.c (parse_with_separator): If a user or group string
37456         starts with "+", skip the corresponding name-to-ID look-up, since
37457         such a look-up must fail: user and group names may not include "+".
37458
37459 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37460
37461         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37462         since we now assume the sys_time module.
37463         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37464         check for sys/time.h; no longer needed.
37465         * modules/poll (Depends-on): Depend on sys_time.
37466
37467 2007-01-18  Bruno Haible  <bruno@clisp.org>
37468
37469         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37470         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37471
37472         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37473         gettimeofday.
37474
37475         * tests/test-gettimeofday.c: Include <time.h>.
37476         (dummy): Remove variable.
37477
37478         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37479         gl_HEADER_SYS_TIME_H.
37480         (gl_HEADER_SYS_TIME_H): New macro.
37481
37482         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37483         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37484         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37485         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37486         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37487         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37488         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37489         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37490         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37491         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37492         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37493
37494         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37495         last change; it caused a compilation error when cross-compiling to
37496         Cygwin.
37497
37498 2007-01-18  Jim Meyering  <jim@meyering.net>
37499
37500         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37501         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37502         than the race-prone "test -d sys || mkdir sys".
37503         (configure.ac): Use AC_PROG_MKDIR_P.
37504         * modules/sys_select: Likewise.
37505         * modules/sys_socket: Likewise.
37506         * modules/sys_time: Likewise.
37507
37508 2007-01-18  Eric Blake  <ebb9@byu.net>
37509
37510         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37511         replace gettimeofday.
37512         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37513         name, to avoid infinite recursion.
37514
37515 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37516
37517         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37518         module sys_time.
37519         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37520         assume timespec.h defines struct timeval.
37521         * lib/settime.c: Likewise.
37522         * lib/utimens.c: Likewise.
37523         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37524         since we now assume the gettimeofday module.
37525         * lib/tempname.c (__gen_tempname): Likewise.
37526         * lib/gettimeofday.h: Remove.
37527         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37528         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37529         Include <time.h>, for 'time()'.
37530         (localtime_buffer_addr): Also use this workaround if
37531         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37532         to simplify the uses.  All uses changed.
37533         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37534         that #undef is inside {}, and 'const' follows type name consistently.
37535         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37536         (gettimeofday): Do not use the maximum possible value for
37537         tv->tv_usec, since that might break usages other than ls.c.
37538         Instead, we'll leave ls.c alone.  This undoes today's patch
37539         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37540         we've never observed the problem but might as well keep the
37541         canary.
37542         * lib/nanosleep.c: Include timespec.h first, for interface check.
37543         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37544         now assume the sys_time module.
37545         * lib/tempname.c: Likewise.
37546         * lib/timespec.h: Likewise.
37547         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37548         needed.
37549         * lib/strftime.c: Likewise.
37550         * lib/timespec.h: Likewise.
37551         * lib/posixtm.c: Include posixtm.h first, for interface check.
37552         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37553         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37554         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37555         * lib/sys_time_.h: New file.
37556         * lib/timespec.h (struct timespec): Use long int, not long.
37557         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37558         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37559         Remove obsolescent call to AC_HEADER_TIME.
37560         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37562         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37563         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37564         Likewise.
37565         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37566         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37568         into the sys_time module.  Check for gettimeofday just once.
37569         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37570         for gettimeofday signature to just check the signature.  Merely
37571         compile it, since linking doesn't test signature.  Improve test for
37572         whether gettimeofday.o is actually needed.
37573         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37574         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37575         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37576         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37577         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37578         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37579         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37580         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37581         than worrying about sys/time.h.
37582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37583         Don't bother worrying about TIME_WITH_SYS_TIME.
37584         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37585         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37586         * m4/sys_time_h.m4: New file.
37587         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37588         Don't include sys/time.h.  Return from main rather than exiting.
37589         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37590         all uses changed.
37591         * modules/gethrxtime (Depends-on): Add sys_time.
37592         * modules/gettime (Depends-on): Likewise.
37593         * modules/gettimeofday (Depends-on): Likewise.
37594         * modules/nanosleep (Depends-on): Likewise.
37595         * modules/settime (Depends-on): Likewise.
37596         * modules/tempname (Depends-on): Likewise.
37597         * modules/utimens (Depends-on): Likewise.
37598         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37599         (Include:) Change back to <sys/time.h>.
37600         (Maintainer:) Add self.
37601         * modules/sys_time: New file.
37602         * modules/tempname (Depends-on): Add gettimeofday.
37603         * tests/test-gettimeofday.c: Include <sys/time.h>
37604         rather than gettimeofday.h.
37605
37606 2007-01-17  Bruno Haible  <bruno@clisp.org>
37607
37608         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37609         the license default to GPL.
37610         (func_create_testdir): Don't complain if a module is LGPL and its
37611         tests module depends on GPLed modules.
37612
37613 2007-01-17  Bruno Haible  <bruno@clisp.org>
37614
37615         * lib/gettimeofday.c (gettimeofday): Add code for the case
37616         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37617         maximum possible value for tv->tv_usec, rather than the minimum one.
37618
37619 2005-10-08  Martin Lambers  <marlam@marlam.de>
37620 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37621 2007-01-16  Bruno Haible  <bruno@clisp.org>
37622
37623         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37624         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37625         gl_FUNC_GETTIMEOFDAY.
37626         (Include): Add gettimeofday.h.
37627         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37628         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37629         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37630         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37631         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37632         * lib/gettimeofday.h: New file.
37633         * lib/gettimeofday.c: Include <sys/timeb.h>.
37634         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37635         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37636         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37637         fall back on time().
37638
37639         * tests/test-gettimeofday.c: New file.
37640         * modules/gettimeofday-tests: New file.
37641
37642 2007-01-16  Eric Blake  <ebb9@byu.net>
37643
37644         * modules/fnmatch (Depends-on): Depend on wchar.
37645         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37646         * m4/fnmatch.m4: Likewise.
37647         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37648         * m4/mbchar.m4: Likewise.
37649         * modules/mbswidth (Depends-on): Depend on wchar.
37650         * lib/mbswidth.c: Assume <wchar.h>.
37651         * m4/mbswidth.m4: Likewise.
37652         * modules/quotearg (Depends-on): Depend on wchar.
37653         * lib/quotearg.c: Assume <wchar.h>.
37654         * m4/quotearg.m4: Likewise.
37655         * modules/regex (Depends-on): Depend on wchar.
37656         * lib/regex_internal.h: Assume <wchar.h>.
37657         * m4/regex.m4: Likewise.
37658         * modules/stdint (Depends-on): Depend on wchar.
37659         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37660         * m4/stdint.m4: Likewise.
37661         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37662         * modules/strftime (Depends-on): Depend on wchar.
37663         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37664         * modules/strtol (Depends-on): Depend on wchar.
37665         * lib/strtol.c: Assume <wchar.h>.
37666         * modules/wcwidth (Depends-on): Depend on wchar.
37667         * lib/wcwidth.h: Assume <wchar.h>.
37668         * m4/wcwidth.m4: Likewise.
37669
37670 2007-01-16  Bruno Haible  <bruno@clisp.org>
37671
37672         * modules/csharpexec-script: New, created from...
37673         * modules/csharpexec: ... this.
37674
37675 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37676
37677         * modules/javaexec-script: New, created from...
37678         * modules/javaexec: ... this.
37679
37680 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37681
37682         * modules/poll (Dependencies): Add sys_select.
37683
37684 2007-01-15  Jim Meyering  <jim@meyering.net>
37685
37686         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37687         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37688         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
37689         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37690
37691 2007-01-15  Bruno Haible  <bruno@clisp.org>
37692
37693         * modules/striconveh: New file.
37694         * lib/striconveh.h: New file.
37695         * lib/striconveh.c: New file.
37696         * MODULES.html.sh (Internationalization functions): Add striconveh.
37697
37698         * modules/striconveh-tests: New file.
37699         * tests/test-striconveh.c: New file.
37700
37701 2007-01-15  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37704         not from GNU libiconv or GNU libc.
37705
37706 2007-01-15  Bruno Haible  <bruno@clisp.org>
37707
37708         * doc/gnulib-intro.texi (Copyright): Explain the different license
37709         terms for module descriptions, autoconf macros, tests, documentation.
37710
37711 2007-01-14  Bruno Haible  <bruno@clisp.org>
37712
37713         * modules/striconv-tests: New file.
37714         * tests/test-striconv.c: New file.
37715
37716 2007-01-14  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/iconv-tests: New file.
37719         * tests/test-iconv.c: New file.
37720
37721 2007-01-14  Bruno Haible  <bruno@clisp.org>
37722
37723         * gnulib-tool (func_get_license): For test modules, use the license of
37724         the main module.
37725
37726 2007-01-14  Bruno Haible  <bruno@clisp.org>
37727
37728         * modules/iconv (Include): Clarify that <iconv.h> can only be included
37729         if iconv is found to exist.
37730
37731 2007-01-14  Bruno Haible  <bruno@clisp.org>
37732
37733         * modules/c-ctype-tests: New file.
37734         * tests/test-c-ctype.c: New file.
37735
37736 2007-01-14  Bruno Haible  <bruno@clisp.org>
37737
37738         * modules/binary-io-tests: New file.
37739         * tests/test-binary-io.sh: New file.
37740         * tests/test-binary-io.c: New file.
37741
37742 2007-01-14  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/array-oset-tests: New file.
37745         * tests/test-array_oset.c: New file.
37746
37747 2007-01-14  Bruno Haible  <bruno@clisp.org>
37748
37749         * modules/array-list-tests: New file.
37750         * tests/test-array_list.c: New file.
37751
37752 2007-01-14  Bruno Haible  <bruno@clisp.org>
37753
37754         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37755         and make.
37756         Reported by Simon Josefsson in
37757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
37758
37759 2007-01-14  Bruno Haible  <bruno@clisp.org>
37760
37761         * modules/allocsa-tests: New file.
37762         * tests/test-allocsa.c: New file.
37763
37764 2007-01-14  Bruno Haible  <bruno@clisp.org>
37765
37766         * modules/fchdir (Depends-on): Add absolute-header.
37767         * modules/unistd (Depends-on): Likewise.
37768
37769 2006-12-30  Bruno Haible  <bruno@clisp.org>
37770
37771         * modules/fchdir: New file.
37772         * modules/unistd (Files): Add lib/unistd_.h.
37773         (Makefile.am): Generate unistd.h from unistd_.h.
37774         * lib/fchdir.c: New file.
37775         * lib/dirent_.h: New file.
37776         * lib/unistd_.h: New file.
37777         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
37778         * m4/fchdir.m4: New file.
37779         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
37780         (gl_HEADER_UNISTD): Invoke it.
37781         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
37782         function.
37783         * lib/backupfile.c (opendir, closedir): Undefine.
37784         * lib/chown.c (open, close): Undefine.
37785         * lib/clean-temp.c (open, close): Undefine.
37786         * lib/copy-file.c (open, close): Undefine.
37787         * lib/execute.c (open, close): Undefine.
37788         * lib/fsusage.c (open, close): Undefine.
37789         * lib/gc-gnulib.c (open, close): Undefine.
37790         * lib/getcwd.c (opendir, closedir): Undefine.
37791         * lib/glob.c (opendir, closedir): Undefine.
37792         * lib/javacomp.c (open, close): Undefine.
37793         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
37794         * lib/openat-proc.c (open, close): Undefine.
37795         * lib/pagealign_alloc.c (open, close): Undefine.
37796         * lib/pipe.c (open, close): Undefine.
37797         * lib/progreloc.c (open, close): Undefine.
37798         * lib/savedir.c (opendir, closedir): Undefine.
37799         * lib/utime.c (open, close): Undefine.
37800         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
37801
37802 2007-01-10  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
37805
37806 2007-01-12  Eric Blake  <ebb9@byu.net>
37807
37808         Provide a robust <wchar.h>.  Further simplifications are now
37809         possible in other modules, but not included here.
37810         * modules/wchar: New module.
37811         * m4/wchar.m4: New file.
37812         * lib/wchar_.h: Likewise.
37813         * modules/mbchar (Depends-on): Depend on wchar, as the first use
37814         of the new module.
37815         * MODULES.html.sh (Extended multibyte and wide character utilities):
37816         New section.
37817
37818 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
37819
37820         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
37821         to a reasonable default for memory allocation.
37822         (xreadlink): Don't allocate a huge buffer, to work around a buggy
37823         file system that reports garbage st_size values for symlinks.
37824         Problem reported by Liyang Hu.
37825
37826 2007-01-11  Simon Josefsson  <simon@josefsson.org>
37827
37828         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
37829         Emacs .#* auto-save files).
37830
37831 2007-01-11  Bruno Haible  <bruno@clisp.org>
37832
37833         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
37834         directory.
37835
37836 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37837
37838         Use @...@ consistently in lib/wctype_.h.
37839         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
37840         on it being set to 1 or 0.
37841         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
37842         go back to AC_SUBSTing it.
37843         * modules/wctype (Makefile.am): Undo previous change.
37844
37845 2007-01-10  Eric Blake  <ebb9@byu.net>
37846
37847         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
37848         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
37849         * modules/wctype (Makefile.am): Likewise.
37850         Reported by Chris McGuire.
37851
37852 2007-01-10  Jim Meyering  <jim@meyering.net>
37853
37854         fts.c: a small readability/maintainability improvement
37855         * lib/fts.c (fts_read): Make this code slightly more readable and
37856         maintainable by hoisting the "sp->fts_cur = p" assignments to
37857         immediately follow the statements that set P.  Derived from
37858         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
37859
37860 2007-01-10  Eric Blake  <ebb9@byu.net>
37861
37862         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
37863         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
37864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37865         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37866         Reported by Chris McGuire.
37867
37868 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37869
37870         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
37871         in sed script.
37872
37873 2007-01-09  Bruno Haible  <bruno@clisp.org>
37874
37875         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
37876         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
37877         variables.
37878         (func_module): Use them.
37879
37880 2007-01-09  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/unistr/base: New file.
37883         * lib/unistr.h: New file.
37884
37885         * modules/unistr/u8-to-u16: New file.
37886         * lib/unistr/u8-to-u16.c: New file.
37887
37888         * modules/unistr/u8-to-u32: New file.
37889         * lib/unistr/u8-to-u32.c: New file.
37890
37891         * modules/unistr/u16-to-u8: New file.
37892         * lib/unistr/u16-to-u8.c: New file.
37893
37894         * modules/unistr/u16-to-u32: New file.
37895         * lib/unistr/u16-to-u32.c: New file.
37896
37897         * modules/unistr/u32-to-u8: New file.
37898         * lib/unistr/u32-to-u8.c: New file.
37899
37900         * modules/unistr/u32-to-u16: New file.
37901         * lib/unistr/u32-to-u16.c: New file.
37902
37903         * modules/unistr/u8-check: New file.
37904         * modules/unistr/u16-check: New file.
37905         * modules/unistr/u32-check: New file.
37906         * lib/unistr/u8-check.c: New file.
37907         * lib/unistr/u16-check.c: New file.
37908         * lib/unistr/u32-check.c: New file.
37909
37910         * modules/unistr/u8-chr: New file.
37911         * modules/unistr/u16-chr: New file.
37912         * modules/unistr/u32-chr: New file.
37913         * lib/unistr/u8-chr.c: New file.
37914         * lib/unistr/u16-chr.c: New file.
37915         * lib/unistr/u32-chr.c: New file.
37916
37917         * modules/unistr/u8-cmp: New file.
37918         * modules/unistr/u16-cmp: New file.
37919         * modules/unistr/u32-cmp: New file.
37920         * lib/unistr/u8-cmp.c: New file.
37921         * lib/unistr/u16-cmp.c: New file.
37922         * lib/unistr/u32-cmp.c: New file.
37923
37924         * modules/unistr/u8-cpy: New file.
37925         * modules/unistr/u16-cpy: New file.
37926         * modules/unistr/u32-cpy: New file.
37927         * lib/unistr/u8-cpy.c: New file.
37928         * lib/unistr/u16-cpy.c: New file.
37929         * lib/unistr/u32-cpy.c: New file.
37930         * lib/unistr/u-cpy.h: New file.
37931
37932         * modules/unistr/u8-cpy-alloc: New file.
37933         * modules/unistr/u16-cpy-alloc: New file.
37934         * modules/unistr/u32-cpy-alloc: New file.
37935         * lib/unistr/u8-cpy-alloc.c: New file.
37936         * lib/unistr/u16-cpy-alloc.c: New file.
37937         * lib/unistr/u32-cpy-alloc.c: New file.
37938         * lib/unistr/u-cpy-alloc.h: New file.
37939
37940         * modules/unistr/u8-endswith: New file.
37941         * modules/unistr/u16-endswith: New file.
37942         * modules/unistr/u32-endswith: New file.
37943         * lib/unistr/u8-endswith.c: New file.
37944         * lib/unistr/u16-endswith.c: New file.
37945         * lib/unistr/u32-endswith.c: New file.
37946         * lib/unistr/u-endswith.h: New file.
37947
37948         * modules/unistr/u8-mblen: New file.
37949         * modules/unistr/u16-mblen: New file.
37950         * modules/unistr/u32-mblen: New file.
37951         * lib/unistr/u8-mblen.c: New file.
37952         * lib/unistr/u16-mblen.c: New file.
37953         * lib/unistr/u32-mblen.c: New file.
37954
37955         * modules/unistr/u8-mbtouc: New file.
37956         * modules/unistr/u16-mbtouc: New file.
37957         * modules/unistr/u32-mbtouc: New file.
37958         * lib/unistr/u8-mbtouc.c: New file.
37959         * lib/unistr/u16-mbtouc.c: New file.
37960         * lib/unistr/u32-mbtouc.c: New file.
37961
37962         * modules/unistr/u8-mbtouc-safe: New file.
37963         * modules/unistr/u16-mbtouc-safe: New file.
37964         * modules/unistr/u32-mbtouc-safe: New file.
37965         * lib/unistr/u8-mbtouc-safe.c: New file.
37966         * lib/unistr/u16-mbtouc-safe.c: New file.
37967         * lib/unistr/u32-mbtouc-safe.c: New file.
37968
37969         * modules/unistr/u8-move: New file.
37970         * modules/unistr/u16-move: New file.
37971         * modules/unistr/u32-move: New file.
37972         * lib/unistr/u8-move.c: New file.
37973         * lib/unistr/u16-move.c: New file.
37974         * lib/unistr/u32-move.c: New file.
37975         * lib/unistr/u-move.h: New file.
37976
37977         * modules/unistr/u8-next: New file.
37978         * modules/unistr/u16-next: New file.
37979         * modules/unistr/u32-next: New file.
37980         * lib/unistr/u8-next.c: New file.
37981         * lib/unistr/u16-next.c: New file.
37982         * lib/unistr/u32-next.c: New file.
37983
37984         * modules/unistr/u8-prev: New file.
37985         * modules/unistr/u16-prev: New file.
37986         * modules/unistr/u32-prev: New file.
37987         * lib/unistr/u8-prev.c: New file.
37988         * lib/unistr/u16-prev.c: New file.
37989         * lib/unistr/u32-prev.c: New file.
37990
37991         * modules/unistr/u8-set: New file.
37992         * modules/unistr/u16-set: New file.
37993         * modules/unistr/u32-set: New file.
37994         * lib/unistr/u8-set.c: New file.
37995         * lib/unistr/u16-set.c: New file.
37996         * lib/unistr/u32-set.c: New file.
37997         * lib/unistr/u-set.h: New file.
37998
37999         * modules/unistr/u8-startswith: New file.
38000         * modules/unistr/u16-startswith: New file.
38001         * modules/unistr/u32-startswith: New file.
38002         * lib/unistr/u8-startswith.c: New file.
38003         * lib/unistr/u16-startswith.c: New file.
38004         * lib/unistr/u32-startswith.c: New file.
38005         * lib/unistr/u-startswith.h: New file.
38006
38007         * modules/unistr/u8-stpcpy: New file.
38008         * modules/unistr/u16-stpcpy: New file.
38009         * modules/unistr/u32-stpcpy: New file.
38010         * lib/unistr/u8-stpcpy.c: New file.
38011         * lib/unistr/u16-stpcpy.c: New file.
38012         * lib/unistr/u32-stpcpy.c: New file.
38013         * lib/unistr/u-stpcpy.h: New file.
38014
38015         * modules/unistr/u8-stpncpy: New file.
38016         * modules/unistr/u16-stpncpy: New file.
38017         * modules/unistr/u32-stpncpy: New file.
38018         * lib/unistr/u8-stpncpy.c: New file.
38019         * lib/unistr/u16-stpncpy.c: New file.
38020         * lib/unistr/u32-stpncpy.c: New file.
38021         * lib/unistr/u-stpncpy.h: New file.
38022
38023         * modules/unistr/u8-strcat: New file.
38024         * modules/unistr/u16-strcat: New file.
38025         * modules/unistr/u32-strcat: New file.
38026         * lib/unistr/u8-strcat.c: New file.
38027         * lib/unistr/u16-strcat.c: New file.
38028         * lib/unistr/u32-strcat.c: New file.
38029         * lib/unistr/u-strcat.h: New file.
38030
38031         * modules/unistr/u8-strchr: New file.
38032         * modules/unistr/u16-strchr: New file.
38033         * modules/unistr/u32-strchr: New file.
38034         * lib/unistr/u8-strchr.c: New file.
38035         * lib/unistr/u16-strchr.c: New file.
38036         * lib/unistr/u32-strchr.c: New file.
38037
38038         * modules/unistr/u8-strcmp: New file.
38039         * modules/unistr/u16-strcmp: New file.
38040         * modules/unistr/u32-strcmp: New file.
38041         * lib/unistr/u8-strcmp.c: New file.
38042         * lib/unistr/u16-strcmp.c: New file.
38043         * lib/unistr/u32-strcmp.c: New file.
38044
38045         * modules/unistr/u8-strcpy: New file.
38046         * modules/unistr/u16-strcpy: New file.
38047         * modules/unistr/u32-strcpy: New file.
38048         * lib/unistr/u8-strcpy.c: New file.
38049         * lib/unistr/u16-strcpy.c: New file.
38050         * lib/unistr/u32-strcpy.c: New file.
38051         * lib/unistr/u-strcpy.h: New file.
38052
38053         * modules/unistr/u8-strcspn: New file.
38054         * modules/unistr/u16-strcspn: New file.
38055         * modules/unistr/u32-strcspn: New file.
38056         * lib/unistr/u8-strcspn.c: New file.
38057         * lib/unistr/u16-strcspn.c: New file.
38058         * lib/unistr/u32-strcspn.c: New file.
38059         * lib/unistr/u-strcspn.h: New file.
38060
38061         * modules/unistr/u8-strdup: New file.
38062         * modules/unistr/u16-strdup: New file.
38063         * modules/unistr/u32-strdup: New file.
38064         * lib/unistr/u8-strdup.c: New file.
38065         * lib/unistr/u16-strdup.c: New file.
38066         * lib/unistr/u32-strdup.c: New file.
38067         * lib/unistr/u-strdup.h: New file.
38068
38069         * modules/unistr/u8-strlen: New file.
38070         * modules/unistr/u16-strlen: New file.
38071         * modules/unistr/u32-strlen: New file.
38072         * lib/unistr/u8-strlen.c: New file.
38073         * lib/unistr/u16-strlen.c: New file.
38074         * lib/unistr/u32-strlen.c: New file.
38075         * lib/unistr/u-strlen.h: New file.
38076
38077         * modules/unistr/u8-strmblen: New file.
38078         * modules/unistr/u16-strmblen: New file.
38079         * modules/unistr/u32-strmblen: New file.
38080         * lib/unistr/u8-strmblen.c: New file.
38081         * lib/unistr/u16-strmblen.c: New file.
38082         * lib/unistr/u32-strmblen.c: New file.
38083
38084         * modules/unistr/u8-strmbtouc: New file.
38085         * modules/unistr/u16-strmbtouc: New file.
38086         * modules/unistr/u32-strmbtouc: New file.
38087         * lib/unistr/u8-strmbtouc.c: New file.
38088         * lib/unistr/u16-strmbtouc.c: New file.
38089         * lib/unistr/u32-strmbtouc.c: New file.
38090
38091         * modules/unistr/u8-strncat: New file.
38092         * modules/unistr/u16-strncat: New file.
38093         * modules/unistr/u32-strncat: New file.
38094         * lib/unistr/u8-strncat.c: New file.
38095         * lib/unistr/u16-strncat.c: New file.
38096         * lib/unistr/u32-strncat.c: New file.
38097         * lib/unistr/u-strncat.h: New file.
38098
38099         * modules/unistr/u8-strncmp: New file.
38100         * modules/unistr/u16-strncmp: New file.
38101         * modules/unistr/u32-strncmp: New file.
38102         * lib/unistr/u8-strncmp.c: New file.
38103         * lib/unistr/u16-strncmp.c: New file.
38104         * lib/unistr/u32-strncmp.c: New file.
38105
38106         * modules/unistr/u8-strncpy: New file.
38107         * modules/unistr/u16-strncpy: New file.
38108         * modules/unistr/u32-strncpy: New file.
38109         * lib/unistr/u8-strncpy.c: New file.
38110         * lib/unistr/u16-strncpy.c: New file.
38111         * lib/unistr/u32-strncpy.c: New file.
38112         * lib/unistr/u-strncpy.h: New file.
38113
38114         * modules/unistr/u8-strnlen: New file.
38115         * modules/unistr/u16-strnlen: New file.
38116         * modules/unistr/u32-strnlen: New file.
38117         * lib/unistr/u8-strnlen.c: New file.
38118         * lib/unistr/u16-strnlen.c: New file.
38119         * lib/unistr/u32-strnlen.c: New file.
38120         * lib/unistr/u-strnlen.h: New file.
38121
38122         * modules/unistr/u8-strpbrk: New file.
38123         * modules/unistr/u16-strpbrk: New file.
38124         * modules/unistr/u32-strpbrk: New file.
38125         * lib/unistr/u8-strpbrk.c: New file.
38126         * lib/unistr/u16-strpbrk.c: New file.
38127         * lib/unistr/u32-strpbrk.c: New file.
38128         * lib/unistr/u-strpbrk.h: New file.
38129
38130         * modules/unistr/u8-strrchr: New file.
38131         * modules/unistr/u16-strrchr: New file.
38132         * modules/unistr/u32-strrchr: New file.
38133         * lib/unistr/u8-strrchr.c: New file.
38134         * lib/unistr/u16-strrchr.c: New file.
38135         * lib/unistr/u32-strrchr.c: New file.
38136
38137         * modules/unistr/u8-strspn: New file.
38138         * modules/unistr/u16-strspn: New file.
38139         * modules/unistr/u32-strspn: New file.
38140         * lib/unistr/u8-strspn.c: New file.
38141         * lib/unistr/u16-strspn.c: New file.
38142         * lib/unistr/u32-strspn.c: New file.
38143         * lib/unistr/u-strspn.h: New file.
38144
38145         * modules/unistr/u8-strstr: New file.
38146         * modules/unistr/u16-strstr: New file.
38147         * modules/unistr/u32-strstr: New file.
38148         * lib/unistr/u8-strstr.c: New file.
38149         * lib/unistr/u16-strstr.c: New file.
38150         * lib/unistr/u32-strstr.c: New file.
38151         * lib/unistr/u-strstr.h: New file.
38152
38153         * modules/unistr/u8-strtok: New file.
38154         * modules/unistr/u16-strtok: New file.
38155         * modules/unistr/u32-strtok: New file.
38156         * lib/unistr/u8-strtok.c: New file.
38157         * lib/unistr/u16-strtok.c: New file.
38158         * lib/unistr/u32-strtok.c: New file.
38159         * lib/unistr/u-strtok.h: New file.
38160
38161         * modules/unistr/u8-uctomb: New file.
38162         * modules/unistr/u16-uctomb: New file.
38163         * modules/unistr/u32-uctomb: New file.
38164         * lib/unistr/u8-uctomb.c: New file.
38165         * lib/unistr/u16-uctomb.c: New file.
38166         * lib/unistr/u32-uctomb.c: New file.
38167
38168         * MODULES.html.sh (Unicode string functions): Add the new modules.
38169
38170 2007-01-08  Bruno Haible  <bruno@clisp.org>
38171
38172         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38173         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38174         subdirectories.
38175
38176 2007-01-08  Karl Berry  <karl@gnu.org>
38177
38178         * doc/error.texi: mention that main() fns must set program_name
38179         when progname is used.
38180
38181 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38182
38183         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38184         WCTYPE_H is empty, for the benefit of builds from non-distclean
38185         directories.  Problem reported by Eric Blake in
38186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38187
38188 2007-01-08  Bruno Haible  <bruno@clisp.org>
38189
38190         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38191         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38192         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38193         PROVIDE_CANONICALIZE_FILENAME_MODE.
38194         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38195
38196 2007-01-08  Bruno Haible  <bruno@clisp.org>
38197
38198         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38199         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38200         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38201         * lib/fts.c: Likewise.
38202         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38203
38204 2006-12-25  Bruno Haible  <bruno@clisp.org>
38205
38206         * modules/utf8-ucs4-safe: New file.
38207         * lib/utf8-ucs4-safe.h: New file.
38208         * lib/unistr/utf8-ucs4-safe.c: New file.
38209
38210         * modules/utf16-ucs4-safe: New file.
38211         * lib/utf16-ucs4-safe.h: New file.
38212         * lib/unistr/utf16-ucs4-safe.c: New file.
38213
38214         * MODULES.html.sh (Unicode string functions): Add the new modules.
38215
38216 2007-01-08  Bruno Haible  <bruno@clisp.org>
38217
38218         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38219         (Depends-on): Add unitypes.
38220         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38221         (u8_mbtouc_aux): Move out to separate file.
38222         (u8_mbtouc): Use ucs4_t, uint8_t types.
38223         * lib/unistr/utf8-ucs4.c: New file.
38224
38225         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38226         (Depends-on): Add unitypes.
38227         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38228         (u16_mbtouc_aux): Move out to separate file.
38229         (u16_mbtouc): Use ucs4_t, uint16_t types.
38230         * lib/unistr/utf16-ucs4.c: New file.
38231
38232         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38233         (Depends-on): Add unitypes.
38234         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38235         (u8_uctomb_aux): Move out to separate file.
38236         (u8_uctomb): Use ucs4_t, uint8_t types.
38237         * lib/unistr/ucs4-utf8.c: New file.
38238
38239         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38240         (Depends-on): Add unitypes.
38241         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38242         (u16_uctomb_aux): Move out to separate file.
38243         (u16_uctomb): Use ucs4_t, uint16_t types.
38244         * lib/unistr/ucs4-utf16.c: New file.
38245
38246 2006-12-25  Bruno Haible  <bruno@clisp.org>
38247
38248         * modules/unitypes: New file.
38249         * lib/unitypes.h: New file.
38250         * MODULES.html.sh (func_all_modules): New section "Unicode string
38251         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38252         this section. Add unitypes.
38253
38254 2007-01-08  Bruno Haible  <bruno@clisp.org>
38255
38256         Avoid variable names that conflict with those from libtool.
38257         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38258         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38259         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38260         library_names_spec to acl_library_names_spec, hardcode_* to
38261         acl_hardcode_*.
38262         Reported by Ralf Wildenhues.
38263
38264 2007-01-08  Bruno Haible  <bruno@clisp.org>
38265
38266         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38267         definition.
38268         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38269         definition.
38270         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38271         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38272         definition.
38273         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38274         definition.
38275         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38276         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38277         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38278         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38279         definition.
38280         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38281         definition.
38282         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38283         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38284         GC_USE_<algorithm>.
38285         * lib/gc-libgcrypt.c: Likewise.
38286         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38287         * modules/gc-arctwo (configure.ac): Likewise.
38288         * modules/gc-des (configure.ac): Likewise.
38289         * modules/gc-hmac-md5 (configure.ac): Likewise.
38290         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38291         * modules/gc-md2 (configure.ac): Likewise.
38292         * modules/gc-md4 (configure.ac): Likewise.
38293         * modules/gc-md5 (configure.ac): Likewise.
38294         * modules/gc-random (configure.ac): Likewise.
38295         * modules/gc-rijndael (configure.ac): Likewise.
38296         * modules/gc-sha1 (configure.ac): Likewise.
38297
38298 2007-01-08  Bruno Haible  <bruno@clisp.org>
38299
38300         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38301         macro definition.
38302         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38303         definition.
38304         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38305         definition.
38306         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38307         * modules/fcntl-safer (configure.ac): Likewise.
38308         * modules/fopen-safer (configure.ac): Likewise.
38309         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38310         GNULIB_FWRITEERROR macro definition.
38311
38312 2007-01-08  Bruno Haible  <bruno@clisp.org>
38313
38314         * m4/gnulib-common.m4: New file.
38315         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38316         (func_get_filelist): Add m4/gnulib-common.m4.
38317
38318 2007-01-08  Bruno Haible  <bruno@clisp.org>
38319
38320         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38321         command.
38322
38323 2007-01-08  Jim Meyering  <jim@meyering.net>
38324
38325         Use a more robust test for a "can't happen" condition.
38326         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38327         narrowed the st_size value.  Presuming the "can't happen" condition
38328         is true, that narrowing could conceivably convert an invalid st_size
38329         value into a valid one.  Instead, use a change based on Matthew
38330         Woehlke's original patch.
38331
38332         Slight readability improvement: use an assert-like macro
38333         in place of literal "abort ()" uses.
38334         * lib/fts.c (fts_assert): Define.
38335         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38336         Use this macro instead of a bare 'abort'.
38337
38338 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38339
38340         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38341         simply work around them.
38342         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38343         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38344         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38345         declaring.
38346         Don't bother to define as macros, since the standard doesn't require it.
38347         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38348         longer worry about IRIX 5.3.
38349         (HAVE_WCTYPE_CTMP_BUG): Remove.
38350
38351 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38352
38353         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38354         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38355         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38356         Problems reported by Georg Schwarz for IRIX 5.3.
38357
38358         * gnulib-tool (autoconf_minversion): Take the maximum version number
38359         found, not the minimum.  Problem reported by James Youngman.
38360
38361 2007-01-03  Karl Berry  <karl@gnu.org>
38362
38363         * doc/error.texi: new file, explaining interaction with progname.
38364         * doc/gnulib.texi: include it.  Update copyright.
38365
38366 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38367
38368         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38369         AC_CANONICAL_HOST, to improve autobuild outputs.
38370
38371 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38372             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38373
38374         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38375         sockets, server sockets, and other file descriptors.  Count errors
38376         to compute the return value.  Reorder the code a bit to be easier
38377         to follow.  Don't set event bits that were not requested (except
38378         POLLERR and POLLHUP).
38379
38380 2007-01-01  Bruno Haible  <bruno@clisp.org>
38381
38382         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38383
38384 2007-01-03  Jim Meyering  <jim@meyering.net>
38385
38386         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38387
38388 2007-01-02  Bruno Haible  <bruno@clisp.org>
38389
38390         * modules/settime (Include): Require timespec.h.
38391         * modules/nanosleep (Include): Likewise.
38392
38393 2007-01-01  Bruno Haible  <bruno@clisp.org>
38394
38395         * gnulib-tool (func_emit_copyright_notice): Bump year.
38396         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38397
38398 2007-01-01  Bruno Haible  <bruno@clisp.org>
38399
38400         Improve support for OpenBSD.
38401         * build-aux/config.rpath (libname_spec): Export.
38402         (library_names_spec): New variable. Export.
38403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38404         library_names_spec from the config.rpath output. Locate shared library
38405         through the name pattern in library_names_spec.
38406
38407 2007-01-01  Eric Blake  <ebb9@byu.net>
38408
38409         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38410
38411 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38412
38413         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38414         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38415         assume the C locale, and avoid an "eval" that could cause trouble.
38416         Problem with SORT reported by Bob Proulx.
38417
38418         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38419         Define.  Trivial patch from Henning Nielsen Lund, originally
38420         sent to bug-grep@gnu.org today.
38421
38422 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38423
38424         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38425         struct stat.  Problem reported by Henning Nielsen Lund.
38426         * lib/acl.c: Include acl.h first, to check interface.  Don't
38427         bother to include sys/types.h and sys/stat.h again.
38428
38429 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38430
38431         Import the following change from libc; problem reported by
38432         Sven Verdoolaege.
38433
38434         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38435
38436         [BZ #1373]
38437         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38438
38439 2006-12-28  Jim Meyering  <jim@meyering.net>
38440
38441         * build-aux/announce-gen: Do not assume that the package
38442         builds any of tar.gz, tar.bz2, and .xdelta files.
38443         Suggestion from Simon Josefsson.
38444
38445 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38446
38447         * modules/announce-gen: New file.
38448
38449 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38450
38451         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38452         handles its gotchas now.
38453         * lib/mbswidth.c: Likewise.
38454         * lib/wcwidth.h: Likewise.
38455         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38456         and iswcntrl; the wctype module does this stuff now.
38457         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38458         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38459         * modules/mbchar (Depends-on): Add wctype.
38460         * modules/mbswidth (Depends-on): Likewise.
38461         * modules/wcwidth (Depends-on): Likewise.
38462
38463 2006-12-27  Eric Blake  <ebb9@byu.net>
38464
38465         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38466         module uses more than what <wctype.h> is required to provide.
38467
38468 2006-12-26  Eric Blake  <ebb9@byu.net>
38469
38470         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38471
38472 2006-12-26  Eric Blake  <ebb9@byu.net>
38473
38474         * modules/absolute-header: New module.
38475         * modules/fcntl (Depends-on): Depend on it.
38476         * modules/inttypes (Depends-on): Likewise.
38477         * modules/stdint (Depends-on): Likewise.
38478         * modules/sys_stat (Depends-on): Likewise.
38479         * modules/wctype (Depends-on): Likewise.
38480         * MODULES.html.sh (Support for building libraries and
38481         executables): Document it.
38482
38483 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38484
38485         * gnulib-tool (SED): Remove, undoing previous change.
38486         The problem was that it broke coreutils on Solaris, because
38487         "sed --posix" leaked into a makefile.
38488         (sed): New alias, if 'alias' and GNU sed.
38489
38490 2006-12-24  Jim Meyering  <jim@meyering.net>
38491
38492         Work around an fchownat bug in glibc-2.4:
38493         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38494         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38495         in spite of the -P option.
38496         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38497         New macros.
38498         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38499         * modules/openat (Files): Add lib/fchownat.c.
38500         * lib/openat.c (fchownat): Don't define here.  Move to...
38501         * lib/fchownat.c: ...this new file.
38502
38503 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38504
38505         Fix bug reported by Bruno Haible in
38506         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38507         where quotearg.c didn't compile on Mac OS X 10.2 because it
38508         lacks <wchar.h> and wint_t.
38509         * lib/wctype_.h (__wctype_wint_t): New type.
38510         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38511         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38512         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38513         Arg is now of type __wctype_wint_t, not wint_t.
38514         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38515         substitute HAVE_WINT_T.
38516         * modules/wctype (Files): Add m4/wint_t.m4.
38517         (wctype.h): Substitute HAVE_WINT_T.
38518
38519 2006-12-23  Bruno Haible  <bruno@clisp.org>
38520
38521         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38522
38523 2006-12-23  Bruno Haible  <bruno@clisp.org>
38524
38525         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38526         S_ISLNK.
38527         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38528         mingw.
38529
38530 2006-12-22  Bruno Haible  <bruno@clisp.org>
38531
38532         * lib/copy-file.c: Include acl.h.
38533         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38534         Close the file descriptors only after being done with copy_acl.
38535         * modules/copy-file (Depends-on): Add acl.
38536
38537 2006-12-22  Bruno Haible  <bruno@clisp.org>
38538
38539         * gnulib-tool (SED): New variable.
38540         Use $SED instead of sed everywhere.
38541
38542 2006-12-22  Bruno Haible  <bruno@clisp.org>
38543
38544         * modules/no-c++: New file.
38545         * m4/no-c++.m4: New file.
38546         * MODULES.html.sh (Support for building libraries and executables):
38547         Add no-c++.
38548
38549 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38550
38551         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38552         Include <limits.h>, and use its INT_MAX to rewrite the
38553         j loop so that it does not overflow 'int'.  Problem reported by
38554         Ralf Wildenhues in
38555         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38556         Play it safe by shifting left by 1 rather than multiplying by 2,
38557         as GCC is less likely to optimize this away when the value
38558         is signed (when it assumes overflow leads to undefined behavior).
38559         Also, don't assume time_t uses two's complement.
38560
38561 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38562
38563         * MODULES.html.sh: New module wctype.
38564         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38565         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38566         <wctype.h>, since the new wctype module should fix this.
38567         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38568         the wctype module should arrange for it.
38569         * lib/regex_internal.h: Likewise.
38570         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38571         since the wctype module should handle this now.
38572         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38573         * modules/fnmatch (Depends-on): Add wctype.
38574         * modules/quotearg (Depends-on): Likewise.
38575         * modules/regex (Depends-on): Likewise.
38576
38577 2006-12-19  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38580         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38581
38582 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38583
38584         * modules/savewd (Depends-on): Fix dependency on fcntl.
38585
38586 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38587
38588         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38589         conforms to C99, rather than relying on the user's environment
38590         setting of STDINT_H.
38591
38592 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38593         and Eric Blake  <ebb9@byu.net>
38594
38595         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38596         This is more consistent with the other defines here.
38597         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38598         Port to z/OS.  Problem reported by Paul Gilmartin.
38599         Change local vars to use gl_ prefix rather than ac_.
38600         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38601         with other defines.
38602         * modules/double-slash-root: New module.
38603         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38604         (Depends-on): Add double-slash-root.
38605         * MODULES.html.sh (File system functions): Mention new module.
38606
38607 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38608
38609         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38610         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38611         This is for the benefit of gzip, which doesn't do i18n.
38612
38613 2006-12-12  Jim Meyering  <jim@meyering.net>
38614
38615         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38616         Reported by Andreas Schwab <schwab@suse.de>.
38617
38618 2006-12-12  Bruno Haible  <bruno@clisp.org>
38619
38620         Merge these changes.
38621         2006-09-05  Bruno Haible  <bruno@clisp.org>
38622         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38623         iconv_alloc succeeded.
38624         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38625         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38626         test for " && dest " at the end - dest is always != NULL there. Call
38627         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38628         with 2xNULL arguments, also to flush the state storage. Handle the
38629         IRIX iconv behaviour. Realloc the final result, to throw away unused
38630         memory.
38631
38632 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38633
38634         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38635         and fchmodat unconditionally, since glibc 2.4 has them.
38636         Problem reported by Arkadiusz Miskiewicz.
38637
38638 2006-12-10  Bruno Haible  <bruno@clisp.org>
38639
38640         * gnulib-tool (func_import): Show the include files only for those
38641         modules that are copied and specified.
38642         Reported by Karl Berry.
38643
38644 2006-12-08  Jim Meyering  <jim@meyering.net>
38645
38646         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38647         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38648
38649         * build-aux/announce-gen: Add two new options, both optional:
38650         --bootstrap-tools=TOOL_LIST
38651               a comma-separated list of tools, e.g.,
38652               autoconf,automake,bison,gnulib
38653         --gnulib-snapshot-date=DATE
38654               if gnulib is in the bootstrap tool list,
38655               then report this as the snapshot date.
38656               If not specified, use the current date/time.
38657               If you specify a date here, be sure it's UTC.
38658
38659 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38660
38661         * tests/test-argp-2.sh: Fix test to match actual output.
38662         (func_compare): Fix sed script to be portable.
38663
38664 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38665
38666         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38667         workaround for this case.  It is not autoconfigured now; offhand
38668         it's hard to see how to autoconfigure it.
38669
38670 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38671
38672         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38673         a directory that is about to be chowned.  Such a directory's
38674         initial file permissions should permit the owner only and this
38675         should not be changed until after the chown, since the group and
38676         other bits would be incorrect if they granted permission before
38677         the chown.
38678
38679         Fix porting problem for iswctype reported by Georg Schwarz in:
38680         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38681         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38682         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38683         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38684         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38685
38686 2006-12-03  Jim Meyering  <jim@meyering.net>
38687
38688         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38689         p->fts_statp may not yet be defined.
38690         (fts_read): Instead, set it in the caller, once p->fts_statp is
38691         sure to be defined, and corresponds to a top-level directory.
38692         This bug made du -x fail.  Here's the coreutils test case:
38693         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38694         Reported by Mike Frysinger.
38695
38696 2006-12-01  Jim Meyering  <jim@meyering.net>
38697
38698         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38699         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38700         Reported by Simon Josefsson.
38701
38702 2006-11-30  Jim Meyering  <jim@meyering.net>
38703
38704         * m4/warning.m4: Use the all-permissive copyright notice
38705         recommended by RMS (rather than LGPL).
38706         * m4/vararrays.m4: Likewise.
38707         * m4/flexmember.m4: Likewise.
38708
38709 2006-11-29  Bruno Haible  <bruno@clisp.org>
38710
38711         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38712         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38713         using +=.
38714         Reported by Simon Josefsson <simon@josefsson.org>.
38715
38716 2006-11-28  James Youngman <jay@gnu.org>
38717
38718         * README: Advise users that they might find the bug-gnulib@gnu.org
38719         and autotools-announce@gnu.org mailing lists useful.
38720
38721 2006-11-28  Bruno Haible  <bruno@clisp.org>
38722
38723         * m4/ptrdiff_max.m4: Remove file.
38724
38725 2006-11-21  Bruno Haible  <bruno@clisp.org>
38726
38727         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38728         _AC_COMPUTE_INT.
38729         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38730         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38731         _AC_COMPUTE_INT.
38732         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38733         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38734         _AC_COMPUTE_INT.
38735         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38736
38737 2006-11-28  Jim Meyering  <jim@meyering.net>
38738
38739         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38740         warning from "gcc -Wshadow" about shadowing the builtin.
38741
38742 2006-11-27  Bruno Haible  <bruno@clisp.org>
38743
38744         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38745         _AC_COMPUTE_INT.
38746         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38747
38748 2006-11-27  Bruno Haible  <bruno@clisp.org>
38749             Paul Eggert  <eggert@cs.ucla.edu>
38750
38751         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38752
38753 2006-11-26  Bruno Haible  <bruno@clisp.org>
38754
38755         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38756         noinst_LTLIBRARIES.
38757
38758 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
38759             Bruno Haible  <bruno@clisp.org>
38760
38761         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
38762         if compiling with "gcc -ansi".
38763
38764 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
38765
38766         Fix some incompatibilities with gcc -ansi -pedantic.
38767         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
38768         if compiling pedantically with GCC, unless it's C99 or later.
38769         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
38770         it mishandles gcc -ansi -pedantic as well.
38771         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
38772         if gcc -pedantic.
38773         * lib/regexec.c (check_node_accept_bytes): Don't use auto
38774         initializers for struct if -pedantic, unless it's C99 or later.
38775
38776 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
38777
38778         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
38779         Don't close an fd more than once. Identical atimes indicate
38780         success, not failure.
38781
38782 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
38783
38784         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
38785
38786 2006-11-23  Jim Meyering  <jim@meyering.net>
38787
38788         * build-aux/announce-gen: New file.  From coreutils.
38789
38790 2006-11-22  Jim Meyering  <jim@meyering.net>
38791
38792         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
38793         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
38794         (fts_read): Use a temporary to narrow the overused st_size member
38795         before using it in a switch statement.  Reported by Matthew Woehlke.
38796
38797         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
38798         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38799
38800 2006-11-20  Bruno Haible  <bruno@clisp.org>
38801
38802         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
38803         changequote instead of pairs of brackets.
38804         Reported by Andreas Schwab <schwab@suse.de>.
38805
38806 2006-11-21  Jim Meyering  <jim@meyering.net>
38807
38808         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
38809         so as to remain compatible with older compilers.
38810         Patch from Michael Deutschmann.
38811
38812 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38813
38814         * MODULES.html.sh (File system functions): Add openat.
38815
38816         * lib/openat.h (rpl_fstatat): New macro, if
38817         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
38818         (fstatat): Define to rpl_fstatat under the same conditions,
38819         unless COMPILING_FSTATAT.
38820         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
38821         seems to have the bug.
38822         * lib/fstatat.c: New file.
38823         * modules/openat (Files): Add it.
38824
38825 2006-11-20  Bruno Haible  <bruno@clisp.org>
38826
38827         * Makefile: New file.
38828
38829 2006-11-20  Jim Meyering  <jim@meyering.net>
38830
38831         The beginnings of syntax-related checks for gnulib.
38832         * lib/Makefile: New file.
38833         * lib/t-idcache: New script.  Ensure that the two halves of
38834         idcache.c stay in sync.
38835
38836         * lib/idcache.c: Adjust comments in user- and group- portions to
38837         be more accurate, and to be consistent with one another.
38838
38839 2006-11-20  Jim Meyering  <jim@meyering.net>
38840
38841         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
38842         continue using the flexible array member (thus, this module performs
38843         half as many malloc calls), with the addition that...
38844         (getgroup, getuser): Consistently record a non-match via an empty
38845         "name" string, and map an empty string match to a NULL return value.
38846         * modules/idcache (Depends-on): Re-add flexmember.
38847
38848         * lib/idcache.c (getuser): Remove all uses of the register keyword.
38849         (getuidbyname, getgroup, getgidbyname): Likewise.
38850
38851         Use cleaner syntax: NULL rather than 0.
38852         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
38853
38854 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38855
38856         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
38857         It mishandled the case where the group was missing.
38858         Problem reported by Greg Schafer.
38859         * modules/idcache: Likewise.
38860
38861 2006-11-18  Jim Meyering  <jim@meyering.net>
38862
38863         * check-module (%exempt_header): Add exception for some
38864         conditionally-included headers.
38865
38866         * modules/i-ring (Depends-on): Add verify.
38867         (License): Change to LGPL.
38868
38869 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38870
38871         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
38872         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
38873         and inttostr.h.  Use snprintf rather than uinttostr, so that
38874         LGPLed code doesn't depend on GPLed.
38875
38876 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38877
38878         * modules/inline (License): Change from GPL to LGPL.
38879
38880 2006-11-17  Jim Meyering  <jim@meyering.net>
38881
38882         * modules/d-type (License): Switch to LGPL.
38883
38884 2006-11-15  Bruno Haible  <bruno@clisp.org>
38885
38886         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
38887
38888 2006-11-15  Eric Blake  <ebb9@byu.net>
38889
38890         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
38891         the module dependency.
38892
38893 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38894             Bruno Haible  <bruno@clisp.org>
38895
38896         * gnulib-tool (func_create_testdir): Add license consistency check.
38897
38898 2006-11-15  Eric Blake  <ebb9@byu.net>
38899
38900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
38901         random "(cached)" in configure output.
38902
38903 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38904
38905         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
38906         test for conforming inttypes.h is both announced and cached.
38907
38908         * MODULES.html.sh (seen_modules, seen_files): New variables.
38909         (func_module): Rewrite to use a few less gnulib-tool and sed
38910         invocations.  Avoid a couple of quadratic algorithms for ...
38911         (missed_modules, missed_files): ... these, with ...
38912         (func_append, func_tmpdir): ... these new functions, from
38913         gnulib-tool.  Analogously, install traps for cleanup.
38914
38915         * tests/test-gc.c (main): Remove unused variables.
38916         * tests/test-read-file.c: Include stdlib.h, for 'free'.
38917
38918 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
38919
38920         * modules/inttostr (License): Change to LGPL.
38921
38922 2006-11-14  Eric Blake  <ebb9@byu.net>
38923
38924         * modules/tempname (License): Change to LGPL.
38925
38926 2006-11-14  Eric Blake  <ebb9@byu.net>
38927
38928         * doc/functions.texi (Function Portability): *printf functions on
38929         Cygwin now understand all POSIX size specifiers.
38930
38931 2006-11-14  Bruno Haible  <bruno@clisp.org>
38932
38933         * modules/c-ctype (License): Change to LGPL.
38934
38935 2006-11-12  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38938         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
38939         for GNOME libraries, for which the include files are installed in
38940         subdirectories of $prefix/include.
38941
38942 2006-11-12  Bruno Haible  <bruno@clisp.org>
38943
38944         * m4/lib-link.m4: Require at least autoconf-2.54.
38945         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
38946         name to underscores for the --with option.
38947
38948 2006-11-13  Bruno Haible  <bruno@clisp.org>
38949
38950         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
38951         the tests directory.
38952         Reported by Ralf Wildenhues.
38953
38954 2006-11-13  Bruno Haible  <bruno@clisp.org>
38955
38956         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
38957         (func_emit_initmacro_end): Undo the override here.
38958         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
38959         Works around the famous automake error in coreutils.
38960
38961 2006-11-13  Eric Blake  <ebb9@byu.net>
38962
38963         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
38964         element, not its node.
38965
38966 2006-11-12  Bruno Haible  <bruno@clisp.org>
38967
38968         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
38969         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
38970
38971 2006-11-12  Bruno Haible  <bruno@clisp.org>
38972
38973         * gnulib-tool: New option --local-symlink.
38974         (func_usage): Document it.
38975         (lsymbolic): New variable.
38976         (func_import, func_create_testdir): If --symlink was not specified,
38977         test whether --local-symlink was specified and the file comes from
38978         the local_gnulib_dir.
38979
38980 2006-11-12  Bruno Haible  <bruno@clisp.org>
38981
38982         * gnulib-tool (func_ln): New function.
38983         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
38984
38985 2006-11-12  Bruno Haible  <bruno@clisp.org>
38986
38987         Finish support for source files in subdirectories.
38988         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
38989         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
38990         AUTOMAKE_OPTIONS.
38991         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
38992
38993 2006-11-12  Bruno Haible  <bruno@clisp.org>
38994
38995         * gnulib-tool (func_get_automake_snippet): Synthesize also an
38996         EXTRA_lib_SOURCES augmentation.
38997         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
38998
38999 2006-11-12  Jim Meyering  <jim@meyering.net>
39000
39001         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39002         file descriptors.  This also averts a failure on systems with
39003         native openat support when a traversed directory lacks "x" access.
39004         * lib/fts_.h: Include "i-ring.h"
39005         (struct FTS) [fts_fd_ring]: New member.
39006         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39007         (FCHDIR): Add parentheses.
39008         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39009         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39010         When descending, rather than simply closing the previous
39011         fts_cwd_fd value, push that file descriptor onto the ring.
39012         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39013         (fts_open): Initialize the new fd_ring member.
39014         (fts_close): Clear the ring.
39015         (fts_safe_changedir): When possible, use our new fd_ring to skip
39016         the diropen and fstat and dev/ino comparison that would normally
39017         accompany a virtual `chdir ("..")'.
39018
39019         * modules/fts (Depends-on): Add i-ring.
39020         * modules/i-ring: New module.
39021         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39022         * m4/i-ring.m4: New file.
39023
39024 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39025
39026         * gnulib-tool (func_create_testdir): Fix replacement of
39027         `build-aux' in configure.ac.  Run autotools in gltests
39028         subdirectory.
39029         (func_create_testdir, func_create_megatestdir, test): There is
39030         no need for '--force' in most autotool invocations in a new
39031         tree.  Actually fail the whole test if any of the tools, or the
39032         configure or make stages fail.
39033
39034         Sync from Automake.
39035         * build-aux/gnupload: Revert last change.  Add pointer to upload
39036         instructions of the GNU Maintenance Instructions.
39037         Suggestion by Karl Berry.
39038
39039 2006-11-10  Jim Meyering  <jim@meyering.net>
39040
39041         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39042
39043 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39044
39045         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39046         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39047         (bind_textdomain_codeset) [! ENABLE_NLS]:
39048         Evaluate all the arguments.  That way, callers get compatible behavior
39049         if the arguments have side effects.  Also, it avoids some GCC
39050         diagnostics in some cases; Joel E. Denny reported problems when Bison
39051         was configured with --enable-gcc-warnigs.
39052
39053 2006-11-10  Jim Meyering  <jim@meyering.net>
39054
39055         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39056         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39057         account.
39058
39059 2006-11-10  Jim Meyering  <jim@meyering.net>
39060
39061         * modules/inline: New file/module.
39062         * modules/xalloc (Files): Remove m4/inline.m4.
39063         (Depends-on): Add inline, instead.
39064         * modules/oset: Likewise.
39065         * modules/list: Likewise.
39066
39067 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39068
39069         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39070         Problem reported by Matthew Woehlke.
39071
39072 2006-11-09  Bruno Haible  <bruno@clisp.org>
39073
39074         * lib/tempname.c (gen_tempname): Remove variant that invokes
39075         __gen_tempname.
39076         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39077         __gen_tempname.
39078
39079 2006-11-08  Bruno Haible  <bruno@clisp.org>
39080
39081         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39082         to 'yes' instead of 'cross-compiling'.
39083
39084 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39085
39086         * lib/quotearg.h (quotearg_free): New decl.
39087         * lib/quotearg.c (quotearg_free): New function.
39088         (slot0, nslots, slotvec0, slotvec):
39089         Now file-scope so that quotearg_free can get at them.
39090
39091 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39092
39093         Sync from Automake.
39094         * build-aux/gnupload: Add missing 'gnu' to example URL.
39095         Report by Karl Berry.
39096
39097 2006-11-08  Bruno Haible  <bruno@clisp.org>
39098
39099         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39100         Suggested by Paul Eggert.
39101
39102 2006-11-08  Jim Meyering  <jim@meyering.net>
39103
39104         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39105         It's already included if !_LIBC.
39106         (fts_safe_changedir): Add a comment.
39107
39108 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39109
39110         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39111         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39112         Matthew Woehlke.
39113
39114         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39115         definitions up, to avoid colliding with change below.
39116         (static_inline) [HAVE_INLINE]: New macro.
39117         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39118         Provide extern decls when !HAVE_INLINE.  Do not define unless
39119         static_inline is defined, either by us or by xmalloc.c.  Use
39120         static_inline rather than static inline.
39121         (XCALLOC): Optimize sizeof(T) = 1 case.
39122         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39123
39124 2006-11-07  Bruno Haible  <bruno@clisp.org>
39125
39126         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39127         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39128         AC_C_INLINE.
39129         * modules/xalloc (Files): Add m4/inline.m4.
39130
39131 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39132
39133         * README: Fix typo.
39134         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39135         (Miscellanous Notes): ...from this.
39136
39137 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39138
39139         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39140         Mention that offsetof should be used instead of sizeof.
39141         From Bruno Haible.
39142
39143 2006-11-07  Bruno Haible  <bruno@clisp.org>
39144
39145         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39146
39147 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39148
39149         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39150         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39151         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39152         (gl_tree_add_before, gl_tree_add_after):
39153         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39154         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39155         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39156         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39157         (gl_linked_add_after, gl_linked_add_at): Likewise.
39158         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39159         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39160         (gl_tree_add_before, gl_tree_add_after): Likewise.
39161         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39162         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39163         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39164
39165 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39166
39167         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39168
39169 2006-11-06  Bruno Haible  <bruno@clisp.org>
39170
39171         * m4/inline.m4: New file.
39172         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39173         * modules/list (Files): Add m4/inline.m4.
39174         * modules/oset (Files): Likewise.
39175
39176 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39177
39178         * lib/idcache.c: Include <stddef.h>, for offsetof.
39179         (struct userid.name): Change from char * to a flexible array member.
39180         All uses changed.
39181         * modules/idcache (Depends-on): Add flexmember.
39182
39183         * MODULES.html.sh (Core language properties): New module flexmember.
39184         * modules/flexmember, m4/flexmember.m4: New files.
39185
39186         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39187         inline functions that are identical with the old xnmalloc_inline,
39188         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39189         that we can avoid some unnecessary integer multiplications and
39190         divisions in the common case where the element size is known at
39191         compile time.
39192         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39193         needed.
39194         (xnboundedmalloc): Remove.
39195         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39196         arguments, for consistency with rest of this header.
39197         (xcharalloc): Rewrite using XNMALLOC.
39198         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39199         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39200         versions have been moved to lib/xalloc.h and renamed to be the
39201         non-*_inline versions.
39202         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39203         and xnrealloc functions, since those functions are now inline and
39204         now call us.
39205         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39206         renaming described above.
39207         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39208         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39209         captures the dependency in AC_C_INLINE.
39210
39211         New module canonicalize-lgpl, proposed by Charles Wilson in
39212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39213         with a few small changes afterwards.
39214         * MODULES.html.sh (File system functions): New module
39215         canonicalize-lgpl.
39216         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39217         and canonicalize_file_name.
39218         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39219         * modules/canonicalize-lgpl: New files.
39220
39221 2006-11-05  Bruno Haible  <bruno@clisp.org>
39222
39223         * gnulib-tool (func_import, func_create_testdir): Create directories
39224         also for files in subdirectories of lib/.
39225
39226 2006-11-05  Bruno Haible  <bruno@clisp.org>
39227
39228         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39229         ANSI C compliant.
39230
39231 2006-11-03  Bruno Haible  <bruno@clisp.org>
39232
39233         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39234         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39235         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39236         (xnboundedmalloc): New inline function.
39237         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39238         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39239         xmalloc.
39240         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39241         xmalloc.
39242         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39243         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39244         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39245         xmalloc.
39246         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39247         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39248         xmalloc.
39249         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39250         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39251         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39252         xmalloc.
39253         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39254         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39255         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39256         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39257         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39258         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39259         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39260
39261 2006-11-03  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/c-ctype.h [C++]: Define functions without name mangling.
39264         * lib/fwriteerror.h [C++]: Likewise.
39265         * lib/gcd.h [C++]: Likewise.
39266         * lib/linebreak.h [C++]: Likewise.
39267
39268 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39269
39270         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39271         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39272         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39273         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39274         Check for functions and headers just once.
39275         Check for declaration of canonicalize_file_name.
39276         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39277
39278 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39279
39280         * gnulib-tool (func_import): Fix typo in actioncmd.
39281
39282 2006-11-02  Bruno Haible  <bruno@clisp.org>
39283
39284         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39285         newline sequence in the Makefile.am snippet as a space, like "make"
39286         does.
39287         Reported by Roger Persson <perrog@gmail.com>.
39288
39289 2006-11-01  Bruno Haible  <bruno@clisp.org>
39290
39291         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39292         already declared in <string.h>.
39293         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39294
39295 2006-11-01  Bruno Haible  <bruno@clisp.org>
39296
39297         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39298         * lib/strcase.h: Include <string.h>.
39299         (strcasecmp): Define to rpl_strcasecmp here.
39300
39301 2006-11-01  Bruno Haible  <bruno@clisp.org>
39302
39303         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39304
39305 2006-11-01  Eric Blake  <ebb9@byu.net>
39306
39307         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39308
39309         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39310
39311 2006-10-29  Bruno Haible  <bruno@clisp.org>
39312
39313         Make it compile in C++ mode.
39314         * lib/full-write.c (full_rw): Add a cast.
39315
39316 2006-11-01  Bruno Haible  <bruno@clisp.org>
39317
39318         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39319         be POSIX compliant.
39320         Reported by Roger Persson <perrog@gmail.com>.
39321
39322 2006-11-01  Eric Blake  <ebb9@byu.net>
39323
39324         * lib/getopt_.h: Fix comments.
39325
39326 2006-10-31  Eric Blake  <ebb9@byu.net>
39327
39328         * modules/tmpdir (Depends-on): Add sys_stat.
39329         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39330         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39331         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39332         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39333         tempname.
39334
39335 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39336
39337         Avoid some C++ diagnostics reported by Bruno Haible.
39338         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39339         xmalloc.
39340         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39341         (struct slotvec): Move to top level.
39342         (quotearg_n_options): Rewrite to avoid xmalloc.
39343         * lib/xalloc.h (xcharalloc): New function.
39344         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39345         [defined __cplusplus]: Add function template that provides result
39346         type propagation.  This part of the change is from Bruno Haible.
39347
39348 2006-10-29  Bruno Haible  <bruno@clisp.org>
39349
39350         Make it compile in C++ mode.
39351         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39352         * lib/strnlen1.c (strnlen1): Cast memchr result.
39353         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39354         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39355         (create_temp_dir): Rename local variable 'template'.
39356         (compile_csharp_using_sscli): Add cast.
39357         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39358         * lib/findprog.c (find_in_path): Likewise.
39359         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39360         * lib/wait-process.c (register_slave_subprocess): Likewise.
39361
39362 2006-10-22  Bruno Haible  <bruno@clisp.org>
39363
39364         * modules/tsearch: New file.
39365         * lib/tsearch.h: New file.
39366         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39367         * m4/tsearch.m4: New file.
39368         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39369
39370 2006-10-29  Eric Blake  <ebb9@byu.net>
39371
39372         * lib/arcfour.c: Assume config.h.
39373         * lib/arctwo.c: Likewise.
39374         * lib/base64.c: Likewise.
39375         * lib/check-version.c: Likewise.
39376         * lib/crc.c: Likewise.
39377         * lib/des.c: Likewise.
39378         * lib/gc-gnulib.c: Likewise.
39379         * lib/gc-libgcrypt.c: Likewise.
39380         * lib/gc-pbkdf2-sha1.c: Likewise.
39381         * lib/getaddrinfo.c: Likewise.
39382         * lib/getdelim.c: Likewise.
39383         * lib/getline.c: Likewise.
39384         * lib/hmac-md5.c: Likewise.
39385         * lib/hmac-sha1.c: Likewise.
39386         * lib/iconvme.c: Likewise.
39387         * lib/md2.c: Likewise.
39388         * lib/md4.c: Likewise.
39389         * lib/memxor.c: Likewise.
39390         * lib/read-file.c: Likewise.
39391         * lib/readline.c: Likewise.
39392         * lib/rijndael-alg-fst.c: Likewise.
39393         * lib/rijndael-api-fst.c: Likewise.
39394         * lib/xgetdomainname.c: Likewise.
39395
39396 2006-10-28  Eric Blake  <ebb9@byu.net>
39397
39398         * lib/xstrndup.c: Assume config.h.
39399
39400 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39401
39402         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39403         stat-macros.h is now for our own macros, whereas stat_h is for
39404         macros in the <sys/stat.h> name space.
39405         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39406         (STAT_MACROS_H): Remove.
39407         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39408         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39409         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39410         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39411         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39412         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39413         Move these macros to ...
39414         * lib/stat_.h: here.  Don't include stat-macros.h.
39415         * lib/canonicalize.c: Don't include stat-macros.h.
39416         * lib/chown.c: Likewise.
39417         * lib/euidaccess.c: Likewise.
39418         * lib/file-type.c: Likewise.
39419         * lib/filemode.c: Likewise.
39420         * lib/glob.c: Likewise.
39421         * lib/isapipe.c: Likewise.
39422         * lib/lchown.c: Likewise.
39423         * lib/lstat.c: Likewise.
39424         * lib/mkdir-p.c: Likewise.
39425         * lib/rmdir.c: Likewise.
39426         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39428         unless mkdir isn't declared, to speed up 'configure'.
39429         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39430         would define all the S_* symbols.
39431         * modules/canonicalize (Depends-on):
39432         Depend on sys_stat, not stat-macros.
39433         * modules/chown: Likewise.
39434         * modules/euidaccess: Likewise.
39435         * modules/filemode: Likewise.
39436         * modules/file-type: Likewise.
39437         * modules/glob: Likewise.
39438         * modules/isapipe: Likewise.
39439         * modules/lchown: Likewise.
39440         * modules/lstat: Likewise.
39441         * modules/mkancesdirs: Likewise.
39442         * modules/rmdir: Likewise.
39443         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39444         * modules/modechange: Likewise.
39445         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39446         (configure.ac): Remove gl_STAT_MACROS.
39447         * modules/sys_stat (Depends-on): Remove stat-macros.
39448
39449 2006-10-27  Bruno Haible  <bruno@clisp.org>
39450
39451         * m4/signed.m4: Remove file.
39452         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39453         invocation.
39454         * modules/vasnprintf (Files): Remove m4/signed.m4.
39455
39456 2006-10-27  Bruno Haible  <bruno@clisp.org>
39457
39458         Update to GNU gettext 0.16.
39459         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39460         m4/inttypes-h.m4, m4/signed.m4.
39461         * m4/gettext.m4: Update to GNU gettext 0.16.
39462         * m4/intl.m4: New file, from GNU gettext.
39463         * m4/intldir.m4: New file, from GNU gettext.
39464         * config/srclist.txt: Update
39465
39466 2006-10-27  Eric Blake  <ebb9@byu.net>
39467
39468         * MODULES.html.sh: Document tempname.
39469         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39470         dependencies.
39471         (Files): Move lib/tempname.c...
39472         * modules/tempname: ...to this new module.
39473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39474         (gl_PREREQ_TEMPNAME): Move...
39475         * m4/tempname.m4: ...to this new file.
39476         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39477         * modules/sys_stat (Depends-on): Add stat-macros.
39478         * lib/stat_.h (includes): Pick up stat macros.
39479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39480         if stat macros are broken.
39481         * lib/tempname.c (includes): No need to include "stat-macros.h".
39482         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39483         (direxists, __path_search) [!_LIBC]: Don't compile these in
39484         gnulib; the tmpdir module covers that.
39485         * lib/tempname.h: New file.
39486
39487 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39488
39489         * COPYING: Explain how gnulib-tool converts licence headers.
39490         Almost all wording by Eric Blake.
39491
39492 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39493
39494         * lib/mbchar.h (is_basic_table): Make read-only.
39495         * lib/mbchar.c (is_basic_table): Likewise.
39496         Reported by John Darrington.
39497
39498 2006-10-25  Bruno Haible  <bruno@clisp.org>
39499
39500         * lib/progname.h (set_program_name): Undefine before defining.
39501
39502 2006-10-25  Bruno Haible  <bruno@clisp.org>
39503
39504         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39505         false for non-gcc C++ compilers.
39506         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39507
39508 2006-10-24  Bruno Haible  <bruno@clisp.org>
39509
39510         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39511         iconv implementations like Irix iconv.
39512
39513 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39514
39515         * modules/vararrays: New file.
39516         * m4/vararrays.m4: New file, taken from diffutils.
39517         * MODULES.html.sh: New module vararrays.
39518
39519 2006-10-24  Karl Berry  <karl@gnu.org>
39520
39521         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39522         Don't call GNU Unix.
39523
39524 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39525
39526         * users.txt: Add Libtool.
39527
39528         Sync from Libtool:
39529
39530         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39531
39532         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39533         to gnulib's policy of including config.h unconditionally.
39534
39535 2006-10-24  Bruno Haible  <bruno@clisp.org>
39536
39537         * modules/wcwidth (Files): Add m4/wint_t.m4.
39538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39539         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39540
39541 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39542
39543         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39544         to pacify GCC with some -W flags enabled.  Problem reported by
39545         Bruno Haible.
39546
39547 2006-10-24  Jim Meyering  <jim@meyering.net>
39548
39549         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39550         Reported by Karl Berry.
39551
39552 2006-10-23  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39555
39556 2006-10-24  Bruno Haible  <bruno@clisp.org>
39557
39558         * lib/gl_list.h: Use C comment style, not C++ comment style.
39559
39560 2006-10-23  Eric Blake  <ebb9@byu.net>
39561
39562         * lib/getaddrinfo.c (includes): Add missing include.
39563
39564 2006-10-23  Bruno Haible  <bruno@clisp.org>
39565             Paul Eggert  <eggert@cs.ucla.edu>
39566
39567         Ability to rename obstack_free.
39568         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39569         obstack_free.
39570         (obstack_free): Invoke the __obstack_free macro.
39571         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39572
39573 2006-10-23  Bruno Haible  <bruno@clisp.org>
39574             Paul Eggert  <eggert@cs.ucla.edu>
39575
39576         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39577         __argc, __argv from the declaration. (They are defined as macros on
39578         mingw.)
39579
39580 2006-10-22  Bruno Haible  <bruno@clisp.org>
39581
39582         * doc/gnulib-intro.texi: New file.
39583         * doc/gnulib.texi: Include it.
39584
39585 2006-10-21  Bruno Haible  <bruno@clisp.org>
39586
39587         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39588         "Introduction", "Miscellanous Notes", "Particular Modules".
39589
39590 2006-10-21  Bruno Haible  <bruno@clisp.org>
39591
39592         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39593         Change mostlyclean-local rule to avoid sh syntax error from bash
39594         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39595
39596 2006-10-23  Jim Meyering  <jim@meyering.net>
39597
39598         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39599         in place of snprintf.
39600
39601         * modules/inttostr (Files): Add lib/uinttostr.c.
39602         * lib/uinttostr.c (inttostr): New file/function.
39603         * lib/inttostr.h (uinttostr): Declare.
39604         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39605         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39606         Add uinttostr.
39607         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39608
39609 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39610
39611         * lib/canonicalize.c (ELOOP): Define if not already defined.
39612         Problem reported by Bruno Haible in
39613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39614
39615 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39616
39617         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39618         Problem reported by Perry Smith and Ville Laurikari.
39619
39620         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39621         uses.
39622
39623 2006-10-19  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39626         for mingw.
39627
39628 2006-10-19  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39631         Needed for mingw.
39632
39633 2006-10-19  Bruno Haible  <bruno@clisp.org>
39634
39635         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39636
39637 2006-10-19  Bruno Haible  <bruno@clisp.org>
39638
39639         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39640         it.
39641
39642 2006-10-19  Bruno Haible  <bruno@clisp.org>
39643
39644         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39645         invocation.
39646
39647 2006-10-19  Bruno Haible  <bruno@clisp.org>
39648
39649         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39650         mountlist by default.
39651
39652 2006-10-16  Bruno Haible  <bruno@clisp.org>
39653
39654         * lib/c-strstr.c: Include c-strstr.h.
39655
39656 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39657
39658         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39659         in a slash.
39660
39661 2006-10-18  Bruno Haible  <bruno@clisp.org>
39662
39663         * lib/lock.h [C++]: Wrap definitions in extern "C".
39664
39665 2006-10-18  Bruno Haible  <bruno@clisp.org>
39666
39667         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39668         gl_LIBOBJS list.
39669
39670 2006-10-18  Bruno Haible  <bruno@clisp.org>
39671
39672         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39673
39674 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39675
39676         * lib/xstrtol.h: Include gettext.h.
39677         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39678         Problem reported by Eric Blake.
39679         * modules/xstrtol (Depends-on): Add gettext-h.
39680
39681 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
39682
39683         * lib/strftime.c (advance): New macro.
39684         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
39685         incomplete type, so you can't add 0 to it.  Problem and patch
39686         reported by Eelco Dolstra for dietlibc.
39687
39688 2006-10-18  Jim Meyering  <jim@meyering.net>
39689
39690         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39691         type for a local, and rename it: s/up/user_proc/.
39692
39693 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39694
39695         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39696         READ_UTMP_USER_PROCESS.
39697         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39698
39699 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39700
39701         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39702         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39703
39704 2006-10-17  Eric Blake  <ebb9@byu.net>
39705
39706         * lib/sigprocmask.c (sigprocmask): Fix typo.
39707
39708         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39709
39710         * modules/clean-temp (Makefile.am): Don't add to make output...
39711         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39712         config.h.
39713
39714 2006-10-17  Bruno Haible  <bruno@clisp.org>
39715
39716         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39717         differently if DEFAULT_TEXT_DOMAIN is set.
39718
39719 2006-10-16  Bruno Haible  <bruno@clisp.org>
39720
39721         * lib/clean-temp.c: Include fwriteerror.h.
39722
39723 2006-10-16  Bruno Haible  <bruno@clisp.org>
39724
39725         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39726
39727 2006-10-16  Bruno Haible  <bruno@clisp.org>
39728
39729         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39730         * lib/sigprocmask.h: Include <sys/types.h>.
39731         (sigset_t): Use the system's definition if present.
39732
39733 2006-10-17  Eric Blake  <ebb9@byu.net>
39734
39735         * lib/xvasprintf.c (includes): Assume config.h.
39736         * lib/xasprintf.c (includes): Likewise.
39737
39738 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39739
39740         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39741         at least as wide as intmax_t.
39742
39743 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
39744
39745         (Imported from Automake.)
39746         * build-aux/gnupload: Update to version 1.1 of directive file.
39747
39748 2006-10-16  Eric Blake  <ebb9@byu.net>
39749
39750         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39751         match Automake 1.10a.
39752
39753 2006-10-14  Bruno Haible  <bruno@clisp.org>
39754
39755         * modules/sigprocmask: New file.
39756         * lib/sigprocmask.h: New file.
39757         * lib/sigprocmask.c: New file.
39758         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
39759         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
39760         request sigprocmask.o.
39761         (gl_PREREQ_SIGPROCMASK): New macro.
39762         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
39763         (Depends-on): Add sigprocmask.
39764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
39765         gt_SIGNALBLOCKING. Test for 'raise' only once.
39766         * lib/fatal-signal.c: Include sigprocmask.h.
39767         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
39768         unblock_fatal_signals): Define always.
39769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39770         sigprocmask.
39771
39772 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39773
39774         Sync from Automake.
39775         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
39776         which incorrectly sets the mode of an existing destination
39777         directory.  In some cases the unpatched install-sh could do the
39778         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
39779         system.  We hope this is rare in practice, but it's clearly worth
39780         fixing.  Problem reported by Alex Unleashed in
39781         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
39782         Also, don't bother to check for -m bugs unless we're using -m;
39783         suggested by Stepan Kasal.
39784
39785 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39786
39787         Sync from Automake.
39788         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
39789         `-c' flag, so they appear at the same position as in %FASTDEP%
39790         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
39791         which ignores unknown options only after the first non-option.
39792         Bug report against M4 by Nelson H. F. Beebe.
39793
39794 2006-10-13  Jim Meyering  <jim@meyering.net>
39795
39796         Fix a bug in yesterday's change.
39797         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
39798         p->fts_statp->st_dev would be used uninitialized.
39799         Ensures that we always call fts_stat on the very first entry.
39800         Miklos Szeredi reported that find -xdev stopped working.
39801
39802 2006-10-12  Bruno Haible  <bruno@clisp.org>
39803
39804         * gnulib-tool (func_get_automake_snippet): Append an automatically
39805         computed EXTRA_DIST augmentation.
39806         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
39807         * modules/alloca-opt (Makefile.am): Likewise.
39808         * modules/allocsa (Makefile.am): Likewise.
39809         * modules/arcfour (Makefile.am): Likewise.
39810         * modules/arctwo (Makefile.am): Likewise.
39811         * modules/argmatch (Makefile.am): Likewise.
39812         * modules/argz (Makefile.am): Likewise.
39813         * modules/atexit (Makefile.am): Likewise.
39814         * modules/backupfile (Makefile.am): Likewise.
39815         * modules/byteswap (Makefile.am): Likewise.
39816         * modules/c-strtod (Makefile.am): Likewise.
39817         * modules/c-strtold (Makefile.am): Likewise.
39818         * modules/calloc (Makefile.am): Likewise.
39819         * modules/canon-host (Makefile.am): Likewise.
39820         * modules/canonicalize (Makefile.am): Likewise.
39821         * modules/chdir-long (Makefile.am): Likewise.
39822         * modules/chdir-safer (Makefile.am): Likewise.
39823         * modules/check-version (Makefile.am): Likewise.
39824         * modules/chown (Makefile.am): Likewise.
39825         * modules/cloexec (Makefile.am): Likewise.
39826         * modules/close-stream (Makefile.am): Likewise.
39827         * modules/closeout (Makefile.am): Likewise.
39828         * modules/crc (Makefile.am): Likewise.
39829         * modules/csharpexec (Makefile.am): Likewise.
39830         * modules/cycle-check (Makefile.am): Likewise.
39831         * modules/des (Makefile.am): Likewise.
39832         * modules/dev-ino (Makefile.am): Likewise.
39833         * modules/dirfd (Makefile.am): Likewise.
39834         * modules/dirname (Makefile.am): Likewise.
39835         * modules/dup2 (Makefile.am): Likewise.
39836         * modules/eealloc (Makefile.am): Likewise.
39837         * modules/error (Makefile.am): Likewise.
39838         * modules/euidaccess (Makefile.am): Likewise.
39839         * modules/exclude (Makefile.am): Likewise.
39840         * modules/exitfail (Makefile.am): Likewise.
39841         * modules/fcntl-safer (Makefile.am): Likewise.
39842         * modules/fcntl (Makefile.am): Likewise.
39843         * modules/file-type (Makefile.am): Likewise.
39844         * modules/fileblocks (Makefile.am): Likewise.
39845         * modules/filemode (Makefile.am): Likewise.
39846         * modules/filenamecat (Makefile.am): Likewise.
39847         * modules/fnmatch (Makefile.am): Likewise.
39848         * modules/fopen-safer (Makefile.am): Likewise.
39849         * modules/fpending (Makefile.am): Likewise.
39850         * modules/fprintftime (Makefile.am): Likewise.
39851         * modules/free (Makefile.am): Likewise.
39852         * modules/fsusage (Makefile.am): Likewise.
39853         * modules/ftruncate (Makefile.am): Likewise.
39854         * modules/fts (Makefile.am): Likewise.
39855         * modules/gc-arcfour (Makefile.am): Likewise.
39856         * modules/gc-des (Makefile.am): Likewise.
39857         * modules/gc-hmac-md5 (Makefile.am): Likewise.
39858         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
39859         * modules/gc-md4 (Makefile.am): Likewise.
39860         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39861         * modules/gc-sha1 (Makefile.am): Likewise.
39862         * modules/gc (Makefile.am): Likewise.
39863         * modules/getaddrinfo (Makefile.am): Likewise.
39864         * modules/getcwd (Makefile.am): Likewise.
39865         * modules/getdelim (Makefile.am): Likewise.
39866         * modules/getdomainname (Makefile.am): Likewise.
39867         * modules/getgroups (Makefile.am): Likewise.
39868         * modules/gethostname (Makefile.am): Likewise.
39869         * modules/gethrxtime (Makefile.am): Likewise.
39870         * modules/getline (Makefile.am): Likewise.
39871         * modules/getloadavg (Makefile.am): Likewise.
39872         * modules/getlogin_r (Makefile.am): Likewise.
39873         * modules/getndelim2 (Makefile.am): Likewise.
39874         * modules/getopt (Makefile.am): Likewise.
39875         * modules/getpagesize (Makefile.am): Likewise.
39876         * modules/getpass-gnu (Makefile.am): Likewise.
39877         * modules/getpass (Makefile.am): Likewise.
39878         * modules/getsubopt (Makefile.am): Likewise.
39879         * modules/gettime (Makefile.am): Likewise.
39880         * modules/gettimeofday (Makefile.am): Likewise.
39881         * modules/getugroups (Makefile.am): Likewise.
39882         * modules/getusershell (Makefile.am): Likewise.
39883         * modules/glob (Makefile.am): Likewise.
39884         * modules/group-member (Makefile.am): Likewise.
39885         * modules/hard-locale (Makefile.am): Likewise.
39886         * modules/hash (Makefile.am): Likewise.
39887         * modules/hmac-md5 (Makefile.am): Likewise.
39888         * modules/hmac-sha1 (Makefile.am): Likewise.
39889         * modules/human (Makefile.am): Likewise.
39890         * modules/idcache (Makefile.am): Likewise.
39891         * modules/imaxabs (Makefile.am): Likewise.
39892         * modules/imaxdiv (Makefile.am): Likewise.
39893         * modules/inet_ntop (Makefile.am): Likewise.
39894         * modules/inet_pton (Makefile.am): Likewise.
39895         * modules/intprops (Makefile.am): Likewise.
39896         * modules/inttostr (Makefile.am): Likewise.
39897         * modules/inttypes (Makefile.am): Likewise.
39898         * modules/isapipe (Makefile.am): Likewise.
39899         * modules/javaversion (Makefile.am): Likewise.
39900         * modules/lchmod (Makefile.am): Likewise.
39901         * modules/lchown (Makefile.am): Likewise.
39902         * modules/localcharset (Makefile.am): Likewise.
39903         * modules/long-options (Makefile.am): Likewise.
39904         * modules/lstat (Makefile.am): Likewise.
39905         * modules/malloc (Makefile.am): Likewise.
39906         * modules/mathl (Makefile.am): Likewise.
39907         * modules/mbchar (Makefile.am): Likewise.
39908         * modules/md2 (Makefile.am): Likewise.
39909         * modules/md4 (Makefile.am): Likewise.
39910         * modules/md5 (Makefile.am): Likewise.
39911         * modules/memcasecmp (Makefile.am): Likewise.
39912         * modules/memchr (Makefile.am): Likewise.
39913         * modules/memcmp (Makefile.am): Likewise.
39914         * modules/memcoll (Makefile.am): Likewise.
39915         * modules/memcpy (Makefile.am): Likewise.
39916         * modules/memmem (Makefile.am): Likewise.
39917         * modules/memmove (Makefile.am): Likewise.
39918         * modules/mempcpy (Makefile.am): Likewise.
39919         * modules/memrchr (Makefile.am): Likewise.
39920         * modules/memset (Makefile.am): Likewise.
39921         * modules/memxor (Makefile.am): Likewise.
39922         * modules/mkancesdirs (Makefile.am): Likewise.
39923         * modules/mkdir-p (Makefile.am): Likewise.
39924         * modules/mkdir (Makefile.am): Likewise.
39925         * modules/mkdtemp (Makefile.am): Likewise.
39926         * modules/mkstemp (Makefile.am): Likewise.
39927         * modules/mktime (Makefile.am): Likewise.
39928         * modules/modechange (Makefile.am): Likewise.
39929         * modules/mountlist (Makefile.am): Likewise.
39930         * modules/nanosleep (Makefile.am): Likewise.
39931         * modules/obstack (Makefile.am): Likewise.
39932         * modules/openat (Makefile.am): Likewise.
39933         * modules/pagealign_alloc (Makefile.am): Likewise.
39934         * modules/pathmax (Makefile.am): Likewise.
39935         * modules/physmem (Makefile.am): Likewise.
39936         * modules/poll (Makefile.am): Likewise.
39937         * modules/posixtm (Makefile.am): Likewise.
39938         * modules/posixver (Makefile.am): Likewise.
39939         * modules/putenv (Makefile.am): Likewise.
39940         * modules/quote (Makefile.am): Likewise.
39941         * modules/quotearg (Makefile.am): Likewise.
39942         * modules/raise (Makefile.am): Likewise.
39943         * modules/read-file (Makefile.am): Likewise.
39944         * modules/readline (Makefile.am): Likewise.
39945         * modules/readlink (Makefile.am): Likewise.
39946         * modules/readtokens (Makefile.am): Likewise.
39947         * modules/readutmp (Makefile.am): Likewise.
39948         * modules/realloc (Makefile.am): Likewise.
39949         * modules/regex (Makefile.am): Likewise.
39950         * modules/rename-dest-slash (Makefile.am): Likewise.
39951         * modules/rename (Makefile.am): Likewise.
39952         * modules/rijndael (Makefile.am): Likewise.
39953         * modules/rmdir (Makefile.am): Likewise.
39954         * modules/rpmatch (Makefile.am): Likewise.
39955         * modules/safe-read (Makefile.am): Likewise.
39956         * modules/safe-write (Makefile.am): Likewise.
39957         * modules/same-inode (Makefile.am): Likewise.
39958         * modules/same (Makefile.am): Likewise.
39959         * modules/save-cwd (Makefile.am): Likewise.
39960         * modules/savedir (Makefile.am): Likewise.
39961         * modules/setenv (Makefile.am): Likewise.
39962         * modules/settime (Makefile.am): Likewise.
39963         * modules/sha1 (Makefile.am): Likewise.
39964         * modules/sig2str (Makefile.am): Likewise.
39965         * modules/snprintf (Makefile.am): Likewise.
39966         * modules/stat-macros (Makefile.am): Likewise.
39967         * modules/stat-time (Makefile.am): Likewise.
39968         * modules/stdbool (Makefile.am): Likewise.
39969         * modules/stdint (Makefile.am): Likewise.
39970         * modules/stdlib-safer (Makefile.am): Likewise.
39971         * modules/stpcpy (Makefile.am): Likewise.
39972         * modules/stpncpy (Makefile.am): Likewise.
39973         * modules/strcase (Makefile.am): Likewise.
39974         * modules/strcasestr (Makefile.am): Likewise.
39975         * modules/strchrnul (Makefile.am): Likewise.
39976         * modules/strcspn (Makefile.am): Likewise.
39977         * modules/strdup (Makefile.am): Likewise.
39978         * modules/strerror (Makefile.am): Likewise.
39979         * modules/strftime (Makefile.am): Likewise.
39980         * modules/strndup (Makefile.am): Likewise.
39981         * modules/strnlen (Makefile.am): Likewise.
39982         * modules/strpbrk (Makefile.am): Likewise.
39983         * modules/strsep (Makefile.am): Likewise.
39984         * modules/strstr (Makefile.am): Likewise.
39985         * modules/strtod (Makefile.am): Likewise.
39986         * modules/strtoimax (Makefile.am): Likewise.
39987         * modules/strtok_r (Makefile.am): Likewise.
39988         * modules/strtol (Makefile.am): Likewise.
39989         * modules/strtoll (Makefile.am): Likewise.
39990         * modules/strtoul (Makefile.am): Likewise.
39991         * modules/strtoull (Makefile.am): Likewise.
39992         * modules/strtoumax (Makefile.am): Likewise.
39993         * modules/strverscmp (Makefile.am): Likewise.
39994         * modules/sys_socket (Makefile.am): Likewise.
39995         * modules/sys_stat (Makefile.am): Likewise.
39996         * modules/sysexits (Makefile.am): Likewise.
39997         * modules/time_r (Makefile.am): Likewise.
39998         * modules/timegm (Makefile.am): Likewise.
39999         * modules/timespec (Makefile.am): Likewise.
40000         * modules/tmpfile-safer (Makefile.am): Likewise.
40001         * modules/trim (Makefile.am): Likewise.
40002         * modules/unistd-safer (Makefile.am): Likewise.
40003         * modules/unlinkdir (Makefile.am): Likewise.
40004         * modules/unlocked-io (Makefile.am): Likewise.
40005         * modules/userspec (Makefile.am): Likewise.
40006         * modules/utime (Makefile.am): Likewise.
40007         * modules/utimecmp (Makefile.am): Likewise.
40008         * modules/utimens (Makefile.am): Likewise.
40009         * modules/vasnprintf (Makefile.am): Likewise.
40010         * modules/vasprintf (Makefile.am): Likewise.
40011         * modules/vsnprintf (Makefile.am): Likewise.
40012         * modules/xalloc (Makefile.am): Likewise.
40013         * modules/xgetcwd (Makefile.am): Likewise.
40014         * modules/xnanosleep (Makefile.am): Likewise.
40015         * modules/xreadlink (Makefile.am): Likewise.
40016         * modules/xstrtod (Makefile.am): Likewise.
40017         * modules/xstrtol (Makefile.am): Likewise.
40018         * modules/xstrtold (Makefile.am): Likewise.
40019         * modules/yesno (Makefile.am): Likewise.
40020         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40021
40022 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40023
40024         * modules/error (Makefile.am): Distribute files through
40025         EXTRA_DIST, not lib_SOURCES.
40026
40027 2006-10-12  Eric Blake  <ebb9@byu.net>
40028
40029         * modules/error (Makefile.am): Distribute files in /lib.
40030         * modules/obstack (Makefile.am): Likewise.
40031
40032 2006-10-12  Bruno Haible  <bruno@clisp.org>
40033
40034         * modules/acl (Makefile.am): Distribute all files in lib/ through
40035         EXTRA_DIST.
40036         * modules/arcfour (Makefile.am): Likewise.
40037         * modules/arctwo (Makefile.am): Likewise.
40038         * modules/argmatch (Makefile.am): Likewise.
40039         * modules/argz (Makefile.am): Likewise.
40040         * modules/atexit (Makefile.am): Likewise.
40041         * modules/backupfile (Makefile.am): Likewise.
40042         * modules/c-strtod (Makefile.am): Likewise.
40043         * modules/c-strtold (Makefile.am): Likewise.
40044         * modules/calloc (Makefile.am): Likewise.
40045         * modules/canon-host (Makefile.am): Likewise.
40046         * modules/canonicalize (Makefile.am): Likewise.
40047         * modules/chdir-long (Makefile.am): Likewise.
40048         * modules/chdir-safer (Makefile.am): Likewise.
40049         * modules/check-version (Makefile.am): Likewise.
40050         * modules/chown (Makefile.am): Likewise.
40051         * modules/cloexec (Makefile.am): Likewise.
40052         * modules/close-stream (Makefile.am): Likewise.
40053         * modules/closeout (Makefile.am): Likewise.
40054         * modules/crc (Makefile.am): Likewise.
40055         * modules/cycle-check (Makefile.am): Likewise.
40056         * modules/des (Makefile.am): Likewise.
40057         * modules/dirfd (Makefile.am): Likewise.
40058         * modules/dirname (Makefile.am): Likewise.
40059         * modules/dup2 (Makefile.am): Likewise.
40060         * modules/euidaccess (Makefile.am): Likewise.
40061         * modules/exclude (Makefile.am): Likewise.
40062         * modules/exitfail (Makefile.am): Likewise.
40063         * modules/fcntl-safer (Makefile.am): Likewise.
40064         * modules/file-type (Makefile.am): Likewise.
40065         * modules/fileblocks (Makefile.am): Likewise.
40066         * modules/filemode (Makefile.am): Likewise.
40067         * modules/filenamecat (Makefile.am): Likewise.
40068         * modules/fnmatch (Makefile.am): Likewise.
40069         * modules/fopen-safer (Makefile.am): Likewise.
40070         * modules/fpending (Makefile.am): Likewise.
40071         * modules/fprintftime (Makefile.am): Likewise.
40072         * modules/free (Makefile.am): Likewise.
40073         * modules/fsusage (Makefile.am): Likewise.
40074         * modules/ftruncate (Makefile.am): Likewise.
40075         * modules/fts (Makefile.am): Likewise.
40076         * modules/gc (Makefile.am): Likewise.
40077         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40078         * modules/getaddrinfo (Makefile.am): Likewise.
40079         * modules/getcwd (Makefile.am): Likewise.
40080         * modules/getdelim (Makefile.am): Likewise.
40081         * modules/getdomainname (Makefile.am): Likewise.
40082         * modules/getgroups (Makefile.am): Likewise.
40083         * modules/gethostname (Makefile.am): Likewise.
40084         * modules/gethrxtime (Makefile.am): Likewise.
40085         * modules/getline (Makefile.am): Likewise.
40086         * modules/getloadavg (Makefile.am): Likewise.
40087         * modules/getlogin_r (Makefile.am): Likewise.
40088         * modules/getopt (Makefile.am): Likewise.
40089         * modules/getpass (Makefile.am): Likewise.
40090         * modules/getpass-gnu (Makefile.am): Likewise.
40091         * modules/getsubopt (Makefile.am): Likewise.
40092         * modules/gettime (Makefile.am): Likewise.
40093         * modules/gettimeofday (Makefile.am): Likewise.
40094         * modules/getugroups (Makefile.am): Likewise.
40095         * modules/getusershell (Makefile.am): Likewise.
40096         * modules/glob (Makefile.am): Likewise.
40097         * modules/group-member (Makefile.am): Likewise.
40098         * modules/hard-locale (Makefile.am): Likewise.
40099         * modules/hash (Makefile.am): Likewise.
40100         * modules/hmac-md5 (Makefile.am): Likewise.
40101         * modules/hmac-sha1 (Makefile.am): Likewise.
40102         * modules/human (Makefile.am): Likewise.
40103         * modules/idcache (Makefile.am): Likewise.
40104         * modules/imaxabs (Makefile.am): Likewise.
40105         * modules/imaxdiv (Makefile.am): Likewise.
40106         * modules/inet_ntop (Makefile.am): Likewise.
40107         * modules/inet_pton (Makefile.am): Likewise.
40108         * modules/inttostr (Makefile.am): Likewise.
40109         * modules/isapipe (Makefile.am): Likewise.
40110         * modules/lchown (Makefile.am): Likewise.
40111         * modules/long-options (Makefile.am): Likewise.
40112         * modules/lstat (Makefile.am): Likewise.
40113         * modules/malloc (Makefile.am): Likewise.
40114         * modules/mathl (Makefile.am): Likewise.
40115         * modules/mbchar (Makefile.am): Likewise.
40116         * modules/md2 (Makefile.am): Likewise.
40117         * modules/md4 (Makefile.am): Likewise.
40118         * modules/md5 (Makefile.am): Likewise.
40119         * modules/memcasecmp (Makefile.am): Likewise.
40120         * modules/memchr (Makefile.am): Likewise.
40121         * modules/memcmp (Makefile.am): Likewise.
40122         * modules/memcoll (Makefile.am): Likewise.
40123         * modules/memcpy (Makefile.am): Likewise.
40124         * modules/memmem (Makefile.am): Likewise.
40125         * modules/memmove (Makefile.am): Likewise.
40126         * modules/mempcpy (Makefile.am): Likewise.
40127         * modules/memrchr (Makefile.am): Likewise.
40128         * modules/memset (Makefile.am): Likewise.
40129         * modules/memxor (Makefile.am): Likewise.
40130         * modules/mkancesdirs (Makefile.am): Likewise.
40131         * modules/mkdir (Makefile.am): Likewise.
40132         * modules/mkdir-p (Makefile.am): Likewise.
40133         * modules/mkdtemp (Makefile.am): Likewise.
40134         * modules/mkstemp (Makefile.am): Likewise.
40135         * modules/mktime (Makefile.am): Likewise.
40136         * modules/modechange (Makefile.am): Likewise.
40137         * modules/mountlist (Makefile.am): Likewise.
40138         * modules/nanosleep (Makefile.am): Likewise.
40139         * modules/openat (Makefile.am): Likewise.
40140         * modules/pagealign_alloc (Makefile.am): Likewise.
40141         * modules/physmem (Makefile.am): Likewise.
40142         * modules/poll (Makefile.am): Likewise.
40143         * modules/posixtm (Makefile.am): Likewise.
40144         * modules/posixver (Makefile.am): Likewise.
40145         * modules/putenv (Makefile.am): Likewise.
40146         * modules/quote (Makefile.am): Likewise.
40147         * modules/quotearg (Makefile.am): Likewise.
40148         * modules/raise (Makefile.am): Likewise.
40149         * modules/read-file (Makefile.am): Likewise.
40150         * modules/readline (Makefile.am): Likewise.
40151         * modules/readlink (Makefile.am): Likewise.
40152         * modules/readtokens (Makefile.am): Likewise.
40153         * modules/readutmp (Makefile.am): Likewise.
40154         * modules/realloc (Makefile.am): Likewise.
40155         * modules/regex (Makefile.am): Likewise.
40156         * modules/rename (Makefile.am): Likewise.
40157         * modules/rename-dest-slash (Makefile.am): Likewise.
40158         * modules/rijndael (Makefile.am): Likewise.
40159         * modules/rmdir (Makefile.am): Likewise.
40160         * modules/rpmatch (Makefile.am): Likewise.
40161         * modules/safe-read (Makefile.am): Likewise.
40162         * modules/safe-write (Makefile.am): Likewise.
40163         * modules/same (Makefile.am): Likewise.
40164         * modules/save-cwd (Makefile.am): Likewise.
40165         * modules/savedir (Makefile.am): Likewise.
40166         * modules/setenv (Makefile.am): Likewise.
40167         * modules/settime (Makefile.am): Likewise.
40168         * modules/sha1 (Makefile.am): Likewise.
40169         * modules/sig2str (Makefile.am): Likewise.
40170         * modules/snprintf (Makefile.am): Likewise.
40171         * modules/stdlib-safer (Makefile.am): Likewise.
40172         * modules/stpcpy (Makefile.am): Likewise.
40173         * modules/stpncpy (Makefile.am): Likewise.
40174         * modules/strcase (Makefile.am): Likewise.
40175         * modules/strcasestr (Makefile.am): Likewise.
40176         * modules/strchrnul (Makefile.am): Likewise.
40177         * modules/strcspn (Makefile.am): Likewise.
40178         * modules/strdup (Makefile.am): Likewise.
40179         * modules/strerror (Makefile.am): Likewise.
40180         * modules/strftime (Makefile.am): Likewise.
40181         * modules/strndup (Makefile.am): Likewise.
40182         * modules/strnlen (Makefile.am): Likewise.
40183         * modules/strpbrk (Makefile.am): Likewise.
40184         * modules/strsep (Makefile.am): Likewise.
40185         * modules/strstr (Makefile.am): Likewise.
40186         * modules/strtod (Makefile.am): Likewise.
40187         * modules/strtoimax (Makefile.am): Likewise.
40188         * modules/strtok_r (Makefile.am): Likewise.
40189         * modules/strtol (Makefile.am): Likewise.
40190         * modules/strtoll (Makefile.am): Likewise.
40191         * modules/strtoul (Makefile.am): Likewise.
40192         * modules/strtoull (Makefile.am): Likewise.
40193         * modules/strtoumax (Makefile.am): Likewise.
40194         * modules/strverscmp (Makefile.am): Likewise.
40195         * modules/time_r (Makefile.am): Likewise.
40196         * modules/timegm (Makefile.am): Likewise.
40197         * modules/tmpfile-safer (Makefile.am): Likewise.
40198         * modules/unistd-safer (Makefile.am): Likewise.
40199         * modules/unlinkdir (Makefile.am): Likewise.
40200         * modules/userspec (Makefile.am): Likewise.
40201         * modules/utime (Makefile.am): Likewise.
40202         * modules/utimecmp (Makefile.am): Likewise.
40203         * modules/utimens (Makefile.am): Likewise.
40204         * modules/vasnprintf (Makefile.am): Likewise.
40205         * modules/vasprintf (Makefile.am): Likewise.
40206         * modules/vsnprintf (Makefile.am): Likewise.
40207         * modules/xalloc (Makefile.am): Likewise.
40208         * modules/xgetcwd (Makefile.am): Likewise.
40209         * modules/xnanosleep (Makefile.am): Likewise.
40210         * modules/xreadlink (Makefile.am): Likewise.
40211         * modules/xstrtod (Makefile.am): Likewise.
40212         * modules/xstrtol (Makefile.am): Likewise.
40213         * modules/xstrtold (Makefile.am): Likewise.
40214         * modules/yesno (Makefile.am): Likewise.
40215
40216 2006-10-12  Jim Meyering  <jim@meyering.net>
40217
40218         * m4/getloadavg.m4: Revert the change below.
40219
40220         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40221         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40222         fail with a symlink, which is what coreutils' ./bootstrap now
40223         creates by default.
40224
40225 2006-10-12  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40228         mingw.
40229         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40230         MSVC and mingw explicitly.
40231
40232 2006-10-11  Simon Josefsson  <jas@extundo.com>
40233             Bruno Haible  <bruno@clisp.org>
40234
40235         Add support for multiple gnulib-tool invocations in the scope of a
40236         single configure.ac file.
40237         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40238         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40239         with the same contents as the _LIBADD variable.
40240         (func_emit_initmacro_start, func_emit_initmacro_end,
40241         func_emit_initmacro_done): New functions.
40242         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40243         gl_LIBOBJS and gl_LTLIBOBJS.
40244
40245 2006-10-11  Bruno Haible  <bruno@clisp.org>
40246
40247         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40248         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40249         autoreconf. Instead, invoke autopoint explicitly but move back the
40250         *.m4 files from gnulib.
40251
40252 2006-10-11  Bruno Haible  <bruno@clisp.org>
40253
40254         * gnulib-tool (func_usage): Make module names after --create-testdir
40255         optional.
40256         (func_create_testdir): If no module was specified, use nearly all
40257         modules.
40258
40259 2006-10-12  Jim Meyering  <jim@meyering.net>
40260
40261         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40262         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40263         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40264         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40265         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40266         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40267         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40268         (fts_set_stat_required): New function.
40269         (fts_open): Defer the calls to fts_stat, if possible or requested.
40270         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40271         into fts_stat itself.
40272         (fts_read): Perform any required (deferred) fts_stat call.
40273         (fts_build): Likewise, for the directory we're about to open and read.
40274         In the readdir loop, carefully decide whether each entry will require
40275         an eventual call to fts_stat, using dirent.d_type info if available.
40276         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40277         a command line argument into this function.  Update all callers.
40278         Map a return value of FTS_DOT to FTS_D for a command line argument.
40279         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40280         Thanks to Miklos Szeredi for his tenacity and for the initial
40281         bug report about "find" failing on a FUSE-based file system.
40282
40283         * lib/fts.c (fts_open): Use consistent indentation.
40284
40285 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40286
40287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40288         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40289         reported by Jim Meyering.  All uses of cache variables renamed
40290         to match Autoconf's.
40291         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40292         the other one.
40293
40294         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40295         Fix misspelling in diagnostic.
40296
40297 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40298
40299         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40300         defined.  Problem reported by Matthew Woehlke.
40301
40302         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40303         Add support for Tandem NonStop R series.
40304         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40305         Use new macro.
40306
40307         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40308         (has_trailing_slash): Omit size arg; all callers changed.
40309         Omit 'inline', since it doesn't help performance and we'd
40310         need to configure it.
40311         Don't count //, ///, etc. as having a trailing slash.
40312         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40313         (rpl_rename_dest_slash): On failure, use rename's errno rather
40314         than (in some cases) an incorrect or junk errno.
40315         Simplify code by removing need to compute length; this does
40316         cause it to make two passes instead of one over the file name,
40317         but it's worth it.
40318
40319         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40320         change, since Autoconf's version may no longer be appropriate now
40321         that we are using CVS Autoconf's version.  Add support for Tandem.
40322
40323 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40324             Bruno Haible  <bruno@clisp.org>
40325
40326         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40327         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40328         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40329         gl_AC_TYPE_LONG_LONG.
40330
40331         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40332         instead of HAVE_LONG_LONG.
40333         * lib/printf-args.c (printf_fetchargs): Likewise.
40334         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40335         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40336         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40337         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40338         gl_AC_TYPE_LONG_LONG.
40339
40340 2006-10-11  Bruno Haible  <bruno@clisp.org>
40341
40342         * m4/longlong.m4: Add comments.
40343         * m4/ulonglong.m4: Likewise.
40344
40345 2006-10-10  Bruno Haible  <bruno@clisp.org>
40346
40347         Make it possible to #define stpcpy, strdup to aliases.
40348         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40349         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40350
40351 2006-10-10  Bruno Haible  <bruno@clisp.org>
40352
40353         Make it possible to #define gcd to an alias.
40354         * lib/gcd.c: Include config.h.
40355
40356 2006-10-10  Bruno Haible  <bruno@clisp.org>
40357
40358         Make it possible to #define c_isascii to an alias.
40359         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40360         defined. Undefine the macros before defining them, to avoid gcc
40361         warnings.
40362         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40363         define NO_C_CTYPE_MACROS early.
40364
40365 2006-10-10  Bruno Haible  <bruno@clisp.org>
40366
40367         Make it possible to #define set_program_name to an alias.
40368         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40369         ENABLE_RELOCATABLE early.
40370
40371 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40372
40373         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40374         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40375         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40376         More generally, don't assume that 64-bit signed int is available
40377         if unsigned int is, and vice versa.
40378         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40379         unsigned symbols, not on their signed counterparts.
40380         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40381         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40382         (UINT64_C, UINTMAX_C):
40383         Likewise.
40384         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40385         unsigned counterparts.
40386         (Have_long_long, Unsigned): New macros.
40387         (Int): Renamed from INT.
40388         (strtoimax): Use the new macros.
40389         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40390         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40391         * modules/inttypes (inttypes.h): Substitute
40392         HAVE_UNSIGNED_LONG_LONG_INT.
40393         * modules/stdint (stdint.h): Likewise.
40394         (Files): Add m4/ulonglong.m4.
40395
40396 2006-10-10  Bruno Haible  <bruno@clisp.org>
40397
40398         Fix a gcc -Wshadow warning.
40399         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40400         to 'bucket'.
40401         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40402         gl_linked_indexof_from_to): Likewise.
40403         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40404         Likewise.
40405         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40406         Likewise.
40407         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40408         Reported by Eric Blake.
40409
40410 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40411
40412         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40413         for NetBSD.  Problem reported by Bruno Haible.
40414
40415 2006-10-09  Jim Meyering  <jim@meyering.net>
40416
40417         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40418         Patch from Bruno Haible.
40419
40420 2006-10-09  Jim Meyering  <jim@meyering.net>
40421
40422         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40423         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40424         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40425
40426 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40427
40428         Don't include <config.h> twice; this doesn't work in some cases,
40429         e.g., when config.h has "#define intmax_t long long int" and
40430         we include <config.h>, <inttypes.h>, <config.h> in that order.
40431         Problem reported by Matthew Woehlke in:
40432         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40433         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40434         * lib/fts-cycle.c: Don't include config.h.
40435         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40436         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40437         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40438         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40439         inttypes.h.
40440         * lib/xstrtoumax.c: Likewise.
40441         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40442         __strtol and the like, so that this module is more like its siblings.
40443         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40444         Remove; no longer needed now that we assume gnulib inttypes.h.
40445
40446 2006-10-08  Bruno Haible  <bruno@clisp.org>
40447
40448         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40449         option.
40450
40451 2006-10-07  Jim Meyering  <jim@meyering.net>
40452
40453         * modules/inttypes (inttypes.h): Revert what seems to have been
40454         an inadvertent part of today's change: use "|", not "/" in the
40455         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40456
40457 2006-10-07  Bruno Haible  <bruno@clisp.org>
40458
40459         * modules/sublist: New file.
40460
40461 2006-10-07  Bruno Haible  <bruno@clisp.org>
40462
40463         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40464         * modules/argz (argz.h): Likewise.
40465         * modules/arpa_inet (arpa/inet.h): Likewise.
40466         * modules/byteswap (byteswap.h): Likewise.
40467         * modules/configmake (configmake.h): Likewise.
40468         * modules/fcntl (fcntl.h): Likewise.
40469         * modules/fnmatch (fnmatch.h): Likewise.
40470         * modules/getopt (getopt.h): Likewise.
40471         * modules/glob (glob.h): Likewise.
40472         * modules/inttypes (inttypes.h): Likewise.
40473         * modules/netinet_in (netinet/in.h): Likewise.
40474         * modules/poll (poll.h): Likewise.
40475         * modules/stdbool (stdbool.h): Likewise.
40476         * modules/stdint (stdint.h): Likewise.
40477         * modules/sys_select (sys/select.h): Likewise.
40478         * modules/sys_socket (sys/socket.h): Likewise.
40479         * modules/sys_stat (sys/stat.h): Likewise.
40480         * modules/sysexits (sysexits.h): Likewise.
40481         * modules/unistd (unistd.h): Likewise.
40482         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40483         Add a "DO NOT EDIT" comment to the generated file.
40484         (func_import): Likewise for gnulib-comp.m4.
40485
40486 2006-10-07  Bruno Haible  <bruno@clisp.org>
40487
40488         * lib/gl_sublist.h: New file.
40489         * lib/gl_sublist.c: New file.
40490
40491 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40492
40493         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40494         name (relative to the original working directory) and the file
40495         name component (relative to the temporary working directory).  All
40496         callers changed.
40497         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40498         * lib/mkdir-p.c (make_dir_parents): Likewise.
40499         * lib/mkdir-p.h (make_dir_parents): Likewise.
40500
40501 2006-10-06  Eric Blake  <ebb9@byu.net>
40502
40503         Define several macros for use by the clean-temp module.
40504         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40505         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40506         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40507
40508         * lib/clean-temp.h (close_stream_temp): New declaration.
40509         * lib/clean-temp.c (includes): Pull in headers according to what
40510         other modules are in use.
40511         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40512
40513 2006-10-06  Bruno Haible  <bruno@clisp.org>
40514
40515         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40516         instead of fopen, fwriteerror.
40517
40518 2006-10-06  Bruno Haible  <bruno@clisp.org>
40519
40520         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40521         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40522         int.
40523         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40524         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40525         Return an error indicator.
40526         Suggested by Eric Blake.
40527
40528 2006-10-06  Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40531         Reported by Eric Blake.
40532
40533 2006-10-06  Bruno Haible  <bruno@clisp.org>
40534
40535         * modules/closeout (Description): Mention stderr too.
40536
40537 2006-10-06  Bruno Haible  <bruno@clisp.org>
40538         and Paul Eggert  <eggert@cs.ucla.edu>
40539
40540         * lib/closeout.c (close_stdout): Also close stderr.
40541         * lib/closeout.h: Update comment.
40542
40543 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40544
40545         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40546         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40547         * lib/dirchownmod.c: Include lchown.h.
40548         * lib/lchown.c: Don't include files that lchown.h now includes.
40549         Don't declare chown, since lchown.h now does that.
40550         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40551         (lchown): Define to rpl_chown if lchown is declared but
40552         does not exist.  Declare using a prototype if lchown is not
40553         declared.  Add a copyright notice.
40554         * lib/mkstemp.h: Include <unistd.h>.
40555         * lib/openat.c: Include lchown.h.
40556
40557         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40558         we now test for that separately.
40559         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40560         rather than O_NOFOLLOW, when testing whether it's possible to
40561         avoid a race condition reliably.
40562         * lib/savewd.c (savewd_chdir): Likewise.
40563
40564         Remove macros that are no longer needed now that stdint.h is
40565         reliable.
40566         * lib/fsusage.c (UINTMAX_MAX): Remove.
40567         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40568         * lib/utimecmp.c (SIZE_MAX): Remove.
40569
40570         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40571
40572         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40573         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40574         O_NOATIME works.
40575
40576 2006-10-05  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/gl_list.h (gl_sortedlist_search_from_to,
40579         gl_sortedlist_indexof_from_to): New declarations.
40580         (gl_list_implementation): New fields sortedlist_search_from_to,
40581         sortedlist_indexof_from_to.
40582         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40583         inline functions.
40584         * lib/gl_list.c (gl_sortedlist_search_from_to,
40585         gl_sortedlist_indexof_from_to): New functions.
40586         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40587         function.
40588         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40589         (gl_array_sortedlist_search_from_to): New function.
40590         (gl_array_list_implementation): Update.
40591         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40592         function.
40593         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40594         (gl_carray_sortedlist_search_from_to): New function.
40595         (gl_carray_list_implementation): Update.
40596         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40597         gl_linked_sortedlist_indexof_from_to): New functions.
40598         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40599         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40600         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40601         gl_tree_sortedlist_indexof_from_to): New functions.
40602         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40603         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40604         Update.
40605         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40606         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40607         Update.
40608
40609 2006-10-05  Bruno Haible  <bruno@clisp.org>
40610
40611         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40612         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40613         (struct gl_list_implementation): Add fields search_from_to,
40614         indexof_from_to. Remove fields search, indexof.
40615         (gl_list_search): Use the search_from_to method.
40616         (gl_list_search_from, gl_list_search_from_to): New functions.
40617         (gl_list_indexof): Use the indexof_from_to method.
40618         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40619         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40620         (gl_list_search_from, gl_list_search_from_to): New functions.
40621         (gl_list_indexof): Use the indexof_from_to method.
40622         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40623         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40624         gl_array_indexof. Add start_index, end_index arguments.
40625         (gl_array_search_from_to): Renamed from gl_array_search. Add
40626         start_index, end_index arguments.
40627         (gl_array_remove, gl_array_list_implementation): Update.
40628         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40629         gl_carray_indexof. Add start_index, end_index arguments.
40630         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40631         start_index, end_index arguments.
40632         (gl_carray_remove, gl_carray_list_implementation): Update.
40633         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40634         gl_linked_search. Add start_index, end_index arguments.
40635         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40636         start_index, end_index arguments.
40637         (gl_linked_remove): Update.
40638         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40639         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40640         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40641         field to 'size_t'.
40642         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40643         gl_tree_search. Add start_index, end_index arguments.
40644         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40645         start_index, end_index arguments.
40646         (gl_tree_remove): Update.
40647         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40648         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40649         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40650         function.
40651         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40652         gl_tree_search. Add start_index, end_index arguments.
40653         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40654         start_index, end_index arguments.
40655         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40656         Update.
40657         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40658
40659 2006-10-05  Bruno Haible  <bruno@clisp.org>
40660
40661         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40662
40663         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40664         fwriteerror_temp): New declarations.
40665         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40666         (descriptors): New variable.
40667         (cleanup): First, close the descriptors.
40668         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40669         fclose_temp, fwriteerror_temp): New functions.
40670
40671 2006-10-04  Jim Meyering  <jim@meyering.net>
40672
40673         * lib/fts.c (fts_open): Tiny comment change.
40674
40675 2006-10-04  Bruno Haible  <bruno@clisp.org>
40676
40677         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40678         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40679         gl_LOCK_BODY.
40680         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40681         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40682         gl_LOCK_EARLY_BODY.
40683         (gl_LOCK): Require gl_LOCK_BODY.
40684
40685 2006-10-04  Bruno Haible  <bruno@clisp.org>
40686
40687         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40688         (gl_oset_search_atleast): New declaration.
40689         (struct gl_oset_implementation): Add field 'search_atleast'.
40690         (gl_oset_search_atleast): New inline function.
40691         * lib/gl_oset.c (gl_oset_search_atleast): New function.
40692         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40693         (gl_array_oset_implementation): Update.
40694         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40695         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40696         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40697
40698 2006-10-04  Bruno Haible  <bruno@clisp.org>
40699
40700         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40701
40702 2006-10-03  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40705         from gl_avltreehash_list_implementation.
40706
40707 2006-10-03  Bruno Haible  <bruno@clisp.org>
40708
40709         * lib/gl_oset.c (gl_oset_add): Fix return type.
40710
40711 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
40712
40713         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40714
40715 2006-10-02  Eric Blake  <ebb9@byu.net>
40716
40717         * modules/strnlen (Depends-on): Add extensions.
40718
40719 2006-10-02  Eric Blake  <ebb9@byu.net>
40720
40721         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40722         definition in 2.60+.
40723
40724 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
40725
40726         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40727         checks.
40728
40729 2006-10-02  Bruno Haible  <bruno@clisp.org>
40730
40731         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40732         to the AUTOMAKE_OPTIONS.
40733         Reported by Jim Meyering.
40734
40735 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40736
40737         Work around bug in Solaris 10 /proc file system:
40738         /proc/self/fd/NNN/.. isn't the parent directory of
40739         the directory whose file descriptor is NNN.  This needs to
40740         be worked around at run time, not compile time, since a
40741         program might be built on Solaris 8, where things work, and
40742         run on Solaris 10.
40743         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
40744         to use the following interface instead:
40745         (OPENAT_BUFFER_SIZE): New macro.
40746         (openat_proc_name): New function.
40747         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40748         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40749         Likewise.
40750         * lib/openat-proc.c: New file.
40751         * modules/openat (Files): Add lib/openat-proc.c.
40752         (Depends-on): Add same-inode, stdbool.
40753         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40754
40755 2006-09-29  Bruno Haible  <bruno@clisp.org>
40756
40757         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
40758         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
40759         argument. Set stdout_closed before testing for ferror, not after.
40760         (fwriteerror, fwriteerror_no_ebadf): New functions.
40761
40762 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40763
40764         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
40765
40766 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
40767
40768         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
40769         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
40770
40771 2006-09-28  Jim Meyering  <jim@meyering.net>
40772
40773         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
40774         Include <unistd.h>.
40775
40776 2006-09-28  Bruno Haible  <bruno@clisp.org>
40777
40778         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
40779         * modules/linkedhash-list (Depends-on): Likewise.
40780         * modules/rbtreehash-list (Depends-on): Likewise.
40781
40782 2006-09-28  Bruno Haible  <bruno@clisp.org>
40783
40784         * lib/strndup.h: Simplify the redefinition of strndup.
40785         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
40786         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
40787
40788 2006-09-28  Bruno Haible  <bruno@clisp.org>
40789
40790         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
40791         * lib/gl_linkedhash_list.c: Likewise.
40792         * lib/gl_rbtreehash_list.c: Likewise.
40793
40794 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40795
40796         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
40797         getaddrinfo.
40798
40799         * lib/__fpending.h: Don't include <stdio_ext.h> unless
40800         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
40801         it causes <stdio_ext.h> to cause a compile-time error.
40802         Problem reported by Nelson H. F. Beebe.
40803         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
40804         of HAVE_DECL___PENDING.
40805
40806         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
40807         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
40808         declaration.
40809
40810 2006-09-27  Jim Meyering  <jim@meyering.net>
40811
40812         This file could end up with a definition for a function
40813         named __strndup, rather than rpl_strndup on a system with
40814         incomplete weak_alias support.
40815         * lib/strndup.c (strndup): Rename from __strndup.
40816         Remove #defines that used to map __strndup to strndup.
40817         Don't use K&R prototypes.
40818         Remove LIBC-related code, since this file is not sync'd with glibc.
40819         * lib/strndup.h: Revamp, accordingly.
40820         * m4/strndup.m4: Modernize.
40821
40822 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40823
40824         * modules/savewd (Depends-on): Add 'raise'.
40825         * lib/savewd.c: Include <signal.h>, for 'raise'.
40826
40827 2006-09-26  Jim Meyering  <jim@meyering.net>
40828
40829         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
40830         when we detect Darwin 8.7.0's acl_get_file bug.
40831         Rearrange to perform the new (below) run-test while $LIBS
40832         contains any acl-related library.  Set USE_ACL at the end.
40833         (gl_ACL_GET_FILE): New function.
40834
40835 2006-09-26  Eric Blake  <ebb9@byu.net>
40836
40837         * lib/verror.c: Include <config.h> unconditionally.
40838
40839 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
40840
40841         * modules/clock-time (Maintainer): Add self.
40842         * modules/getlogin_r (Depends-on): Add extensions.
40843
40844 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40845
40846         * modules/clock-time: New module.
40847         * modules/nanosleep (Depends-on): Add clock-time.
40848         * modules/gethrxtime (Depends-on): Likewise.
40849         * modules/gettime (Depends-on): Likewise.
40850         * modules/settime (Depends-on): Likewise.
40851
40852         * modules/fts-lgpl: Depend on openat.
40853         * modules/mkancesdirs: Depend on savewd.
40854         * modules/mkdir-p: Likewise.
40855
40856 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40857
40858         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
40859
40860         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
40861         `gl_have_arbitrary_file_name_length_limit' to
40862         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
40863         actually works between configure runs.
40864
40865 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40866             Bruno Haible  <bruno@clisp.org>
40867
40868         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
40869
40870 2006-09-25  Jim Meyering  <jim@meyering.net>
40871
40872         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
40873         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
40874
40875 2006-09-25  Eric Blake  <ebb9@byu.net>
40876
40877         * gnulib-tool (func_import, func_create_testdir): Fix typos in
40878         exec's in 2006-09-18 patch when shuffling fds.
40879
40880 2006-09-25  Bruno Haible  <bruno@clisp.org>
40881
40882         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
40883         Reported by Jim Meyering.
40884
40885 2006-09-24  Jim Meyering  <jim@meyering.net>
40886
40887         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
40888         compare a pointer against a literal "0".  That caused failures with
40889         at least HP-UX's hpcc.
40890
40891 2006-09-22  Simon Josefsson  <jas@extundo.com>
40892
40893         * modules/gc-sha1:
40894         * modules/gc-md4:
40895         * modules/gc-hmac-sha1:
40896         * modules/gc-hmac-md5:
40897         * modules/gc-des:
40898         * modules/gc-arcfour: Distribute more files.
40899
40900 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40901
40902         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
40903         (gl_linked_iterator_from_to): Initialize struct completely.
40904         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
40905         (gl_tree_iterator_from_to): Likewise
40906         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
40907         * lib/gl_array_list.c [lint] (gl_array_iterator)
40908         (gl_array_iterator_from_to): Likewise.
40909         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
40910         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
40911         (gl_carray_iterator_from_to): Likewise.
40912
40913         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
40914         * lib/md4.c (md4_process_block): Remove unused variable.
40915         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
40916         parentheses for clarity.
40917
40918 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40919
40920         * modules/bison-i18n (Depends-on): Add gettext.
40921
40922 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40923
40924         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
40925         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40926         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
40927         also add missing comma that caused broken test.
40928         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
40929         stdlib.h, for `abort'.
40930         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
40931         variables.
40932         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
40933         include unistd.h if present, for `rmdir'.
40934         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
40935         variables.
40936         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
40937         in the process include standard headers for prototypes.
40938         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
40939         gets declared on GNU/Linux.
40940         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
40941         unistd.h, for `rmdir'.
40942         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
40943
40944         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
40945         always true.
40946         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
40947
40948         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
40949
40950 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40951
40952         * gnulib-tool (func_version): Create output all at once.  This
40953         may help avoid triggering unnecessary SIGPIPEs, and at any
40954         rate it doesn't hurt.
40955
40956 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40957             Bruno Haible  <bruno@clisp.org>
40958
40959         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
40960         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40961         * m4/signed.m4 (bh_C_SIGNED): Likewise.
40962
40963         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
40964         (gl_FUNC_VASPRINTF): Invoke it.
40965
40966 2006-09-22  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
40969         getloadavg.c as first argument.
40970
40971 2006-09-22  Bruno Haible  <bruno@clisp.org>
40972
40973         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
40974         at the beginning of the gl_INIT macro.
40975         * modules/getloadavg (configure.ac): Pass $gl_source_base to
40976         gl_GETLOADAVG.
40977
40978 2006-09-22  Bruno Haible  <bruno@clisp.org>
40979
40980         * gnulib-tool (func_create_megatestdir): Don't include the config-h
40981         module.
40982         Suggested by Ralf Wildenhues.
40983
40984 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40985
40986         Import this patch from libc:
40987
40988         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
40989
40990         * lib/regex_internal.c (re_string_reconstruct): Handle
40991         offset < pstr->valid_raw_len && pstr->offsets_needed case.
40992         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
40993         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
40994         re_string_context_at.
40995
40996         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
40997         now requires it.
40998         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
40999         gl_REGEX now does it for us.
41000         (gl_REGEX): Add test taken from
41001         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41002
41003         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41004         Check that large offsets work.  Modernize Autoconf usages.
41005         Prefer "yes" to mean a good thing rather than a bad.
41006         Don't put "#define mkstemp" in config.h, as this might interfere
41007         with standard system headers that "#define mkstemp mkstemp64".
41008
41009         * modules/mkstemp (Depends-on): Add extensions, so that
41010         mkstemp is visible on some platforms.
41011         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41012         (Include): Change to "mkstemp.h" from <stdlib.h>.
41013         (Files): Add mkstemp.h.
41014
41015         * lib/mkstemp.h: New file, since some standard headers
41016         #define mkstemp.
41017         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41018         Include "mkstemp.h".
41019         Make the _LIBC code resemble glibc original more,
41020         e.g., use K&R style.
41021         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41022         (mkstemp): Remove, since mkstemp.h does this for us.
41023         * lib/stdlib--.h: Include mkstemp.h.
41024
41025         Import this patch from libc:
41026
41027         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41028
41029         * lib/tempname.c (__gen_tempname): Change attempts_min
41030         into a macro.  Use preprocessor to decide how to initialize
41031         attempts [Coverity CID 67].
41032
41033 2006-09-20  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/mkdtemp.c: Import from libc.
41036         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41037                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41038                 attempts_min into a macro.  Use preprocessor to decide how to
41039                 initialize attempts [Coverity CID 67].
41040         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41041                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41042                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41043
41044 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41045
41046         * gnulib-tool (func_exit): New function, to allow to pass the
41047         exit status portably through the trap.  Use everywhere.
41048         (--help, --version): Signal a write error.
41049         (trap): catch SIGPIPE, for write errors.
41050         Exit at the end of the trap, with the correct exit status.
41051
41052 2006-09-19  Karl Berry  <karl@gnu.org>
41053
41054         * doc/gnulib.texi: note about the license texinfo files.
41055
41056 2006-09-19  Eric Blake  <ebb9@byu.net>
41057
41058         * gnulib-tool: Avoid space-tab.
41059
41060 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41061
41062         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41063         that prevented coreutils 6.1 from building.  Problem reported
41064         by Petter Reinholdtsen.
41065
41066 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41067
41068         * gnulib-tool (avoidlist): Fix typo that broke options like
41069         --avoid=lock that are used by coreutils bootstrap.
41070
41071 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41072
41073         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41074         more systematically.
41075
41076 2006-09-18  Jim Meyering  <jim@meyering.net>
41077
41078         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41079
41080 2006-09-18  Bruno Haible  <bruno@clisp.org>
41081
41082         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41083
41084 2006-09-18  Bruno Haible  <bruno@clisp.org>
41085
41086         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41087         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41088         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41089         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41090         * m4/gettext.m4: Require autoconf >= 2.52.
41091         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41092         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41093         of gl_cv_header_inttypes_h.
41094
41095 2006-09-18  Bruno Haible  <bruno@clisp.org>
41096
41097         * lib/javaversion.c: Include configmake.h.
41098
41099 2006-09-18  Bruno Haible  <bruno@clisp.org>
41100
41101         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41102         avoid that the while loops be executed in a subshell.
41103
41104 2006-09-18  Bruno Haible  <bruno@clisp.org>
41105
41106         * MODULES.html.sh (func_module): Break long lines.
41107         Suggested by Bruce Korb <bkorb@gnu.org>.
41108
41109 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41110
41111         Speed up by a factor of 1.12.
41112         * gnulib-tool (nl): New variable.
41113         (func_import): Rewrite include directive extraction to only read each
41114         directive once.
41115
41116 2006-09-17  Bruno Haible  <bruno@clisp.org>
41117
41118         * modules/javaversion (Makefile.am): Remove DEFS setting.
41119         (Depends-on): Add configmake, for PKGDATADIR definition.
41120
41121 2006-09-17  Bruno Haible  <bruno@clisp.org>
41122
41123         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41124
41125 2006-09-17  Bruno Haible  <bruno@clisp.org>
41126
41127         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41128         (func_modules_transitive_closure, func_modules_add_dummy,
41129         func_modules_to_filelist, func_import, func_create_testdir,
41130         func_create_megatestdir, ...): Use it wherever possible.
41131         Suggested by Ralf Wildenhues.
41132
41133 2006-09-16  Karl Berry  <karl@gnu.org>
41134
41135         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41136         to avoid sectioning errors.
41137         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41138         [ifinfo]: blank line after @center-ed titles.
41139         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41140         Spell FSF address consistently with others.
41141         (These changes approved by rms.)
41142
41143 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41144
41145         Speed up by a factor of 1.61.
41146         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41147         already checked module names again.
41148
41149 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41150
41151         Speed up by a factor of 1.13.
41152         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41153         for new_files, and the input to func_add_or_update.
41154
41155 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41156
41157         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41158         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41159
41160 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41161
41162         * modules/mkancesdirs (Depends-on): Add fcntl.
41163         * modules/savewd: New file.
41164         * MODULES.html.sh (File system functions): Add savewd.
41165
41166         * modules/configmake (Makefile.am): Add support for the
41167         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41168
41169 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41170
41171         * m4/savewd.m4: New file.
41172
41173 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41174
41175         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41176         (dirchownmod): New arg FD.  All callers changed.
41177         Use FD rather than opening the directory ourself, as opening is
41178         now the caller's responsibility.
41179         * lib/dirchownmod.h: Likewise.
41180         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41181         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41182         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41183         (test_dir): Remove.
41184         (mkancesdirs): Return length of prefix of FILE that has already
41185         been made, or -2 if there is a child doing the work.  Redo
41186         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41187         ".", and treat ".." specially since it might stray back into
41188         already-created areas.  Use a subprocess if necessary.  New arg
41189         WD; all users changed.  MAKE_DIR function should now return 1
41190         if it creates a directory that is not readable.  Return -2 if
41191         a child process is spun off.
41192         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41193         Adjust signature to match code.
41194         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41195         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41196         all users changed.
41197         * lib/savewd.c, lib/savewd.h: New files.
41198
41199 2006-09-15  Jim Meyering  <jim@meyering.net>
41200
41201         * modules/rename-dest-slash: New module.
41202         * MODULES.html.sh (posix_compat): Add it here.
41203
41204         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41205
41206 2006-09-15  Jim Meyering  <jim@meyering.net>
41207
41208         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41209         file.
41210
41211         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41212
41213 2006-09-15  Jim Meyering  <jim@meyering.net>
41214
41215         * lib/rename-dest-slash.c (has_trailing_slash): Use
41216         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41217         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41218         test before testing whether SRC is a directory.
41219         Suggestions from Bruno Haible.
41220
41221         Avoid a warning about an unused variable.
41222         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41223         into the #ifdef block where it's used.
41224
41225         * lib/rename-dest-slash.c: New file.
41226
41227 2006-09-14  Bruno Haible  <bruno@clisp.org>
41228
41229         * lib/allocsa.c: Include <config.h> unconditionally.
41230         * lib/asnprintf.c: Likewise.
41231         * lib/asprintf.c: Likewise.
41232         * lib/c-strcasecmp.c: Likewise.
41233         * lib/c-strcasestr.c: Likewise.
41234         * lib/c-strncasecmp.c: Likewise.
41235         * lib/c-strstr.c: Likewise.
41236         * lib/classpath.c: Likewise.
41237         * lib/clean-temp.c: Likewise.
41238         * lib/concatpath.c: Likewise.
41239         * lib/copy-file.c: Likewise.
41240         * lib/csharpcomp.c: Likewise.
41241         * lib/csharpexec.c: Likewise.
41242         * lib/execute.c: Likewise.
41243         * lib/fatal-signal.c: Likewise.
41244         * lib/findprog.c: Likewise.
41245         * lib/fwriteerror.c: Likewise.
41246         * lib/gl_array_list.c: Likewise.
41247         * lib/gl_array_oset.c: Likewise.
41248         * lib/gl_avltree_list.c: Likewise.
41249         * lib/gl_avltree_oset.c: Likewise.
41250         * lib/gl_avltreehash_list.c: Likewise.
41251         * lib/gl_carray_list.c: Likewise.
41252         * lib/gl_linked_list.c: Likewise.
41253         * lib/gl_linkedhash_list.c: Likewise.
41254         * lib/gl_list.c: Likewise.
41255         * lib/gl_oset.c: Likewise.
41256         * lib/gl_rbtree_list.c: Likewise.
41257         * lib/gl_rbtree_oset.c: Likewise.
41258         * lib/gl_rbtreehash_list.c: Likewise.
41259         * lib/imaxabs.c: Likewise.
41260         * lib/imaxdiv.c: Likewise.
41261         * lib/javacomp.c: Likewise.
41262         * lib/javaexec.c: Likewise.
41263         * lib/javaversion.c: Likewise.
41264         * lib/linebreak.c: Likewise.
41265         * lib/localcharset.c: Likewise.
41266         * lib/lock.c: Likewise.
41267         * lib/mbchar.c: Likewise.
41268         * lib/mbswidth.c: Likewise.
41269         * lib/mkdtemp.c: Likewise.
41270         * lib/pipe.c: Likewise.
41271         * lib/printf-args.c: Likewise.
41272         * lib/printf-parse.c: Likewise.
41273         * lib/progname.c: Likewise.
41274         * lib/progreloc.c: Likewise.
41275         * lib/readlink.c: Likewise.
41276         * lib/sh-quote.c: Likewise.
41277         * lib/stpcpy.c: Likewise.
41278         * lib/stpncpy.c: Likewise.
41279         * lib/strcasecmp.c: Likewise.
41280         * lib/strcasestr.c: Likewise.
41281         * lib/strcspn.c: Likewise.
41282         * lib/striconv.c: Likewise.
41283         * lib/strncasecmp.c: Likewise.
41284         * lib/strnlen1.c: Likewise.
41285         * lib/strstr.c: Likewise.
41286         * lib/strtok_r.c: Likewise.
41287         * lib/tls.c: Likewise.
41288         * lib/tmpdir.c: Likewise.
41289         * lib/unicodeio.c: Likewise.
41290         * lib/unsetenv.c: Likewise.
41291         * lib/vasnprintf.c: Likewise.
41292         * lib/vasprintf.c: Likewise.
41293         * lib/wait-process.c: Likewise.
41294         * lib/xallocsa.c: Likewise.
41295         * lib/xsetenv.c: Likewise.
41296         * lib/xstriconv.c: Likewise.
41297
41298 2006-09-13  Simon Josefsson  <jas@extundo.com>
41299
41300         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41301         that internally, suggested by Ralf Wildenhues
41302         <Ralf.Wildenhues@gmx.de>.
41303
41304 2006-09-13  Simon Josefsson  <jas@extundo.com>
41305
41306         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41307         @LIBOBJS@.
41308         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41309
41310 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41311
41312         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41313         longer worry about uses that don't define HAVE_CONFIG_H.
41314         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41315         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41316         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41317         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41318         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41319         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41320         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41321         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41322         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41323         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41324         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41325         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41326         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41327         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41328         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41329         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41330         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41331         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41332         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41333         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41334         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41335         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41336         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41337         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41338         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41339         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41340         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41341         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41342         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41343         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41344         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41345         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41346         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41347         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41348         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41349         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41350         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41351         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41352         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41353         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41354         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41355         Likewise.
41356
41357 2006-09-13  Eric Blake  <ebb9@byu.net>
41358
41359         * lib/getopt.c: Fix typo in last commit.
41360
41361 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41362
41363         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41364         dgettext.
41365
41366 2006-09-12  Jim Meyering  <jim@meyering.net>
41367
41368         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41369         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41370         Reported by Nelson H. F. Beebe.
41371
41372 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41373
41374         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41375         program_invocation_name and program_invocation_short_name are
41376         initialized.
41377         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41378         and program_invocation_short_name to argp.h, so they are visible
41379         to user programs.
41380         * lib/argp.h: Likewise
41381
41382 2006-09-10  Bruno Haible  <bruno@clisp.org>
41383
41384         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41385         m4/inttypes_h.m4, m4/uintmax_t.m4.
41386
41387 2006-09-10  Bruno Haible  <bruno@clisp.org>
41388
41389         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41390         gl_AC_TYPE_UINTMAX_T.
41391
41392 2006-09-10  Bruno Haible  <bruno@clisp.org>
41393
41394         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41395
41396 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41397
41398         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41399         convention.  Text proposed by Bruno Haible.
41400         (struct argp_option): Document the use of N_() wrappers.
41401
41402         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41403         '\v', and translate the two parts separately, instead of feeding
41404         the whole string to gettext.  This allows to exclude
41405         '\v' from the strings visible to the translator by writing doc
41406         strings as N_("..") "\v" N_("..").
41407
41408 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41409
41410         * config/srclist.txt: Undo latest change; the bug was fixed.
41411
41412 2006-09-09  Bruno Haible  <bruno@clisp.org>
41413
41414         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41415         assignments if building a library without libtool.
41416         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41417         in func_emit_lib_Makefile_am.
41418         (func_import): When building a static library libfoo.a, arrange to
41419         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41420         (func_create_testdir): Likewise.
41421         * modules/gc (configure.ac, Makefile.am): If building statically,
41422         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41423         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41424         * modules/striconv (configure.ac, Makefile.am): Likewise.
41425         Based on a suggestion by Ralf Wildenhues.
41426
41427 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41428
41429         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41430         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41431         Also:
41432
41433         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41434         Add year_2050_test to catch glibc bug 2821
41435         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41436
41437         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41438         Prefer #ifdef to #if.
41439
41440         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41441         Return from 'main' instead of calling 'exit'.
41442
41443 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41444
41445         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41446         returned the maximum time_t value rather than (time_t) -1.
41447         Problem originally reported by William Bardwell
41448         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41449
41450         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41451         Moved to here ...
41452         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41453         ... from here.
41454
41455 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41456
41457         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41458         2821 is fixed.
41459
41460 2006-09-08  Jim Meyering  <jim@meyering.net>
41461
41462         Don't make generated files read-only.  That would bother too many
41463         people.  However, do retain the ability to work when targets are
41464         read-only: remove the destination and temporary files before writing
41465         them (when generated via sed or echo), or by using the -f option for
41466         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41467         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41468         * modules/byteswap, modules/configmake, modules/fcntl:
41469         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41470         * modules/localcharset, modules/netinet_in, modules/poll:
41471         * modules/stdbool, modules/stdint, modules/sys_select:
41472         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41473
41474 2006-09-08  Jim Meyering  <jim@meyering.net>
41475
41476         Avoid new build failure on FreeBSD 6.0.
41477         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41478         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41479         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41480
41481 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41482
41483         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41484
41485 2006-09-07  Jim Meyering  <jim@meyering.net>
41486
41487         Fix global typo in last change: use chmod u-w, not chmod u-x.
41488         Spotted by Paul Eggert and Bruce Korb.
41489         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41490         * modules/byteswap, modules/configmake, modules/fcntl:
41491         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41492         * modules/localcharset, modules/netinet_in, modules/poll:
41493         * modules/stdbool, modules/stdint, modules/sys_select:
41494         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41495
41496 2006-09-06  Jim Meyering  <jim@meyering.net>
41497
41498         Make generated files be read-only.
41499         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41500         Ensure that each generated file is now read-only.
41501         * modules/argz: Likewise.
41502         * modules/arpa_inet: Likewise.
41503         * modules/byteswap: Likewise.
41504         * modules/configmake: Likewise.
41505         * modules/fcntl: Likewise.
41506         * modules/fnmatch: Likewise.
41507         * modules/getopt: Likewise.
41508         * modules/glob: Likewise.
41509         * modules/inttypes: Likewise.
41510         * modules/netinet_in: Likewise.
41511         * modules/poll: Likewise.
41512         * modules/stdbool: Likewise.
41513         * modules/stdint: Likewise.
41514         * modules/sys_select: Likewise.
41515         * modules/sys_socket: Likewise.
41516         * modules/sys_stat: Likewise.
41517         * modules/sysexits: Likewise.
41518         * modules/localcharset: Same as above, but continue using temporary
41519         file named "t-$@" (why different?) rather than the "$@-t" used
41520         everywhere else.
41521
41522         * modules/sysexits (Makefile.am): Replace literal occurrences
41523         of "sysexit.h" more readable, and more consistent, "$@".
41524
41525 2006-09-06  Bruno Haible  <bruno@clisp.org>
41526
41527         * modules/striconv: New file.
41528         * modules/xstriconv: New file.
41529         * MODULES.html.sh (Internationalization functions): Add striconv,
41530         xstriconv.
41531
41532 2006-09-06  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41535         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41536         not using libtool correctly.
41537
41538 2006-09-06  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/striconv.h: New file.
41541         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41542         iconvstring.c.
41543         * lib/xstriconv.h: New file.
41544         * lib/xstriconv.c: New file.
41545
41546 2006-09-06  Bruno Haible  <bruno@clisp.org>
41547
41548         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41549         lib_..._LDFLAGS.
41550
41551 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41552
41553         * lib/argz_.h: Sync from Libtool.
41554
41555         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41556                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41557
41558         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41559
41560 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41561
41562         * modules/trim: New file.
41563
41564 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41565
41566         * lib/trim.h: New file.
41567         * lib/trim.c: New file.
41568
41569 2006-09-05  Bruno Haible  <bruno@clisp.org>
41570
41571         * MODULES.html.sh (String handling): Add trim.
41572
41573 2006-09-04  Karl Berry  <karl@gnu.org>
41574
41575         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41576         until next release.
41577
41578 2006-09-03  Bruno Haible  <bruno@clisp.org>
41579
41580         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41581         correctly.
41582
41583 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41584
41585         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41586         not gl_GETLOADAVG.  Omit unneeded semicolons.
41587         Problems reported by Ralf Wildenhues in
41588         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41589         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41590         at the end, which is the usual gnulib style.
41591
41592         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41593         of doing all the work ourselves.
41594         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41595         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41596
41597 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41598
41599         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41600         Problem reported by Ralf Wildenhues in
41601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41602
41603         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41604         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41605
41606 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41607
41608         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41609         yesterday's patch by changing test -n to test -z.
41610
41611 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41612
41613         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41614         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41615         the former is now obsolescent.
41616
41617         * modules/chdir-long (Depends-on): Add fcntl.
41618
41619 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41620
41621         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41622         obsolescent, and programs should use gnulib instead.
41623         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41624         but with prefixes changed.
41625
41626 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41627
41628         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41629         or stdbool.h, because they might not exist while configuring.
41630
41631         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41632         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41633         does that for us.
41634         (O_DIRECTORY): Remove.
41635
41636 2006-08-31  Eric Blake  <ebb9@byu.net>
41637
41638         * gnulib-tool: Don't let emacs change spaces to TAB.
41639
41640 2006-08-31  Bruno Haible  <bruno@clisp.org>
41641
41642         * gnulib-tool: When calling func_import more than once, do it in a
41643         subshell.
41644         Reported by Eric Blake <ebb9@byu.net>.
41645
41646 2006-08-31  Bruno Haible  <bruno@clisp.org>
41647
41648         * gnulib-tool (nl): Remove variable.
41649         (sed_transform_lib_file): Use more robust test for config-h module.
41650         (func_import): Fix typo in 2006-08-25 patch.
41651
41652 2006-08-31  Bruno Haible  <bruno@clisp.org>
41653
41654         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41655         specified, augment Makefile.am variables instead of assigning them.
41656
41657 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41658
41659         Work around a bug in both the Linux and SunOS 64-bit kernels:
41660         nanosleep mishandles sleeps for longer than 2**31 seconds.
41661         Problem reported by Frank v Waveren in
41662         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41664         Check for nanosleep bug.
41665         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41666
41667 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41668
41669         Work around a bug in both the Linux and SunOS 64-bit kernels:
41670         nanosleep mishandles sleeps for longer than 2**31 seconds.
41671         Problem reported by Frank v Waveren in
41672         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41673         * lib/nanosleep.c (BILLION): New constant.
41674         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41675         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41676         implementation.
41677
41678 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41679
41680         * modules/nanosleep (Depends-on): Add gettime.
41681
41682 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41683         and Simon Josefsson  <jas@extundo.com>
41684         and Oskar Liljeblad  <oskar@osk.mine.nu>
41685
41686         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41687         * gnulib-tool (func_import): New license type 'unmodifiable license
41688         text'.
41689         * modules/fdl: Use it.  Longer description.
41690         * module/gpl, module/lgpl: New files.
41691
41692 2006-08-30  Jim Meyering  <jim@meyering.net>
41693
41694         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41695         shadowing the parameter.
41696
41697 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41698
41699         Sync from Libtool:
41700
41701         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41702
41703         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41704         sharing with gnulib.  Report by Eric Blake.
41705
41706 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41707
41708         * modules/isapipe: New file.
41709         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41710
41711 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41712
41713         * modules/configmake (Makefile.am): Add a comment, and omit
41714         the CONFIGMAKE_ prefix from generated macro names.  Suggested
41715         by Bruno Haible.
41716
41717 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41718
41719         * m4/isapipe.m4: New file.
41720
41721 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41722
41723         * lib/isapipe.c, lib/isapipe.h: New files.
41724
41725 2006-08-29  Jim Meyering  <jim@meyering.net>
41726
41727         * modules/configmake (Makefile.am): Make configmake.h depend on
41728         Makefile.  Otherwise, a stale configmake.h could hang around.
41729
41730 2006-08-29  Eric Blake  <ebb9@byu.net>
41731
41732         * lib/error.c (error_at_line, print_errno_message): Match libc, after
41733         resolution of upstream bug 3044.
41734
41735 2006-08-29  Bruno Haible  <bruno@clisp.org>
41736
41737         * modules/localcharset (Depends-on): Add configmake.
41738         (Makefile.am): Remove setting of LIBDIR through DEFS.
41739
41740 2006-08-29  Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41743         defined.
41744
41745 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41746
41747         * modules/fcntl: New file.
41748         * modules/chdir-safer (Depends-on): Add fcntl.
41749         * modules/fts: Likewise.
41750         * modules/mkdir-p: Likewise.
41751
41752         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41753         This undoes the most recent change, since we're now addressing the
41754         problem in a different way.
41755
41756         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
41757         into output, since the output might be called Makefile.am even
41758         if $makefile_name is something different.
41759         (func_import): Use $makefile_am rather than
41760         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
41761         empty.
41762
41763         * modules/inttypes (Files): Add m4/inttypes-h.m4.
41764
41765 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41766
41767         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
41768         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
41769         recent change to stdint.m4, since we're now addressing the problem in a
41770         different way.
41771
41772 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41773
41774         * m4/fcntl_h.m4: New file.
41775
41776 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         * lib/fcntl_.h: New file.
41779         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
41780         the fcntl module.
41781         * lib/dirchownmod.c: Likewise.
41782         * lib/fts.c: Likewise.
41783
41784         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
41785         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
41786         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
41787         just before including <inttypes.h>, to avoid circular inclusion.
41788
41789 2006-08-28  Jim Meyering  <jim@meyering.net>
41790
41791         * doc/visibility.texi: Actually read and correct the grammar of the
41792         sentence affected by yesterday's change.
41793
41794 2006-08-28  Eric Blake  <ebb9@byu.net>
41795
41796         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
41797         needs wrapper.
41798
41799 2006-08-28  Eric Blake  <ebb9@byu.net>
41800
41801         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
41802
41803 2006-08-28  Eric Blake  <ebb9@byu.net>
41804
41805         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
41806
41807 2006-08-28  Bruno Haible  <bruno@clisp.org>
41808
41809         * modules/c-strstr: New file, from GNU gettext.
41810         * MODULES.html.sh (String handling): Add c-strstr.
41811
41812 2006-08-28  Bruno Haible  <bruno@clisp.org>
41813
41814         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
41815         macros.
41816         Reported by Eric Blake.
41817
41818 2006-08-28  Bruno Haible  <bruno@clisp.org>
41819
41820         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
41821         (VASNPRINTF): Return a string of length > INT_MAX without failing.
41822         * lib/vasprintf.c: Include errno.h, limits.h.
41823         (EOVERFLOW): New fallback definition.
41824         (vasprintf): Test here whether the string length is > INT_MAX.
41825         * lib/vsnprintf.c: Include errno.h, limits.h.
41826         (EOVERFLOW): New fallback definition.
41827         (vsnprintf): Fix bug when generated string was too long for the buffer.
41828         Test here whether the string length is > INT_MAX.
41829
41830 2006-08-28  Bruno Haible  <bruno@clisp.org>
41831
41832         * lib/inttypes_.h (SCNX*): Remove definitions.
41833         Reported by Eric Blake.
41834
41835 2006-08-28  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/c-strstr.h: New file, from GNU gettext.
41838         * lib/c-strstr.c: New file, from GNU gettext.
41839
41840 2006-08-28  Bruno Haible  <bruno@clisp.org>
41841
41842         * gnulib-tool: Reorder some statements.
41843
41844 2006-08-28  Bruno Haible  <bruno@clisp.org>
41845
41846         * gnulib-tool: New option --makefile-name.
41847         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
41848         $makefile_name.
41849         (func_import): Write $makefile_name to the cache file, and read it from
41850         there unless explicitly specified. Use $makefile_name as file name
41851         instead of Makefile.am. Adjust the recommendations accordingly.
41852
41853 2006-08-28  Bruno Haible  <bruno@clisp.org>
41854
41855         * gnulib-tool (func_verify_module): Check against misapplying patch.
41856
41857 2006-08-28  Bruno Haible  <bruno@clisp.org>
41858
41859         * gnulib-tool (func_relativize, func_relconcat): New functions.
41860         Give an error if --local-dir is given with --update.
41861         Remove trailing slashes from $local_gnulib_dir.
41862         (func_import): Store the relativized $local_gnulib_dir in
41863         gnulib-cache.m4, and read it from there if not specified explicitly.
41864
41865 2006-08-28  Bruno Haible  <bruno@clisp.org>
41866
41867         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
41868         is the current directory. Respect also $local_gnulib_dir.
41869
41870 2006-08-28  Bruno Haible  <bruno@clisp.org>
41871             Simon Josefsson  <jas@extundo.com>
41872
41873         BeOS portability.
41874         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
41875
41876 2006-08-27  Jim Meyering  <jim@meyering.net>
41877
41878         * doc/visibility.texi: Remove duplicate word: "pointer".
41879
41880 2006-08-26  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
41883         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
41884         (Makefile.am): Create inttypes.h from inttypes_.h.
41885         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
41886
41887         * modules/imaxabs: New file.
41888
41889         * modules/imaxdiv: New file.
41890
41891 2006-08-26  Bruno Haible  <bruno@clisp.org>
41892
41893         * m4/inttypes.m4: New file.
41894         * m4/_inttypes_h.m4: Remove file.
41895         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
41896         PRI_MACROS_BROKEN.
41897         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
41898
41899         * m4/imaxabs.m4: New file.
41900
41901         * m4/imaxdiv.m4: New file.
41902
41903 2006-08-26  Bruno Haible  <bruno@clisp.org>
41904
41905         * lib/inttypes_.h: New file.
41906         * lib/inttypes.h: Remove file.
41907         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
41908
41909         * lib/imaxabs.c: New file.
41910
41911         * lib/imaxdiv.c: New file.
41912
41913 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41914
41915         New config-h module, so that "make" output needn't be cluttered
41916         by -DHAVE_CONFIG_H.
41917         * MODULES.html.sh (Support for building libraries and executables):
41918         Add config-h.
41919         * modules/config-h: New file.
41920         * gnulib-tool (nl, sed_transform_lib_file): New vars.
41921         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
41922         the config-h module is used.
41923
41924         New configmake module, so that "make" output needn't be cluttered
41925         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
41926         * MODULES.html.sh (Support for building libraries and executables):
41927         Add configmake.
41928         * modules/configmake: New file.
41929
41930 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41931
41932         * m4/config-h.m4: New file.
41933
41934 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41935
41936         * config/srclist.txt: Add elisp-comp.
41937
41938 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41939
41940         * MODULES.html.sh (Support for building libraries and executables):
41941         Add elisp-comp.
41942         * build-aux/elisp-comp: New file.
41943         * modules/elisp-comp: New file.
41944
41945 2006-08-24  Bruno Haible  <bruno@clisp.org>
41946
41947         * gnulib-tool (func_create_testdir): Use non-default values of
41948         sourcebase and m4base.
41949
41950 2006-08-24  Bruno Haible  <bruno@clisp.org>
41951
41952         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
41953         HTML structure.
41954
41955 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41956
41957         * modules/openat (Depends-on): Add lchown.
41958
41959 2006-08-23  Bruno Haible  <bruno@clisp.org>
41960
41961         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
41962         of gl_LOCK_EARLY instead of gl_LOCK.
41963
41964 2006-08-23  Bruno Haible  <bruno@clisp.org>
41965
41966         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
41967         on OSF/1 to no.
41968         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
41969
41970 2006-08-23  Bruno Haible  <bruno@clisp.org>
41971
41972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
41973         as unusable.
41974
41975         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
41976         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
41977         (gl_LOCK): New macro.
41978
41979 2006-08-22  Simon Josefsson  <jas@extundo.com>
41980
41981         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
41982         to md5 module.
41983
41984 2006-08-22  Simon Josefsson  <jas@extundo.com>
41985
41986         * MODULES.html.sh: Add "Support for maintaining and release
41987         projects".
41988
41989         * build-aux/gnupload: New file, from coreutils.
41990
41991 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41992
41993         Avoid the need for AC_LIBSOURCES in m4 macros.
41994         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
41995         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
41996         * modules/check-version (EXTRA_DIST): Add check-version.h.
41997         * modules/crc (EXTRA_DIST): Add crc.h.
41998         * modules/des (EXTRA_DIST): Add des.h.
41999         * modules/gc (EXTRA_DIST): Add gc.h.
42000         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42001         * modules/getline (EXTRA_DIST): Add getline.h.
42002         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42003         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42004         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42005         * modules/md2 (EXTRA_DIST): Add md2.h.
42006         * modules/md4 (EXTRA_DIST): Add md4.h.
42007         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42008         * modules/read-file (EXTRA_DIST): Add read-file.h.
42009         * modules/readline (EXTRA_DIST): Add readline.h.
42010         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42011         rijndael-api-fst.h.
42012
42013 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42014
42015         * m4/rijndael.m4 (gl_ARCFOUR):
42016         * m4/arctwo.m4 (gl_ARCTWO):
42017         * m4/check-version.m4 (gl_CHECK_VERSION):
42018         * m4/crc.m4 (gl_CRC):
42019         * m4/des.m4 (gl_DES):
42020         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42021         * m4/gc.m4 (gl_GC):
42022         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42023         * m4/getline.m4 (gl_FUNC_GETLINE):
42024         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42025         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42026         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42027         * m4/md2.m4 (gl_MD2):
42028         * m4/md4.m4 (gl_MD4):
42029         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42030         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42031         * m4/readline.m4 (gl_FUNC_READLINE):
42032         * m4/rijndael.m4 (gl_RIJNDAEL):
42033         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42034         to get the necessary .h files and whatnot.
42035
42036 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42037
42038         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42039         gnulib rather than the other way around.
42040         * config/srclistvars.sh (COREUTILS): Remove.
42041
42042 2006-08-22  Jim Meyering  <jim@meyering.net>
42043
42044         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42045
42046         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42047
42048 2006-08-22  Eric Blake  <ebb9@byu.net>
42049
42050         * modules/regexprops-generic: New file.
42051         * MODULES.html.sh (Support for building documentation): List it.
42052
42053 2006-08-22  Eric Blake  <ebb9@byu.net>
42054
42055         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42056         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42057         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42058         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42059
42060 2006-08-22  Bruno Haible  <bruno@clisp.org>
42061
42062         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42063         and lib_LTLIBRARIES like the other lib_* variables.
42064
42065 2006-08-22  Bruno Haible  <bruno@clisp.org>
42066
42067         * build-aux/x-to-1.in: New file, from GNU gettext.
42068
42069 2006-08-22  Bruno Haible  <bruno@clisp.org>
42070
42071         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42072         <utmpx.h> exists.
42073
42074 2006-08-22  Bruno Haible  <bruno@clisp.org>
42075
42076         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42077         <utmpx.h> exists.
42078
42079 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42080
42081         BeOS portability.
42082         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42083         exist.
42084         Problem reported by Bruno Haible.
42085
42086 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42087
42088         Avoid the need for AC_LIBSOURCES in m4 macros.
42089         * modules/acl (EXTRA_DIST): Add acl.h.
42090         * modules/argmatch (Files): Add m4/argmatch.m4.
42091         (configure.ac): Add gl_ARGMATCH.
42092         (EXTRA_DIST): Renamed from lib_SOURCES, for
42093         consistency with the other modules.  Remove argmatch.c.
42094         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42095         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42096         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42097         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42098         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42099         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42100         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42101         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42102         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42103         * modules/closeout (EXTRA_DIST): Add closeout.h.
42104         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42105         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42106         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42107         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42108         dirname.h; remove basename.c and stripslash.c.
42109         * modules/exclude (EXTRA_DIST): Add exclude.h.
42110         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42111         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42112         * modules/file-type (EXTRA_DIST): Add file-type.h.
42113         * modules/filemode (EXTRA_DIST): Add filemode.h.
42114         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42115         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42116         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42117         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42118         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42119         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42120         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42121         * modules/getdate (EXTRA_DIST): Add getdate.c.
42122         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42123         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42124         * modules/getpass (EXTRA_DIST): Add getpass.h.
42125         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42126         * modules/group-member (EXTRA_DIST): Add group-member.h.
42127         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42128         * modules/hash (EXTRA_DIST): Add hash.h.
42129         * modules/human (EXTRA_DIST): Add human.h.
42130         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42131         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42132         * modules/lchown (EXTRA_DIST): Add lchown.h.
42133         * modules/long-options (EXTRA_DIST): Add long-options.h.
42134         * modules/lstat (EXTRA_DIST): Add lstat.h.
42135         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42136         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42137         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42138         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42139         * modules/memxor (EXTRA_DIST): Add memxor.h.
42140         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42141         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42142         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42143         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42144         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42145         * modules/physmem (EXTRA_DIST): Add physmem.h.
42146         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42147         * modules/posixver (EXTRA_DIST): Add posixver.h.
42148         * modules/quote (EXTRA_DIST): Add quote.h.
42149         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42150         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42151         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42152         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42153         regex_internal.h regexec.c.
42154         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42155         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42156         * modules/same (EXTRA_DIST): Add same.h.
42157         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42158         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42159         * modules/savedir (EXTRA_DIST): Add savedir.h.
42160         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42161         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42162         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42163         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42164         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42165         * modules/strdup (EXTRA_DIST): Add strdup.h.
42166         * modules/strftime (EXTRA_DIST): Add strftime.h.
42167         * modules/strndup (EXTRA_DIST): Add strndup.h.
42168         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42169         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42170         * modules/time_r (EXTRA_DIST): Add time_r.h.
42171         * modules/timespec (EXTRA_DIST): Add timespec.h.
42172         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42173         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42174         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42175         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42176         * modules/userspec (EXTRA_DIST): Add userspec.h.
42177         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42178         * modules/utimens (EXTRA_DIST): Add utimens.h.
42179         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42180         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42181         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42182         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42183         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42184         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42185         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42186         * modules/yesno (EXTRA_DIST): Add yesno.h.
42187
42188 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42189
42190         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42191
42192         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42193         * m4/dev-ino.m4, same-inode.m4: Remove.
42194
42195         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42196         * m4/acl.m4 (AC_FUNC_ACL):
42197         * m4/backupfile.m4 (gl_BACKUPFILE):
42198         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42199         * m4/canon-host.m4 (gl_CANON_HOST):
42200         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42201         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42202         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42203         * m4/cloexec.m4 (gl_CLOEXEC):
42204         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42205         * m4/closeout.m4 (gl_CLOSEOUT):
42206         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42207         * m4/dirname.m4 (gl_DIRNAME):
42208         * m4/exclude.m4 (gl_EXCLUDE):
42209         * m4/exitfail.m4 (gl_EXITFAIL):
42210         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42211         * m4/file-type.m4 (gl_FILE_TYPE):
42212         * m4/filemode.m4 (gl_FILEMODE):
42213         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42214         * m4/fpending.m4 (gl_FUNC_FPENDING):
42215         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42216         * m4/fts.m4 (gl_FUNC_FTS):
42217         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42218         * m4/getdate.m4 (gl_GETDATE):
42219         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42220         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42221         * m4/getpass.m4 (gl_FUNC_GETPASS):
42222         * m4/gettime.m4 (gl_GETTIME):
42223         * m4/getugroups.m4 (gl_GETUGROUPS):
42224         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42225         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42226         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42227         * m4/hash.m4 (gl_HASH):
42228         * m4/idcache.m4 (gl_IDCACHE):
42229         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42230         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42231         * m4/long-options.m4 (gl_LONG_OPTIONS):
42232         * m4/lstat.m4 (gl_FUNC_LSTAT):
42233         * m4/md5.m4 (gl_MD5):
42234         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42235         * m4/memcoll.m4 (gl_MEMCOLL):
42236         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42237         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42238         * m4/memxor.m4 (gl_MEMXOR):
42239         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42240         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42241         * m4/modechange.m4 (gl_MODECHANGE):
42242         * m4/mountlist.m4 (gl_MOUNTLIST):
42243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42244         * m4/openat.m4 (gl_FUNC_OPENAT):
42245         * m4/pathmax.m4 (gl_PATHMAX):
42246         * m4/physmem.m4 (gl_PHYSMEM):
42247         * m4/posixtm.m4 (gl_POSIXTM):
42248         * m4/posixver.m4 (gl_POSIXVER):
42249         * m4/quote.m4 (gl_QUOTE):
42250         * m4/quotearg.m4 (gl_QUOTEARG):
42251         * m4/readtokens.m4 (gl_READTOKENS):
42252         * m4/readutmp.m4 (gl_READUTMP):
42253         * m4/regex.m4 (gl_REGEX):
42254         * m4/safe-read.m4 (gl_SAFE_READ):
42255         * m4/safe-write.m4 (gl_SAFE_WRITE):
42256         * m4/same.m4 (gl_SAME):
42257         * m4/save-cwd.m4 (gl_SAVE_CWD):
42258         * m4/savedir.m4 (gl_SAVEDIR):
42259         * m4/settime.m4 (gl_SETTIME):
42260         * m4/sha1.m4 (gl_SHA1):
42261         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42262         * m4/stat-macros.m4 (gl_STAT_MACROS):
42263         * m4/stat-time.m4 (gl_STAT_TIME):
42264         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42265         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42266         * m4/strdup.m4 (gl_FUNC_STRDUP):
42267         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42268         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42269         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42270         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42271         * m4/time_r.m4 (gl_TIME_R):
42272         * m4/timespec.m4 (gl_TIMESPEC):
42273         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42274         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42275         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42276         * m4/userspec.m4 (gl_USERSPEC):
42277         * m4/utimecmp.m4 (gl_UTIMECMP):
42278         * m4/utimens.m4 (gl_UTIMENS):
42279         * m4/xalloc.m4 (gl_XALLOC):
42280         * m4/xgetcwd.m4 (gl_XGETCWD):
42281         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42282         * m4/xreadlink.m4 (gl_XREADLINK):
42283         * m4/xstrtod.m4 (gl_XSTRTOD):
42284         * m4/yesno.m4 (gl_YESNO):
42285         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42286         to get the necessary .h files and whatnot.
42287
42288 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42289             Bruno Haible  <bruno@clisp.org>
42290
42291         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42292         /bin/sh understanding of '!' conditional negation.
42293
42294 2006-08-21  Jim Meyering  <jim@meyering.net>
42295
42296         * modules/openat (Depends-on): Really alphabetize.
42297
42298         * modules/acl (Depends-on): Add error and quote.
42299
42300         * check-module (find_included_lib_files): Add at-func.c to the
42301         ok-to-include-more-than-once white list.
42302
42303         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42304
42305 2006-08-21  Bruno Haible  <bruno@clisp.org>
42306
42307         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42308         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42309         Reported by Martin Lambers <marlam@marlam.de>.
42310
42311 2006-08-21  Bruno Haible  <bruno@clisp.org>
42312
42313         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42314         specify an installation location, don't emit a noinst_LIBRARIES or
42315         noinst_LTLIBRARIES assignment.
42316
42317 2006-08-21  Bruno Haible  <bruno@clisp.org>
42318
42319         BeOS portability.
42320         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42321         BeOS has mbrtowc() but no <wctype.h>.
42322
42323 2006-08-21  Bruno Haible  <bruno@clisp.org>
42324
42325         BeOS portability.
42326         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42327         exist.
42328
42329 2006-08-21  Bruno Haible  <bruno@clisp.org>
42330
42331         BeOS portability.
42332         * lib/mbchar.h: Include <wctype.h> only if it exists.
42333
42334 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42335
42336         Remove files that are no longer needed by their respective modules.
42337         * m4/obstack.m4: Remove.
42338         * m4/strerror_r.m4: Remove.
42339         * m4/uint32_t.m4: Remove.
42340         * m4/uintptr_t.m4: Remove.
42341         * m4/ullong_max.m4: Remove.
42342         * m4/xstrtoimax.m4: Remove.
42343         * m4/xstrtoumax.m4: Remove.
42344
42345         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42346         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42347         dependencies now capture this.
42348
42349         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42350         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42351         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42352         * m4/human.m4 (gl_HUMAN): Likewise.
42353         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42354         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42355
42356         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42357
42358         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42359         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42360         stdint.
42361         * m4/human.m4 (gl_HUMAN): Likewise.
42362         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42363         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42364         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42365         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42366         * m4/xstrtol (gl_XSTRTOL): Likewise.
42367
42368         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42369         AC_TYPE_LONG_LONG_INT.
42370         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42371         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42372         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42373         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42374
42375         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42376         on stdbool.
42377
42378         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42379         (gl_PREREQ_XSTRTOUL): Remove.
42380
42381         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42382
42383         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42384         mode.
42385
42386 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42387
42388         Add and change modules to make it easier for coreutils to use
42389         gnulib-tool.
42390         * modules/backupfile (Files): Remove m4/d-ino.m4.
42391         (Depends-on): Add d-ino.
42392         * modules/cycle-check (Depends-on): Add stdint.
42393         (lib_SOURCES): Add cycle-check.h.
42394         * modules/d-ino: New module.
42395         * modules/d-type: New module.
42396         * modules/error (Files): Remove m4/strerror_r.m4.
42397         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42398         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42399         m4/inttypes_h.m4, m4/uintmax_t.m4.
42400         (Depends-on): Add stdint.
42401         (lib_SOURCES): Add fsusage.h.
42402         * modules/getcwd (Files): Remove d-ino.m4.
42403         (Depends-on): Add d-ino.
42404         * modules/getndelim2 (Depends-on): Add stdint.
42405         * modules/glob (Files): Remove m4/d-type.m4.
42406         (Depends-on): Add d-type.
42407         * modules/host-os: New module.
42408         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42409         m4/inttypes_h.m4, m4/uintmax_t.m4.
42410         * Depends-on: Add stdint.
42411         (lib_SOURCES): Add human.h.
42412         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42413         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42414         m4/uintmax_t.m4, m4/ulonglong.m4.
42415         (Depends-on): Add stdint.
42416         (EXTRA_DIST): Add inttostr.h.
42417         * modules/lchmod: New module.
42418         * modules/link-follow: New module.
42419         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42420         (Depends-on): Add lchmod.
42421         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42422         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42423         (Depends-on): Add stdint.
42424         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42425         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42426         (Depends-on): Add stdint.
42427         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42428         * modules/perl: New module.
42429         * modules/regex (Depends-on): Add stdint.
42430         * modules/rmdir-errno: New module.
42431         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42432         m4/intmax_t.m4.
42433         (Depends-on): Add stdint.
42434         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42435         m4/uintmax_t.m4.
42436         (Depends-on): Add stdint.
42437         * modules/unlink-busy: New module.
42438         * modules/utimecmp (Depends-on): Add stdint.
42439         * modules/uptime: New module.
42440         * modules/winsz-ioctl: New module.
42441         * modules/winsz-termios: New module.
42442         * modules/xnanosleep (Depends-on): Add nanosleep.
42443         * modules/ullong_max: Remove.
42444         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42445         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42446         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42447         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42448         (Depends-on): Add inttypes.
42449         (lib_SOURCES): Add xstrtol.h.
42450         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42451         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42452         * MODULES.html.sh: Move 'assert' into the assert section.
42453         Move 'dummy' into the linking section.
42454         Remove ullong_max.
42455         Add section for compatibility checks for POSIX:2001 functions,
42456         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42457         winsz-ioctl, and winsz-termios into it.
42458         Add lchmod.
42459         Add top-level Misc section and put host-os, perl, and uptime
42460         into it.
42461
42462 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42463
42464         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42465         now assume the stdint module.  Do not include inttypes.h.
42466         * lib/fsusage.h: Likewise.
42467         * lib/getndelim2.c: Likewise.
42468         * lib/human.h: Likewise.
42469         * lib/inttostr.h: Likewise.
42470         * lib/obstack.c: Likewise.
42471         * lib/regex_internal.h: Likewise.
42472         * lib/tempname.c: Likewise.
42473         * lib/utimecmp.c: Likewise.
42474         * lib/xstrtol.h: Likewise.
42475
42476         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42477
42478         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42479         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42480         * lib/xtime.h: Likewise.
42481
42482 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42483
42484         * modules/openat (Files): Add lib/fchmodat.c.
42485         Fixes problem reported by Jay Youngman.
42486
42487 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42488
42489         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42490         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42491
42492 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42493             Bruno Haible  <bruno@clisp.org>
42494
42495         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42496         and is a script that invokes bison. Tighten the code. Add comments.
42497
42498 2006-08-18  Jim Meyering  <jim@meyering.net>
42499
42500         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42501         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42502         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42503         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42504
42505 2006-08-18  Bruno Haible  <bruno@clisp.org>
42506
42507         * modules/bison-i18n: New file.
42508         * MODULES.html.sh (Internationalization functions): Add it.
42509
42510 2006-08-18  Bruno Haible  <bruno@clisp.org>
42511
42512         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42513         sys/statvfs.h. When getmntinfo was found, check its declaration and
42514         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42515
42516 2006-08-18  Bruno Haible  <bruno@clisp.org>
42517
42518         * m4/bison-i18n.m4: New file, from bison.
42519
42520 2006-08-18  Bruno Haible  <bruno@clisp.org>
42521
42522         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42523         (ME_DUMMY): Treat "kernfs" as a dummy.
42524         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42525
42526 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42527
42528         Update from coreutils.
42529
42530         2006-08-15  Jim Meyering  <jim@meyering.net>
42531
42532         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42533
42534         2006-01-17  Jim Meyering  <jim@meyering.net>
42535
42536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42537
42538         2006-01-11  Jim Meyering  <jim@meyering.net>
42539
42540         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42541         Check for the lchmod function.
42542
42543 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42544
42545         Update from coreutils.
42546
42547         * lib/__fpending.h: Add copyright notice.
42548         * lib/fprintftime.h: Likewise.
42549         * lib/savedir.c: Use (C) in copyright notice.
42550         * lib/savedir.h: Likewise.
42551
42552         2006-08-15  Jim Meyering  <jim@meyering.net>
42553
42554         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42555         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42556         in support of the EXPECTED_ERRNO macro.
42557         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42558         definitions.  Instead, define the appropriate symbols and include
42559         "at-func.c".
42560         * lib/mkdirat.c (mkdirat): Likewise.
42561         * lib/fchmodat.c (fchmodat): Likewise.
42562         (ENOSYS): Remove definition.
42563         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42564         it.  Don't include "unistd--.h" -- it wasn't ever used.
42565
42566         2006-01-17  Jim Meyering  <jim@meyering.net>
42567
42568         Rewrite fts.c not to change the current working directory,
42569         by using openat, fstatat, fdopendir, etc..
42570
42571         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42572         (HAVE_OPENAT_SUPPORT): Define.
42573         [_LIBC] (fchdir): Don't undef or define; no longer used.
42574         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42575         Now, this `function' always succeeds, and consumes its file descriptor
42576         parameter -- so callers must not close such FDs.  Update callers.
42577         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42578         (diropen): Add parameter, SP.  Adjust all callers.
42579         Implement using diropen_fd, rather than open.
42580         (fts_open): Initialize new member, fts_cwd_fd.
42581         Remove fts_rft-setting code.
42582         (fts_close): Close fts_cwd_fd, if necessary.
42583         (__opendir2): Define in terms of opendir or opendirat,
42584         depending on whether the FST_NOCHDIR flag is set.
42585         (fts_build): Since fts_safe_changedir consumes its FD, and since
42586         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42587         and close the dup'd file descriptor upon failure.
42588         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42589         (fts_safe_changedir): Tweak semantics to reflect that this function
42590         now calls cwd_advance_fd and hence consumes its FD argument.
42591         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42592         [struct FTS] (fts_rft): Remove now-unused member.
42593         [struct FTS] (fts_cycle.state): Improve comment.
42594
42595         * lib/openat.c (openat_needs_fchdir): New function.
42596         * lib/openat.h (openat_needs_fchdir): Declare it.
42597
42598 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42599
42600         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42601         Problem and fix reported by Pádraig Brady in
42602         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42603
42604 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42605
42606         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42607
42608 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42609
42610         * lib/memcoll.c (memcoll): Optimize for the common case where the
42611         arguments are bytewise equal.
42612
42613 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42614
42615         * doc/regexprops-generic.texi: Add a copyright notice.
42616
42617 2006-08-15  Bruno Haible  <bruno@clisp.org>
42618
42619         * modules/tmpdir (License): Change to LGPL.
42620
42621 2006-08-15  Bruno Haible  <bruno@clisp.org>
42622
42623         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42624         module.
42625
42626 2006-08-14  Simon Josefsson  <jas@extundo.com>
42627
42628         * config/srclist.txt: Add gnupload.
42629
42630 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42631
42632         Change copyright notice from LGPL 2 to GPL 2, since that's the
42633         standard form used in the gnulib repository.
42634         * tests/test-lock.c: Likewise.
42635         * tests/test-stdint.c: Likewise.
42636         * tests/test-tls.c: Likewise.
42637
42638         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42639         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42640         Add copyright notice.
42641
42642         * check-module: Add copyright notice.  Output a copyright
42643         notice if "--version" is specified.
42644         * modules/COPYING: New file.
42645         * tests/test-getaddrinfo.c: Add copyright notice.
42646         * tests/test-verify.c: Likewise.
42647
42648 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42649
42650         Change copyright notice from LGPL 2 to GPL 2, since that's the
42651         standard form used in the gnulib repository.
42652         * lib/lock.c: LGPL -> GPL.
42653         * lib/lock.h: Likewise.
42654         * lib/strnlen1.c: Likewise.
42655         * lib/strnlen1.h: Likewise.
42656         * lib/tls.c: Likewise.
42657         * lib/tls.h: Likewise.
42658         * lib/tmpdir.c: Likewise.
42659
42660         * lib/TODO: Remove; this belongs only in coreutils.
42661
42662 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42663
42664         Add copyright notices to long-enough files that lack them, since
42665         otherwise the files aren't clearly free.  Use the same notice that
42666         getdate.texi already uses.
42667         * doc/alloca-opt.texi: Add copyright notice.
42668         * doc/alloca.texi: Likewise.
42669         * doc/ctime.texi: Likewise.
42670         * doc/functions.texi: Likewise.
42671         * doc/gcd.texi: Likewise.
42672         * doc/gnulib-tool.texi: Likewise.
42673         * doc/inet_ntoa.texi: Likewise.
42674         * doc/visibility.texi: Likewise.
42675
42676         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42677         * doc/quote.texi: Add copyright notice.
42678
42679         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42680         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
42681         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
42682         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
42683         is now obsolete, and give a pointer to the Sun list.
42684         Add copyright notice.
42685
42686 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42687
42688         * config/srclistvars.sh: Add copyright notice.
42689
42690 2006-08-14  Eric Blake  <ebb9@byu.net>
42691
42692         Import the following change from libc:
42693
42694         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
42695
42696         Upstream bug 2997.
42697         * lib/misc/error.c: Add space between program name and message if file
42698         name is missing.
42699
42700 2006-08-12  Karl Berry  <karl@gnu.org>
42701
42702         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42703         remove, these originate in gnulib now.
42704
42705 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42706
42707         * doc/Makefile (standards.info standards.html standards.dvi):
42708         Also depend on make-stds.texi.
42709
42710 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42711
42712         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42713         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
42714
42715         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42716         in wchar_t.  Problem reported by Eric Blake.
42717
42718         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42719         LEN is smaller than SIZE.  Suggested by Bruno Haible.
42720         Also, help the compiler to keep LEN in a register.
42721
42722 2006-08-11  Eric Blake  <ebb9@byu.net>
42723
42724         * users.txt: Sort.  Add tar.
42725
42726 2006-08-11  Bruno Haible  <bruno@clisp.org>
42727
42728         * users.txt: New file.
42729
42730 2006-08-11  Bruno Haible  <bruno@clisp.org>
42731
42732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42733         before <wchar.h>. Needed for OSF/1 and BSD/OS.
42734
42735 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42736
42737         * modules/snprintf (Depends-on): Remove minmax.
42738         (Maintainer): Add self and Bruno.
42739
42740 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42741
42742         * lib/.cppi-disable: Add snprintf.h, socket_.h.
42743         * lib/snprintf.c: Include <errno.h> and <limits.h>.
42744         (EOVERFLOW): Define if the system does not.
42745         Do not include "minmax.h"; it wasn't used.
42746         (snprintf): Don't assume size_t promotes to an unsigned type.
42747         Fix bug when generated string was too long for the buffer: the
42748         buffer's contents are supposed to be the initial prefix of the
42749         output.  Don't assume vasnprintf returns EOVERFLOW if the size
42750         exceeds INT_MAX; do the check ourselves.
42751
42752         Import the following changes from libc:
42753
42754         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
42755
42756         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
42757         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
42758         set wc to the byte which couldn't be converted.
42759         (re_string_reconstruct): Don't clear valid_raw_len before calling
42760         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
42761         tip_context using re_string_context_at.
42762
42763         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
42764
42765         * lib/posix/regex.h: g++ still cannot handled [restrict].
42766
42767         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
42768
42769         * lib/posix/regex.h: Remove special handling for VMS.
42770
42771 2006-08-10  Jim Meyering  <jim@meyering.net>
42772
42773         * modules/same-inode: New module.
42774         * modules/dev-ino: New module.
42775         * modules/cycle-check: Depend on these modules, rather than simply
42776         including their .h files.
42777         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
42778         required via m4/cycle-check.m4.
42779         * modules/same: Depend on new same-inode module, rather than
42780         including same-inode.h.
42781         * modules/chdir-safer: New file.
42782
42783         * modules/chown (Depends-on): Add stat-macros.
42784
42785 2006-08-10  Jim Meyering  <jim@meyering.net>
42786
42787         * m4/cycle-check.m4: New file.
42788         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
42789         * m4/dev-ino.m4, m4/same-inode.m4: New files.
42790
42791 2006-08-10  Eric Blake  <ebb9@byu.net>
42792
42793         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
42794         in from original proposal.
42795
42796 2006-08-10  Eric Blake  <ebb9@byu.net>
42797         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42798
42799         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
42800         namespace.
42801
42802 2006-08-10  Bruno Haible  <bruno@clisp.org>
42803
42804         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
42805         as well.
42806
42807 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42808
42809         Sync from coreutils.
42810
42811         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
42812
42813         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
42814         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
42815
42816 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42817
42818         * modules/restrict: Remove; no longer needed now that we assume
42819         Autoconf 2.59 or later.
42820         * MODULES.html.sh: Remove 'restrict'.
42821         * modules/argp (Depends-on): Remove 'restrict'.
42822         * modules/base64 (Depends-on): Likewise.
42823         * modules/gc (Depends-on): Likewise.
42824         * modules/getaddrinfo (Depends-on): Likewise.
42825         * modules/glob (Depends-on): Likewise.
42826         * modules/inet_ntop (Depends-on): Likewise.
42827         * modules/inet_pton (Depends-on): Likewise.
42828         * modules/memxor (Depends-on): Likewise.
42829         * modules/regex (Depends-on): Likewise.
42830         * modules/strtok_r (Depends-on): Likewise.
42831         * modules/time_r (Depends-on): Likewise.
42832
42833 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42834
42835         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
42836         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
42837         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42838         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
42839         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42840         * m4/memxor.m4 (gl_MEMXOR): Likewise.
42841         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
42842         gl_C_RESTRICT replaced by AC_C_RESTRICT.
42843
42844         Merge from coreutils.
42845         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
42846         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
42847         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42848         * m4/time_r.m4 (gl_TIME_R): Likewise.
42849
42850 2006-08-09  Karl Berry  <karl@gnu.org>
42851
42852         * config/srclist.txt: no more gettext-tools, per Bruno.
42853
42854 2006-08-08  Eric Blake  <ebb9@byu.net>
42855
42856         * modules/verror: New module.
42857         * MODULES.html.sh: Document it.
42858
42859 2006-08-08  Eric Blake  <ebb9@byu.net>
42860
42861         * lib/verror.h, lib/verror.c: New files.
42862
42863 2006-08-08  Eric Blake  <ebb9@byu.net>
42864
42865         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
42866         verror_at_line output complies with GNU Coding Standards even when
42867         file is NULL.
42868
42869 2006-08-07  Bruno Haible  <bruno@clisp.org>
42870
42871         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
42872         versions of AIX.
42873         Reported by Ralf Wildenhues.
42874
42875 2006-08-07  Bruno Haible  <bruno@clisp.org>
42876
42877         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
42878         in an AC_DEFUN. Needed so that the autoconf snippets can use
42879         AC_REQUIRE.
42880
42881 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42882
42883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42884         Initialize pkgdata_DATA.
42885         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
42886         overriding it.
42887
42888 2006-08-06  Eric Blake  <ebb9@byu.net>
42889
42890         * lib/error.h: Fold in some upstream changes from glibc.
42891         * lib/error.c: Likewise.
42892
42893 2006-08-04  Bruno Haible  <bruno@clisp.org>
42894
42895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42896         Make the mostlyclean-local rule depend on mostlyclean-generic.
42897         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
42898
42899 2006-07-31  Bruno Haible  <bruno@clisp.org>
42900
42901         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
42902         <stdlib.h>, <string.h>.
42903
42904 2006-07-30  Bruno Haible  <bruno@clisp.org>
42905
42906         * modules/readlink (License): Change to LGPL.
42907
42908 2006-07-30  Bruno Haible  <bruno@clisp.org>
42909
42910         * modules/javaversion (Makefile.am): Distribute javaversion.java and
42911         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
42912         set PKGDATADIR to point to it.
42913
42914 2006-07-30  Bruno Haible  <bruno@clisp.org>
42915
42916         * modules/csharpexec (configure.ac): Comment out macro invocation.
42917         * modules/javaexec (configure.ac): Likewise.
42918         * modules/javacomp-script (configure.ac): Likewise.
42919
42920         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
42921
42922 2006-07-30  Bruno Haible  <bruno@clisp.org>
42923
42924         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
42925         linked-list.
42926
42927 2006-07-30  Bruno Haible  <bruno@clisp.org>
42928
42929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
42930
42931 2006-07-30  Bruno Haible  <bruno@clisp.org>
42932
42933         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42934         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
42935         get removed.
42936
42937 2006-07-29  Bruno Haible  <bruno@clisp.org>
42938
42939         Make it possible for gnulib-tool to work with locally modified or
42940         augmented gnulib repositories.
42941         * gnulib-tool (func_usage): Document --local-dir option.
42942         (local_gnulib_dir): New variable.
42943         Handle --local-dir option.
42944         (func_lookup_file): New function.
42945         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
42946         (func_get_description, func_get_filelist, func_get_description,
42947         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
42948         func_get_automake_snippet, func_get_include_directive,
42949         func_get_license, func_get_maintainer): Use func_lookup_file.
42950         (func_import, func_create_testdir): Use func_lookup_file.
42951
42952 2006-07-29  Bruno Haible  <bruno@clisp.org>
42953
42954         * modules/setenv (Depends-on): Add unistd.
42955
42956 2006-07-29  Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
42959
42960 2006-07-29  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
42963
42964 2006-07-29  Bruno Haible  <bruno@clisp.org>
42965
42966         * gnulib-tool (import, update): If there is no Makefile.am, look at
42967         aclocal.m4, instead of bailing out.
42968
42969 2006-07-29  Bruno Haible  <bruno@clisp.org>
42970
42971         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
42972         Categorize the options by when they are useful.
42973
42974 2006-07-29  Bruno Haible  <bruno@clisp.org>
42975
42976         * gnulib-tool (func_usage): Document option --no-libtool.
42977         Handle option --no-libtool.
42978         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
42979         for changed semantics of $libtool variable.
42980         (func_import): Likewise. If libtool is not used, show this through
42981         an option --no-libtool.
42982         (func_create_testdir): Update.
42983
42984 2006-07-29  Bruno Haible  <bruno@clisp.org>
42985
42986         * gnulib-tool (func_import): Extend error message about missing
42987         --doc-base.
42988
42989 2006-07-29  Bruno Haible  <bruno@clisp.org>
42990
42991         * gnulib-tool (func_import): Don't create the $docbase directory if
42992         there is no file to store there.
42993
42994 2006-07-29  Bruno Haible  <bruno@clisp.org>
42995
42996         * gnulib-tool (autoconf_minversion): If a --dir option is given and
42997         relevant, look for configure.ac there, not in the current directory.
42998         Also use a simple search for AC_PREREQ, not "autoconf --trace".
42999
43000 2006-07-29  Bruno Haible  <bruno@clisp.org>
43001
43002         * gnulib-tool (SORT): New variable.
43003         (func_usage): Undocument --assume-autoconf option.
43004         Remove --assume-autoconf option handling.
43005         (autoconf_minversion): Determine from the contents of configure.ac.
43006         (func_import): Remove autoconf_minversion handling.
43007         Suggested by Eric Blake.
43008
43009 2006-07-29  Bruno Haible  <bruno@clisp.org>
43010
43011         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43012
43013 2006-07-29  Bruno Haible  <bruno@clisp.org>
43014
43015         * config/srclist.txt (*setenv.[ch]): Remove rules.
43016
43017 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43018
43019         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43020
43021 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43022
43023         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43024         arpa/inet.h.
43025
43026 2006-07-28  Simon Josefsson  <jas@extundo.com>
43027
43028         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43029         * modules/inet_pton (Depends-on): Likewise.
43030
43031 2006-07-28  Simon Josefsson  <jas@extundo.com>
43032
43033         * m4/netinet_in_h.m4: New file.
43034
43035 2006-07-28  Simon Josefsson  <jas@extundo.com>
43036
43037         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43038         #include's.
43039
43040 2006-07-28  Simon Josefsson  <jas@extundo.com>
43041
43042         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43043         #include's.
43044
43045 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43046
43047         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43048         setgid on directories only if they set these bits.
43049         * lib/modechange.h: Remove obsolete comment about masks.
43050
43051 2006-07-28  Eric Blake  <ebb9@byu.net>
43052
43053         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43054         macro expansion.
43055
43056 2006-07-28  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43059
43060 2006-07-28  Bruno Haible  <bruno@clisp.org>
43061
43062         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43063
43064 2006-07-28  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43067         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43068         Define fallbacks.
43069         Avoids link error on FreeBSD 4.x.
43070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43071
43072         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43073         encoding.
43074         * lib/mbswidth.c (iswcntrl): Likewise.
43075
43076 2006-07-27  Bruno Haible  <bruno@clisp.org>
43077
43078         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43079         test.
43080
43081 2006-07-27  Bruno Haible  <bruno@clisp.org>
43082
43083         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43084         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43085         defined.
43086
43087 2006-07-26  Eric Blake  <ebb9@byu.net>
43088
43089         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43090
43091 2006-07-26  Eric Blake  <ebb9@byu.net>
43092
43093         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43094         like mingw that lack mkstemp.
43095         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43096         avoid compilation warning on mingw.
43097
43098 2006-07-26  Bruno Haible  <bruno@clisp.org>
43099
43100         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43101         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43102         INT_FAST*_MIN, INTPTR_MIN.
43103
43104 2006-07-25  Bruno Haible  <bruno@clisp.org>
43105
43106         * modules/version-etc (Depends-on): Add stdarg.
43107
43108 2006-07-25  Bruno Haible  <bruno@clisp.org>
43109
43110         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43111         complex commands.
43112
43113 2006-07-25  Bruno Haible  <bruno@clisp.org>
43114
43115         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43116         defined in <stdarg.h> or config.h.
43117
43118 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43119
43120         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43121         (gl_STDIO_SAFER): Remove.
43122
43123 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43124
43125         * MODULES.html.sh (File stream based Input/Output):
43126         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43127         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43128         * modules/fopen-safer, modules/tmpfile-safer: New files.
43129         * modules/stdio-safer: Remove.
43130
43131 2006-07-24  Bruno Haible  <bruno@clisp.org>
43132
43133         * modules/tmpdir: New file.
43134         * MODULES.html.sh (File system functions): Add it.
43135
43136 2006-07-24  Bruno Haible  <bruno@clisp.org>
43137
43138         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43139         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43140
43141 2006-07-24  Bruno Haible  <bruno@clisp.org>
43142
43143         * modules/clean-temp: New file.
43144
43145 2006-07-24  Bruno Haible  <bruno@clisp.org>
43146
43147         * m4/tmpdir.m4: New file, from GNU gettext.
43148
43149 2006-07-24  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/tmpdir.h: New file, from GNU gettext.
43152         * lib/tmpdir.c: New file, from GNU gettext.
43153
43154 2006-07-24  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/clean-temp.h: New file, from GNU gettext.
43157         * lib/clean-temp.c: New file, from GNU gettext.
43158
43159 2006-07-23  Eric Blake  <ebb9@byu.net>
43160
43161         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43162         (Depends-on): Add binary-io.
43163
43164 2006-07-23  Eric Blake  <ebb9@byu.net>
43165
43166         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43167
43168 2006-07-23  Eric Blake  <ebb9@byu.net>
43169
43170         * lib/tmpfile-safer.c: New file.
43171         * lib/stdio-safer.h (fopen_safer): Add prototype.
43172         * lib/stdio--.h (tmpfile): Make safer.
43173
43174 2006-07-23  Bruno Haible  <bruno@clisp.org>
43175
43176         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43177         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43178         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43179         gl_linked_remove_at): Use it.
43180
43181 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43182         and Simon Josefsson <jas@extundo.com>
43183
43184         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43185
43186         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43187
43188 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43189
43190         * modules/close-stream: New file.
43191         * modules/closeout (Description): Make it clear that it exits
43192         with a diagnostic on error.
43193         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43194         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43195
43196 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43197
43198         * m4/close-stream.m4: New file.
43199
43200 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43201
43202         * lib/close-stream.c, lib/close-stream.h: New files.
43203
43204 2006-07-22  Bruno Haible  <bruno@clisp.org>
43205
43206         Merge from GNU gettext 0.15.
43207
43208         2006-05-01  Bruno Haible  <bruno@clisp.org>
43209
43210                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43211
43212         2006-07-22  Bruno Haible  <bruno@clisp.org>
43213
43214                 * modules/javaversion: New file.
43215                 * MODULES.html.sh (Java): Add javaversion.
43216
43217         2006-03-12  Bruno Haible  <bruno@clisp.org>
43218
43219                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43220
43221         2005-12-04  Bruno Haible  <bruno@clisp.org>
43222
43223                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43224                 (untested).
43225
43226         2006-06-21  Bruno Haible  <bruno@clisp.org>
43227
43228                 Avoid warnings from recent versions of mcs.
43229                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43230                 -o, -L, -r any more. Use options documented since mcs-1.0
43231                 instead. Similarly for -g.
43232
43233         2005-12-04  Bruno Haible  <bruno@clisp.org>
43234
43235                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43236                 .resources, not .resource.
43237
43238         2005-07-09  Bruno Haible  <bruno@clisp.org>
43239
43240                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43241                 add a .dll suffix.
43242                 Reported by Mark Junker <mjscod@gmx.de>.
43243
43244         2006-07-22  Bruno Haible  <bruno@clisp.org>
43245
43246                 * modules/gettext: Upgrade to gettext-0.15.
43247                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43248                 m4/visibility.m4.
43249                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43250
43251 2006-07-22  Bruno Haible  <bruno@clisp.org>
43252
43253         Merge from GNU gettext 0.15.
43254
43255         2006-03-25  Bruno Haible  <bruno@clisp.org>
43256
43257                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43258
43259         2006-07-21  Bruno Haible  <bruno@clisp.org>
43260
43261                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43262                 "1.1".
43263
43264         2006-05-09  Bruno Haible  <bruno@clisp.org>
43265
43266                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43267                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43268                 for the conftestver execution.
43269
43270         2006-05-01  Bruno Haible  <bruno@clisp.org>
43271
43272                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43273                 optional target-version argument. Verify that the compiler
43274                 groks source of the specified source-version, or add -source
43275                 option as necessary. Verify that the compiler produces
43276                 bytecode in the specified target-version, or add -target and
43277                 -source options as necessary. Make the result of the test
43278                 available as variable CONF_JAVAC. Also log error output in
43279                 config.log.
43280
43281         2006-03-11  Bruno Haible  <bruno@clisp.org>
43282
43283                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43284
43285         2006-05-09  Bruno Haible  <bruno@clisp.org>
43286
43287                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43288                 CLASSPATH_SEPARATOR to a semicolon.
43289
43290         2006-03-12  Bruno Haible  <bruno@clisp.org>
43291
43292                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43293                 available as variable CONF_JAVA, for subsequent autoconf
43294                 tests. Also log error output in config.log.
43295
43296         2006-07-19  Bruno Haible  <bruno@clisp.org>
43297
43298                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43299                 that getline works on glibc2 systems. Needed to avoid trouble
43300                 in relocatable.c.
43301                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43302
43303         2005-12-04  Bruno Haible  <bruno@clisp.org>
43304
43305                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43306                 launcher (untested).
43307
43308         2005-12-04  Bruno Haible  <bruno@clisp.org>
43309
43310                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43311
43312         2006-07-22  Bruno Haible  <bruno@clisp.org>
43313
43314                 * gettext.m4: Update from GNU gettext-0.15.
43315                 * nls.m4: Likewise.
43316                 * po.m4: Likewise.
43317                 * inttypes-pri.m4: Likewise.
43318                 * inttypes-h.m4: Renamed from inttypes.m4.
43319                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43320
43321 2006-07-22  Bruno Haible  <bruno@clisp.org>
43322
43323         Merge from GNU gettext 0.15.
43324
43325         2005-07-05  Bruno Haible  <bruno@clisp.org>
43326
43327                 * printf-args.c (printf_fetchargs): Work around broken
43328                 definition of wint_t on mingw.
43329
43330         2005-02-12  Bruno Haible  <bruno@clisp.org>
43331
43332                 * xallocsa.h: Add extern "C" for C++.
43333
43334         2006-05-17  Bruno Haible  <bruno@clisp.org>
43335
43336                 Cygwin portability.
43337                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43338
43339         2006-04-30  Bruno Haible  <bruno@clisp.org>
43340
43341                 * progreloc.c: Include <mach-o/dyld.h> if available.
43342                 (find_executable): Use _NSGetExecutablePath when possible.
43343
43344         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43345
43346                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43347                 function.
43348
43349         2005-12-29  Bruno Haible  <bruno@clisp.org>
43350
43351                 * progreloc.c (set_program_name_and_installdir): Fix
43352                 compilation error.
43353
43354         2005-12-04  Bruno Haible  <bruno@clisp.org>
43355
43356                 Cygwin portability.
43357                 * progreloc.c: Include <windows.h> also on Cygwin.
43358                 (find_executable): Add support for Cygwin.
43359                 (set_program_name_and_installdir): Handle also platforms with
43360                 nonempty EXEEXT.
43361
43362         2006-07-11  Bruno Haible  <bruno@clisp.org>
43363
43364                 * javacomp.c: Fix a comment.
43365                 Reported by Jim Meyering.
43366
43367         2006-04-30  Bruno Haible  <bruno@clisp.org>
43368
43369                 * javacomp.h (compile_java_class): Add source_version,
43370                 target_version arguments.
43371                 * javacomp.c: Rewritten to choose only a compiler that
43372                 respects the specified source_version and target_version.
43373
43374         2006-06-27  Bruno Haible  <bruno@clisp.org>
43375
43376                 Assume correct S_ISDIR macro.
43377                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43378
43379         2006-07-22  Bruno Haible  <bruno@clisp.org>
43380
43381                 * javaversion.h: New file, from GNU gettext.
43382                 * javaversion.c: New file, from GNU gettext.
43383                 * javaversion.java: New file, from GNU gettext.
43384                 * javaversion.class: New file, from GNU gettext.
43385
43386         2006-05-17  Bruno Haible  <bruno@clisp.org>
43387
43388                 Cygwin portability.
43389                 * javaexec.c (execute_java_class): Test for jview program
43390                 also on Cygwin.
43391
43392         2006-04-09  Bruno Haible  <bruno@clisp.org>
43393
43394                 * fatal-signal.c: Don't include string.h.
43395                 (at_fatal_signal): Use a copying loop instead of memcpy.
43396
43397         2005-12-04  Bruno Haible  <bruno@clisp.org>
43398
43399                 * csharpexec.c: Add support for 'clix' launcher (untested).
43400                 (execute_csharp_using_sscli): New function.
43401                 (execute_csharp_program): Call it.
43402
43403         2006-06-21  Bruno Haible  <bruno@clisp.org>
43404
43405                 Avoid warnings from recent versions of mcs.
43406                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43407                 -o, -L, -r any more. Use options documented since mcs-1.0
43408                 instead. Similarly for -g.
43409
43410         2005-07-09  Bruno Haible  <bruno@clisp.org>
43411
43412                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43413                 add a .dll suffix.
43414                 Reported by Mark Junker <mjscod@gmx.de>.
43415
43416         2006-06-17  Bruno Haible  <bruno@clisp.org>
43417
43418                 * config.charset: Update for NetBSD 3.0.
43419
43420         2006-05-17  Bruno Haible  <bruno@clisp.org>
43421
43422                 Cygwin portability.
43423                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43424
43425         2006-05-16  Bruno Haible  <bruno@clisp.org>
43426
43427                 * localcharset.c [CYGWIN]: Include <windows.h>.
43428                 (get_charset_aliases): For Cygwin, return the same CPxxx
43429                 aliases list as under WIN32.
43430                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43431                 the environment variables. Fall back to GetACP().
43432
43433         2006-04-05  Bruno Haible  <bruno@clisp.org>
43434
43435                 * config.charset: Update Juan Manuel Guerrero's address.
43436
43437         2005-02-12  Bruno Haible  <bruno@clisp.org>
43438
43439                 * allocsa.h: Add extern "C" for C++.
43440
43441         2005-02-10  Bruno Haible  <bruno@clisp.org>
43442
43443                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43444                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43445
43446         2006-07-22  Bruno Haible  <bruno@clisp.org>
43447
43448                 * gettext.h: Update to GNU gettext-0.15.
43449
43450 2006-07-22  Bruno Haible  <bruno@clisp.org>
43451
43452         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43453         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43454         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43455
43456 2006-07-21  Eric Blake  <ebb9@byu.net>
43457
43458         * modules/stdlib-safer: New file.
43459         * MODULES.html.sh (File stream based Input/Output): Add
43460         stdlib-safer.
43461
43462 2006-07-21  Eric Blake  <ebb9@byu.net>
43463
43464         * lib/stdlib-safer.h: New file from coreutils, required by
43465         stdlib--.h.
43466
43467 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43470
43471 2006-07-20  Bruno Haible  <bruno@clisp.org>
43472
43473         * gnulib-tool: Recognize new option --assume-autoconf.
43474         (autoconf_minversion): New variable.
43475         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43476
43477 2006-07-20  Bruno Haible  <bruno@clisp.org>
43478
43479         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43480
43481 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43482
43483         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43484         Reindent and repaginate.
43485
43486 2006-07-19  Derek Price  <derek@ximbiot.com>
43487
43488         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43489         Correct grammar.
43490
43491 2006-07-17  Bruno Haible  <bruno@clisp.org>
43492
43493         * modules/list: New file.
43494         * modules/array-list: New file.
43495         * modules/carray-list, modules/carray-list-tests: New files.
43496         * modules/linked-list, modules/linked-list-tests: New files.
43497         * modules/avltree-list, modules/avltree-list-tests: New files.
43498         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43499         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43500         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43501         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43502         * modules/oset: New file.
43503         * modules/array-oset: New file.
43504         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43505         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43506         * tests/test-carray_list.c: New file.
43507         * tests/test-linked_list.c: New file.
43508         * tests/test-avltree_list.c: New file.
43509         * tests/test-rbtree_list.c: New file.
43510         * tests/test-linkedhash_list.c: New file.
43511         * tests/test-avltreehash_list.c: New file.
43512         * tests/test-rbtreehash_list.c: New file.
43513         * tests/test-avltree_oset.c: New file.
43514         * tests/test-rbtree_oset.c: New file.
43515         * MODULES.html.sh (Container data structures): New section.
43516
43517 2006-07-17  Bruno Haible  <bruno@clisp.org>
43518
43519         * m4/gl_list.m4: New file.
43520
43521 2006-07-17  Bruno Haible  <bruno@clisp.org>
43522
43523         * lib/gl_list.h: New file.
43524         * lib/gl_list.c: New file.
43525         * lib/gl_array_list.h: New file.
43526         * lib/gl_array_list.c: New file.
43527         * lib/gl_carray_list.h: New file.
43528         * lib/gl_carray_list.c: New file.
43529         * lib/gl_linked_list.h: New file.
43530         * lib/gl_linked_list.c: New file.
43531         * lib/gl_anylinked_list1.h: New file.
43532         * lib/gl_anylinked_list2.h: New file.
43533         * lib/gl_avltree_list.h: New file.
43534         * lib/gl_avltree_list.c: New file.
43535         * lib/gl_anyavltree_list1.h: New file.
43536         * lib/gl_anyavltree_list2.h: New file.
43537         * lib/gl_rbtree_list.h: New file.
43538         * lib/gl_rbtree_list.c: New file.
43539         * lib/gl_anyrbtree_list1.h: New file.
43540         * lib/gl_anyrbtree_list2.h: New file.
43541         * lib/gl_anytree_list1.h: New file.
43542         * lib/gl_anytree_list2.h: New file.
43543         * lib/gl_linkedhash_list.h: New file.
43544         * lib/gl_linkedhash_list.c: New file.
43545         * lib/gl_anyhash_list1.h: New file.
43546         * lib/gl_anyhash_list2.h: New file.
43547         * lib/gl_avltreehash_list.h: New file.
43548         * lib/gl_avltreehash_list.c: New file.
43549         * lib/gl_rbtreehash_list.h: New file.
43550         * lib/gl_rbtreehash_list.c: New file.
43551         * lib/gl_anytreehash_list1.h: New file.
43552         * lib/gl_anytreehash_list2.h: New file.
43553
43554         * lib/gl_oset.h: New file.
43555         * lib/gl_oset.c: New file.
43556         * lib/gl_array_oset.h: New file.
43557         * lib/gl_array_oset.c: New file.
43558         * lib/gl_avltree_oset.h: New file.
43559         * lib/gl_avltree_oset.c: New file.
43560         * lib/gl_rbtree_oset.h: New file.
43561         * lib/gl_rbtree_oset.c: New file.
43562         * lib/gl_anytree_oset.h: New file.
43563
43564 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43565
43566         * m4/mkancesdirs.m4: New file.
43567         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43568         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43569         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43570         it.
43571
43572 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43573
43574         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43575         * lib/mkancesdirs.h: New files.
43576         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43577         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43578         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43579         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43580         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43581         callers changed.  Revamp internals significantly, by not
43582         attempting to create directories that are temporarily more
43583         permissive than the final results.  Do not attempt to use
43584         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43585         This removes some race conditions, fixes some bugs, and simplifies
43586         things.  Use new dirchownmod function to do owner and mode changes.
43587         * lib/mkdir-p.h: Likewise.
43588         * lib/modechange.c (octal_to_mode): New function.
43589         (struct mode_change): New member mentioned.
43590         (make_node_op_equals): New arg mentioned.  All callers changed.
43591         (mode_compile): Keep track of which mode bits the user has explicitly
43592         mentioned.
43593         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43594         New arg PMODE_BITS, to keep track of which mode bits the user
43595         mentioned; it treats S_ISUID and S_ISGID speciall.
43596         All callers changed.
43597         * lib/modechange.h: Likewise.
43598
43599 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43600
43601         * MODULES.html.sh: Add mkancestors.
43602         * modules/mkancesdirs: New module.
43603         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43604         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43605         The chdir-safer and afs files are now orphans; I'll remove them
43606         unless someone speaks up.
43607         Add lib/dirchownmod.c, lib/dirchownmod.h.
43608         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43609         Add lchown, mkancesdirs.
43610         (Maintainer): Add self.
43611
43612 2006-07-15  Karl Berry  <karl@gnu.org>
43613
43614         * gnulib-tool: help message wording/arrangement.
43615
43616 2006-07-14  Simon Josefsson  <jas@extundo.com>
43617
43618         * doc/gnulib.texi (Libtool and Windows): New section.
43619
43620 2006-07-12  Simon Josefsson  <jas@extundo.com>
43621
43622         * modules/gendocs (License): Fix license, approved by Karl.
43623
43624 2006-07-12  Eric Blake  <ebb9@byu.net>
43625
43626         * MODULES.html.sh: Add gendocs.
43627
43628 2006-07-11  Eric Blake  <ebb9@byu.net>
43629
43630         * modules/fdl: New module, to install doc/fdl.texi.
43631         * MODULES.html.sh: Add new section for documentation modules.
43632         * gnulib-tool: Avoid space-tab.
43633         (--doc-base): New option, to manage files from doc.
43634
43635 2006-07-11  Eric Blake  <ebb9@byu.net>
43636
43637         * m4/absolute-header.m4: Fix comments to match recent change.
43638
43639 2006-07-11  Eric Blake  <ebb9@byu.net>
43640
43641         * gnulib-tool: List --doc-base before --tests-base.
43642
43643 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43644
43645         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43646
43647 2006-07-11  Bruno Haible  <bruno@clisp.org>
43648
43649         * README: Mention where to put documentation.
43650
43651 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43652
43653         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43654
43655 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43656
43657         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43658         to stdint.m4.
43659
43660 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43661
43662         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43663         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43664         "no/such/file/stdint.h" when there is no such file, so that
43665         the resulting C code can be parsed by dodgy compilers.
43666         Problems reported by Bob Proulx.
43667
43668 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43669
43670         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43671         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43672         macros into the GNU _D_EXACT_NAMLEN.
43673         * lib/savedir.c:  Likewise.
43674         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43675
43676 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43677         and Paul Eggert  <eggert@cs.ucla.edu>
43678
43679         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43680         * m4/savedir.m4:
43681         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43682         macros into the GNU _D_EXACT_NAMLEN.
43683
43684 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43685
43686         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43687         around the absolute name, to work around a problem with the HP-UX
43688         11.23 native C compiler, reported by Bob Proulx.
43689
43690 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43691
43692         * doc/maintain.texi, make-stds.texi: Sync from
43693         <http://savannah.gnu.org/projects/gnustandards>.
43694
43695 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43696
43697         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43698
43699 2006-07-09  Jim Meyering  <jim@meyering.net>
43700
43701         * m4/glob.m4: Remove a doubled word in a comment.
43702
43703 2006-07-09  Jim Meyering  <jim@meyering.net>
43704
43705         * lib/argp-pv.c: Remove a doubled word in a comment.
43706         * lib/check-version.c (check_version): Likewise.
43707         * lib/javacomp.c (compile_java_class): Likewise.
43708
43709 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43710
43711         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43712         for the benefit of people using Autoconf 2.60.  If you want to
43713         support older Autoconf versions you can copy m4/onceonly_2_57.m4
43714         (or m4/onceonly.m4, if pre-2.57) manually.
43715
43716 2006-07-08  Jim Meyering  <jim@meyering.net>
43717
43718         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43719         comment.
43720         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43721         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43722         comment.
43723
43724 2006-07-08  Jim Meyering  <jim@meyering.net>
43725
43726         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43727
43728 2006-07-07  Simon Josefsson  <jas@extundo.com>
43729
43730         * tests/test-crc.c: Change expected crc value, the test vector
43731         were probably computed using the old broken crc.c?
43732
43733 2006-07-06  Simon Josefsson  <jas@extundo.com>
43734
43735         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43736         now the canonical place for the M4 file).
43737
43738         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43739         from the sys_socket dependency now.
43740
43741         * modules/inet_pton (Files): Ditto.
43742
43743         * modules/inet_ntop (Files): Ditto.
43744
43745 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43746
43747         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43748         not gl_PREREQ_GETUSERSHELL.
43749
43750 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43751
43752         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43753         with only one argument, for Autoconf 2.60.
43754         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43755         expand to nothing, so add a shell command to avoid syntax error.
43756         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43757
43758 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43759
43760         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
43761
43762 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43763
43764         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
43765         no longer needed.  Check for isblank decl.
43766         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
43767         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
43768         of existence.
43769
43770 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43771
43772         * lib/getloadavg.c: Use __VMS, not VMS.
43773         * lib/getopt.c: Likewise.
43774         * lib/getpagesize.h: Likewise.
43775         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
43776         and probably does not work.
43777
43778 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43779
43780         * lib/.cppi-disable: Add wcwidth.
43781         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
43782         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
43783         (ISGRAPH): Remove.  All uses changed to isgraph.
43784         (FOLD) [!defined _LIBC]: Remove special case.
43785         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
43786         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
43787         HAVE_ISBLANK.
43788         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
43789         case.
43790
43791 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43792
43793         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
43794         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
43795         brackets.  Other minor changes to suppress some compiler
43796         warnings.
43797
43798 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43799         and Paul Eggert  <eggert@cs.ucla.edu>
43800
43801         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
43802         of invoking obsolescent AC_HEADER_DIRENT macro.
43803         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43804         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
43805         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43806         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
43807         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
43808         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43809         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
43810         * m4/readdir.m4: Remove; no longer needed.
43811
43812 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43813         and Paul Eggert  <eggert@cs.ucla.edu>
43814
43815         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
43816         Don't worry about this obsolete case any more.
43817         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
43818         directories.
43819         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
43820         worry about this obsolete case any more.
43821         * lib/fts.c: Likewise.
43822         * lib/getcwd.c: Likewise.
43823         * lib/glob.h: Likewise.
43824         * lib/savedir.c: Likewise.
43825
43826 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43827
43828         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
43829         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
43830         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
43831         needed.
43832         All uses removed.
43833         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43834         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43835         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
43836         needed.
43837         * m4/getdate.m4 (gl_GETDATE): Likewise.
43838         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43839         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43840         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43841         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43842         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43843         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43844         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
43845         needed.
43846
43847 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43848
43849         * lib/memcasecmp.c: Include <limits.h>.
43850         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
43851         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
43852         Don't assume isdigit succeeds only on '0' through '9'.
43853
43854 2006-07-05  Eric Blake  <ebb9@byu.net>
43855
43856         * modules/getaddrinfo (Depends-on): Add snprintf.
43857
43858 2006-07-05  Eric Blake  <ebb9@byu.net>
43859
43860         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
43861         to avoid 'header present but could not be compiled' on cygwin.
43862
43863 2006-07-05  Eric Blake  <ebb9@byu.net>
43864
43865         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
43866         missing from netdb.h.
43867         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
43868
43869 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43870
43871         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
43872         no longer needed.
43873         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
43874         * m4/getdate.m4 (gl_GETDATE): Likewise.
43875         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43876         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43877         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43878         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43879         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43880
43881 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43882
43883         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
43884         All uses of is_space replaced by isspace.
43885         * lib/exit.h: Don't talk about STDC_HEADERS.
43886         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
43887         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
43888         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
43889         replaced by isprint etc.
43890         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
43891         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43892         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
43893         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
43894         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
43895         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43896
43897 2006-07-05  Bruno Haible  <bruno@clisp.org>
43898
43899         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
43900         the function exists, before testing against AIX.
43901         Reported by Martin Lambers <marlam@marlam.de>.
43902
43903 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
43904
43905         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
43906         From Mark D. Baushke.
43907
43908 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
43909
43910         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
43911         to the absolute name, not just one, to bypass Sun C 5.8's
43912         "warning: #include of /usr/include/... may be non-portable".
43913
43914 2006-07-04  Eric Blake  <ebb9@byu.net>
43915
43916         * modules/dirname-tests: New test module.
43917         * tests/test-dirname.c: New file, replacing dirname.c
43918         TEST_DIRNAME section that was recently deleted.
43919
43920 2006-07-04  Bruno Haible  <bruno@clisp.org>
43921
43922         Assume ANSI C header files and <ctype.h> functions.
43923         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
43924         (mbsnwidth): Use isprint, iscntrl instead.
43925
43926 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         Merge from coreutils.
43929         * MODULES.html.sh: Add xstrtold.
43930         * modules/xstrtold: New file.
43931         * modules/cycle-check (Files): Add lib/same-inode.h.
43932         * modules/dirname (Files): Add m4/double-slash-root.m4.
43933         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
43934         * modules/mkdir-p (Files): Add lib/same-inode.h.
43935         * modules/same (Files): Add lib/same-inode.h.
43936
43937 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43938
43939         * m4/absolute-header.m4: Renamed from full-header-path.m4.
43940         This is to keep the terminology clean; POSIX talks about
43941         "absolute pathnames", not "full pathnames", but the GNU
43942         Coding Standards say to use "path" for something else;
43943         so use "absolute" to keep both sides happy.
43944         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
43945         Set gl_absolute_header, not gl_full_header_path.
43946         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
43947         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
43948         All uses changed.
43949
43950         Merge from coreutils.
43951
43952         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43953
43954         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
43955         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
43956         want to require the building of c-strtod.o.
43957         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
43958         needs -lm directly.
43959         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
43960
43961         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43962
43963         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
43964         --as-needed option if available.  Problem reported by Albert Chin in
43965         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
43966         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
43967         cc merely issues a bunch of annoying warnings for --as-needed
43968         (this problem was reported by Bob Proulx).  Also, try linking with
43969         -lm to detect a bug in binutils 2.16 (this problem was reported
43970         by Ralf Wildenhues).
43971
43972         2006-06-18  Jim Meyering  <jim@meyering.net>
43973
43974         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
43975         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
43976         macro.
43977         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
43978         also check for glibc-2.4's abort-inducing bug.
43979
43980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
43981         Low-probability clean-up should be to use rmdir to get rid of
43982         the just-created directory, not unlink.
43983
43984         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
43985         configure fail, and request a bug report to inform us about it.
43986         Add a comment that, barring reports to the contrary, in 2007 we'll
43987         assume ftruncate is universally available.
43988
43989         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
43990
43991         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
43992
43993         2006-03-12  Jim Meyering  <jim@meyering.net>
43994
43995         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
43996         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
43997         * m4/same.m4 (gl_SAME): Likewise.
43998         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
43999
44000         2006-03-11  Eric Blake  <ebb9@byu.net>
44001
44002         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44003         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44004         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44005         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44006
44007 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44008
44009         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44010         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44011         reported by Mark D. Baushke, one in
44012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44013
44014         Merge from coreutils.
44015
44016         * lib/.cppi-disable: Add stdint_.h.
44017         * lib/.cvsignore: Add stdint.h.
44018
44019         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44020
44021         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44022         both double and long double versions.
44023         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44024         * lib/xstrtold.c: New file.
44025         * lib/xstrtod.h (xstrtold): New decl.
44026
44027         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44028
44029         * lib/filemode.c (setst): Remove.
44030         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44031         (arguably) clearer, and the generated code is a bit smaller on my
44032         Debian GNU/Linux stable x86 host.
44033
44034         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44035
44036         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44037         Assume that filemode.h includes sys/types.h and sys/stat.h.
44038         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44039         (ftypelet): Reorder to put common cases first, for efficiency.
44040         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44041         to do 'M'.
44042         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44043         of 10, for compatibility with FreeBSD.  All callers changed.
44044         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44045         types that can't be deduced solely from st_mode.  First arg is now a
44046         const pointer.
44047         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44048         (strmode): Renamed from mode_string.
44049         (filemodestring): New decl.
44050         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44051         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44052         needed.
44053         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44054
44055         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44056
44057         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44058         fsusage.h now does that.  Include fsusage.h first, to test interface.
44059         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44060         at most one method (the old code could have generated decls that
44061         didn't conform to C89, not that this was ever exercised).
44062         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44063
44064         2006-03-19  Jim Meyering  <jim@meyering.net>
44065
44066         Work even in a chroot where d_ino values for entries in "/"
44067         don't match the stat.st_ino values for the same names.
44068         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44069         number, iterate through all entries again, using lstat instead.
44070         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44071         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44072
44073         * lib/getcwd.c (__getcwd): Clarify a comment.
44074         Use memcpy in place of a call to strcpy.
44075
44076         2006-03-12  Jim Meyering  <jim@meyering.net>
44077
44078         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44079         matches that of the current directory (which we're about to chdir ".."
44080         out of), then save the dev-ino of the parent, instead.
44081
44082         * lib/same-inode.h (SAME_INODE): New file/macro.
44083         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44084         Include "same-inode.h", instead.
44085         * lib/same.c: Likewise.
44086         * lib/cycle-check.h: Include "same-inode.h".
44087         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44088         * lib/cycle-check.c (SAME_INODE): Remove definition.
44089         * lib/root-dev-ino.h: Include "same-inode.h".
44090
44091         2006-03-11  Eric Blake  <ebb9@byu.net>
44092
44093         * lib/same.c (same_name): s/base_name/last_component/
44094         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44095         * lib/filenamecat.c (file_name_concat): Likewise.
44096
44097         2006-03-11  Eric Blake  <ebb9@byu.net>,
44098                     Paul Eggert  <eggert@cs.ucla.edu>
44099
44100         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44101         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44102         drive prefix.
44103         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44104         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44105         (last_component): New method.
44106         * lib/dirname.c (dir_len): Determine when drive letters need a
44107         subsequent slash.  Preserve // when it is special.
44108         (dir_name): Don't append dot when drive letter is absolute.
44109         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44110         * lib/basename.c (base_name): New semantics - malloc the result.
44111         Preserve // when it is special.  Preserve relative files that look
44112         like drive letters.
44113         (base_len): Preserve // when it is special.
44114         (last_component): New method, similar to old base_name semantics.
44115         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44116         base_name.  Strip redundant slashes from ///.
44117
44118 2006-07-03  Jim Meyering  <jim@meyering.net>
44119
44120         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44121         macro is used before the first cycle_check call.
44122
44123 2006-07-03  Eric Blake  <ebb9@byu.net>
44124
44125         * modules/dirname (Depends-on): Add xstrndup.
44126
44127 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44128
44129         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44130         test cases, so that config.log is a bit easier to follow.
44131
44132 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44133
44134         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44135         both are 64 bits, since this seems to be the tradition, and this
44136         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44137         we ever run into a host that prefers long long to long in this
44138         case, we'll need another configure-time test.  Problem reported by
44139         Jim Meyering.
44140
44141 2006-07-02  Eric Blake  <ebb9@byu.net>
44142
44143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44144
44145 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44146
44147         * modules/inttypes (Depends-on): No longer depends on stdint.
44148         * modules/stdint (Description): Say more about assumptions.
44149         Say that the fast types might differ.  Say macros are used.
44150         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44151         (Makefile.am): Revise list of substituted symbols to match
44152         new stdint.m4.
44153         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44154         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44155         * tests/test-stdint.c (verify_same_types)
44156         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44157         the code conforms to C99/C89.
44158         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44159         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44160
44161 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44162
44163         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44164         but fix a bug, by requiring at least 64 bits.
44165         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44166         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44167         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44168         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44169
44170         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44171         changes.  Make 2.59 a prerequisite.  Check and substitute for
44172         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44173         inttypes.h.  Do not use special include files; just use the
44174         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44175         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44176         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44177         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44178         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44179         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44180         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44181         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44182         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44183         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44184         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44185         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44186         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44187         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44188         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44189         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44190         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44191         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44192         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44193         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44194         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44195         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44196         not check for things that C99 does not require, e.g., int8_t.  If
44197         a test isn't needed unless <stdint.h> isn't working, and is
44198         unlikely to be needed for any other reason, then don't do it
44199         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44200         size_t, since we assume C89 freestanding at least.  Do not check
44201         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44202         the right thing even if the types are not defined.  Instead use:
44203         (gl_STDINT_TYPE_PROPERTIES): New macro.
44204         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44205         testing whether <sys/types.h> clashes, as Autoconf does this for
44206         us now.  All uses removed.
44207         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44208         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44209         (gl_CHECK_TYPE_SAME):
44210         Remove; no longer needed.
44211         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44212         exists, since we'll return 0 anyway in that case.
44213         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44214
44215 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44216
44217         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44218         possible collision with system files.
44219         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44220         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44221         WCHAR_MIN and WCHAR_MAX in this case.
44222         (<stddef.h>): Do not include; no longer needed.
44223         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44224         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44225         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44226         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44227         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44228         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44229         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44230         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44231         !defined(__c99))]: Include in this case too, since it's harmless
44232         now.
44233         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44234         dangerous to do so.
44235         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44236         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44237         (_STDINT_MIN, _STDINT_MAX): New macros.
44238         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44239         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44240         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44241         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44242         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44243         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44244         macros, not typedefs; this simplifies things quite a bit.
44245         Use long int for all types narrower than int64_t.
44246         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44247         Define in terms of long long int or int64_t or long int,
44248         not int64_t or int32_t.  This saves some compile-time testing.
44249         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44250         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44251         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44252         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44253         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44254         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44255         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44256         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44257         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44258         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44259         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44260         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44261         undef any previous version and define our own version, for
44262         simplicity and consistency with the new macros for types.
44263         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44264         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44265         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44266         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44267         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44268         @WINT_T_SUFFIX@ to keep things simple here.
44269         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44270         Simplify by assuming typical 8/16/32/64 host, since we're
44271         already doing that elsewhere anyway.
44272         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44273         and assume long long int is 64 bits if available.  This
44274         speeds up 'configure'.
44275
44276 2006-07-01  Eric Blake  <ebb9@byu.net>
44277
44278         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44279         Reported by Andreas Buening.
44280
44281 2006-07-01  Eric Blake  <ebb9@byu.net>
44282
44283         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44284
44285 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44286
44287         * lib/getaddrinfo.c: fixed typo
44288
44289 2006-06-29  Jim Meyering  <jim@meyering.net>
44290
44291         * modules/strftime (Maintainer): Add my name, since with the
44292         FPRINTFTIME changes strftime.c has forked from glibc.
44293
44294 2006-06-29  Eric Blake  <ebb9@byu.net>
44295
44296         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44297
44298 2006-06-29  Eric Blake  <ebb9@byu.net>
44299
44300         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44301
44302 2006-06-29  Eric Blake  <ebb9@byu.net>
44303
44304         * lib/stat_.h: New file.
44305
44306 2006-06-29  Eric Blake  <ebb9@byu.net>
44307
44308         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44309         unused static function.
44310
44311 2006-06-29  Eric Blake  <ebb9@byu.net>
44312
44313         * doc/functions.texi (Function Portability): Document missing lstat
44314         on mingw.
44315
44316 2006-06-29  Eric Blake  <ebb9@byu.net>
44317
44318         * MODULES.html.sh: Add sys_stat.
44319         * modules/sys_stat: New module.
44320         * modules/mkstemp (Depends-on): Add sys_stat.
44321
44322 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44323
44324         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44325
44326 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44327
44328         * m4/c-bs-a.m4: Removed.
44329
44330 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44331
44332         * lib/strftime.c: Assume strftime() exists.
44333
44334 2006-06-29  Derek Price  <derek@ximbiot.com>
44335
44336         * modules/c-bs-a: Removed - \a is C89.
44337         * MODULES.html.sh: Remove c-bs-a.
44338
44339 2006-06-29  Bruno Haible  <bruno@clisp.org>
44340
44341         * modules/wcwidth (License): Change to LGPL.
44342
44343 2006-06-28  Simon Josefsson  <jas@extundo.com>
44344
44345         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44346         on _WIN32.
44347
44348         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44349         getnameinfo.
44350
44351 2006-06-28  Simon Josefsson  <jas@extundo.com>
44352
44353         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44354
44355 2006-06-28  Simon Josefsson  <jas@extundo.com>
44356
44357         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44358         functions there.  It will succeed on Windows XP, but on Windows
44359         2000 and (presumably) earlier, it will fail, and use the internal
44360         re-implementation.
44361         (use_win32_p): New function.
44362         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44363         Support AI_NUMERICSERV to disable getservbyname.
44364         (getnameinfo): New function, only supports
44365         NI_NUMERICHOST|NI_NUMERICSERV for now.
44366
44367         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44368         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44369         getnameinfo.
44370
44371 2006-06-28  Eric Blake  <ebb9@byu.net>
44372
44373         * modules/wcwidth: New file.
44374         * modules/mbchar (Depends-on): Add wcwidth.
44375         * modules/mbswidth (Depends-on): Add wcwidth.
44376         * MODULES.html.sh: Add wcwidth.
44377
44378 2006-06-28  Eric Blake  <ebb9@byu.net>
44379
44380         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44382
44383 2006-06-28  Eric Blake  <ebb9@byu.net>
44384
44385         * lib/xvasprintf.h: Fix comments.
44386
44387 2006-06-28  Eric Blake  <ebb9@byu.net>
44388
44389         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44390         * lib/mbswidth.c (wcwidth): Move from here...
44391         * lib/wcwidth.h: ...to this new file.
44392
44393 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44394
44395         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44396
44397         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44398         it's obsolete.
44399         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44400
44401 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44402
44403         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44404         Autoconf 2.60 says this stuff was obsolete.
44405
44406 2006-06-28  Bruno Haible  <bruno@clisp.org>
44407
44408         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44409
44410 2006-06-28  Bruno Haible  <bruno@clisp.org>
44411
44412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44413         gt_TYPE_WCHAR_T.
44414
44415 2006-06-28  Bruno Haible  <bruno@clisp.org>
44416
44417         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44418         declaration for wcwidth.
44419         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44420
44421 2006-06-28  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44424         (mkdir): Define using _mkdir.
44425
44426 2006-06-28  Bruno Haible  <bruno@clisp.org>
44427
44428         * lib/getaddrinfo.h: Fix POSIX URL.
44429         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44430         _WIN32.
44431         (use_win32_p): Make static.
44432         (getaddrinfo): Reject service name if it is empty or does not consist
44433         solely of decimal digits, or if its value is > 65535.
44434         (getnameinfo): Remove useless casts.
44435
44436 2006-06-27  Simon Josefsson  <jas@extundo.com>
44437
44438         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44439         Eggert and Martin Lambers.
44440
44441 2006-06-27  Simon Josefsson  <jas@extundo.com>
44442
44443         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44444         Eggert and Martin Lambers.
44445
44446 2006-06-27  Bruno Haible  <bruno@clisp.org>
44447
44448         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44449         result to 0, not to empty.
44450         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44451
44452 2006-06-27  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44455
44456 2006-06-26  Simon Josefsson  <jas@extundo.com>
44457
44458         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44459         present.
44460
44461 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44462
44463         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44464         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44466
44467 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44468
44469         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44470
44471 2006-06-26  Bruno Haible  <bruno@clisp.org>
44472
44473         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44474
44475 2006-06-26  Bruno Haible  <bruno@clisp.org>
44476
44477         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44478
44479 2006-06-26  Bruno Haible  <bruno@clisp.org>
44480
44481         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44482         SGI C compiler in pre-C99 mode.
44483         Suggested by Mark D. Baushke and Larry Jones.
44484
44485 2006-06-26  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44488         WCHAR_MAX.
44489         Reported by Mark D. Baushke and Larry Jones.
44490
44491 2006-06-26  Bruno Haible  <bruno@clisp.org>
44492
44493         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44494         in pre-C99 mode.
44495         Suggested by Mark D. Baushke and Larry Jones.
44496
44497 2006-06-23  Simon Josefsson  <jas@extundo.com>
44498             Bruno Haible  <bruno@clisp.org>
44499
44500         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44501         Emit mostlyclean-local rule.
44502         (func_emit_tests_Makefile_am): Likewise.
44503         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44504
44505 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44506
44507         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44508
44509 2006-06-23  Bruno Haible  <bruno@clisp.org>
44510
44511         * tests/test-stdint.c: Update to match ISO C 99 Technical
44512         Corrigendum 1.
44513
44514 2006-06-23  Bruno Haible  <bruno@clisp.org>
44515
44516         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44517
44518 2006-06-23  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/stdint_.h: Treat IRIX like OpenBSD.
44521
44522 2006-06-23  Bruno Haible  <bruno@clisp.org>
44523
44524         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44525         ISO C 99 Technical Corrigendum 1.
44526
44527 2006-06-22  Simon Josefsson  <jas@extundo.com>
44528
44529         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44530         MinGW.
44531
44532 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44535         needed.  Some compiler complained about some of them.  Problem reported
44536         by Larry Jones in
44537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44538
44539 2006-06-21  Simon Josefsson  <jas@extundo.com>
44540
44541         * tests/test-getaddrinfo.c: New file.
44542
44543         * modules/getaddrinfo-tests: New file.
44544
44545         * MODULES.html.sh: Add inet_pton.
44546
44547         * modules/inet_pton: New file.
44548
44549 2006-06-21  Simon Josefsson  <jas@extundo.com>
44550
44551         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44552         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44553         of using the (limited) gnulib implementation on Windows XP.
44554
44555         * m4/inet_pton.m4: New file.
44556
44557 2006-06-21  Simon Josefsson  <jas@extundo.com>
44558
44559         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44560         variable.
44561
44562         * lib/socket_.h: Don't define WINVER.
44563
44564         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44565         slightly modified to work in gnulib.
44566
44567 2006-06-21  Simon Josefsson  <jas@extundo.com>
44568
44569         * doc/gnulib.texi (Windows sockets): Add.
44570
44571 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44572
44573         * lib/read-file.c (fread_file): Start with buffer allocation of
44574         0 bytes rather than 1 byte; this simplifies the code.
44575         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44576         code to free buffer and save/restore errno.
44577         (internal_read_file): Remove unused local.
44578
44579 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44580
44581         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44582         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44583         Problem reported by Denis Excoffier in
44584         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44585
44586 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44587
44588         * modules/sys_socket, modules/socklen: Include sys/types since
44589         FreeBSD 4.x's sys/socket.h needs it.
44590
44591 2006-06-19  Simon Josefsson  <jas@extundo.com>
44592
44593         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44594
44595 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44596
44597         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44598
44599 2006-06-19  Bruno Haible  <bruno@clisp.org>
44600
44601         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44602         and FULL_PATH_INTTYPES_H in angle brackets.
44603         Reported by Mark D. Baushke <mdb@gnu.org>.
44604
44605 2006-06-17  Eric Blake  <ebb9@byu.net>
44606
44607         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44608         errno.
44609
44610 2006-06-17  Bruno Haible  <bruno@clisp.org>
44611
44612         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44613         <sys/inttypes.h>.
44614
44615 2006-06-17  Bruno Haible  <bruno@clisp.org>
44616
44617         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44618         whether errno is declared. Assume <errno.h> declares errno.
44619
44620 2006-06-17  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44623
44624 2006-06-17  Bruno Haible  <bruno@clisp.org>
44625
44626         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44627         problem on Solaris 2.5.1.
44628
44629 2006-06-16  Eric Blake  <ebb9@byu.net>
44630
44631         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44632         * lib/unicodeio.c [!defined errno]: Likewise.
44633         * lib/strtol.c [!defined errno]: Likewise.
44634         * lib/strtod.c [!defined errno]: Likewise.
44635
44636 2006-06-15  Eric Blake  <ebb9@byu.net>
44637
44638         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44639
44640 2006-06-15  Eric Blake  <ebb9@byu.net>
44641
44642         * config/srclist.txt (ssize_t.m4): Lose sync.
44643
44644 2006-06-15  Bruno Haible  <bruno@clisp.org>
44645
44646         * modules/stdint (Files): Include m4/full-header-path.m4,
44647         m4/size_max.m4, m4/wchar_t.m4.
44648         (Makefile.am): Many more substitutions.
44649         * modules/stdint-tests: New file.
44650         * tests/test-stdint.c: New file.
44651
44652 2006-06-15  Bruno Haible  <bruno@clisp.org>
44653
44654         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44655         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44656         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44657         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44658         gl_CHECK_TYPE_SAME): New macros.
44659
44660 2006-06-15  Bruno Haible  <bruno@clisp.org>
44661
44662         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44663
44664 2006-06-15  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/stdint_.h: Rewritten to be fully auto-configured.
44667         Fixes bug on HP-UX/IA64.
44668
44669 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44670
44671         * lib/getdate.y (__attribute__): Don't define if already defined.
44672         Problem reported by Larry Jones.
44673         * lib/utimens.c (__attribute__): Likewise.
44674
44675 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44676
44677         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44678         reported by Andreas Schwab.
44679
44680 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44681             Bruno Haible  <bruno@clisp.org>
44682
44683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44684         check for the declaration of strnlen and a run test that exposes the
44685         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
44686         rpl_strndup.
44687
44688 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44689             Bruno Haible  <bruno@clisp.org>
44690
44691         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44692
44693 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44694
44695         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44696         compile test, for Tru64 4.0D.
44697
44698 2006-05-28  Karl Berry  <karl@gnu.org>
44699
44700         * config/srclist.txt (printf-args.c): lose sync.
44701
44702 2006-05-26  Martin Lambers  <marlam@marlam.de>
44703
44704         * lib/getpass.c: Updates the test for the native W32 API, and adds
44705         missing includes, thus fixing compilation warnings.
44706
44707 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44708
44709         * lib/exclude.c (exclude_fnmatch): New function.
44710         (excluded_file_name): Call exclude_fnmatch.
44711         * lib/exclude.h (excluded_file_name): New prototype
44712
44713 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
44714
44715         * lib/tempname.c (small_open, large_open): New macros.
44716         (__open, __open64) [!_LIBC]: Remove.
44717         (__gen_tempname): Use small_open and large_open instead of __open
44718         and __open64.  This fixes a portability bug on HP-UX 11.11i
44719         reported by Simon Wing-Tang in
44720         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44721
44722 2006-05-24  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44725         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44726         Reported by Thorsten Maerz <torte@netztorte.de> via
44727         Aaron Stone <aaron@serendipity.cx>.
44728
44729 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44730
44731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44732         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
44733         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
44734         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44735         not really conditional on the cache.
44736         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44737
44738 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44739
44740         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44741         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44742         (my_usleep): Don't mishandle maximum value.
44743
44744 2006-05-19  Jim Meyering  <jim@meyering.net>
44745
44746         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
44747
44748 2006-05-17  Bruno Haible  <bruno@clisp.org>
44749
44750         Cygwin portability.
44751         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44752
44753 2006-05-17  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/stdint_.h: Fix recognition of Cygwin.
44756
44757 2006-05-15  Bruno Haible  <bruno@clisp.org>
44758
44759         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
44760         on libtool patch by Ralf Wildenhues.
44761
44762 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
44763
44764         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
44765         test for C99 conformance; (bool) 0.5 is an integer constant
44766         expression, but (bool) -0.5 is not.  Problem reported by Fedor
44767         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
44768
44769 2006-05-11  Simon Josefsson  <jas@extundo.com>
44770
44771         * m4/xvasprintf.m4: Fix obvious typo.
44772
44773 2006-05-11  Jim Meyering  <jim@meyering.net>
44774
44775         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
44776         James Lemley.
44777
44778 2006-05-10  Simon Josefsson  <jas@extundo.com>
44779
44780         * lib/md4.c: Typo fix, update copyright years.
44781         (K1, K2): Don't use L because it turn computations into 64-bit on
44782         64-bit platforms.
44783
44784 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
44785
44786         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
44787         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
44788         unwanted sign propagation, e.g., on hosts with 64-bit int.
44789         There still are some problems with reeelly weird theoretical hosts
44790         (e.g., 33-bit int) but it's not worth worrying about now.
44791         * lib/sha1.c (rol): Likewise.
44792         (K1, K2, K3, K4): Remove unnecessary L suffix.
44793
44794 2006-05-10  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/des.c: Cast to avoid warnings.
44797
44798 2006-05-09  Bruno Haible  <bruno@clisp.org>
44799
44800         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
44801         (Depends-on): Depend also on xsize, stdarg.
44802         (configure.ac): Add gl_XVASPRINTF.
44803
44804 2006-05-09  Bruno Haible  <bruno@clisp.org>
44805
44806         * m4/xvasprintf.m4: New file.
44807
44808 2006-05-09  Bruno Haible  <bruno@clisp.org>
44809
44810         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
44811         (EOVERFLOW): Define fallback value.
44812         (xstrcat): New function.
44813         (xvasprintf): Recognize the special case of a string concatenation.
44814
44815 2006-05-08  Eric Blake  <ebb9@byu.net>
44816
44817         * gnulib-tool (func_version): Base copyright year on CVS date.
44818         (func_emit_copyright_notice): New function.
44819         (func_emit_lib_Makefile_am): Use it.
44820         (func_emit_tests_Makefile_am): Likewise.
44821         (func_import): Likewise.
44822
44823 2006-05-08  Bruno Haible  <bruno@clisp.org>
44824
44825         * modules/stdarg: New file.
44826         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
44827
44828 2006-05-08  Bruno Haible  <bruno@clisp.org>
44829
44830         * m4/stdarg.m4: New file, from GNU gettext.
44831
44832 2006-05-08  Bruno Haible  <bruno@clisp.org>
44833
44834         * config/srclist.txt (build-aux/config.rpath): different from latest
44835         release.
44836
44837 2006-05-08  Bruno Haible  <bruno@clisp.org>
44838
44839         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
44840
44841 2006-05-05  Jim Meyering  <jim@meyering.net>
44842
44843         * m4/warning.m4: New file, derived from bison's file by the same name.
44844
44845 2006-05-03  Bruno Haible  <bruno@clisp.org>
44846
44847         * lib/stdint_.h: Shorter URL.
44848         * lib/inttypes.h: Likewise.
44849
44850 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44851
44852         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
44853
44854 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44855
44856         * lib/verify.h: Document the internals better.  Most of this change
44857         was written by Bruno Haible.
44858
44859 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44860
44861         * doc/verify.texi: New file, partly based on a proposal by
44862         Bruno Haible.
44863
44864 2006-05-02  Bruno Haible  <bruno@clisp.org>
44865
44866         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
44867         test from here...
44868         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
44869
44870 2006-04-29  Bruno Haible  <bruno@clisp.org>
44871
44872         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
44873         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
44874
44875 2006-04-29  Bruno Haible  <bruno@clisp.org>
44876
44877         * gnulib-tool: Make --update option actually work.
44878
44879 2006-04-29  Bruno Haible  <bruno@clisp.org>
44880
44881         * doc/gcd.texi: New file.
44882         * doc/gnulib.texi: Include it.
44883
44884 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
44885
44886         * lib/getdate.y (get_date): When adding relative date, start with the
44887         initial time, not with the result of the first mktime call.
44888
44889 2006-04-25  Bruno Haible  <bruno@clisp.org>
44890
44891         * gnulib-tool (func_import): Output the include directives in three
44892         blocks, sorted separately.
44893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44894
44895 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
44896
44897         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
44898         to define main with arguments, for C++.  Reported by Eric Blake.
44899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
44900         Prefer 'int main ()' to 'int main (void)', for C++.
44901         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44902         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
44903         for 'main', for C99 and C++.
44904
44905 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
44908         Don't assume that exit status -1 is valid.
44909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44910         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44911         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44912         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
44913         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
44914         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
44915         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
44916         functions can be used without declaring them, or that you can
44917         exit with status -1.
44918         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44919
44920 2006-04-24  Karl Berry  <karl@gnu.org>
44921
44922         * config/srclist.txt (longdouble.m4): sync lost.
44923
44924 2006-04-24  Eric Blake  <ebb9@byu.net>
44925
44926         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
44927
44928 2006-04-24  Bruno Haible  <bruno@clisp.org>
44929
44930         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
44931         poll() implementation in AIX.
44932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44933
44934 2006-04-24  Bruno Haible  <bruno@clisp.org>
44935
44936         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
44937         assigned exactly once.
44938
44939 2006-04-23  Claudio Fontana  <claudio@gnu.org>
44940             Bruno Haible  <bruno@clisp.org>
44941
44942         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
44943         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
44944         for AM_CPPFLAGS.
44945
44946 2006-04-23  Bruno Haible  <bruno@clisp.org>
44947
44948         * modules/copy-file: Depend on unistd.
44949         * modules/execute: Likewise.
44950         * modules/fatal-signal: Likewise.
44951         * modules/findprog: Likewise.
44952         * modules/mkdtemp : Likewise.
44953         * modules/pipe: Likewise.
44954         * modules/wait-process: Likewise.
44955
44956 2006-04-23  Bruno Haible  <bruno@clisp.org>
44957
44958         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
44959         condition was already detected.
44960         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44961
44962 2006-04-23  Bruno Haible  <bruno@clisp.org>
44963
44964         * lib/copy-file.c: Include <unistd.h> unconditionally.
44965         * lib/execute.c: Likewise.
44966         * lib/fatal-signal.c: Likewise.
44967         * lib/findprog.c: Likewise.
44968         * lib/mkdtemp.c: Likewise.
44969         * lib/pipe.h: Likewise.
44970         * lib/pipe.c: Likewise.
44971         * lib/wait-process.h: Likewise.
44972
44973 2006-04-23  Bruno Haible  <bruno@clisp.org>
44974
44975         * gnulib-tool (func_usage): Fix --import description. Document
44976         --update.
44977         (func_import): Create temporary file in a temporary directory, if
44978         --dry-run is specified. Silence errors from 'grep' when there are no
44979         m4 files in $m4dir.
44980         (func_create_testdir): Silence errors from 'grep' when there are no
44981         m4 files in $m4dir.
44982         Reported by Karl Berry <karl@freefriends.org>.
44983
44984 2006-04-20  Bruno Haible  <bruno@clisp.org>
44985
44986         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
44987         one argument, so that the code will be portable to Autoconf 2.60.
44988         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
44989         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44990         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
44991
44992 2006-04-19  Derek Price  <derek@ximbiot.com>
44993             Eric Blake  <ebb9@byu.net>
44994
44995         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
44996         rather than "/full/path.h".  Update comment to match.  Shorten &
44997         generalize m4_translit call via AS_TR_CPP.
44998
44999 2006-04-19  Derek Price  <derek@ximbiot.com>
45000             Eric Blake  <ebb9@byu.net>
45001
45002         * lib/inttypes.h: Correct grammar in comment.
45003
45004 2006-04-18  Derek Price  <derek@ximbiot.com>
45005             Paul Eggert  <eggert@cs.ucla.edu>
45006
45007         * modules/inttypes: New file.
45008         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45009
45010 2006-04-18  Derek Price  <derek@ximbiot.com>
45011             Paul Eggert  <eggert@cs.ucla.edu>
45012
45013         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45014         New files.
45015
45016 2006-04-18  Derek Price  <derek@ximbiot.com>
45017             Paul Eggert  <eggert@cs.ucla.edu>
45018
45019         * lib/inttypes.h: New file.
45020         * lib/strtoimax.c: Assume <inttypes.h>.
45021
45022 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45023
45024         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45025         isn't mounted.  Problem reported by Kir Kolyshkin.
45026
45027 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45030         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45031         Derek R. Price.
45032         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45033         implementation.
45034
45035 2006-04-12  Eric Blake  <ebb9@byu.net>
45036
45037         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45038         is now done automatically by the corresponding Autoconf macro.
45039
45040 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45041
45042         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45043         time_r.h.
45044
45045 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45046
45047         Merge regex changes from libc, removing some of our
45048         POSIX-conformance changes that were rejected and redoing them in a
45049         less-intrusive way.
45050
45051         * lib/regcomp.c (re_compile_internal, init_dfa):
45052         Length arg is now size_t, not Idx.  All uses changed.
45053         (peek_token): Forward decl now says internal_function.
45054         (__re_error_msgid, __re_error_msgid_idx):
45055         Now static rather than extern with attribute_hidden.
45056         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45057         For some reason libc prefers K&R style defns for external functions.
45058         (regerror) [!defined _LIBC]: Likewise.
45059         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45060         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45061         (build_range_exp, build_collating_symbol):
45062         Use K&R-style defn.
45063         (re_compile_fastmap): Use '\0' to memset, not 0.
45064         (utf8_sb_map): Make the calculations more obvious.
45065         (init_dfa, parse_bracket_exp, build_charclass_op):
45066         Call calloc and cast result, as glibc does.
45067         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45068         (build_range_exp, build_collating_symbol):
45069         Now internal functions.
45070
45071         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45072
45073         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45074         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45075         Don't depend on VMS; depend on __VMS instead, for POSIX
45076         namespace cleanness.
45077         (regoff_t): Define to ssize_t, not long int.
45078
45079         Remove the REG_ macros named below.  Instead, make the old names
45080         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45081         __USE_GNU_REGEX.
45082         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45083         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45084         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45085         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45086         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45087         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45088         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45089         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45090         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45091         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45092         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45093         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45094         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45095         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45096         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45097         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45098         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45099         (REG_NREGS):
45100         Remove.  All uses replaced by the old RE_* names.
45101         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45102         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45103         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45104         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45105         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45106         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45107         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45108         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45109         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45110         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45111         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45112         Don't bother having these macros be independent of each others'
45113         values, since they no longer exist in the POSIX name space.
45114
45115         Rename the following member names back to their old names,
45116         unless !__USE_GNU_REGEX.  All uses changed back.
45117         (buffer): Renamed from re_buffer.
45118         (allocated): Renamed from re_allocated.
45119         (used): Renamed from re_used.
45120         (syntax): Renamed from re_syntax.
45121         (fastmap): Renamed from re_fastmap.
45122         (translate): Renamed from re_translate.
45123         (can_be_null): Renamed from re_can_be_null.
45124         (regs_allocated): Renamed from re_regs_allocated.
45125         (fastmap_accurate): Renamed from re_fastmap_accurate.
45126         (no_sub): Renamed from re_no_sub.
45127         (not_bol): Renamed from re_not_bol.
45128         (not_eol): Renamed from re_not_eol.
45129         (newline_anchor): Renamed from re_newline_anchor.
45130         (num_regs): Renamed from rm_num_regs.
45131         (start): Renamed from rm_start.
45132         (end): Renamed from rm_end.
45133
45134         (free_state): Move up a bit.
45135
45136         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45137         #define to be empty.
45138         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45139         when that is what is intended.
45140         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45141         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45142         (MAX): New macro.
45143         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45144         All uses changed back to re_malloc, etc.  It's now the caller's
45145         responsibility to check for overflow; all callers changed.
45146         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45147         (re_x2nrealloc): Remove.
45148         (free_state): Remove decl.
45149
45150         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45151         (re_set_registers, re_exec):
45152         Use K&R-style defn.
45153
45154         2006-01-31  Roland McGrath  <roland@redhat.com>
45155
45156         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45157         Reported by Mike Frysinger <vapier@gentoo.org>.
45158
45159         2006-01-15  Andreas Jaeger  <aj@suse.de>
45160
45161         [BZ #1950]
45162         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45163         build_wcs_upper_buffer change.
45164         (build_wcs_upper_buffer): Change return type.
45165
45166         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45167
45168         * lib/regex_internal.h: Include <stdint.h> if available.
45169
45170         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45171
45172         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45173
45174         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45175
45176         * lib/regcomp.c: Adjust for changed secondary hash function.
45177
45178         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45179
45180         * lib/regex.h: Pretty printing.
45181         Clean up namespace a bit.
45182
45183         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45184
45185         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45186         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45187
45188         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45189                     Ulrich Drepper  <drepper@redhat.com>
45190
45191         [BZ #1302]
45192         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45193         changed.
45194         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45195
45196         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45197
45198         [BZ #281]
45199         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45200         * lib/regcomp.c: Remove unnecessary uses of
45201         unsigned RE_TRANSLATE_TYPE.
45202         * lib/regex_internal.h: Likewise.
45203         * lib/regex_internal.c: Likewise.
45204         * lib/regexec.c: Likewise.
45205         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45206
45207         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45208
45209         * lib/regexec.c (find_recover_state): Remove unnecessary
45210         initialization.
45211         (transit_state_bkref): Make DFA a const pointer.
45212         (get_subexp): Likewise.
45213         (check_arrival): Likewise.
45214         (update_cur_sifted_state): Likewise.
45215         (re_search_internal): Likewise.
45216         (prune_impossible_nodes): Likewise.
45217         (acquire_init_state_context): Likewise.
45218         (proceed_next_node): Likewise.
45219         (set_regs): Likewise.
45220         (free_fail_stack_return): Likewise.
45221         (check_arrival_expand_ecl): Mark DFA parameter as const.
45222         (check_arrival_expand_ecl_sub): Likewise.
45223         (check_subexp_limits): Likewise.
45224         (sub_epsilon_src_nodes):  Likewise.
45225         (add_epsilon_src_nodes):  Likewise.
45226         (merge_state_array): Likewise.
45227         (update_regs): Likewise.
45228         (build_trtable): Likewise.
45229         (sift_states_backward): Mark MCTX parameter as const.
45230         (build_sifted_states): Likewise.
45231         (update_cur_sifted_state): Likewise.
45232         (sift_states_mkref): Likewise.
45233         (check_arrival_expand_ecl): Mark eclosure as const.
45234         (check_dst_limits_calc_pos_1): Likewise.
45235         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45236         pointer.
45237
45238         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45239
45240         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45241         (transit_state_sb): Likewise.
45242         (transit_state_mb): Likewise.
45243         (sift_states_iter_mb): Likewise.
45244         (check_arrival_add_next_nodes): Likewise.
45245         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45246         [_LIBC] (re_search_2_stub): Use mempcpy.
45247
45248         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45249         mbrtowc for very simple UTF-8 case.
45250
45251         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45252         a pointer-to-const.
45253         (re_acquire_state_context): Likewise.
45254         * lib/regex_internal.h: Adjust prototypes.
45255
45256         * lib/regex.c: Prevent using C++ compilers.
45257
45258         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45259         (re_acquire_state_context): Likewise.
45260
45261 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45262
45263         * modules/regex (Depends-on): Add ssize_t.
45264
45265 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45266
45267         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45268         translation table.
45269
45270 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45271
45272         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45273
45274 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45275             Bruno Haible  <bruno@clisp.org>
45276
45277         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45278         <sys/types.h> and <inttypes.h>.
45279
45280 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45281
45282         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45283         `__error_t_defined', so argp.h will not typedef the former.
45284
45285 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45286
45287         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45288         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45289         glibc names.  Even if glibc is changed to conform to POSIX, the
45290         traditional names will be available anyway, since regex depends on
45291         the extensions module.  Also, fix a longstanding typo in the
45292         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45293         reported by Emanuele Giaquinta.  Also, change sense of cached
45294         variable, so that the message makes sense.
45295
45296 2006-03-24  Simon Josefsson  <jas@extundo.com>
45297
45298         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45299         including some doc fixes.
45300         (base64_encode_alloc): Fix +1 bug on allocation failures.
45301
45302 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45303
45304         * lib/base64.c (base64_encode): Do not read past end of array with
45305         unsanitized input on systems with CHAR_BIT > 8.
45306
45307 2006-03-24  Eric Blake  <ebb9@byu.net>
45308
45309         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45310
45311 2006-03-22  Karl Berry  <karl@gnu.org>
45312
45313         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45314         * config/srclistvars.sh (COREUTILS): new var.
45315
45316 2006-03-17  Jim Meyering  <jim@meyering.net>
45317
45318         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45319         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45320
45321 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45322
45323         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45324         no longer needs it.  Instead, check that regoff_t is as least
45325         as wide as ptrdiff_t.
45326
45327         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45328         so that our regex.h stays compatible with the installed regex.
45329         This is helpful for installers who configure --without-included-regex.
45330         Problem reported by Emanuele Giaquinta.
45331
45332 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45335         Typedef to long int, not to off_, as POSIX will likely change
45336         in that direction.
45337
45338 2006-03-15  Eric Blake  <ebb9@byu.net>
45339
45340         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45341
45342 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45343
45344         * lib/argp-help.c (validate_uparams): Fix typo
45345         * lib/argp-parse.c (argp_default_options): Consistently begin help
45346         messages with a lowercase letter.
45347
45348 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45349
45350         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45351         overrun buffers and shouldn't be used (much as gets shouldn't be
45352         used).
45353         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45354
45355 2006-03-08  Simon Josefsson  <jas@extundo.com>
45356
45357         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45358         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45359
45360 2006-03-08  Simon Josefsson  <jas@extundo.com>
45361
45362         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45363         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45364
45365 2006-03-08  Simon Josefsson  <jas@extundo.com>
45366
45367         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45368         signal that configure disabled the device.
45369
45370 2006-03-08  Simon Josefsson  <jas@extundo.com>
45371
45372         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45373         languages.
45374
45375 2006-03-07  Simon Josefsson  <jas@extundo.com>
45376
45377         * modules/getopt (Depends-on): Add unistd.
45378
45379         * modules/unistd: New file.
45380
45381 2006-03-07  Simon Josefsson  <jas@extundo.com>
45382
45383         * modules/gc-random: New file.
45384
45385 2006-03-07  Simon Josefsson  <jas@extundo.com>
45386
45387         * m4/unistd_h.m4: New file.
45388
45389 2006-03-07  Simon Josefsson  <jas@extundo.com>
45390
45391         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45392         test to be side-effect free by storing the result in the cache
45393         variable gl_cv_lib_readline, and moving the assignment of
45394         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45395         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45396
45397 2006-03-07  Simon Josefsson  <jas@extundo.com>
45398
45399         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45400         error on missing devices (the functions will return an error).
45401
45402         * m4/gc.m4: Move random stuff to gc-random.m4
45403
45404 2006-03-07  Simon Josefsson  <jas@extundo.com>
45405
45406         * lib/unistd_.h: New file.
45407
45408 2006-03-07  Simon Josefsson  <jas@extundo.com>
45409
45410         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45411
45412 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45413
45414         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45415         Problem reported by Juan Manuel Guerrero.
45416
45417 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45418
45419         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45420         the unistd module.
45421         * lib/getlogin_r.c: Likewise.
45422         * lib/getlogin_r.h: Likewise.
45423         * lib/glob.c: Likewise.
45424         * lib/pagealign_alloc.c: Likewise.
45425         * lib/unistd_.h: Remove; no longer needed.
45426
45427 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45428
45429         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45430         Add unistd.
45431         * modules/c-stack (Depends-on): Add unistd.
45432         * modules/getlogin_r: Likewise.
45433         * modules/glob: Likewise.
45434         * modules/pagealign_alloc: Likewise.
45435         * modules/unistd (Files): Remove lib/unistd_.h.
45436         (EXTRA_DIST): Remove.
45437         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45438         need unistd_.h.
45439         (MOSTLYCLEANFILES): Remove unistd.h-t.
45440
45441 2006-03-03  Simon Josefsson  <jas@extundo.com>
45442
45443         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45444
45445 2006-03-03  Simon Josefsson  <jas@extundo.com>
45446
45447         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45448         libidn and bison.
45449
45450 2006-03-03  Simon Josefsson  <jas@extundo.com>
45451
45452         * build-aux/maint.mk: Add indent target.
45453
45454 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45455
45456         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45457         our replacement poll.h in any case, to avoid a differing
45458         declaration from a system header.  Seen on AIX.
45459
45460 2006-03-01  Simon Josefsson  <jas@extundo.com>
45461
45462         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45463         <kasal@ucw.cz>.
45464
45465 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45466
45467         * modules/gettime (Depends-on): Add extensions module.
45468         * modules/nanosleep (Depends-on): Likewise.
45469         * modules/settime (Depends-on): Likewise.
45470
45471 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45472
45473         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45474         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45475         pedantically.
45476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45477         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45478
45479         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45480         not "==".  Reported by Ralf Wildenhues.
45481
45482 2006-03-01  Karl Berry  <karl@gnu.org>
45483
45484         * doc/Copyright/request-*: new files, synced from gnuorg.
45485
45486 2006-03-01  Karl Berry  <karl@gnu.org>
45487
45488         * config/srclist.txt (Copyright/*): new entries.
45489
45490 2006-02-28  Simon Josefsson  <jas@extundo.com>
45491
45492         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45493
45494 2006-02-27  Simon Josefsson  <jas@extundo.com>
45495
45496         * lib/base64.h: Indent #define's.  From Jim Meyering
45497         <jim@meyering.net>.
45498
45499 2006-02-27  Jim Meyering  <jim@meyering.net>
45500
45501         Revert the change of 2006-02-24, so these files can continue
45502         to be sync'd from gettext.
45503         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45504         of `config.h'.
45505
45506 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45507
45508         * modules/intprops: New file.
45509         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45510         Add intprops.
45511         * modules/getloadavg (Files): Remove lib/intprops.h.
45512         (Depends-on): Add intprops.
45513         * modules/human: Likewise.
45514         * modules/inttostr: Likewise.
45515         * modules/openat: Likewise.
45516         * modules/sig2str: Likewise.
45517         * modules/userspec: Likewise.
45518         * modules/utimecmp: Likewise.
45519         * modules/xnanosleep: Likewise.
45520         * modules/xstrtol: Likewise.
45521
45522 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45523
45524         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45525         * modules/lock-tests (TESTS): Use $(EXEEXT).
45526         * modules/tls-tests: Likewise.
45527         * modules/argp-tests: Likewise.
45528         (check_PROGRAMS): New var, replacing...
45529         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45530
45531 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45532
45533         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45534         `config.h'.
45535
45536 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45537
45538         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45539
45540 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45541
45542         Sync from coreutils.
45543         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45544         gl_CHDIR_SAFER.
45545
45546 2006-02-22  Jim Meyering  <jim@meyering.net>
45547
45548         Sync from coreutils.
45549         * m4/chdir-safer.m4: New file.
45550
45551 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45552
45553         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45554         AT_FDCWD exceeds INT_MAX.
45555         * lib/openat.h (AT_FDCWD): Likewise.
45556
45557 2006-02-17  Eric Blake  <address@hidden>
45558
45559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45560
45561 2006-02-16  Simon Josefsson  <jas@extundo.com>
45562
45563         * modules/getaddrinfo (Depends-on): Add sys_socket.
45564
45565 2006-02-15  Simon Josefsson  <jas@extundo.com>
45566
45567         * build-aux/maint.mk: Add dsyntax-check rule.
45568
45569 2006-02-15  Eric Blake  <ebb9@byu.net>
45570
45571         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45572         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45573         'present but cannot compile' warnings on cygwin.
45574         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45575         use ws2tcpip.h if sys/socket.h works.
45576         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45577         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45578
45579 2006-02-14  Simon Josefsson  <jas@extundo.com>
45580
45581         * modules/maintainer-makefile (Files): Rename.
45582
45583         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45584         and (the local) Makefile.cfg to maint-cfg.mk.
45585
45586         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45587         to the latter.
45588
45589         * modules/maintainer-makefile: New module.
45590
45591         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45592         severaly stripped to make it possible to build it up from scratch
45593         with reliable tests.
45594
45595         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45596         fixes to permit overriding the default actions when configure and
45597         makefile are not available.
45598
45599 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45600
45601         Sync from coreutils.
45602         * modules/lstat (Depends-on): Don't depend on xalloc.
45603         (License): Change from GPL to LGPL, since this is now simply a
45604         replacement for a libc function.
45605
45606 2006-02-14  Jim Meyering  <jim@meyering.net>
45607
45608         Sync from coreutils.
45609
45610         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45611         failure on deficient systems, and simplify gnulib lgpl dependencies.
45612         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45613         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45614
45615         * lib/xalloc-die.c: Remove unused definition of N_.
45616
45617 2006-02-14  Jim Meyering  <jim@meyering.net>
45618
45619         Sync from coreutils.
45620         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45621         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45622         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45623         double-quote uses of that variable, to accommodate the rare case in
45624         which getmntent is available in none of the libraries checked.  This
45625         happens at least on FreeBSD 5.0.
45626
45627 2006-02-13  Simon Josefsson  <jas@extundo.com>
45628
45629         * gnulib-tool (Usage): Fix --import, from
45630         karl@freefriends.org (Karl Berry).
45631
45632 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45633
45634         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45635
45636 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45637
45638         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45639         "autoupdate" on 2005-12-12.
45640
45641 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45642
45643         * modules/closeout (Depends-on): Remove atexit.
45644
45645 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45646
45647         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45648         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45649
45650 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45651
45652         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45653         __EXTENSIONS__ if this causes compilation to fail.  Problem
45654         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45655         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45656
45657 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45658
45659         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45660         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45661         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45662         All uses changed.
45663
45664 2006-01-26  Simon Josefsson  <jas@extundo.com>
45665
45666         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45667         prototype is visible on mingw32.
45668
45669         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45670         for mingw32.
45671
45672         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45673         mingw32).
45674
45675 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45676
45677         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45678         attempt to open for write; this always fails, at least on POSIX
45679         hosts.  This reinstates the 2006-01-09 change, which was
45680         inadvertently removed.
45681
45682 2006-01-26  Bruno Haible  <bruno@clisp.org>
45683
45684         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45685         Reported by Paul Eggert.
45686
45687 2006-01-26  Bruno Haible  <bruno@clisp.org>
45688             Paul Eggert  <eggert@cs.ucla.edu>
45689
45690         * lib/stdbool_.h (_Bool)
45691         [(! (defined __cplusplus || defined __BEOS__)
45692           && !defined __GNUC__
45693           && !(defined __HP_cc || defined __xlc__
45694                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45695                || defined __sgi))]:
45696         #define to signed char in these cases too; this simplifies
45697         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45698         etc., separately) and makes it more conservative.
45699
45700 2006-01-25  Simon Josefsson  <jas@extundo.com>
45701
45702         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45703         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
45704         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
45705
45706 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45707
45708         * lib/argp-namefrob.h: Bugfix. Remove stray #
45709
45710 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45711
45712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45713         so that we test the test.
45714         Check for yet another HP-UX cc bug involving *bool |= bool.
45715
45716 2006-01-25  Karl Berry  <karl@gnu.org>
45717
45718         * config/srclist.txt (vasnprintf.c): sync lost.
45719
45720 2006-01-25  Jim Meyering  <jim@meyering.net>
45721
45722         Sync from the stable (b5) branch of coreutils:
45723
45724         * lib/fts.c (fts_children): Don't let close() clobber errno from
45725         failed fchdir().
45726
45727         * lib/fts.c (fts_stat): When following a symlink-to-directory,
45728         don't necessarily interpret stat-fails+lstat-succeeds as indicating
45729         a dangling symlink.  That can also happen at least for ELOOP.
45730         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45731         FYI, this bug predates the inclusion of fts.c in coreutils.
45732
45733         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45734         in their own block, so pre-c99 compilers don't object.
45735
45736         Avoid the double-free (first in fts_read, second in fts_close) that
45737         would occur when an `active' directory is made inaccessible (e.g.,
45738         via chmod a-x) during a traversal.
45739         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45740         before returning.  Reproduce this failure by
45741         mkdir -p a/b; cd a; chmod a-x . b
45742         Reported by Stavros Passas.
45743
45744 2006-01-25  Jim Meyering  <jim@meyering.net>
45745
45746         * lib/fileblocks.c: Remove more useless parentheses.
45747         * lib/readutmp.h: Likewise.
45748
45749 2006-01-25  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45752         warnings.
45753         Reported by Paul Eggert.
45754
45755 2006-01-25  Bruno Haible  <bruno@clisp.org>
45756
45757         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
45758         rid of a trap command. For Solaris sh.
45759         Reported by Mark D. Baushke <mdb@gnu.org>.
45760
45761 2006-01-24  Simon Josefsson  <jas@extundo.com>
45762
45763         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
45764         Bruno.
45765
45766 2006-01-24  Karl Berry  <karl@gnu.org>
45767
45768         * config/srclist.txt (argp-namefrob.h): sync lost.
45769
45770 2006-01-24  Jim Meyering  <jim@meyering.net>
45771
45772         * modules/openat (Files): Add lib/intprops.h.
45773         From Mark D. Baushke.
45774
45775 2006-01-24  Jim Meyering  <jim@meyering.net>
45776
45777         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
45778         Reported by Mark D. Baushke.
45779
45780 2006-01-24  Jim Meyering  <jim@meyering.net>
45781
45782         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
45783
45784 2006-01-24  Bruno Haible  <bruno@clisp.org>
45785
45786         * modules/strnlen (Maintainer): Change from glibc to all.
45787
45788 2006-01-24  Bruno Haible  <bruno@clisp.org>
45789
45790         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
45791         Patch by Paul Eggert.
45792
45793 2006-01-24  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
45796         already has it.
45797         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
45798         2005-11-26.
45799
45800         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
45801         'signed char' to avoid problems with the built-in _Bool type.
45802         Reported by Paul Eggert on 2005-11-26.
45803
45804 2006-01-24  Bruno Haible  <bruno@clisp.org>
45805
45806         * gnulib-tool (func_import): Avoid constructing complicated sed
45807         expressions inside backquote.
45808         Report and solution by Mark D. Baushke <mdb@gnu.org>.
45809
45810 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
45811
45812         These changes imported from libc.
45813         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
45814         test and two separate function calls.
45815         * lib/strndup.c (__strndup): Add libc_hidden_def.
45816
45817 2006-01-23  Simon Josefsson  <jas@extundo.com>
45818
45819         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
45820         Remove the test_*_SOURCES variable: automake infers it by default.
45821         * modules/tls-tests: Likewise.
45822
45823 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45824
45825         Work around porting bugs reported by Dieter in
45826         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
45827         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
45828         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
45829         Include "getopt.h" first, to check interface.
45830         (getenv): Declare only if defined HAVE_DECL_GETENV &&
45831         !HAVE_DECL_GETENV.
45832         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
45833         (__strndup): Revert to K&R-style function dfns, the glibc style.
45834         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
45835         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
45836         Include strnlen.h first, to get prototype properly.
45837         (strnlen): Renamed from __strnlen.
45838         Remove weak alias.
45839
45840 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45841
45842         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
45843
45844 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45845
45846         * config/srclist.txt: Adjust to reflect glibc reorganization.
45847         This affects only comments.
45848
45849 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45850
45851          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
45852          Reported by Bruce Korb <bkorb@gnu.org>.
45853
45854 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
45857         to pacify gcc -Wswitch-default.
45858
45859 2006-01-22  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
45862         temporary buffer for sprintf, take into account the precision also
45863         for 'd', 'i', 'u', 'o', 'x', 'X'.
45864
45865 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45866
45867         * modules/argp-tests: New module
45868         * tests/test-argp.c: New file
45869         * tests/test-argp-2.sh: New file
45870
45871 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45872
45873         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
45874         (__argp_base_name): Removed
45875         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
45876         typo.
45877         (__argp_base_name): Provide macro definition or extern declaration
45878         depending on the configuration
45879
45880 2006-01-20  Simon Josefsson  <jas@extundo.com>
45881
45882         * modules/inet_ntop (Depends-on): Depend on sys_socket.
45883
45884 2006-01-20  Simon Josefsson  <jas@extundo.com>
45885
45886         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
45887
45888 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
45889
45890         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
45891         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
45892         Suggested by Bruno Haible.
45893
45894 2006-01-20  Karl Berry  <karl@gnu.org>
45895
45896         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
45897         until changes propagate, I guess.
45898
45899 2006-01-19  Simon Josefsson  <jas@extundo.com>
45900
45901         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
45902
45903 2006-01-19  Simon Josefsson  <jas@extundo.com>
45904
45905         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
45906
45907 2006-01-19  Simon Josefsson  <jas@extundo.com>
45908
45909         * gnulib-tool: Set check_PROGRAMS.
45910
45911         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45912         modules/des-tests, modules/gc-arcfour-tests,
45913         modules/gc-arctwo-tests, modules/gc-des-tests,
45914         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45915         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45916         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45917         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45918         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45919         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
45920         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
45921         test_*_SOURCES.
45922
45923 2006-01-18  Simon Josefsson  <jas@extundo.com>
45924
45925         * modules/socklen (Depends-on): Depend on sys_socket.
45926
45927 2006-01-18  Simon Josefsson  <jas@extundo.com>
45928
45929         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45930         modules/des-tests, modules/gc-arcfour-tests,
45931         modules/gc-arctwo-tests, modules/gc-des-tests,
45932         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45933         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45934         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45935         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45936         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45937         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
45938         $(EXEEXT) to automake TESTS variable, for mingw32.
45939
45940 2006-01-17  Simon Josefsson  <jas@extundo.com>
45941
45942         * modules/socklen (Include): Need sys/socket.h.
45943
45944 2006-01-17  Bruno Haible  <bruno@clisp.org>
45945
45946         * modules/ssize_t (Include): Add <sys/types.h>.
45947
45948 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
45951         it's not portable and it doesn't work with cross-compiles.
45952         Problem reported by Bruno Haible.  Fix missing-$ typo in
45953         'test "gl_cv_ignore_unused_libraries" ...' that prevented
45954         -zignore from being used with Sun's C compiler.
45955
45956 2006-01-12  Simon Josefsson  <jas@extundo.com>
45957
45958         * lib/base64.c: Fix warning, reported by Bruno Haible
45959         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
45960
45961 2006-01-12  Bruno Haible  <bruno@clisp.org>
45962
45963         * modules/ldd: New file.
45964         * build-aux/ldd.sh.in: New file.
45965         * MODULES.html.sh (Support for building libraries and executables): Add
45966         ldd.
45967
45968 2006-01-12  Bruno Haible  <bruno@clisp.org>
45969
45970         * m4/ldd.m4: New file.
45971
45972 2006-01-12  Bruno Haible  <bruno@clisp.org>
45973
45974         * gnulib-tool (func_import, func_create_testdir): Don't go into an
45975         endless loop while replacing $auxdir with build-aux.
45976
45977 2006-01-11  Simon Josefsson  <jas@extundo.com>
45978
45979         * lib/stdint_.h (SIZE_MAX): Add missing (.
45980
45981 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
45982
45983         Sync from coreutils.
45984         * lib/md5.c: Fix commentary typos.
45985         (alignof, UNALIGNED_P): No need for a GCC-specific version.
45986         * lib/md5.h (__attribute__): Remove; unused.
45987         * lib/sha1.c: Fix commentary to match md5 better.
45988         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
45989         so that we don't need to worry about alignment.  All uses changed.
45990         This merges the 2005-10-28 md5 change into sha1.
45991
45992 2006-01-11  Jim Meyering  <jim@meyering.net>
45993
45994         Sync from coreutils.
45995         * lib/md5.c (OP): Fix spacing.
45996
45997 2006-01-11  Bruno Haible  <bruno@clisp.org>
45998
45999         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46000         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46001         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46002
46003 2006-01-11  Bruno Haible  <bruno@clisp.org>
46004
46005         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46006         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46007         the "early" section as well.
46008
46009 2006-01-11  Bruno Haible  <bruno@clisp.org>
46010
46011         Avoid "ar: no archive members specified" error on MacOS X.
46012         * gnulib-tool (func_modules_add_dummy): New function.
46013         (func_import, func_create_testdir): Invoke it.
46014
46015 2006-01-11  Bruno Haible  <bruno@clisp.org>
46016
46017         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46018         with $auxdir in AC_CONFIG_FILES statements.
46019
46020 2006-01-11  Bruno Haible  <bruno@clisp.org>
46021
46022         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46023         Initialize also noinst_HEADERS to empty.
46024
46025 2006-01-11  Bruno Haible  <bruno@clisp.org>
46026
46027         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46028         variables.
46029         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46030         autoreconf.
46031
46032 2006-01-11  Bruno Haible  <bruno@clisp.org>
46033
46034         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46035         overridable by the user.
46036         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46037
46038 2006-01-10  Simon Josefsson  <jas@extundo.com>
46039
46040         * modules/sys_socket: New file.
46041
46042 2006-01-10  Simon Josefsson  <jas@extundo.com>
46043
46044         * m4/sys_socket_h.m4: New file.
46045
46046 2006-01-10  Simon Josefsson  <jas@extundo.com>
46047
46048         * lib/socket_.h: New file.
46049
46050 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46051
46052         * modules/readutmp (Maintainer): Add myself.
46053
46054 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46055
46056         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46057         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46058         People who are still concerned with buggy memcmp implementations
46059         can invoke gl_FUNC_MEMCMP themselves.
46060
46061 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46062
46063         * lib/regex_internal.h (BITSET_WORD_BITS):
46064         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46065         preprocessor mishandles large unsigned values as if they were signed.
46066         Problem reported by Claudio Fontana in
46067         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46068
46069 2006-01-10  Jim Meyering  <jim@meyering.net>
46070
46071         Avoid the double-free (first in fts_read, second in fts_close) that
46072         would occur when an `active' directory is made inaccessible (e.g.,
46073         via chmod a-x) during a traversal.
46074         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46075         before returning.  Reproduce this failure by
46076         mkdir -p a/b; cd a; chmod a-x . b
46077         Reported by Stavros Passas.
46078
46079         Sync from coreutils.
46080         * lib/sha1.c: Tweak grammar in a comment.
46081
46082 2006-01-10  Jim Meyering  <jim@meyering.net>
46083
46084         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46085         Patch by Joerg Sonnenberger.
46086
46087 2006-01-10  Bruno Haible  <bruno@clisp.org>
46088
46089         * modules/readutmp: Depend on module free.
46090         * modules/strtok_r: Depend on module restrict.
46091
46092 2006-01-10  Bruno Haible  <bruno@clisp.org>
46093
46094         * modules/gettext (configure.ac): Add an invocation of
46095         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46096
46097 2006-01-10  Bruno Haible  <bruno@clisp.org>
46098
46099         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46100         Reported by Werner Lemberg <wl@gnu.org>.
46101
46102 2006-01-10  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/localcharset.c: Update from GNU gettext.
46105
46106 2006-01-10  Bruno Haible  <bruno@clisp.org>
46107
46108         * lib/argp.h (__const): Remove macro. Use const instead.
46109         * lib/argp-fmtstream.h (__const): Likewise.
46110         * lib/glob_.h (__const): Remove macro.
46111         * lib/glob-libc.h: Use const instead of __const.
46112
46113 2006-01-10  Bruno Haible  <bruno@clisp.org>
46114
46115         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46116         variable.
46117         Needed to avoid an automake error regarding the 'gettext' module.
46118
46119 2006-01-09  Simon Josefsson  <jas@extundo.com>
46120
46121         * modules/inet_ntop (Depends-on): Add restrict.
46122
46123 2006-01-09  Simon Josefsson  <jas@extundo.com>
46124
46125         * modules/gc-rijndael-tests (License): Put under LGPL.
46126
46127         * modules/gc-des-tests (License): Likewise.
46128
46129         * modules/gc-arcfour-tests (License): Likewise.
46130
46131         * modules/gc-arctwo-tests (License): Likewise.
46132
46133         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46134
46135         * modules/gc-hmac-sha1-tests (Files): Likewise.
46136
46137         * modules/gc-hmac-md5-tests (License): Likewise.
46138
46139         * modules/gc-sha1-tests (License): Likewise.
46140
46141         * modules/gc-md5-tests (License): Likewise.
46142
46143         * modules/gc-md4-tests (License): Likewise.
46144
46145         * modules/gc-md2-tests (License): Likewise.
46146
46147         * modules/gc-tests (License): Likewise.
46148
46149         * modules/des-tests (License): Likewise.
46150
46151         * modules/md4-tests (License): Likewise.
46152
46153         * modules/md2-tests (License): Likewise.
46154
46155 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         Sync from coreutils:
46158
46159         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46160         * modules/lib-ignore: New file.
46161         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46162         chdir-safer.m4, lchmod.m4.
46163         * modules/openat: Add mkdirat.c, openat-priv.h.
46164
46165 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         Sync from coreutils.
46168         * m4/lib-ignore.m4: New file.
46169         * m4/lchmod.m4: New file.
46170
46171 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46172
46173         Sync from coreutils.
46174         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46175         for write access: POSIX says that must fail.
46176         * lib/fts.c (diropen): Likewise.
46177         * lib/save-cwd.c (save_cwd): Likewise.
46178         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46179         well, for minor improvements on hosts that lack O_DIRECTORY.
46180         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46181         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46182         Fall back on chown if open failed with EACCES.
46183
46184         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46185         Report an error at compile-time if only a 1-second nominal clock
46186         resolution is found.
46187
46188         * lib/lchmod.h: New file.
46189         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46190         (make_dir_parents): Use lchown rather than chown, and
46191         lchmod rather than chmod.
46192
46193         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46194         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46195         "proc" reported by n0dalus.
46196
46197         * lib/mountlist.c: Include <limits.h>.
46198         (dev_from_mount_options)
46199         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46200         New function.  It no longer assumes "dev=" has the System V meaning
46201         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46202         (read_file_system_list)
46203         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46204         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46205         dev= in that case.
46206
46207         * lib/posixtm.h (PDS_PRE_2000): New macro.
46208         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46209         allow_century.  All usages changed.  Reject dates outside the range
46210         1969-1999 if PDS_PRE_2000 is used.
46211
46212 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46213
46214         Sync from coreutils.
46215         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46216         (Time of day items): Mention the possibility of leap seconds.
46217         Problem reported by Dr. David Alan Gilbert.
46218
46219 2006-01-09  Jim Meyering  <jim@meyering.net>
46220
46221         Sync from coreutils.
46222
46223         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46224
46225         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46226
46227         * lib/modechange.c (mode_compile): Reject an invalid mode string
46228         that starts with an octal digit.  From Andreas Gruenbacher.
46229
46230         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46231         and dup to open_safer and dup_safer, respectively.
46232         (openat_permissive): Fix typo in comment.
46233
46234         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46235         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46236         (_): Remove; no longer needed.
46237         (openat): Renamed from rpl_openat; no need for rpl_openat
46238         since openat.h renames openat for us.
46239         Replace most of the body with a call to openat_permissive,
46240         to avoid duplicate code.
46241         Port to (probably hypothetical) environments were mode_t is
46242         wider than int.
46243         (openat_permissive): Require mode arg, so that we can check
46244         types better.  Put it just after flags.  Change cwd failure
46245         indicator from pointer-to-bool to pointer-to-errno-value.
46246         All callers changed.
46247         Invoke openat_save_fail and/or openat_restore_fail if
46248         cwd_errno is null, so that openat can call us.
46249         (openat_permissive, fdopendir, fstatat, unlinkat):
46250         Simplify errno handling to avoid some duplicate code,
46251         as it's OK to set errno on success.
46252         * lib/openat.h: Revamp code so that function macros depend on
46253         __OPENAT_PREFIX only, not also on AT_FDCWD.
46254         (openat_ro): Remove.  Caller changed to use openat_permissive.
46255         (openat_permissive): Now a macro, if not a function.
46256         (openat_restore_fail, openat_save_fail): Now always functions,
46257         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46258
46259         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46260         and openat.c.
46261         * lib/mkdirat.c: Include openat-priv.h.
46262         Remove definitions of macros defined therein.
46263         * lib/openat.c: Likewise.
46264
46265         * lib/mkdirat.c (mkdirat): New file and function.
46266         * lib/openat.h (mkdirat): Declare.
46267
46268         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46269
46270         * lib/openat.h (openat_permissive): Declare.
46271         (openat_ro): Define.
46272
46273         * lib/openat.c (EXPECTED_ERRNO): New macro.
46274         (openat_permissive): New function -- used in remove.c rewrite.
46275         (all functions): Set errno just before returning, only if there
46276         was an actual failure.
46277         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46278
46279         Emulate openat-family functions using Linux's procfs, if possible.
46280         Idea and some code based on Ulrich Drepper's glibc changes.
46281
46282         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46283         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46284         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46285         before falling back on save_cwd and restore_cwd.
46286         (fdopendir, fstatat, unlinkat): Likewise.
46287
46288         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46289         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46290
46291         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46292         as second argument to va_arg.  Otherwise, some versions of gcc
46293         warn that `if this code is reached, the program will abort'.
46294
46295 2006-01-09  Jim Meyering  <jim@meyering.net>
46296
46297         Sync from coreutils.
46298         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46299         Require openat-priv.h.
46300
46301 2006-01-09  Bruno Haible  <bruno@clisp.org>
46302
46303         * modules/strnlen (Include): Use strnlen.h.
46304
46305 2006-01-09  Bruno Haible  <bruno@clisp.org>
46306
46307         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46308
46309 2006-01-09  Bruno Haible  <bruno@clisp.org>
46310
46311         * lib/sysexit_.h (EX_OK): New macro.
46312         Suggested by Martin Lambers <marlam@marlam.de>.
46313
46314 2006-01-09  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46317         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46318
46319 2006-01-09  Bruno Haible  <bruno@clisp.org>
46320
46321         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46322         numbers.
46323
46324 2006-01-09  Bruno Haible  <bruno@clisp.org>
46325
46326         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46327         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46328         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46329         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46330
46331 2006-01-09  Bruno Haible  <bruno@clisp.org>
46332
46333         * build-aux/javacomp.sh.in: New file, moved from lib/.
46334         * modules/javacomp-script (Files): Update.
46335         (configure.ac): Add AC_CONFIG_FILES invocation.
46336         (EXTRA_DIST): Remove variable.
46337
46338         * build-aux/javaexec.sh.in: New file, moved from lib/.
46339         * modules/javaexec (Files): Update.
46340         (configure.ac): Add AC_CONFIG_FILES invocation.
46341         (EXTRA_DIST): Remove javaexec.sh.in.
46342
46343         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46344         * modules/csharpcomp-script (Files): Update.
46345         (configure.ac): Add AC_CONFIG_FILES invocation.
46346         (EXTRA_DIST): Remove variable.
46347
46348         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46349         * modules/csharpexec (Files): Update.
46350         (configure.ac): Add AC_CONFIG_FILES invocation.
46351         (EXTRA_DIST): Remove csharpexec.sh.in.
46352
46353 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46354
46355         Sync from coreutils.
46356
46357         Add POSIX ACL support
46358         * lib/acl.h (copy_acl, set_acl): Add declarations.
46359         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46360         systems other than Linux.
46361         (chmod_or_fchmod): New function: use fchmod when possible,
46362         and chmod otherwise.
46363         (file_has_acl): Add a POSIX ACL implementation, with a
46364         Linux-specific subcase.
46365         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46366         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46367         acls are unsupported.
46368         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46369         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46370         are unsupported.
46371
46372 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46373
46374         Sync from coreutils.
46375         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46376
46377 2006-01-07  Bruno Haible  <bruno@clisp.org>
46378
46379         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46380         gl_EARLY.
46381
46382 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46383
46384         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46385         Problem reported for Mingw by Mark Junker.
46386
46387 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * README: Gnulib normally doesn't generate a tarball.
46390
46391 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46392
46393         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46394         long int, not int, for nanosecond counts, so that people who are
46395         used to POSIX struct timespec won't be surprised.  Reported by Jim
46396         Meyering.
46397
46398 2005-12-28  Bruno Haible  <bruno@clisp.org>
46399
46400         * build-aux/config.rpath: Update from GNU gettext.
46401
46402 2005-12-16  Jim Meyering  <jim@meyering.net>
46403
46404         * modules/fprintftime: New module.
46405         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46406
46407 2005-12-16  Jim Meyering  <jim@meyering.net>
46408
46409         * m4/fprintftime.m4: New file.
46410
46411 2005-12-16  Jim Meyering  <jim@meyering.net>
46412
46413         * lib/fprintftime.c, lib/fprintftime.h: New files.
46414
46415 2005-12-15  Simon Josefsson  <jas@extundo.com>
46416
46417         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46418         new m4/socklen.m4.
46419
46420 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46421
46422         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46423         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46424
46425 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46426
46427         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46428         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46429         struct uparams is valid. Fall back to the default values if it is
46430         not.
46431
46432 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46433
46434         * modules/argp (Files): Add argp-pin.c
46435         (Depends-on): dirname
46436         (lib_SOURCES): Add argp-pin.c
46437
46438 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46439
46440         * m4/argp.m4:  Check if program_invocation_name and
46441         program_invocation_short_name are declared and define appropriate
46442         macros if they are not.
46443
46444 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46445
46446         * lib/argp-help.c (__argp_base_name): New function
46447         (__argp_short_program_name): Rewrite using __argp_base_name
46448         * lib/argp-namefrob.h: Define program_invocation_name and
46449         program_invocation_short_name if requested
46450         (__argp_base_name): Add prototype
46451         * lib/argp-parse.c (argp_def): Use gettext wrappers
46452         (argp_default_parser): Use __argp_base_name
46453         * lib/argp-pin.c: New file. Defines program_invocation_name and
46454         program_invocation_short_name on systems that lack them.
46455
46456 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46457
46458         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46459         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46460         porting problem reported by Georg Schwarz in
46461         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46462
46463 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46464
46465         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46466         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46467         porting problem reported by Georg Schwarz in
46468         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46469
46470 2005-12-05  Bruno Haible  <bruno@clisp.org>
46471
46472         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46473         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46474         Reported by Mark Junker <mjscod@gmx.de>.
46475
46476 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46477
46478         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46479         Use implementation from Albert Chin, with some
46480         comments/corrections by Stepan Kasal and myself.
46481
46482 2005-12-02  Bruno Haible  <bruno@clisp.org>
46483
46484         * gnulib-tool (func_import): Accept GPLed build tool modules when
46485         --lgpl is given.
46486         * modules/csharpcomp-script: New file.
46487         * modules/csharpcomp: Depend on it.
46488         * modules/javacomp-script: New file.
46489         * modules/javacomp: Depend on it.
46490         Suggested by Simon Josefsson.
46491
46492 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46493
46494         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46495         statement, to work around an HP-UX 10.20 compiler bug reported by
46496         Peter O'Gorman.
46497
46498 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46499
46500         * modules/savedir (Depends-on): Add openat.
46501
46502 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46503
46504         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46505         (uintmax_t) [defined uintmax_t]: Do not declare.
46506         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46507         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46508         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46509         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46510         sake of portability to weird hosts that C allows (though we don't
46511         know of any practical examples).
46512
46513         * lib/savedir.h (fdsavedir): New decl.
46514         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46515         contains most of the former guts of savedir.
46516         (savedir): Use savedirstream.
46517         Include "openat.h".
46518
46519 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46520
46521         * modules/obstack (Files): Add m4/ulonglong.m4.
46522         Problem reported by Davide Angelocola.
46523
46524 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46525
46526         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46527         coreutils no longer futzes with rounding modes.
46528
46529 2005-11-14  Jim Meyering  <jim@meyering.net>
46530
46531         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46532         replacement of mkstemp.
46533
46534 2005-11-10  Simon Josefsson  <jas@extundo.com>
46535
46536         * lib/readline.c: Remove EOL.
46537
46538 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46539
46540         * modules/gethrxtime (Depends-on): Add gettime.
46541
46542 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46543
46544         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46545         or gettimeofday; no longer needed.
46546
46547 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46548
46549         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46550         time business.
46551         (gethrxtime) [! (HAVE_NANOUPTIME
46552         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46553         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46554         our own approximation.
46555
46556 2005-11-08  Eric Blake  <ebb9@byu.net>
46557
46558         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46559
46560 2005-11-08  Eric Blake  <ebb9@byu.net>
46561
46562         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46563
46564 2005-11-04  Bruno Haible  <bruno@clisp.org>
46565
46566         * gnulib-tool: Implement --update mode.
46567
46568 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46569
46570         Fix porting problem reported by Theodoros V. Kalamatianos.
46571         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46572         Don't assume that futimes failing means we must fail.
46573
46574 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46577         variables to suggest the intended function of the PATH_MAX check.
46578
46579 2005-10-30  Kean Johnston  <jkj@sco.com>
46580
46581         Trivial changes to support SCO systems.
46582         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46583         as PATH_MAX.
46584         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46585         where __ptr is null when no I/O is pending.
46586
46587 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46588
46589         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46590         leave errno alone.  Problem reported by Dmitry V. Levin.
46591
46592 2005-10-28  Simon Josefsson  <jas@extundo.com>
46593
46594         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46595         Test more.
46596
46597         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46598
46599         * modules/md2, modules/md2-tests: New files.
46600
46601 2005-10-28  Simon Josefsson  <jas@extundo.com>
46602
46603         * m4/inet_ntop.m4: More tests.
46604
46605         * m4/gc-md2.m4, md2.m4: New file.
46606
46607 2005-10-28  Simon Josefsson  <jas@extundo.com>
46608
46609         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46610         "restrict" keywords, as per POSIX.  Protect the function
46611         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46612         Don't use K&R prototypes.  Check the sprintf return values.
46613         Re-define EAFNOSUPPORT if not present.  Indent.
46614
46615         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46616         suggested by Bruno Haible <bruno@clisp.org>.
46617
46618         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46619
46620         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46621
46622         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46623         libgcrypt).
46624
46625         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46626
46627         * lib/md2.h, lib/md2.c: New files.
46628
46629 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46630
46631         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46632         errno alone.  Problem reported by Frederic Jolliton.
46633
46634 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46635
46636         * modules/verify (License): Change from GPL to LGPL.  This is a
46637         tiny module and there are apparently near-equivalents that are
46638         under the BSD license.
46639
46640 2005-10-24  Simon Josefsson  <jas@extundo.com>
46641
46642         * modules/sha1: Relicense to LGPL.
46643
46644 2005-10-24  Simon Josefsson  <jas@extundo.com>
46645
46646         * lib/md4.h: Shrink buffer size, now that we changed the type.
46647
46648 2005-10-23  Simon Josefsson  <jas@extundo.com>
46649
46650         * gnulib-tool (func_import): Fix --tests-base.
46651
46652 2005-10-22  Simon Josefsson  <jas@extundo.com>
46653
46654         * modules/arcfour (Depends-on): Need stdint.
46655
46656 2005-10-22  Simon Josefsson  <jas@extundo.com>
46657
46658         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46659         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46660
46661 2005-10-22  Simon Josefsson  <jas@extundo.com>
46662
46663         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46664         suggested by Bruno Haible <bruno@clisp.org>.
46665
46666 2005-10-22  Simon Josefsson  <jas@extundo.com>
46667
46668         * lib/crc.h: Include stddef.h, for size_t.
46669
46670 2005-10-22  Simon Josefsson  <jas@extundo.com>
46671
46672         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46673         arcfour_context struct (simplify test vector testing in GNU
46674         Shishi).
46675
46676 2005-10-21  Simon Josefsson  <jas@extundo.com>
46677
46678         * modules/des, modules/des-tests: New files.
46679
46680         * modules/gc-des, modules/gc-des-tests: New files.
46681
46682         * tests/test-des.c, tests/test-gc-des.c: New file.
46683
46684 2005-10-21  Simon Josefsson  <jas@extundo.com>
46685
46686         * modules/arctwo, modules/arctwo-tests: New files.
46687
46688         * tests/test-arctwo.c: New file.
46689
46690         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46691
46692         * tests/test-gc-arctwo.c: New file.
46693
46694 2005-10-21  Simon Josefsson  <jas@extundo.com>
46695
46696         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46697         Bruno Haible <bruno@clisp.org>.
46698
46699         * m4/gc-des.m4: New file.
46700
46701 2005-10-21  Simon Josefsson  <jas@extundo.com>
46702
46703         * m4/arctwo.m4: New file.
46704
46705         * m4/gc-arctwo.m4: New file.
46706
46707 2005-10-21  Simon Josefsson  <jas@extundo.com>
46708
46709         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46710         block.
46711
46712 2005-10-21  Simon Josefsson  <jas@extundo.com>
46713
46714         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46715         <bruno@clisp.org>.
46716
46717         * lib/hmac-sha1.c (hmac_sha1): Likewise.
46718
46719         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46720         Bruno Haible <bruno@clisp.org>.
46721
46722         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46723         <bruno@clisp.org>.
46724
46725 2005-10-21  Simon Josefsson  <jas@extundo.com>
46726
46727         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46728
46729 2005-10-21  Simon Josefsson  <jas@extundo.com>
46730
46731         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46732
46733 2005-10-21  Simon Josefsson  <jas@extundo.com>
46734
46735         * lib/des.h, lib/des.c: New files.
46736
46737         * lib/gc-gnulib.c: Support DES.c
46738
46739 2005-10-21  Simon Josefsson  <jas@extundo.com>
46740
46741         * lib/arctwo.h, lib/arctwo.c: New files.
46742
46743         * lib/gc-gnulib.c: Support ARCTWO.
46744
46745 2005-10-21  Simon Josefsson  <jas@extundo.com>
46746
46747         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46748         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46749
46750 2005-10-21  Simon Josefsson  <jas@extundo.com>
46751
46752         * gnulib-tool (func_import, func_create_testdir): Define automake
46753         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46754         Makefile.am snippet),
46755         suggested by Bruno Haible <bruno@clisp.org>.
46756
46757         * modules/gc (Makefile.am): Use it.
46758
46759 2005-10-21  Bruno Haible  <bruno@clisp.org>
46760
46761         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
46762         patch.
46763
46764 2005-10-19  Simon Josefsson  <jas@extundo.com>
46765
46766         * tests/test-gc-rijndael.c: New file.
46767
46768         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
46769
46770 2005-10-19  Simon Josefsson  <jas@extundo.com>
46771
46772         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
46773         interface too.
46774
46775 2005-10-19  Simon Josefsson  <jas@extundo.com>
46776
46777         * tests/test-gc-arcfour.c: New file.
46778
46779         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
46780
46781 2005-10-19  Simon Josefsson  <jas@extundo.com>
46782
46783         * modules/gc-md4, modules/gc-md4-tests: New file.
46784
46785         * tests/test-gc-md4.c: New file.
46786
46787 2005-10-19  Simon Josefsson  <jas@extundo.com>
46788
46789         * m4/gc-md4.m4: New file.
46790
46791 2005-10-19  Simon Josefsson  <jas@extundo.com>
46792
46793         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
46794         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
46795         <kasal@ucw.cz>.
46796
46797 2005-10-19  Simon Josefsson  <jas@extundo.com>
46798
46799         * m4/gc-arcfour.m4: New file.
46800
46801         * m4/gc-rijndael.m4: New file.
46802
46803 2005-10-19  Simon Josefsson  <jas@extundo.com>
46804
46805         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
46806
46807 2005-10-19  Simon Josefsson  <jas@extundo.com>
46808
46809         * lib/gc-gnulib.c: Support ARCFOUR.
46810
46811 2005-10-19  Simon Josefsson  <jas@extundo.com>
46812
46813         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
46814         support.
46815
46816         * lib/gc.h: Add ECB enum type.
46817
46818         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
46819
46820 2005-10-18  Simon Josefsson  <jas@extundo.com>
46821
46822         * tests/test-md5.c: New file.
46823
46824         * modules/md5-tests: New file.
46825
46826 2005-10-18  Simon Josefsson  <jas@extundo.com>
46827
46828         * tests/test-md4.c: New file.
46829
46830         * modules/md4, modules/md4-tests: New files.
46831
46832 2005-10-18  Simon Josefsson  <jas@extundo.com>
46833
46834         * m4/md4.m4: New file.
46835
46836 2005-10-18  Simon Josefsson  <jas@extundo.com>
46837
46838         * lib/md4.h, lib/md4.c: New files, based on md5.?.
46839
46840 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
46841
46842         * gnulib-tool (func_create_testdir): Omit the second check whether
46843         BUILT_SOURCES in nonempty.
46844
46845 2005-10-17  Simon Josefsson  <jas@extundo.com>
46846
46847         * tests/test-rijndael.c: New file.
46848
46849 2005-10-17  Simon Josefsson  <jas@extundo.com>
46850
46851         * modules/sha1: Depend on stdint instead of md5.
46852
46853         * modules/md5: Depend on stdint, remove uint32_t.
46854
46855 2005-10-17  Simon Josefsson  <jas@extundo.com>
46856
46857         * modules/gc-sha1-tests: New file.
46858
46859         * tests/test-gc-sha1.c: New file.
46860
46861 2005-10-17  Simon Josefsson  <jas@extundo.com>
46862
46863         * m4/md5.m4: Remove call to uint32_t.m4.
46864
46865 2005-10-17  Simon Josefsson  <jas@extundo.com>
46866
46867         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
46868
46869         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
46870         md5.h.
46871
46872         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
46873
46874         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
46875
46876 2005-10-17  Simon Josefsson  <jas@extundo.com>
46877
46878         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
46879
46880 2005-10-17  Simon Josefsson  <jas@extundo.com>
46881
46882         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
46883
46884 2005-10-17  Simon Josefsson  <jas@extundo.com>
46885
46886         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
46887
46888         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
46889
46890 2005-10-17  Bruno Haible  <bruno@clisp.org>
46891
46892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
46893         that it can also be used in a test.
46894
46895 2005-10-16  Bruno Haible  <bruno@clisp.org>
46896
46897         * gnulib-tool (func_emit_tests_Makefile_am): Also define
46898         TESTS_ENVIRONMENT, so that individual tests can augment it.
46899
46900         * gnulib-tool (func_create_testdir): Use an intermediate target for
46901         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
46902         macros, like $(ALLOCA_H), which cannot be passed through the command
46903         line.
46904
46905 2005-10-15  Simon Josefsson  <jas@extundo.com>
46906
46907         * modules/rijndael-tests: New file.
46908
46909         * modules/rijndael: New file.
46910
46911 2005-10-15  Simon Josefsson  <jas@extundo.com>
46912
46913         * m4/rijndael.m4: New file.
46914
46915 2005-10-15  Simon Josefsson  <jas@extundo.com>
46916
46917         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
46918
46919         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
46920
46921 2005-10-14  Simon Josefsson  <jas@extundo.com>
46922
46923         * tests/test-arcfour.c: New file.
46924
46925         * modules/arcfour, modules/arcfour-tests: New files.
46926
46927 2005-10-14  Simon Josefsson  <jas@extundo.com>
46928
46929         * m4/arcfour.m4: New file.
46930
46931 2005-10-14  Simon Josefsson  <jas@extundo.com>
46932
46933         * lib/arcfour.h, lib/arcfour.c: New files.
46934
46935 2005-10-14  Roland McGrath  <roland@redhat.com>
46936
46937         Import from libc.  [BZ #1331]
46938         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
46939         macro argument.
46940         Reported by Matej Vela <vela@debian.org>.
46941
46942 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46943
46944         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
46945         include <wchar.h>; no longer needed.
46946
46947 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46948
46949         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
46950
46951 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
46952         and  Ulrich Drepper  <drepper@redhat.com>
46953
46954         Import from libc.
46955         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
46956         instead of inline stream orientation test and two separate
46957         function calls.  Pay no attention to USE_IN_LIBIO.
46958
46959 2005-10-13  Simon Josefsson  <jas@extundo.com>
46960
46961         * modules/gc-hmac-md5-tests: New file.
46962
46963         * tests/test-gc-hmac-sha1.c: New file.
46964
46965         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
46966
46967         * modules/gc-hmac-md5-tests: New file.
46968
46969         * tests/test-gc-md5.c: New file.
46970
46971         * modules/gc-md5-tests: New file.
46972
46973 2005-10-13  Simon Josefsson  <jas@extundo.com>
46974
46975         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
46976         Move memory allocation outside of loop.
46977
46978 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
46979
46980         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
46981         intermediate directory is in a read-only file system.  Problem
46982         reported by Eric Blake.
46983
46984 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
46985
46986         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
46987
46988 2005-10-12  Simon Josefsson  <jas@extundo.com>
46989
46990         * tests/test-hmac-sha1.c: New file.
46991
46992         * modules/hmac-sha1-tests: New file.
46993
46994         * modules/hmac-sha1: New file.
46995
46996 2005-10-12  Simon Josefsson  <jas@extundo.com>
46997
46998         * modules/gc-sha1: New file.
46999
47000 2005-10-12  Simon Josefsson  <jas@extundo.com>
47001
47002         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47003
47004         * tests/test-gc-pbkdf2-sha1.c: New file.
47005
47006 2005-10-12  Simon Josefsson  <jas@extundo.com>
47007
47008         * modules/gc-md5, modules/gc-hmac-md5: New files.
47009
47010         * modules/gc (Files): Remove md5, memxor and hmac files.
47011
47012 2005-10-12  Simon Josefsson  <jas@extundo.com>
47013
47014         * m4/gc-pbkdf2-sha1.m4: New file.
47015
47016         * m4/gc-hmac-sha1.m4: New file.
47017
47018         * m4/gc-sha1: New file.
47019
47020         * m4/hmac-sha1.m4: New file.
47021
47022 2005-10-12  Simon Josefsson  <jas@extundo.com>
47023
47024         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47025
47026         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47027
47028 2005-10-12  Simon Josefsson  <jas@extundo.com>
47029
47030         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47031         suggested by Bruno Haible <bruno@clisp.org>.
47032
47033 2005-10-12  Simon Josefsson  <jas@extundo.com>
47034
47035         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47036
47037 2005-10-12  Simon Josefsson  <jas@extundo.com>
47038
47039         * lib/gc-pbkdf2-sha1.c: New file.
47040
47041         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47042
47043 2005-10-12  Simon Josefsson  <jas@extundo.com>
47044
47045         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47046
47047         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47048
47049 2005-10-12  Simon Josefsson  <jas@extundo.com>
47050
47051         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47052         GC_USE_HMAC_MD5, respectively.
47053
47054         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47055         (gc_md5): Fix typo.
47056
47057         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47058
47059         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47060
47061         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47062
47063 2005-10-12  Bruno Haible  <bruno@clisp.org>
47064
47065         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47066         Reported by Stepan Kasal <kasal@ucw.cz>.
47067
47068 2005-10-11  Simon Josefsson  <jas@extundo.com>
47069
47070         * tests/test-crc.c: New file.
47071
47072         * modules/crc, modules/crc-tests: New files.
47073
47074 2005-10-11  Simon Josefsson  <jas@extundo.com>
47075
47076         * m4/crc.m4: New file.
47077
47078 2005-10-11  Simon Josefsson  <jas@extundo.com>
47079
47080         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47081
47082         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47083
47084         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47085
47086 2005-10-11  Simon Josefsson  <jas@extundo.com>
47087
47088         * lib/crc.h, lib/crc.c: New files.
47089
47090         * lib/gc.h (gc_hash_buffer): Add doc.
47091
47092 2005-10-11  Bruno Haible  <bruno@clisp.org>
47093
47094         * modules/c-strcasestr: New file.
47095         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47096
47097 2005-10-11  Bruno Haible  <bruno@clisp.org>
47098
47099         * modules/c-strcase: New file.
47100         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47101
47102 2005-10-11  Bruno Haible  <bruno@clisp.org>
47103
47104         * lib/strcasecmp.c: Include limits.h.
47105         (strcasecmp): Avoid integer overflow on exotic platforms.
47106         * lib/strncasecmp.c: Include limits.h.
47107         (strncasecmp): Avoid integer overflow on exotic platforms.
47108         Reported by Paul Eggert.
47109
47110 2005-10-11  Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/c-strcasestr.h: New file, from GNU gettext.
47113         * lib/c-strcasestr.c: New file, from GNU gettext.
47114
47115 2005-10-11  Bruno Haible  <bruno@clisp.org>
47116
47117         * lib/c-strcase.h: New file, from GNU gettext.
47118         * lib/c-strcasecmp.c: New file, from GNU gettext.
47119         * lib/c-strncasecmp.c: New file, from GNU gettext.
47120
47121 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47122
47123         * modules/mempcpy (License): GPL -> LGPL.
47124         * modules/strchrnul (License): Likewise.
47125         * modules/sysexits (License): Likewise.
47126
47127 2005-10-08  Simon Josefsson  <jas@extundo.com>
47128
47129         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47130
47131 2005-10-07  Simon Josefsson  <jas@extundo.com>
47132
47133         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47134
47135 2005-10-06  Simon Josefsson  <jas@extundo.com>
47136
47137         * tests/test-hmac-md5.c: New file.
47138
47139         * modules/hmac-md5-tests: New file.
47140
47141         * modules/hmac-md5: New file.
47142
47143 2005-10-06  Simon Josefsson  <jas@extundo.com>
47144
47145         * m4/hmac-md5.m4: New file.
47146
47147         * m4/memxor.m4: Require gl_C_RESTRICT.
47148
47149 2005-10-06  Simon Josefsson  <jas@extundo.com>
47150
47151         * lib/memxor.c (memxor): Avoid casts and warnings.
47152
47153 2005-10-06  Simon Josefsson  <jas@extundo.com>
47154
47155         * lib/hmac-md5.c: New file.
47156
47157         * lib/hmac.h: New file.
47158
47159 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47160
47161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47162         promotes to int, not unsigned int, to catch the AIX 5.3
47163         compiler bug.
47164
47165 2005-10-05  Simon Josefsson  <jas@extundo.com>
47166
47167         * modules/memxor: New file.
47168
47169         * modules/iconv (Files): Move config.rpath to havelib, it is used
47170         there.
47171
47172         * modules/havelib (Files): Add config.rpath.
47173
47174 2005-10-05  Simon Josefsson  <jas@extundo.com>
47175
47176         * m4/memxor.m4: New file.
47177
47178 2005-10-05  Simon Josefsson  <jas@extundo.com>
47179
47180         * lib/memxor.c (memxor): Fix compiler error.
47181
47182         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47183         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47184
47185         * lib/memxor.h, lib/memxor.c: New files.
47186
47187         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47188         we assume all systems have it, suggested by Jim Meyering
47189         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47190         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47191         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47192         same reasons.
47193
47194 2005-10-05  Simon Josefsson  <jas@extundo.com>
47195
47196         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47197
47198 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47199
47200         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47201         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47202         needed, since the source code now assumes these .h files.
47203
47204 2005-10-05  Derek Price  <derek@ximbiot.com>
47205
47206         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47207
47208 2005-10-05  Bruno Haible  <bruno@clisp.org>
47209
47210         * modules/stdint (License): Change to LGPL.
47211
47212 2005-10-04  Simon Josefsson  <jas@extundo.com>
47213
47214         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47215         D. Baushke" <mdb@gnu.org>.
47216
47217 2005-10-04  Bruno Haible  <bruno@clisp.org>
47218
47219         * lib/verify.h (verify_true): Provide alternative definition for C++.
47220
47221 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47222
47223         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47224         (SSIZE_MAX): New macro, if not already defined.
47225         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47226         than 2 GiB.
47227
47228 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47229
47230         Sync from coreutils.
47231         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47232         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47233         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47234         ULLONG_MAX doesn't work with 2.7.2.1.
47235
47236 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47237
47238         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47239         From Ben Pfaff.
47240
47241         * modules/exclude (Depends-on): Depend on verify.
47242         * modules/strtoimax (Depends-on): Likewise.
47243         * modules/utimecmp (Depends-on): Likewise.
47244
47245 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47246
47247         * lib/exclude.c: Include verify.h.
47248         (verify): Remove.  All callers changed to use verify.h's version.
47249         * lib/strtoimax.c: Likewise.
47250         * lib/utimecmp.c: Likewis.e
47251
47252         Sync from coreutils.
47253         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47254         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47255         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47256         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47257         bother returning ENOSYS if settimeofday or stime fails; just let
47258         them return whatever errno they want to return.
47259         * lib/utimens.c: Include unistd.h, for dup2.
47260         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47261         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47262
47263 2005-10-02  Jim Meyering  <jim@meyering.net>
47264
47265         Sync from coreutils.
47266         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47267         from glibc-2.2.5 that fails for read-only files.
47268
47269 2005-10-02  Jim Meyering  <jim@meyering.net>
47270
47271         Sync from coreutils.
47272         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47273         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47274         `#if HAVE_CONFIG_H'.
47275         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47276         Remove AT_FDCWD test.
47277         Do not consume the fd unless successful.
47278         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47279         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47280         block, so that we don't even try to compile it if settimeofday is
47281         available.  This works around a compilation failure on OSF1 V5.1,
47282         due to stime requiring a `long int*' while tv_sec is `int'.
47283
47284 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47285
47286         Sync from coreutils.
47287         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47288         against `yes', rather than just testing for nonempty.
47289
47290 2005-10-01  Simon Josefsson  <jas@extundo.com>
47291
47292         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47293         and Darwin.
47294
47295         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47296         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47297         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47298         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47299         Check if struct addrinfo is declared.
47300
47301 2005-10-01  Simon Josefsson  <jas@extundo.com>
47302
47303         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47304         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47305         AI_* and EAI_* definitions.  Protect function declarations.
47306
47307 2005-10-01  Jim Meyering  <jim@meyering.net>
47308
47309         Sync from coreutils.
47310
47311         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47312         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47313         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47315         in the inet and nsl libraries.  Required on Solaris 5.7.
47316
47317 2005-10-01  Jim Meyering  <jim@meyering.net>
47318
47319         Sync from coreutils.
47320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47321         in the inet and nsl libraries.  Required on Solaris 5.7.
47322
47323 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47324
47325         * lib/getdelim.c (getdelim): Remove unused variables.
47326
47327 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47328
47329         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47330         so that the code works even with ancient cpp.  Portability problem
47331         with GCC 2.7.2.1 reported by Thomas M.Ott.
47332
47333 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47334
47335         * modules/regex (Depends-on): Add strcase.
47336
47337         * modules/gethostname (Licence): Change from GPL to LGPL, since
47338         gethostname.c is a trivial implementation of a standard library
47339         function.
47340         * modules/poll (License): Change from GPL to LGPL, since it's
47341         derived from LGPL code.
47342
47343 2005-09-27  Jim Meyering  <jim@meyering.net>
47344
47345         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47346         HAVE_CONFIG_H.
47347
47348         * lib/intprops.h (signed_type_or_expr__): Define.
47349         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47350         for unsigned types.
47351
47352 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * lib/verify.h (verify_expr): Remove, replacing with:
47355         (verify_true): New macro that returns true instead of void.
47356         (verify_type__): Remove.
47357         (verify): Use verify_true rather than verify_type__.
47358
47359 2005-09-26  Bruno Haible  <bruno@clisp.org>
47360
47361         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47362         is necessary.
47363         (lib_SOURCES): Remove mbchar.c.
47364         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47365         (Files): Add m4/mbrtowc.m4.
47366         * modules/mbiter: Likewise.
47367         * modules/mbuiter: Likewise.
47368
47369 2005-09-26  Bruno Haible  <bruno@clisp.org>
47370
47371         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47372         compile mbchar.c if they are not both present.
47373         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47374         * m4/mbiter.m4 (gl_MBITER): Likewise.
47375         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47376         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47377         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47378
47379 2005-09-25  Jim Meyering  <jim@meyering.net>
47380
47381         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47382         also uses socklen_t.
47383
47384 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47385
47386         * lib/utimens.c (ENOSYS): Define if not already defined.
47387         (futimens): Support having a null PATH if the file descriptor
47388         is nonnegative.
47389
47390         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47391         Remove.
47392         (__attribute): Define to empty unless GCC 3.1 or later.
47393         This works around a core dump on OpenBSD 3.4, which has GCC
47394         2.95.3, which dumps core when given __attribute__(()).  It also
47395         simplifies other tests, since we really don't want to bother with
47396         worrying about which ancient version of GCC supported what.
47397         Original problem reported by Yoann Vandoorselaere, with part of
47398         the fix suggested by Derek Price.
47399
47400 2005-09-24  Jim Meyering  <jim@meyering.net>
47401
47402         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47403         so we can once again use a positive bitfield width of 1 -- now we
47404         don't have to explain why we were using a bitfield width of 2.
47405
47406 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47407
47408         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47409         and similarly for the other external symbols.  Problem reported
47410         by James Gallager.
47411
47412         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47413         bug reported by Jim Meyering.
47414
47415         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47417         not needed, since socklen is a prerequisite module.
47418
47419 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47420
47421         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47422         Problem reported by Eric Blake.
47423         (getaddrinfo): Initialize se so that it's not garbage.
47424         Redo internal storage allocation so that it doesn't make unportable
47425         assumptions about alignment.
47426         Fix a memory leak.
47427
47428         * lib/utimens.c (futimens): Use futimesat if available.
47429         Prefer it to futimes since it doesn't have the futimes bug.
47430
47431         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47432         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47433         Instead, declare a function that returns a pointer to an array,
47434         and use verify_type__ to declare the size of the array.
47435         Problem and germ of a solution reported by Bruno Haible.
47436         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47437         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47438
47439 2005-09-23  Jim Meyering  <jim@meyering.net>
47440
47441         Sync from coreutils.
47442         Correct build failure (socklen_t not defined) on at least
47443         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47444         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47445
47446 2005-09-23  Jim Meyering  <jim@meyering.net>
47447
47448         * modules/getaddrinfo (Depends-on): Add socklen.
47449
47450 2005-09-23  Bruno Haible  <bruno@clisp.org>
47451
47452         * tests/test-verify.c: New file.
47453
47454 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47455
47456         Sync from coreutils.
47457
47458         * modules/argmatch (Depends-on): Add verify.
47459         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47460         unistd-safer.
47461         * modules/save-cwd (Depends-on): Likewise.
47462
47463         * modules/openat (Files): Add lib/openat-die.c.
47464         (Depends-on): Remove error, exitfail.
47465         Add dirname.
47466
47467         * modules/verify: New file.
47468         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47469         with "verify" module.
47470
47471 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47472
47473         Sync from coreutils.
47474
47475         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47476         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47477         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47478         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47479         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47480         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47481         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47482         Don't bother checking for string.h, stdlib.h, unistd.h.
47483         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47484         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47485         module's job.
47486         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47487         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47488
47489         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47490         (gl_GETDATE): Use it.
47491
47492         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47493
47494 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47495
47496         Sync from coreutils.
47497
47498         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47499         stat-time.h.
47500         * lib/argmatch.h: Include verify.h
47501         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47502         (ARGMATCH_ASSERT): Remove; unused.
47503         * lib/canonicalize.c: Assume STDC_HEADERS.
47504         * lib/exclude.c: Include "strcase.h".
47505         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47506         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47507         and stdio-safer.h.
47508         (getusershell): Call fopen, not fopen_safer.
47509         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47510         Do not include unistd-safer.h.
47511         (save_cwd): Don't call fd_safer; no longer needed
47512         now that we include fcntl--.h.
47513
47514         * lib/getdate.y (relative_time): New type.
47515         (RELATIVE_TIME_0): New constant.
47516         (parser_control): Use relative_time instead of doing it ourselves.
47517         (%union): Add new relative_time rel member.
47518         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47519         Now typeless.
47520         (relunit, relunit_snumber): Now of type rel.
47521         (zone, rel, relunit, get_date): Adjust to above changes.
47522
47523         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47524         Do not include unistd-safer.h.
47525         (getloadavg): Don't call fd_safer; no longer needed
47526         now that we include fcntl--.h.
47527
47528         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47529         (make_dir_parents): Treat ENOSYS like EEXIST.
47530
47531         Improve quality of diagnostics on restore_cwd failure.
47532         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47533         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47534         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47535         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47536         each time through the loop.  Do not diagnose restore_cwd failure;
47537         that is the caller's job (and perhaps the caller does not care).
47538
47539         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47540         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47541         If the file already exists but is not a directory, don't bother
47542         to try to make its parents.
47543         Close potential file descriptor leak if we can't chdir("/") (!).
47544         Don't always return true if chdir($PWD) fails; return true only
47545         if the requested action was done successfully (except for the
47546         chdir($PWD)).
47547         Don't log final directory unless we actually made it.
47548         Refactor to avoid duplicate code to fix up permissions.
47549         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47550
47551         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47552         to make it a bit faster and (I hope) clearer.
47553         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47554         Fix bug in formats like %2N.
47555
47556         * lib/verify.h: New file.
47557
47558 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47559
47560         Sync from coreutils.
47561         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47562
47563 2005-09-22  Jim Meyering  <jim@meyering.net>
47564
47565         Sync from coreutils.
47566
47567         * m4/lstat.m4 (gl_FUNC_LSTAT):
47568         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47569         Remove obsolete comment.
47570         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47571         * m4/xstrtod.m4: Likewise.
47572
47573         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47574
47575 2005-09-22  Jim Meyering  <jim@meyering.net>
47576
47577         Sync from coreutils.
47578
47579         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47580
47581         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47582         the .tm_year member, since otherwise gcc-4.0 would now warn about
47583         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47584
47585         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47586         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47587
47588         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47589         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47590         when run in a time zone for which daylight savings time is in effect
47591         for the starting date.
47592
47593         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47594         stop us from restricting permissions of just-created absolute-named
47595         directories.
47596         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47597         to restore initial working directory.
47598         * lib/mkdir-p.c (make_dir_parents): New parameter:
47599         different_working_dir, to tell caller if/when we change the working
47600         directory and are unable to return to the initial one.
47601         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47602         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47603         `return false'.  This fixes a bug introduced on 2004-07-30.
47604
47605         * lib/openat.c (fdopendir): Be sure to close the supplied
47606         file descriptor before returning.  This makes our replacement
47607         implementation a little closer to Solaris's, where fdopendir
47608         ties the file descriptor to the returned DIR* pointer.
47609         * lib/openat.c (unlinkat): New function.
47610         * lib/openat.h (unlinkat): Add prototype.
47611         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47612         (openat_restore_fail): Rename from openat_restore_die.
47613         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47614
47615         Provide an alternative to exiting immediately upon save_cwd or
47616         restore_cwd failure.  Now, an application can arrange e.g.,
47617         to perform a longjump in that case.
47618         * lib/openat.c: Include dirname.h.
47619         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47620         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47621         and openat_restore_die rather than calling error directly.
47622         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47623
47624         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47625         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47626         define.
47627
47628         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47629         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47630                             int utc, int nanoseconds);
47631         Background:
47632         date should not have to allocate a megabyte of virtual memory to
47633         handle a format argument like +%1048575T.  When implemented with
47634         strftime, it must allocate such a buffer, use strftime to fill it
47635         in, print it, then free it.
47636         With fprintftime, it simply prints everything and exits.
47637         With no need for memory allocation, that's one fewer way to fail.
47638         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47639         optional field width, not before, so we accept %9:z, not %:9z.
47640         (my_strftime): Be sure to use L_('x') for literals.
47641
47642         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47643         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47644         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47645         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47646         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47647         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47648         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47649         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47650         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47651         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47652         * lib/xgethostname.c, lib/xreadlink.c:
47653         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47654
47655         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47656         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47657         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47658         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47659         and don't include <sys/file.h>).
47660
47661 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47662
47663         Sync from coreutils.
47664
47665         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47666         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47667         [!LDAV_DONE]: Avoid unused variable warning.
47668
47669 2005-09-21  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/unicodeio.h (unicode_to_mb): New declaration.
47672
47673 2005-09-20  Derek Price  <derek@ximbiot.com>
47674
47675         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47676         getaddrinfo.h.
47677
47678 2005-09-20  Bruno Haible  <bruno@clisp.org>
47679
47680         * gnulib-tool: Remove trailing slashes from the values specified for
47681         --source-base, --m4-base, --tests-base, --aux-dir.
47682         Suggested by Simon Josefsson <jas@extundo.com>.
47683
47684 2005-09-20  Bruno Haible  <bruno@clisp.org>
47685
47686         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47687         func_modules_to_filelist, func_import, func_create_testdir): Make all
47688         sorting results locale-independent, so that gnulib-cache.m4 doesn't
47689         change when gnulib-tool is invoked in a different locale.
47690
47691 2005-09-19  Simon Josefsson  <jas@extundo.com>
47692
47693         * m4/socklen.m4: Fix typo.
47694
47695 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47696
47697         Use a consistent style for including <config.h>.
47698         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47699         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47700         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47701         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47702         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47703         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47704         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47705         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47706         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47707         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47708         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47709         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47710         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47711         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47712         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47713         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47714         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47715         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47716         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47717         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47718         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47719         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47720         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47721         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47722         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47723         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47724         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47725         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47726         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47727         lib/xstrtoumax.c, lib/yesno.c:
47728         Standardize inclusion of config.h.
47729         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47730         lib/inttostr.h:  Removed inclusion of config.h from header files.
47731         * lib/inttostr.c:  Adjusted in-tree users.
47732         * lib/timespec.h: Remove superfluous warning to include config.h.
47733         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47734         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47735         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47736         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47737         config.h with HAVE_CONFIG_H.
47738
47739 2005-09-19  Jim Meyering  <jim@meyering.net>
47740
47741         * modules/pathmax (License): Change to LGPL.
47742
47743 2005-09-19  Derek Price  <derek@ximbiot.com>
47744
47745         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47746
47747 2005-09-19  Bruno Haible  <bruno@clisp.org>
47748
47749         * gnulib-tool (import): Provide default for --tests-base.
47750
47751 2005-09-19  Bruno Haible  <bruno@clisp.org>
47752
47753         * doc/quote.texi: New file, extracted from gnulib.texi.
47754         * doc/ctime.texi: New file, extracted from gnulib.texi.
47755         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47756         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
47757         * doc/gnulib.texi: Include them.
47758
47759 2005-09-18  Bruno Haible  <bruno@clisp.org>
47760
47761         Portability fix.
47762         * gnulib-tool (func_readlink): New function.
47763         (func_ln_if_changed): Use it.
47764
47765 2005-09-18  Bruno Haible  <bruno@clisp.org>
47766
47767         * gnulib-tool: Support --with-tests also with --import.
47768         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
47769         (func_import): Use variables $testsbase and $inctests. Emit a
47770         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
47771         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
47772         SUBDIRS += $testsdir.
47773         (func_create_testdir): Update.
47774
47775 2005-09-18  Bruno Haible  <bruno@clisp.org>
47776
47777         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
47778         instead of $dry_run.
47779         (func_cp_if_changed, func_mv_if_changed): Remove functions.
47780         (func_ln_if_changed): Don't handle dry-run here.
47781         (func_import): In dry-run mode, detect more precisely which actions
47782         would be performed, and don't use "...ing" verbs.
47783
47784 2005-09-18  Bruno Haible  <bruno@clisp.org>
47785
47786         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
47787         (func_import): Use join on two temporary files instead of three nested
47788         loops, in order to determine which files are new or old.
47789
47790 2005-09-18  Bruno Haible  <bruno@clisp.org>
47791
47792         * gnulib-tool (func_import): Comment out code that spits out the
47793         new files with --dry-run.
47794
47795 2005-09-18  Bruno Haible  <bruno@clisp.org>
47796
47797         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
47798
47799 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         * lib/stat-time.h: New file.
47802         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
47803         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
47804         in a different way.
47805         (timespec_cmp): New function.
47806         * lib/utimecmp.c: Include stat-time.h.
47807         (SYSCALL_RESOLUTION): Depend on whether various struct stat
47808         members exist, not on the obsolescent ST_MTIM_NSEC.
47809         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
47810
47811 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47812
47813         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
47814
47815 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47816
47817         * MODULES.html.sh (File system functions): Add stat-time.
47818         * modules/stat-time: New file.
47819         * modules/timespec (Files): Remove m4/st_mtim.m4; this
47820         is now done in a different way, by the stat-time module.
47821         * modules/utimecmp (Depends-on): Add stat-time.
47822
47823 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47824
47825         * m4/st_mtim.m4: Remove.  Superseded by...
47826         * m4/stat-time.m4: New file.
47827         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
47828         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
47829
47830 2005-09-15  Derek Price  <derek@ximbiot.com>
47831
47832         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
47833
47834 2005-09-15  Derek Price  <derek@ximbiot.com>
47835
47836         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
47837         * lib/regex_internal.c: Ditto, using this...
47838         (__GNUC_PREREQ): ...new macro.
47839         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
47840         using...
47841         (__GNUC_PREREQ): ...this new macro.
47842
47843         * lib/strstr.h: Include string.h. Define strstr as a macro here.
47844
47845 2005-09-15  Derek Price  <derek@ximbiot.com>
47846             Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
47849         changes, consolidating in...
47850         * lib/regex_internal.h: ...this file.
47851
47852 2005-09-13  Jim Meyering  <jim@meyering.net>
47853
47854         * lib/canon-host.c: Filter through gnu indent and reword comments
47855         slightly.
47856         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
47857
47858 2005-09-13  Derek Price  <derek@ximbiot.com>
47859
47860         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
47861         failure.
47862         Reported by Jim Meyering  <jim@meyering.net>.
47863
47864 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47865
47866         * lib/base64.c: Typo.
47867         (base64_encode): Put b64str in initialized data section.
47868
47869 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47870
47871         Merge glibc and coreutils changes into gnulib, plus a few
47872         extra fixes.
47873         * lib/md5.c: Use #error rather than a string.
47874         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
47875         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
47876         (__attribute__): Define to empty for non recent-GCC.
47877         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
47878         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
47879         Renamed from their non-__ counterparts, with new macros replacing
47880         them if not _LIBC.  Add __THROW attribute.
47881         (rol): Remove.
47882         (struct md5_ctx): Align buffer if using GCC.
47883         * lib/sha1.h (struct sha1_ctx): Likewise.
47884         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
47885         The old name was backwards.
47886         (NOTSWAP): Remove; not used.
47887         (rol): New macro, moved here from md5.h.
47888         (sha1_process_block): Remove a FIXME that doesn't make sense.
47889
47890 2005-09-12  Derek Price  <derek@ximbiot.com>
47891
47892         Return usable errors from canon-host.
47893         * lib/canon-host.h: New file.
47894         * lib/canon-host.c (canon_host): Wrap...
47895         (canon_host_r): ...this new function, which now relies exclusively on
47896         getaddrinfo.
47897         (ch_strerror): New function.
47898         (last_cherror): New global.
47899         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
47900         interface.
47901         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
47902         void *.
47903         (freeaddrinfo): Free ai->ai_canonname when set.
47904
47905 2005-09-12  Derek Price  <derek@ximbiot.com>
47906
47907         Make canon-host require getaddrinfo.
47908         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
47909         AC_LIBSOURCE canon-host.h.  Call...
47910         (gl_PREREQ_CANON_HOST): ...this new function, which requires
47911         gl_GETADDRINFO.
47912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
47913
47914 2005-09-12  Derek Price  <derek@ximbiot.com>
47915
47916         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
47917         LGPL.
47918         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
47919
47920 2005-09-12  Derek Price  <derek@ximbiot.com>
47921
47922         * lib/gai_strerror.c: Include config.h when available.  Include
47923         getaddrinfo.h before other headers to test interface.
47924         Reported by Larry Jones <lawrence.jones@ugs.com>.
47925
47926 2005-09-12  Derek Price  <derek@ximbiot.com>
47927             Paul Eggert  <eggert@cs.ucla.edu>
47928
47929         * modules/glob (Files): Add glob-libc.h.
47930
47931 2005-09-12  Derek Price  <derek@ximbiot.com>
47932             Paul Eggert  <eggert@cs.ucla.edu>
47933
47934         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
47935         glob_.h, glob-libc.h.
47936         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
47937
47938 2005-09-12  Derek Price  <derek@ximbiot.com>
47939             Paul Eggert  <eggert@cs.ucla.edu>
47940
47941         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
47942         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
47943         protecting things that should be done only in gnulib contexts.
47944         * lib/glob_.h: New file, containing only the glob things needed for
47945         gnulib.
47946         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
47947         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
47948         (glob, globfree, glob_pattern_p): Now defined simply in terms of
47949         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
47950         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
47951         and to respect the namespace rules better.
47952
47953 2005-09-08  Simon Josefsson  <jas@extundo.com>
47954
47955         * modules/socklen: New file.
47956
47957 2005-09-08  Simon Josefsson  <jas@extundo.com>
47958
47959         * m4/socklen.m4: New file.
47960
47961 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47962
47963         * modules/utimens (Files): Add m4/utimbuf.m4, since
47964         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
47965         Reported by Sergey Poznyakoff.
47966
47967 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
47970         definitions, since that's the preferred style in glibc.
47971         Fix a minor spacing issue, and update copyright notice to match
47972         glibc's.
47973
47974 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47975
47976         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
47977
47978 2005-09-06  Simon Josefsson  <jas@extundo.com>
47979
47980         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
47981         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
47982
47983 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
47986         warning.
47987
47988 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47989
47990         * config/srclist.txt: Add glibc bug 1302.
47991
47992 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
47993
47994         Change bitset word type from unsigned int to unsigned long int,
47995         as this has better performance on typical 64-bit hosts.
47996         Port bitset code to hosts with unusual word sizes.
47997         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
47998         (build_collating_symbol):
47999         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48000         argument is a bitset.  This is merely a style issue, but it makes
48001         it clearer that an entire array is expected.
48002         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48003         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48004         Port to the case where bitset_word is not the same as unsigned int.
48005         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48006         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48007         Likewise.
48008         * lib/regexec.c (check_dst_limits_calc_pos_1,
48009         check_subexp_matching_top):
48010         (build_trtable, group_nodes_into_DFAstates):
48011         Likewise.
48012         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48013         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48014         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48015         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48016         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48017         * lib/regcomp.c (optimize_subexps, lower_subexp):
48018         Work even if bitset_word has holes in its bitwise representation.
48019         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48020         * lib/regexec.c (check_dst_limits_calc_pos_1,
48021         check_subexp_matching_top):
48022         Likewise.
48023         * lib/regex_internal.c (re_string_reconstruct):
48024         Don't assume UCHAR_MAX == 255.
48025         * lib/regex_internal.h (bitset_set_all): Likewise.
48026         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48027         All uses changed.
48028         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48029         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48030         All uses changed.
48031         (BITSET_WORD_MAX): New macro.
48032         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48033         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48034         (bitset_empty, bitset_copy):
48035         Prefer sizeof (bitset) to multiplying it out ourselves.
48036         (bitset_not_merge): Remove; unused.
48037         (bitset_contain): Return bool, not unsigned int with one bit on.
48038         All callers changed.
48039         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48040         alignment than re_node_set; do this by defining a new internal
48041         type struct dests_alloc and using it to allocate memory.
48042
48043 2005-09-05  Bruno Haible  <bruno@clisp.org>
48044
48045         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48046         links.
48047
48048 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48049
48050         * modules/size_max (Makefile.am): Add size_max.h
48051
48052 2005-09-04  Derek Price  <derek@ximbiot.com>
48053
48054         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48055
48056 2005-09-03  Simon Josefsson  <jas@extundo.com>
48057
48058         * gnulib-tool: Fix typo.
48059
48060 2005-09-03  Simon Josefsson  <jas@extundo.com>
48061
48062         * config/srclist.txt: Add glibc bug 1293.
48063
48064 2005-09-03  Derek Price  <derek@ximbiot.com>
48065
48066         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48067         From Larry Jones <lawrence.jones@ugs.com>.
48068
48069 2005-09-02  Simon Josefsson  <jas@extundo.com>
48070
48071         * modules/socklen: New file.
48072
48073 2005-09-02  Simon Josefsson  <jas@extundo.com>
48074
48075         * modules/havelib: New module.
48076
48077         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48078         Use havelib.
48079
48080 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48081
48082         Check for arithmetic overflow when calculating sizes, to prevent
48083         some buffer-overflow issues.  These patches are conservative, in the
48084         sense that when I couldn't determine whether an overflow was possible,
48085         I inserted a run-time check.
48086         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48087         macros.
48088         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48089         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48090         (re_xnrealloc, re_x2nrealloc): New inline functions.
48091         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48092         parse_bracket_exp):
48093         (build_equiv_class, build_charclass): Check for arithmetic overflow
48094         in size expression calculations.
48095         * lib/regex_internal.c (re_string_realloc_buffers):
48096         (build_wcs_upper_buffer, re_node_set_add_intersect):
48097         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48098         (re_dfa_add_node, register_state): Likewise.
48099         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48100         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48101         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48102         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48103
48104 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48107         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48108
48109 2005-09-02  Bruno Haible  <bruno@clisp.org>
48110
48111         Support for lib vs. lib64 distinction on biarch platforms.
48112         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48113         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48114         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48115
48116 2005-09-02  Bruno Haible  <bruno@clisp.org>
48117
48118         * gnulib-tool (import): In the other first-use case, provide defaults
48119         as well.
48120
48121 2005-09-02  Bruno Haible  <bruno@clisp.org>
48122
48123         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48124         patches not yet found in the latest gettext release.
48125
48126 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48127
48128         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48129         to avoid a collision with bits/local_lim.h in glibc.
48130         All uses changed.  Problem reported by Dmitry V. Levin in
48131         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48132
48133         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48134         bugs in int versus size_t comparisons.
48135         (re_string_context_at): Fix bug where the code assumed that
48136         Idx is signed.
48137
48138         Use bool where appropriate.
48139         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48140         All callers changed.
48141         (calc_eclosure_iter): Likewise, for ROOT arg.
48142         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48143         (build_charclass_op): Likewise, for NON_MATCH arg.
48144         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48145         (re_string_construct_common): Likewise, for ICASE arg.
48146         * lib/regexec.c (re_search_2_stub, re_search_stub):
48147         Likewise, for RET_LEN arg.
48148         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48149         (set_regs): Likewise, for FL_BACKTRACK arg.
48150         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48151         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48152         (calc_eclosure_iter, parse_bracket_exp):
48153         Use bool for internal variables that are booleans.
48154         * lib/regexec.c (re_search_internal, check_matching,
48155         proceed_next_node):
48156         (set_regs, build_sifted_states, sift_states_bkref):
48157         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48158         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48159         (find_collation_sequence_value):
48160         Likewise.
48161         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48162         (re_node_set_compare):
48163         Return bool, not int. All callers changed.
48164         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48165         (build_trtable, check_node_accept): Likewise.
48166         * lib/regex_internal.h: Include stdbool.h.
48167
48168         Fix bugs uncovered when converting to bool.
48169         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48170         failure instead of charging ahead blindly.
48171         * lib/regex_internal.c (register_state): Likewise.
48172         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48173         for freeing internal storage.
48174         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48175         bitset pieces used as boolean, to avoid undefined behavior
48176         on hosts that do int overflow checking.
48177
48178 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48179
48180         * config/srclist.txt: Add glibc bugs 1285-1287.
48181
48182 2005-09-01  Jim Meyering  <jim@meyering.net>
48183
48184         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48185         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48186         Require gl_STAT_MACROS, too.
48187
48188 2005-09-01  Bruno Haible  <bruno@clisp.org>
48189
48190         * gnulib-tool (import): In the first-use case, provide defaults.
48191
48192 2005-09-01  Bruno Haible  <bruno@clisp.org>
48193
48194         * gnulib-tool (func_import): Remove the .tmp files.
48195
48196 2005-09-01  Bruno Haible  <bruno@clisp.org>
48197
48198         * gnulib-tool (func_import): Fix handling of symbolic links.
48199
48200 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48201
48202         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48203         old glibc regex code mishandles strings longer than 2**31 bytes.
48204         This patch fixes this when the regex code is used in gnulib
48205         (i.e., outside glibc).
48206
48207         This patch should not affect the use of the regex code inside
48208         glibc.  No doubt this problem also needs to be handled for glibc
48209         as well, but the result will be an incompatible change to the
48210         glibc ABI, and the old ABI will have to be supported too.  That
48211         can be the the subject for another patch.
48212
48213         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48214         governing whether the rest of this patch is active.  By default,
48215         the macro is disabled and the patch has no effect.
48216         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48217         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48218         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48219         (re_match_2, re_set_registers): Use the new types.
48220         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48221         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48222         New macros.
48223         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48224         (re_string_context_at, bin_tree_t, re_dfastate_t):
48225         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48226         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48227         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48228         (re_string_char_size_at, re_string_wchar_at):
48229         (re_string_elem_size_at):
48230         Use the new types and macros to port to 64-bit hosts.
48231         Use unsigned types for internal values, so that the code
48232         mostly works even for arrays larger than SSIZE_MAX.
48233         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48234         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48235         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48236         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48237         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48238         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48239         (calc_inveclosure, parse_dup_op, build_range_exp):
48240         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48241         (fetch_number, create_token_tree, mark_opt_subexp):
48242         Likewise.
48243         * lib/regex_internal.c (re_string_construct_common,
48244         create_ci_newstate):
48245         (create_cd_newstate, re_string_allocate, re_string_construct):
48246         (re_string_realloc_buffers, build_wcs_upper_buffer):
48247         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48248         (re_string_reconstruct, re_string_peek_byte_case):
48249         (re_string_fetch_byte_case, re_string_context_at):
48250         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48251         (re_node_set_init_copy, re_node_set_add_intersect):
48252         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48253         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48254         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48255         (re_acquire_state, re_acquire_state_context, register_state):
48256         Likewise.
48257         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48258         search_cur_bkref_entry):
48259         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48260         (re_search_internal, re_search_2_stub, re_search_stub)
48261         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48262         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48263         (update_cur_sifted_state, check_dst_limits):
48264         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48265         (check_subexp_limits, sift_states_bkref, merge_state_array):
48266         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48267         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48268         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48269         (expand_bkref_cache, check_node_accept_bytes):
48270         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48271         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48272         (acquire_init_state_context, check_halt_node_context):
48273         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48274         (sift_states_backward, clean_state_log_if_needed):
48275         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48276         (find_recover_state, transit_state_sb, transit_state_mb):
48277         (transit_state_bkref, build_trtable, match_ctx_clean):
48278         Likewise.
48279         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48280         to work around an assumption that REG_MISSING is negative.
48281
48282         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48283         (seek_collating_symbol_entry) [defined _LIBC]:
48284         (lookup_collation_sequence_value) [defined _LIBC]:
48285         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48286         Use prototypes rather than old-style function definitions.
48287         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48288         (transit_state_sb) [0]:
48289         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48290
48291         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48292         rm_eo.
48293
48294         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48295         (optimize_subexps, lower_subexp):
48296         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48297         since the signed shift might overflow.  Use 1u<<31 instead.
48298         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48299         Likewise.
48300         * lib/regexec.c (check_dst_limits_calc_pos_1,
48301         check_subexp_matching_top): Likewise.
48302
48303         * lib/regcomp.c (optimize_subexps, lower_subexp):
48304         Use CHAR_BIT rather than 8, for clarity.
48305         * lib/regexec.c (check_dst_limits_calc_pos_1):
48306         (check_subexp_matching_top): Likewise.
48307         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48308         have to worry about portability issues when shifting it left.
48309         Remove no-longer-needed test for table_size > 0.
48310         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48311         in a word, as the resulting behavior is undefined.
48312         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48313         in one case, a <= should have been an <, and in another case the
48314         whole test was missing.
48315         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48316         the standard name CHAR_BIT.
48317         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48318         this is not true on one's complement and signed-magnitude hosts.
48319
48320         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48321         next_last_offset.
48322         (struct re_dfa_t): Remove unused member states_alloc.
48323         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48324
48325 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48326
48327         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48328         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48329         and large-file glibc and in 32-bit large-file Solaris.
48330
48331 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48332
48333         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48334         lengths fit in regoff_t; this isn't true if regoff_t is the same
48335         width as size_t.
48336         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48337         (= START + RANGE) instead of RANGE.  This avoids overflow
48338         problems when regoff_t is the same width as size_t.
48339         All callers changed.
48340         (re_search_2_stub): Check for overflow when adding the
48341         sizes of the two strings.
48342         (re_search_stub): Check for overflow when adding START
48343         to RANGE; if it occurs, substitute the extreme value.
48344
48345 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48346
48347         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48348
48349 2005-08-31  Jim Meyering  <jim@meyering.net>
48350
48351         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48352         a pointer-to-const.
48353         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48354         (register_state): Likewise.
48355         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48356         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48357         (group_nodes_into_DFAstates): Likewise.
48358
48359 2005-08-31  Jim Meyering  <jim@meyering.net>
48360
48361         * check-module: Add a FIXME comment.
48362
48363 2005-08-31  Eric Blake  <ebb9@byu.net>
48364
48365         * modules/unistd-safer (Files): Add unistd--.h.
48366         * modules/stdio-safer (Files): Add stdio--.h.
48367
48368 2005-08-31  Derek Price  <derek@ximbiot.com>
48369
48370         * lib/getdelim.c (getdelim): Return EOF on EOF.
48371         Reported by Larry Jones <lawrence.jones@ugs.com>.
48372
48373 2005-08-31  Bruno Haible  <bruno@clisp.org>
48374
48375         Avoid unnecessary diffs in the generated lib/Makefile.am.
48376         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48377         the generated files.
48378         (func_import): Don't set cmd.
48379
48380 2005-08-31  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/strstr.c: Include <stddef.h>, for NULL.
48383         * lib/strcasestr.c: Likewise.
48384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48385
48386 2005-08-31  Bruno Haible  <bruno@clisp.org>
48387
48388         * gnulib-tool: New option --macro-prefix.
48389         (func_import): Use macro_prefix.
48390         (import): Handle option --macro-prefix.
48391
48392 2005-08-31  Bruno Haible  <bruno@clisp.org>
48393
48394         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48395         Also use new variables cached_lgpl, cached_libtool.
48396
48397 2005-08-31  Bruno Haible  <bruno@clisp.org>
48398
48399         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48400         always instantiating them.
48401
48402 2005-08-31  Bruno Haible  <bruno@clisp.org>
48403
48404         * gnulib-tool (func_import): Read the previous cached settings
48405         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48406         earlier added by gnulib but are now dropped. Warn when a gnulib file
48407         overwrites a non-gnulib file.
48408
48409 2005-08-31  Bruno Haible  <bruno@clisp.org>
48410
48411         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48412         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48413         projects that don't keep autogenerated files in CVS. Put into
48414         actioncmd only the specified modules, not the transitive closure.
48415
48416 2005-08-31  Bruno Haible  <bruno@clisp.org>
48417
48418         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48419         Create directories that shall be filled.
48420         (import): Don't look for gl_* macros in configure.ac. Recurse across
48421         all directories containing a gnulib-cache.m4 files, if meaningful.
48422
48423 2005-08-31  Bruno Haible  <bruno@clisp.org>
48424
48425         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48426         (import): Set seen_libtool when we see gl_LIBTOOL.
48427
48428 2005-08-31  Bruno Haible  <bruno@clisp.org>
48429
48430         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48431         declaration macro definitions from generated gnulib.m4.
48432
48433 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48434
48435         * lib/iconvme.h: Add prototype for iconv_alloc.
48436
48437 2005-08-29  Simon Josefsson  <jas@extundo.com>
48438
48439         * lib/iconvme.c: Fix errno.
48440
48441 2005-08-29  Bruno Haible  <bruno@clisp.org>
48442
48443         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48444         that it works when the directory contains spaces.
48445
48446 2005-08-29  Bruno Haible  <bruno@clisp.org>
48447
48448         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48449
48450 2005-08-29  Bruno Haible  <bruno@clisp.org>
48451
48452         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48453         Emit more advice.
48454
48455 2005-08-29  Bruno Haible  <bruno@clisp.org>
48456         and Stepan Kasal  <kasal@ucw.cz>
48457
48458         * check-module: If more parameters are given, check each of them
48459         separately; add more exceptions, as noted by Jim Meyering.
48460         (check_module): New procedure.
48461         (%exempt_header): Now contains all exceptions.
48462
48463 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48464
48465         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48466
48467 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48468
48469         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48470
48471 2005-08-28  Bruno Haible  <bruno@clisp.org>
48472
48473         * m4/gnulib-tool.m4: New file.
48474
48475 2005-08-27  Jim Meyering  <jim@meyering.net>
48476
48477         * modules/unistd-safer (Files): Add pipe-safer.c.
48478         * modules/fcntl-safer (Files): Add creat-safer.c.
48479
48480 2005-08-27  Jim Meyering  <jim@meyering.net>
48481
48482         * m4/stdlib-safer.m4: New file.  From coreutils.
48483         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48484         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48485         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48486         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48487         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48488
48489 2005-08-27  Jim Meyering  <jim@meyering.net>
48490
48491         * lib/fopen-safer.c: Merge minor changes from coreutils.
48492         * lib/dup-safer.c: Likewise.
48493         * lib/fd-safer.c: Likewise.
48494
48495         Merge from coreutils.
48496         * lib/stdio--.h: New file.
48497         * lib/stdlib--.h: New file.
48498         * lib/mkstemp-safer.c: New file.
48499
48500         GNU tar needs these.
48501         * lib/pipe-safer.c: New file.
48502         * lib/creat-safer.c: New file.
48503         * lib/fcntl--.h (creat): Define to creat_safer.
48504         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48505         * lib/unistd--.h (pipe): Define to pipe_safer.
48506         * lib/unistd-safer.h: Declare pipe_safer.
48507
48508 2005-08-26  Simon Josefsson  <jas@extundo.com>
48509
48510         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48511         Haible <bruno@clisp.org>.
48512
48513 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48514
48515         * lib/regex_internal.h: Remove all references to
48516         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48517         or better.
48518         (bitset_not, bitset_merge, bitset_not_merge):
48519         (bitset_mask, re_string_allocate, re_string_construct):
48520         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48521         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48522         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48523         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48524         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48525         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48526         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48527         (re_acquire_state_context):
48528         Remove unnecessary forward decls.
48529         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48530         Put __attribute at function definition,
48531         now that the function decl has been removed.
48532         * lib/regex_internal.c (re_string_peek_byte_case):
48533         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48534         Likewise.
48535
48536 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48537
48538         * m4/regex.m4: Add AC_PREREQ(2.50).
48539         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48540
48541 2005-08-25  Simon Josefsson  <jas@extundo.com>
48542
48543         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48544         __fsetlocking.
48545
48546 2005-08-25  Simon Josefsson  <jas@extundo.com>
48547
48548         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48549         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48550         GLIBC specific code.
48551
48552 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48553
48554         Make regex safe for g++.  This fixes one real bug (an "err"
48555         that should have been "*err").  g++ problem reported by
48556         Sam Steingold.
48557         * lib/regex_internal.h (re_calloc): New macro, consistent with
48558         re_malloc etc.  All callers of calloc changed to use re_calloc.
48559         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48560         not int.  All callers changed.
48561         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48562         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48563         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48564         (find_recover_state): Change "err" to "*err"; this fixes what
48565         appears to be a real bug.
48566         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48567         versus int.
48568
48569 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48570
48571         * modules/regex (Depends-on): Add malloc, since the code
48572         assumes that !malloc(0) means failure.
48573
48574 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48575
48576         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48577
48578         alloca modernization/simplification for regex.
48579         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48580         needs to be at the start of the file, and can be moved into
48581         regex_internal.h and simplified.
48582         * lib/regex_internal.h: Include <alloca.h>.
48583         (__libc_use_alloca) [!defined _LIBC]: New macro.
48584         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48585         now works outside glibc.
48586
48587 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48588
48589         * config/srclist.txt: Add glibc bugs 1241, 1245.
48590
48591 2005-08-25  Jim Meyering  <jim@meyering.net>
48592
48593         * lib/open-safer.c: Include <config.h>.
48594         Otherwise, we'd lose LARGEFILE support in any file using
48595         e.g. "fcntl--.h"
48596
48597 2005-08-25  Bruno Haible  <bruno@clisp.org>
48598
48599         * m4/minmax.m4: Require autoconf 2.52.
48600         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48601         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48602         alternatives of translit over the alphabet.
48603         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48604
48605 2005-08-24  Simon Josefsson  <jas@extundo.com>
48606
48607         * tests/test-getpass.c: New file.
48608
48609 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48610
48611         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48612         for GNU regex features.
48613
48614 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48615
48616         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48617         * lib/regex.h (regerror): Likewise.
48618
48619         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48620         requires this.  (The code never needed it.)
48621
48622         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48623         All uses of recently-renamed identifiers changed to use the new,
48624         POSIX-compliant names.  The code will build and run just fine
48625         without these changes, but it's better to eat our own dog food
48626         and use the standard-conforming names.
48627
48628         * lib/regex.h: Fix a multitude of POSIX name space violations.
48629         These changes have an effect only for programs that define
48630         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48631         do not change anything for programs compiled in the normal way.
48632         Also, there is no effect on the ABI.
48633
48634         (_REGEX_SOURCE): New macro.
48635         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48636         defined and _GNU_SOURCE is not; this fixes a name space violation.
48637
48638         Rename the following macros to obey POSIX requirements.
48639         The old names are still visible as macros if _REGEX_SOURCE is defined.
48640         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48641         RE_BACKSLASH_ESCAPE_IN_LISTS.
48642         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48643         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48644         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48645         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48646         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48647         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48648         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48649         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48650         (REG_INTERVALS): renamed from RE_INTERVALS.
48651         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48652         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48653         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48654         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48655         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48656         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48657         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48658         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48659         RE_UNMATCHED_RIGHT_PAREN_ORD.
48660         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48661         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48662         (REG_DEBUG): renamed from RE_DEBUG.
48663         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48664         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48665         unusual, since we can't clash with the POSIX REG_ICASE.
48666         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48667         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48668         (REG_NO_SUB): renamed from RE_NO_SUB.
48669         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48670         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48671         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48672         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48673         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48674         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48675         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48676         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48677         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48678         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48679         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48680         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48681         RE_SYNTAX_POSIX_MINIMAL_BASIC.
48682         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48683         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48684         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48685         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
48686         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48687         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48688         (REG_FIXED): Renamed from REGS_FIXED.
48689         (REG_NREGS): Renamed from RE_NREGS.
48690
48691         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48692         of other REG_* macros, since POSIX says the user is allowed to
48693         #undef these macros selectively.
48694
48695         (reg_errcode_t): Update comment stating what other tables need
48696         to be consistent.
48697
48698         Rename the following enum values to obey POSIX requirements.
48699         The old names are still visible as macros.
48700         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
48701         is not defined, since GNU is supposed to be a superset of POSIX as
48702         much as possible, and since we want reg_errcode_t to be a signed
48703         type for implementation consistency.
48704         (_REG_NOERROR): Renamed from REG_NOERROR.
48705         (_REG_NOMATCH): Renamed from REG_NOMATCH.
48706         (_REG_BADPAT): Renamed from REG_BADPAT.
48707         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48708         (_REG_ECTYPE): Renamed from REG_ECTYPE.
48709         (_REG_EESCAPE): Renamed from REG_EESCAPE.
48710         (_REG_ESUBREG): Renamed from REG_ESUBREG.
48711         (_REG_EBRACK): Renamed from REG_EBRACK.
48712         (_REG_EPAREN): Renamed from REG_EPAREN.
48713         (_REG_EBRACE): Renamed from REG_EBRACE.
48714         (_REG_BADBR): Renamed from REG_BADBR.
48715         (_REG_ERANGE): Renamed from REG_ERANGE.
48716         (_REG_ESPACE): Renamed from REG_ESPACE.
48717         (_REG_BADRPT): Renamed from REG_BADRPT.
48718         (_REG_EEND): Renamed from REG_EEND.
48719         (_REG_ESIZE): Renamed from REG_ESIZE.
48720         (_REG_ERPAREN): Renamed from REG_ERPAREN.
48721         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48722         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48723         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48724         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48725
48726         (_REG_RE_NAME, _REG_RM_NAME): New macros.
48727         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
48728         changed.  But support the old name if the new one is not defined
48729         and if _REGEX_SOURCE.
48730
48731         Change the following member names in struct re_pattern_buffer.
48732         The old names are still supported if !_REGEX_SOURCE.
48733         The new names are always supported, regardless of _REGEX_SOURCE.
48734         (re_buffer): Renamed from buffer.
48735         (re_allocated): Renamed from allocated.
48736         (re_used): Renamed from used.
48737         (re_syntax): Renamed from syntax.
48738         (re_fastmap): Renamed from fastmap.
48739         (re_translate): Renamed from translate.
48740         (re_can_be_null): Renamed from can_be_null.
48741         (re_regs_allocated): Renamed from regs_allocated.
48742         (re_fastmap_accurate): Renamed from fastmap_accurate.
48743         (re_no_sub): Renamed from no_sub.
48744         (re_not_bol): Renamed from not_bol.
48745         (re_not_eol): Renamed from not_eol.
48746         (re_newline_anchor): Renamed from newline_anchor.
48747
48748         Change the following member names in struct re_registers.
48749         The old names are still supported if !_REGEX_SOURCE.
48750         The new names are always supported, regardless of _REGEX_SOURCE.
48751         (rm_num_regs): Renamed from num_regs.
48752         (rm_start): Renamed from start.
48753         (rm_end): Renamed from end.
48754
48755         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48756         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
48757         Prepend __ to parameter names.
48758
48759         Undo yesterday's changes.
48760
48761 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48762
48763         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
48764         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
48765         lib/regex.c.
48766
48767 2005-08-24  Jim Meyering  <jim@meyering.net>
48768
48769         Sync from coreutils.
48770         * m4/fcntl-safer.m4: New file.
48771
48772         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
48773         and object files for this module.
48774
48775 2005-08-24  Jim Meyering  <jim@meyering.net>
48776
48777         Sync from coreutils.
48778         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
48779
48780 2005-08-24  Jim Meyering  <jim@meyering.net>
48781
48782         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
48783         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
48784
48785 2005-08-24  Jim Meyering  <jim@meyering.net>
48786
48787         * modules/fcntl-safer: New module.
48788         * modules/fts (Depends-on): Add fcntl-safer.
48789         * MODULES.html.sh (File descriptor based Input/Output):
48790         Add fcntl-safer.
48791
48792 2005-08-24  Bruno Haible  <bruno@clisp.org>
48793
48794         Support for unit test modules.
48795         * modules/README: Mention tests modules.
48796         * modules/TEMPLATE-TESTS: New file.
48797         * gnulib-tool: New options --extract-tests-module, --with-tests and
48798         --tests-base (unused for the moment).
48799         (testsbase, inctests): New variables.
48800         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
48801         (func_verify_module): Exclude TEMPLATE-TESTS.
48802         (func_verify_nontests_module, func_verify_tests_module): New functions.
48803         (func_get_dependencies): Add implicit dependency for tests modules.
48804         (func_get_tests_module): New function.
48805         (func_modules_transitive_closure): When --with-tests was specified,
48806         include the unit tests as well, unless explicitly avoided.
48807         (func_emit_lib_Makefile_am): Ignore the tests modules here.
48808         (func_emit_tests_Makefile_am): New function.
48809         (func_create_testdir): When --with-tests was specified, emit a
48810         tests/ directory.
48811         * MODULES.html.sh (Future developments): Update.
48812
48813 2005-08-24  Bruno Haible  <bruno@clisp.org>
48814
48815         * modules/tls-tests: New file.
48816         * tests/test-tls.c: New file, from GNU gettext.
48817
48818 2005-08-24  Bruno Haible  <bruno@clisp.org>
48819
48820         * modules/lock-tests: New file.
48821         * tests/test-lock.c: New file, from GNU gettext.
48822
48823 2005-08-24  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/lock.h: Add multiple inclusion guard.
48826         * lib/tls.h: Add multiple inclusion guard.
48827
48828 2005-08-24  Bruno Haible  <bruno@clisp.org>
48829
48830         * gnulib-tool: Add support for the --aux-dir option to
48831         --create-testdir, --create-megatestdir, --test, --megatest.
48832         (func_create_testdir, func_create_megatestdir): Optionally emit a
48833         AC_CONFIG_AUX_DIR directive.
48834         (create-testdir, create-megatestdir, test, megatest): Provide a
48835         default value for $auxdir.
48836
48837 2005-08-24  Bruno Haible  <bruno@clisp.org>
48838
48839         * gnulib-tool (import): Use compound statement instead of subshell
48840         where possible.
48841
48842 2005-08-24  Bruno Haible  <bruno@clisp.org>
48843
48844         * gnulib-tool (import): Change --aux-dir default to "build-aux".
48845
48846 2005-08-24  Bruno Haible  <bruno@clisp.org>
48847
48848         * gnulib-tool (func_version): Update.
48849
48850 2005-08-24  Bruno Haible  <bruno@clisp.org>
48851
48852         * gnulib-tool (func_import, func_create_testdir,
48853         func_create_megatestdir): Quote all autoconf macro arguments.
48854
48855 2005-08-24  Bruno Haible  <bruno@clisp.org>
48856
48857         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
48858         option --force, because --force causes the aclocal.m4 of each
48859         subdirectory to be newer than the corresponding config.h.in.
48860
48861 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48862
48863         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
48864         All contents moved to gl_REGEX.
48865         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
48866         assume that it does.
48867
48868 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48869
48870         * lib/regex.h (REG_NOSYS)
48871         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
48872         Define, since POSIX requires it as of 2001.
48873         (_REG_ENOSYS)
48874         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
48875         New private symbol, used to keep the enum signed in all cases.
48876         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
48877         Youngman in
48878         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
48879
48880         * lib/regex_internal.c (re_string_skip_chars, register_state):
48881         (calc_state_hash):
48882         Remove forward decls; no longer needed now that we use prototypes.
48883         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
48884         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
48885         (clean_state_log_if_needed): Likewise.
48886
48887 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48888
48889         * config/srclist.txt: Add glibc bugs 1231-1233.
48890
48891 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48892
48893         Fix problems reported by Sam Steingold in
48894         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
48895         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
48896         assumed that reg_errcode_t is a signed type, which is not
48897         necessarily true if _XOPEN_SOURCE is not defined.
48898         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
48899         since some compilers warn about it otherwise.
48900
48901 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48902
48903         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
48904         (init_word_char, create_initial_state, duplicate_node_closure):
48905         (fetch_token, peek_token_bracket, build_range_exp):
48906         (build_collating_symbol): Remove forward decls; no longer needed
48907         now that we use prototypes.
48908
48909         * lib/regcomp.c:
48910         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
48911         (re_compile_fastmap_iter, regcomp, regerror, regfree):
48912         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
48913         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
48914         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
48915         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
48916         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
48917         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
48918         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
48919         (build_range_exp, build_collating_symbol, parse_bracket_exp):
48920         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
48921         (build_charclass, build_charclass_op, fetch_number, create_tree):
48922         (create_token_tree, mark_opt_subexp, duplicate_tree):
48923         Use prototypes rather than old-style definitions.
48924
48925         * lib/regex_internal.c:
48926         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
48927         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
48928         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48929         (re_string_reconstruct, re_string_peek_byte_case):
48930         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
48931         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48932         (re_node_set_init_copy, re_node_set_add_intersect):
48933         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48934         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48935         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48936         (re_acquire_state, re_acquire_state_context, register_state):
48937         (create_ci_newstate, create_cd_newstate, free_state):
48938         Likewise.
48939         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
48940         re_search_2):
48941         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
48942         (re_search_internal, prune_impossible_nodes):
48943         (acquire_init_state_context, check_matching, static):
48944         (check_halt_node_context, check_halt_state_context, proceed_next_node):
48945         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
48946         (update_regs, sift_states_backward, build_sifted_states):
48947         (clean_state_log_if_needed, merge_state_array):
48948         (update_cur_sifted_state, add_epsilon_src_nodes):
48949         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
48950         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
48951         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
48952         (find_recover_state, check_subexp_matching_top, transit_state_mb):
48953         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
48954         (check_arrival, check_arrival_add_next_nodes):
48955         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48956         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48957         (check_node_accept_bytes, check_node_accept, extend_buffers):
48958         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
48959         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
48960         (sift_ctx_init):
48961         Likewise.
48962
48963         * lib/regex_internal.h:
48964         (re_string_allocate, re_string_construct, re_string_reconstruct):
48965         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
48966         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
48967         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
48968         (re_string_context_at, re_string_peek_byte_case):
48969         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
48970         is defined, since we now use prototypes always.
48971
48972         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
48973         C89 or better.  All uses removed.
48974
48975 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48976
48977         * config/srclist.txt: Add glibc bugs 1220-1227.
48978
48979 2005-08-20  Jim Meyering  <jim@meyering.net>
48980
48981         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
48982         of unused local, dfa.
48983
48984 2005-08-20  Bruno Haible  <bruno@clisp.org>
48985
48986         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
48987
48988 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48989
48990         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
48991         (re_node_set_insert_last, re_dfa_add_node):
48992         Rename local variables to avoid GCC shadowing warnings.
48993
48994 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48995
48996         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
48997         [defined lint]: Suppress bogus uninitialized-variable warnings.
48998
48999         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49000         and let the caller return REG_ESPACE if out of space.  This
49001         removes an uninitialied-variable warning with GCC 4.0.1, and also
49002         avoids taking the address of a local variable.  All callers
49003         changed.
49004
49005 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49006
49007         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49008         $LIBCSRC/posix/regexec.c.
49009         Add glibc bug 1217 for regcomp.c.
49010
49011 2005-08-19  Jim Meyering  <jim@meyering.net>
49012
49013         * lib/regexec.c (proceed_next_node): Redo local variables to
49014         avoid GCC shadowing warnings.
49015
49016 2005-08-18  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/strstr.c (strstr): Fix return value in multibyte case.
49019         * lib/strcasestr.c (strcasestr): Likewise.
49020
49021 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49022
49023         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49024
49025 2005-08-17  Jim Meyering  <jim@meyering.net>
49026
49027         Make the %s format (seconds since the epoch) work for a negative
49028         number and when used with a zero-padded field width, e.g. %015s.
49029
49030         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49031         label so that it precedes the code to set `digits'.  Otherwise,
49032         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49033         print `00-22'.  Now, it prints `-0022', as it should.
49034
49035 2005-08-17  Bruno Haible  <bruno@clisp.org>
49036
49037         * modules/strstr (Files): Add m4/mbrtowc.m4.
49038         (Depends-on): Add mbuiter.
49039
49040 2005-08-17  Bruno Haible  <bruno@clisp.org>
49041
49042         * modules/strcasestr: New file.
49043         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49044         strcasestr.
49045
49046 2005-08-17  Bruno Haible  <bruno@clisp.org>
49047
49048         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49049
49050 2005-08-17  Bruno Haible  <bruno@clisp.org>
49051
49052         * modules/mbuiter: New file.
49053         * MODULES.html.sh (Extended multibyte and wide character utilities):
49054         Add mbuiter.
49055
49056 2005-08-17  Bruno Haible  <bruno@clisp.org>
49057
49058         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49059         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49060
49061 2005-08-17  Bruno Haible  <bruno@clisp.org>
49062
49063         * m4/strcasestr.m4: New file.
49064
49065 2005-08-17  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49068         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49069
49070 2005-08-17  Bruno Haible  <bruno@clisp.org>
49071
49072         * lib/strcasestr.h: New file.
49073         * lib/strcasestr.c: New file.
49074
49075 2005-08-17  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/strcasecmp.c: Use mbuiter.h.
49078
49079 2005-08-17  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/mbuiter.h: New file.
49082
49083 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49084
49085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49086         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49087         and gl_GETOPT are both invoked via different paths (as happens
49088         with GNU tar CVS because it uses both argp and getopt), the former
49089         wins.
49090
49091 2005-08-16  Bruno Haible  <bruno@clisp.org>
49092
49093         * modules/tls: New file.
49094         * MODULES.html.sh (Multithreading): Add tls.
49095
49096 2005-08-16  Bruno Haible  <bruno@clisp.org>
49097
49098         * modules/strnlen1: New file.
49099         * MODULES.html.sh (String handling): Add strnlen1.
49100
49101 2005-08-16  Bruno Haible  <bruno@clisp.org>
49102
49103         * modules/strcase (Files): Add m4/mbrtowc.m4.
49104         (Depends-on): Add strnlen1, mbchar.
49105
49106 2005-08-16  Bruno Haible  <bruno@clisp.org>
49107
49108         * modules/mbiter: New file.
49109         * MODULES.html.sh (Extended multibyte and wide character utilities):
49110         Add mbiter.
49111
49112 2005-08-16  Bruno Haible  <bruno@clisp.org>
49113
49114         * modules/mbfile: New file.
49115         * MODULES.html.sh (Extended multibyte and wide character utilities):
49116         Add mbfile.
49117
49118 2005-08-16  Bruno Haible  <bruno@clisp.org>
49119
49120         * modules/mbchar: New file.
49121         * MODULES.html.sh (Extended multibyte and wide character utilities):
49122         New section.
49123
49124 2005-08-16  Bruno Haible  <bruno@clisp.org>
49125
49126         * m4/tls.m4: New file, from GNU gettext.
49127
49128 2005-08-16  Bruno Haible  <bruno@clisp.org>
49129
49130         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49131         always.
49132         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49133
49134 2005-08-16  Bruno Haible  <bruno@clisp.org>
49135
49136         * m4/mbiter.m4: New file.
49137
49138 2005-08-16  Bruno Haible  <bruno@clisp.org>
49139
49140         * m4/mbfile.m4: New file.
49141
49142 2005-08-16  Bruno Haible  <bruno@clisp.org>
49143
49144         * m4/mbchar.m4: New file.
49145
49146 2005-08-16  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/tls.h: New file, from GNU gettext.
49149         * lib/tls.c: New file, from GNU gettext.
49150
49151 2005-08-16  Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/strnlen1.h: New file.
49154         * lib/strnlen1.c: New file.
49155
49156 2005-08-16  Bruno Haible  <bruno@clisp.org>
49157
49158         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49159         (mbi_init): Update.
49160         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49161         NUL byte, not after it.
49162
49163 2005-08-16  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/strcase.h (strcasecmp): Add note in comments.
49166         * lib/strncasecmp.c: Use code from strcasecmp.c.
49167         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49168         (strcasecmp): Work correctly in multibyte locales.
49169
49170 2005-08-16  Bruno Haible  <bruno@clisp.org>
49171
49172         * lib/mbiter.h: New file.
49173
49174 2005-08-16  Bruno Haible  <bruno@clisp.org>
49175
49176         * lib/mbfile.h: New file.
49177
49178 2005-08-16  Bruno Haible  <bruno@clisp.org>
49179
49180         * lib/mbchar.h: New file.
49181         * lib/mbchar.c: New file.
49182
49183 2005-08-16  Bruno Haible  <bruno@clisp.org>
49184
49185         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49186         the valid ones. Makes the comparison operations transitive:
49187         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49188         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49189
49190 2005-08-15  Simon Josefsson  <jas@extundo.com>
49191
49192         * modules/ssize_t (License): Change to 'unlimited'.
49193
49194         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49195
49196 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49199         Add comments for each pending glibc patch.
49200
49201 2005-08-15  Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49204         __cplusplus is defined.
49205
49206 2005-08-14  Jim Meyering  <jim@meyering.net>
49207
49208         Sync from coreutils.
49209
49210         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49211         Use the hash-table-based cycle-detection code not just when
49212         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49213         Reported by James Youngman in
49214         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49215         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49216         FTS_TIGHT_CYCLE_CHECK.
49217         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49218         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49219         once again.
49220         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49221         * lib/fts.c (fd_safer): Remove decl.
49222         Include fcntl--.h rather than unistd-safer.h
49223         (fts_safe_changedir): Don't call fd_safer; no longer needed
49224         now that we include fcntl--.h.
49225
49226 2005-08-12  Simon Josefsson  <jas@extundo.com>
49227
49228         * modules/getndelim2: Use ssize_t module.
49229         * modules/getnline: Likewise.
49230         * modules/safe-read: Likewise.
49231         * modules/xreadlink: Likewise.
49232
49233         * modules/ssize_t: New file.
49234
49235 2005-08-12  Simon Josefsson  <jas@extundo.com>
49236
49237         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49238
49239 2005-08-12  Simon Josefsson  <jas@extundo.com>
49240
49241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49242         ssize_t.
49243
49244 2005-08-12  Simon Josefsson  <jas@extundo.com>
49245
49246         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49247         readline, getdelim and check_version.
49248         (Support for systems lacking ISO C 99: Sizes of integer types):
49249         Add size_max.
49250
49251 2005-08-12  Bruno Haible  <bruno@clisp.org>
49252
49253         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49254
49255 2005-08-11  Simon Josefsson  <jas@extundo.com>
49256
49257         * modules/readline: New file.
49258
49259         * modules/strnlen (Files): Add strnlen.h.
49260
49261 2005-08-11  Simon Josefsson  <jas@extundo.com>
49262
49263         * m4/readline.m4: New file.
49264
49265 2005-08-11  Simon Josefsson  <jas@extundo.com>
49266
49267         * lib/readline.h, readline.c: New file.
49268
49269 2005-08-11  Simon Josefsson  <jas@extundo.com>
49270
49271         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49272         gl_AVOID.
49273
49274 2005-08-11  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49277
49278 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49279
49280         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49281
49282 2005-08-10  Simon Josefsson  <jas@extundo.com>
49283
49284         * tests/test-iconvme.c: New file.
49285
49286 2005-08-10  Simon Josefsson  <jas@extundo.com>
49287
49288         * m4/strnlen.m4: New file.
49289
49290         * m4/strndup.m4: Don't check for strnlen declaration, done in
49291         strnlen.m4.
49292
49293 2005-08-10  Simon Josefsson  <jas@extundo.com>
49294
49295         * lib/strndup.c: Use strnlen.h.
49296
49297         * lib/strnlen.h: New file.
49298
49299 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49300
49301         * README: Typos.
49302
49303 2005-08-02  Simon Josefsson  <jas@extundo.com>
49304
49305         * modules/readline: New file.
49306
49307 2005-08-02  Simon Josefsson  <jas@extundo.com>
49308
49309         * modules/getdelim: New file.
49310
49311         * modules/getline: Rewrite, don't use getndelim2.
49312
49313 2005-08-02  Simon Josefsson  <jas@extundo.com>
49314
49315         * m4/getline.m4: Separate out getdelim stuff into separate module.
49316
49317         * m4/getdelim.m4: New file.
49318
49319 2005-08-02  Simon Josefsson  <jas@extundo.com>
49320
49321         * lib/getline.h, getline.c: Rewrite.
49322
49323         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49324
49325 2005-07-31  Bruno Haible  <bruno@clisp.org>
49326
49327         * lib/lock.h (gl_lock_initializer): New macro.
49328         (gl_lock_define_initialized): Use it.
49329         (gl_rwlock_initializer): New macro.
49330         (gl_rwlock_define_initialized): Use it.
49331         (gl_recursive_lock_initializer): New macro.
49332         (gl_recursive_lock_define_initialized): Use it.
49333
49334 2005-07-30  Karl Berry  <karl@gnu.org>
49335
49336         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49337         Report from Ben Pfaff, regarding getopt.
49338
49339 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49340
49341         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49342         normal way.
49343         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49344         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49345         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49346         (gl_GETOPT): Use the new macros.  Most of the implementation
49347         is moved to the new macros.  This is for programs like Emacs
49348         that don't want all the functionality of gl_GETOPT.
49349
49350 2005-07-26  Bruno Haible  <bruno@clisp.org>
49351
49352         * m4/lock.m4: Update from GNU gettext.
49353
49354 2005-07-26  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/lock.h: Update from GNU gettext.
49357         * lib/lock.c: Update from GNU gettext.
49358
49359 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49360
49361         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49362         obsolescent AC_TRY_RUN.  Include the default includes files, for
49363         'exit'.
49364
49365 2005-07-24  Bruno Haible  <bruno@clisp.org>
49366
49367         * modules/visibility: New file.
49368         * MODULES.html.sh (Misc): Add visibility.
49369
49370 2005-07-24  Bruno Haible  <bruno@clisp.org>
49371
49372         * m4/visibility.m4: New file.
49373
49374 2005-07-24  Bruno Haible  <bruno@clisp.org>
49375
49376         * doc/visibility.texi: New file.
49377
49378 2005-07-22  Bruno Haible  <bruno@clisp.org>
49379
49380         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49381         $(ALLOCA_H), redundant through BUILT_SOURCES.
49382         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49383         redundant through BUILT_SOURCES.
49384         * modules/byteswap (Makefile.am): Remove explicit dependency on
49385         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49386         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49387         $(FNMATCH_H), redundant through BUILT_SOURCES.
49388         * modules/getopt (Makefile.am): Remove explicit dependency on
49389         $(GETOPT_H), redundant through BUILT_SOURCES.
49390         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49391         redundant through BUILT_SOURCES.
49392         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49393         redundant through BUILT_SOURCES.
49394         * modules/stdbool (Makefile.am): Remove explicit dependency on
49395         $(STDBOOL_H), redundant through BUILT_SOURCES.
49396         * modules/stdint (Makefile.am): Remove explicit dependency on
49397         $(STDINT_H), redundant through BUILT_SOURCES.
49398         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49399         Remove explicit dependency on $(SYSEXITS_H).
49400         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49401
49402 2005-07-18  Simon Josefsson  <jas@extundo.com>
49403
49404         * lib/check-version.c (check_version): Accept identical versions too.
49405
49406 2005-07-18  Bruno Haible  <bruno@clisp.org>
49407
49408         * modules/lock: New file.
49409         * MODULES.html.sh (Multithreading): New section.
49410
49411 2005-07-18  Bruno Haible  <bruno@clisp.org>
49412
49413         * m4/lock.m4: New file, from GNU gettext.
49414
49415 2005-07-18  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/lock.h: New file, from GNU gettext.
49418         * lib/lock.c: New file, from GNU gettext.
49419
49420 2005-07-18  Bruno Haible  <bruno@clisp.org>
49421
49422         * lib/lock.h (gl_once_t): New type.
49423         (gl_once_define, gl_once): New macros.
49424         * lib/lock.c (fresh_once): New variable.
49425         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49426         functions.
49427
49428 2005-07-16  Simon Josefsson  <jas@extundo.com>
49429
49430         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49431         workaround, suggested by Bruno.
49432
49433 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49434
49435         * modules/xalloc (Depends-on): Add xalloc-die.
49436         * modules/xvasprintf (Depends-on): Add xalloc-die.
49437
49438 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49439
49440         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49441         with a minor change.
49442
49443 2005-07-15  Bruno Haible  <bruno@clisp.org>
49444
49445         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49446         When using lib/poll.c, define poll as rpl_poll.
49447
49448 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49449
49450         * modules/argp (Depends-on): Remove unlocked-io.
49451
49452 2005-07-14  Derek Price  <derek@ximbiot.com>
49453
49454         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49455         for glob symlink bug.
49456
49457 2005-07-14  Bruno Haible  <bruno@clisp.org>
49458
49459         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49460         Instead, test for *_unlocked function declarations directly.
49461
49462 2005-07-11  Simon Josefsson  <jas@extundo.com>
49463
49464         * modules/size_max: New file.
49465
49466         * modules/xsize: Depend on size_max module for size_max.m4.
49467
49468 2005-07-11  Simon Josefsson  <jas@extundo.com>
49469
49470         * lib/size_max.h: New file.
49471
49472 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49475         copyright symbol and the year.
49476         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49477         (version_etc_va): Use parameterized copyright notice.
49478         Reword to conform to the current GNU coding standards.
49479
49480 2005-07-11  Karl Berry  <karl@gnu.org>
49481
49482         * doc/gnulib.texi (Quoting): new node.
49483         (Initial import): more info, from Patrice.
49484
49485 2005-07-11  Bruno Haible  <bruno@clisp.org>
49486
49487         * gnulib-tool (func_usage): Document option --avoid.
49488         (Command line options): Handle --avoid.
49489         (func_acceptable): New function.
49490         (func_modules_transitive_closure): Use it.
49491
49492 2005-07-11  Bruno Haible  <bruno@clisp.org>
49493
49494         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49495         Reported by Jim Meyering.
49496
49497 2005-07-10  Bruno Haible  <bruno@clisp.org>
49498
49499         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49500         Needed when size_t is smaller than 'unsigned int'.
49501         Reported by Paul Eggert.
49502
49503 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49504
49505         * modules/argp (Depends-on): Add unlocked-io
49506
49507 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49508
49509         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49510         block of defines.
49511
49512 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49513
49514         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49515         fix now.
49516
49517 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49518         and Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49521         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49522
49523 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49524
49525         * modules/regex (Files): Add lib/regex_internal.c,
49526         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49527         (Depends-on): Add extensions.
49528         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49529
49530 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49531
49532         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49533         pathconf.
49534         * m4/same.m4 (gl_SAME): Likewise.
49535         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49536
49537         * m4/regex.m4: Adjust to new libc regex implementation.
49538         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49539         all the .c and .h parts of (the new) regex.
49540         Quote the m4 stuff better.
49541         Check for RE_ICASE bug of old gnulib.
49542         Check for REG_STARTEND of recent libc.
49543         Rename local variables from jm_* to gl_*.
49544         Quote operand of "test -f".
49545         Say "recent enough" version of libc, not "version 2".
49546         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49547         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49548         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49549         Remove check for btowc, isascii.
49550         Require AM_LANGINFO_CODESET.
49551
49552 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49553
49554         * lib/regex.c, regex.h: Sync from libc.
49555         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49556         * lib/regexec.c:
49557         New files, synced from libc, except that regex_internal.h
49558         currently has a small porting fix.
49559
49560 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49561
49562         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49563         regex_internal.c, regexec.c.
49564         Add regex_internal.h too, but as a comment, since the libc version
49565         is currently broken in gnulib mode.
49566
49567 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49568
49569         Support programs like Emacs that use gnulib but not gettext.
49570         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49571         * modules/gettext-h: New file.
49572         * modules/gettext (Files): Remove lib/gettext.h.
49573         (Depends-on): Add gettext-h.
49574         (Makefile.am): Remove lib_SOURCES.
49575         * modules/argmatch, modules/c-stack, modules/closeout:
49576         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49577         * modules/execute, modules/file-type, modules/getaddrinfo:
49578         * modules/getopt, modules/human, modules/javacomp:
49579         * modules/javaexec, modules/mkdir-p, modules/obstack:
49580         * modules/openat, modules/pagealign_alloc, modules/pipe:
49581         * modules/quotearg, modules/regex, modules/rpmatch:
49582         * modules/unicodeio, modules/userspec, modules/version-etc:
49583         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49584         * modules/xsetenv:
49585         Depend on gettext-h, not gettext.
49586
49587 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49588
49589         * gnulib-tool (func_import): Add support for 'public domain' license.
49590         * modules/alloca, modules/atexit, modules/memmove:
49591         Now public domain, not GPL.
49592         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49593         * modules/realloc, modules/strerror, modules/strtod:
49594         Now LGPL, not GPL.
49595
49596 2005-07-05  Bruno Haible  <bruno@clisp.org>
49597
49598         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49599         autoconf CVS. Needed for mingw.
49600
49601 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49602
49603         Remove the dependency of the strftime module on the tzset module.
49604         * modules/strftime (Depends-on): Remove dependency on tzset.
49605
49606 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         Remove the dependency of the strftime module on the tzset module.
49609         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49610         gl_FUNC_TZSET_CLOBBER.
49611
49612 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         Remove the dependency of the strftime module on the tzset module.
49615         * lib/strftime.c (my_strftime)
49616         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49617         Copy the input structure, to work around some of the bug with
49618         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49619         Solaris releases, you should also use the tzset module, but we won't
49620         require it as a dependency any more since we don't want LGPLed code
49621         to depend on GPLed code.
49622
49623 2005-07-02  Jim Meyering  <jim@meyering.net>
49624
49625         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49626         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49627         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49628         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49629
49630 2005-07-02  Jim Meyering  <jim@meyering.net>
49631
49632         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49633
49634 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49635
49636         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49637         declares only 'struct timespec;' (!).
49638
49639 2005-07-01  Jim Meyering  <jim@meyering.net>
49640
49641         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49642         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49643         * lib/save-cwd.c, tempname.c:
49644         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49645         and don't include <sys/file.h>).
49646
49647 2005-06-29  Jim Meyering  <jim@meyering.net>
49648
49649         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49650         type name.  Use the variable name instead.
49651         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49652         Likewise.
49653
49654 2005-06-28  Simon Josefsson  <jas@extundo.com>
49655
49656         * modules/check-version (Files): Add check-version.m4.
49657
49658 2005-06-28  Simon Josefsson  <jas@extundo.com>
49659
49660         * m4/check-version.m4: New file, suggested by Jim Meyering
49661         <jim@meyering.net>.
49662
49663 2005-06-28  Simon Josefsson  <jas@extundo.com>
49664
49665         * lib/check-version.h, lib/check-version.c: New files.
49666
49667 2005-06-28  Simon Josefsson  <jas@extundo.com>
49668
49669         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49670         collision with global variable.  Better indentation.  Don't
49671         increment buffer pointer beyond buffer end.  Based on comments
49672         from Paul Eggert <eggert@cs.ucla.edu>.
49673
49674         * lib/base64.h: Indent.
49675
49676 2005-06-28  Simon Josefsson  <jas@extundo.com>
49677
49678         * doc/gnulib.texi (Library version handling): New section.
49679
49680 2005-06-28  Jim Meyering  <jim@meyering.net>
49681
49682         * check-module (find_included_lib_files): Hard-code another
49683         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49684         but modules/fts-lgpl (correctly) does not list those files.
49685
49686         * modules/canonicalize (Files): Add lib/pathmax.h.
49687
49688 2005-06-25  Simon Josefsson  <jas@extundo.com>
49689
49690         * modules/check-version: New file.
49691
49692 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
49693
49694         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49695         initializer of struct addrinfo, as an indication that we don't
49696         care how many members the structure has.
49697
49698 2005-06-24  Derek Price  <derek@ximbiot.com>
49699         and Bruno Haible  <bruno@clisp.org>
49700
49701         Remove stat module & update lstat.
49702         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49703         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49704         * m4/stat.m4: Remove this file.
49705
49706 2005-06-24  Derek Price  <derek@ximbiot.com>
49707         and Bruno Haible  <bruno@clisp.org>
49708
49709         Remove stat module & update lstat.
49710         * lib/stat.c: Remove this file...
49711         (slash_aware_lstat): ...moving this content and its support...
49712         * lib/lstat.c (rpl_lstat): ...into here.
49713         * lib/lstat.h: New file.
49714
49715 2005-06-24  Derek Price  <derek@ximbiot.com>
49716         and Bruno Haible  <bruno@clisp.org>
49717
49718         Remove stat module & update lstat.
49719         * config/srclist.txt (libc sources): Remove stat.
49720
49721 2005-06-24  Derek Price  <derek@ximbiot.com>
49722         and Bruno Haible  <bruno@clisp.org>
49723
49724         Remove stat module & update lstat.
49725         * MODULES.html.sh (stat): Remove.
49726         * MODULES.html: Regenerated.
49727         * modules/lstat (Description): Correct function name.
49728         (Files): Add "lstat.h".
49729         (Depends-on): Remove stat, add xalloc, stat-macros.
49730         * modules/stat: Remove this file.
49731         (Include): Add "lstat.h", remove <sys/stat.h>.
49732
49733 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49734
49735         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
49736         (ranged_convert): Don't save conversion in a temporary struct.
49737         This causes a warning with GCC 4.0.0, and anyway in the typical
49738         case it's not worth the extra 100 bytes or so of code.
49739         (ranged_convert, __mktime_internal): When calling a function via a
49740         pointer P, use P () rather than (*P) (), as we now assume C89 or
49741         better.
49742
49743 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49746         "who -r" failed to give output.  Problem reported by Tim Waugh.
49747
49748         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49749         (xcalloc): Use it to avoid needless tests.
49750         Problem reported by Jim Meyering.
49751
49752 2005-06-20  Derek Price  <derek@ximbiot.com>
49753
49754         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49755         unnecessary for Autoconfs > 2.59c.
49756
49757 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49758
49759         * lib/argp.h (__option_is_short): Check upper limit of
49760         __key. Isprint() requires its argument to have the value
49761         of an unsigned char or EOF.
49762
49763 2005-06-16  Jim Meyering  <jim@meyering.net>
49764
49765         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
49766         when either N or S is zero.
49767
49768 2005-06-16  Derek Price  <derek@ximbiot.com>
49769
49770         * m4/bison.m4: Declare YACC & YFLAGS precious.
49771
49772 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
49773
49774         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
49775         multibyte string or pattern, fall back on unibyte matching.
49776         Problem reported by James Youngman.
49777
49778 2005-06-08  Bruno Haible  <bruno@clisp.org>
49779
49780         * modules/csharpcomp: New file.
49781         * MODULES.html.sh (C#): Add csharpcomp.
49782
49783 2005-06-08  Bruno Haible  <bruno@clisp.org>
49784
49785         * m4/csharpcomp.m4: New file, from GNU gettext.
49786
49787 2005-06-08  Bruno Haible  <bruno@clisp.org>
49788
49789         * lib/csharpcomp.h: New file, from GNU gettext.
49790         * lib/csharpcomp.c: New file, from GNU gettext.
49791         * lib/csharpcomp.sh.in: New file, from GNU gettext.
49792
49793 2005-06-08  Bruno Haible  <bruno@clisp.org>
49794
49795         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
49796         warning on mingw.
49797
49798 2005-06-07  Derek Price  <derek@ximbiot.com>
49799
49800         Sync from CVS.
49801         * lib/glob_.h: Indent nested #ifdef.
49802
49803 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         Sync from coreutils.
49806         Use "file name" when talking about file names, instead of "filename"
49807         or "path", as per the GNU coding standards.
49808         * lib/mkdir-p.c: Renamed from makepath.c.
49809         (make_dir_parents): Renamed from make_path.  All callers changed.
49810         * lib/mkdir-p.h: Likewise.  All includers changed.
49811         * lib/filenamecat.c: Renamed from path-concat.c.
49812         (file_name_concat): Renamed from path_concat.  All callers changed.
49813         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
49814         * lib/filenamecat.h: Likewise.  All includers changed.
49815         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
49816         in comments or local variable names.
49817         * lib/basename.c: Likewise.
49818         * lib/canonicalize.c, canonicalize.h: Likewise.
49819         * lib/dirname.c, dirname.h: Likewise.
49820         * lib/euidaccess.c: Likewise.
49821         * lib/exclude.c: Likewise
49822         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
49823         * lib/fsusage.c, fsuage.h: Likewise.
49824         * lib/fts.c, fts_.h: Likewise.
49825         * lib/getcwd.c: Likewise.
49826         * lib/getloadavg.c: Likewise.
49827         * lib/mkstemp.c: Likewise.
49828         * lib/mountlist.c, mountlist.h: Likewise.
49829         * lib/openat.c, openat.h: Likewise.
49830         * lib/readlink-stub.c: Likewise.
49831         * lib/readutmp.c, readutmp.h: Likewise.
49832         * lib/rename.c: Likewise.
49833         * lib/rmdir.c: Likewise.
49834         * lib/same.c: Likewise.
49835         * lib/savedir.c: Likewise.
49836         * lib/stripslash.c: Likewise.
49837         * lib/tempname.c: Likewise.
49838         * lib/xreadlink.c: Likewise.
49839         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
49840         All uses changed.
49841         * lib/exclude.h: Likewise.
49842
49843         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
49844         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49845         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
49846         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49847         * lib/pathmax.h: Include <limits.h> unconditionally, since other
49848         files have been getting away with it for years (MORE/BSD 4.3
49849         is extinct now).
49850         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
49851         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49852
49853         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
49854         Define to 256, not 255, as per modern POSIX.
49855
49856 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49857
49858         Sync from coreutils.
49859         Use "file name" when talking about file names, instead of "filename"
49860         or "path", as per the GNU coding standards.
49861         * MODULES.html.sh: mkdir-p renamed from makepath.
49862         filenamecat renamed from path-concat.
49863         * modules/filenamecat: Renamed from modules/path-concat.
49864         (Files): filenamecat.h and filenamecat.c renamed from
49865         path-concat.h and path-concat.c.
49866         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
49867         (Include): filenamecat.h, not path-concat.h.
49868         * modules/mkdir-p: Renamed from modules/makepath.
49869         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
49870         makepath.c.
49871         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
49872         (Include): mkdir-p.h, not makepath.h.
49873
49874 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         Sync from coreutils.
49877         * m4/mkdir-p.m4: Renamed from makepath.m4.
49878         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
49879         Rename files from makepath.c to mkdir-p.c, and from
49880         makepath.h to mkdir-p.h.
49881         * m4/filenamecat.m4: Renamed from path-concat.m4.
49882         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
49883         Rename files from path-concat.c to filenamecat.c,
49884         and from path-concat.h to filenamecat.h.
49885         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
49886         "file name" in local variables or comments.
49887         * m4/rename.m4: Likewise.
49888
49889 2005-06-01  Bruno Haible  <bruno@clisp.org>
49890
49891         * modules/csharpexec: New file.
49892         * MODULES.html.sh (C#): New section.
49893
49894 2005-06-01  Bruno Haible  <bruno@clisp.org>
49895
49896         * m4/csharp.m4: New file, from GNU gettext.
49897         * m4/csharpexec.m4: New file, from GNU gettext.
49898
49899 2005-06-01  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/csharpexec.h: New file, from GNU gettext.
49902         * lib/csharpexec.c: New file, from GNU gettext.
49903         * lib/csharpexec.sh.in: New file, from GNU gettext.
49904
49905 2005-05-31  Derek Price  <derek@ximbiot.com>
49906             Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         Sync from cvs.
49909         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49910
49911 2005-05-31  Derek Price  <derek@ximbiot.com>
49912             Paul Eggert  <eggert@cs.ucla.edu>
49913
49914         Sync from cvs.
49915         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49916
49917 2005-05-29  Derek Price  <derek@ximbiot.com>
49918
49919         * config/srclist.txt (glob_.h, glob.c): Add these files.
49920
49921 2005-05-29  Derek Price  <derek@ximbiot.com>
49922
49923         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
49924         * modules/glob: New file.
49925         * modules/getlogin_r: Add link to POSIX spec in description.
49926
49927 2005-05-29  Derek Price  <derek@ximbiot.com>
49928             Paul Eggert  <eggert@cs.ucla.edu>
49929
49930         * m4/glob.m4: New file.
49931
49932 2005-05-29  Derek Price  <derek@ximbiot.com>
49933             Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         * lib/glob_.h, lib/glob.c: New files.
49936
49937 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49938
49939         * modules/fts (Files): Remove m4/inttypes-pri.m4.
49940         * modules/fts-lgpl (Depends-on): Remove gettext.
49941
49942 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49943
49944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
49945         and don't require gt_INTTYPES_PRI.
49946
49947 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49948
49949         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
49950
49951         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
49952         the configuration hassle isn't worth it.
49953         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
49954         (LONGEST_MODIFIER, PRIuMAX): Remove.
49955
49956 2005-05-27  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/getlogin_r.h: Remove second include of <stddef.h>.
49959
49960 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
49961
49962         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
49963         _POSIX_PTHREAD_SEMANTICS for Solaris.
49964
49965 2005-05-25  Derek Price  <derek@ximbiot.com>
49966
49967         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
49968
49969 2005-05-25  Derek Price  <derek@ximbiot.com>
49970             Paul Eggert  <eggert@cs.ucla.edu>
49971
49972         * modules/getlogin_r, m4/getlogin_r.m4: New files.
49973         * lib/getlogin_r.c, getlogin_r.h: New files.
49974
49975 2005-05-25  Bruno Haible  <bruno@clisp.org>
49976             Derek Price  <derek@ximbiot.com>
49977
49978         * lib/getlogin_r.h: Simplify API documentation.
49979
49980 2005-05-23  Derek Price  <derek@ximbiot.com>
49981
49982         * modules/minmax (Files): Add m4/minmax.m4.
49983         (configure.ac): Add gl_MINMAX.
49984
49985 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49986
49987         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
49988         so that unistd-safer.h (GPL'ed code) need not be included.
49989
49990 2005-05-22  Bruno Haible  <bruno@clisp.org>
49991
49992         * m4/minmax.m4: New file.
49993         Based on a patch by Derek Price <derek@ximbiot.com>.
49994
49995 2005-05-22  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
49998         (INT64_MIN): Fix definition.
49999         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50000
50001         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50002         NEED_SIGNED_INT_TYPES.
50003
50004         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50005         HAVE_SYSTEM_INTTYPES.
50006
50007 2005-05-22  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50010         Also include <sys/param.h> if it defines MIN, MAX.
50011         Based on a patch by Derek Price <derek@ximbiot.com>.
50012
50013 2005-05-21  Jim Meyering  <jim@meyering.net>
50014
50015         * modules/fts (Files): Add m4/inttypes-pri.m4.
50016         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50017
50018 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50019
50020         New fts module.
50021         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50022         (setup_dir, free_dir): New functions.
50023         (enter_dir, leave_dir): Define trivial
50024         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50025         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50026         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50027         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50028         Move to fts-cycle.c.
50029         (fts_open): Use setup_dir.
50030         (fts_close): Use free_dir.
50031         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50032         This adds a label and some gotos, but the alternatives were messier.
50033         Check for memory allocation failure when entering a dir.
50034         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50035         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50036         (FTS): New member fts_cycle, that is a union that contains the
50037         old active_dir_ht and cycle_state.  All uses changed to mention
50038         fts_cycle.ht and fts_cycle.state.
50039         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50040         fts.c, with the following changes:
50041         (setup_dir, free_dir): New functions.
50042         (enter_dir): Now returns bool.  Return true if successful, false
50043         if memory exhausted.  All callers changed.
50044         Do not bother partly cleaning up on
50045         memory allocation failure; that is free_dir's job.
50046         However, free ad if hash_insert fails, to avoid memory leak.
50047         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50048         fts->fts_options to see which union member to use.
50049
50050 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50051
50052         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50053         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50054
50055 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50056
50057         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50058
50059 2005-05-20  Jim Meyering  <jim@meyering.net>
50060
50061         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50062         Now a macro, to pacify GCC.
50063
50064 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50065
50066         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50067         of -1.
50068
50069 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50070
50071         * lib/chown.c (rpl_chown): Return -1 on failure.
50072
50073 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50074
50075         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50076         Don't check for stddef.h.
50077         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50078         don't use its results.
50079         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50080         since we include them unconditionally.  Don't require
50081         AM_STDBOOL_H, since stdbool is a prerequisite.
50082         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50083         since we assume C89 or better.
50084         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50085         as we don't use their results.
50086         Don't check for fchdir, memmove, memset, strrchr, as we use
50087         them unconditionally.
50088         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50089         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50090
50091 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50092
50093         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50094         Include <stddef.h> unconditionally, since we assume C89 now.
50095         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50096         * lib/fts.c: Include fts_.h first, to check interface.
50097         Do not include intprops.h; no longer needed.
50098         Include cycle-check.h and hash.h, since fts_.h no longer does.
50099         Remove unnecessary casts of closedir to void.
50100         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50101         decide whether to decrement nlinks.
50102         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50103         (FTS): Use struct hash_table * instead of Hash_table, so that
50104         we no longer need to include hash.h here.
50105
50106 2005-05-18  Jim Meyering  <jim@meyering.net>
50107
50108         * modules/dirfd (License): Change to LGPL.  Most of the code
50109         is already in the public domain.
50110
50111 2005-05-18  Jim Meyering  <jim@meyering.net>
50112
50113         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50114         Reported by Yoann Vandoorselaere.
50115
50116 2005-05-17  Jim Meyering  <jim@meyering.net>
50117
50118         * m4/fts.m4: New file, from coreutils.
50119
50120 2005-05-17  Jim Meyering  <jim@meyering.net>
50121
50122         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50123
50124 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         Sync from coreutils.
50127         * m4/unlinkdir.m4: New file.
50128
50129 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         Sync from coreutils.
50132         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50133         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50134         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50135         White space changes only.
50136         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50137         special.
50138         * lib/yesno.c: Include getline.h, not ctype.h.
50139         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50140         Use getline to remove arbitrary restriction on response length.
50141
50142 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50143
50144         * config/srclist-update: Spell out "Street" in FSF postal
50145         mail address; this is the style the FSF seems to prefer.
50146
50147         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50148         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50149         this updates FSF postal mail address.
50150
50151         Sync from coreutils.
50152         * modules/unlinkdir: New file.
50153         * modules/yesno (Depends-on): Add getline.
50154         * MODULES.html.sh (File system functions): Add unlinkdir.
50155
50156 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50157
50158         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50159         lib/strsep.h:
50160         Change the initial comment to refer to GPL, not LGPL.
50161         gnulib-tool will change it to LGPL as needed.
50162
50163         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50164         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50165         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50166         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50167         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50168         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50169         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50170         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50171         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50172         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50173         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50174         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50175         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50176         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50177         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50178         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50179         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50180         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50181         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50182         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50183         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50184         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50185         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50186         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50187         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50188         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50189         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50190         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50191         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50192         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50193         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50194         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50195         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50196         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50197         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50198         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50199         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50200         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50201         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50202         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50203         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50204         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50205         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50206         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50207         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50208         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50209         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50210         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50211         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50212         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50213         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50214         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50215         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50216         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50217         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50218         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50219         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50220         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50221         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50222         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50223         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50224         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50225         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50226         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50227         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50228         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50229         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50230         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50231         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50232         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50233         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50234         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50235         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50236         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50237         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50238         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50239         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50240         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50241         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50242         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50243         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50244         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50245         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50246         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50247         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50248         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50249         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50250         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50251         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50252         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50253         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50254         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50255         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50256         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50257         lib/yesno.c, lib/yesno.h:
50258         Update FSF postal mail address.
50259
50260 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50261
50262         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50263         tests/test-memmem.c, tests/test-stpncpy.c:
50264         Update FSF postal mail address.
50265
50266 2005-05-13  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50269         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50270         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50271         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50272         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50273         Add support for 64-bit integers in the MSVC compiler.
50274
50275 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50276
50277         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50278
50279 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50280
50281         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50282
50283 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50284
50285         * doc/getdate.texi (General date syntax): Don't say that date
50286         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50287         Problem reported by Nic Ferrier.
50288
50289 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50290
50291         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50292         specified in ai_socktype. Fix invalid ai_protocol
50293         check. ai_protocol is usually set to 0 or depending on
50294         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50295         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50296         ai_socktype / ai_protocol in the returned addrinfo structure.
50297
50298 2005-05-10  Simon Josefsson  <jas@extundo.com>
50299
50300         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50301         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50302
50303 2005-05-10  Karl Berry  <karl@gnu.org>
50304
50305         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50306         (from http://www.gnu.org/licenses).
50307         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50308         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50309         fdl.texi suffices.
50310
50311 2005-05-10  Karl Berry  <karl@gnu.org>
50312
50313         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50314         (COPYING.DOC): remove.
50315
50316         * config/srclist-update: new FSF address.
50317
50318 2005-05-10  Derek Price  <derek@ximbiot.com>
50319
50320         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50321         possible.
50322
50323 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50324             Bruno Haible  <bruno@clisp.org>
50325
50326         * modules/inet_ntop: New file.
50327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50328         inet_ntop.
50329
50330 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50331             Bruno Haible  <bruno@clisp.org>
50332
50333         * m4/inet_ntop.m4: New file.
50334
50335 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50336             Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/inet_ntop.h: New file.
50339         * lib/inet_ntop.c: New file, from glibc with modifications.
50340
50341 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * modules/time_r (License): Change to LGPL.
50344         * modules/extensions (License): Change to LGPL.  Actually,
50345         the license is more permissive than that, but currently gnulib-tool
50346         doesn't know how to handle more-permissive licenses.
50347
50348         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50349         Problem reported by Dave Love.
50350
50351 2005-05-08  Jim Meyering  <jim@meyering.net>
50352
50353         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50354         blank.
50355
50356 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50357
50358         * modules/argmatch (Depends-on): Add stdbool.
50359         * modules/backupfile (Depends-on): Likewise.
50360         * modules/chdir-long (Depends-on): Likewise.
50361         * modules/closeout (Depends-on): Likewise.
50362         * modules/cycle-check (Depends-on): Likewise.
50363         * modules/dirname (Depends-on): Likewise.
50364         * modules/fnmatch (Depends-on): Likewise.
50365         * modules/fsusage (Depends-on): Likewise.
50366         * modules/fwriteerror (Depends-on): Likewise.
50367         * modules/getcwd (Depends-on): Likewise.
50368         * modules/getloadavg (Depends-on): Likewise.
50369         * modules/hard-locale (Depends-on): Likewise.
50370         * modules/makepath (Depends-on): Likewise.
50371         * modules/mountlist (Depends-on): Likewise.
50372         * modules/nanosleep (Depends-on): Likewise.
50373         * modules/posixtm (Depends-on): Likewise.
50374         * modules/quotearg (Depends-on): Likewise.
50375         * modules/readtokens (Depends-on): Likewise.
50376         * modules/readtokens0 (Depends-on): Likewise.
50377         * modules/readutmp (Depends-on): Likewise.
50378         * modules/save-cwd (Depends-on): Likewise.
50379         * modules/strftime (Depends-on): Likewise.
50380         * modules/userspec (Depends-on): Likewise.
50381         * modules/utimecmp (Depends-on): Likewise.
50382         * modules/xgetcwd (Depends-on): Likewise.
50383         * modules/xnanosleep (Depends-on): Likewise.
50384         * modules/xstrtod (Depends-on): Likewise.
50385         * modules/yesno (Depends-on): Likewise.
50386
50387 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50388
50389         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50390         needless checks.
50391
50392 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50393
50394         Merge from coreutils.  Among other things,
50395         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50396         * lib/fd-safer.c: New file.
50397         * lib/fcntl-safer.h, open-safer.c: Remove.
50398         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50399         * lib/dup-safer.c: Include unistd-safer.h first.
50400         Don't include errno.h.
50401         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50402         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50403         * lib/file-type.c: Rely on file-type.h change.
50404         * lib/getloadavg.c: Include unistd-safer.h.
50405         (getloadavg): Use safer open.
50406         * lib/getusershell.c: Include "stdio-safer.h".
50407         (getusershell): Use safer fopen.
50408         * lib/long-options.c (long_options): Use NULL rather than 0.
50409         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50410         'free'.
50411         * lib/modechange.c: Likewise.
50412         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50413         (MODE_DONE): New constant.
50414         (struct mode_change): Remove 'next' member.
50415         (make_node_op_equals): New function; like the old one of the
50416         same name, except it allocates an array.
50417         (mode_compile, mode_create_from_ref): Use it.
50418         (mode_compile): Allocate result as an array, not a linked list.
50419         Parse octal string ourself, so that we catch mistakes like "+0".
50420         (mode_adjust): Arg is an array, not a linked list.
50421         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50422         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50423         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50424         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50425         Remove.  This is now stat-macros.h's job.
50426         (talloc): Remove.  All callers replaced by xalloc, so that
50427         our invokers don't have to worry about reporting memory failures.
50428         (make_node_op_equals): Remove.
50429         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50430         New constants.
50431         (struct mode_change): Moved here from modechange.h.
50432         (mode_append_entry): Remove.
50433         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50434         apps to have incorrect behavior.  Use simpler algorithm for head
50435         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50436         Detect more invalid usages rather than having somewhat-random behavior.
50437         Don't insert an "a=" action, as that leads to incorrect behavior.
50438         (mode_compile, mode_create_from_ref): Return NULL on error instead
50439         of an enum, since now there's only one way to have an error.  All
50440         callers changed.
50441         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50442         at the correct time.  Simplify calculation of "+u" and its ilk.
50443         Don't mishandle "+X".
50444         (mode_free): Remove "register" and localize decls.
50445         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50446         (struct mode_change): Move to modechange.c; callers don't
50447         need to see this stuff.
50448         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50449         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50450         (mode_change, mode_adjust): Reflect the new signatures noted above.
50451         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50452         that might redefine system include files.
50453         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50454         (my_usleep): Use NULL rather than (void *) 0.
50455         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50456         Use siginterrupt to specify that system calls should be interrupted.
50457         (rpl_nanosleep): Move initialization of suspended closer to call of
50458         my_usleep.
50459         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50460         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50461         (desirable_utmp_entry): New function.
50462         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50463         using x2nrealloc, to simplify logic.
50464         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50465         size calculation.  Do not assume utmp file is a regular file.
50466         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50467         (READ_UTMP_CHECK_PIDS): New constant.
50468         * lib/save-cwd.c: Include unistd-safer.h.
50469         (save_cwd): Use fd_safer.
50470         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50471         [!_LIBC] Include "stat-macros.h" instead.
50472         * lib/unistd-safer.h (fd_safer): New decl.
50473
50474 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50475
50476         * modules/getloadavg (Depends-on): Add unistd-safer.
50477         * modules/getusershell (Depends-on): Add stdio-safer.
50478         * modules/lstat (Depends-on): Remove xalloc.
50479         * modules/mkstemp (Depends-on): Add stat-macros.
50480         * modules/modechange (Depends-on): Remove xstrtol.
50481         Add stat-macros, xalloc.
50482         * modules/save-cwd (Depends-on): Add unistd-safer.
50483         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50484         * modules/unistd-safer (Files): Add lib/fd-safer.c
50485         (Makefile.am): Remove lib_SOURCES.
50486
50487         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50488         Remove fcntl-safer; unistd-safer supersedes it.
50489
50490 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50491
50492         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50493         AC_HEADER_STAT.
50494         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50495         (gl_PREREQ_CHOWN): Remove.
50496         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50497         it.  Don't require AC_HEADER_STAT.
50498         (gl_PREREQ_LSTAT): Remove.
50499         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50500         Don't require AC_HEADER_STAT.
50501         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50502         (gl_PREREQ_RMDIR): Remove.
50503         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50504         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50505         the stat-macros module a prerequisite.
50506         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50507         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50508         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50509         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50510         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50511         variable names.
50512         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50513         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50514         variable prefixes.
50515         * m4/fcntl-safer.m4: Remove.
50516         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50517         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50518         Invoke gl_PREREQ_FD_SAFER.
50519         (gl_PREREQ_FD_SAFER): New macro.
50520         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50521         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50522         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50523         Remove duplicate call to AC_LIBOBJ(readutmp).
50524         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50525
50526         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50527         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50528
50529 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * MODULES.html.sh (Misc): Add byteswap.
50532
50533 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50534
50535         * modules/getcwd (Depends-on): Add extensions.
50536         * modules/openat (Depends-on): Likewise.
50537
50538 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50539
50540         * modules/byteswap: New file.
50541
50542 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50543
50544         * m4/byteswap.m4: New file.
50545
50546 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50547
50548         * lib/byteswap_.h: New file.
50549
50550 2005-04-25  Karl Berry  <karl@gnu.org>
50551
50552         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50553
50554 2005-04-25  Albert Chin  <china@thewrittenword.com>
50555
50556         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50557         Toolkit C bug.
50558
50559 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50560
50561         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50562         (func_ln_if_changed) Remove forcibly for no error message
50563         in case file does not exist.
50564
50565 2005-04-19  Simon Josefsson  <jas@extundo.com>
50566
50567         * gnulib-tool (Options): Make --symlink mean --symbolic.
50568
50569 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50570
50571         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50572
50573 2005-04-16  Simon Josefsson  <jas@extundo.com>
50574
50575         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50576
50577 2005-04-15  Simon Josefsson  <jas@extundo.com>
50578
50579         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50580
50581 2005-04-15  Simon Josefsson  <jas@extundo.com>
50582
50583         * gnulib-tool: Rename --symlink to --symbolic.
50584
50585 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50586
50587         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50588         symbolic links to files instead of copying/moving.  Add --aux-dir,
50589         specifying directory relative --dir where auxiliary build tools
50590         are placed.
50591
50592 2005-04-14  Bruno Haible  <bruno@clisp.org>
50593
50594         * modules/allocsa (License): Change to LGPL.
50595         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50596
50597 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50598
50599         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50600         that "UTC +1 second" continues to work.  Problem reported
50601         by Dmitry V. Levin.
50602         (relunit_snumber): New rule.
50603         (relunit): Use it.
50604
50605 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50606
50607         * lib/getdate.y (universal_time_zone_table): New constant.
50608         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50609         universal_time_zone_table.
50610         (lookup_zone): Prefer universal_time_zone_table to
50611         local_time_zone_table, so that "GMT" time stamps are allowed in
50612         London during the summer.  Problem reported by Ian Abbott.
50613
50614 2005-04-12  Jim Meyering  <jim@meyering.net>
50615
50616         * lib/human.c (humblock): Set *options even when returning due to
50617         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50618         warning from gcc-4.
50619
50620 2005-04-09  Jim Meyering  <jim@meyering.net>
50621
50622         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50623         -Wuninitialized: initialize tm0.tm_year.
50624
50625 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50626
50627         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50628         count, since there's no maximum.  All uses changed.
50629         Add member dsts_seen.
50630         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50631         not being INT_MAX.
50632         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50633         Use pc_rels_seen to decide whther a date is absolute.
50634
50635         * lib/getdate.y (number): Don't overwrite year.
50636         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50637         check.
50638
50639 2005-04-02  Simon Josefsson  <jas@extundo.com>
50640
50641         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50642         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50643
50644 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50645
50646         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50647         where no absolute path name can be longer than PATH_MAX.
50648
50649 2005-03-27  Jim Meyering  <jim@meyering.net>
50650
50651         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50652
50653 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50654
50655         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50656         "one's complement" -> "ones' complement" in comment, as per Knuth.
50657         "value of type" -> "type or expression" in comment.
50658         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50659
50660 2005-03-26  Jim Meyering  <jim@meyering.net>
50661
50662         Comment nits.
50663         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50664         Correct typos: s/or/of/.
50665
50666 2005-03-26  Jim Meyering  <jim@meyering.net>
50667
50668         * modules/check-include-files: Move to ../ and rename to...
50669         * check-module: ...this.
50670
50671 2005-03-25  Jim Meyering  <jim@meyering.net>
50672
50673         * modules/xvasprintf (Files): Add xalloc.h.
50674
50675 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50676
50677         * modules/gettext (Files): config/config.rpath ->
50678         build-aux/config.rpath
50679         * modules/iconv (Files): Likewise.
50680         Problem reported by Oskar Liljeblad.
50681
50682 2005-03-23  Jim Meyering  <jim@meyering.net>
50683
50684         * modules/check-include-files: New script to check for
50685         missing dependencies, multiple includes, etc.
50686
50687         * modules/c-strtold (Depends-on): Add xalloc.
50688         * modules/c-strtod (Depends-on): Add xalloc.
50689         * modules/hash (Depends-on): Add xalloc.
50690         (Files): Remove lib/xalloc.h.
50691
50692         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50693         * modules/userspec (Files): Add lib/inttostr.h.
50694
50695 2005-03-23  Jim Meyering  <jim@meyering.net>
50696
50697         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50698
50699 2005-03-22  Jim Meyering  <jim@meyering.net>
50700
50701         * modules/stat-macros: New module.
50702         * modules/canonicalize, modules/euidaccess, modules/file-type,
50703         * modules/filemode, modules/lchown, modules/makepath,
50704         * modules/rmdir, modules/stat: Depend on new stat-macros module
50705         rather than listing lib/stat-macros.h manually.
50706         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50707
50708 2005-03-22  Jim Meyering  <jim@meyering.net>
50709
50710         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50711
50712 2005-03-22  Bruno Haible  <bruno@clisp.org>
50713
50714         * config/srclist.txt: Replace target directory 'config' with
50715         'build-aux'.
50716         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50717         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50718         ../build-aux/.
50719
50720 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
50721
50722         * modules/chdir-long (Depends-on): Add mempcpy.
50723
50724         * modules/acl, modules/backupfile, modules/c-strtod,
50725         modules/c-strtold, modules/canon-host, modules/canonicalize,
50726         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50727         modules/exclude, modules/exitfail, modules/file-type,
50728         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50729         modules/getdate, modules/getline, modules/getpagesize,
50730         modules/getpass, modules/getugroups, modules/group-member,
50731         modules/hard-locale, modules/hash, modules/human, modules/idcache,
50732         modules/inttostr, modules/long-options, modules/makepath,
50733         modules/md5, modules/memcasecmp, modules/memcoll,
50734         modules/modechange, modules/mountlist, modules/path-concat,
50735         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50736         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50737         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50738         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50739         modules/strftime, modules/strndup, modules/strverscmp,
50740         modules/timespec, modules/unlocked-io, modules/userspec,
50741         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50742         modules/yesno:
50743         Remove lib_SOURCES line from Makefile.am section, as this is now
50744         done automatically by the corresponding Autoconf macro.
50745
50746 2005-03-21  Jim Meyering  <jim@meyering.net>
50747
50748         Changes imported from coreutils.
50749
50750         * lib/cycle-check.c: Don't include xalloc.h.
50751
50752         * lib/path-concat.c: Don't include assert.h.
50753         (path_concat): Remove assertion that would have triggered
50754         for ABASE starting with more than one slash.
50755         Reported by Andreas Schwab.
50756
50757         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
50758         properly when ABASE is an absolute file name.
50759         Correct the description of this function.
50760         Include <assert.h>.
50761         Add an assertion and a test driver.
50762         This fixes a bug introduced on 2004-07-02.
50763         Andreas Schwab reported the resulting failure of cp --parents:
50764         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
50765
50766 2005-03-21  Jim Meyering  <jim@meyering.net>
50767
50768         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
50769         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
50770
50771 2005-03-21  Jim Meyering  <jim@meyering.net>
50772         and  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
50775         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
50776         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
50777         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
50778         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
50779         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
50780         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
50781         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
50782         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
50783         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
50784         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
50785         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
50786         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
50787         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
50788         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
50789         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
50790         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
50791         for these modules.
50792
50793 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
50794
50795         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
50796         (which shouldn't happen), generate nothing instead of returning 0
50797         immediately, so that nstrftime (NULL, ...) doesn't return 0.
50798
50799 2005-03-16  Bruno Haible  <bruno@clisp.org>
50800
50801         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
50802         HAVE_LONGLONG_64BIT.
50803
50804 2005-03-16  Bruno Haible  <bruno@clisp.org>
50805
50806         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
50807         HAVE_LONGLONG_64BIT.
50808
50809 2005-03-16  Bruno Haible  <bruno@clisp.org>
50810
50811         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
50812         HAVE_LONGLONG_64BIT.
50813
50814 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50815
50816         * lib/strftime.c (my_strftime): Prepend space to format so that we can
50817         reliably distinguish strftime failure from empty output on POSIX
50818         hosts.
50819
50820 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50821
50822         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
50823         (iconv_string): Don't guess a size-zero buffer, as that might cause
50824         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
50825         result would be 'too large', where 'too large' is (heuristically)
50826         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
50827         overflow concerns.  This will prevent some unwanted malloc failures
50828         when the inputs are very large.
50829
50830 2005-03-15  Karl Berry  <karl@gnu.org>
50831
50832         * config/srclist.txt (config.rpath): from gettext.
50833         * config/config.rpath: update.
50834
50835 2005-03-15  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
50838         to 'negate'.
50839
50840         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
50841         variable.
50842
50843         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
50844         results.
50845
50846 2005-03-14  Simon Josefsson  <jas@extundo.com>
50847
50848         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
50849         <fx@gnu.org>.
50850
50851 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
50852
50853         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
50854         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
50855         intprops.h.
50856         * lib/strtol.c: Likewise.
50857
50858 2005-03-14  Jim Meyering  <jim@meyering.net>
50859
50860         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
50861         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
50862         to be nonzero so that we (and caller) can detect the difference
50863         between a valid zero-length expansion and an error return, even
50864         when the underlying strftime fails before writing anything into
50865         that location.
50866
50867 2005-03-14  Bruno Haible  <bruno@clisp.org>
50868
50869         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
50870         Update from GNU gettext 0.14.3.
50871
50872 2005-03-10  Jim Meyering  <jim@meyering.net>
50873
50874         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
50875
50876 2005-03-10  Jim Meyering  <jim@meyering.net>
50877
50878         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
50879         so that this module works on systems without fchdir.
50880
50881 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
50882
50883         Factor int-properties macros into a single file, except for
50884         glibc-related files.
50885         * lib/intprops.h: New file.
50886         * lib/getloadavg.c: Include it instead of limits.h.
50887         (INT_STRLEN_BOUND): Remove.
50888         * lib/human.c: Include intprops.h.
50889         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
50890         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
50891         302/1000.
50892         * lib/inttostr.h: Include intprops.h instead of limits.h.
50893         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
50894         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
50895         for consistency with intprops.h.
50896         (time_t_is_integer, twos_complement_arithmetic): Use them.
50897         * lib/sig2str.h: Include <signal.h>, intprops.h.
50898         (INT_STRLEN_BOUND): Remove.
50899         * lib/strftime.c (TYPE_SIGNED): Remove.
50900         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
50901         * lib/strtol.c: Adjust comments to match intprops.h.
50902         * lib/userspec.c: Include intprops.h.
50903         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
50904         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
50905         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
50906         instead of rolling our own expressions.
50907         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
50908
50909         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
50910         instead of int.
50911         (my_strftime): Do not mishandle years close to INT_MAX, by doing
50912         the right thing even if adding 1900 would overflow.  Similarly
50913         for tm_mon + 1 and tm_yday + 1.
50914         Make %Y always equivalent to %C%y, and similarly for %G and %g.
50915         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
50916         (DO_SIGNED_NUMBER): New macro.
50917         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
50918
50919 2005-03-07  Bruno Haible  <bruno@clisp.org>
50920
50921         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
50922
50923 2005-03-07  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
50926
50927 2005-03-04  Derek R. Price  <derek@ximbiot.com>
50928
50929         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
50930         (func_import): Only replace files via --import when they have actually
50931         changed.
50932
50933 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50934
50935         * m4/mmap-anon.m4: New file.
50936         * m4/pagealign_alloc.m4: New file.
50937
50938 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50939             Bruno Haible  <bruno@clisp.org>
50940
50941         * modules/pagealign_alloc: New file.
50942         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
50943
50944 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50945             Bruno Haible  <bruno@clisp.org>
50946
50947         * lib/pagealign_alloc.h: New file.
50948         * lib/pagealign_alloc.c: New file.
50949
50950 2005-03-03  Bruno Haible  <bruno@clisp.org>
50951
50952         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
50953         Use an all-permissive copyright notice, recommended by RMS.
50954
50955 2005-03-02  Bruno Haible  <bruno@clisp.org>
50956
50957         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
50958         of AIX, the replacement has to be done only after <string.h> is
50959         included, therefore not in config.h. stpncpy.h does the replacement,
50960         and stpncpy.c uses it.
50961
50962 2005-03-02  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
50965         stpncpy.c uses it.
50966
50967 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50968
50969         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
50970         The workaround isn't strictly needed for POSIX conformance, and
50971         it's too much of a pain to configure and maintain.  We'll ask
50972         people to fix their kernels instead.
50973         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
50974         (NANOSLEEP_BUG_WORKAROUND): Remove.
50975         (xnanosleep): Remove the workaround.
50976
50977 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
50980         Reported by Derek Price.
50981         (Include): Add "timespec.h".
50982
50983         * modules/xnanosleep (Depends-on): Remove gethrxtime.
50984
50985 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
50988         to detect nanosleep bug.
50989
50990 2005-03-01  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
50993
50994 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * modules/gethrxtime: New file.
50997         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
50998         (Depends-on): Add gethrxtime.
50999         (configure.ac): Add gl_XNANOSLEEP.
51000         (Makefile.am): Remove lib_SOURCES line.
51001
51002 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51003
51004         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51005         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51006
51007 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51008
51009         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51010         * lib/timespec.h (gettime): Return void, since it always
51011         succeeds now.  All uses changed.
51012         * lib/gettime.c (gettime) Likewise.
51013         [HAVE_NANOTIME]: Prefer nanotime.
51014         Assume gettimeofday succeeds, as POSIX requires.
51015         Assime time () succeeds, since other code already does.
51016         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51017         (timespec_subtract): Remove.
51018         (NANOSLEEP_BUG_WORKAROUND): New constant.
51019         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51020         things considerably.  Use it only on GNU/Linux hosts, since the
51021         workaround shouldn't be needed elsewhere.
51022
51023 2005-02-24  Bruno Haible  <bruno@clisp.org>
51024
51025         * modules/gettext (Files): Add m4/glibc2.m4.
51026
51027 2005-02-24  Bruno Haible  <bruno@clisp.org>
51028
51029         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51030         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51031         * m4/progtest.m4:
51032         Update from GNU gettext 0.14.2.
51033         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51034
51035 2005-02-24  Bruno Haible  <bruno@clisp.org>
51036
51037         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51038         * lib/config.charset: Update from GNU gettext 0.14.2.
51039
51040 2005-02-24  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/gettext.h: Update from GNU gettext 0.14.2.
51043
51044 2005-02-23  Simon Josefsson  <jas@extundo.com>
51045
51046         * m4/iconvme.m4: New file.
51047
51048 2005-02-23  Jim Meyering  <jim@meyering.net>
51049
51050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51051         change.
51052         Thanks to Bruno Haible for catching it.
51053
51054 2005-02-22  Simon Josefsson  <jas@extundo.com>
51055
51056         * modules/iconvme: New file.
51057
51058         * MODULES.html.sh: Add iconvme.
51059
51060 2005-02-22  Simon Josefsson  <jas@extundo.com>
51061
51062         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51063
51064 2005-02-22  Simon Josefsson  <jas@extundo.com>
51065
51066         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51067
51068 2005-02-22  Jim Meyering  <jim@meyering.net>
51069
51070         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51071         s/ifndef/ifdef/.
51072
51073 2005-02-20  Neil Conway  <neilc@samurai.com>
51074
51075         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51076         returned by OSX/Darwin if the specified buffer is not large
51077         enough for the hostname.
51078
51079 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51080
51081         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51082         pass it to _help, otherwise the latter coredumps trying to
51083         dereference state.root_argp.
51084
51085 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51086
51087         * modules/chdir-long (Depends-on): Add memrchr.
51088         * modules/memrchr (Files): Add lib/memrchr.h.
51089         (Include): "memrchr.h".
51090
51091 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51092
51093         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51094
51095 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51096
51097         * lib/memrchr.h: New file.
51098         * lib/chdir-long.c: Include it.
51099         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51100         Don't bother including stddef.h.
51101
51102 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51103
51104         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51105         inclusion.
51106         Include <sys/types.h>, for dev_t.
51107         (ME_DUMMY, ME_REMOTE): Move from here....
51108         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51109         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51110         Dmitry V. Levin.
51111         Include mountlist.h first, to test the interface.
51112
51113 2005-01-29  Bruno Haible  <bruno@clisp.org>
51114
51115         * lib/progname.c (program_name): Initialize.
51116         Needed when linking statically on MacOS X.
51117
51118 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         Sync from coreutils.
51121         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51122         (Depends-on): Add c-strtod.
51123         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51124
51125 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         Sync from coreutils.
51128         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51129
51130         Remove files that are specific to coreutils.
51131         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51132
51133 2005-01-28  Bruno Haible  <bruno@clisp.org>
51134
51135         * modules/javacomp: New file.
51136         * MODULES.html.sh (Java): Add javacomp.
51137
51138 2005-01-28  Bruno Haible  <bruno@clisp.org>
51139
51140         * m4/javacomp.m4: New file, from GNU gettext.
51141
51142 2005-01-28  Bruno Haible  <bruno@clisp.org>
51143
51144         * lib/javacomp.sh.in: New file, from GNU gettext.
51145         * lib/javacomp.h: New file, from GNU gettext.
51146         * lib/javacomp.c: New file, from GNU gettext.
51147
51148 2005-01-26  Simon Josefsson  <jas@extundo.com>
51149
51150         * lib/gai_strerror.c: Use GPL in header.
51151
51152 2005-01-26  Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/javaexec: New file.
51155         * MODULES.html.sh (Java): Add javaexec.
51156
51157 2005-01-26  Bruno Haible  <bruno@clisp.org>
51158
51159         * m4/javaexec.m4: New file, from GNU gettext.
51160
51161 2005-01-26  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/javaexec.sh.in: New file, from GNU gettext.
51164         * lib/javaexec.h: New file, from GNU gettext.
51165         * lib/javaexec.c: New file, from GNU gettext.
51166
51167 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51168
51169         * modules/lchown (Depends-on): Remove lchown.h
51170
51171 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51172
51173         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51174         must be defined if the header file was not found, in order
51175         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51176
51177 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51178
51179         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51180         initializers for struct pentry_state.
51181         (__argp_error): Check return value of __asprintf
51182         (__argp_failure): Translate error message
51183
51184         * lib/argp-parse.c: Removed braces around the expansion of N_()
51185
51186 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51187
51188         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51189         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51190         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51191         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51192         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51193         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51194         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51195         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51196         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51197         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51198         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51199         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51200         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51201         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51202         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51203         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51204         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51205         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51206         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51207         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51208         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51209         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51210         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51211         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51212         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51213         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51214         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51215         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51216         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51217         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51218         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51219         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51220         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51221         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51222         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51223         Use an all-permissive copyright notice, recommended by RMS.
51224
51225 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51226
51227         * modules/chdir-long (Depends-on): Remove mempcpy.
51228
51229 2005-01-21  Jim Meyering  <jim@meyering.net>
51230
51231         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51232         same value as for Solaris 9.
51233
51234         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51235         component length.  This included changing the parameter to be
51236         of type `char *' rather than `char const *'.
51237         * lib/chdir-long.h (chdir_long): Update prototype.
51238
51239         * lib/openat.c (fdopendir, fstatat): New functions.
51240         * lib/openat.h: Include headers required for use of DIR and struct
51241         stat.
51242         [AT_SYMLINK_NOFOLLOW]: Define.
51243         (fdopendir, fstatat): Add prototypes.
51244
51245 2005-01-21  Bruno Haible  <bruno@clisp.org>
51246
51247         * modules/classpath: New file.
51248         * MODULES.html.sh (Java): Add classpath.
51249
51250 2005-01-21  Bruno Haible  <bruno@clisp.org>
51251
51252         * lib/classpath.h: New file, from GNU gettext.
51253         * lib/classpath.c: New file, from GNU gettext.
51254
51255 2005-01-20  Simon Josefsson  <jas@extundo.com>
51256
51257         * modules/version-etc-fsf: New file.
51258
51259 2005-01-20  Simon Josefsson  <jas@extundo.com>
51260
51261         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51262         * lib/version-etc.c: Remove version_etc_copyright.
51263         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51264         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51265
51266 2005-01-20  Simon Josefsson  <jas@extundo.com>
51267
51268         * lib/base64.h (isbase64): Add.
51269
51270         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51271         using a unsigned prototype, don't inline.
51272         (base64_decode): Use it.
51273
51274 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51275
51276         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51277         it.
51278
51279 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51280
51281         * lib/save-cwd.c (save_cwd): Remove code to support the case
51282         where fchdir is missing or flaky.
51283
51284 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51285
51286         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51287
51288 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51289
51290         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51291         AC_LIBSOURCES now does this.
51292         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51293         with new ullong_max module.
51294
51295 2005-01-19  Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/sh-quote: New file.
51298         * MODULES.html.sh (Executing programs): Add sh-quote.
51299
51300 2005-01-19  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/sh-quote.h: New file, from GNU gettext.
51303         * lib/sh-quote.c: New file, from GNU gettext.
51304
51305 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51306
51307         Merge from coreutils.
51308         * m4/ullong_max.m4: New file.
51309         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51310         (gl_MACROS): Assume localeconv exists.
51311
51312 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51313
51314         Merge changes from coreutils, as described below in several
51315         changelogs dated today.
51316
51317         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51318         (O_DIRECTORY): Remove; not needed here, since "." must be
51319         a directory.  All uses removed.
51320         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51321         universal on Suns, and we also need to test for IRIX.
51322         Revamp code to use 'if' rather than '#if'.
51323         Avoid unnecessary comparison of cwd->desc to 0.
51324
51325         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51326         for known valid error numbers rather than observed invalid ones.
51327
51328 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51329
51330         * modules/ullong_max: New file.
51331
51332         * modules/chdir-long, modules/openat: New files.
51333         * modules/save-cwd (Depends-on): Depend on chdir-long.
51334         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51335
51336 2005-01-18  Jim Meyering  <jim@meyering.net>
51337
51338         Merge from coreutils.
51339         * m4/chdir-long.m4, m4/openat.m4: New files.
51340         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51341         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51342         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51343         is sane and DOES follow symlinks.  Besides, testing 20 different
51344         systems found no broken chown implementations.
51345         Prompted by a change in rsync's copy of this macro.
51346         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51347
51348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51349
51350         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51351         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51352         NULL-means-set-to-current-time semantics.
51353         Remove temporary file immediately, rather than waiting
51354         for configure's at-exit trap code to do it.
51355
51356 2005-01-18  Jim Meyering  <jim@meyering.net>
51357
51358         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51359
51360         * lib/utimens.c (futimens): Account for the fact that futimes
51361         can also fail with errno == ENOSYS or errno == ENOENT.
51362         Patch from Dmitry V. Levin.
51363
51364         Change the name of the robust chdir function from chdir to chdir_long.
51365         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51366         (restore_cwd): Use chdir_long, not chdir.
51367         * lib/chdir-long.c: Renamed from chdir.c.
51368         * lib/chdir-long.h: Renamed from chdir.h.
51369         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51370         Hurd.
51371
51372 2005-01-18  Bruno Haible  <bruno@clisp.org>
51373
51374         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51375         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51376         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51377         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51378         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51379         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51380         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51381         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51382         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51383         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51384         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51385         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51386         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51387         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51388         Use an all-permissive copyright notice, recommended by RMS.
51389
51390 2005-01-18  Bob Proulx  <bob@proulx.com>
51391
51392         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51393         simplify offsetof() macro construct to avoid compile failure with
51394         native HP-UX 11.0 ANSI C compiler.
51395
51396 2005-01-17  Bruno Haible  <bruno@clisp.org>
51397
51398         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51399         redundant because stpncpy.m4 takes care of it.
51400
51401 2005-01-17  Bruno Haible  <bruno@clisp.org>
51402
51403         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51404
51405 2005-01-17  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51408         used.
51409
51410 2005-01-17  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/fwriteerror.h (fwriteerror): Change specification to include
51413         fclose.
51414         * lib/fwriteerror.c: Include <stdbool.h>.
51415         (fwriteerror): At the end, close the file stream. Record whether
51416         stdout was already closed.
51417
51418 2005-01-17  Bruno Haible  <bruno@clisp.org>
51419
51420         * lib/execute.c (environ): Declare if needed.
51421         * lib/pipe.c (environ): Likewise.
51422         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51423
51424 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51425
51426         * modules/argp: Depend on vsnprintf
51427
51428 2005-01-10  Jim Meyering  <jim@meyering.net>
51429
51430         * modules/closeout (Depends-on): Add atexit.
51431
51432 2005-01-06  Bruno Haible  <bruno@clisp.org>
51433
51434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51435
51436 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51437
51438         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51439         definitions to be after all include files, to avoid collisions.
51440         Problem reported by Bob Proulx.
51441
51442 2005-01-04  Jim Meyering  <jim@meyering.net>
51443
51444         Changes imported from coreutils.
51445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51446         as the mkstemp template, use a temporary directory and an
51447         8.3-friendly template to avoid trouble on systems like DJGPP.
51448         Reported by Juan M. Guerrero via Stepan Kasal.
51449         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51450         close. Remove the temporary directory right away, rather than waiting
51451         for configure's at-exit trap code to do it.
51452         Suggestion from Stepan Kasal.
51453
51454 2005-01-01  Simon Josefsson  <jas@extundo.com>
51455
51456         * gnulib-tool: Print #include directives when --import'ing.
51457
51458 2004-12-28  Simon Josefsson  <jas@extundo.com>
51459
51460         * tests/test-base64.c: Include required header files.  Remove
51461         unused variables.
51462
51463 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51464
51465         * modules/error (Depends-on): Remove gettext.
51466
51467 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51468
51469         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51470         not needed.  This removes a dependency on the gettext module.
51471         [defined _LIBC]: Do not include <libintl.h>; not needed.
51472
51473 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51474
51475         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51476         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51477
51478 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51481         HAVE_DECL_STRTOLD.
51482
51483 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * modules/getdate (Depends-on): Remove alloca-opt.
51486
51487 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51488
51489         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51490
51491 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51492
51493         * lib/argp-parse.c: Include <stddef.h>.
51494         (alignof, alignto): New macros.
51495         (parser_init): Don't assume that void * is aligned sufficiently
51496         for struct option.
51497
51498         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51499         need to extend the stack.
51500         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51501         large.
51502
51503 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51504
51505         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51506
51507 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51508
51509         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51510         (2004-10-24) change.  Apparently this was a false alarm.
51511
51512         * modules/getdate: Depend on alloca-opt, not alloca.
51513
51514 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51515
51516         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51517         Remove now-obsolete comment about AIX.
51518         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51519         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51520         (YYMAXDEPTH): New macro.
51521
51522 2004-12-18  Simon Josefsson  <jas@extundo.com>
51523
51524         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51525
51526 2004-12-18  Bruno Haible  <bruno@clisp.org>
51527
51528         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51529
51530 2004-12-18  Bruno Haible  <bruno@clisp.org>
51531
51532         * lib/fatal-signal.c (fatal_signals): Make non-const.
51533         (init_fatal_signals): New function.
51534         (uninstall_handlers, install_handlers): Ignore signals that were set to
51535         SIG_IGN.
51536         (at_fatal_signal): Call init_fatal_signals.
51537         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51538         SIG_IGN.
51539         Reported by Paul Eggert.
51540
51541 2004-12-18  Bruno Haible  <bruno@clisp.org>
51542
51543         * doc/alloca.texi: New file.
51544         * doc/alloca-opt.texi: New file.
51545
51546 2004-12-17  Jim Meyering  <jim@meyering.net>
51547
51548         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51549         Otherwise, install-sh could exit with improper exit status when
51550         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51551
51552 2004-12-16  Simon Josefsson  <jas@extundo.com>
51553
51554         * tests/test-base64.c: Add license.
51555
51556 2004-12-15  Stepan Kasal  <address@hidden>
51557
51558         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51559
51560 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51561
51562         * modules/getcwd (Files): Add m4/d-ino.m4.
51563         Suggested by Mark D. Baushke.
51564
51565 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51566
51567         * lib/getdate.y (textint): New member "negative".
51568         (time_zone_hhmm): New function.
51569         Expect 14 shift-reduce conflicts, not 13.
51570         (o_colon_minutes): New rule.
51571         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51572         (yylex): Set the "negative" member of signed numbers.
51573
51574 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51575
51576         * doc/getdate.texi (Time of day items, Time zone items):
51577         Describe new formats +00:00, UTC+00:00.
51578
51579 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51582         spurious "-l"s.  Problem reported by Stepan Kasal.
51583
51584 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51585
51586         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51587         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51588
51589 2004-12-04  Simon Josefsson  <jas@extundo.com>
51590
51591         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51592         Vandoorselaere <yoann@prelude-ids.org>.
51593
51594 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51595
51596         Changes imported from coreutils.
51597         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51598         exist.
51599         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51600
51601 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51602
51603         Changes imported from coreutils.
51604         * lib/hard-locale.c: Assume <locale.h> exists.
51605         Include "strdup.h".
51606         (GLIBC_VERSION): New macro.
51607         (hard_locale): Assume setlocale exists.
51608         Rewrite to avoid #ifdef.
51609         Use strdup rather than malloc + strcpy.
51610         * lib/human.c: Assume <locale.h> exists.
51611         (human_readable): Assume localeconv exists.
51612
51613 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51614
51615         * modules/hard-locale (Depends-on): Add strdup.
51616
51617 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51618
51619         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51620         convert T2, not T.  (Imported from libc.)
51621
51622 2004-11-30  Simon Josefsson  <jas@extundo.com>
51623
51624         * modules/restrict (License): Change to LGPL.
51625
51626 2004-11-30  Simon Josefsson  <jas@extundo.com>
51627
51628         * m4/restrict.m4: Add copyright and copying conditions.
51629
51630 2004-11-30  Simon Josefsson  <jas@extundo.com>
51631
51632         * m4/base64.m4: New file.
51633
51634 2004-11-30  Simon Josefsson  <jas@extundo.com>
51635
51636         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51637         base64.
51638
51639         * tests/test-base64.c: New file.
51640
51641         * modules/base64: New file.
51642
51643 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51644
51645         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51646         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51647
51648         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51649
51650 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51651
51652         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51653         (__getcwd.c): Don't restore errno; glibc doesn't.
51654         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51655         first, falling back to our code only if its results look suspicious.
51656         Ensure that the resulting buffer is only as large as necessary.
51657
51658         * lib/readutmp.c: Include readutmp.h first.
51659         Include <errno.h>, since readutmp.h no longer does that.
51660         * lib/readutmp.h: Don't include <errno.h>,
51661         <sys/param.h>, <time.h>; not needed to establish interface.
51662         (errno): Remove decl.
51663         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51664         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51665         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51666
51667 2004-11-28  Simon Josefsson  <jas@extundo.com>
51668
51669         * lib/base64.h, base64.c: New file.
51670
51671 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51672
51673         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51674
51675 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51676
51677         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51678         (Depends-on): Remove pathmax, same.  Add mempcpy.
51679         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51680         (Makefile.am): Append getcwd.h to lib_SOURCES.
51681         (Include): Add getcwd.h.
51682         (Maintainer): Change from Jim Meyering to "all, glibc",
51683         since getdate now uses intended-for-glibc code.
51684         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51685         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
51686
51687 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51688
51689         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51690         HP's ANSI C compiler.
51691         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51692         Declaring int functions causes warnings on some modern systems and
51693         shouldn't be needed to compile on ancient ones.
51694         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51695         defined.
51696
51697         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51698         with the following changes.
51699         (__set_errno): Parenthesize properly.
51700         Include <stdbool.h>.
51701         (MIN, MAX, MATCHING_INO): New macros.
51702         (__getcwd): Define with prototype, not K&R form.
51703         Use heuristics to allocate default buffer on stack if possible.
51704         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51705         behavior, and to avoid the PATH_MAX limit when computing
51706         ../../../../...
51707         Use MATCHING_INO to compare inode number to file.
51708         Check for arithmetic overflow in size calculations.
51709         Fix bug in reallocation of dot array that caused getcwd to fail
51710         on directories nested deeper than 75.
51711         Be more careful about saving errno on error.
51712         Do not use realloc; use only free+malloc, as this is a bit
51713         more flexible and avoids a needless copy operation.
51714         Do not inspect st_dev and st_ino for symbolic links; POSIX
51715         doesn't specify the latter.
51716         Check for closedir errors.
51717         Avoid needless casts.
51718         Use "#ifdef weak_alias" around weak_alias, to be like other
51719         glibc code.
51720         The following changes to getcwd.c have effect only when used in
51721         gnulib; they have no effect inside glibc proper.
51722         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51723         as alloca isn't used.
51724         (alloca, __alloca): Likewise.
51725         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51726         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51727         unconditionally, as gnulib assumes C89 or better.
51728         Do not include <sys/param.h>.
51729         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51730         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51731         better.
51732         (NULL) [!defined NULL]: Remove; we assume C89 or better.
51733         Include <dirent.h> in a way that is compatible with modern Autoconf.
51734         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51735         New macros, if not already defined.
51736         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51737         Use "_LIBC", not "defined _LIBC", for consistency.
51738         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51739         a mempcpy module.
51740         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51741         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
51742         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51743         credit only to Jim Meyering and adjust the copyright dates.
51744         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51745         <stdlib.h>, <unistd.h>, "pathmax.h".
51746         Instead, include "xgetcwd.h" (first) and "getcwd.h".
51747         (INITIAL_BUFFER_SIZE): Remove.
51748         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51749
51750 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51751
51752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51753         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
51754         Use the _ONCE methods, for efficiency.
51755         Check for fcntl.h.  In test program, include <errno.h>
51756         and <fcntl.h> if available.  Remove old K&R cruft from
51757         test program.  Check for common errors in GNU/Linux,
51758         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
51759         don't do AC_LIBOBJ, as that's getcwd.m4's job.
51760         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
51761         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
51762         name accordingly.
51763         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
51764         accommodate new getcwd.c.
51765         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
51766         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
51767         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
51768         that's all we need now.
51769
51770 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51771
51772         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
51773         argp-parse.c depends on getopt internals, that means we should
51774         always use our getopt, to be on the safe side.
51775         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
51776         order not to spoil the result of an eventual previous invocation
51777         of gl_GETOPT_SUBSTITUTE.
51778
51779 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51780
51781         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
51782         redefinition warnings. To avoid them, include the defines
51783         in `#if !defined __need_getopt ... #endif'. The only place
51784         where __getopt_argv_const is used is in definitions
51785         of getopt_long and getopt_long_only below, which are as well
51786         protected by `#ifndef __need_getopt'.
51787         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
51788         __need_getopt after including <stdio.h> and <unistd.h> These
51789         headers might have defined it.
51790
51791 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51792
51793         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
51794
51795 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51796
51797         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
51798         (futimens): New function, which uses futimes if available.
51799         (futimens, utimens): Support timespec==NULL, with same semantics
51800         as utime and utimens.
51801         * lib/utimens.h (futimens): New decl.
51802
51803 2004-11-23  Jim Meyering  <jim@meyering.net>
51804
51805         * lib/getopt_.h: Remove trailing blanks.
51806
51807 2004-11-23  Jim Meyering  <jim@meyering.net>
51808
51809         * lib/__fpending.c: Add comment.
51810
51811 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
51812
51813         * modules/canonicalize (Depends-on): Add xreadlink.
51814         Problem reported by James Youngman.
51815
51816 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51817
51818         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
51819         New macros.
51820         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
51821         optopt): Use them instead of invoking ## directly; otherwise, the
51822         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
51823
51824 2004-11-19  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/strtok_r.c: Move comments from here...
51827         * lib/strtok_r.h: ... to here.
51828
51829 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
51832         implementations that mishandle size_t overflow.
51833
51834 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
51837         might fail.  Problem reported by Yoann Vandoorselaere.
51838         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
51839         implementations that mishandle size_t overflow.
51840
51841 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * modules/canon-host (Depends-on): Add strdup.
51844
51845 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
51848
51849 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51850
51851         * lib/canon-host.c: Include "strdup.h".
51852         (canon_host): Use getaddrinfo if available, so that IPv6 works.
51853         Use strdup instead of malloc/strcpy to duplicate strings.
51854
51855         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
51856         (human_space_before_unit): New constant.
51857         * lib/human.c (human_readable): Support it.
51858
51859         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
51860         (xgetcwd): Set errno correctly when failing.
51861         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
51862         the failure is actually due to a PATH_MAX problem.
51863
51864         Further getopt changes to make it more likely that glibc will
51865         buy the changes back.
51866         * lib/getopt.c (POSIXLY_CORRECT): New constant.
51867         (getopt): Use it, so to preserve glibc semantic
51868         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
51869         when compiling for libc.
51870         * lib/getopt_.h (__getopt_argv_const): Bring it back.
51871         (getopt_long, getopt_long_only): Use it.
51872
51873         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51874         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
51875         (getopt): Argv is now char * const *, as per standard.
51876         (_getopt_internal_r, _getopt_internal): Argv is now char **,
51877         not char *__getopt_argv_const *.
51878         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51879         _getopt_long_only_r): Likewise.
51880         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
51881         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51882         _getopt_long_r, _getopt_long_only_r): Likewise.
51883         * lib/getopt_.h (__getopt_argv_const): Remove.
51884         (getopt): Argv is now char * const *, as per standard.
51885
51886         * lib/getdate.y (tORDINAL): New token.
51887         (day, relunit): Allow it for relative times.
51888         (relative_time_table): Use tORDINAL for ordinals.
51889
51890 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51891
51892         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
51893         Document that "second" isn't allowed as an ordinal number.
51894
51895 2004-11-16  Jim Meyering  <jim@meyering.net>
51896
51897         * modules/closeout (Depends-on): Add fpending.
51898
51899 2004-11-15  Jim Meyering  <jim@meyering.net>
51900
51901         * lib/closeout.c: Include "__fpending.h" once again.
51902         Include <stdbool.h>.
51903         (close_stdout): Don't fail just because stdout was closed initially,
51904         since some programs don't write to stdout in the normal course of
51905         operation (other than --version and --help), and we don't want this
51906         function to make e.g. `touch file >&-' fail.
51907         But do fail if it was closed and someone has tried to write to it.
51908         E.g., `printf foo >&-' must fail.
51909
51910 2004-11-13  Jim Meyering  <jim@meyering.net>
51911
51912         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
51913
51914 2004-11-12  Simon Josefsson  <jas@extundo.com>
51915
51916         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
51917         small doc fix is still pending.
51918
51919 2004-11-11  Simon Josefsson  <jas@extundo.com>
51920
51921         * modules/strtok_r: New file.
51922
51923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51924         strtok_r.
51925
51926 2004-11-11  Simon Josefsson  <jas@extundo.com>
51927
51928         * m4/strtok_r.m4: New file.
51929
51930         * m4/getopt.m4: Replace opterr.
51931
51932 2004-11-11  Simon Josefsson  <jas@extundo.com>
51933
51934         * lib/strtok_r.h, strtok_r.c: New file.
51935
51936 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
51939         of replacing opterr, getopt, etc.  This should handle the
51940         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
51941
51942 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
51943
51944         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
51945         we can stop lying to compilers about the constness of argv when we
51946         are compiled outside glibc.
51947         (getopt, getopt_long, getopt_long_only): Use it.
51948         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51949         _getopt_internal, getopt): Likewise.
51950         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51951         _getopt_long_only_r): Likewise.
51952         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51953         _getopt_long_r, _getopt_long_only_r): Likewise.
51954
51955         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
51956         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
51957         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
51958         the other external symbols.
51959         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
51960         declaration, since the above renaming now works around collisions.
51961
51962 2004-11-11  Jim Meyering  <jim@meyering.net>
51963
51964         * lib/linebreak.c: Remove trailing blanks.
51965         * lib/alloca_.h: Likewise.
51966         * lib/acosl.c: Likewise.
51967         * lib/euidaccess.c: Likewise.
51968         * lib/allocsa.h: Likewise.
51969
51970 2004-11-10  Simon Josefsson  <jas@extundo.com>
51971
51972         * m4/getaddrinfo.m4: New file.
51973
51974 2004-11-10  Simon Josefsson  <jas@extundo.com>
51975
51976         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
51977
51978 2004-11-10  Simon Josefsson  <jas@extundo.com>
51979
51980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51981         getaddrinfo.
51982
51983         * modules/getaddrinfo: New file.
51984
51985 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51986
51987         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
51988
51989 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51990
51991         * lib/mktime.c (SHR): New macro, which is a portable
51992         substitute for >> that should work even on Crays.
51993         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
51994         Problem reported by Mark D. Baushke in
51995         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
51996         * lib/getdate.y (SHR): Likewise.
51997         (tm_diff): Use it.
51998         * lib/strftime.c (SHR): Likewise.
51999         (tm_diff): Use it.
52000         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52001         quote_these_too, so that right shifts are well defined.  All uses
52002         changed.
52003
52004 2004-11-10  Jim Meyering  <jim@meyering.net>
52005
52006         Ensure that no close failure goes unreported.
52007         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52008         return early when it seems there's nothing to flush.
52009         Don't include __fpending.h.
52010
52011 2004-11-10  Jim Meyering  <jim@meyering.net>
52012
52013         * modules/closeout (Depends-on): Remove fpending.
52014
52015 2004-11-10  Jim Meyering  <jim@meyering.net>
52016
52017         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52018
52019 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52020
52021         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52022         gl_FUNC_STRFTIME.
52023         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52024         and AC_REQUIRE when possible, to avoid duplicate checks.
52025         Check for <wchar.h>.
52026
52027 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52028
52029         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52030
52031 2004-11-09  Bruno Haible  <bruno@clisp.org>
52032
52033         * m4/sockpfaf.m4: New file.
52034
52035 2004-11-05  Bruno Haible  <bruno@clisp.org>
52036
52037         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52038         Reported by Mark D. Baushke <mdb@cvshome.org>.
52039
52040 2004-11-04  Bruno Haible  <bruno@clisp.org>
52041
52042         2004-09-11  Bruno Haible  <bruno@clisp.org>
52043                 * allocsa.valgrind: New file.
52044         2004-02-06  Bruno Haible  <bruno@clisp.org>
52045                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52046                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52047                 Reported by Christopher Seip <chris.seip@hp.com>.
52048
52049 2004-11-04  Bruno Haible  <bruno@clisp.org>
52050
52051         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52052         (Makefile.am): Distribute it.
52053
52054 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52055
52056         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52057         with errno == ERANGE if the buffer is too small.
52058         Problem reported by Mark D. Baushke.
52059
52060 2004-11-03  Albert Chin  <china@thewrittenword.com>
52061             Paul Eggert  <eggert@cs.ucla.edu>
52062
52063         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52064         equivalent, substitute $ac_type for equivalent type rather than
52065         blindly using uint32_t *always* which won't work if uint32_t is not
52066         available.  Define _UINT32_T to work around typedef of uint32_t if
52067         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52068         2.5.1.
52069
52070 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52071
52072         * m4/jm-macros.m4: Sync from coreutils.
52073         (gl_MACROS): Check for mbrlen, for pathchk.
52074         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52075
52076 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * lib/xreadlink.c (MAXSIZE): New macro.
52079         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52080         size does not exceed MAXSIZE.  Avoid cast.
52081         As suggested by Mark D. Baushke in
52082         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52083         if readlink fails with buffer size just under MAXSIZE, try again
52084         with MAXSIZE.
52085
52086 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52087
52088         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52089
52090 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52091         and  Paul Eggert  <eggert@cs.ucla.edu>
52092
52093         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52094         (get_date): Overparenthesize to avoid GCC warning.
52095
52096 2004-11-02  Bruno Haible  <bruno@clisp.org>
52097
52098         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52099         returns void.
52100
52101 2004-11-02  Bruno Haible  <bruno@clisp.org>
52102
52103         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52104         function returns void.
52105
52106 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52109         fflush_unlocked, flockfile, funlockfile, funlockfile,
52110         fputs_unlocked, putc_unlocked.
52111
52112 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52113
52114         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52115         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52116         already declared.
52117
52118 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52119
52120         * modules/getdate (Files): Add doc/getdate.texi.
52121         (Depends-on): Add setenv, xalloc.
52122
52123 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52124
52125         * lib/getdate.y: Add support for TZ="foo" within a date string.
52126         Fix some bugs near time_t boundaries.  Reject dates with
52127         out-of-range components, e.g., "Sept 31".
52128         Include <stdlib.h>, "setenv.h", "xalloc.h".
52129         (ISDIGIT_LOCALE): Remove; unused.
52130         Note that the TZ and time functions used here are not reentrant.
52131         (mktime_ok, get_tz): New functions.
52132         (TZBUFSIZE): New constant.
52133         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52134         This requires that we sometimes generate our own TZ="XXX..." setting.
52135
52136 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * doc/getdate.texi: New file, from coreutils with modifications for
52139         the new TZ parsing.
52140
52141 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52142
52143         * lib/mktime.c (not_equal_tm): Remove redundant check.
52144
52145 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52146
52147         * modules/regex (lib_SOURCES): Add regex.c.
52148         Reported by James Youngman in
52149         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52150
52151 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * lib/getdate.y: Use Bison 1.875 features, and some minor
52154         code cleanups.  This change does not affect semantics.
52155         Don't include <stdlib.h>; no longer needed.
52156         Don't include unlocked-io.h; only the "#if TEST" code uses
52157         stdio, and performance isn't crucial there.
52158         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52159         Bison 1.875 features as described below.
52160         All uses of "PC." replaced by "pc->".
52161         (YYSTYPE): Add a forward declaration.
52162         (yylex, yyerror): Use full prototypes in forward decls.
52163         Use "%pure-parser" rather than obsolescent "%pure_parser".
52164         Use %parse-param and %lex-param instead of obsolescent
52165         YYPARSE_PARAM and YYLEX_PARAM.
52166         (meridian_table, month_and_day_table, time_units_table,
52167         relative_time_table, time_zone_table, military_table,
52168         lookup_zone, lookup_word, get_date):
52169         Use NULL instead of 0 where appropriate.
52170         (to_hour): Avoid abort (), to avoid a dependency on
52171         stdlib.h.
52172         (yyerror, yylex): Now accepts parser_control * arg.
52173         (main) [TEST]: Use '\0' rather than 0 for char.
52174
52175 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52178
52179 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52180
52181         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52182         It's now the caller's responsibility to handle the case where
52183         !HAVE_GETPAGESIZE && !defined getpagesize.
52184
52185         * lib/mktime.c (leapyear): Arg is long int, not int.
52186
52187 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52188
52189         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52190
52191 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52194         missing.  Problem reported by James Youngman.
52195
52196 2004-10-16  Simon Josefsson  <jas@extundo.com>
52197
52198         * gnulib-tool: Fix comments.  Fix parse problem.
52199         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52200
52201 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52204         implementation of getopt_long.  Problem reported by Alexander Taler in:
52205         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52206
52207 2004-10-15  Bruno Haible  <bruno@clisp.org>
52208
52209         * gnulib-tool: Untabify. Initialize supplied_libname.
52210         (func_usage): More homogenous output.
52211         (func_modules_transitive_closure, func_modules_to_filelist,
52212         func_emit_lib_Makefile_am): New functions.
52213         (func_import): New function, extracted from big case statement. Use
52214         func_get_license, func_modules_transitive_closure,
52215         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52216         opt_lgpl. Don't use test -a, as it's not portable.
52217         (func_create_testdir): Use func_modules_transitive_closure,
52218         func_modules_to_filelist, func_emit_lib_Makefile_am.
52219
52220 2004-10-15  Bruno Haible  <bruno@clisp.org>
52221
52222         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52223
52224 2004-10-15  Bruno Haible  <bruno@clisp.org>
52225
52226         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52227         the portions belonging to each module.
52228         Suggested by Derek Robert Price <derek@ximbiot.com>.
52229
52230 2004-10-12  Simon Josefsson  <jas@extundo.com>
52231
52232         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52233         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52234         to real functions.
52235
52236 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52237
52238         * modules/vsnprintf: New file.
52239
52240 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52241
52242         * m4/vsnprintf.m4: New file.
52243
52244 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52245
52246         * lib/vsnprintf.h: New file.
52247         * lib/vsnprintf.c: New file.
52248
52249 2004-10-11  Bruno Haible  <bruno@clisp.org>
52250
52251         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52252         vsnprintf.
52253
52254 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52255
52256         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52257
52258 2004-10-07  Bruno Haible  <bruno@clisp.org>
52259
52260         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52261         fits into the provided buffer.
52262
52263 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52264
52265         * lib/diacrit.c, diacrit.h: Add GPL notice.
52266
52267         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52268         notice.
52269         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52270         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52271         This avoids a potential constant-folding bug.
52272
52273 2004-10-05  Bruno Haible  <bruno@clisp.org>
52274
52275         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52276         for the declaration of strsep.
52277
52278 2004-10-05  Bruno Haible  <bruno@clisp.org>
52279
52280         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52281
52282 2004-10-04  Simon Josefsson  <jas@extundo.com>
52283
52284         * modules/memmem: New file.
52285         * tests/test-memmem.c: New file.
52286         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52287
52288 2004-10-04  Simon Josefsson  <jas@extundo.com>
52289
52290         * m4/memmem.m4: New file.
52291
52292 2004-10-04  Simon Josefsson  <jas@extundo.com>
52293
52294         * lib/memmem.h: New file.
52295         * lib/memmem.c: New file, taken from glibc.
52296
52297 2004-10-04  Simon Josefsson  <jas@extundo.com>
52298
52299         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52300         '#ifdef USE_UNLOCKED_IO'.
52301
52302 2004-10-04  Simon Josefsson  <jas@extundo.com>
52303
52304         * config/srclist.txt: Add memmem from glibc.
52305
52306 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52309
52310         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52311         modules/exclude, modules/getdate, modules/getline,
52312         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52313         modules/getusershell, modules/linebuffer, modules/md5,
52314         modules/mountlist, modules/posixtm, modules/readtokens,
52315         modules/readutmp, modules/regex, modules/sha1,
52316         modules/version-etc, modules/yesno:
52317         Remove dependency on unlocked-io.
52318
52319 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52320
52321         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52322
52323         * m4/unlocked-io.m4: Add copyright notice.
52324         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52325
52326 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52327
52328         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52329         * lib/xmalloc.c (xmemdup): Likewise.
52330         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52331         XFREE): Remove these long-obsolescent macros.
52332         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52333         * lib/xstrdup.c: Remove.
52334
52335         * lib/regex.c (re_comp): Cast gettext return value to char *,
52336         Problem reported by Martin Neitzel via Mark D. Baushke.
52337
52338 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52341         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52342         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52343         regex.c, sha1.c, version-etc.c, yesno.c:
52344         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52345         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52346         the includer's responsibility.
52347
52348         Sync from coreutils.
52349
52350         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52351         points to the start of a string, as the C Standard says the
52352         resulting behavior is undefined.
52353
52354         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52355         simple -> simple_backups, numbered_existing ->
52356         numbered_existing_backups, numbered -> numbered_backups
52357         to avoid shadowing problems.  All uses changed.
52358         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52359         * lib/backupfile.c (check_extension, numbered_backup):
52360         Rename locals to avoid shadowing 'basename'.
52361         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52362         once.
52363
52364         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52365         * lib/.cvsignore: Add getopt.h.
52366
52367 2004-10-04  Bruno Haible  <bruno@clisp.org>
52368
52369         * modules/README: New file.
52370         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52371         not a module.
52372
52373 2004-10-02  Jim Meyering  <jim@meyering.net>
52374
52375         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52376
52377 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52378
52379         * modules/strsep: New file.
52380
52381 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52382
52383         * m4/strsep.m4: New file.
52384
52385 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52386
52387         * lib/strsep.h: New file.
52388         * lib/strsep.c: New file.
52389
52390 2004-10-01  Simon Josefsson  <jas@extundo.com>
52391
52392         * lib/snprintf.c (snprintf): Handle size==0.
52393
52394 2004-10-01  Simon Josefsson  <jas@extundo.com>
52395             Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52398         (snprintf): Declare 'args'.
52399
52400 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52401
52402         * lib/snprintf.c: Remove comments as to why each header is needed.
52403
52404 2004-10-01  Bruno Haible  <bruno@clisp.org>
52405
52406         * MODULES.html.sh: Add strsep.
52407
52408 2004-09-30  Simon Josefsson  <jas@extundo.com>
52409
52410         * modules/snprintf: New file.
52411
52412 2004-09-30  Simon Josefsson  <jas@extundo.com>
52413
52414         * m4/snprintf.m4: New file.
52415
52416 2004-09-30  Simon Josefsson  <jas@extundo.com>
52417
52418         * lib/snprintf.h, lib/snprintf.c: New files.
52419
52420 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52421
52422         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52423         (hol_entry_help): Never translate an empty string.
52424         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52425         * lib/argp.h (OPTION_NO_TRANS): New option.
52426
52427 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52428
52429         * modules/argp (Maintainer): Replace Simon Josefsson
52430         by Sergey Poznyakoff.
52431
52432 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52433
52434         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52435         changes merged back into glibc.
52436
52437 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52440
52441 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52442
52443         * lib/xvasprintf.c: Include xalloc.h.
52444         (xvasprintf): Use xalloc_die, not xmalloc_die.
52445
52446 2004-09-29  Bruno Haible  <bruno@clisp.org>
52447
52448         * modules/alloca-opt: New file, derived from modules/alloca.
52449         * modules/allocsa: Depend on alloca-opt instead of alloca.
52450         * modules/setenv: Likewise.
52451         * modules/vasnprintf: Likewise.
52452         * MODULES.html.sh: Add alloca-opt.
52453
52454 2004-09-28  Simon Josefsson  <jas@extundo.com>
52455
52456         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52457         LGPL, and to replace license template from GPL to LGPL.
52458
52459 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * modules/dummy: Change license to LGPL.
52462
52463 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52464
52465         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52466
52467 2004-09-24  Simon Josefsson  <jas@extundo.com>
52468
52469         * modules/minmax (License): Change from GPL to LGPL.
52470
52471 2004-09-23  Simon Josefsson  <jas@extundo.com>
52472
52473         * gnulib-tool (--import): Typo.
52474
52475 2004-09-23  Simon Josefsson  <jas@extundo.com>
52476
52477         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52478
52479 2004-09-22  Bruno Haible  <bruno@clisp.org>
52480
52481         * modules/*: Add 'License' field.
52482         * gnulib-tool: Accept --extract-license option.
52483         (func_get_license): New function.
52484
52485 2004-09-21  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52488         Reported by Simon Josefsson.
52489
52490 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52491
52492         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52493         gl_AC_TYPE_LONG_LONG.
52494
52495 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52496
52497         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52498
52499 2004-09-18  Simon Josefsson  <jas@extundo.com>
52500         and  Paul Eggert  <eggert@cs.ucla.edu>
52501
52502         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52503         calls with autoreconf.  Define GL_LIB.
52504
52505 2004-09-14  Karl Berry  <karl@gnu.org>
52506
52507         * config/srclist.txt: unsync setenv.c, sigh.
52508
52509 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52510
52511         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52512         Problem reported by Bruno Haible in:
52513         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52514
52515 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         * config/srclist.txt: Comment out argp-pvh.c.
52518
52519 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52520
52521         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52522         in case some system header has #define'd it.  Problem reported by
52523         Soeren D. Schulze in
52524         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52525
52526 2004-09-09  Karl Berry  <karl@gnu.org>
52527
52528         * regex.[ch]: delete from the root.  These were supposed to be
52529                 synced with emacs cvs, but this has not happened for about
52530                 a year, and anyway nothing else uses emacs regex.[ch].
52531                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52532                 lib/regex[.ch] is untouched.
52533
52534 2004-09-09  Bruno Haible  <bruno@clisp.org>
52535
52536         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52537
52538 2004-09-09  Bruno Haible  <bruno@clisp.org>
52539
52540         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52541         modifications.
52542         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52543
52544 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52545
52546         * modules/xvasprintf: New file.
52547         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52548
52549 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52550
52551         * lib/xvasprintf.h: New file.
52552         * lib/xvasprintf.c: New file.
52553         * lib/xasprintf.c: New file.
52554
52555 2004-09-08  Bruno Haible  <bruno@clisp.org>
52556
52557         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52558
52559 2004-09-08  Bruno Haible  <bruno@clisp.org>
52560
52561         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52562         length is > INT_MAX.
52563         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52564         more.
52565
52566 2004-09-08  Bruno Haible  <bruno@clisp.org>
52567
52568         * lib/stdint_.h: New file, taken from GNU clisp.
52569
52570 2004-09-08  Bruno Haible  <bruno@clisp.org>
52571             Oskar Liljeblad  <oskar@osk.mine.nu>
52572
52573         * modules/stdint: New file.
52574         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52575
52576 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52577
52578         Import from coreutils.
52579         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52580         strings on unbounded length.  alloca's performance benefits aren't
52581         that important here.
52582         (V_STRDUP): Remove.
52583         (parse_with_separator): New function, with most of the internals
52584         of the old parse_user_spec.  Allow user to omit both user and group,
52585         for compatibility with FreeBSD.
52586         Clone only the user name, not the entire spec.
52587         Do not set *uid, *gid unless entirely successful.
52588         Avoid memory leak in some failing cases.
52589         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52590         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52591         (parse_user_spec): Rewrite to use parse_with_separator.
52592
52593 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52594
52595         * modules/userspec: Don't depend on alloca.
52596
52597 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52598
52599         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52600
52601 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52604         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52605         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52606
52607 2004-08-16  Simon Josefsson  <jas@extundo.com>
52608
52609         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52610         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52611         Add --dry-run for --import.
52612         Let user provided command line parameters override configure.ac
52613         settings.
52614
52615 2004-08-12  Simon Josefsson  <jas@extundo.com>
52616
52617         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52618         as discussed with Paul Eggert in threads rooted at
52619         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52620         and
52621         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52622         Before, the test was empty, and relied on ELIDE_CODE in source
52623         code.)
52624         (gl_PREREQ_GETOPT): New macro.
52625         (gl_GETOPT): Use them.
52626
52627 2004-08-12  Simon Josefsson  <jas@extundo.com>
52628
52629         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52630         * lib/getopt_.h: Renamed from getopt.h.
52631
52632 2004-08-12  Simon Josefsson  <jas@extundo.com>
52633
52634         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52635         Change default library name from libfoo to libgnu.
52636         Now, if you have a configure.ac that says:
52637                 gl_SOURCE_BASE(gl)
52638                 gl_M4_BASE(gl/m4)
52639                 gl_MODULES(error getopt etcetera)
52640                 gl_INIT
52641         you can import all you need by running:
52642                 ../gnulib/gnulib-tool --import
52643
52644         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52645         (Makefile.am): Rewrite, use logic from argz.
52646         (Include): Use <getopt.h> instead of "getopt.h".
52647
52648 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52649
52650         * modules/argp (Files): Add m4/unlocked-io.m4.
52651         (Depends-on): Add extensions.
52652
52653 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52656         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52657         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52658         Check for program_invocation_name, program_invocation_short_name,
52659         flockfile, funlockfile, features.h, _getopt_long_only_r.
52660
52661 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52662
52663         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52664         its complicated substitute.
52665         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52666         and program_invocation_name.
52667         (__argp_basename) [!_LIBC]: Remove; the only use was
52668         replaced by its body.
52669         (__argp_short_program_name): Change condition from
52670         !defined __argp_short_program_name to
52671         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52672         to match argp-namefrob.h.
52673         (__argp_failure): Don't assume strerror_r returns char *.
52674         * lib/argp-parse.c (N_): Define unconditionally.
52675         (argp_default_options): Fill out initializers with 0 to avoid
52676         gcc warnings.
52677
52678 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52679
52680         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52681         getopt1.c.
52682
52683 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         Merge from coreutils.
52686
52687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52688
52689         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52690         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52691
52692 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52693
52694         Merge from coreutils.
52695
52696         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52697         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
52698         for Reliant Unix 5.43.
52699
52700         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52701         (union fooround): Use uintmax_t, not long int.
52702         The rest is a merge from libc:
52703         [defined _LIBC]: Include <shlib-compat.h>.
52704         (_obstack) [defined _LIBC]: Remove after 2.3.4.
52705
52706         * lib/settime.c (settime): Recode to avoid warning with
52707         Sun Forte C 6U2.
52708
52709         * lib/strverscmp.c: Convert to UTF-8.
52710
52711 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52712
52713         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52714         m4/uintmax_t.m4.
52715
52716 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52717
52718         * modules/xalloc-die: New file.
52719         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52720
52721         * modules/md5 (Files): Add m4/uint32_t.m4.
52722         * modules/sha1: Renamed from modules/sha.
52723         (Files):
52724         Rename lib/sha.h to lib/sha1.h.
52725         Rename lib/sha.c to lib/sha1.c.
52726         Rename m4/sha.m4 to m4/sha1.m4.
52727         (lib_SOURCES): Likewise.
52728         (configure.ac): Rename gl_SHA to gl_SHA1.
52729         (Include): sha.h -> sha1.h.
52730
52731 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52732
52733         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52734         * m4/sha1.m4: Renamed from sha.m4.
52735         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
52736
52737 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52738
52739         * lib/obstack.h (obstack_empty_p):
52740         Don't assume that chunk->contents is suitably aligned.
52741         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52742         Likewise. Problem reported by Benno in
52743         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52744
52745         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52746         readable.  This could be improved further but it'd take some work.
52747
52748 2004-08-08  Simon Josefsson  <jas@extundo.com>
52749
52750         * modules/xgethostname (Depends-on): Remove exit and error (not
52751         used).
52752
52753         * modules/getpass-gnu: Add getpass.h.
52754         (Depends-on): Add stdbool.
52755         * modules/getpass: Add getpass.h.
52756
52757 2004-08-08  Simon Josefsson  <jas@extundo.com>
52758
52759         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
52760         Check getpass declaration.
52761
52762 2004-08-08  Simon Josefsson  <jas@extundo.com>
52763
52764         * lib/xgethostname.c: Don't include error.h (not used).
52765
52766         * lib/getpass.h: Add.
52767         * lib/getpass.c: Include getpass.h first.
52768
52769 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
52770
52771         * lib/xalloc-die.c: New file.
52772         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
52773         All uses removed.
52774         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
52775         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
52776         xalloc-die.c.
52777         (_, N_, xalloc_die): Move to xalloc-die.c.
52778         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
52779         so that we needn't mess with xalloc_msg_memory_exhausted.
52780
52781         * lib/sha1.h: Renamed from sha.h.
52782         (SHA1_H): Renamed from _SHA_H.
52783         (sha1_ctx): Renamed from sha_ctx.
52784         (sha1_init_ctx): Renamed from sha_init_ctx.
52785         (sha1_process_block): Renamed from sha_process_block.
52786         (sha1_process_bytes): Renamed from sha_process_bytes.
52787         (sha1_finish_ctx): Renamed from sha_finish_ctx.
52788         (sha1_read_ctx): Renamed from sha_read_ctx.
52789         (sha1_stream): Renamed from sha_stream.
52790         (sha1_buffer): Renamed from sha_buffer.
52791         * lib/sha1.c: Likewise; renamed from sha.c.
52792         Do not include <sys/types.h>.
52793         Include <stddef.h> rather than <stdlib.h>.
52794
52795 2004-08-08  Bruno Haible  <bruno@clisp.org>
52796
52797         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
52798         FILESYSTEM_PREFIX_LEN.
52799         * lib/progreloc.c: Likewise.
52800         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
52801
52802 2004-08-06  Simon Josefsson  <jas@extundo.com>
52803
52804         * modules/progname (Depends-on): Don't depend on stdbool.
52805
52806 2004-08-06  Simon Josefsson  <jas@extundo.com>
52807
52808         * modules/getsubopt: New file.
52809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52810         getsubopt.
52811
52812 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52813
52814         More merge from coreutils.
52815
52816         * m4/utimens.m4, m4/utimecmp.m4: New files.
52817         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
52818         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
52819         prereq.m4, sha.m4: Import changes from coreutils.
52820
52821 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52822
52823         More merge from coreutils.
52824         * modules/raise, modules/readtokens0, modules/utimens:
52825         * modules/utimecmp, module/xnanosleep: New files.
52826         * modules/strftime: Add lib/strftime.h.
52827         Change include from <time.h> to "strftime.h".
52828         * modules/yesno: Add lib/yesno.h.
52829         * modules/backupfile: Remove lib/addext.c.
52830         * modules/euidaccess: Add stat-macros.h.
52831         * modules/canonicalize, modules/euidaccess,
52832         modules/filemode, modules/lchown, modules/makepath,
52833         modules/rmdir, modules/stat: Likewise.
52834
52835 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         Merge from tar.
52838         * lib/argp-help.c (make_hol, hol_append): Don't assume that
52839         SIZE_MAX is a valid preprocessor constant.
52840         (__argp_basename): Change from "#ifndef _LIBC"
52841         to "#ifndef __argp_short_program_name", so that
52842         we don't compile these functions for tar.
52843
52844         More merges from coreutils.
52845         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
52846         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
52847         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
52848         * lib/addext.c: Remove; no longer needed.
52849         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
52850         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
52851         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
52852         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
52853         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
52854         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
52855         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
52856         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
52857         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
52858         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52859         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
52860         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
52861         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
52862         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
52863         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
52864         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
52865         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
52866         Import changes from coreutils.
52867
52868 2004-08-05  Simon Josefsson  <jas@extundo.com>
52869
52870         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
52871
52872 2004-08-05  Simon Josefsson  <jas@extundo.com>
52873
52874         * m4/getsubopt.m4: New file.
52875
52876 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52877
52878         Merge from coreutils.
52879
52880         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
52881         * m4/getcwd-path-max.m4: New files.
52882
52883         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
52884         FILESYSTEM_PREFIX_LEN ->
52885         FILE_SYSTEM_PREFIX_LEN.
52886         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
52887         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
52888         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
52889         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
52890
52891         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
52892         prerequisite modules now handle the DOS stuff.
52893         Don't check for unistd.h.
52894
52895 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52896
52897         Merge from coreutils.
52898
52899         * lib/.gdb-history: Remove; this doesn't belong here.
52900
52901         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
52902         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
52903         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
52904         * lib/getcwd.c: New files.
52905
52906         * lib/dirname.h: Include <stdbool.h>.
52907         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
52908         for consistency with POSIX terminology.  All uses changed.
52909         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
52910         (strip_trailing_slashes): Use bool for booleans.
52911         * lib/stripslash.c (strip_trailing_slashes): Likewise.
52912
52913         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
52914         sometimes returns a positive errno value even when it succeeds.
52915         (print_errno_message) [!LIBC]: Fall back on strerror if
52916         __strerror_r fails.
52917
52918         * lib/path-concat.c (mempcpy): Don't define if a system header defines
52919         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
52920         (longest_relative_suffix): New function.
52921         (path_concat): Use it.  Assume first argument is not NULL.
52922         Port to DOS.  Omit redundant separators.
52923         Report an error instead of returning NULL.
52924         Use mempcpy instead of memcpy.
52925         (xpath_concat): Remove: not declared or used.
52926
52927         * lib/same.h: Include <stdbool.h>
52928         (same_name): Return bool, not int.
52929         * lib/same.c (same_name): Likewise.
52930         (errno): Don't declare; we assume C89 or better now.
52931
52932         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
52933         if not already defined.
52934
52935         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
52936         * lib/dup-safer.c (errno): Likewise.
52937
52938 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         Merge from coreutils.
52941         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
52942         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
52943         * modules/path-concat: Don't depend on strdup.
52944
52945 2004-08-03  Simon Josefsson  <jas@extundo.com>
52946
52947         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
52948         * lib/progname.h: Don't include stdbool.h.
52949
52950 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52951
52952         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
52953         * MODULES.html.sh (func_all_modules): Remove fatal.
52954
52955 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52956
52957         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
52958
52959 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52960
52961         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
52962         working.
52963
52964 2004-08-02  Simon Josefsson  <jas@extundo.com>
52965
52966         * lib/getsubopt.h: New file, with comments from Bruno Haible.
52967         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
52968         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
52969
52970 2004-08-01  Simon Josefsson  <jas@extundo.com>
52971
52972         * lib/xgetdomainname.c: Include stdlib.h, for free().
52973
52974 2004-07-19  Bruno Haible  <bruno@clisp.org>
52975
52976         * MODULES.html.sh (func_all_modules): Add dummy.
52977
52978 2004-07-16  Simon Josefsson  <jas@extundo.com>
52979
52980         * modules/dummy: New file.
52981
52982 2004-07-16  Simon Josefsson  <jas@extundo.com>
52983
52984         * lib/dummy.c: New file.
52985
52986 2004-07-16  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/backupfile.h: Add extern "C" for C++.
52989         * lib/closeout.h: Likewise.
52990         * lib/copy-file.h: Likewise.
52991         * lib/findprog.h: Likewise.
52992         * lib/full-write.h: Likewise.
52993         * lib/pathname.h: Likewise.
52994         * lib/progname.h: Likewise.
52995         * lib/stpcpy.h: Likewise.
52996         * lib/stpncpy.h: Likewise.
52997         * lib/strcase.h: Likewise.
52998         * lib/strstr.h: Likewise.
52999         * lib/xalloc.h: Likewise.
53000
53001         * lib/mbswidth.h: Add extern "C" for C++.
53002         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53003
53004 2004-07-13  Robert Millan  <robertmh@gnu.org>
53005
53006         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53007
53008 2004-07-09  Simon Josefsson  <jas@extundo.com>
53009
53010         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53011         failed without this.)
53012
53013 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * modules/chown (Files): Add lib/fchown-stub.c, since
53016         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53017
53018 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * lib/fchown-stub.c: New file.
53021
53022 2004-06-24  Jim Meyering  <jim@meyering.net>
53023
53024         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53025
53026 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53027
53028         * modules/argz: Omit "#include".
53029
53030         * MODULES.html.sh (func_all_modules): Add calloc, to match
53031         2004-06-01 addition of calloc module.
53032
53033 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53034
53035         * m4/argz.m4: New file, which is autoupdated from libtool.
53036
53037 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53040         libtool.
53041
53042 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53043
53044         * config/srclist-update: Don't insist on "USA." before the
53045         close-comment, as libtool omits the period and puts the */ on a
53046         separate line.
53047         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53048         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53049
53050 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53051
53052         * modules/argz: New file.
53053         * MODULES.html.sh (func_all_modules): Add argz.
53054
53055 2004-06-12  Jim Meyering  <jim@meyering.net>
53056         and  Paul Eggert  <eggert@cs.ucla.edu>
53057
53058         * modules/hash (Files): Add lib/xalloc.h.
53059         * modules/pipe (Depends-on): Add wait-process.
53060         * modules/stat (Depends-on): Add xalloc.
53061         * modules/userspec (Files): Add lib/userspec.h.
53062         * modules/xstrto
53063
53064         Upgrade from gettext-0.13.
53065         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53066         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53067         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53068
53069 2004-06-10  Jim Meyering  <jim@meyering.net>
53070
53071         * lib/calloc.c: New file.
53072
53073 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53074
53075         * lib/getdate.y (yylex): Allow space between sign and number.
53076         Problem reported by Dan Jacobson.
53077
53078 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         Merge from coreutils CVS.
53081
53082         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53083         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53084         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53085         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53086         xstrtol.m4: Fix copyright date and/or serial number.
53087
53088         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53089         See if we need an fchown replacement.
53090         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53091         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53092         and use the replacement function if we detect either defect.
53093
53094         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53095         gl_UTIMECMP.
53096
53097 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53098         and  Jim Meyering  <jim@meyering.net>
53099
53100         Merge from coreutils CVS.
53101
53102         * lib/stat-macros.h: New file, with contents from file-type.h
53103         and coreutils' system.h.
53104         * lib/file-type.c: Include "stat-macros.h".
53105         * lib/file-type.h (file_type): Move all macro definitions to new file,
53106         stat-macros.h.
53107
53108         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53109         Wrap old code with this conditional.
53110         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53111         function that does not dereference symlinks.
53112         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53113
53114         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53115         dependency problems.
53116         (xreadlink): Accept new arg SIZE, for efficiency.
53117         All decls and uses changed.
53118         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53119
53120         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53121         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53122
53123         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53124         sysexits.h.
53125
53126 2004-06-01  Jim Meyering  <jim@meyering.net>
53127
53128         * m4/calloc.m4: New file.
53129
53130 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53133         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53134         Also, fix a typo in a diagnostic.
53135
53136 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53137
53138         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53139         or AC_FUNC_REALLOC.
53140
53141 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53144         macros to be defined.
53145         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53146         the allocator returns NULL because the requested size is zero.
53147
53148 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53149
53150         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53151         var.  Add comment explaining why libc still defines it.  This
53152         merges the following patch from glibc:
53153         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53154
53155 2004-05-20  Andreas Schwab  <schwab@suse.de>
53156
53157         * m4/free.m4: Replace free if it not known to work, not the other
53158         way round.
53159
53160 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53161
53162         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53163         present in glibc since revision 1.1 of this file.
53164         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53165         obstack_alignment_mask, obstack_alloc, obstack_base,
53166         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53167         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53168         obstack_grow0, obstack_init, obstack_int_grow,
53169         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53170         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53171         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53172         nonexistent functions.
53173
53174 2004-05-18  Karl Berry  <karl@gnu.org>
53175
53176         * config/srclist.txt: break link for vasnprintf.c.
53177
53178 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         Port obstack to the AS/400, where pointers are 16 bytes wide and
53181         you cannot cast an integer to a valid pointer.  This patch is
53182         currently waiting to be integrated into glibc; see
53183         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53184
53185         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53186         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53187         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53188         (struct obstack): temp member is now a union of a pointer and
53189         an integer, instead of an integer.  All integer uses changed.
53190         This does not affect the physical layout of struct obstack,
53191         except on hosts (like the AS/400) where the size or alignment of
53192         void * is greater than that of ptrdiff_t.
53193         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53194         __STDC__)]: Store temporary in pointer member of union, not
53195         integer member.
53196         * lib/obstack.c: Include <stddef.h>, for offsetof.
53197         (struct fooalign): Remove; it doesn't need a name.
53198         (union fooround): Change double to long double, and add void *.
53199         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53200         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53201         not a macro.  Hence the values are always int; so remove all
53202         casts-to-int in uses.
53203
53204 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53205
53206         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53207         we can get this patch merged into glibc.
53208
53209 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53210             Paul Eggert  <eggert@cs.ucla.edu>
53211
53212         * m4/argp: Depend on alloca.
53213
53214 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53215             Paul Eggert  <eggert@cs.ucla.edu>
53216
53217         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53218         freecoding.
53219
53220 2004-05-17  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53223         precision that consists of a '.' followed by an empty digit string.
53224         Patch by Tor Lillqvist <tml@iki.fi>.
53225
53226 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53227
53228         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53229         for backward compatibility with older code.  We need our own
53230         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53231         it under some other name, and our alloca.h will define it.
53232
53233 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53234             Derek Price  <derek@ximbiot.com>
53235
53236         * lib/alloca.c: Include <alloca.h>, to get our interface.
53237         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53238         include <alloca.h> first.  Use C89 prototype for alloca; this
53239         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53240         Use #elif for simplicity, since we can assume C89 now.
53241         Don't try to source the system alloca.h since it will not be found
53242         and to prevent recursively including its replacement.
53243         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53244         * lib/regex.c: Likewise.
53245
53246 2004-05-16  Derek Price  <derek@ximbiot.com>
53247             Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         getline cleanup.  This changes the getndelim2 API: both order of
53250         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53251         no delimiter).
53252
53253         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53254         interface does that.
53255         (getline): Always use getdelim, so that we don't have two
53256         copies of this code.
53257         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53258         if available.
53259         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53260         (GETNDELIM2_MAXIMUM): New macro.
53261         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53262         instead of the old practice of delim2==0.  All callers changed.
53263         Return -1 on overflow, instead of returning junk.
53264         Do not set *linesize unless allocation succeeds.
53265         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53266         that we include sys/types.h.
53267         * lib/getnline.h: Likewise.
53268         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53269         (getndelim2): Reorder arguments.
53270         * lib/getnline.c (getnline, getndelim):
53271         Don't discard the NMAX argument.
53272         (getnline): Invoke getndelim, to avoid code duplication.
53273         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53274         of (size_t) -1 by callers of the getnline family.
53275
53276 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53277
53278         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53279         Check for gettimeofday.
53280         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53281         Check for settimeofday, stime.
53282
53283 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * lib/nanosleep.c (suspended): Change its type from int to
53286         sig_atomic_t volatile.
53287         (first_call): Make it private to rpl_nanosleep, and have it
53288         be zero initially as that's a bit faster.
53289         (my_usleep): Round up fractional times instead of truncating them,
53290         as this is the usual meaning for 'sleep'.
53291
53292         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53293         doesn't work.
53294         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53295         (ENOSYS): Define if not defined.
53296         (settime): Fall back on stime if it exists and settimeofday fails.
53297         But don't bother with fallbacks if a method fails with errno == EPERM.
53298
53299 2004-05-11  Jim Meyering  <jim@meyering.net>
53300
53301         Prior to this change, the save_cwd caller required read access to the
53302         current directory on most systems (ones with the fchdir function).
53303
53304         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53305         fails, try write-only, and finally, resort to using xgetcwd.
53306
53307 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * lib/obstack.c, obstack.h: Import changes from libc.
53310
53311 2004-04-28  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53314         also implicitly appends .exe to executables.
53315         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53316         accepts Windows pathnames.
53317         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53318         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53319         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53320         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53321         Reported by Derek Robert Price <derek@ximbiot.com>.
53322
53323 2004-04-21  Karl Berry  <karl@gnu.org>
53324
53325         * config/srclist.txt (localcharset.c): break sync.
53326
53327 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53328
53329         * m4/host-os.m4: Add a copyright notice.
53330
53331 2004-04-20  Jim Meyering  <jim@meyering.net>
53332
53333         Change UTILS_ to gl_ in AC_DEFINE'd names.
53334         Change utils_- and jm_-prefixed variables, too.
53335         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53336         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53337         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53338
53339         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53340         Don't emit trailing blanks.
53341         Also rename jm_-prefixed variables to have gl_ prefix.
53342
53343         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53344         Also rename jm_-prefixed variables to have gl_ prefix.
53345
53346         * m4/jm-macros.m4: Reflect the renamings.
53347         * m4/prereq.m4: Likewise.
53348
53349 2004-04-20  Jim Meyering  <jim@meyering.net>
53350
53351         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53352         memory.
53353
53354 2004-04-20  Jim Meyering  <jim@meyering.net>
53355             Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53358         memory when realloc fails.
53359
53360 2004-04-19  Jim Meyering  <jim@meyering.net>
53361
53362         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53363         now that readutmp.c may call `free (0)'.
53364
53365 2004-04-19  Bruno Haible  <bruno@clisp.org>
53366
53367         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53368         * m4/inttypes_h.m4: Likewise.
53369         * m4/stdint_h.m4: Likewise.
53370         * m4/intmax_t.m4: Likewise.
53371         * m4/uintmax_t.m4: Likewise.
53372
53373 2004-04-18  Jim Meyering  <jim@meyering.net>
53374
53375         * m4/prereq.m4: Don't forbid jm_ prefix.
53376
53377         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53378         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53379         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53380         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53381         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53382         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53383         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53384         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53385         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53386         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53387         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53388         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53389         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53390         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53391         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53392         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53393         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53394         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53395         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53396
53397 2004-04-18  Jim Meyering  <jim@meyering.net>
53398
53399         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53400         failure, don't leak memory and do call END_UTMP_ENT.
53401
53402 2004-04-16  Jim Meyering  <jim@meyering.net>
53403
53404         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53405         coreutils' stat program.
53406         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53407
53408 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53409
53410         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53411         C89.
53412         (CHAR_BIT): Remove, since we assume C89.
53413         Include <stdint.h> if available, as per current Autoconf CVS advice.
53414
53415 2004-03-31  Jim Meyering  <jim@meyering.net>
53416
53417         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53418         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53419         * m4/xalloc.m4: Likewise.
53420
53421 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53422
53423         Merge from coreutils.
53424
53425         * m4/inttostr.m4: New file.
53426         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53427         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53428         Require gl_CLOCK_TIME.
53429         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53430
53431 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53432
53433         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53434         not bool, to be more consistent with Unix conventions.
53435         Suggested by Bruno Haible.
53436
53437         Merge from coreutils.
53438
53439         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53440         * lib/umaxtostr.c: New files.
53441
53442         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53443         the usual <time.h> dance.
53444         (get_date): Change signature to support fractional time stamps.
53445         All callers changed.
53446         * lib/getdate.y: Include "getdate.h" first, as we can now
53447         assume C89 and don't need to worry about 'const'.
53448         Similarly, include "unlocked-io.h" near start, not in middle.
53449         Include <limits.h>.
53450         (textint.value): Use long int rather than int.
53451         (textint.digits): Use size_t rather than int.
53452         (BILLION, LOG10_BILLION): New constants.
53453         (parser_control): New member rel_ns.  Members day_ordinal,
53454         time_zone, month, day, hour, minutes, rel_year, rel_month,
53455         rel_day, rel_hour, rel_minutes, rel_seconds
53456         are now long int, not int.  Member seconds is now struct timespec,
53457         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53458         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53459         not int.
53460         (%union.intval): Now long int, not int.
53461         New member timespec.
53462         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53463         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53464         (spec): Now is a timespec or an item list.
53465         (timespec, items): New nonterminals.
53466         (time, rel, relunit, number, get_date):
53467         Add support for fractional seconds.
53468         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53469         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53470         (to_hour): First arg is now long int, not int.
53471         (to_year): Returns long int, not int.
53472         Don't treat year -70 like 70.
53473         (tm_diff): Returns long int, not int.
53474         (lookup_word): Use bool instead of int when appropriate.
53475         (yylex): Use size_t for count, not int.
53476         Detect overflow when parsing large integer constants.
53477         Add support for fractions.
53478         (get_date): Make pointers 'const' if possible.
53479         Use more-portable code to detect integer overflow.
53480         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53481         Don't use ctime; it's not reliable if the year has >4 digits.
53482
53483         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53484         This is for compatibility with BSD.
53485
53486         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53487         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53488         From coreutils' system.h.
53489
53490         * lib/userspec.c: Don't include "posixver.h".
53491         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53492         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53493         compatible extension.  Simplify code by removing a boolean int
53494         that was always nonzero if a string was nonnull.
53495
53496 2004-03-30  Jim Meyering  <jim@meyering.net>
53497
53498         Merge from coreutils.
53499
53500         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53501         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53502         on some systems one must include <grp.h> before it.
53503         Reported by Christian Krackowizer.
53504
53505 2004-03-30  Jim Meyering  <jim@meyering.net>
53506
53507         Merge from coreutils.
53508
53509         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53510
53511         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53512         an empty input stream.
53513
53514         * lib/readtokens.c: Include <stdbool.h>.
53515         (readtoken): Use `size_t' rather than int/long.
53516         All callers adjusted.
53517         Use `bool' rather than `int' where appropriate.
53518         Use memset rather than an explicit loop.
53519         Use x2nrealloc rather than xrealloc.
53520         Allow the use of `\0' as a delimiter.
53521         (readtokens): Likewise.
53522         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53523
53524 2004-03-30  Jim Meyering  <jim@meyering.net>
53525
53526         * m4/realloc.m4: Remove file, since now it does no more than
53527         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53528         the `configure.ac' section of module/realloc.
53529         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53530
53531 2004-03-30  Bruno Haible  <bruno@clisp.org>
53532
53533         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53534         nonnull.
53535
53536 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53537
53538         Merge changes to getloadavg.c from coreutils and Emacs.
53539
53540         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53541         Define to an expression, not to the empty string.
53542         Include cloexec.h and xalloc.h.
53543         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53544         Use set_cloexec_flag rather than rolling our own.
53545         * lib/cloexec.c, lib/cloexec.h: New files.
53546
53547 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53548
53549         * m4/cloexec.m4: New file.
53550
53551 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53552
53553         * lib/getopt.h: Sync with libc CVS.
53554
53555 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53556             Bruno Haible  <bruno@clisp.org>
53557
53558         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53559         mbswidth.
53560
53561 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53562             Bruno Haible  <bruno@clisp.org>
53563
53564         * lib/mbswidth.h: Include <wchar.h> only if
53565         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53566         <wchar.h>.
53567         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53568
53569 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53570
53571         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53572         Sync with libc CVS.
53573         * lib/getopt_int.h: New file, also synced from libc.
53574
53575 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53576
53577         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53578         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53579         Bring back getopt.c, getopt.h, getopt1.c.
53580
53581 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53582
53583         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53584         All uses changed.  Check for sa_sigaction member; this fixes
53585         a bug first reported by Jason Andrade in
53586         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53587
53588 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53589
53590         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53591         '#if' expressions.  Unlike the code it replaces, it does not
53592         depend on (defined _SC_PAGESIZE).  However, it does depend on
53593         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53594         first reported by Jason Andrade in
53595         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53596
53597 2004-02-25  Simon Josefsson  <jas@extundo.com>
53598
53599         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53600
53601 2004-02-25  Simon Josefsson  <jas@extundo.com>
53602
53603         * lib/strdup.h: New file.
53604         * lib/strdup.c: Include it.
53605         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53606         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53607
53608 2004-02-23  Karl Berry  <karl@gnu.org>
53609
53610         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53611         (from fencepost.gnu.org:/gd/gnuorg).
53612
53613 2004-02-23  Karl Berry  <karl@gnu.org>
53614
53615         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53616         * config/srclist.txt: add maintain/standards documents.
53617
53618 2004-02-18  Bruno Haible  <bruno@clisp.org>
53619
53620         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53621         Reported by Derek Robert Price <derek@ximbiot.com>.
53622
53623 2004-02-16  Karl Berry  <karl@gnu.org>
53624
53625         * config/mkinstalldirs, install-sh: update from automake.
53626
53627 2004-02-06  Karl Berry  <karl@gnu.org>
53628
53629         * m4/po.m4: update from gettext 0.14.1.
53630
53631 2004-02-06  Karl Berry  <karl@gnu.org>
53632
53633         * lib/config.charset: update from gettext 0.14.1.
53634
53635 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53636
53637         Add comments and code, prompted by suggestions from Bruno Haible
53638         for sh-quote.
53639         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53640         describing the enum quoting_style values.
53641         * lib/quotearg.c (quotearg_alloc): New function.
53642         (quotearg_buffer_restyled): Treat lone { and } as special.
53643         Treat = as special.  Work around bug with older shells
53644         that "see" a '\' that is really the 2nd byte of a multibyte char.
53645         Quote empty string with shell_quoting_style.
53646
53647 2004-02-03  Bruno Haible  <bruno@clisp.org>
53648
53649         * m4/pipe.m4: New file, from GNU gettext.
53650
53651 2004-02-03  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/pipe.h: New file, from GNU gettext.
53654         * lib/pipe.c: New file, from GNU gettext.
53655
53656 2004-01-27  Bruno Haible  <bruno@clisp.org>
53657
53658         * m4/execute.m4: New file, from GNU gettext.
53659
53660 2004-01-27  Bruno Haible  <bruno@clisp.org>
53661
53662         * lib/execute.h: New file, from GNU gettext.
53663         * lib/execute.c: New file, from GNU gettext.
53664         * lib/w32spawn.h: New file, from GNU gettext.
53665
53666 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53667
53668         Merge from diffutils.
53669
53670         * lib/file-type.c (file_type): Add typed memory objects.
53671         * lib/file-type.h (S_TYPEISTMO): New macro.
53672
53673         * lib/c-stack.h (c_stack_action): Remove argv argument.
53674         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53675         (die): Don't calculate message unless segv_action returns.
53676         (get_stack_location, min_address_from_argv, max_address_from_argv,
53677         volatile stack_base, volatile_stack_size): Remove.
53678         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53679         that every segmentation violation is a stack overflow.  (Ouch!)
53680         See Debian bug 136249 (still outstanding) for more info about why
53681         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53682
53683 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53684
53685         Exit-status fix from coreutils.
53686
53687         Use exit_failure consistently in place of EXIT_FAILURE,
53688         so that program exit statuses are consistent on failure.
53689
53690         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53691         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53692         * lib/argmatch.h: Comment fix to match the above.
53693         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53694         Now a macro referring to exit_failure, instead of a separate
53695         variable.  Include "exitfail.h" to get it.
53696         * lib/xstrtol.h: Include "exitfail.h".
53697         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53698
53699         * lib/long-options.c (parse_long_options): Use prototype
53700         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
53701         for clarity.
53702
53703 2004-01-21  Jim Meyering  <jim@meyering.net>
53704
53705         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53706         so as not to conflict with a different-sized __mktime_internal
53707         function in GNU libc.
53708         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53709         Problem building statically-linked `ls' reported by Michael Brunnbauer.
53710
53711 2004-01-20  Karl Berry  <karl@gnu.org>
53712
53713         * config/config.guess: update from config.
53714
53715         * config/srclistvars.sh: GNUWWWLICENSES for karl.
53716
53717 2004-01-20  Bruno Haible  <bruno@clisp.org>
53718
53719         Safer stack allocation.
53720         * lib/setenv.c: Include allocsa.h.
53721         (alloca): Remove fallback definition.
53722         (freea): Remove macro.
53723         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53724         instead of freea.
53725
53726 2004-01-20  Bruno Haible  <bruno@clisp.org>
53727
53728         * m4/eealloc.m4: New file, from GNU gettext.
53729
53730 2004-01-20  Bruno Haible  <bruno@clisp.org>
53731
53732         * m4/allocsa.m4: New file, from GNU gettext.
53733
53734 2004-01-20  Bruno Haible  <bruno@clisp.org>
53735
53736         * lib/xallocsa.h: New file, from GNU gettext.
53737         * lib/xallocsa.c: New file, from GNU gettext.
53738
53739 2004-01-20  Bruno Haible  <bruno@clisp.org>
53740
53741         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53742
53743 2004-01-20  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53746         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53747         specially.
53748
53749 2004-01-20  Bruno Haible  <bruno@clisp.org>
53750
53751         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53752         patch.
53753
53754 2004-01-20  Bruno Haible  <bruno@clisp.org>
53755
53756         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
53757
53758 2004-01-20  Bruno Haible  <bruno@clisp.org>
53759
53760         * lib/eealloc.h: New file.
53761
53762 2004-01-20  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/binary-io.h: Avoid warnings on Cygwin.
53765
53766 2004-01-20  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/allocsa.h: New file, from GNU gettext.
53769         * lib/allocsa.c: New file, from GNU gettext.
53770
53771 2004-01-18  Karl Berry  <karl@gnu.org>
53772
53773         * doc/gpl.texi, doc/lgpl.texi: new files.
53774
53775 2004-01-18  Karl Berry  <karl@gnu.org>
53776
53777         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
53778         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
53779
53780 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53781
53782         Merge from coreutils.
53783
53784         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
53785         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
53786         (gl_DEFAULT_POSIX2_VERSION): Move
53787         the documentation from 'configure' into 'config.hin',
53788         so that 'configure --help' isn't burdened by it and
53789         we don't have to worry about its formatting there.
53790         Reword the documentation so that it's more succinct
53791         and can be run together into a single paragraph.
53792         * m4/same.m4 (gl_SAME): Check for pathconf.
53793
53794 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53795
53796         Merge from coreutils.
53797
53798         * lib/posixver.c: Include posixver.h.
53799
53800         * lib/same.c: Include <stdbool.h>, <limits.h>.
53801         (_POSIX_NAME_MAX): Define if not defined.
53802         (MIN): New macro.
53803         (same_name): If file names are silently truncated, report
53804         that the file names are the same if they are the same after
53805         the silent truncation.
53806
53807         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
53808         conversion function.
53809         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
53810         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
53811         longer needed.
53812
53813 2004-01-15  Jim Meyering  <jim@meyering.net>
53814
53815         Merge from coreutils.
53816
53817         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
53818         if no library is required.
53819         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
53820         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
53821         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
53822         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
53823         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
53824         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
53825         value, $ac_cv_search_crypt, if it's "none required".
53826         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
53827         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
53828         not gl_FUNC_GETLOADAVG.
53829         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
53830         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
53831
53832 2004-01-15  Jim Meyering  <jim@meyering.net>
53833
53834         Merge from coreutils.
53835
53836         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
53837         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
53838         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
53839
53840         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
53841         optional configure-time default.
53842
53843         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53844
53845         * lib/xreadlink.c (xreadlink): Correct outdated comment.
53846
53847 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
53848
53849         Merge from coreutils.
53850
53851         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
53852         value, $ac_cv_search_nanosleep, if it's "none required".
53853
53854 2004-01-14  Paul Eggert  <eggert@twinsun.com>
53855
53856         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
53857         with like-named macro in fnmatch.c.
53858         (EXT): Use an internal constant instead.
53859
53860         Merge fnmatch patches from glibc.
53861         * lib/fnmatch.c (mbsinit): Remove define.
53862         Add libc_hidden_ver (__fnmatch, fnmatch).
53863         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
53864         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
53865
53866 2004-01-14  Karl Berry  <karl@gnu.org>
53867
53868         * config/install-sh: update from automake.
53869
53870 2004-01-13  Karl Berry  <karl@gnu.org>
53871
53872         * config/install-sh: update from automake.
53873
53874 2004-01-09  Karl Berry  <karl@gnu.org>
53875
53876         * config/install-sh: update from automake.
53877
53878 2004-01-05  Karl Berry  <karl@gnu.org>
53879
53880         * config/config.{sub,guess}: update from config.
53881
53882 2003-12-31  Karl Berry  <karl@gnu.org>
53883
53884         * config/depcomp: update from automake.
53885
53886 2003-12-14  Karl Berry  <karl@gnu.org>
53887
53888         * lib/config.charset: update from gettext-runtime.
53889
53890 2003-12-03  Paul Eggert  <eggert@twinsun.com>
53891
53892         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
53893         Bug reported by Alfred M. Szmidt.
53894
53895 2003-12-03  Bruno Haible  <bruno@clisp.org>
53896
53897         * m4/gettext.m4: Upgrade from gettext-0.13.
53898         * m4/po.m4: Upgrade from gettext-0.13.
53899         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
53900         * m4/intmax.m4: New file, from gettext-0.13.
53901         * m4/printf-posix.m4: New file, from gettext-0.13.
53902
53903 2003-11-29  Karl Berry  <karl@gnu.org>
53904
53905         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
53906
53907 2003-11-25  Paul Eggert  <eggert@twinsun.com>
53908             Bruno Haible  <bruno@clisp.org>
53909
53910         * lib/printf-parse.h: Don't include sys/types.h.
53911         (ARG_NONE): New macro.
53912         (char_directive): Change type of *arg_index fields to size_t.
53913         * lib/printf-parse.c: Don't include sys/types.h.
53914         (SSIZE_MAX): Remove macro.
53915         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
53916         Remove unnecessary overflow check.
53917         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
53918         fields.
53919
53920 2003-11-25  Bruno Haible  <bruno@clisp.org>
53921
53922         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
53923
53924 2003-11-25  Bruno Haible  <bruno@clisp.org>
53925
53926         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
53927         gt_TYPE_SSIZE_T.
53928
53929 2003-11-24  Paul Eggert  <eggert@twinsun.com>
53930
53931         * modules/alloca: Remove dependency on xalloc.
53932
53933 2003-11-24  Paul Eggert  <eggert@twinsun.com>
53934
53935         * lib/alloca.c: Remove dependency on xalloc module.
53936         (xalloc_die): Remove.
53937         (memory_full) [!defined emacs]: New macro.
53938         [!defined emacs]: Don't include xalloc.h.
53939         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
53940         address arithmetic overflows.  Change datatypes a bit to avoid
53941         unnecessary casts.
53942
53943 2003-11-22  Jim Meyering  <jim@meyering.net>
53944
53945         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
53946         s/size/size_t/.
53947
53948 2003-11-21  Karl Berry  <karl@gnu.org>
53949
53950         * config/config.{sub,guess}: update from config.
53951
53952 2003-11-18  Karl Berry  <karl@gnu.org>
53953
53954         * config/config.{sub,guess}: update from config.
53955
53956         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
53957
53958 2003-11-17  Paul Eggert  <eggert@twinsun.com>
53959
53960         * README: Mention that S+T cannot overflow if S is the size of
53961         an existing object and T is sufficiently small.
53962
53963 2003-11-17  Jim Meyering  <jim@meyering.net>
53964
53965         On systems without utime and without a utimes function capable of
53966         dealing with a NULL struct utimbuf* argument, this utime replacement
53967         could -- in unusual circumstances -- leak a file descriptor.
53968         * lib/utime.c: Include <unistd.h> and <errno.h>.
53969         (utime_null): Be sure to close `fd' and to preserve errno.
53970         Reported by Geoff Collyer via Arnold Robbins.
53971
53972 2003-11-17  Bruno Haible  <bruno@clisp.org>
53973
53974         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
53975         (Depends-on): Add xsize.
53976
53977 2003-11-17  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
53980
53981 2003-11-17  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/vasnprintf.c (alloca): Remove fallback definition.
53984         (freea): Remove definition.
53985         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
53986         Reported by Paul Eggert.
53987
53988 2003-11-16  Paul Eggert  <eggert@twinsun.com>
53989             Bruno Haible  <bruno@clisp.org>
53990
53991         Protect against address arithmetic overflow.
53992         * lib/printf-args.h: Include stddef.h.
53993         (arguments): Change type of field 'count' to size_t.
53994         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
53995         'unsigned int' where appropriate.
53996         * lib/printf-parse.h: Include sys/types.h.
53997         (char_directive): Change type of *arg_index fields to ssize_t.
53998         (char_directives): Change type of fields 'count', max_*_length to
53999         size_t.
54000         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54001         (SSIZE_MAX): Define fallback value.
54002         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54003         instead of 'int' where appropriate. Check a_allocated, d_allocated
54004         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54005         * lib/vasnprintf.c: Include xsize.h.
54006         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54007         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54008         overflow. Avoid wraparound when converting a width or precision from
54009         decimal to binary.
54010
54011 2003-11-16  Bruno Haible  <bruno@clisp.org>
54012
54013         Update from GNU gettext.
54014         * lib/printf-parse.c: Generalize to it can be compiled for wide
54015         strings.
54016         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54017         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54018         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54019         SNPRINTF): New macros.
54020         Don't include <alloca.h> if the file is used inside libintl.
54021         (local_wcslen): New function, for Solaris 2.5.1.
54022         (VASNPRINTF): Use it instead of wcslen.
54023
54024 2003-11-16  Bruno Haible  <bruno@clisp.org>
54025
54026         * lib/xsize.h (xmax): New function.
54027         (xsum, xsum3, xsum4): Declare as "pure" functions.
54028
54029 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54030
54031         * modules/xalloc (Files): Undo latest change, since xalloc.h
54032         no longer needs SIZE_MAX or PTRDIFF_MAX.
54033
54034 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54035
54036         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54037         gl_PTRDIFF_MAX.
54038
54039 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54040
54041         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54042         "return", to pacify some unknown compiler.  Problem reported
54043         by Joerg Schilling.
54044
54045 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54046
54047         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54048         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54049         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54050         heuristic is just as accurate as far as we know, and it removes a
54051         dependency on size_max.m4 and ptrdiff_max.m4.
54052
54053 2003-11-11  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/xsize (Files): Add m4/size_max.m4.
54056         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54057
54058 2003-11-11  Bruno Haible  <bruno@clisp.org>
54059
54060         * m4/size_max.m4: New file.
54061         * m4/ptrdiff_max.m4: New file.
54062         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54063         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54064         (gl_XALLOC): Invoke it.
54065
54066 2003-11-11  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54069         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54070         defined.
54071
54072 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54073
54074         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54075         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54076         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54077         From Bruno Haible.
54078         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54079         not (size_t) -1, since it's defined here.
54080
54081 2003-11-09  Karl Berry  <karl@gnu.org>
54082
54083         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54084
54085 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54086
54087         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54088         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54089         Reject sizes of exactly SIZE_MAX bytes.
54090         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54091         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54092
54093 2003-11-05  Bruno Haible  <bruno@clisp.org>
54094
54095         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54096         SIZE_MAX defined in <limits.h> on Solaris.
54097
54098 2003-11-04  Jim Meyering  <jim@meyering.net>
54099
54100         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54101         variable names, rather than @VAR@.
54102         * modules/poll: Likewise.
54103
54104 2003-11-04  Bruno Haible  <bruno@clisp.org>
54105
54106         * modules/xsize: New file.
54107         * modules/linebreak: Depend on xsize.
54108         * MODULES.html.sh (func_all_modules): Add xsize.
54109
54110 2003-11-04  Bruno Haible  <bruno@clisp.org>
54111
54112         * m4/xsize.m4: New file.
54113
54114 2003-11-04  Bruno Haible  <bruno@clisp.org>
54115
54116         * lib/xsize.h: New file.
54117         * lib/linebreak.c: Include xsize.h.
54118         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54119         argument for overflow.
54120         Suggested by Paul Eggert.
54121
54122 2003-11-03  Karl Berry  <karl@gnu.org>
54123
54124         * config/config.{guess,sub}: update from config.
54125
54126 2003-11-03  Jim Meyering  <jim@meyering.net>
54127
54128         * modules/userspec (lib_SOURCES): Add userspec.h.
54129         (Include): Add "userspec.h".
54130         Improve description.
54131
54132 2003-11-03  Jim Meyering  <jim@meyering.net>
54133
54134         * lib/userspec.c: Include "userspec.h".
54135         * lib/userspec.h: New file.
54136
54137 2003-11-03  Bruno Haible  <bruno@clisp.org>
54138
54139         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54140
54141 2003-11-03  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54144         available, to avoid (extremely rare) race condition.
54145         Suggested by Paul Eggert.
54146
54147 2003-11-02  Karl Berry  <karl@gnu.org>
54148
54149         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54150
54151 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54152
54153         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54154         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54155         (read_filesystem_list): Set and use me_type_malloced.
54156         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54157         whatever the type happens to be), for brevity and consistency.
54158         Check for size calculation overflow on Alphas running OSF/1.
54159
54160 2003-10-31  Jim Meyering  <jim@meyering.net>
54161
54162         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54163
54164         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54165
54166 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54167             Bruno Haible  <bruno@clisp.org>
54168
54169         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54170         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54171
54172 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54173
54174         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54175         netbsd*-gnu*.  Suggested by Robert Millan.
54176
54177 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54178
54179         * modules/group-member: Depend on stdbool.
54180
54181 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54182
54183         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54184
54185 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54186
54187         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54188         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54189         after the 'gnu' in these cases.  This fixes some bugs in the
54190         previous change, and is based on suggestions by Robert Millan.
54191
54192 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54193
54194         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54195         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54196         no longer needed.
54197         * lib/quotearg.c (quotearg_n_options): Use it.
54198         * lib/group-member.c: Include <stdbool.h>.
54199         (free_group_info): Arg is now const *; don't free arg.
54200         (get_group_info): Now returns bool and accepts struct group_info *,
54201         rather than returning a malloc'ed struct group_info *.
54202         All uses changed.  Check for overflow in internal size calculation.
54203
54204         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54205         rather than xmalloc/xrealloc.
54206         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54207         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54208         conformance bug: the old code used a pointer after freeing the
54209         storage that it addressed.
54210         * lib/hash.c (hash_initialize): Simplify the code by using
54211         xalloc_oversized rather than doing it by hand.
54212         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54213         the buffer preserved.  Use free and xmalloc instead.
54214         * lib/quotearg.c (quotearg_n_options): Likewise.
54215         Use a simpler test for size overflow.  Don't use xalloc_oversized
54216         because unsigned int might be wider than size_t (!); this suggests
54217         that we should switch from unsigned int to size_t for slot numbers.
54218
54219 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54220
54221         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54222         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54223         NetBSD kernels.  Requested by Richard Stallman.
54224
54225 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54226
54227         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54228         to allocate the returned structure.  Do not allocate a subarray,
54229         as x2nrealloc will do that.
54230         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54231         instead of xnrealloc.
54232         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54233
54234 2003-10-27  Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/stdbool_.h: Better support for BeOS.
54237
54238 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54239
54240         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54241         now uses inline.
54242
54243 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54244
54245         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54246         callers that want to do their own size-overflow checking.  Include
54247         <stdbool.h>, since xalloc_oversized returns bool.
54248         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54249         to use xalloc_oversized.
54250
54251         Add two functions x2realloc, x2nrealloc, for programs that grow
54252         arrays dynamically by doubling their sizes.
54253         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54254         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54255         New functions.
54256
54257         Port to C99 semantics for 'inline' of external functions.
54258         Bug reported by Bruno Haible.
54259         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54260         with the old contents of xnmalloc.
54261         (xnmalloc, xmalloc): Use it.
54262         (xnrealloc_inline): New static inline function,
54263         with the old contents of xnrealloc.
54264         (xnrealloc, xrealloc): Use it.
54265
54266         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54267         that.
54268
54269 2003-10-26  Karl Berry  <karl@gnu.org>
54270
54271         * config/srclist.txt (COPYING.DOC): no longer available from
54272         /gd/gnuorg; don't know where the ultimate source is.
54273
54274 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54275
54276         Fix several address-calculation bugs in the hash modules,
54277         plus some minor code cleanup.
54278
54279         * lib/hash.h: Include <stdbool.h>, for bool.
54280         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54281         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54282         hash_get_n_entries, hash_get_max_bucket_length,
54283         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54284         hash_rehash): Use size_t rather than unsigned.
54285         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54286         hash_get_n_buckets_used, hash_get_n_entries,
54287         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54288         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54289         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54290         Likewise.
54291         (SIZE_MAX): Define if not defined.
54292         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54293         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54294         hash_print):
54295         Use const * when possible.
54296         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54297         (check_tuning): Fix bug: if tuning parameters were very close to
54298         0 or 1, rounding errors could have caused subscript violations.
54299         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54300         (hash_initialize): Add 'fail:' label
54301         to free table and return NULL, and use it to simplify code.
54302         Use calloc rather than clearing the storage ourself.
54303         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54304         buffer size calculations.
54305         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54306         Include <stddef.h>, for size_t.
54307         * lib/hash-pjw.c (hash_pjw): Likewise.
54308         Switch to method described by Bruno Haible.
54309         Include <limits.h>, for CHAR_BIT.
54310         (SIZE_BITS): New macro.
54311
54312 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54313
54314         * m4/getline.m4 (AM_FUNC_GETLINE):
54315         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54316         hosts.  Problem reported by Derek Robert Price in
54317         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54318         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54319         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54320
54321 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54322
54323         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54324         ceiling the allocation at NMAX bytes rather than silently
54325         discarding input bytes before NMAX is reached.  This makes
54326         a difference only if NMAX exceeds SIZE_MAX / 2.
54327
54328         * lib/obstack.c: Merge from glibc.
54329         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54330         Add libc_hidden_def (_obstack_newchunk).
54331         (_obstack_free) [! defined _LIBC]: Remove.
54332         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54333         a clone of the function body.
54334         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54335         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54336
54337         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54338         glibc.
54339         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54340         arg to memcpy.
54341
54342         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54343         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54344         Don't use lvalue casts, as GCC plans to remove support for them
54345         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54346         was also present in the non-GCC version, indicating that this
54347         code had always been buggy and had never been widely used.
54348         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54349         Use the fast variant of each macro, rather than copying the
54350         definiens of the fast variant; that way, we'll be more likely to
54351         catch future bugs in the fast variants.
54352
54353 2003-10-20  Bruno Haible  <bruno@clisp.org>
54354
54355         * modules/wait-process: New file.
54356         * MODULES.html.sh (func_all_modules): Add wait-process.
54357
54358 2003-10-20  Bruno Haible  <bruno@clisp.org>
54359
54360         * m4/wait-process.m4: New file.
54361
54362 2003-10-20  Bruno Haible  <bruno@clisp.org>
54363
54364         * lib/wait-process.h: New file, from GNU gettext.
54365         * lib/wait-process.c: New file, from GNU gettext.
54366
54367 2003-10-19  Jim Meyering  <jim@meyering.net>
54368
54369         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54370         HPUX 10.20.
54371
54372 2003-10-18  Karl Berry  <karl@gnu.org>
54373
54374         * config/config.guess: update from config.
54375
54376 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54377
54378         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54379         (getgroups): First arg is int, not size_t.
54380         Don't let 'free' mangle errno.
54381
54382 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54383
54384         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54385
54386 2003-10-16  Karl Berry  <karl@gnu.org>
54387
54388         * config/config.{guess,sub}: update from config.
54389
54390 2003-10-16  Jim Meyering  <jim@meyering.net>
54391
54392         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54393         memcpy.
54394
54395 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54396
54397         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54398         (SIZE_MAX): Remove.
54399         (new_exclude, add_exclude_file): Initial size no longer needs to
54400         be a power of 2.
54401         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54402         our own address arithmetic overflow checking.
54403
54404         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54405         (fnmatch): Do not alloca more than 2000 wide characters;
54406         instead, use malloc for large buffers.
54407         Check for address arithmetic overflow, and return -1
54408         with errno set to ENOMEM in that case.
54409         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54410         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54411         instead, return -1.  Check for address arithmetic overflow.
54412
54413 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54414
54415         Handle invalid suffixes and overflow independently, so that
54416         callers can treat them independently as needed.  Fix some bugs in
54417         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54418         suffix for a human-readable blocksize.  The major caller-visible
54419         change is the addition of a new
54420         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54421         that both overflow and suffix chars were found.
54422
54423         * lib/human.c (humblock): Don't check separately for invalid suffix
54424         char; that is xstrtoumax's job (now that its bug is fixed).
54425         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54426         INTMAX_MAX]: New macros.
54427         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54428         TYPE_MAXIMUM): New macros.
54429         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54430         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54431         if overflow occurs, as it's what __strtol does and it's more useful
54432         in practice.
54433         (__xstrtol): If __strtol reports some error other than ERANGE,
54434         reflect it to the caller as LONGINT_INVALID.  If it reports
54435         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54436         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54437         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54438         value.
54439         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54440         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54441         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54442         [defined UINTMAX_MAX]: New macros.
54443
54444 2003-10-14  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54447
54448 2003-10-14  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/sig_atomic_t: New file, from GNU gettext.
54451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54452
54453 2003-10-14  Bruno Haible  <bruno@clisp.org>
54454
54455         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54456         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54457         Also use volatile where needed.
54458
54459 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54460
54461         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54462         Change maintainer from Bruno Haible to 'all'.
54463
54464 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54465
54466         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54467
54468 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54469
54470         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54471         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54472         and define in terms of the other primitives.
54473         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54474         (SIZE_MAX): Define if not already defined.
54475         (array_size_overflow): New function.
54476         (xalloc_die): Abort instead of exiting if 'error' returns.
54477         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54478         (xmalloc, xrealloc): Use them.
54479         (xcalloc): Check for address arithmetic overflow.
54480         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54481         a bit faster than strcpy.
54482
54483 2003-10-10  Simon Josefsson  <jas@extundo.com>
54484
54485         * modules/argp (Depends-on): Add restrict and strcase.
54486
54487 2003-10-10  Simon Josefsson  <jas@extundo.com>
54488
54489         * m4/argp.m4: Add AC_C_INLINE.
54490
54491 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54492
54493         Merge getpass from libc, plus a few fixes.
54494
54495         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54496         Include <stdbool.h>.
54497         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54498         __fsetlocking to empty.
54499         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54500         do include <bits/libc-lock.h>.
54501         Do not include <fcntl.h>; not needed.
54502         [_LIBC]: Include <wchar.h>.
54503         (NOTCANCEL_MODE): New macro.
54504         (flockfile, funlockfile) [_LIBC]: New macros.
54505         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54506         [!_LIBC]: New macros.
54507         (call_fclose): New function.
54508         (getpass): Use it.  Save tty stream separately; this simplifies the
54509         code and makes it more reliable if stdin happens to equal stdout.
54510         Invoke __fsetlocking on tty.
54511         Handle thread cancellation if needed.
54512         Namespace cleanup (use __tcgetattr, __getline).
54513         Use bool for Booleans.
54514         [USE_IN_LIBIO]: Handle wide streams.
54515         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54516         stream might go where.
54517
54518         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54519         doesn't have to include <stdio.h> before us.
54520         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54521         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54522         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54523         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54524         if not declared, so that we can use getpass.c code from libc without
54525         rewriting it.
54526         (flockfile, ftrylockfile, funlockfile): New macros.
54527
54528 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54529
54530         * modules/getpass: Depend on stdbool.
54531
54532 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54533
54534         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54535
54536 2003-10-07  Karl Berry  <karl@gnu.org>
54537
54538         * config/config.{guess,sub}: update from config.
54539
54540 2003-10-06  Jim Meyering  <jim@meyering.net>
54541             Bruno Haible  <bruno@clisp.org>
54542
54543         This lets translators provide better translations for the
54544         "Written by ..." part of --version output.
54545         * lib/version-etc.h: Include stdarg.h.
54546         (version_etc_copyright): Declare as readonly.
54547         (version_etc): Make this function variadic with a NULL-terminated list
54548         of author name strings.
54549         (version_etc_va): New declaration.
54550         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54551         (version_etc_copyright): Declare as readonly.
54552         (version_etc_va): New function. Provide a different translatable string
54553         for each possible number of authors < 10. Abbreviate when there are 10
54554         authors or more.
54555         (version_etc): Make this function variadic. Call version_etc_va.
54556         Suggestion from Gary V. Vaughan.
54557
54558         * lib/long-options.h (parse_long_options): Change prototype: the
54559         authors string is moved to the end and becomes variadic.
54560         * lib/long-options.c: Include stdarg.h.
54561         (parse_long_options): Make this function variadic, too.
54562         Call version_etc_va, not version_etc.
54563
54564 2003-10-06  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/version-etc-2: Remove file.
54567         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54568
54569 2003-10-06  Bruno Haible  <bruno@clisp.org>
54570
54571         * modules/fatal-signal: New file.
54572         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54573
54574 2003-10-06  Bruno Haible  <bruno@clisp.org>
54575
54576         * m4/fatal-signal.m4: New file.
54577         * m4/signalblocking.m4: New file, from GNU gettext.
54578
54579 2003-10-06  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/version-etc-2.h: Remove file.
54582         * lib/version-etc-2.c: Remove file.
54583
54584 2003-10-06  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/fatal-signal.h: New file, from GNU gettext.
54587         * lib/fatal-signal.c: New file, from GNU gettext.
54588
54589 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54590
54591         * README: Rework advice for preventing empty .o files.
54592         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54593         not <sys/types.h>.
54594
54595 2003-10-04  Karl Berry  <karl@gnu.org>
54596
54597         * lib/argp*: update from libc.
54598
54599 2003-10-04  Karl Berry  <karl@gnu.org>
54600
54601         * config/config.{guess,sub}: update from config.
54602
54603 2003-10-02  Bruno Haible  <bruno@clisp.org>
54604
54605         * modules/lchown (Include): Add lchown.h.
54606         * modules/time_r (Include): Use "..." syntax.
54607         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54608
54609 2003-10-01  Simon Josefsson  <jas@extundo.com>
54610
54611         * MODULES.html.sh (func_all_modules): Move gethostname from section
54612         'based on' to section 'lacking' POSIX:2001.
54613
54614 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54615
54616         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54617         to output mode on the same stream.
54618
54619 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54620
54621         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54622         Fix arg typo in previous patch.
54623
54624 2003-09-28  Jim Meyering  <jim@meyering.net>
54625
54626         * lib/error.c: Correct cpp indentation.
54627
54628 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54629
54630         * modules/free: New file.
54631
54632 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54633
54634         * m4/free.m4: New file.
54635
54636 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54637
54638         * lib/minmax.h (MIN, MAX)
54639         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54640         Omit the special code that used __typeof__, since we worry that
54641         it could be more trouble than it's worth.  See:
54642         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54643         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54644
54645         * lib/free.c: New file.
54646
54647 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54648
54649         Trivial fixes to Makefile.am parts of module listings.
54650         * modules/strstr: Append strstr.h to lib_SOURCES.
54651         * modules/strcase: Likewise, for strcase.h.
54652
54653 2003-09-27  Karl Berry  <karl@gnu.org>
54654
54655         * config/mkinstalldirs: update from automake.
54656
54657 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54658
54659         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54660         (error_tail): Do not loop, reallocating temporary buffer, since
54661         the output cannot contain more wide characters than the input
54662         contains bytes, the size must be big enough already.  This avoids
54663         one potential size overflow calculation.  Check for size overflow
54664         when calculating temporary buffer size.  Free temporary buffer
54665         when done, if it was allocated with malloc; this plugs a memory
54666         leak.  Remove casts from void * to pointers, that are no longer
54667         needed now that we're assuming C89 or better.
54668
54669         Merge error changes from glibc.
54670
54671         * lib/error.c, error.h: Update copyright notice header to match glibc.
54672         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54673         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54674         Disable cancellation while printing error.
54675         * lib/error.h: Prepend __ to parameter names.
54676
54677 2003-09-26  Jim Meyering  <jim@meyering.net>
54678
54679         * lib/error.c (error_tail): Move some declarations
54680         into inner scope where the local variables are used.
54681
54682 2003-09-26  Bruno Haible  <bruno@clisp.org>
54683
54684         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54685         stpncpy().
54686         Don't define stpncpy through config.h; it's now done through stpncpy.h.
54687
54688 2003-09-26  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/stpncpy.h (gnu_stpncpy): New declaration.
54691         (stpncpy): Define as alias for gnu_stpncpy.
54692         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54693
54694 2003-09-25  Simon Josefsson  <jas@extundo.com>
54695
54696         * lib/xgetdomainname.h: New file.
54697         * lib/xgetdomainname.c: New file.
54698
54699 2003-09-25  Simon Josefsson  <jas@extundo.com>
54700             Bruno Haible  <bruno@clisp.org>
54701
54702         * modules/getdomainname: New file.
54703         * modules/xgetdomainname: New file.
54704         * MODULES.html.sh (func_all_modules): Add getdomainname,
54705         xgetdomainname.
54706
54707 2003-09-25  Simon Josefsson  <jas@extundo.com>
54708             Bruno Haible  <bruno@clisp.org>
54709
54710         * m4/getdomainname.m4: New file.
54711
54712 2003-09-25  Simon Josefsson  <jas@extundo.com>
54713             Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/getdomainname.h: New file.
54716         * lib/getdomainname.c: New file.
54717
54718 2003-09-25  Karl Berry  <karl@gnu.org>
54719
54720         * lib/argp-fmtstream.c, argp-help.c: update from libc.
54721
54722 2003-09-25  Karl Berry  <karl@gnu.org>
54723
54724         * config/install-sh: update from automake.
54725
54726 2003-09-25  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/version-etc-2: New file, from modules/version-etc with
54729         modifications.
54730         * MODULES.html.sh (func_all_modules): Add version-etc-2.
54731
54732 2003-09-25  Bruno Haible  <bruno@clisp.org>
54733
54734         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54735         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54736
54737 2003-09-24  Simon Josefsson  <jas@extundo.com>
54738
54739         * modules/xgethostname: Add xgethostname.h.
54740
54741 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54742
54743         * lib/linebuffer.c (freebuffer): Don't free the argument, just
54744         the buffer associated with the argument.  Bug reported by
54745         Simon Josefsson.
54746
54747 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54748
54749         * README: Document assumptions that 'int' is at least 32 bits
54750         wide, that integer arithmetic is 2's complement without overflow,
54751         that there are no holes in integer values, that adding sizes of
54752         two nonoverlapping objects can't overflow, and that all-bits-zero
54753         yields scalar zero.  Fix spelling and capitalization typos.
54754
54755 2003-09-19  Karl Berry  <karl@gnu.org>
54756
54757         * lib/argp.h: update from libc.
54758
54759 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54760
54761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
54762         to avoid spurious warnings like "AC_RUN_IFELSE was called before
54763         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
54764
54765 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54766
54767         * gnulib-tool: Use "test -h", not "test -L", for portability
54768         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
54769         (tags_regexp): Remove, since \| doesn't conform to POSIX.
54770         (sed_extract_prog): Issue s commands one-by-one, rather than
54771         using \| in one s command.
54772
54773 2003-09-16  Paul Eggert  <eggert@twinsun.com>
54774
54775         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
54776         input error, instead of returning NULL the next time we are called
54777         (and therefore losing track of errno).
54778
54779 2003-09-16  Bruno Haible  <bruno@clisp.org>
54780
54781         * gnulib-tool (func_create_testdir): Warn about duplicated
54782         dependencies.
54783
54784 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54785
54786         * modules/argmatch, modules/fatal, modules/obstack,
54787         modules/xalloc, modules/xgethostname: Sort dependencies by
54788         importance, not alphabetically.
54789
54790 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54791
54792         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
54793         fails, so that the caller gets the proper errno.
54794
54795         * lib/readutmp.c (read_utmp): Likewise.
54796         Check for fstat error.  Close stream and free storage
54797         when failing.
54798
54799 2003-09-14  Karl Berry  <karl@gnu.org>
54800
54801         * config/srclist.txt (strdup.c): disable for c89 changes.
54802
54803 2003-09-14  Jim Meyering  <jim@meyering.net>
54804
54805         * lib/getloadavg.c: Correct cpp indentation.
54806         * lib/strdup.c: Likewise.
54807         * lib/vasnprintf.c: Likewise.
54808
54809 2003-09-14  Bruno Haible  <bruno@clisp.org>
54810
54811         * modules/fwriteerror: New file.
54812         * MODULES.html.sh (func_all_modules): Add fwriteerror.
54813
54814 2003-09-14  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/fwriteerror.h: New file.
54817         * lib/fwriteerror.c: New file.
54818
54819 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54820
54821         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
54822         modules/xgethostname, modules/xalloc: Depend on exit.
54823
54824 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54825
54826         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
54827
54828         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
54829         and AC_MINIX, too, so that their extensions are available.
54830
54831         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
54832         This macro has been superseded by gl_BACKUPFILE.
54833
54834         More patches to assume C89 or better.
54835
54836         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
54837
54838         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
54839         unconditionally.
54840         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
54841         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
54842         Include <string.h>, <stdlib.h> unconditionally.
54843         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
54844         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
54845         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
54846         headers or for string.h.
54847         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
54848         or strtoul.
54849
54850         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
54851         headers.
54852         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
54853         * m4/userspec.m4 (gl_USERSPEC): Likewise.
54854         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
54855         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
54856         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54857         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
54858         memcpy, memset.
54859         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
54860         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
54861         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
54862         strtol.
54863         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
54864         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
54865         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
54866         strtoul.
54867
54868 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54869
54870         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
54871         * lib/obstack.c [!defined _LIBC]: Likewise.
54872         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
54873         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
54874         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
54875
54876         More changes to assume C89 or better.
54877
54878         * lib/error.c (error_tail): Assume vprintf.
54879
54880         * lib/argmatch.c (getenv): Remove decl.
54881         * lib/progreloc.c (get_full_program_name): Define via prototype.
54882         * lib/setenv.c (clearenv): Likewise.
54883         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
54884         needed.
54885         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
54886         (malloc, memcpy): Remove decls.
54887         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
54888         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
54889         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54890         (memcpy): Remove macro.
54891         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
54892         (__P): Remove.  All uses removed.
54893         (PTR): Remove.  All uses changed to void *.
54894         (CHAR_BIT, NULL): Remove.
54895         (spaces, zeros, memset_space, memset_zero)
54896         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
54897         Remove.
54898         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
54899         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
54900         Define with prototype.
54901         Remove now-unnecessary prototype decl.
54902         (extra_args_spec): Assume ANSI C.  All uses changed.
54903         (extra_args_spec_iso): Remove.
54904         (my_strftime, emacs_strftimeu): Define via prototype.
54905         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
54906         unconditionally.
54907         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
54908         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
54909         (strtoul, strtol): Remove decls.
54910         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
54911         LONG_MAX): Remove.
54912         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54913         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
54914         (LOCALE_PARAM_PROTO): New macro.
54915         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
54916         (INTERNAL (strtol), strtol): Define with a prototype.
54917         (PARAMS): Remove.  All uses removed.
54918         * lib/tempname.c: Include <string.h> unconditionally.
54919         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
54920         * lib/xgethostname.c (main): Define with a prototype.
54921         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
54922         Include <stdlib.h> unconditionally.
54923         (calloc, malloc, realloc, free): Remove decls.
54924         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
54925         Include <stdlib.h> unconditionally.  Sort include file names.
54926         (strtod): Remove.
54927         (xstrtod): Define with a prototype.
54928         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
54929         (strtol, strtoul): Remove decls.
54930
54931 2003-09-11  Paul Eggert  <eggert@twinsun.com>
54932
54933         More patches to assume C89 or better.
54934         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
54935         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
54936         string.h, memchr, STDC_HEADERS.
54937
54938 2003-09-11  Paul Eggert  <eggert@twinsun.com>
54939
54940         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
54941         Include <stdlib.h>, <string.h> unconditionally.
54942         Remove now-unnecessary cast to char *.
54943         * lib/strnlen.c: Include <string.h> unconditionally.
54944         * lib/yesno.c (yesno): Define with a prototype.
54945
54946 2003-09-11  Bruno Haible  <bruno@clisp.org>
54947
54948         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
54949
54950 2003-09-10  Jim Meyering  <jim@meyering.net>
54951
54952         * lib/error.c: Correct indentation of cpp directives.
54953
54954 2003-09-10  Bruno Haible  <bruno@clisp.org>
54955
54956         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
54957         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
54958         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
54959         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
54960         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
54961         <stdlib.h> and <string.h> checks.
54962         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
54963         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
54964
54965 2003-09-10  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/strcspn.c: Include <string.h> unconditionally.
54968         * lib/strpbrk.c: Include <string.h> unconditionally.
54969         * lib/strstr.c: Include <string.h> unconditionally.
54970         * lib/unicodeio.c: Include <string.h> unconditionally.
54971         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
54972         * lib/unsetenv.c: Likewise.
54973         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
54974         * lib/yesno.c: Include <stdlib.h> unconditionally.
54975         (rpmatch): Add prototype.
54976
54977 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54978
54979         More patches to assume C89 or better.
54980         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
54981         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
54982         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
54983         or for string.h.
54984         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
54985         stdlib.h.
54986         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
54987         C headers.
54988         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
54989         string.h.
54990         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
54991         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
54992         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
54993         or for string.h.
54994         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
54995         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
54996         C headers.
54997         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
54998         memcpy.
54999         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55000         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55001         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55002         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55003         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55004         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55005         string.h, free.
55006         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55007         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55008         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55009         C headers, or for string.h.
55010         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55011         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55012         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55013         headers, memory.h, stdlib.h, string.h, strings.h.
55014         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55015         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55016         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55017         strchr.
55018         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55019         headers, memory.h, string.h.
55020         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55021         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55022         free.
55023         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55024         headers.
55025         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55026         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55027         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55028         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55029         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55030
55031 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55032
55033         More K&R removal.
55034
55035         * lib/acosl.c (main): Use a prototype.
55036         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55037         tanl.c: Likewise.
55038
55039         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55040
55041         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55042         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55043         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55044         with a prototype.
55045         * lib/getopt.c (const): Remove macro.
55046         Include <string.h> unconditionally.
55047         (my_index): Remove; all uses changed to strchr.
55048         (strlen): Remove decl.
55049         (exchange): Remove forward decl; no longer needed.
55050         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55051         Define with prototype.
55052         * lib/getopt1.c (const): Remove macro.
55053         (getopt_long, getopt_long_only, main): Define with prototype.
55054
55055         * lib/getugroups.c: Include <string.h> unconditionally.
55056
55057         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55058         (getusershell, setusershell, endusershell, readname, main):
55059         Define with prototypes.
55060
55061         * lib/group-member.c: Include group-member.h first.
55062         Include <stdlib.h> unconditionally.
55063
55064         * lib/hard-locale.c: Include hard-locale.h first.
55065         Include <stdlib.h>, <string.h> unconditionally.
55066
55067         * lib/hash.c (free, malloc): Remove decls.
55068         Include <stdlib.h> unconditionally.
55069
55070         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55071         (getenv): Do not declare.
55072
55073         * lib/idcache.c: Include <string.h> unconditionally.
55074
55075         * lib/long-options.c: Include long-options.h first, to test interface.
55076         Include <stdlib.h> unconditionally.
55077
55078         * lib/makepath.c: Include makepath.h first, to test interface.
55079         Include <stdlib.h> and <string.h> unconditionally.
55080
55081         * lib/linebuffer.c: Include <stdlib.h>.
55082         (free): Remove decl.
55083
55084         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55085         stddef.h. rpl_malloc returns void *, not char *.
55086         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55087         prototype.
55088
55089         * lib/md5.h: Include <limits.h> unconditionally.
55090         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55091         (__P): Remove; all uses removed.
55092         * lib/md5.c: Include "md5.h" first.
55093         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55094         md5_buffer, md5_process_bytes, md5_process_block):
55095         Define with prototypes.
55096         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55097         * lib/sha.c: Include "sha.h" first.
55098         Include <stdlib.h>, <string.h> unconditionally.
55099
55100         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55101         * lib/memcmp.c (__ptr_t): Likewise.
55102         * lib/memrchr.c (__ptr_t): Likewise.
55103         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55104         Include <string.h> unconditionally.
55105         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55106         * lib/memchr.c: Include <stdlib.h> unconditionally.
55107         * lib/memchr.c (LONG_MAX): Remove.
55108         * lib/memrchr.c (LONG_MAX): Likewise.
55109         * lib/memchr.c (__memchr): Define via a prototype.
55110         * lib/memrchr.c (__memrchr): Likewise.
55111         * lib/memcmp.c (__P): Remove, and remove all uses.
55112         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55113         Remove forward decls; no longer needed.
55114         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55115         Use types required by C89 in prototype.
55116
55117         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55118         * lib/savedir.c: Likewise.
55119         * lib/mkdir.c (free): Remove decl.
55120         * lib/rmdir.c (rmdir): Define with a prototype.
55121         * lib/savedir.c: Include savedir.h first, to test interface.
55122
55123         * lib/mktime.c (STDC_HEADERS): Remove.
55124         Include <stdlib.h>, <string.h> unconditionally.
55125
55126         * lib/modechange.c: Include <stdlib.h> unconditionally.
55127         (malloc): Remove decl.
55128
55129         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55130         (free): Remove decl.
55131
55132         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55133         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55134         (This type really should be intptr_t, but that's a C99ism.)
55135         (_obstack_memcpy): Remove: all uses changed to memcpy.
55136         Include <string.h> unconditionally.
55137         (struct obstack): Assume __STDC__ for types of members
55138         chunkfun, freefun, extra_arg.
55139         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55140         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55141         obstack_begin, obstack_specify_allocation,
55142         obstack_specify_allocation_with_arg, obstack_chunkfun,
55143         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55144         Remove unprototyped decls and the macros that use them.
55145         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55146         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55147         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55148         (defined __STDC__ && __STDC__)]:
55149         Remove nonprototyped code.
55150         Include <stdlib.h> unconditionally.
55151         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55152         _obstack_allocated_p, _obstack_free, obstack_free,
55153         _obstack_memory_used, print_and_abort):
55154         Define using prototypes.
55155         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55156         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55157         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55158         obstack_next_free, obstack_object_size, obstack_room) [0]:
55159         Remove unused, unprototyped code.
55160
55161         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55162
55163         * lib/physmem.c (physmem_total, physmem_available, main): Define
55164         with prototypes.
55165
55166         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55167         (main): Define with a prototype.
55168
55169         * lib/posixver.c (getenv): Remove decl.
55170
55171         * lib/putenv.c (malloc): Returns void *, not char *.
55172         Include <string.h> unconditionally.
55173         (strchr, memcpy, NULL): Do not define.
55174
55175         * lib/readtokens.c: Include readtokens.h first, to test interface.
55176         Include <stdlib.h>, <string.h> unconditionally.
55177         (init_tokenbuffer): Define with a prototype.
55178
55179         * lib/regex.c (PARAMS): Remove.  All uses removed.
55180         All uses of _RE_ARGS removed, too.
55181         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55182         unconditionally.
55183         (bzero): Assume memset exists.
55184         (memcmp, memcpy, NULL): Remove.
55185         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55186         char, or assignments to local vars of type signed char.
55187         (init_syntax_once, PREFIX(extract_number_and_incr),
55188         PREFIX(print_partial_compiled_pattern),
55189         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55190         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55191         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55192         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55193         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55194         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55195         wcs_compile_range, byte_compile_range, truncate_wchar,
55196         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55197         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55198         count_mbs_length, wcs_re_match_2_internal,
55199         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55200         PREFIX(alt_match_null_string_p),
55201         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55202         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55203         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55204         now-unnecessary declaration, if any.
55205         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55206         regcomp, regexec):
55207         Remove now-unnecessary casts among pointer types.
55208         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55209
55210         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55211         (free): Remove decl.
55212
55213         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55214
55215         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55216         (free): Remove decl.
55217
55218         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55219         * lib/xgetcwd.c: Likewise.
55220
55221         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55222         (free): Remove decl.
55223
55224         * lib/strchrnul.c (strchrnul): Define with a prototype.
55225         Fix bug: c_in was not converted to char before searching.
55226
55227         The following changes are not K&R related:
55228
55229         * lib/group-member.h: Include <sys/types.h>, so that this file is
55230         self-contained.
55231         * lib/makepath.h: Likewise.
55232
55233         * lib/getusershell.c (readname, default_index, line_size, readname):
55234         Use size_t, not int, for sizes.
55235         (readname): If the size overflows, report an error instead of
55236         looping forever.
55237
55238 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55239
55240         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55241         libc.
55242
55243 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55244
55245         * README: New section: portability guidelines.
55246
55247 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55248
55249         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55250         C89 spec.
55251
55252 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55253
55254         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55255
55256 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55257
55258         Assume C89 or better; remove K&R cruft.
55259         A few of these changes were first proposed by Derek Robert Price
55260         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55261
55262         * lib/addext.c: Include <string.h> unconditionally.
55263         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55264         Don't declare getenv or malloc.
55265
55266         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55267         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55268         (NULL): Remove.
55269         (find_stack_direction, alloca): Use prototypes.
55270
55271         * lib/atexit.c (atexit): Define using a prototype.
55272
55273         * lib/basename.c, dirname.c, stripslash.c:
55274         Include <string.h> unconditionally.
55275
55276         * lib/bcopy.c: Include <stddef.h>.
55277         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55278
55279         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55280
55281         * lib/error.h (error, error_at_line, error_print_progname)
55282         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55283         * lib/error.c: Include error.h first, to check interface.
55284         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55285         (VA_START): Remove; all uses changeed to va_start.
55286         (exit, strerror): Remove decls.
55287         (error_print_progname): Prototype uncondionally.
55288         Don't include <errno.h>; no longer needed.
55289         (private_strerror): Remove.
55290         (error_tail): Always define.
55291         (error, error_at_line): Assume C89 or better; always use prototypes.
55292         * lib/fatal.c: Include "fatal.h" first, to test interface.
55293         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55294         (VA_START): Remove; all uses changed to va_start.
55295         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55296         this case.
55297         (exit): Remove decl.
55298         (fatal): Prototype unconditionally.  Assume va_start works.
55299         Abort at end, to pacify gcc.
55300
55301         * lib/euidaccess.c (main): Define with a prototype.
55302
55303         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55304
55305         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55306
55307         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55308         prototypes.
55309         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55310         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55311         (getenv): Remove decl.
55312         (fnmatch): Define using a prototype.
55313         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55314         (FCT): Define using a prototype.
55315
55316         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55317
55318         * lib/gethostname.c: Include <stddef.h>.
55319         (gethostname): Define with prototype.  Length is size_t, not int.
55320
55321 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55322
55323         Assume C89 or better; remove K&R cruft.
55324         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55325         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55326         string.h, getenv, malloc.
55327         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55328         headers.
55329         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55330         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55331         do not check for strerror.
55332         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55333         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55334         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55335         do not check for doprnt or vprintf.
55336         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55337         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55338
55339 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55340
55341         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55342         getversion.c should have been removed then, but was accidentally
55343         preserved.
55344
55345         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55346         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55347
55348 2003-09-08  Karl Berry  <karl@gnu.org>
55349
55350         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55351                 config, forget about prep.
55352
55353         * config/depcomp, missing: update from automake.
55354
55355 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55356
55357         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55359
55360 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55361
55362         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55363         copy_tm_result.  Bug reported by Simon Josefsson in
55364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55365
55366 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55367
55368         * m4/time_r.m4: New file.
55369         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55370         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55371         is. Check for timegm declaration.
55372         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55373         Do not check for gmtime_r.
55374         Replace mktime if __mktime_internal does not exist and if mktime
55375         hasn't been replaced already.
55376
55377 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55378
55379         * lib/time_r.c, lib/time_r.h: New files.
55380
55381         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55382         __localtime_r.
55383         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55384         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55385
55386         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55387         __gmtime_r.
55388         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55389         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55390         Include <time_r.h>.
55391
55392         * lib/timegm.c: Switch to glibc implementation, with the following
55393         changes:
55394         [defined HAVE_CONFIG_H]: Include <config.h>.
55395         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55396         (__mktime_internal) [!defined _LIBC]: New decl.
55397         (__gmtime_r) [!defined _LIBC]: New macro and function.
55398         (timegm): Use a prototype, since gnulib assumes C89.
55399         Do not bother declaring tmp to be const, as it's not really usefu.
55400         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55401         (timegm): Declare only if HAVE_DECL_TIMEGM.
55402
55403 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55404
55405         * MODULES.html.sh (func_all_modules): Add time_r.
55406         * modules/time_r: New file.
55407         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55408         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55409
55410 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55411
55412         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55413         Bug reported by Lute Kamstra in
55414         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55415
55416         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55417         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55418         course with correspondingly smaller numbers for tomorrow and
55419         yesterday.  From Tadayoshi Funaba.  Originally installed into
55420         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55421         coreutils merge?).
55422
55423 2003-08-31  Simon Josefsson  <jas@extundo.com>
55424
55425         * modules/timegm: New file.
55426         * MODULES.html.sh (func_all_modules): Add timegm.
55427
55428 2003-08-31  Simon Josefsson  <jas@extundo.com>
55429
55430         * m4/timegm.m4: New file.
55431
55432 2003-08-31  Simon Josefsson  <jas@extundo.com>
55433
55434         * lib/timegm.h: New file.
55435         * lib/timegm.c: New file.  Based on
55436         wget-1.8.2/src/http.c:mktime_from_utc.
55437
55438 2003-08-31  Karl Berry  <karl@gnu.org>
55439
55440         * lib/argp.h: update from libc.
55441
55442 2003-08-28  Bruno Haible  <bruno@clisp.org>
55443
55444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55445         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55446         followed by '#define fnmatch fnmatch_posix' gives an error.
55447
55448 2003-08-28  Bruno Haible  <bruno@clisp.org>
55449
55450         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55451         warning on QNX, which defines O_BINARY to 000000.
55452
55453 2003-08-27  Jim Meyering  <jim@meyering.net>
55454
55455         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55456         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55457         would fail after 32.  Reported by Danny Levinson.  Details here:
55458         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55459
55460 2003-08-24  Bruno Haible  <bruno@clisp.org>
55461
55462         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55463         MSVC7 <stdio.h> is included later.
55464
55465 2003-08-22  Simon Josefsson  <jas@extundo.com>
55466
55467         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55468
55469 2003-08-20  Karl Berry  <karl@gnu.org>
55470
55471         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55472
55473 2003-08-20  Bruno Haible  <bruno@clisp.org>
55474
55475         * modules/progname: New file.
55476         * MODULES.html.sh (func_all_modules): Add progname.
55477
55478 2003-08-20  Bruno Haible  <bruno@clisp.org>
55479
55480         * lib/progname.h: New file, from GNU gettext.
55481         * lib/progname.c: New file, from GNU gettext.
55482         * lib/progreloc.c: New file, from GNU gettext.
55483
55484 2003-08-19  Jim Meyering  <jim@meyering.net>
55485
55486         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55487         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55488
55489 2003-08-19  Bruno Haible  <bruno@clisp.org>
55490
55491         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55492         more.
55493
55494 2003-08-19  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/xstrdup.c: Assume <string.h> exists.
55497
55498 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55499
55500         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55501         in makefile rules.
55502
55503 2003-08-18  Jim Meyering  <jim@meyering.net>
55504
55505         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55506         * m4/lib-ld.m4: Likewise.
55507
55508 2003-08-18  Jim Meyering  <jim@meyering.net>
55509
55510         * lib/setenv.h: Indent nested cpp directive.
55511         * lib/vasnprintf.c: Remove trailing blanks.
55512
55513 2003-08-17  Simon Josefsson  <jas@extundo.com>
55514
55515         * modules/xstrndup: New file.
55516         * MODULES.html.sh (func_all_modules): Add xstrndup.
55517
55518 2003-08-17  Simon Josefsson  <jas@extundo.com>
55519
55520         * modules/argp: Fix autoconf macro name. Add more dependencies.
55521
55522 2003-08-17  Simon Josefsson  <jas@extundo.com>
55523
55524         * m4/xstrndup.m4: New file.
55525
55526 2003-08-17  Simon Josefsson  <jas@extundo.com>
55527
55528         * m4/argp.m4: New file.
55529
55530 2003-08-17  Simon Josefsson  <jas@extundo.com>
55531             Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/xstrndup.h: New file.
55534         * lib/xstrndup.c: New file.
55535
55536 2003-08-17  Bruno Haible  <bruno@clisp.org>
55537
55538         * modules/strndup (Files, Include): Add lib/strndup.h.
55539
55540 2003-08-17  Bruno Haible  <bruno@clisp.org>
55541
55542         * modules/euidaccess (Files): Add lib/euidaccess.h.
55543
55544 2003-08-17  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/strndup.h: New file.
55547
55548 2003-08-17  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55551         like AC_GNU_SOURCE.
55552         * modules/extensions (configure.ac): Comment out the invocation of
55553         gl_USE_SYSTEM_EXTENSIONS.
55554
55555 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55556
55557         Merges from coreutils, etc.
55558         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55559         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55560         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55561         fixing a typo.
55562         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55563         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55564
55565 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55566
55567         Document merge from coreutils.
55568         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55569         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55570         * modules/utime: Add m4/utimes-null.m4.
55571
55572 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55573
55574         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55575         space, undoing this 2003-08-12 change:
55576         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55577
55578 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55579
55580         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55581         strtoul.c from libc, undoing this 2003-08-12 change:
55582         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55583
55584 2003-08-16  Jim Meyering  <jim@meyering.net>
55585
55586         Merges from coreutils.
55587         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55588         prefix.  Adjust cache variables similarly.  Create 500 rather than
55589         just 300 files, to exercise bug on Darwin6.5, too.
55590         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55591         $missing_dir.
55592         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55593         AM_SYS_POSIX_TERMIOS.
55594         Reported by mkc@mathdogs.com.
55595         Also change use of $am_cv_sys_posix_termios
55596         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55597         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55598         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55599         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55600         in /proc/mounts until it finds one with matching device number.  This
55601         is unnecessary when the FILE argument *is* a mount point.  No stat call
55602         is necessary in that case.  So, disable the statvfs-testing code on
55603         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55604         as RedHat bug# 84846.
55605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55606         to 1MB, so as not to render systems with no stack size limit (e.g.,
55607         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55608         Include <unistd.h>.  On some systems,
55609         it is required for the definition of _SC_PAGESIZE.
55610
55611 2003-08-16  Jim Meyering  <jim@meyering.net>
55612
55613         Merge from coreutils.
55614         * lib/xstrtoimax.c: #else #if -> #elif.
55615         * lib/xstrtoumax.c: Likewise.
55616
55617 2003-08-16  Jim Meyering  <jim@meyering.net>
55618
55619         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55620         * m4/utimes.m4: Removed.
55621         * m4/utimes-null.m4: Renamed from utimes.m4.
55622
55623         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55624         to 1MB, so as not to render systems with no stack size limit (e.g.,
55625         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55626         Include <unistd.h>.  On some systems,
55627         it is required for the definition of _SC_PAGESIZE.
55628
55629 2003-08-16  Jim Meyering  <jim@meyering.net>
55630         and Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         Merges from coreutils, etc.
55633
55634         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55635         using the latest version from cvs.  This avoids problems with #line
55636         directives using a vendor (Sun) compiler.
55637         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55638         Don't set GETGROUPS_LIB here; now it's
55639         done via getgroups.m4's wrapper function.
55640         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55641         rather than just in sh-util/configure.in, so that the
55642         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55643         same.
55644         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55645         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55646         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55647         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55648         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55649         Remove code that is now done by the newly-required macros.
55650         Append $(EXEEXT) to DF_PROG.
55651         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55652         Do not invoke or require the following here,
55653         since prereq.m4 or some gnulib .m4 now does this for us:
55654         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55655         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55656         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55657         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55658         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55659         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55660         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55661         AC_FUNC_OBSTACK.
55662         Do not replace the following functions, as this is now the job
55663         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55664         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55665         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55666         atexit getpass, strdup, getpagesize.
55667         Replace 'raise'.
55668         Do not check for the following functions, as this is now the job
55669         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55670         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55671         setregid.
55672         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55673         Check for sys/sysctl.h.
55674         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55675         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55676         of checking for ssize_t ourselves.
55677
55678         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55679         Require every macro that gnulib/modules/* suggests for us.
55680         (jm_PREREQ_ADDEXT): New macro.
55681         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55682         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55683
55684         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55685         (gl_PHYSMEM): Use it.
55686         Also check for `table' function.
55687         Check for new headers and functions.
55688         Add check for sys/sysmp.h.
55689         With suggestions from Kaveh Ghazi.
55690         Ignore headers that are present but cannot be compiled.  This
55691         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55692         C 5.4.
55693
55694 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55695
55696         Document merge from coreutils.
55697         * modules/userspec: Depend on posixver.
55698         * modules/strftime: Depend on tzset.
55699
55700 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55701
55702         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55703         rather than tab, after '#' in shell-script copyright notices.
55704         Suggested by Bruno Haible.
55705
55706 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55707
55708         * config/srclist-update: Use three spaces, rather than tab, after '#'
55709         in shell-script copyright notices.  Suggested by Bruno Haible.
55710         Remove unnecessary parenthesization in regular expression.
55711
55712 2003-08-15  Jim Meyering  <jim@meyering.net>
55713
55714         Merge from coreutils.
55715         * lib/xgethostname.c: Include <stdlib.h>.
55716         (xghostname): Don't exit for anything other than memory-related
55717         failure; just return NULL.
55718         * lib/userspec.c: Include "posixver.h".
55719         (parse_user_spec): Accept `.' as a separator only
55720         in pre-POSIX-200112 mode.
55721         * lib/strtoimax.c: Use #elif rather than #else #if.
55722         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55723         Remove function, now that we can rely on a working tzset function.
55724         [!_LIBC]: Ensure that the required autoconf test has been run.
55725         [!defined _NL_CURRENT && HAVE_STRFTIME]:
55726         Use underlying_strftime for %r.
55727         * lib/sha.c: Merge in some clean-up and optimization changes from
55728         glibc.
55729         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55730         Ensure that it is a multiple of 64.
55731         Rearrange loop exit tests so as to avoid performing an
55732         additional fread after encountering an error or EOF.
55733         * lib/realloc.c: Update copyright date.
55734
55735 2003-08-15  Jim Meyering  <jim@meyering.net>
55736         and Paul Eggert  <eggert@twinsun.com>
55737
55738         Merge from coreutils.
55739         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55740         member but strut utmpx does not.  Needed for AIX 4.3.3.
55741         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55742
55743 2003-08-15  Jim Meyering  <jim@meyering.net>
55744         and Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         Merges from coreutils, etc.
55747         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55748         Require gl_FUNC_TZSET_CLOBBER.
55749         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55750         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55751         members.
55752
55753 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55754
55755         Help the merge from coreutils.
55756         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
55757         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
55758         * m4/tzset.m4: Use it too.
55759
55760 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55761
55762         * modules/tzset: New file.
55763
55764 2003-08-14  Jim Meyering  <jim@meyering.net>
55765
55766         Merges from coreutils.
55767         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
55768         variable names, rather than @FNMATCH_H@.
55769         * modules/alloca: Likewise for $(ALLOCA_H).
55770
55771         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
55772         the three copies of the literal target, `fnmatch.h'.
55773         * modules/alloca (alloca.h): Likewise.
55774
55775 2003-08-14  Jim Meyering  <jim@meyering.net>
55776
55777         Merge from coreutils.
55778         * m4/tzset.m4: New file.
55779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
55780         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
55781         otherwise, AIX 5.1 systems would end up using the latter.
55782         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
55783         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
55784         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
55785         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
55786
55787 2003-08-14  Jim Meyering  <jim@meyering.net>
55788
55789         Merge from coreutils.
55790         * lib/obstack.h: Whitespace changes.
55791         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
55792         and xcalloc return values.
55793         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
55794         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
55795         hang on OSF/1 5.1 for DIR on both local and remote file systems.
55796         Reported by (and fix confirmed by) Nelson H. F. Beebe.
55797         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55798         error from mntctl.
55799         Use mntctl's return value to drive the entry-processing loop, since
55800         we can't rely on the value of the vmt_length member in the last
55801         entry.  On some systems doing so could result in exhausting
55802         virtual memory.  Based in part on a patch from Mike Jetzer.
55803
55804 2003-08-14  Jim Meyering  <jim@meyering.net>
55805         and Paul Eggert  <eggert@twinsun.com>
55806
55807         Merges from coreutils, plus other fixes.
55808         * lib/physmem.c: Merge in portability changes from gcc/libiberty
55809         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
55810         for credits and details.  Thanks to Kaveh Ghazi for helping
55811         to keep these files in sync.
55812         (ARRAY_SIZE): Define it.
55813         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
55814         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
55815         (memcasecmp): Don't assume size_t fits in unsigned int.
55816         Remove casts and duplicate code.
55817         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
55818         (memcpy): Remove definition.
55819         Merge in some clean-up and optimization changes from glibc.
55820         [BLOCKSIZE]: Move definition to top of file.
55821         Ensure that it is a multiple of 64.
55822         Rearrange loop exit tests so as to avoid performing an
55823         additional fread after encountering an error or EOF.
55824         * lib/md5.h (md5_uintptr): Define.
55825         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
55826         return to the initial working directory.  Preserve errno
55827         for caller.
55828         * lib/idcache.c: Include "xalloc.h".
55829         (xmalloc, xrealloc): Remove decls.
55830         (getuser): Remove casts no longer required in C89.
55831         * lib/human.c: Include stdio.h, for sprintf.
55832         * lib/group-member.c: Include "xalloc.h".
55833         (xmalloc, xrealloc): Remove decls.
55834         (get_group_info): Remove casts no longer required in C89.
55835         * lib/getusershell.c (readname): Remove casts no longer required in
55836         C89.
55837         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
55838         * lib/getline.c: Whitespace fix, from coreutils.
55839
55840 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55841
55842         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
55843         Check for isascii.
55844
55845         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55846         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55847         Undo previous (whitespace-only) change.
55848
55849 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55850
55851         * lib/exclude.c: Include <ctype.h>
55852         (IN_CTYPE_DOMAIN): New macro.
55853         (is_space): New fn.
55854         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
55855         and empty lines.
55856
55857         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55858         Undo previous (whitespace-only) change.
55859
55860 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55861
55862         * config/srclist-update: Change update back to the old behavior,
55863         leaving whitespace alone.  Use one 'sed' command rather than a
55864         pipeline.
55865         (fixlicense): Now a variable, not a function.
55866         (remove_trailing_blanks): Remove.
55867         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
55868         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55869         Undo previous (whitespace-only) change.
55870
55871 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55872
55873         Merge from coreutils.
55874         * modules/euidaccess: Add lib_SOURCES, include for new
55875         file euidaccess.h
55876
55877 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55878
55879         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55880         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55881         Normalize leading white space and remove trailing white space.
55882
55883         Merge from coreutils
55884         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
55885
55886         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
55887         0.12.1.  These files are now being upgraded automatically by
55888         ../config/srclist-update.
55889
55890 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55891
55892         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55893         Normalize leading white space and remove trailing white space.
55894         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
55895         notice, as per ../config/srclist-update.
55896
55897         Merge from coreutils.
55898         * lib/euidaccess.h: New file.
55899         * lib/euidaccess.c: Include it.
55900         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
55901         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
55902         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
55903
55904 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55905
55906         * config/srclist-update: Add copyright notice.
55907         (remove_id_lines, remove_trailing_blanks): New constants.
55908         (fixfile): Use them to normalize spacing a bit in copied files.
55909         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55910         Normalize leading white space and remove trailing white space.
55911
55912         * config/texinfo.tex: Sync with texinfo.
55913
55914         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
55915         strtoul.c from libc, to merge coreutils whitespace changes.
55916
55917         * config/srclist.txt: Get the following m4 files from gettext:
55918         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
55919         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
55920         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
55921         wint_t.m4.
55922
55923 2003-08-12  Karl Berry  <karl@gnu.org>
55924
55925         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
55926         been made.
55927
55928 2003-08-11  Paul Eggert  <eggert@twinsun.com>
55929
55930         * modules/gnu-source, m4/gnu-source.m4:
55931         Remove; we're assuming Autoconf 2.54 or later now.
55932         Suggested by Bruno Haible.
55933         * MODULES.html.sh (func_all_modules): Remove gnu-source.
55934
55935 2003-08-11  Bruno Haible  <bruno@clisp.org>
55936
55937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
55938
55939 2003-08-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
55942         (vasnprintf): Use it instead of wcslen.
55943
55944 2003-08-11  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
55947         value to ensure that _Bool promotes to int. Use #define for _Bool when
55948         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
55949
55950 2003-08-10  Karl Berry  <karl@gnu.org>
55951
55952         * lib/regex.h: update from libc (whitespace fix).
55953
55954 2003-08-09  Paul Eggert  <eggert@twinsun.com>
55955
55956         Merge some files from coreutils.  These changes were
55957         originally made by Jim Meyering.
55958         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
55959         many older Unixes require this.
55960         * lib/alloca.c (alloca): Remove cast to argument of free;
55961         no longer needed in C89.
55962         * lib/alloca_.h, regex.h: Fix white space to match
55963         what GNU indent does.
55964
55965 2003-08-09  Paul Eggert  <eggert@twinsun.com>
55966
55967         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
55968         apparently Emacs's Unicode mode got confused before my 2003-08-05
55969         checkin.
55970
55971 2003-08-08  Paul Eggert  <eggert@twinsun.com>
55972
55973         * m4/extensions.m4: New file.
55974         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
55975         Require gl_USE_SYSTEM_EXTENSIONS.
55976         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
55977         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
55978
55979 2003-08-08  Paul Eggert  <eggert@twinsun.com>
55980
55981         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
55982         * modules/extensions, modules/gnu-source: New files.
55983         * modules/timespec, modules/unlocked-io: Depend on extensions.
55984
55985 2003-08-07  Paul Eggert  <eggert@twinsun.com>
55986
55987         * modules/restrict: New file.
55988         * MODULES.html.sh (func_all_modules): Add restrict.
55989         * modules/regex: Depend on restrict.
55990
55991 2003-08-07  Paul Eggert  <eggert@twinsun.com>
55992
55993         * m4/restrict.m4: New file.
55994         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
55995
55996 2003-08-07  Bruno Haible  <bruno@clisp.org>
55997
55998         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
55999         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56000
56001 2003-08-07  Bruno Haible  <bruno@clisp.org>
56002
56003         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56004         makes the module 'getndelim2' compatible with the module 'getline'.
56005
56006 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56007
56008         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56009         byte with "\201" to avoid glitches when editing that source file
56010         with multi-gnome-terminal.
56011
56012 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56013
56014         * lib/bumpalloc.h: Remove.
56015
56016 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56017
56018         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56019         * modules/bumpalloc: Remove.
56020
56021 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56022
56023         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56024         GNU coding style.
56025
56026         Merge from coreutils.
56027         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56028         1. From glibc.
56029         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56030         from Karl Berry, implemented by Jim Meyering.
56031         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56032         from Dmitry V. Levin.
56033         Remove anachronistic cast of xrealloc.
56034         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56035         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56036         type. Otherwise, it wouldn't compile with at least /bin/cc on
56037         ymp-cray-unicos9.0.2.X.
56038         Combine two mostly-identical uses of alloca into one.
56039         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56040
56041 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56042
56043         [From Emacs.]
56044
56045         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56046         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56047         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56048         obsolete NLIST_NAME_UNION.
56049         [__GNU__]: Undef BSD and FSCALE.
56050         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56051
56052 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56053
56054         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56055         an enum type, so that it's guaranteed to promote to int.  See:
56056         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56057
56058 2003-08-03  Karl Berry  <karl@gnu.org>
56059
56060         * config/depcomp: update from automake.
56061
56062 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56063
56064         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56065         (strerror): Don't assume that a printable int fits in 14 bytes.
56066
56067 2003-07-31  Bruno Haible  <bruno@clisp.org>
56068
56069         * modules/getpass-gnu: New file.
56070         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56071
56072 2003-07-31  Bruno Haible  <bruno@clisp.org>
56073
56074         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56075
56076 2003-07-24  Karl Berry  <karl@gnu.org>
56077
56078         * config/missing: update from automake.
56079
56080 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56081             Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56084         * lib/getline.c (getline, getdelim): Likewise.
56085         Remove _GNU_SOURCE define; now it's defined in config.h through
56086         m4/getline.m4.
56087
56088 2003-07-23  Karl Berry  <karl@gnu.org>
56089
56090         * config/config.sub: update from prep.
56091
56092 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56093
56094         * modules/xalloc (Depends-on): Add exitfail.
56095         * modules/xmemcoll: Likewise.
56096
56097 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56098
56099         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56100         over-parenthesization in macros.
56101
56102         Sync with coreutils.
56103
56104         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56105         required by C99.
56106
56107         Use `exit_failure' for xalloc and xmemcoll instead of their own
56108         private exit-failure variables.
56109         * lib/xalloc.h (xalloc_exit_failure): Remove.
56110         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56111         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56112         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56113         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56114         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56115
56116 2003-07-20  Jim Meyering  <jim@meyering.net>
56117
56118         * modules/closeout (Depends-on): Add exitfail.
56119         Suggestion from Bruno Haible.
56120
56121 2003-07-19  Karl Berry  <karl@gnu.org>
56122
56123         * config/config.sub: update from prep.
56124
56125 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56126
56127         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56128         Remove.
56129         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56130         to test that it can stand by itself.  Include "exitfail.h".
56131         Clients should set exit_failure instead.
56132         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56133
56134 2003-07-18  Bruno Haible  <bruno@clisp.org>
56135
56136         * modules/getndelim2: New file.
56137         * modules/getline: Share files with module getndelim2.
56138         * modules/getnline: Depend on getndelim2 instead of sharing files with
56139         it. Add getnline.c to lib_SOURCES.
56140         * MODULES.html.sh (func_all_modules): Add getndelim2.
56141
56142 2003-07-18  Bruno Haible  <bruno@clisp.org>
56143
56144         * m4/getndelim2.m4: New file.
56145         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56146         invoke gl_PREREQ_GETNDELIM2.
56147         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56148         gl_PREREQ_GETNDELIM2.
56149         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56150         gl_GETNDELIM2.
56151
56152 2003-07-18  Bruno Haible  <bruno@clisp.org>
56153
56154         * lib/getndelim2.h: New file.
56155         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56156         getndelim2.h.
56157         (getndelim2): Make non-static. Change return type to ssize_t.
56158         * lib/getline.h: Change argument names.
56159         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56160         * lib/getnline.c: Include getndelim2.h.
56161
56162 2003-07-18  Andreas Schwab  <schwab@suse.de>
56163
56164         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56165
56166 2003-07-17  Karl Berry  <karl@gnu.org>
56167
56168         * config/config.sub: update from prep.
56169
56170 2003-07-17  Bruno Haible  <bruno@clisp.org>
56171
56172         * modules/getnline: New file.
56173         * modules/getline: Add lib/getndelim2.c to source file list.
56174         * MODULES.html.sh (func_all_modules): Add getnline.
56175
56176 2003-07-17  Bruno Haible  <bruno@clisp.org>
56177
56178         * m4/getnline.m4: New file.
56179
56180 2003-07-17  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/Makefile.am.in: Remove file.
56183         * m4/Makefile.am: Remove file.
56184         * m4/Makefile.in: Remove file.
56185
56186 2003-07-17  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/getnline.h: New file.
56189         * lib/getnline.c: New file.
56190         * lib/getndelim2.c: New file, extracted from getline.c.
56191         (getndelim2): Renamed from getdelim2, with added nmax argument.
56192         * lib/getline.c: Include getndelim2.c.
56193         (getdelim2): Moved out to getndelim2.c.
56194         (getline, getdelim): Update.
56195
56196 2003-07-17  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/Makefile.am: Remove file.
56199         * lib/Makefile.in: Remove file.
56200
56201 2003-07-17  Bruno Haible  <bruno@clisp.org>
56202
56203         * configure.in: Remove file.
56204         * Makefile.in: Remove file.
56205
56206 2003-07-17  Bruno Haible  <bruno@clisp.org>
56207
56208         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56209
56210 2003-07-16  Karl Berry  <karl@gnu.org>
56211
56212         * config/srclist-update: was running fixlicense twice, which caused
56213                 texinfo.tex to be nullified for some reason.  Simplify,
56214                 $gplsrc is no longer needed as far as I can see?
56215
56216 2003-07-16  Jim Meyering  <jim@meyering.net>
56217
56218         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56219
56220 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56221
56222         * config/srclist.txt: Get the following files from gettext-runtime/intl
56223         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56224         ref-del.sin.  From Bruno Haible.
56225         * config/srclist-update (fixfile): Change grep pattern again, since the
56226         previous fix didn't work (there was another trailing $).  Use
56227         '[$]' to escape the $s.
56228
56229 2003-07-15  Karl Berry  <karl@gnu.org>
56230
56231         * lib/vasnprintf.c: update from gettext.
56232
56233 2003-07-15  Karl Berry  <karl@gnu.org>
56234
56235         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56236         gets expanded when surrounded by '$'.
56237
56238 2003-07-15  Jim Meyering  <jim@meyering.net>
56239
56240         * modules/save-cwd: Don't depend on error.  From Derek Price.
56241
56242 2003-07-15  Jim Meyering  <jim@meyering.net>
56243
56244         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56245
56246 2003-07-14  Simon Josefsson  <jas@extundo.com>
56247
56248         * modules/mempcpy: New file.
56249         * MODULES.html.sh (func_all_modules): Add mempcpy.
56250
56251 2003-07-14  Simon Josefsson  <jas@extundo.com>
56252
56253         * m4/mempcpy.m4: New file.
56254
56255 2003-07-14  Simon Josefsson  <jas@extundo.com>
56256
56257         * lib/mempcpy.h: New file.
56258         * lib/mempcpy.c: New file.
56259
56260 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56261
56262         * modules/getdate, modules/posixtm: Depend on mktime.
56263
56264 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56265
56266         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56267         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56268         unicodeio.c, unicodeio.h, unlocked-io.h:
56269         Switch from LGPL to GPL.
56270
56271 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56272
56273         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56274         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56275         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56276         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56277         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56278         updated automatically by ../config/srclist-update.  This changes
56279         their license from LPGL to GPL.
56280
56281 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56282
56283         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56284         assumed to refer to the root of the most recent stable gettext version.
56285         * config/srclistvars.sh: Add defaults for eggert.
56286         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56287         Match "This program" as well as "The program".  This is needed
56288         for gettext.
56289
56290 2003-07-14  Jim Meyering  <jim@meyering.net>
56291
56292         Don't emit diagnostics.  Let callers do that.
56293         * lib/save-cwd.c: Don't include "error.h".
56294         (save_cwd): Don't call error.  Ensure that errno is valid
56295         when returning nonzero.
56296
56297         * lib/save-cwd.h (restore_cwd): Update prototype.
56298         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56299         Simplify.  Don't call error upon failure.  Let callers do that.
56300         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56301         when auditing is enabled.  But don't bother updating the #if.
56302
56303 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56304
56305         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56306         it breaks C++ compilation.
56307         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56308
56309 2003-07-10  Simon Josefsson  <jas@extundo.com>
56310
56311         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56312
56313 2003-07-10  Jim Meyering  <jim@meyering.net>
56314
56315         * m4/clock_time.m4: Remove trailing blank.
56316         * m4/intmax_t.m4: Likewise.
56317
56318 2003-07-10  Jim Meyering  <jim@meyering.net>
56319
56320         * lib/vasnprintf.c: Remove trailing blanks.
56321         Make cpp indentation consistent.
56322
56323 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56324
56325         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56326         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56327         Switch from LGPL to GPL.
56328
56329 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56330
56331         * config/srclist.txt: Sort sublists.  Add
56332         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56333         that differ from gnulib for one reason or another; we'd like this list
56334         to be smaller but for now let's document what we have.
56335
56336 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56337
56338         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56339         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56340         and sweeter "eval x=$x".
56341         * config/srclist.txt: Get lib/argp* from glibc.
56342
56343 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56344
56345         * lib/mktime.c: Fix some boundary cases and remove need for floating
56346         point.
56347
56348         Issue a compile-time diagnostic if time_t is floating point, or if
56349         two's complement arithmetic is not in effect, or if arithmetic
56350         right shift does not propagate the sign.  These assumptions were
56351         all in the original code but they weren't checked.
56352
56353         (TIME_T_MIDPOINT, verify): New macros.
56354         (__isleap): Remove; it has integer overflow problems.
56355         (leapyear): New function, without those problems.
56356         (ydhms_tm_diff): Remove; splitting into two parts.
56357         (ydhms_diff): New function, containing the arithmetic part of
56358         the old ydhms_tm_diff function.  Issue a compile-time
56359         diagnostic if we are not using C99 integer division.
56360         Avoid casts when possible.
56361         (guess_time_tm): New function, containing the checking part of
56362         the old ydhms_tm_diff function.  Return the new value, rather than
56363         the difference between it and the old.  Accept a new argument T
56364         so that *T specifies the old value.  Check for overflow in the result.
56365
56366         (__mktime_internal): Use a time_t offset, not a long int offset.
56367         This undoes the 2003-06-04 change, which is no longer needed now
56368         that we have better overflow checking.
56369         (localtime_offset): Likewise.
56370
56371         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56372         and long are 64-bit but int is only 32-bit.
56373         (ydhms_diff): Use long int to store year1 and yday1.
56374         Issue a compile-time diagnostic if long int is not wide enough.
56375
56376         (__mktime_internal): Use long int to store adjusted year and yday.
56377         Use plain C rather than preprocessor commands, if that doesn't
56378         affect efficiency.
56379         Check for overflow (and try to repair) after each probe
56380         rather than checking only at the very end.  This avoids some bugs
56381         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56382         does not equal GMT offset at maximum time).
56383         Use integer to check for overflow rather than floating point; this
56384         is more portable to non-IEEE hosts, and is a tad faster.
56385         When we detect that we are oscillating between two values,
56386         don't check whether tm_isdst has the requested value, since
56387         we already know the answer.  When tm_isdst has the wrong value,
56388         use a different heuristic to find the right one, based on the
56389         extreme values actually observed in practice in tz2003a,
56390         rather than the (overly optimistic) "previous 3 calendar quarters".
56391
56392         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56393         "T const" to accommodate glibc style.
56394         (check_result): Use less-confusing report format.  "long" -> "long int.
56395         (main): Likewise.
56396         Don't loop if the iteration overflows time_t.
56397         Allow a negative step in the iteration.
56398
56399 2003-07-06  Karl Berry  <karl@gnu.org>
56400
56401         * config/depcomp: update from automake.
56402         * config/config.sub: update from prep.
56403
56404 2003-07-03  Karl Berry  <karl@gnu.org>
56405
56406         * config/config.guess: update from prep.
56407
56408 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56409
56410         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56411         xreadlink.c now includes it unconditionally.
56412
56413 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56414
56415         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56416         having it depend on HAVE_SYS_TYPES_H.
56417
56418 2003-07-01  Bruno Haible  <bruno@clisp.org>
56419
56420         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56421         <sys/types.h> should be sufficient.
56422         Reported by Paul Eggert.
56423
56424 2003-06-26  Karl Berry  <karl@gnu.org>
56425
56426         * config/depcomp: update from automake.
56427
56428 2003-06-26  Bruno Haible  <bruno@clisp.org>
56429
56430         * modules/human: Depend on module stdbool.
56431
56432 2003-06-25  Bruno Haible  <bruno@clisp.org>
56433
56434         * modules/readlink: New file.
56435         * modules/xreadlink: Depend on it.
56436         * MODULES.html.sh (func_all_modules): Add readlink.
56437
56438 2003-06-25  Bruno Haible  <bruno@clisp.org>
56439
56440         * m4/readlink.m4: New file.
56441
56442 2003-06-25  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/readlink.c: New file.
56445
56446 2003-06-22  Karl Berry  <karl@gnu.org>
56447
56448         * config/srclist.txt: update mkinstalldirs from automake.
56449         * config/mkinstalldirs: update.
56450
56451 2003-06-22  Bruno Haible  <bruno@clisp.org>
56452
56453         Portability to mingw32.
56454         * m4/ssize_t.m4: New file, from GNU gettext.
56455         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56456         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56457
56458 2003-06-22  Bruno Haible  <bruno@clisp.org>
56459
56460         * modules/safe-read: Add m4/ssize_t.m4.
56461         * modules/xreadlink: Add m4/ssize_t.m4.
56462
56463 2003-06-20  Bruno Haible  <bruno@clisp.org>
56464
56465         Assume C89, so PARAMS isn't needed.
56466         * lib/unicodeio.h (PARAMS): Remove.
56467         * lib/unicodeio.c: Don't use PARAMS.
56468
56469 2003-06-18  Karl Berry  <karl@gnu.org>
56470
56471         * config/config.{guess,sub}: update from prep.
56472
56473 2003-06-18  Jim Meyering  <jim@meyering.net>
56474
56475         Merge changes from coreutils.
56476         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56477         Remove explicit declarations of xmalloc and realloc.
56478         Include xalloc.h.
56479         (read_utmp): Remove anachronistic cast of xmalloc.
56480
56481 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56482
56483         Assume C89, so PARAMS isn't needed.
56484         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56485         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56486         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56487         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56488         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56489         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56490         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56491         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56492         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56493         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56494         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56495         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56496         no longer needed. Anyway, config.h should always be included before any
56497         other file.
56498
56499 2003-06-11  Simon Josefsson  <jas@extundo.com>
56500
56501         * modules/sysexits: New file.
56502         * MODULES.html.sh (func_all_modules): Add sysexits.
56503
56504 2003-06-11  Simon Josefsson  <jas@extundo.com>
56505
56506         * lib/sysexit_.h: New file.
56507
56508 2003-06-11  Derek Price  <derek@ximbiot.com>
56509
56510         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56511         necessary.
56512
56513 2003-06-11  Bruno Haible  <bruno@clisp.org>
56514
56515         * m4/sysexits.m4: New file.
56516
56517 2003-06-10  Simon Josefsson  <jas@extundo.com>
56518
56519         * lib/argp.h: New file, from glibc.
56520         * lib/argp-ba.c: New file, from glibc.
56521         * lib/argp-eexst.c: New file, from glibc.
56522         * lib/argp-fmtstream.c: New file, from glibc.
56523         * lib/argp-fmtstream.h: New file, from glibc.
56524         * lib/argp-fs-xinl.c: New file, from glibc.
56525         * lib/argp-help.c: New file, from glibc.
56526         * lib/argp-namefrob.h: New file, from glibc.
56527         * lib/argp-parse.c: New file, from glibc.
56528         * lib/argp-pv.c: New file, from glibc.
56529         * lib/argp-pvh.c: New file, from glibc.
56530         * lib/argp-xinl.c: New file, from glibc.
56531
56532 2003-06-10  Simon Josefsson  <jas@extundo.com>
56533
56534         * modules/strchrnul: New file.
56535
56536 2003-06-10  Simon Josefsson  <jas@extundo.com>
56537
56538         * modules/argp: New file.
56539
56540 2003-06-10  Simon Josefsson  <jas@extundo.com>
56541
56542         * m4/strchrnul.m4: New file.
56543
56544 2003-06-10  Simon Josefsson  <jas@extundo.com>
56545
56546         * lib/strchrnul.h: New file.
56547         * lib/strchrnul.c: New file.
56548
56549 2003-06-10  Bruno Haible  <bruno@clisp.org>
56550
56551         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56552
56553 2003-06-07  Karl Berry  <karl@gnu.org>
56554
56555         * config/config.{guess,sub}: update from prep.
56556
56557 2003-06-07  Jim Meyering  <jim@meyering.net>
56558
56559         * modules/strtod: Use $(...) notation, not @...@ for
56560         AC_REPLACE'd variables.
56561         * modules/localcharset: Likewise.
56562
56563 2003-06-07  Jim Meyering  <jim@meyering.net>
56564
56565         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56566         in place of my name in the copyright comment.
56567         Remove definition and uses of __P.
56568
56569         From coreutils.
56570         * lib/stat.c: Don't declare xmalloc explicitly.
56571         Instead, include "xalloc.h".
56572         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56573         xrealloc, and xcalloc return values.
56574         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56575         Improve comment.
56576         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56577
56578 2003-06-07  Bruno Haible  <bruno@clisp.org>
56579
56580         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56581         avoid AC_CONFIG_LINKS.
56582         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56583         fnmatch.h, to avoid AC_CONFIG_LINKS.
56584         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56585
56586 2003-06-07  Bruno Haible  <bruno@clisp.org>
56587
56588         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56589         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56590         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56591         directory.
56592         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56593         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56594         directory.
56595
56596 2003-06-06  Jim Meyering  <jim@meyering.net>
56597
56598         Merge from coreutils.
56599         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56600         Consolidate declarations and initializations of *_base* locals.
56601
56602         Merge from coreutils.
56603         This avoids a core dump on systems without GNU putenv,
56604         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56605         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56606         (unsetenv): New static function, from GNU libc.
56607         (rpl_putenv): Use it.
56608
56609         * lib/modechange.c: Remove trailing blanks.
56610
56611         Merge from coreutils.
56612         * lib/fsusage.c: Remove declaration of statfs.
56613         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56614
56615         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56616
56617 2003-06-06  Jim Meyering  <jim@meyering.net>
56618
56619         * lib/stdbool_.h: Renamed from stdbool.h.in.
56620
56621 2003-06-06  Jim Meyering  <jim@meyering.net>
56622             Bruno Haible  <bruno@clisp.org>
56623
56624         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56625         Adjust Makefile.am snippet not to redirect directly to target.
56626         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56627
56628 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56629
56630         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56631         mismatch, look in future quarters as well as past.  This fixes a
56632         bug when processing fall-backwards gaps immediately after a long
56633         period of daylight-saving time.
56634
56635         * lib/mktime.c: Assume freestanding C89 or better.
56636         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56637         (__P): Remove; not used.
56638         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56639         (mktime, not_equal_tm, print_tm, check_result,
56640         main): Use prototypes.  Use const * where appropriate.
56641         (main): Fix typo in testing code that uncovered by above changes.
56642         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56643
56644 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56645
56646         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56647         locale.h, localeconv.  This merges changes from coreutils.
56648
56649         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56650         It can be removed after the next Autoconf is released.
56651         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56652         needed.
56653
56654 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56655
56656         * lib/mktime.c: Fix Debian bug 177940
56657         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56658         (localtime_offset): Now long int, not time_t, because we want it
56659         to be guaranteed to be signed.  All uses changed.
56660         (__mktime_internal): If overflow would occur when adding offset,
56661         don't add it.
56662
56663         Merge 'human' changes from coreutils.  Rewrite to support
56664         locale-specific notations like thousands separators.
56665         * lib/human.c: Simplify authorship notice.
56666         Include human.h immediately after config.h.
56667         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56668         <limits.h>: Do not include, since human.h does.
56669         (SIZE_MAX, UINTMAX_MAX): New macros.
56670         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56671         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56672         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56673         (power_letter): Renamed from suffixes.
56674         (generate_suffix_backwards): Remove.
56675         (adjust_value): Now takes int style (because of human.h changes)
56676         and long double value (for greater precision on some platforms).
56677         (group_number): New function.
56678         (human_readable): Use it.  Use integer options, not enum.
56679         Put the options before the sizes in the arg list.
56680         Support all the new options.
56681         The old human_readable function has been removed;
56682         use inttostr.h instead.
56683         (human_readable, default_block_size, humblock):
56684         Use uintmax_t, not int, for block sizes.
56685         (human_readable_inexact, block_size_types): Remove.
56686         (block_size_opts): New constant.
56687         (human_options): Renamed from human_block_size, with new signature
56688         that allows block sizes up to UINTMAX_MAX.  All callers changed.
56689         * lib/human.h: Add copyright and authorship notice.
56690         Include <limits.h> and <stdbool.h> unconditionally.
56691         (PARAMS): Remove.  All uses removed.
56692         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56693         (enum human_inexact_style): Remove tag; now a nameless enum.
56694         (human_floor, human_ceiling, human_round_to_even): Now have
56695         values 2, 0, 1 rather than -1, 1, 0.
56696         (human_group_digits, human_suppress_point_zero, human_autoscale,
56697         human_base_1024, human_SI, human_B): New constants.
56698         (human_readable_inexact, human_block_size): Remove.
56699         (human_readable): Size args are now uintmax_t, not int.
56700         (human_options): New decl.
56701
56702         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56703         unnecessary now that we assume C89 or better.  This change
56704         imported from coreutils.
56705
56706         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56707         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
56708         in the 2003-05-30 sync from glibc.
56709
56710         .h files should stand alone, but we shouldn't include <sys/types.h>
56711         if we can get away with just <stddef.h>.
56712
56713         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56714         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56715         rather than <sys/types.h>, as we merely need size_t.
56716         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56717         to get size_t.
56718         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56719         Include <stdio.h>, to get FILE.
56720         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56721         memcasecmp.h has included <stddef.h> and all we need is size_t.
56722         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56723         our interface, instead of including <sys/types.h>
56724
56725 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56726
56727         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56728         now, as glibc mktime is buggy on non-glibc systems.
56729
56730 2003-06-03  Karl Berry  <karl@gnu.org>
56731
56732         * config/config.sub: update from prep.
56733
56734 2003-06-02  Paul Eggert  <eggert@twinsun.com>
56735
56736         [from coreutils]
56737         Fix some minor time-related bugs with POSIX time arguments.
56738         Some valid time stamps were being rejected (notably -1, and
56739         time stamps before 1900 on 64-bit hosts).  And some invalid
56740         time stamps were being accepted, e.g. September 31.
56741
56742         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56743         that we can return (time_t) -1 successfully.
56744         * lib/posixtm.c: Likewise.
56745         [HAVE_STDBOOL_H]: Include <stdbool.h>.
56746         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56747         (t): Remove static var.
56748         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56749         of static var.  All uses changed.
56750         (year): Do not reject years before 1900; they can occur with
56751         64-bit time_t.
56752         (posix_time_parse): Do not check for out-of-range components;
56753         that is now the caller's responsibility, since our checks were
56754         only approximations.
56755         (posixtime): Use mktime to check for out-of-range components,
56756         since it knows them exactly.
56757         If mktime returns (time_t) -1, check whether an error actually occurred
56758         by invoking localtime on -1.
56759         (main) [TEST_POSIXTIME]: Check for input data errors, and report
56760         posixtime failures better.
56761         Improve the test data (in comments only).
56762
56763 2003-06-02  Karl Berry  <karl@gnu.org>
56764
56765         * config/mkinstalldirs (version): new variable.
56766         (--version): new option.
56767         (usage): improve message.
56768
56769 2003-05-30  Karl Berry  <karl@gnu.org>
56770
56771         * lib/mktime.c: update from libc.
56772
56773 2003-05-30  Bruno Haible  <bruno@clisp.org>
56774
56775         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
56776         * config/config.rpath: Upgrade to gettext-0.12.1.
56777
56778 2003-05-30  Bruno Haible  <bruno@clisp.org>
56779
56780         * m4/gettext.m4: Upgrade to gettext-0.12.1.
56781         * m4/nls.m4: New file, from gettext-0.12.1.
56782         * m4/po.m4: New file, from gettext-0.12.1.
56783         * m4/progtest.m4: Upgrade to gettext-0.12.1.
56784
56785 2003-05-30  Bruno Haible  <bruno@clisp.org>
56786
56787         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
56788         * lib/localcharset.h: Likewise.
56789         * lib/localcharset.c: Likewise.
56790
56791 2003-05-29  Karl Berry  <karl@gnu.org>
56792
56793         * config/config.rpath: update from gettext.
56794
56795 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56796
56797         Assume the headers required for C89 freestanding compilers.
56798         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
56799         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
56800         * m4/human.m4 (gl_HUMAN): Likewise.
56801         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
56802         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
56803         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56804         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
56805         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56806         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
56807
56808 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56809
56810         Assume the headers required for C89 freestanding compilers.
56811         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
56812         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
56813         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
56814         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
56815         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
56816         define, since <limits.h> is guaranteed to do that.
56817         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
56818         * lib/exclude.c: Include <stdbool.h> unconditionally.
56819         * lib/tempname.c: Include <stddef.h> unconditionally.
56820         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
56821         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
56822         <stddef.h> does that.
56823         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
56824         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
56825         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
56826         needed.
56827         * lib/xstrtol.c: Likewise.
56828         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
56829         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
56830
56831         * lib/addext.c (addext): Use assignment rather than cast, to avoid
56832         warnings on some platforms.
56833
56834         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56835         arbitrarily.
56836
56837 2003-05-26  Jim Meyering  <jim@meyering.net>
56838
56839         Merge in a change from coreutils:
56840         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
56841         that is guaranteed to be `no'.  Use `no_such_member' to indicate
56842         that condition, rather than `-1' which is slightly misleading.
56843         Change the name of the cache variable to have the gl_ prefix.
56844         Prompted by a patch from Richard Dawe for DJGPP.
56845
56846 2003-05-24  Karl Berry  <karl@gnu.org>
56847
56848         * config/config.guess: update from prep.
56849
56850 2003-05-22  Karl Berry  <karl@gnu.org>
56851
56852         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
56853
56854 2003-05-20  Karl Berry  <karl@gnu.org>
56855
56856         * config/config.guess: update from prep.
56857
56858 2003-05-18  Karl Berry  <karl@gnu.org>
56859
56860         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
56861         might actually be set by the user.
56862
56863         * config/depcomp, install-sh, mdate-sh: update from automake.
56864
56865 2003-05-17  Bruno Haible  <bruno@clisp.org>
56866
56867         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
56868         invalid expansion for AC_EGREP_CPP.
56869         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
56870         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56871         Suggested by Akim Demaille <akim@epita.fr> in
56872         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
56873
56874 2003-05-12  Jim Meyering  <jim@meyering.net>
56875
56876         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
56877         the space-padded-by-default conversion specifiers, %e, %k, %l.
56878
56879 2003-05-12  Bruno Haible  <bruno@clisp.org>
56880
56881         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
56882         the string is longer than 4 KB.
56883
56884 2003-05-11  Karl Berry  <karl@gnu.org>
56885
56886         * config/config.{guess,sub}: update from prep.
56887
56888 2003-05-09  Bruno Haible  <bruno@clisp.org>
56889
56890         * modules/error: Add m4/strerror_r.m4 to file list.
56891
56892 2003-05-03  Bruno Haible  <bruno@clisp.org>
56893
56894         Upgrade to Unicode-4.0.
56895         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
56896         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
56897         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
56898         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
56899         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
56900         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
56901         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
56902         Change width of U+E0100..U+E01EF from 1 to 0.
56903
56904 2003-04-25  Jim Meyering  <jim@meyering.net>
56905
56906         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
56907         of type size_t, not int.
56908
56909 2003-04-25  Bruno Haible  <bruno@clisp.org>
56910
56911         * lib/copy-file.c: Include <stddef.h>, for size_t.
56912
56913 2003-04-21  Paul Eggert  <eggert@twinsun.com>
56914
56915         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
56916         code which expansion is under static control.  Patch imported from
56917         Akim Demaille's patch to Bison; see
56918         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
56919
56920 2003-04-14  Bruno Haible  <bruno@clisp.org>
56921
56922         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
56923
56924 2003-04-11  Jim Meyering  <jim@meyering.net>
56925
56926         Merge changes from Coreutils.
56927
56928         2003-03-22  Jim Meyering  <jim@meyering.net>
56929
56930         * lib/strftime.c (widen): Cast alloca return value to proper type.
56931
56932         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
56933
56934         From GNU libc.
56935         * lib/strftime.c (my_strftime): Handle very large width
56936         specifications for numeric values correctly.  Improve checks for
56937         overflow.
56938
56939         2003-01-19  Jim Meyering  <jim@meyering.net>
56940
56941         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
56942         definitions.
56943         (nl_get_alt_digit) [! defined my_strftime]: Define.
56944         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
56945         _nl_get_alt_digit and _nl_get_walt_digit.
56946
56947         * lib/strftime.c (my_strftime): Merge in locale-related changes from
56948         libc. These changes have no effect outside of _LIBC.
56949
56950 2003-04-10  Bruno Haible  <bruno@clisp.org>
56951
56952         * modules/findprog: New file.
56953         * MODULES.html.sh (func_all_modules): Add it.
56954
56955 2003-04-10  Bruno Haible  <bruno@clisp.org>
56956
56957         * m4/findprog.m4: New file.
56958         * m4/eaccess.m4: New file.
56959
56960 2003-04-10  Bruno Haible  <bruno@clisp.org>
56961
56962         * lib/findprog.h: New file, from GNU gettext.
56963         * lib/findprog.c: New file, from GNU gettext.
56964
56965 2003-04-05  Jim Meyering  <jim@meyering.net>
56966
56967         Merge changes from Coreutils.
56968
56969         * lib/exclude.h (PARAMS): Remove definition and uses.
56970         * lib/exclude.c: Remove uses of `PARAMS'.
56971
56972         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
56973         Add test-cases for DOS filenames. Declare program_name.
56974         (main): Set up program_name.  Patch by Rich Dawe.
56975
56976         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56977         error from mntctl.
56978         Use mntctl's return value to drive the entry-processing loop, since
56979         we can't rely on the value of the vmt_length member in the last
56980         entry.  On some systems doing so could result in exhausting
56981         virtual memory.  Based in part on a patch from Mike Jetzer.
56982
56983 2003-04-04  Bruno Haible  <bruno@clisp.org>
56984
56985         * modules/linebreak: New file.
56986         * MODULES.html.sh (func_all_modules): Add it.
56987
56988 2003-04-04  Bruno Haible  <bruno@clisp.org>
56989
56990         * m4/linebreak.m4: New file.
56991
56992 2003-04-04  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/linebreak.h: New file, from GNU gettext.
56995         * lib/linebreak.c: New file, from GNU gettext with slight
56996         modifications.
56997         * lib/lbrkprop.h: New file, from GNU gettext.
56998
56999 2003-04-03  Bruno Haible  <bruno@clisp.org>
57000
57001         * modules/utf8-ucs4: New file.
57002         * modules/utf16-ucs4: New file.
57003         * modules/ucs4-utf8: New file.
57004         * modules/ucs4-utf16: New file.
57005         * MODULES.html.sh (func_all_modules): Add them.
57006
57007 2003-04-03  Bruno Haible  <bruno@clisp.org>
57008
57009         * m4/utf-ucs4.m4: New file.
57010         * m4/ucs4-utf.m4: New file.
57011
57012 2003-04-03  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/utf8-ucs4.h: New file, from GNU gettext.
57015         * lib/utf16-ucs4.h: New file, from GNU gettext.
57016         * lib/ucs4-utf8.h: New file, from GNU gettext.
57017         * lib/ucs4-utf16.h: New file, from GNU gettext.
57018
57019 2003-04-02  Bruno Haible  <bruno@clisp.org>
57020
57021         * modules/binary-io: New file.
57022         * MODULES.html.sh (func_all_modules): Add it.
57023
57024 2003-04-02  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/binary-io.h: New file, from GNU gettext.
57027
57028 2003-04-01  Bruno Haible  <bruno@clisp.org>
57029
57030         * modules/pathname: New file.
57031         * MODULES.html.sh (func_all_modules): Add it.
57032
57033 2003-04-01  Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/pathname.h: New file, from GNU gettext.
57036         * lib/concatpath.c: New file, from GNU gettext.
57037
57038 2003-03-30  Bruno Haible  <bruno@clisp.org>
57039
57040         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57041
57042 2003-03-30  Bruno Haible  <bruno@clisp.org>
57043
57044         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57045         function chown() doesn't exist.
57046
57047 2003-03-28  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/copy-file: New file.
57050         * MODULES.html.sh (func_all_modules): Add it.
57051
57052 2003-03-28  Bruno Haible  <bruno@clisp.org>
57053
57054         * m4/copy-file.m4: New file.
57055
57056 2003-03-28  Bruno Haible  <bruno@clisp.org>
57057
57058         * lib/copy-file.h: New file, from GNU gettext.
57059         * lib/copy-file.c: New file, from GNU gettext.
57060
57061 2003-03-18  Jim Meyering  <jim@meyering.net>
57062
57063         * lib/quote.c (quote_n): Fix typo in comment.
57064
57065 2003-03-18  Bruno Haible  <bruno@clisp.org>
57066
57067         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57068         checking.
57069         * m4/onceonly_2_57.m4: Likewise.
57070
57071 2003-03-17  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57074         (m4_quote): Remove macro.
57075         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57076
57077 2003-03-14  Jim Meyering  <jim@meyering.net>
57078
57079         Merge changes from Coreutils.
57080         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57081         to be const, in order to avoid warnings.
57082         (obstack_room): Likewise.
57083         (obstack_empty_p): Likewise.
57084
57085 2003-03-14  Bruno Haible  <bruno@clisp.org>
57086
57087         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57088         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57089
57090 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57091
57092         Merge changes from Bison.
57093         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57094         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57095         when compiling Bison 1.875's `bitset bset = obstack_alloc
57096         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57097         * lib/hash.c: Include <stdbool.h> unconditionally.
57098
57099 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57100
57101         * m4/onceonly.m4 (m4_quote): New macro.
57102         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57103         Quote AC_FOREACH variable-expansions properly.
57104
57105 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57106
57107         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57108
57109 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57110
57111         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57112         Reported by Bruce Becker; see:
57113         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57114
57115 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57116             Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57119         Reported by John Hughes, see
57120         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57121
57122 2003-02-20  Bruno Haible  <bruno@clisp.org>
57123
57124         * MODULES.html.sh (func_all_modules): Add poll.
57125
57126 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57127
57128         * modules/poll: New file.
57129
57130 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57131
57132         * lib/poll_.h: New file.
57133         * lib/poll.c: New file.
57134
57135 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57136
57137         * m4/poll.m4: New file.
57138
57139 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57140
57141         * modules/mathl: New file.
57142
57143 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57144
57145         * lib/mathl.h: New file.
57146         * lib/acosl.c: New file.
57147         * lib/asinl.c: New file.
57148         * lib/atanl.c: New file.
57149         * lib/ceill.c: New file.
57150         * lib/cosl.c: New file.
57151         * lib/expl.c: New file.
57152         * lib/floorl.c: New file.
57153         * lib/frexpl.c: New file.
57154         * lib/ldexpl.c: New file.
57155         * lib/logl.c: New file.
57156         * lib/sincosl.c: New file.
57157         * lib/sinl.c: New file.
57158         * lib/sqrtl.c: New file.
57159         * lib/tanl.c: New file.
57160         * lib/trigl.c: New file.
57161         * lib/trigl.h: New file.
57162
57163 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57164
57165         * m4/mathl.m4: New file.
57166
57167 2003-02-18  Bruno Haible  <bruno@clisp.org>
57168
57169         * MODULES.html.sh (func_all_modules): Add mathl.
57170
57171 2003-02-17  Bruno Haible  <bruno@clisp.org>
57172
57173         * modules/mkdtemp: New module.
57174         * MODULES.html.sh (func_all_modules): Add it.
57175
57176 2003-02-17  Bruno Haible  <bruno@clisp.org>
57177
57178         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57179
57180 2003-02-17  Bruno Haible  <bruno@clisp.org>
57181
57182         * lib/mkdtemp.h: New file, from GNU gettext.
57183         * lib/mkdtemp.c: New file, from GNU gettext.
57184
57185 2003-02-02  Jim Meyering  <jim@meyering.net>
57186
57187         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57188         e.g. glibc-2.2.93.
57189
57190 2003-01-31  Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57193         'rpl_rename'.
57194         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57195         'rpl_strnlen'.
57196         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57197         'rpl_strtod'.
57198         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57199         'rpl_utime'.
57200
57201 2003-01-31  Bruno Haible  <bruno@clisp.org>
57202
57203         * lib/rename.c: #undef rename before defining rpl_rename.
57204         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57205
57206 2003-01-30  Bruno Haible  <bruno@clisp.org>
57207
57208         * modules/vasnprintf, modules/vasprintf: New modules.
57209         * MODULES.html.sh (func_all_modules): Add them.
57210
57211 2003-01-30  Bruno Haible  <bruno@clisp.org>
57212
57213         * m4/signed.m4: New file, from GNU gettext.
57214         * m4/longdouble.m4: New file, from GNU gettext.
57215         * m4/wchar_t.m4: New file, from GNU gettext.
57216         * m4/wint_t.m4: New file, from GNU gettext.
57217         * m4/vasnprintf.m4: New file.
57218         * m4/vasprintf.m4: New file.
57219
57220 2003-01-30  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/printf-args.h: New file, from GNU gettext.
57223         * lib/printf-args.c: New file, from GNU gettext.
57224         * lib/printf-parse.h: New file, from GNU gettext.
57225         * lib/printf-parse.c: New file, from GNU gettext.
57226         * lib/vasnprintf.h: New file, from GNU gettext.
57227         * lib/vasnprintf.c: New file, from GNU gettext.
57228         * lib/asnprintf.c: New file, from GNU gettext.
57229         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57230         * lib/vasprintf.c: New file, from GNU gettext.
57231         * lib/asprintf.c: New file, from GNU gettext.
57232
57233 2003-01-29  Bruno Haible  <bruno@clisp.org>
57234
57235         * modules/stpncpy: New module.
57236         * MODULES.html.sh (func_all_modules): Add it.
57237
57238 2003-01-29  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/stpncpy.m4: New file.
57241
57242 2003-01-29  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57245         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57246
57247 2003-01-28  Bruno Haible  <bruno@clisp.org>
57248
57249         * modules/c-ctype: New module.
57250         * MODULES.html.sh (func_all_modules): Add it.
57251
57252 2003-01-28  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57255         Paul Eggert.
57256         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57257         Paul Eggert.
57258
57259 2003-01-27  Bruno Haible  <bruno@clisp.org>
57260
57261         * modules/xsetenv: New module.
57262         * MODULES.html.sh (func_all_modules): Add it.
57263
57264 2003-01-27  Bruno Haible  <bruno@clisp.org>
57265
57266         * lib/xsetenv.h: New file, from GNU gettext.
57267         * lib/xsetenv.c: New file, from GNU gettext.
57268
57269 2003-01-23  Jim Meyering  <jim@meyering.net>
57270
57271         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57272         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57273
57274 2003-01-23  Bruno Haible  <bruno@clisp.org>
57275
57276         * modules/minmax: New module.
57277         * MODULES.html.sh (func_all_modules): Add it.
57278
57279 2003-01-23  Bruno Haible  <bruno@clisp.org>
57280
57281         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57282         Eggert.
57283
57284 2003-01-22  Bruno Haible  <bruno@clisp.org>
57285
57286         * modules/exit: New module.
57287         * MODULES.html.sh (func_all_modules): Add it.
57288
57289 2003-01-22  Bruno Haible  <bruno@clisp.org>
57290
57291         * lib/exit.h: New file, from GNU gettext.
57292
57293 2003-01-19  Bruno Haible  <bruno@clisp.org>
57294
57295         * gnulib-tool: Recognize option --extract-maintainer.
57296         (func_get_maintainer): New function.
57297         * modules/*: Add Maintainer entry.
57298
57299 2003-01-16  Jim Meyering  <jim@meyering.net>
57300
57301         * m4/regex.m4: The `regex' struct is both input and output.
57302         Initialize it before each use.  Patch by Tim Waugh.
57303
57304 2003-01-16  Bruno Haible  <bruno@clisp.org>
57305
57306         * MODULES.html.sh: Add a table of contents. Add the module name as
57307         leftmost column. Add hyperlinks.
57308
57309 2003-01-15  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57312
57313 2003-01-15  Bruno Haible  <bruno@clisp.org>
57314
57315         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57316         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57317         suffix.
57318
57319 2003-01-15  Bruno Haible  <bruno@clisp.org>
57320
57321         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57322
57323 2003-01-15  Bruno Haible  <bruno@clisp.org>
57324
57325         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57326         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57327
57328 2003-01-14  Jim Meyering  <jim@meyering.net>
57329
57330         * lib/same.c (same_name): Tweak a comment.
57331
57332 2003-01-14  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57335         when a string comparison is sufficient.
57336
57337 2003-01-14  Bruno Haible  <bruno@clisp.org>
57338
57339         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57340         'unsigned int'.
57341
57342 2003-01-14  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/hash-pjw.c: Add comment about low quality of this function.
57345
57346 2003-01-13  Bruno Haible  <bruno@clisp.org>
57347
57348         * modules/stpcpy: Distribute lib/stpcpy.h.
57349         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57350
57351 2003-01-13  Bruno Haible  <bruno@clisp.org>
57352
57353         * modules/*: Add a description.
57354         * modules/strpbrk: Fix Makefile.am snippet.
57355         * modules/strtoimax: Fix dependencies.
57356         * modules/strtoumax: Likewise.
57357
57358 2003-01-13  Bruno Haible  <bruno@clisp.org>
57359
57360         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57361         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57362         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57363
57364 2003-01-13  Bruno Haible  <bruno@clisp.org>
57365
57366         * gnulib-tool (func_create_testdir): Store config/* files in the main
57367         directory.
57368         * config.rpath: Move to ...
57369         * config/config.rpath: ... here.
57370         * modules/gettext: Contains config/config.rpath, not config.rpath.
57371         * modules/iconv: Likewise.
57372
57373 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57374
57375         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57376         to avoid collisions with libcurses and libreadline.
57377
57378         * m4/getstr.m4: Remove.
57379         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57380
57381 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57382
57383         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57384         to avoid collisions with libcurses and libreadline.
57385
57386         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57387         * lib/getstr.h, getstr.c: Remove.
57388         * lib/getline.c: Include "getline.h", to check interface.
57389         Move body of old getstr.c here: this defines MIN_CHUNK and
57390         declares getdelim2, which is renamed from getstr.
57391         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57392
57393         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57394         All uses changed.
57395         * lib/linebuffer.h: Likewise.
57396         (readline): Remove backward-compatibility macro.
57397
57398 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57399
57400         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57401         to avoid collisions with libcurses and libreadline.
57402         * getstr: Remove.
57403         * MODULES.html.sh: Remove getstr.
57404         * modules/getline: Depend on unlocked-io, not getstr.
57405
57406 2003-01-12  Jim Meyering  <jim@meyering.net>
57407
57408         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57409
57410 2003-01-10  Bruno Haible  <bruno@clisp.org>
57411
57412         * modules/alloca: Change Makefile.am requirements. Simplify Include
57413         requirements. Add lib/alloca_.h to file list.
57414
57415 2003-01-10  Bruno Haible  <bruno@clisp.org>
57416
57417         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57418
57419 2003-01-10  Bruno Haible  <bruno@clisp.org>
57420
57421         * lib/alloca_.h: New file.
57422         * lib/getdate.y: Unconditionally include alloca.h.
57423         * lib/makepath.c: Likewise.
57424         * lib/setenv.c: Likewise.
57425         * lib/userspec.c: Likewise.
57426
57427 2003-01-09  Karl Berry  <karl@gnu.org>
57428
57429         * MODULES.html.sh: include `dirname $0` in PATH, to find
57430         gnulib-tool.
57431
57432 2003-01-09  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57435         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57436
57437 2003-01-09  Bruno Haible  <bruno@clisp.org>
57438
57439         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57440
57441 2003-01-09  Bruno Haible  <bruno@clisp.org>
57442
57443         * lib/stdbool.h.in: New file.
57444
57445 2003-01-09  Bruno Haible  <bruno@clisp.org>
57446
57447         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57448         * MODULES.html.sh: Likewise.
57449
57450 2003-01-08  Jim Meyering  <jim@meyering.net>
57451
57452         * lib/full-write.c: Undefine and define-away `const' after inclusion
57453         of errno.h, not before.  Suggestion from Bruno Haible.
57454
57455 2003-01-08  Bruno Haible  <bruno@clisp.org>
57456
57457         * modules/full-read: Depend on full-write.
57458
57459 2003-01-08  Bruno Haible  <bruno@clisp.org>
57460
57461         * lib/safe-read.c: Include specification header first, to ensure its
57462         selfcontainedness.
57463         * lib/full-write.c: Likewise.
57464
57465 2003-01-07  Jim Meyering  <jim@meyering.net>
57466
57467         * lib/full-write.c: Rework so that it may serve to define full_read,
57468         too.
57469         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57470
57471 2003-01-07  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57474         <inttypes.h>.
57475         * lib/xstrtol.h: Likewise.
57476         * lib/xstrtoimax.c: Likewise.
57477         * lib/xstrtoumax.c: Likewise.
57478         * lib/human.h: Likewise.
57479
57480         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57481         on systems that have <inttypes.h> but not <stdint.h>.
57482
57483 2003-01-07  Bruno Haible  <bruno@clisp.org>
57484
57485         * MODULES.html.sh: Add copyright notice.
57486         (missed_files): Omit CVS directory entries.
57487         (func_module): Make it work with sed-3.02.
57488         * MODULES.txt: Remove file.
57489
57490 2003-01-06  Jim Meyering  <jim@meyering.net>
57491
57492         * lib/version-etc.c: Update year in translatable copyright string.
57493
57494 2003-01-03  Karl Berry  <karl@gnu.org>
57495
57496         * config/config.{guess,sub}: update from prep.
57497
57498 2003-01-02  Karl Berry  <karl@gnu.org>
57499
57500         * doc/COPYING.DOC: belatedly updated to 1.2.
57501
57502 2003-01-01  Karl Berry  <karl@gnu.org>
57503
57504         * gnulib-tool (func_verify_module): report module name $module in
57505         error message, not $1.
57506         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57507         be created, only if it doesn't exist.
57508         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57509
57510 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57511
57512         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57513
57514 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57515
57516         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57517         memcmp if strcoll doesn't work.
57518
57519 2002-12-31  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57522         nonempty.
57523
57524 2002-12-31  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/memcoll.c (STRCOLL): New macro.
57527         (memcoll): Use it.
57528
57529 2002-12-31  Bruno Haible  <bruno@clisp.org>
57530
57531         * lib/localcharset.h: New file.
57532         * lib/localcharset.c: Include it.
57533         * lib/unicodeio.c: Likewise.
57534
57535 2002-12-31  Bruno Haible  <bruno@clisp.org>
57536
57537         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57538         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57539
57540 2002-12-31  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/getline.h: Include <stddef.h>, for size_t.
57543
57544         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57545         * lib/unicodeio.c: Don't include <stddef.h>.
57546
57547 2002-12-31  Bruno Haible  <bruno@clisp.org>
57548
57549         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57550         HAVE_TM_ZONE.
57551
57552 2002-12-24  Karl Berry  <karl@gnu.org>
57553
57554         * config/config.guess: update from prep.
57555
57556 2002-12-24  Bruno Haible  <bruno@clisp.org>
57557
57558         General infrasructure.
57559         * m4/README: Rewritten.
57560         * m4/onceonly.m4: New file.
57561         * m4/onceonly_2_57.m4: New file.
57562
57563         Module atexit.
57564         * m4/atexit.m4: New file.
57565
57566         Module strtod.
57567         * m4/strtod.m4: New file.
57568
57569         Module strtol.
57570         * m4/strtol.m4: New file.
57571
57572         Module strtoul.
57573         * m4/strtoul.m4: New file.
57574
57575         Module memchr.
57576         * m4/memchr.m4: New file.
57577
57578         Module memcmp.
57579         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57580         (jm_FUNC_MEMCMP): Invoke it.
57581
57582         Module memcpy.
57583         * m4/memcpy.m4: New file.
57584
57585         Module memmove.
57586         * m4/memmove.m4: New file.
57587
57588         Module memset.
57589         * m4/memset.m4: New file.
57590
57591         Module strcspn.
57592         * m4/strcspn.m4: New file.
57593
57594         Module strpbrk.
57595         * m4/strpbrk.m4: New file.
57596
57597         Module strstr.
57598         * m4/strstr.m4: New file.
57599
57600         Module strerror.
57601         * m4/strerror.m4: New file.
57602
57603         Module mktime.
57604         * m4/mktime.m4: Renamed from jm-mktime.m4.
57605         (gl_PREREQ_MKTIME): New macro.
57606         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57607
57608         Module malloc.
57609         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57610         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57611         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57612
57613         Module realloc.
57614         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57615         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57616         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57617
57618         Module strftime.
57619         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57620         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57621         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57622         gl_TM_GMTOFF.
57623         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57624
57625         Module xalloc.
57626         * m4/xalloc.m4: New file.
57627
57628         Module alloca.
57629         * m4/alloca.m4: New file.
57630
57631         Module putenv.
57632         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57633         (jm_FUNC_PUTENV): Invoke it.
57634
57635         Module setenv.
57636         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57637         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57638         when invoked twice.
57639         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57640         gt_FUNC_SETENV.
57641
57642         Module memrchr.
57643         * m4/memrchr.m4: New file.
57644
57645         Module stpcpy.
57646         * m4/stpcpy.m4: New file.
57647
57648         Module strcase.
57649         * m4/strcase.m4: New file.
57650
57651         Module strdup.
57652         * m4/strdup.m4: New file.
57653
57654         Module strnlen.
57655         * m4/strnlen.m4: New file.
57656
57657         Module strndup.
57658         * m4/strndup.m4: New file.
57659
57660         Module xstrtod.
57661         * m4/xstrtod.m4: New file.
57662
57663         Module xstrtol.
57664         * m4/xstrtol.m4: New file.
57665
57666         Module getdate.
57667         * m4/getdate.m4: New file.
57668
57669         Module unlocked-io.
57670         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57671         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57672         * m4/jm-glibc-io.m4n: Remove file.
57673
57674         Module long-options.
57675         * m4/long-options.m4: New file.
57676
57677         Module md5.
57678         * m4/md5.m4: New file.
57679
57680         Module sha.
57681         * m4/sha.m4: New file.
57682
57683         Module getstr.
57684         * m4/getstr.m4: New file.
57685
57686         Module getline.
57687         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57688         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57689         <sys/types.h>, for size_t. Use the function name gnu_getline, not
57690         simply getline. Infoke gl_PREREQ_GETLINE.
57691
57692         Module obstack.
57693         * m4/obstack.m4: New file.
57694
57695         Module hash.
57696         * m4/hash.m4: New file.
57697
57698         Module readtokens.
57699         * m4/readtokens.m4: New file.
57700
57701         Module strverscmp.
57702         * m4/strverscmp.m4: New file.
57703
57704         Module stdbool.
57705         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57706         OSF/1.
57707
57708         Module strtoll.
57709         * m4/strtoll.m4: New file.
57710
57711         Module strtoull.
57712         * m4/strtoull.m4: New file.
57713
57714         Module strtoimax.
57715         * m4/strtoimax.m4: New file.
57716
57717         Module strtoumax.
57718         * m4/strtoumax.m4: New file.
57719
57720         Module xstrtoimax.
57721         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57722         jm_AC_PREREQ_XSTRTOIMAX.
57723         Moved the strtol prerequisites to strtol.m4.
57724         Moved the strtoll prerequisites to strtoll.m4.
57725         Moved the strtoimax prerequisites to strtoimax.m4.
57726
57727         Module xstrtoumax.
57728         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57729         jm_AC_PREREQ_XSTRTOUMAX.
57730         Moved the strtoul prerequisites to strtoul.m4.
57731         Moved the strtoull prerequisites to strtoull.m4.
57732         Moved the strtoumax prerequisites to strtoumax.m4.
57733
57734         Module chown.
57735         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57736         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57737
57738         Module dup2.
57739         * m4/dup2.m4: New file.
57740
57741         Module ftruncate.
57742         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57743         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57744
57745         Module getgroups.
57746         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57747         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57748
57749         Module gettimeofday.
57750         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57751         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57752         gl_PREREQ_GETTIMEOFDAY.
57753
57754         Module mkdir.
57755         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57756         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
57757
57758         Module mkstemp.
57759         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
57760         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
57761         jm_AC_TYPE_UINTMAX_T.
57762         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
57763
57764         Module stat.
57765         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
57766         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
57767
57768         Module lstat.
57769         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
57770         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
57771
57772         Module timespec.
57773         * m4/timespec.m4 (gl_TIMESPEC): New macro.
57774         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
57775         * m4/st_mtim.m4: Indentation.
57776
57777         Module nanosleep.
57778         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
57779         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
57780         gl_PREREQ_NANOSLEEP.
57781
57782         Module regex.
57783         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
57784         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
57785         (gl_REGEX): New macro.
57786
57787         Module rename.
57788         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
57789         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
57790
57791         Module rmdir.
57792         * m4/rmdir.m4: New file.
57793
57794         Module utime.
57795         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
57796         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
57797         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
57798
57799         Module dirname.
57800         * m4/dirname.m4: New file.
57801
57802         Module getopt.
57803         * m4/getopt.m4: New file.
57804
57805         Module unistd-safer.
57806         * m4/unistd-safer.m4: New file.
57807
57808         Module fnmatch.
57809         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
57810         declaration.
57811         (gl_PREREQ_FNMATCH_EXTRA): New macro.
57812         (gl_FUNC_FNMATCH_POSIX): New macro.
57813         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
57814         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
57815         simply fnmatch.
57816
57817         Module exclude.
57818         * m4/exclude.m4: New file.
57819
57820         Module human.
57821         * m4/human.m4: New file.
57822
57823         Module acl.
57824         * m4/acl.m4: Nop.
57825
57826         Module backupfile.
57827         * m4/backupfile.m4: New file.
57828         * m4/d-ino.m4: Indentation.
57829
57830         Module fsusage.
57831         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
57832         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
57833         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
57834
57835         Module dirfd.
57836         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
57837         requirements.
57838
57839         Module euidaccess.
57840         * m4/euidaccess.m4: New file.
57841
57842         Module file-type.
57843         * m4/file-type.m4: New file.
57844
57845         Module fileblocks.
57846         * m4/fileblocks.m4: New file.
57847
57848         Module filemode.
57849         * m4/filemode.m4: New file.
57850
57851         Module isdir.
57852         * m4/isdir.m4: New file.
57853
57854         Module lchown.
57855         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
57856         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
57857
57858         Module makepath.
57859         * m4/makepath.m4: New file.
57860
57861         Module modechange.
57862         * m4/modechange.m4: New file.
57863
57864         Module mountlist.
57865         * m4/mountlist.m4: New file.
57866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
57867         Indentation.
57868
57869         Module path-concat.
57870         * m4/path-concat.m4: New file.
57871
57872         Module pathmax.
57873         * m4/pathmax.m4: New file.
57874
57875         Module same.
57876         * m4/same.m4: New file.
57877
57878         Module save-cwd.
57879         * m4/save-cwd.m4: New file.
57880
57881         Module savedir.
57882         * m4/savedir.m4: New file.
57883
57884         Module xgetcwd.
57885         * m4/xgetcwd.m4: New file.
57886         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
57887
57888         Module xreadlink.
57889         * m4/xreadlink.m4: New file.
57890
57891         Module safe-read.
57892         * m4/safe-read.m4: New file.
57893
57894         Module safe-write.
57895         * m4/safe-write.m4: New file.
57896
57897         Module closeout.
57898         * m4/closeout.m4: New file.
57899
57900         Module stdio-safer.
57901         * m4/stdio-safer.m4: New file.
57902
57903         Module getpass.
57904         * m4/getpass.m4: New file.
57905
57906         Module getugroups.
57907         * m4/getugroups.m4: New file.
57908
57909         Module group-member.
57910         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
57911         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
57912
57913         Module idcache.
57914         * m4/idcache.m4: New file.
57915
57916         Module userspec.
57917         * m4/userspec.m4: New file.
57918
57919         Module gettime.
57920         * m4/clock_time.m4: New file.
57921         * m4/gettime.m4: New file.
57922
57923         Module settime.
57924         * m4/settime.m4: New file.
57925
57926         Module posixtm.
57927         * m4/posixtm.m4: New file.
57928
57929         Module gethostname.
57930         * m4/gethostname.m4: New file.
57931
57932         Module canon-host.
57933         * m4/canon-host.m4: New file.
57934
57935         Module gettext.
57936         * m4/codeset.m4: New file, from gettext-0.11.5.
57937         * m4/gettext.m4: New file, from gettext-0.11.5.
57938         * m4/glibc21.m4: New file, from gettext-0.11.5.
57939         * m4/iconv.m4: New file, from gettext-0.11.5.
57940         * m4/intdiv0.m4: New file, from gettext-0.11.5.
57941         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
57942         * m4/inttypes.m4: New file, from gettext-0.11.5.
57943         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
57944         * m4/isc-posix.m4: New file, from gettext-0.11.5.
57945         * m4/lcmessage.m4: New file, from gettext-0.11.5.
57946         * m4/lib-ld.m4: New file, from gettext-0.11.5.
57947         * m4/lib-link.m4: New file, from gettext-0.11.5.
57948         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
57949         * m4/progtest.m4: New file, from gettext-0.11.5.
57950         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
57951         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
57952         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
57953
57954         Module localcharset.
57955         * m4/localcharset.m4: New file.
57956
57957         Module hard-locale.
57958         * m4/hard-locale.m4: New file.
57959
57960         Module mbswidth.
57961         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
57962         onceonly macros.
57963         * m4/mbrtowc.m4: Add comment.
57964
57965         Module memcasecmp.
57966         * m4/memcasecmp.m4: New file.
57967
57968         Module memcoll.
57969         * m4/memcoll.m4: New file.
57970
57971         Module unicodeio.
57972         * m4/unicodeio.m4: New file.
57973
57974         Module rpmatch.
57975         * m4/rpmatch.m4: New file.
57976
57977         Module yesno.
57978         * m4/yesno.m4: New file.
57979
57980         Module exitfail.
57981         * m4/exitfail.m4: New file.
57982
57983         Module c-stack.
57984         * m4/c-stack.m4 (gl_C_STACK): New macro.
57985         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
57986
57987         Module error.
57988         * m4/error.m4 (gl_ERROR): New macro.
57989         (jm_PREREQ_ERROR): Use onceonly macros.
57990
57991         Module fatal.
57992         * m4/fatal.m4: New file.
57993
57994         Module getloadavg.
57995         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
57996         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
57997
57998         Module getpagesize.
57999         * m4/getpagesize.m4: New file.
58000
58001         Module getusershell.
58002         * m4/getusershell.m4: New file.
58003
58004         Module physmem.
58005         * m4/physmem.m4: New file.
58006
58007         Module posixver.
58008         * m4/posixver.m4: New file.
58009
58010         Module quotearg.
58011         * m4/quotearg.m4: New file.
58012
58013         Module quote.
58014         * m4/quote.m4: New file.
58015
58016         Module readutmp.
58017         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58018
58019         Module sig2str.
58020         * m4/sig2str.m4: New file.
58021
58022         Other.
58023         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58024         ulonglong.m4.
58025         * m4/intmax_t.m4: New file.
58026         * m4/d-type.m4: Indentation.
58027         * m4/jm-macros.m4: Update.
58028         * m4/prereq.m4 (jm_PREREQ): Update.
58029         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58030         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58031         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58032         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58033         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58034         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58035         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58036         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58037         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58038         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58039         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58040         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58041         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58042         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58043         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58044         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58045         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58046         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58047         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58048
58049 2002-12-24  Bruno Haible  <bruno@clisp.org>
58050
58051         * MODULES.txt: Update according to m4/ changes.
58052
58053         Module gettext.
58054         * config.rpath: New file, from gettext-0.11.5.
58055
58056         * modules/*: New module descriptions.
58057         * gnulib-tool: New file.
58058         * MODULES.html.sh: New file.
58059
58060 2002-12-21  Karl Berry  <karl@gnu.org>
58061
58062         * doc/fdl.texi: update to version 1.2.
58063
58064 2002-12-19  Karl Berry  <karl@gnu.org>
58065
58066         * config/config.guess: update from prep.
58067
58068 2002-12-18  Bruno Haible  <bruno@clisp.org>
58069
58070         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58071         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58072
58073 2002-12-17  Bruno Haible  <bruno@clisp.org>
58074
58075         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58076         stdlib.h, string.h.
58077
58078 2002-12-17  Bruno Haible  <bruno@clisp.org>
58079
58080         * lib/canon-host.c (strdup): Remove unused declaration.
58081
58082         * lib/fsusage.c: Include full_read.h.
58083         (get_fs_usage): Use full_read instead of safe_read.
58084
58085         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58086
58087 2002-12-12  Karl Berry  <karl@gnu.org>
58088
58089         * config/config.guess: update from prep.
58090
58091 2002-12-11  Bruno Haible  <bruno@clisp.org>
58092
58093         * m4/setenv.m4: New file, from gettext-0.11.5.
58094
58095 2002-12-11  Bruno Haible  <bruno@clisp.org>
58096
58097         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58098         not unsetenv().
58099         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58100         modifications:
58101
58102         2002-12-11  Bruno Haible  <bruno@clisp.org>
58103
58104                 * setenv.c (alloca): Fall back to malloc.
58105                 (freea): New macro.
58106                 (setenv): Use freea() to free memory allocated with alloca().
58107
58108         2002-11-13  Bruno Haible  <bruno@clisp.org>
58109
58110                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58111                 function declarations.
58112                 * unsetenv.c (unsetenv): Likewise.
58113
58114         2002-03-04  Bruno Haible  <bruno@clisp.org>
58115
58116                 Portability to AIX 4.3.3.
58117                 * unsetenv.c: New file, extracted from setenv.c.
58118                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58119
58120         2001-12-20  Bruno Haible  <bruno@clisp.org>
58121
58122                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58123                 use malloc instead. For SunOS 4.
58124
58125         2001-12-11  Bruno Haible  <bruno@clisp.org>
58126
58127                 * setenv.c: Declare alloca.
58128                 (compar_fn_t): New typedef.
58129                 (KNOWN_VALUE, STORE_VALUE): Use it.
58130
58131         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58132         setenv.h.
58133
58134 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58135
58136         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58137         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58138         Choose values that are less likely to collide with system fnmatch
58139         options.
58140         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58141         defined (e.g., a pure POSIX system).
58142         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58143         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58144
58145 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58146
58147         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58148         a pain in practice to deal with generated m4 files.  This change
58149         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58150
58151         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58152         and jm-glibc-io.m4, as they are no longer a special case.
58153         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58154         kludge and the auto-generation stuff.  Check only whether the
58155         functions are declared, not whether they exist, since older hosts
58156         that don't declare the functions can't use the optimization anyway.
58157
58158 2002-12-06  Jim Meyering  <jim@meyering.net>
58159
58160         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58161
58162         Merge in changes from libc's misc/error.c, in preparation
58163         for the merge of gnulib's changes back into libc.
58164
58165         * lib/error.c (_): Define only if not already defined.
58166         Move definition to follow all #include directives.
58167         Include unlocked-io.h only if !_LIBC.
58168         [_LIBC]: Include <libio/libioP.h>.
58169         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58170         (fflush): Tweak definition to use INTUSE.
58171         (putc): Define.
58172
58173 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58174
58175         * lib/alloca.c [defined emacs]: Include "lisp.h".
58176         (xalloc_die) [defined emacs]: New macro.
58177         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58178         [! defined emacs]: Include <xalloc.h>.
58179         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58180         (pointer): Typedef to POINTER_TYPE *.
58181         (malloc): Remove decl; we now always use xmalloc.
58182         (alloca): Use old-style definition, since Emacs needs this.
58183         Check for arithmetic overflow when computing combined size.
58184
58185 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58186
58187         Do not generate unlocked-io.h automatically, since it's easier to
58188         maintain it by hand.
58189
58190         * lib/unlocked-io.h: New file, from GNU diffutils,
58191         but with proper copyright notice and attribution.
58192         * lib/gen-uio: Remove.
58193         * lib/Makefile.am: Add copyright notice.
58194         (libfetish_a_SOURCES): Add unlocked-io.h.
58195         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58196         (DISTCLEANFILES, io_functions): Remove macros.
58197         (EXTRA_DIST): Remove gen_uio.
58198         (unlocked-io.h): Remove rule.
58199
58200 2002-12-04  Jim Meyering  <jim@meyering.net>
58201
58202         Reflect the fact that stat.c and lstat.c are no longer generated.
58203         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58204         (DISTCLEANFILES): Likewise.
58205         (EXTRA_DIST): Likewise.
58206         (all_local): Don't depend on stat.c or lstat.c.
58207         (stat.c, lstat.c): Remove rules.
58208         (EXTRA_DIST): Remove xstat.in.
58209
58210         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58211         * lib/stat.c: New file.  Contents mostly from xstat.in.
58212         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58213         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58214
58215         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58216         too.
58217         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58218
58219 2002-12-03  Jim Meyering  <jim@meyering.net>
58220
58221         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58222         but not semantics, to minimize the differences between these two files.
58223         (safe_read): Change comment to mention SAFE_READ_ERROR.
58224
58225         * lib/safe-read.c (IS_EINTR): Define.
58226         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58227
58228 2002-12-02  Jim Meyering  <jim@meyering.net>
58229
58230         * lib/safe-read.c (EINTR): Define.
58231         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58232         (INT_MAX): Provide fallback.
58233         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58234
58235         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58236
58237 2002-12-02  Bruno Haible  <bruno@clisp.org>
58238
58239         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58240         Define, taken from safe-read.c.
58241         (INT_MAX): Provide fallback.
58242         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58243         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58244
58245         * lib/safe-read.c (EINTR): Remove definition.
58246         (safe_read): Don't use EINTR if it is absent.
58247
58248 2002-12-01  Jim Meyering  <jim@meyering.net>
58249
58250         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58251         zero.
58252         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58253
58254 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58255
58256         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58257         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58258         with `if (! (value < limit)) abort ();', for readability.
58259
58260 2002-11-26  Karl Berry  <karl@gnu.org>
58261
58262         * lib/strdup.c: copy from libc again, with jim's ok.
58263         * lib/.cppi-disable: re-add strdup.c
58264
58265 2002-11-25  Karl Berry  <karl@gnu.org>
58266
58267         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58268         instead of "strtol.c".
58269
58270 2002-11-25  Karl Berry  <karl@gnu.org>
58271
58272         * config/install-sh: update from automake for variable quoting, $0 in
58273         error msgs, etc.
58274
58275         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58276         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58277         entry.
58278
58279 2002-11-25  Jim Meyering  <jim@meyering.net>
58280
58281         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58282
58283 2002-11-24  Karl Berry  <karl@gnu.org>
58284
58285         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58286         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58287
58288 2002-11-24  Jim Meyering  <jim@meyering.net>
58289
58290         Update from coreutils:
58291
58292         * lib/mktime.c: Merge in changes from libc.
58293
58294         Avoid a link-time failure on some Linux systems.
58295         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58296         (otherwise).
58297         (__mon_yday): Declare with the STATIC attribute.
58298         (__mktime_internal): Likewise.
58299         Based on a report from Greg Schafer.
58300
58301 2002-11-23  Jim Meyering  <jim@meyering.net>
58302
58303         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58304         Use `unsigned', not `int', as type of index.
58305
58306         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58307
58308         * lib/fsusage.c: Remove unneeded parentheses around operands of
58309         `defined'.
58310
58311 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58312
58313         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58314         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58315         so that we can be included first.
58316         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58317         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58318         No need to include stddef.h or sys/types.h any more.
58319         Surround local include files with "", not "<>".
58320         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58321         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58322         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58323         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58324         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58325         (ISPRINT): Remove; no longer needed now that we assume C89.
58326
58327         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58328         Preserve errno.
58329
58330         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58331         quotearg_char): Use SIZE_MAX rather than
58332         (size_t) -1 when we are talking about "infinity".
58333
58334         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58335
58336 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58337
58338         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58339         hint that one should use `if (! x) abort ();' rather than `assert
58340         (x);', and anyway it's one less thing to worry about configuring.
58341         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58342         hash_rehash, hash_insert): Use abort rather than assert.
58343
58344 2002-11-22  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/safe-read.h: Assume C89. Add comments.
58347         (safe_read): Change return type to size_t.
58348         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58349         byte counts > SSIZE_MAX correctly.
58350         * lib/safe-write.h: New file.
58351         * lib/safe-write.c: New file.
58352         * lib/full-read.h: New file.
58353         * lib/full-read.c: New file.
58354         * lib/full-write.h: Assume C89. Add comments.
58355         * lib/full-write.c: Include safe-write.h.
58356         (full_write): Rewritten to use safe_write.
58357         Suggested by Jim Meyering and Paul Eggert.
58358
58359 2002-11-21  Jim Meyering  <jim@meyering.net>
58360
58361         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58362
58363         Merge in changes from the coreutils.
58364
58365         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58366         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58367         <stdint.h>.
58368         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58369         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58370         int.  Work more efficiently if X is the same width as uintmax_t.
58371         Do not compare X to -1, to avoid bogus compiler warning.
58372         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58373         Don't assume that f_frsize and f_bsize are the same type.
58374
58375         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58376         warning on FreeBSD.
58377
58378         * lib/makepath.c (make_path): Restore umask *before* creating the final
58379         component.
58380         (make_path): Minor reformatting.
58381
58382         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58383         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58384         HAVE_MALLOC/HAVE_REALLOC.
58385
58386         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58387         dummy ones.  At least on GNU/Linux systems, `auto' means something
58388         else.
58389         From Michael Stone.
58390
58391 2002-11-21  Bruno Haible  <bruno@clisp.org>
58392
58393         Remove case insensitive option matching.
58394         * lib/argmatch.h (argcasematch): Remove declaration.
58395         (ARGCASEMATCH): Remove macro.
58396         (__xargmatch_internal): Remove case_sensitive argument.
58397         (XARGMATCH): Update.
58398         (XARGCASEMATCH): Remove macro.
58399         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58400         case_sensitive argument.
58401         (argcasematch): Remove function.
58402         (__xargmatch_internal): Remove case_sensitive argument.
58403         (main): Use XARGMATCH instead of XARGCASEMATCH.
58404
58405         * lib/xmalloc.c: Change compile-time error message. Add comment about
58406         required autoconf version.
58407
58408 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58409
58410         Merge argmatch cleanups from Bison.  Assume C89.
58411
58412         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58413         Include stdlib.h, for EXIT_FAILURE.
58414         Always include <string.h>, since we assume C89.
58415         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58416         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58417         Include <stddef.h> instead, since it's all we need for size_t.
58418         (PARAMS): Remove.  All uses removed.
58419         (ARRAY_CARDINALITY): Do not bother to #undef.
58420         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58421         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58422         Remove unnecessary parentheses.
58423         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58424         Insert necessary parentheses.
58425         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58426         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58427
58428 2002-11-19  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58431         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58432
58433         * lib/mbswidth.h (PARAMS): Remove macro.
58434         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58435         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58436
58437         * lib/gcd.h (PARAMS): Remove macro.
58438         (gcd): Use ANSI C function declarations.
58439         * lib/gcd.c (gcd): Likewise.
58440
58441 2002-11-15  Bruno Haible  <bruno@clisp.org>
58442
58443         * lib/strcspn.c: Include <stddef.h>.
58444         (strcspn): Use ANSI C function declaration. Change return type to
58445         size_t. Use NULL.
58446         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58447         (strpbrk): Use NULL.
58448         * lib/strpbrk.h (PARAMS): Remove macro.
58449         (strpbrk): Use ANSI C function declaration.
58450         * lib/strstr.c: Don't include <sys/types.h>.
58451         * lib/strstr.h (PARAMS): Remove macro.
58452         (strstr): Use ANSI C function declarations.
58453
58454 2002-11-14  Karl Berry  <karl@gnu.org>
58455
58456         * config/mkinstalldirs: `do' on separate line, instead of
58457         `for var; do'.
58458
58459 2002-11-06  Bruno Haible  <bruno@clisp.org>
58460
58461         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58462         * lib/gcd.c (gcd): Likewise.
58463
58464 2002-11-05  Bruno Haible  <bruno@clisp.org>
58465
58466         * lib/gcd.h: New file, from gettext-0.11.5.
58467         * lib/gcd.c: New file, from gettext-0.11.5.
58468
58469 2002-11-05  Bruno Haible  <bruno@clisp.org>
58470
58471         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58472         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58473         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58474         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58475
58476         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58477         <libintl.h>.
58478         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58479         <libintl.h>.
58480
58481         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58482         * lib/human.c: Include gettext.h instead of <libintl.h>.
58483         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58484         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58485         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58486         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58487         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58488         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58489         (textdomain): Remove definition.
58490         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58491
58492         * lib/long-options.c: Remove include of <libintl.h> and definition of
58493         _.
58494         * lib/same.c: Remove include of <libintl.h> and definition of _.
58495
58496 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58497
58498         * lib/config.charset: A few additions for Solaris.
58499
58500 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58501
58502         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58503         * lib/localcharset.c (locale_charset): Declare as extern "C".
58504
58505 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58506
58507         * lib/config.charset: msdos in uk_UA uses CP1125.
58508
58509 2002-11-04  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58512         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58513         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58514         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58515         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58516
58517 2002-11-04  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/localcharset.c (locale_charset): Don't return an empty string.
58520
58521 2002-11-04  Bruno Haible  <bruno@clisp.org>
58522
58523         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58524         aliases.
58525
58526 2002-11-04  Bruno Haible  <bruno@clisp.org>
58527
58528         * lib/config.charset: Update for newest glibc. Add canonical names
58529         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58530
58531 2002-11-04  Bruno Haible  <bruno@clisp.org>
58532
58533         * lib/config.charset: Add support for NetBSD.
58534
58535 2002-11-04  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58538
58539 2002-11-01  Bruno Haible  <bruno@clisp.org>
58540
58541         * configure.in: Add AC_CONFIG_AUX_DIR call.
58542         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58543         test/Makefile.
58544         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58545
58546 2002-09-28  Karl Berry  <karl@gnu.org>
58547
58548         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58549         installed automake until the next release, since changes have been
58550         made.
58551
58552 2002-09-25  Karl Berry  <karl@gnu.org>
58553
58554         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58555         * lib/getopt*: copy from libc/posix.
58556         * lib/gettext.h: copy from gettext.
58557         * lib/.cppi-disable: add strdup.c, gettext.h.
58558
58559 2002-09-25  Karl Berry  <karl@gnu.org>
58560
58561         * config/srclist.txt: enable gettext.h check.
58562         * config/config.{guess,sub}: update from prep.
58563         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58564                 from automake 1.6.3.
58565         See srclist*.
58566
58567 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58568
58569         * regex.c (PATFETCH): Remove the translating fetch.
58570         (PATFETCH_RAW): Rename to PATFETCH.
58571         (set_image_of_range): New fun.
58572         (SET_RANGE_TABLE_WORK_AREA): Use it.
58573         (regex_compile): Don't translate the pattern chars so eagerly.
58574         Only do it when inserting an `exactn' bytecode or when handling
58575         a char-range.
58576         (mutually_exclusive_p): Avoid empty statement.
58577
58578 2002-07-06  Jim Meyering  <meyering@lucent.com>
58579
58580         * m4/README: Don't mention Makefile.am.in.
58581         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58582
58583 2002-07-01  Jim Meyering  <meyering@lucent.com>
58584
58585         * lib/c-stack.c: Include sys/time.h.
58586         From Volker Borchert.
58587
58588 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58589
58590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58591
58592 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58593
58594         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58595         New macro.  Use it uniformly instead of
58596         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58597         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58598         reported by Vin Shelton.
58599
58600 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58601
58602         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58603         Do not assume SA_SIGINFO behavior.
58604         Bug reported by Jim Meyering on NetBSD 1.5.2.
58605
58606 2002-06-22  Jim Meyering  <meyering@lucent.com>
58607
58608         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58609         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58610
58611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58612         now that configure.ac uses AC_GNU_SOURCE.
58613         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58614         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58615
58616         Update to latest tools.  Suggestions from Paul Eggert.
58617         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58618         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58619         * m4/fnmatch.m4: Likewise.
58620         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58621         to AC_HEADER_STDBOOL
58622
58623 2002-06-22  Jim Meyering  <meyering@lucent.com>
58624
58625         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58626         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58627
58628 2002-06-22  Jim Meyering  <meyering@lucent.com>
58629
58630         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58631
58632         * lib/exitfail.c, exitfail.h: Likewise.
58633         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58634
58635         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58636         of fnmatch.h.
58637         (EXTRA_DIST): Add fnmatch_loop.c.
58638         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58639
58640         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58641         * lib/fnmatch.c: Update from diffutils-2.8.2.
58642         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58643         * lib/fnmatch.h: Remove file.
58644
58645 2002-06-21  Jim Meyering  <meyering@lucent.com>
58646
58647         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58648         * m4/mbrtowc.m4: Likewise.
58649
58650         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58651         * m4/mbswidth.m4: Reflect name change:
58652         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58653         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58654
58655         * m4/lib-link.m4: Update from gettext-0.11.2.
58656         * m4/gettext.m4: Likewise.
58657
58658         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58659         From Alfred M. Szmidt.
58660
58661 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58662
58663         * lib/file-type.h: Report an error if neither S_ISREG nor
58664         S_IFREG is defined, instead of using a test specific to glibc
58665         2.2.  This should be safe, since POSIX requires S_ISREG and
58666         Unix Version 7 had S_IFREG.  We don't need to check for
58667         <sys/types.h> since we don't use any symbols that it defines.
58668
58669 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58670
58671         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58672         $@-t, so that each temporary file name is unique and valid in the first
58673         8 characters, for operation under DOS.
58674
58675 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58676
58677         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58678
58679 2002-06-15  Jim Meyering  <meyering@lucent.com>
58680
58681         Work even with DJGPP 2.03, which lacks support for symlinks.
58682         From Richard Dawe.
58683         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58684         is defined.
58685         * lib/lchown.c (S_ISLNK): Likewise.
58686
58687 2002-06-15  Jim Meyering  <meyering@lucent.com>
58688
58689         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58690         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58691         have been included before this file.
58692
58693 2002-06-14  Jim Meyering  <meyering@lucent.com>
58694
58695         * lib/file-type.h: Use the version from diffutils-2.8.2.
58696         * lib/file-type.c: Likewise.
58697
58698 2002-06-07  Jim Meyering  <meyering@lucent.com>
58699
58700         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58701         They're needed at least for NetBSD 1.5.2.
58702         ($statxfs_includes): Include those same headers.
58703         ($statxfs_includes): Include sys/vfs.h if available.
58704         ($statxfs_includes): Likewise for sys/statvfs.h.
58705         Check for the following members in both structs statfs and statvfs:
58706         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58707
58708 2002-06-01  Jim Meyering  <meyering@lucent.com>
58709
58710         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58711         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58712
58713 2002-05-28  Jim Meyering  <meyering@lucent.com>
58714
58715         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58716         Reported by Volker Borchert.
58717
58718 2002-05-27  Jim Meyering  <meyering@lucent.com>
58719
58720         Fix a problem seen only on nonconforming systems whereby ls.c's
58721         use of localtime, and then of gettimeofday would cause trouble:
58722         the localtime call used to initialize rpl_gettimeofday's save
58723         mechanism would clobber ls's current local time information so
58724         that in any long listing the first file would always be listed
58725         with date 1970-01-01.  Analysis by Volker Borchert.
58726
58727         * lib/gettimeofday.c (localtime): Undefine.
58728         (rpl_localtime): New function.
58729
58730 2002-05-27  Jim Meyering  <meyering@lucent.com>
58731
58732         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58733         localtime.
58734
58735         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58736         use the replacement function; it wouldn't resolve at link time.
58737         Reported by Volker Borchert.
58738
58739 2002-05-22  Jim Meyering  <meyering@lucent.com>
58740
58741         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58742         file-type.h.
58743         * lib/file-type.h: New file.
58744         * lib/file-type.c (file_type): New file/function.  Extracted from
58745         diffutils.
58746
58747 2002-04-30  Jim Meyering  <meyering@lucent.com>
58748
58749         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58750
58751 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58752
58753         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58754
58755 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58756
58757         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
58758         Do not check for alloca.h (no longer used) or stdbool.h (was never
58759         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
58760
58761 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58762
58763         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
58764
58765 2002-04-29  Jim Meyering  <meyering@lucent.com>
58766
58767         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
58768         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
58769         Use AC_FUNC_STRNLEN here instead.
58770
58771         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
58772         With autoconf-2.53a, it's part of AC_PROG_CC.
58773
58774 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58775
58776         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
58777         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
58778
58779 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58780
58781         * lib/sig2str.h, lib/sig2str.c: New files.
58782         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
58783
58784 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58785
58786         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
58787         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
58788         of 127, since 64 is the largest conceivable number for ancient
58789         nonstandard hosts.
58790         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
58791
58792 2002-04-28  Jim Meyering  <meyering@lucent.com>
58793
58794         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
58795
58796 2002-04-24  Jim Meyering  <meyering@lucent.com>
58797
58798         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
58799         (jm_PREREQ): Use it.
58800
58801         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
58802         mach/mach.h fcntl.h.
58803         Check for this function: setlocale.
58804
58805 2002-04-24  Jim Meyering  <meyering@lucent.com>
58806
58807         * lib/gettext.h: New file, from Gettext.
58808         * lib/Makefile.am (INCLUDES): Remove -I../intl.
58809         (libfetish_a_SOURCES): Add gettext.h.
58810
58811 2002-04-16  Jim Meyering  <meyering@lucent.com>
58812
58813         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
58814         ut_pid, ut_id, ut_exit.
58815
58816 2002-04-16  Jim Meyering  <meyering@lucent.com>
58817
58818         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
58819         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
58820         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
58821
58822 2002-04-12  Jim Meyering  <meyering@lucent.com>
58823
58824         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
58825         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
58826         existence of the getmntinfo function.  Needed for Darwin 5.3.
58827
58828         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
58829         This is necessary at least on Darwin 5.3.
58830
58831         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
58832         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
58833         strnlen.o in the library, and that makes some versions of ranlib
58834         object.
58835
58836 2002-04-12  Jim Meyering  <meyering@lucent.com>
58837
58838         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
58839
58840 2002-04-09  Jim Meyering  <meyering@lucent.com>
58841
58842         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
58843         to be more precise.  Rather than saying we're checking whether the
58844         function `works', say what we're testing.
58845         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
58846         Reported by Bruno Haible.
58847
58848 2002-03-10  Jim Meyering  <meyering@lucent.com>
58849
58850         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
58851         Suggestion from Santiago Vila.
58852
58853 2002-03-08  Jim Meyering  <meyering@lucent.com>
58854
58855         * lib/rename.c: Mention that this wrapper is needed also on
58856         mips-dec-ultrix4.4 systems.
58857
58858 2002-03-02  Jim Meyering  <meyering@lucent.com>
58859
58860         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
58861         not HAVE_CLOCK_SETTIME.
58862
58863 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58864
58865         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
58866         Check for clock_settime.
58867
58868 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58869
58870         * lib/nanosleep.h: Rename to....
58871         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
58872
58873         * lib/gettime.c: New file.
58874         * lib/settime.c: New file.
58875         * lib/stime.c: Remove.
58876
58877         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
58878         timespec.h.  Remove nanosleep.h.
58879
58880 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58881
58882         * m4/acl.m4: New file.
58883         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
58884         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
58885
58886 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58887
58888         * lib/acl.c, lib/acl.h: New files.
58889         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
58890
58891 2002-02-24  Jim Meyering  <meyering@lucent.com>
58892
58893         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
58894         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
58895         cause trouble.  Reported by Nelson Beebe.
58896
58897 2002-02-23  Paul Eggert  <eggert@twinsun.com>
58898
58899         * lib/path-concat.c (xpath_concat): Reorder code to pacify
58900         compilers that don't know that xalloc_die never returns.
58901
58902 2002-02-20  Jim Meyering  <meyering@lucent.com>
58903
58904         * lib/getdate.c: Regenerate using bison-1.33.
58905
58906 2002-02-17  Jim Meyering  <meyering@lucent.com>
58907
58908         * config/config.guess (main): Don't use `head -1'; it's no longer
58909         portable. Use `sed 1q' instead.
58910
58911 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
58912
58913         * m4/codeset.m4: Upgrade to gettext-0.11.
58914         * m4/gettext.m4: Upgrade to gettext-0.11.
58915         * m4/glibc21.m4: Upgrade to gettext-0.11.
58916         * m4/iconv.m4: Upgrade to gettext-0.11.
58917         * m4/isc-posix.m4: Upgrade to gettext-0.11.
58918         * m4/lcmessage.m4: Upgrade to gettext-0.11.
58919         * m4/lib-ld.m4: New file, from gettext-0.11.
58920         * m4/lib-link.m4: New file, from gettext-0.11.
58921         * m4/lib-prefix.m4: New file, from gettext-0.11.
58922         * m4/progtest.m4: Upgrade to gettext-0.11.
58923
58924 2002-02-15  Paul Eggert  <eggert@twinsun.com>
58925
58926         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
58927         (jm_PREREQ): Use it.
58928
58929 2002-02-15  Paul Eggert  <eggert@twinsun.com>
58930
58931         * lib/posixver.c, lib/posixver.h: New files.
58932         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58933
58934 2002-02-02  Paul Eggert  <eggert@twinsun.com>
58935             Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
58938         (fwrite_success_callback): New declaration.
58939         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
58940         print_unicode_char. Call failure callback instead of error.
58941         (fwrite_success_callback): New function.
58942         (exit_failure_callback): New function.
58943         (fallback_failure_callback): New function.
58944         (print_unicode_char): Call unicode_to_mb.
58945
58946 2002-01-26  Jim Meyering  <meyering@lucent.com>
58947
58948         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
58949         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
58950
58951 2002-01-26  Jim Meyering  <meyering@lucent.com>
58952
58953         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
58954
58955 2002-01-22  Paul Eggert  <eggert@twinsun.com>
58956
58957         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
58958
58959 2002-01-22  Jim Meyering  <meyering@lucent.com>
58960
58961         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
58962         Otherwise, some versions of automake would omit the rule that makes
58963         Makefile from Makefile.in.
58964
58965 2002-01-21  Paul Eggert  <eggert@twinsun.com>
58966
58967         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
58968         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58969         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
58970         (memcoll): Set errno to zero if there is no error.
58971
58972         * lib/quotearg.c (quotearg_buffer_restyled):
58973         Fix bug with quoting buffers containing NUL when backslashing escapes.
58974         This bug was exposed by the other changes in this patch.
58975         (quotearg_n_options): New arg ARGSIZE.
58976         All callers changed.
58977         (quoting_options_from_style): New function.
58978         (quotearg_n_style): Use it.
58979         (quotearg_n_style_mem): New function.
58980
58981         * lib/quotearg.h (quotearg_n_style_mem): New function.
58982
58983 2002-01-19  Jim Meyering  <meyering@lucent.com>
58984
58985         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
58986         Remove useless quotes: DF_PROG="df".
58987         * m4/strnlen.m4: New file.
58988
58989 2002-01-16  Paul Eggert  <eggert@twinsun.com>
58990
58991         * lib/backupfile.c (ISDIGIT): Comment fix.
58992         * lib/getdate.y (ISDIGIT): Likewise.
58993         * lib/posixtm.c (ISDIGIT, year): Likewise.
58994         * lib/strverscmp.c (ISDIGIT): Likewise.
58995         * lib/userspec.c (ISDIGIT): Likewise.
58996
58997 2002-01-16  Jim Meyering  <meyering@lucent.com>
58998
58999         * lib/getdate.y: Add three semicolons, each just before a closing
59000         brace. Bison (as of version 1.31) no longer papers over that mistake.
59001
59002 2002-01-05  Jim Meyering  <meyering@lucent.com>
59003
59004         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59005
59006 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59007
59008         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59009         not silently exit merely because the output buffer happens to
59010         have nothing pending.
59011
59012 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59013
59014         See the big note in ../ChangeLog.
59015         * lib/human.c (suffixes): Prefer K to k for 1024.
59016         (generate_suffix_backwards): New function.
59017         (human_readable_inexact): Use it.
59018         * lib/xstrtol.c (__xstrtol): If there is no number but there
59019         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59020         Accept 'K' as well as 'k'.
59021
59022 2001-12-15  Jim Meyering  <meyering@lucent.com>
59023
59024         * lib/regex.h (__restrict_arr): Update from libc.
59025
59026         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59027         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59028         (STREQ): Define.
59029
59030 2001-12-14  Jim Meyering  <meyering@lucent.com>
59031
59032         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59033         Suggestion from Bruno Haible.
59034
59035 2001-12-10  Jim Meyering  <meyering@lucent.com>
59036
59037         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59038         xrealloc, Instead, include "xalloc.h".
59039         (initbuffer): Don't cast xmalloc return value to char*.
59040         (readline): Reword comment.
59041         Don't cast xrealloc return value to char*
59042         Return NULL, not 0.
59043
59044 2001-12-09  Jim Meyering  <meyering@lucent.com>
59045
59046         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59047         about `signed and unsigned type in conditional expression'.
59048         * lib/posixtm.c (posix_time_parse): Likewise.
59049
59050         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59051
59052         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59053         to avoid a pedantic warning.
59054
59055         * lib/getstr.c: Don't include assert.h.
59056         (getstr): Remove warning-evoking assertions.
59057         Return -1 if offset parameter is out of bounds.
59058         Change the type of a local from int to size_t.
59059
59060         * lib/strftime.c (my_strftime_localtime_r): Include this function
59061         definition in the `#if ! HAVE_TM_GMTOFF' block.
59062
59063         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59064         Include xalloc.h instead.
59065
59066 2001-12-02  Jim Meyering  <meyering@lucent.com>
59067
59068         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59069         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59070         included.
59071
59072         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59073         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59074
59075 2001-11-30  Akim Demaille  <akim@epita.fr>
59076
59077         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59078         before being defined.
59079
59080 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59081
59082         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59083         First arg is int, not unsigned.
59084         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59085         (SIZE_MAX, UINT_MAX): New macros.
59086         (quotearg_n_options): Abort if N is negative.
59087         Avoid overflow check on hosts where size_t is 64 bits and int
59088         is 32 bits, as overflow is impossible there.
59089         Fix off-by-one typo that caused unnecessary reallocation.
59090
59091 2001-11-27  Jim Meyering  <meyering@lucent.com>
59092
59093         * lib/tempname.c: Merge with version from libc.
59094         * lib/regex.c: Likewise.
59095
59096         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59097         systems for which STDC_HEADERS is 0, it was not included, resulting in
59098         a warning about an integer-to-pointer conversion problem with getenv.
59099         Reported by Volker Borchert.
59100
59101 2001-11-26  Jim Meyering  <meyering@lucent.com>
59102
59103         * lib/gtod.h: Remove file.
59104         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59105         * lib/gettimeofday.c: Don't include gtod.h.
59106         (GTOD_init): Remove function.
59107         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59108         Suggestion from Volker Borchert.
59109
59110 2001-11-23  Jim Meyering  <meyering@lucent.com>
59111
59112         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59113         it.
59114         * lib/hash.c (struct hash_table): Define it here instead.
59115
59116 2001-11-22  Jim Meyering  <meyering@lucent.com>
59117
59118         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59119
59120 2001-11-20  Jim Meyering  <meyering@lucent.com>
59121
59122         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59123         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59124
59125 2001-11-19  Jim Meyering  <meyering@lucent.com>
59126
59127         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59128         directory.  Use "conftestXXXXXX" as the template.
59129         Suggestion from Paul Eggert.
59130
59131         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59132         immediately, so the test doesn't mistakenly hit the max-open-files
59133         limit.
59134
59135 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59136
59137         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59138         (TEMPORARIES): New macro.
59139         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59140         removes an artificial limitation (e.g. HP-UX 10.20, where
59141         TMP_MAX is 17576).
59142
59143 2001-11-18  Jim Meyering  <meyering@lucent.com>
59144
59145         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59146
59147 2001-11-18  Jim Meyering  <meyering@lucent.com>
59148
59149         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59150         on SunOS 4.
59151
59152         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59153         files will be created before anything else.
59154
59155 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59156
59157         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59158         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59159
59160 2001-11-17  Jim Meyering  <meyering@lucent.com>
59161
59162         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59163         Prompted by a report from Bob Proulx.
59164
59165         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59166         Instead, require UTILS_FUNC_MKSTEMP.
59167
59168 2001-11-17  Jim Meyering  <meyering@lucent.com>
59169
59170         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59171         Now, that's done as part of AC_FUNC_STRTOD.
59172
59173 2001-11-17  Jim Meyering  <meyering@lucent.com>
59174
59175         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59176         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59177         rather than group writable.  Patch by Juan F. Codagnone.
59178
59179         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59180         xrealloc, Instead, include "xalloc.h".
59181
59182         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59183         Remove explicit declarations of xmalloc, xrealloc,
59184         and xstrdup.  Instead, include "xalloc.h".
59185
59186         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59187         unlocked-io.h.
59188         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59189         Likewise.
59190         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59191
59192         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59193         Reported by Padraig Brady.
59194
59195         * lib/mkstemp.c: #undef mkstemp.
59196         Include config.h.
59197         (rpl_mkstemp): Rename from mkstemp.
59198         Protoize.
59199
59200 2001-11-16  Jim Meyering  <meyering@lucent.com>
59201
59202         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59203         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59204         determine the amount of total physical memory, use pstat_getstatic.
59205         HPUX-11 doesn't define _SC_PHYS_PAGES.
59206         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59207         If sysconf couldn't be used to determine the amount of available
59208         physical memory, use both pstat_getstatic and pstat_getdynamic.
59209         Based on a patch from Bob Proulx.
59210
59211 2001-11-10  Jim Meyering  <meyering@lucent.com>
59212
59213         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59214         (jm_PREREQ): Use it.
59215
59216 2001-11-09  Jim Meyering  <meyering@lucent.com>
59217
59218         * m4/jm-macros.m4: Require autoconf-2.52f.
59219         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59220         Use these AC_-prefixed names, not the AM_-prefixed ones.
59221
59222         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59223
59224 2001-11-05  Jim Meyering  <meyering@lucent.com>
59225
59226         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59227
59228 2001-11-04  Jim Meyering  <meyering@lucent.com>
59229
59230         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59231         $DEFS.
59232
59233 2001-11-03  Jim Meyering  <meyering@lucent.com>
59234
59235         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59236         of AC_DEFUN.
59237
59238         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59239         know the name of the variable in the macro definition.
59240
59241 2001-11-03  Jim Meyering  <meyering@lucent.com>
59242
59243         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59244         in argmatch_to_argument call.
59245
59246         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59247         argument.
59248
59249         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59250         e.g., a fault due to an attempt to free a NULL pointer.
59251
59252 2001-11-01  Jim Meyering  <meyering@lucent.com>
59253
59254         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59255         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59256
59257 2001-11-01  Jim Meyering  <meyering@lucent.com>
59258
59259         * lib/dirfd.c, lib/dirfd.h: New files.
59260         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59261
59262         * lib/hash.c (hash_print) [TESTING]: Clean up.
59263
59264 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59265
59266         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59267         to avoid a warning if -Wall.
59268
59269 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59270
59271         * README: New file
59272         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59273         (per RMS's instructions, this is now the canonical source)
59274         * lgpl/, gpl/: New directories.
59275
59276 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59277
59278         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59279
59280 2001-10-21  Jim Meyering  <meyering@lucent.com>
59281
59282         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59283         this code would end up calling gettext even in packages built
59284         with --disable-nls.
59285         * lib/getopt.c (_): Likewise.
59286         * lib/regex.c (_): Likewise.
59287
59288 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59289
59290         * m4/error.m4 (jm_PREREQ_ERROR):
59291         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59292         AC_FUNC_STRERROR_R does that.
59293         Check for strerror declaration.
59294
59295         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59296         are supposed to have them these days.
59297         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59298         Merge changes from latest Autoconf CVS.
59299         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59300         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59301         POSIX decided to standardize on the int flavor of strerror_r.
59302
59303 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59304
59305         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59306         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59307         Use strerror_r that is only a macro, even if it is not a function.
59308         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59309         (private_strerror): Use prototypes, not old-style function definition.
59310         (print_errno_message): New function.
59311         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59312         char*-flavored one.
59313         (error_tail, error, error_at_line): Use it.
59314
59315 2001-10-11  Jim Meyering  <meyering@lucent.com>
59316
59317         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59318         and quote_n (1, ... to avoid clobbering a buffer.
59319
59320 2001-10-05  Jim Meyering  <meyering@lucent.com>
59321
59322         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59323         hash-pjw.h.
59324         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59325         * lib/hash-pjw.h: New file.
59326
59327 2001-09-30  Jim Meyering  <meyering@lucent.com>
59328
59329         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59330         `struct fsstat' has the `f_fstypename' member.
59331         Use that to define FS_TYPE, which is now used to make
59332         the getfsstat link test tighter.
59333
59334 2001-09-30  Jim Meyering  <meyering@lucent.com>
59335
59336         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59337         Include <sys/ucred.h>, for Apple Darwin.
59338         Include sys/mount.h and sys/fs_types.h only if available.
59339         (FS_TYPE): Define.
59340         (read_filesystem_list): Use FS_TYPE.
59341
59342 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59343
59344         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59345         a boolean context.
59346
59347 2001-09-29  Jim Meyering  <meyering@lucent.com>
59348
59349         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59350         [one-argument getmntent function]): Include stdio.h before mntent.h.
59351         SunOS 4.1.x needs it for the declaration of `FILE'.
59352         Patch by Volker Borchert.
59353
59354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59355         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59356         sys/fs_types.h, and make the link-test for getfsstat guard #include
59357         directives with appropriate #if HAVE_*_H tests so that we can
59358         detect getfsstat on Apple Darwin1.3.7 systems.
59359         Reported by Nelson Beebe.
59360         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59361
59362 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59363
59364         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59365         #defines strtoimax.  Also treat the other strto* functions
59366         like strtoimax.
59367
59368         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59369         Check for strtoul and strtoumax,
59370         as those declarations are made even in the signed case.
59371         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59372         Likewise, for strtol and strtoimax.
59373
59374 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59375
59376         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59377         #defines strtoimax.  Also treat the other strto* functions
59378         like strtoimax.
59379
59380         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59381         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59382         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59383
59384 2001-09-26  Jim Meyering  <meyering@lucent.com>
59385
59386         Most macros in unlocked-io.h had the wrong number of arguments.
59387         * lib/gen-uio: New script.
59388         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59389         * lib/unlocked-io.hin: Remove file.
59390         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59391         rather than trying to embed it here.
59392         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59393         Reported by Padraig Brady.
59394
59395 2001-09-25  Volker Borchert  <bt@teknon.de>
59396
59397         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59398         `result'.
59399
59400 2001-09-24  Jim Meyering  <meyering@lucent.com>
59401
59402         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59403
59404 2001-09-23  Jim Meyering  <meyering@lucent.com>
59405
59406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59407         instead of the mere test for existence of mntent.h.  The latter
59408         would get a false-positive on AIX 3.4 systems.
59409         In the outer getmntent if-block, don't die if neither of the getmntent
59410         tests succeeds.  Instead, just fall through and continue with the
59411         remaining tests.
59412
59413 2001-09-23  Jim Meyering  <meyering@lucent.com>
59414
59415         * lib/mountlist.c: Remove useless parentheses in #if directives.
59416         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59417         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59418
59419 2001-09-22  Jim Meyering  <meyering@lucent.com>
59420
59421         * m4/gettext.m4: New file.  From gettext.
59422         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59423         * m4/progtest.m4: Likewise
59424         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59425         * m4/glibc21.m4: Likewise.
59426
59427         * m4/libintl.m4: Remove.  No longer used.
59428
59429 2001-09-22  Jim Meyering  <meyering@lucent.com>
59430
59431         * lib/localcharset.c: Update from latest gettext.
59432         * lib/config.charset: Likewise.
59433
59434 2001-09-20  Jim Meyering  <meyering@lucent.com>
59435
59436         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59437         strtoimax.
59438         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59439         strtoumax.
59440
59441 2001-09-20  Jim Meyering  <meyering@lucent.com>
59442
59443         * lib/xstrtol.c (strtoimax): Guard declaration with
59444         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59445         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59446         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59447         (strtoumax): Likewise, for completeness (it wasn't necessary).
59448
59449 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59450
59451         * lib/strtoimax.c (HAVE_LONG_LONG):
59452         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59453         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59454         to work around bug in IBM C compiler.
59455
59456 2001-09-17  Jim Meyering  <meyering@lucent.com>
59457
59458         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59459         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59460         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59461         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59462         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59463         whenever the right hand side need not be expanded by the shell.
59464
59465 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59466
59467         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59468         library.  It's not correct, as some older glibcs are buggy.
59469         fnmatch wasn't fixed until glibc 2.2.
59470
59471         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59472         special shell magic here.
59473
59474 2001-09-16  Jim Meyering  <meyering@lucent.com>
59475
59476         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59477         * m4/jm-macros.m4: Require it.
59478
59479 2001-09-16  Jim Meyering  <meyering@lucent.com>
59480
59481         * lib/mkdir.c: New file.
59482
59483 2001-09-15  Jim Meyering  <meyering@lucent.com>
59484
59485         * m4/jm-macros.m4: Check for help2man.
59486
59487 2001-09-11  Jim Meyering  <meyering@lucent.com>
59488
59489         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59490         The body, by Paul Eggert, was moved here from configure.in.
59491         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59492
59493 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59494
59495         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59496         (jm_PREREQ): Use it.
59497
59498 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59499
59500         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59501         Use ssize_t, not int, to store result of readlink.
59502         Check for ssize_t overflow as well as size_t overflow,
59503         as POSIX says the result of readlink is implementation-defined
59504         when ssize_t overflows.
59505         Remove unnecessary cast to char*.
59506         Use free+malloc instead of realloc, as the storage doesn't need
59507         to be preserved and it's clearer and can be more efficient that way.
59508         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59509         * lib/xreadlink.h (xreadlink): Update prototype.
59510
59511 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59512
59513         * lib/xgetcwd.c: Revert some of the previous change; intead,
59514         fix the HAVE_GETCWD_NULL code to behave more like the
59515         !HAVE_GETCWD_NULL code used to.
59516
59517         Include "xalloc.h".
59518         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59519         invoke xalloc_die.
59520
59521 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59522
59523         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59524         sys/param.h, as pathmax.h includes them.
59525
59526 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59527
59528         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59529         (jm_PREREQ_XGETCWD): New macro.
59530
59531         * m4/getcwd.m4: New file.
59532
59533 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59534
59535         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59536         like the HAVE_GETCWD_NULL code.
59537         Include pathmax.h if not HAVE_GETCWD.
59538         Do not include xalloc.h.
59539         (INITIAL_BUFFER_SIZE): New symbol.
59540         Do not use xmalloc / xrealloc, since the caller is responsible for
59541         handling errors.  Preserve errno around `free' during failure.
59542         Do not overrun buffer when using getwd.
59543
59544 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59545
59546         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59547         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59548         getcwd (NULL, 0).
59549
59550 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59551
59552         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59553         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59554         spotted by Jim Meyering.
59555
59556 2001-09-03  Jim Meyering  <meyering@lucent.com>
59557
59558         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59559         failure.
59560
59561 2001-09-02  Jim Meyering  <meyering@lucent.com>
59562
59563         * lib/error.c: Update from GNU libc.
59564
59565 2001-09-01  Jim Meyering  <meyering@lucent.com>
59566
59567         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59568         Used by df.
59569
59570 2001-09-01  Jim Meyering  <meyering@lucent.com>
59571
59572         * lib/xreadlink.c: New file.
59573         * lib/xreadlink.h: New file.
59574         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59575         xreadlink.h.
59576
59577         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59578         doesn't conflict with sparc Solaris 7's definition in
59579         /usr/include/sys/int_types.h.
59580
59581         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59582         files.
59583         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59584         and strncasecmp as r-values.  Unixware didn't have declarations.
59585
59586 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59587
59588         * lib/xstrtol.h: Add copyright notice.
59589         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59590         LONGINT_INVALID_SUFFIX_CHAR.
59591
59592 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59593
59594         * lib/xstrtol.c (strtoimax): New decl.
59595
59596 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59597
59598         * lib/xgetcwd.c: Don't include pathmax.h.
59599         Include stdlib.h and unistd.h if available.
59600         Include xalloc.h.
59601         (xmalloc, xstrdup, free): Remove decls.
59602         (xgetcwd): Don't assume sizes fit in unsigned.
59603         Check for overflow when computing sizes.
59604         Simplify reallocation code.
59605
59606 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59607
59608         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59609         a directory's st_size can have an arbitrary value, so the old
59610         usage could waste an arbitrary amount of memory.  All uses
59611         changed.
59612         * lib/savedir.h: Update prototype.
59613
59614 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59615
59616         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59617
59618         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59619         old strtoimax.c.
59620
59621         Also, make the following further changes to make this file's
59622         configuration more similar to that of strtol.c:
59623         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59624         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59625         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59626         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59627         changed to signed values.
59628
59629         And make the following changes as well:
59630         Fix copyright notice, as 1999 was missing.
59631         (verify): New macro.
59632         (strtoimax): Check sizes at compile-time, not run-time.
59633         Prefer strtol to strtoll if both work.
59634         (main): Remove; it was not that useful and was a pain to maintain.
59635
59636         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59637
59638 2001-08-31  Jim Meyering  <meyering@lucent.com>
59639
59640         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59641         Use an initial, malloc'd, buffer of length 128 rather than
59642         a statically allocated one of length 1024.
59643
59644 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59645
59646         Simplify code, partly by assuming autoconf 2.52 semantics.
59647
59648         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59649
59650         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59651         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59652         All uses removed.
59653         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59654         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59655         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59656         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59657         jm_AC_HEADER_INTTYPES_H.
59658         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59659
59660         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59661
59662         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59663         Quote first arg of AC_DEFUN.
59664         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59665         since they are needed to parse the include file even if we need
59666         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59667         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59668         but with opposite signedness.
59669
59670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59671
59672         Merge 'exclude' changes from tar 1.13.22.
59673         This fixes one or two unlikely storage allocation overflow bugs,
59674         but doesn't change user-visible behavior otherwise.
59675
59676 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59677
59678         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59679         (jm_PREREQ_EXCLUDE): New macro.
59680
59681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59682
59683         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59684         tm to be declared.
59685
59686 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59687
59688         * lib/hash.c: Remove '2001' from copyright notice.
59689
59690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59691
59692         * lib/full-write.h: New file.
59693         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59694         * lib/full-write.c: Correct credits, as cccp.c no longer
59695         exists and anyway it was so heavily changed from the old cccp
59696         code as to be unrecognizable.  Include full-write.h.
59697         (full_write) Return size_t, with short writes meaning failure.
59698         All callers changed.  This fixes a bug with large buffers
59699         on 64-bit hosts.
59700         * lib/utime.c: Include full-write.h.
59701
59702 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59703
59704         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59705         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59706         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59707         Include if available.
59708         (<xalloc.h>): Include
59709         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59710         (verify): New macro.  Use it to verify that EXCLUDE macros do not
59711         collide with FNM macros.
59712         (struct patopts): New struct.
59713         (struct exclude): Use it, as exclude patterns now come with options.
59714         (new_exclude): Support above changes.
59715         (new_exclude, add_exclude_file):
59716         Initial size must now be a power of two to simplify overflow checking.
59717         (free_exclude, fnmatch_no_wildcards): New function.
59718         (excluded_filename): No longer requires options arg, as the options
59719         are determined by add_exclude.  Now returns bool, not int.
59720         (excluded_filename, add_exclude):
59721         Add support for the fancy new exclusion options.
59722         (add_exclude, add_exclude_file): Now takes int options arg.
59723         Check for arithmetic overflow when computing sizes.
59724         (add_exclude_file): xrealloc might modify errno, so don't
59725         realloc until after errno might be used.
59726
59727         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59728         New macros.
59729         (free_exclude): New decl.
59730         (add_exclude, add_exclude_file): Now takes int options arg.
59731         (excluded_filename): No longer requires options arg, as the options
59732         are determined by add_exclude.  Now returns bool, not int.
59733
59734 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59735
59736         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59737
59738 2001-08-27  Jim Meyering  <meyering@lucent.com>
59739
59740         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59741
59742         * lib/version-etc.c (N_): Remove definition.
59743         Revert most of last change.
59744         Instead, simply don't mark the `Copyright...' string for translation.
59745         Based on advice from Paul Eggert.
59746
59747         * lib/strtoxmax.c: Tweak comment.
59748
59749 2001-08-26  Jim Meyering  <meyering@lucent.com>
59750
59751         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59752
59753         * m4/xstrtoimax.m4: New file.
59754         * m4/xstrtoumax.m4: Add comments explaining why we
59755         AC_REPLACE_FUNCS(strtol).
59756
59757 2001-08-26  Jim Meyering  <meyering@lucent.com>
59758
59759         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
59760         of copyright with `%s' so translators don't get an untranslated
59761         message in 2002.
59762         (COPYRIGHT_YEAR): Define.
59763         (version_etc): Use fprintf rather than fputs.
59764         Suggestion from Ulrich Drepper.
59765
59766         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
59767
59768         * lib/strtoll.c: New file, from GNU libc.
59769         * lib/xstrtoimax.c: New file.
59770
59771         * lib/xstrtol.h: Add xstrtoimax.
59772         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
59773         * lib/strtoimax.c: New file.  Likewise, but first define
59774         STRTOUXMAX_SIGNED.
59775
59776         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
59777         ...
59778         * lib/strtoxmax.c: ... then renamed to this.
59779
59780 2001-08-18  Paul Eggert  <eggert@twinsun.com>
59781
59782         * m4/inttypes.m4: Add AC_PREREQ(2.13).
59783         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
59784         (jm_AC_TYPE_INTMAX_T): New macro.
59785         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
59786
59787         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
59788
59789         * m4/longlong.m4: Renamed from ulonglong.m4.
59790         * m4/inttypes.m4: Renamed from inttypes_h.m4.
59791         * m4/uintmax_t.m4: Removed.
59792
59793 2001-08-13  Paul Eggert  <eggert@twinsun.com>
59794
59795         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
59796         Port to Solaris 8, where 'sed' requires a space after the 'r'
59797         command, and where sh dislikes "$/".  Clean up the spacing a bit.
59798         Redirect output to $tmp just once.
59799
59800 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
59801
59802         * lib/addext.c (<errno.h>): Include.
59803         (errno): Declare if not defined.
59804         (addext): Work correctly when pathconf returns -1 and leaves
59805         errno alone because there is no limit.  Also, work even if
59806         pathconf returns a value greater than SIZE_MAX.
59807
59808 2001-08-12  Jim Meyering  <meyering@lucent.com>
59809
59810         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
59811         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
59812         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
59813         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
59814         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
59815         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
59816         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
59817         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
59818         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
59819         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
59820         utime.m4, utimes.m4, xstrtoumax.m4:
59821         Quote the first argument in each use of AC_DEFUN.
59822
59823 2001-08-12  Jim Meyering  <meyering@lucent.com>
59824
59825         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
59826         Simply `return getcwd (NULL, 0);'.
59827         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
59828         Use 1300 as initial value for length, not PATH_MAX.
59829
59830         * lib/pathmax.h: Clean up cpp syntax.
59831
59832 2001-08-12  Jim Meyering  <meyering@lucent.com>
59833
59834         * lib/gettimeofday.c: New file.
59835         * lib/gtod.h: New file.
59836         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
59837
59838 2001-08-05  Jim Meyering  <meyering@lucent.com>
59839
59840         * m4/jm-macros.m4: Require autoconf-2.52.
59841
59842 2001-08-04  Jim Meyering  <meyering@lucent.com>
59843
59844         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
59845         stmt, to get in sync with glibc.
59846
59847 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59848
59849         The following changes are from gettext 0.10.39 as maintained by
59850         Bruno Haible.
59851
59852         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
59853         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
59854         with inverted sense.  All uses changed.
59855
59856         * lib/mbswidth.c: Don't include <limits.h>.
59857         Include <stdlib.h> and <string.h> unconditionally.
59858         (iswcntrl, mbsinit, ISCNTRL): New macros.
59859         (mbsnwidth): Use K&R style function declarations.
59860         Don't bother checking for MB_LEN_MAX == 1, since the compiler
59861         can optimize it when MB_CUR_MAX == 1.
59862         The width of control characters is zero, not 1.
59863
59864 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59865
59866         The following changes are from gettext 0.10.39 as maintained by
59867         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
59868
59869         * m4/codeset.m4: Upgrade to serial AM1.
59870         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
59871         all uses changed.  Quote first arg of AC_DEFUN.
59872         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
59873
59874         * m4/iconv.m4: Upgrade to serial AM2.
59875         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
59876         Add --with-libconv-prefix.
59877         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
59878         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
59879         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
59880         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
59881         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
59882
59883         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
59884         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
59885         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
59886         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
59887         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
59888         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
59889         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
59890         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
59891         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
59892
59893         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
59894         string.h any more.
59895
59896         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
59897         not the default value.
59898
59899         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
59900         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
59901         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
59902         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
59903         Also check for iswcntrl, used for wcwidth fallback.
59904         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
59905         to Autoconf 2.13.
59906
59907 2001-08-03  Jim Meyering  <meyering@lucent.com>
59908
59909         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
59910         as it was in the original.  Reported by Paul Eggert.
59911
59912 2001-07-16  Jim Meyering  <meyering@lucent.com>
59913
59914         * m4/gettimeofday.m4: New file.
59915         Prompted by a report from Bernhard Baehr.
59916
59917 2001-07-15  Jim Meyering  <meyering@lucent.com>
59918
59919         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
59920         stuff. Now it's in ../Makefile.cfg.
59921
59922 2001-07-15  Jim Meyering  <meyering@lucent.com>
59923
59924         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
59925         (BUILT_SOURCES): Add unlocked-io.h.
59926         (io_functions): Define.
59927         (unlocked-io.h): New rule.
59928         (DISTCLEANFILES): Add unlocked-io.h.
59929         (all-local): Depend on unlocked-io.h, to ensure it is created.
59930
59931         * lib/unlocked-io.hin: New file
59932
59933         * lib/regex.c: Update from glibc.
59934
59935 2001-07-05  Jim Meyering  <meyering@lucent.com>
59936
59937         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
59938         recommendation.
59939         (libfetish_a_SOURCES): Put all .h files here instead.
59940         Remove a thus-exposed (better checks in automake) duplicate and
59941         two unnecessary .h files.
59942
59943 2001-07-04  Jim Meyering  <meyering@lucent.com>
59944
59945         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
59946         that generates jm-glibc-io.m4 so that it doesn't trigger any make
59947         distcheck failure.
59948
59949 2001-07-02  Jim Meyering  <meyering@lucent.com>
59950
59951         The following changes were prompted by suggestions from Bruno Haible.
59952
59953         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
59954         is now generated.
59955         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
59956         definition of EXTRA_DIST.
59957         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
59958         ensure that the generated file is created/updated whenever the list
59959         of $(unlocked_functions) is changed.
59960         (jm-glibc-io.m4): New rule.
59961         (unlocked-io.h): New rule -- currently unused.
59962
59963 2001-06-24  Jim Meyering  <meyering@lucent.com>
59964
59965         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
59966         unmatched right bracket, rather than kludging it with an extra,
59967         falsely-matching quote in a comment.  Patch by Akim Demaille.
59968
59969 2001-06-11  Jim Meyering  <meyering@lucent.com>
59970
59971         * lib/regex.c: Update from GNU libc.
59972
59973 2001-05-27  Jim Meyering  <meyering@lucent.com>
59974
59975         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
59976         Check for ut_type in struct utmp.
59977
59978 2001-05-27  Jim Meyering  <meyering@lucent.com>
59979
59980         * lib/readutmp.h (UT_TYPE): Define.
59981
59982 2001-05-24  Jim Meyering  <meyering@lucent.com>
59983
59984         * lib/argmatch.c: Include "quote.h".
59985         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
59986         quote function.  Reported by Göran Uddeborg.
59987
59988 2001-05-22  Jim Meyering  <meyering@lucent.com>
59989
59990         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
59991         now that we use the package-supplied version unconditionally.
59992         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
59993
59994 2001-05-21  Jim Meyering  <meyering@lucent.com>
59995
59996         * m4/regex.m4: Change a couple backticks to single quotes to avoid
59997         shell syntax errors.
59998
59999 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60000
60001         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60002
60003 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60004
60005         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60006         Don't bother to check library strftime, since
60007         we'll be using our own my_strftime function anyway.
60008         Define my_strftime instead of strftime.
60009
60010 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60011
60012         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60013         which is not yet declared.
60014
60015 2001-05-15  Jim Meyering  <meyering@lucent.com>
60016
60017         * m4/regex.m4: Use proper quoting so brackets appear in the test
60018         program.
60019         Reported by, and with help from, Bruno Haible.
60020
60021 2001-05-13  Jim Meyering  <meyering@lucent.com>
60022
60023         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60024         undefined.
60025
60026 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60027
60028         dirname code cleanup.  base_name now behaves more compatibly
60029         with POSIX basename when given file names that have trailing
60030         slashes, and similarly for dir_name.  Add new primitives
60031         base_len and dir_len.  Put the directory-name-related decls
60032         into dirname.h.
60033
60034         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60035         * lib/backupfile.c (base_name): Likewise.
60036         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60037         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60038         * lib/makepath.c (strip_trailing_slashes): Likewise.
60039         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60040         ISSLASH): Likewise.
60041         * lib/rename.c (strip_trailing_slashes): Likewise.
60042         * lib/same.c (base_name): Likewise.
60043         * lib/stripslash.c (ISSLASH): Likewise.
60044
60045         * lib/addext.c: Include <dirname.h> after size_t is defined.
60046         * lib/backupfile.c: Likewise.
60047
60048         * lib/addext.c (addext): Use base_len to trim redundant
60049         trailing slashes instead of doing it ourselves.
60050         But do not trim the last slash if it is not redundant.
60051
60052         * lib/backupfile.c (find_backup_file_name,
60053         max_backup_version): Use base_len instead of rolling it ourselves.
60054         Handle the case of "" and (on DOS) "C:" correctly.
60055
60056         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60057         needed. Include <string.h>, <dirname.h>.
60058         (base_name): Allow file names ending in slashes, other than names
60059         that are all slashes.  In this case, return the basename followed
60060         by the slashes.  This is more general, and can be used in places
60061         where the original base_name purposely had an assertion failure.
60062         (base_len): New function.
60063
60064         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60065         Do not include <assert.h>; no longer needed.
60066         Include xalloc.h.
60067         (memrchr): Remove decl.
60068         (dir_name_r): Remove.
60069         (dir_len): Renamed from dirlen.  All callers changed.
60070         Rewrite in terms of base_name, for simplicity and consistency.
60071         (dir_name): Never return NULL.  All callers changed.
60072         Do not include <stdlib.h> in test program; no longer needed.
60073         return 0; is fine for test program.
60074
60075         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60076         New macros.
60077         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60078
60079         * lib/path-concat.c (path_concat): Use base_len to compute
60080         base length, not strlen; this means we cannot rely on memcpy
60081         to null-terminate.
60082
60083         * lib/same.c (STREQ): Remove.
60084         (same_name): Handle the case where the basename ends in trailing '/'.
60085
60086         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60087         a slash was stripped.  Do not strip the last slash after a
60088         file system prefix.
60089
60090 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60091
60092         * lib/Makefile.am (libfetish_a_SOURCES):
60093         Add strftime.c, since we now compile it on all hosts.
60094
60095         * lib/strftime.c (my_strftime):
60096         Define to nstrftime if emacs, but only if my_strftime is not defined.
60097         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60098         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60099         Add one more extra argument: a nanoseconds value.
60100         All uses changed.
60101         (ns): New macro.
60102         (my_strftime function): Add %N format.
60103         (emacs_strftimeu): Renamed from emacs_strftime,
60104         with extra ut argument.
60105
60106 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60107
60108         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60109
60110 2001-04-21  Jim Meyering  <meyering@lucent.com>
60111
60112         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60113         doesn't interfere.
60114
60115 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60116
60117         * m4/ftruncate.m4: Check for chsize.
60118         Link with ftruncate.o unconditionally if ftruncate is missing.
60119         This was required when cross-compiling to i586-mingw32msvc.
60120
60121 2001-04-08  Jim Meyering  <meyering@lucent.com>
60122
60123         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60124         recomputed; that's necessary when the offset spans a DST transition.
60125         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60126
60127 2001-04-02  Jim Meyering  <meyering@lucent.com>
60128
60129         * lib/regex.h, regex.c: Update from GNU libc.
60130
60131 2001-03-24  Jim Meyering  <meyering@lucent.com>
60132
60133         * m4/jm-macros.m4: Require autoconf-2.49d.
60134
60135 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60136
60137         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60138
60139 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60140
60141         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60142
60143 2001-03-17  Jim Meyering  <meyering@lucent.com>
60144
60145         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60146         now that the version in autoconf is equivalent.
60147         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60148
60149         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60150         Suggestion from Akim Demaille.
60151
60152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60153         (jm_PREREQ_TEMPNAME): New function.
60154
60155 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60156
60157         * lib/tempname.c (uint64_t): Define to uintmax_t if
60158         not defined, and if UINT64_MAX is not defined.
60159         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60160         Reported by John David Anglin.
60161
60162 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60163
60164         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60165         resolve alias if codeset is empty.
60166         * lib/config.charset (BeOS): Use wildcard syntax.
60167
60168 2001-03-13  Jim Meyering  <meyering@lucent.com>
60169
60170         * lib/path-concat.c (path_concat)
60171         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60172         concatenating e.g., `C:' and `foo'.
60173         From Bruno Haible.
60174
60175 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60176
60177         * lib/localcharset.c (locale_charset): Don't use
60178         setlocale(LC_CTYPE,NULL). Don't return NULL.
60179         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60180
60181 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60182
60183         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60184         support for DOS/DJGPP.
60185
60186 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60187
60188         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60189         lacks mkstemp.  Compile our own tempname.c if we compile our own
60190         mkstemp.c, as mkstemp relies on tempname.
60191
60192 2001-03-01  Jim Meyering  <meyering@lucent.com>
60193
60194         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60195         AH_VERBATIM really does output its argument verbatim.
60196
60197 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60198
60199         * lib/Makefile.am (libfetish_a_SOURCES):
60200         Add dup-safer.c, fopen-safer.c.
60201         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60202
60203         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60204         * lib/unistd-safer.h: New files.
60205
60206 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60207
60208         The mkstemp replacement is taken from glibc 2.2.2, with some
60209         portability fixes for use outside glibc, as follows:
60210
60211         * lib/tempname.c (struct_stat64): New macro.
60212         (direxists, __gen_tempname): Use it.
60213         This avoids a portability problem with Solaris 8.
60214
60215         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60216         (<stddef.h>, <stdint.h>, <string.h>):
60217         Include only if STDC_HEADERS || _LIBC.
60218         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60219         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60220         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60221         (__set_errno): Define this macro if <errno.h> doesn't.
60222         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60223         Define these macros if <stdio.h> doesn't.
60224         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60225         Define these macros if <sys/stat.h>
60226         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60227         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60228         __xstat64): Define if not _LIBC.
60229         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60230         (__gen_tempname): Invoke gettimeofday only if
60231         HAVE_GETTIMEOFDAY || _LIBC;
60232         otherwise, fall back on plain "time".
60233         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60234
60235         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60236
60237         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60238
60239 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60240
60241         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60242
60243 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60244
60245         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60246         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60247         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60249
60250 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60251
60252         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60253         Remove workaround macros for hosts that have mbrtowc but not
60254         mbstate_t, as we now insist on proper declarations for both
60255         before using mbrtowc.
60256
60257 2001-02-17  Jim Meyering  <meyering@lucent.com>
60258
60259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60260         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60261         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60262         UnixWare 7.1.1.
60263
60264         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60265         rather than AC_CACHE_VAL.
60266
60267 2001-02-17  Jim Meyering  <meyering@lucent.com>
60268
60269         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60270         around included file name.
60271
60272         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60273
60274         * lib/strftime.c: Update from GNU libc (the only changes were to
60275         comments).
60276
60277 2001-02-17  Jim Meyering  <meyering@lucent.com>
60278
60279         * lib/regex.c: Update from libc.
60280
60281 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60282
60283         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60284         clash.
60285
60286 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60287
60288         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60289         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60290         Reported by Mark Hounschell via Paul Eggert.
60291
60292 2001-02-07  Jim Meyering  <meyering@lucent.com>
60293
60294         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60295
60296 2001-02-05  Jim Meyering  <meyering@lucent.com>
60297
60298         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60299         it includes the patch required for `large file' support with at least
60300         HP-UX's 10.20 /bin/cc.
60301
60302 2001-02-03  Jim Meyering  <meyering@lucent.com>
60303
60304         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60305         AS_IF, now that it works once again (mysteriously).
60306         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60307
60308 2001-01-30  Jim Meyering  <meyering@lucent.com>
60309
60310         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60311         * m4/chown.m4: Rename conftestchown to conftest.chown.
60312         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60313         s/conftestdir2/conftest.d2/.
60314         * m4/utimes.m4: s/conftestdata/conftest.data/
60315         Inspired by Pavel Roskin's change in autoconf.
60316
60317 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60318
60319         * lib/config.charset: Update for FreeBSD 4.2.
60320
60321 2001-01-27  Jim Meyering  <meyering@lucent.com>
60322
60323         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60324         a use of AS_IF.
60325         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60326
60327 2001-01-26  Jim Meyering  <meyering@lucent.com>
60328
60329         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60330         quotearg.c includes it.
60331
60332 2001-01-26  Jim Meyering  <meyering@lucent.com>
60333
60334         * lib/quotearg.c: Include stddef.h.
60335         * lib/quote.c: Include stddef.h.
60336         Reported by Axel Kittenberger.
60337
60338         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60339         line in double quotes so that it evokes a better diagnostic.
60340         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60341         Reported by Axel Kittenberger.
60342
60343 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60344
60345         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60346         as if it was a `charset'.
60347
60348 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60349
60350         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60351         has const.
60352
60353 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60354
60355         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60356         to avoid a warning.  Add back 'const' to inptr.
60357
60358 2001-01-20  Jim Meyering  <meyering@lucent.com>
60359
60360         Be sure that headers are checked before used in code compiled
60361         for the type checks.
60362         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60363         In place of that, invoke jm_CHECK_ALL_TYPES.
60364         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60365         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60366         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60367         The check for ssize_t was mistakenly run before the test for unistd.h.
60368
60369         The configure-time check for stdbool.h was missing.
60370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60371         (jm_PREREQ_HASH): New function.
60372
60373 2001-01-17  Jim Meyering  <meyering@lucent.com>
60374
60375         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60376         for autoconf-2.49c.
60377         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60378
60379 2001-01-16  Jim Meyering  <meyering@lucent.com>
60380
60381         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60382         From Bruno Haible.
60383
60384 2001-01-14  Jim Meyering  <meyering@lucent.com>
60385
60386         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60387         foo and bar.  Create conftestdir/ in the script, not in the C code.
60388         Remove directories in the script, not in the C code.
60389         Remove conftestdir{,2} before trying to create the directory.
60390         Make the entire configure script fail if the mkdir fails.
60391
60392 2001-01-14  Jim Meyering  <meyering@lucent.com>
60393
60394         * lib/rename.c: New file.  From Volker Borchert.
60395         Include stdlib.h, string.h or strings.h, and xalloc.h.
60396         Use strip_trailing_slashes rather than open-coding it.
60397
60398 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60399
60400         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60401
60402 2001-01-03  Jim Meyering  <meyering@lucent.com>
60403
60404         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60405         of local `inptr' to avoid warning with some system declarations of
60406         iconv.
60407
60408 2001-01-02  Volker Borchert  <bt@teknon.de>
60409
60410         * m4/rename.m4: New file.
60411         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60412
60413 2001-01-01  Jim Meyering  <meyering@lucent.com>
60414
60415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60416         even on systems with utmpx.h.  It's necessary for the declaration of
60417         utmp's ut_user member.  Reported by Andreas Jaeger.
60418
60419         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60420         available. They are required for the declarations of getgrgid and
60421         getpwuid resp.
60422         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60423         Reported by Andreas Jaeger.
60424
60425 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60426
60427         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60428         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60429         so `make install' also works in VPATH builds.
60430
60431 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60432
60433         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60434         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60435         can be used in subdirectories.
60436
60437 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60438
60439         * lib/modechange.c: Do not assume that mode_t uses the
60440         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60441         the other-execute bit of FOO even if S_IXOTH != 1.
60442
60443         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60444         WOTH, XOTH, ALLM): New macros.
60445         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60446          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60447         Use them.
60448         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60449         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60450         (mode_compile):
60451         No need to use uintmax_t; unsigned long is long enough.
60452         Don't bother to get suffix since we don't use it.
60453
60454 2000-12-26  Jim Meyering  <meyering@lucent.com>
60455
60456         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60457         better with autoheader.
60458
60459 2000-12-24  Jim Meyering  <meyering@lucent.com>
60460
60461         * lib/hash.c (is_prime): Return explicit boolean values.
60462         (hash_get_first): Return NULL to appease Irix5.6's 89.
60463         Reported by Nelson Beebe.
60464
60465 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60466
60467         * lib/localcharset.c (locale_charset): Add support for Win32.
60468
60469 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60470
60471         * lib/physmem.h, lib/physmem.c: New files.
60472
60473         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60474         (noinst_HEADERS): Add physmem.h.
60475
60476         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60477         't' for compatibility with Solaris 8 sort.
60478
60479 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60480
60481         * lib/config.charset: Add support for BeOS.
60482
60483 2000-12-17  Jim Meyering  <meyering@lucent.com>
60484
60485         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60486         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60487
60488 2000-12-16  Jim Meyering  <meyering@lucent.com>
60489
60490         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60491         N and M) would have treated it like `chown N:N FILE'.
60492
60493         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60494
60495 2000-12-16  Jim Meyering  <meyering@lucent.com>
60496
60497         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60498         SHELLS_FILE to a file name that's useful on djgpp systems.
60499         Include stdlib.h.
60500         (ADDITIONAL_DEFAULT_SHELLS): Define.
60501         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60502         Based mostly on a patch from Prashant TR.
60503
60504 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60505
60506         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60507         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60508         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60509
60510 2000-12-08  Andreas Schwab  <schwab@suse.de>
60511
60512         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60513         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60514
60515 2000-12-07  Jim Meyering  <meyering@lucent.com>
60516
60517         * lib/stripslash.c (ISSLASH): Define.
60518         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60519         `/'.
60520         From Prashant TR.
60521
60522         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60523         (dir_name_r): Declare this function as static.
60524         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60525         manifest itself on a name containing a mix of slashes and
60526         backslashes.
60527         Make this function work with names starting with a DOS-style
60528         drive letter and colon prefix.
60529         (dir_name): Append `.' if necessary.
60530         Based mostly on patches from Prashant TR and Eli Zaretskii.
60531
60532         * lib/dirname.h (dir_name_r): Remove prototype.
60533
60534 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60535
60536         * m4/off_t-format.m4: Remove this file.
60537         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60538
60539 2000-12-06  Jim Meyering  <meyering@lucent.com>
60540
60541         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60542         replacement strtoull, we may well need the replacement strtoul, too.
60543         Check for declarations of strtoul and strtoull.
60544         Check for strtol.  Mainly as a cue to cause automake to include
60545         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60546         Check for limits.h -- strtol.c needs it.
60547
60548 2000-12-05  Jim Meyering  <meyering@lucent.com>
60549
60550         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60551
60552 2000-12-04  Jim Meyering  <meyering@lucent.com>
60553
60554         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60555         Also include memory.h, stdlib.h, unistd.h if appropriate.
60556         Reported by Andreas Jaeger (conflicting declaration of malloc).
60557
60558 2000-12-02  Jim Meyering  <meyering@lucent.com>
60559
60560         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60561         * m4/jm-macros.m4 (jm_MACROS): require it.
60562
60563 2000-12-02  Jim Meyering  <meyering@lucent.com>
60564
60565         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60566
60567 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60568
60569         * lib/memrchr.c: Include <config.h> before any system include file.
60570
60571 2000-11-30  Jim Meyering  <meyering@lucent.com>
60572
60573         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60574
60575 2000-11-30  Jim Meyering  <meyering@lucent.com>
60576
60577         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60578
60579 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60580
60581         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60582
60583 2000-11-26  Jim Meyering  <meyering@lucent.com>
60584
60585         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60586
60587 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60588
60589         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60590         size of (size_t) -1; it's not portable.
60591
60592 2000-11-17  Jim Meyering  <meyering@lucent.com>
60593
60594         * lib/strstr.c: Update from GNU libc.
60595
60596 2000-11-17  Akim Demaille  <akim@epita.fr>
60597
60598         * lib/obstack.h: Formatting changes.
60599         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60600         prevent type checking.
60601         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60602         cast the value to (void *): assigning a `foo *' to a `void *'
60603         variable is valid.
60604         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60605
60606 2000-11-16  Jim Meyering  <meyering@lucent.com>
60607
60608         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60609
60610 2000-11-11  Jim Meyering  <meyering@lucent.com>
60611
60612         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60613
60614 2000-11-10  Jim Meyering  <meyering@lucent.com>
60615
60616         * lib/obstack.h: Update from GNU libc.
60617         * lib/obstack.c: Likewise.
60618
60619 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60620
60621         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60622
60623 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60624
60625         * lib/getusershell.c (setusershell): Use rewind rather than
60626         fseek/fseeko, to avoid configuration hassles with fseeko.
60627         Don't bother opening SHELLS_FILE if shellstream is NULL;
60628         it's not necessary.
60629
60630 2000-11-05  Jim Meyering  <meyering@lucent.com>
60631
60632         * lib/makepath.h (make_dir): Declare.
60633         * lib/makepath.c (make_dir): Remove `static' attribute.
60634         Tweak a comment.
60635
60636 2000-11-04  Jim Meyering  <meyering@lucent.com>
60637
60638         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60639
60640 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60641
60642         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60643         last one in a bucket, advance to the next bucket.
60644
60645 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60646
60647         * lib/fnmatch.c: Do not comment out all the code if we are using
60648         the GNU C library, because in some cases we are replacing buggy
60649         code in the GNU C library itself.
60650
60651 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60652
60653         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60654         (regex_compile): Catch bogus \(\1\).
60655
60656 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60657
60658         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60659         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60660         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60661
60662 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60663
60664         * lib/error.h, getline.h, modechange.h:
60665         Remove "2000" from Copyright line, as the file hasn't been
60666         changed this year other than in the copyright notice.
60667
60668         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60669         was changed this year.
60670
60671 2000-10-29  Jim Meyering  <meyering@lucent.com>
60672
60673         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60674         renaming.
60675         * m4/ls-mntd-fs.m4: Likewise
60676
60677 2000-10-29  Jim Meyering  <meyering@lucent.com>
60678
60679         * lib/xstat.in: Fix grammar in comment.
60680
60681 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
60682
60683         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60684         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60685         doesn't define __restrict_arr.
60686
60687 2000-10-28  Jim Meyering  <meyering@lucent.com>
60688
60689         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60690         (jm_PREREQ_MEMCHR): New function.
60691
60692 2000-10-28  Jim Meyering  <meyering@lucent.com>
60693
60694         * lib/memchr.c: Update from libc.
60695         Adjust for portability:
60696         [HAVE_STDLIB_H]: Include stdlib.h.
60697         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60698         Undef __memchr, too.
60699         [!weak_alias]: Define __memchr to memchr.
60700
60701         * lib/regex.c: Update from libc.
60702         * lib/regex.h: Likewise.
60703         * lib/getopt1.c: Likewise.
60704         * lib/memcmp.c: Likewise.
60705
60706         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60707         Avoid using fseek, when possible -- it's broken by design.
60708         Patch by Ulrich Drepper.
60709
60710 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
60711
60712         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60713         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60714         Giving in to popular pressure to shut up the compiler with casts.
60715
60716 2000-10-26  Jim Meyering  <meyering@lucent.com>
60717
60718         * lib/strftime.c: Update from libc.
60719
60720 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
60721
60722         * regex.c: More `unsigned char' -> `re_char' changes.
60723         Also change several `int' into `re_wchar_t'.
60724         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60725         (PUSH_FAILURE_POINTER): Don't cast any more.
60726         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60727         We want GCC to complain, since this piece of code makes
60728         re_match non-reentrant, which *should* be fixed.
60729         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60730         (EXTEND_BUFFER): Use RETALLOC.
60731         (SET_LIST_BIT): Don't cast.
60732         (re_wchar_t): New type.
60733         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60734         that those two functions will always properly return.
60735         (IMMEDIATE_QUIT_CHECK): Cast to void.
60736         (analyse_first): Use recursion rather than an explicit stack.
60737         (re_compile_fastmap): Can't fail anymore.
60738         (re_search_2): Don't check re_compile_fastmap for failure.
60739         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60740         Now also sets the new value (passed in a new argument).
60741         (re_match_2_internal): Use it.
60742         Also, use a new var `reg' of type size_t when looping through regs
60743         rather than reuse the inappropriate `mcnt'.
60744
60745 2000-10-25  Jim Meyering  <meyering@lucent.com>
60746
60747         * lib/obstack.c: Update from libc.
60748
60749 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
60750
60751         * regex.c (regex_compile): Change the way of handling a range from
60752         a char less than 256 to a char not less than 256.
60753
60754 2000-10-24  Andrew Innes  <andrewi@gnu.org>
60755
60756         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
60757         NT-Emacs only.
60758         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
60759         so that re_search functions only quit when callers expect them to.
60760
60761 2000-10-23  Jim Meyering  <meyering@lucent.com>
60762
60763         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
60764         wrong.  That set_locale call must not have any side effects.
60765         From Paul Eggert.
60766
60767 2000-10-22  Jim Meyering  <meyering@lucent.com>
60768
60769         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
60770         [CYCLIC]: Remove now-unused definition.
60771
60772         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
60773         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
60774         Suggestion from Ulrich Drepper.
60775
60776 2000-10-21  Jim Meyering  <meyering@lucent.com>
60777
60778         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
60779         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
60780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
60781
60782 2000-10-21  Jim Meyering  <meyering@lucent.com>
60783
60784         * lib/dirname.c (memrchr): Declare if necessary.
60785         (dir_name): Remove the restriction that there be no
60786         trailing slashes.  Now, this code skips past them, effectively
60787         ignoring them.
60788         [TEST_DIRNAME] (main): New unit tests.
60789
60790         * lib/memrchr.c: New file from GNU libc.
60791         Undef __memrchr, too.
60792         [!weak_alias]: Define __memrchr to memrchr.
60793         Guard weak_alias use with `#ifdef weak_alias'.
60794
60795 2000-10-21  Jim Meyering  <meyering@lucent.com>
60796
60797         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
60798         (dir_name): Use dir_name_r.
60799         * lib/dirname.h (dir_name_r): Declare it.
60800
60801 2000-10-17  Jim Meyering  <meyering@lucent.com>
60802
60803         * lib/quote.h (PARAMS): Define and use.
60804         Reported by Akim Demaille.
60805
60806         * lib/getopt.c: Update from libc.
60807
60808 2000-10-16  Jim Meyering  <meyering@lucent.com>
60809
60810         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
60811         setlocale.
60812         From Jan Fedak.
60813
60814 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
60815
60816         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
60817
60818 2000-09-25  Jim Meyering  <meyering@lucent.com>
60819
60820         * lib/md5.h (rol): Define (from GnuPG).
60821
60822         * lib/sha.c: Give credit (GnuPG) where due.
60823         (M): Use rol rather than open-coding it.
60824         Add a FIXME comment.
60825
60826 2000-09-21  Jim Meyering  <meyering@lucent.com>
60827
60828         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
60829         Reported by Michael Stone.
60830
60831 2000-09-20  Jim Meyering  <meyering@lucent.com>
60832
60833         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
60834         (noinst_HEADERS): Add sha.h.
60835         Based on code from Scott G. Miller and from GnuPG.
60836
60837 2000-09-18  Jim Meyering  <meyering@lucent.com>
60838
60839         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
60840         LIBS. Otherwise, everyone ends up linking with -lelf for some
60841         configurations.
60842         Reported by Mike Stone.
60843
60844 2000-09-15  Jim Meyering  <meyering@lucent.com>
60845
60846         * lib/regex.c: Update from libc.
60847
60848 2000-09-10  Jim Meyering  <meyering@lucent.com>
60849
60850         * lib/getopt.c (_getopt_internal): Update from glibc.
60851
60852 2000-09-09  Jim Meyering  <meyering@lucent.com>
60853
60854         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
60855         think it should be used as a general replacement for isascii.
60856         * lib/fnmatch.c: Likewise.
60857         * lib/mbswidth.c: Likewise
60858         * lib/regex.c: Likewise.
60859
60860         Don't use atoi.
60861         * lib/userspec.c: Include sys/param.h and limits.h.
60862         Include xstrtol.h.
60863         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60864         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
60865         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
60866         UID, GID.  Check range.
60867
60868 2000-09-06  Jim Meyering  <meyering@lucent.com>
60869
60870         * lib/getopt.c (_getopt_internal): Update from glibc.
60871
60872 2000-08-30  Jim Meyering  <meyering@lucent.com>
60873
60874         * lib/strftime.c: Merge in changes from GNU libc.
60875
60876 2000-08-26  Jim Meyering  <meyering@lucent.com>
60877
60878         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
60879         * m4/fpending.m4: New file.
60880
60881 2000-08-26  Jim Meyering  <meyering@lucent.com>
60882
60883         * lib/closeout.c: Include "__fpending.h".
60884         (close_stdout_status): Return right away if there's nothing to flush.
60885
60886         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
60887         * lib/__fpending.c: New file.
60888         * lib/__fpending.h: New file.
60889
60890 2000-08-20  Jim Meyering  <meyering@lucent.com>
60891
60892         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
60893         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
60894         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
60895
60896 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
60897
60898         Improve fileutils installation on systems where running
60899         programs (like install) can't be unlinked.
60900         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
60901         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
60902
60903 2000-08-07  Paul Eggert  <eggert@twinsun.com>
60904
60905         Standardize on "memory exhausted" instead of "Memory exhausted"
60906         or "virtual memory exhausted".
60907         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
60908         "virtual memory exhausted".
60909         * lib/same.c (same_name): Invoke xalloc_die instead of printing
60910         our own message.
60911         * lib/userspec.c (parse_user_spec): Likewise.
60912         * lib/bumpalloc.h: comment fix
60913         * lib/same.c, userspec.c: Include xalloc.h.
60914
60915         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
60916         not char *const and pointing to a constant array.
60917         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
60918         (xrealloc): Comment fix.
60919
60920         * lib/userspec.c (parse_user_spec):
60921         Don't translate a message until just before returning,
60922         to avoid unnecessary translation.
60923
60924 2000-08-07  Jim Meyering  <meyering@lucent.com>
60925
60926         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
60927         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
60928         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
60929         getgroups.c, gethostname.c, getopt.h, group-member.c,
60930         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
60931         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
60932         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
60933         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
60934         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
60935         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
60936         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
60937         yesno.c: Back out Copyright date changes for each file with no change
60938         this year.  This eases coordination with other programs using the same
60939         source code modules.  From Paul Eggert.
60940
60941 2000-08-06  Paul Eggert  <eggert@twinsun.com>
60942
60943         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
60944         not char, for compatibility with glibc 2.1.3 strftime.c.
60945
60946 2000-08-03  Greg McGary  <greg@mcgary.org>
60947
60948         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
60949         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
60950         (EXTEND_BUFFER): Use them.
60951
60952 2000-08-01  Jim Meyering  <meyering@lucent.com>
60953
60954         * lib/dirname.c (ISSLASH): Define.
60955         (BACKSLASH_IS_PATH_SEPARATOR): Define.
60956         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
60957         both `\' and `/' may be use as path separators.
60958         Based on a patch from Prashant TR.
60959
60960 2000-07-31  Paul Eggert  <eggert@twinsun.com>
60961
60962         * lib/quotearg.c (quotearg_n_options): Don't make the initial
60963         slot vector a constant, since it might get modified.
60964
60965 2000-07-31  Jim Meyering  <meyering@lucent.com>
60966
60967         * lib/xmalloc.c: Use `virtual memory exhausted', not
60968         `Memory exhausted'.
60969         * lib/obstack.c (print_and_abort): Likewise.
60970
60971 2000-07-30  Paul Eggert  <eggert@twinsun.com>
60972
60973         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
60974         buffer, so that the caller can always quote one small
60975         component of a "memory exhausted" message in slot 0.
60976         From a suggestion by Jim Meyering.
60977
60978 2000-07-30  Jim Meyering  <meyering@lucent.com>
60979
60980         * lib/makepath.c (make_path): Quote the other instance, too.
60981
60982         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
60983         (STATIC_BUF_SIZE): Define.
60984         (quotearg_n_options): Use only statically allocated storage when
60985         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
60986         than STATIC_BUF_SIZE.
60987
60988 2000-07-29  Jim Meyering  <meyering@lucent.com>
60989
60990         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
60991         * lib/dirname.c (dir_name): Likewise.
60992
60993         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
60994         `/'.
60995
60996         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
60997         (dir_name): Assert that there are no trailing slashes.
60998
60999 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61000
61001         * lib/mbswidth.h (mbswidth): Add a flags argument.
61002         (mbswidth): New declaration.
61003         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61004         * lib/mbswidth.c (mbswidth): Add a flags argument.
61005         (mbsnwidth): New function.
61006
61007 2000-07-24  Jim Meyering  <meyering@lucent.com>
61008
61009         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61010
61011 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61012
61013         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61014
61015 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61016
61017         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61018         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61019         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61020         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61021         invoke multibyte primitives.
61022
61023 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61024
61025         * lib/quotearg.c:
61026         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61027         so that mbstate_t is always defined.
61028
61029         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61030         be 1 in at least one GCC installation, and this configuration
61031         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61032         performance on hosts that have mbrtowc but have only unibyte
61033         locales, but I assume these hosts are rare.
61034
61035 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61036
61037         * lib/mbswidth.c (_XOPEN_SOURCE):
61038         Don't define; this causes problems on Solaris 7.
61039         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61040
61041 2000-07-23  Jim Meyering  <meyering@lucent.com>
61042
61043         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61044         too: getgrgid, getpwuid, getuid.
61045
61046 2000-07-23  Jim Meyering  <meyering@lucent.com>
61047
61048         * lib/basename.c (base_name): Add an assertion.
61049
61050 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61051
61052         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61053         shadow its mbsinit function.
61054
61055 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61056
61057         * lib/mbswidth.h: New file.
61058         * lib/mbswidth.c: New file.
61059         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61060         (noinst_HEADERS): Add mbswidth.h.
61061
61062 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61063
61064         * lib/config.charset: Add support for FreeBSD. Improve support for
61065         HP-UX and IRIX 6.
61066
61067 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61068
61069         * m4/mbswidth.m4: New file.
61070         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61071
61072 2000-07-15  Jim Meyering  <meyering@lucent.com>
61073
61074         * lib/makepath.c: Include quote.h.
61075         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61076         corresponding argument in a `quote (...)' call.
61077         Give better diagnostics.
61078
61079         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61080         (noinst_HEADERS): Add quote.h.
61081
61082         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61083         from tar's src/misc.c.
61084         * lib/quote.h: New file.  Prototypes for same.
61085
61086 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61087
61088         From a suggestion by Bruno Haible.
61089         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61090         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61091         to decide whether to define the BeOS workaround macro;
61092         this adjusts to the change to AC_MBSTATE_T.
61093
61094 2000-07-14  Jim Meyering  <meyering@lucent.com>
61095
61096         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61097         jm_AC_TYPE_UINTMAX_T.
61098
61099 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61100
61101         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61102
61103         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61104         quotearg_buffer_restyled): Add support for
61105         clocale_quoting_style.  Undo previous change to
61106         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61107         and "{RIGHT QUOTATION MARK}" msgids.
61108
61109 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61110
61111         From a suggestion by Bruno Haible.
61112         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61113         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61114         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61115         and mbstate_t, to a single-part test that simply defines mbstate_t.
61116         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61117         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61118
61119 2000-07-10  Jim Meyering  <meyering@lucent.com>
61120
61121         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61122
61123         * m4/gnu-source.m4: Output to confdefs.h directly.
61124         Suggestion from Akim Demaille.
61125
61126 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61127
61128         The old behavior of quoting `like this' doesn't look good with
61129         newer, ISO-style fonts.  See:
61130         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61131
61132         Instead, quote "like this" by default.  Let the translator
61133         tailor the locale-specific quoting behavior by providing
61134         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61135
61136         * lib/quotearg.c (N_): New macro.
61137         (gettext_default): New function.
61138         (quotearg_buffer_restyled): Use
61139         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61140         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61141
61142 2000-07-09  Jim Meyering  <meyering@lucent.com>
61143
61144         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61145         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61146
61147         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61149
61150 2000-07-09  Jim Meyering  <meyering@lucent.com>
61151
61152         * lib/Most files: Update copyright dates to include 2000.
61153
61154 2000-07-08  Jim Meyering  <meyering@lucent.com>
61155
61156         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61157         if not defined.
61158         (xgethostname): Remove now-unnecessary #ifdef.
61159         Move declaration of `err' into loop where it's used.
61160
61161 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61162         and Bruno Haible  <haible@clisp.cons.org>
61163
61164         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61165         only if the test for an object-type mbstate_t fails.  This
61166         prevents us from mistakenly reporting that mbstate_t is a
61167         system object type after we "#define mbstate_t int" to work
61168         around its lack.
61169
61170 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61171         and Bruno Haible  <haible@clisp.cons.org>
61172
61173         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61174
61175 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61176
61177         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61178         to strerror_r.
61179         Include <ctype.h> for use of isalpha.
61180
61181 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61182
61183         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61184         by allocating a larger buffer. Test the gethostname return value for
61185         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61186         returns an error and ENAMETOOLONG isn't defined.
61187
61188 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61189
61190         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61191         dimension.
61192
61193 2000-07-04  Jim Meyering  <meyering@lucent.com>
61194
61195         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61196         of the deprecated AC_CHECKING.
61197
61198 2000-07-04  Jim Meyering  <meyering@lucent.com>
61199
61200         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61201         Reported by Bruno Haible.
61202
61203 2000-07-04  Jim Meyering  <meyering@lucent.com>
61204
61205         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61206         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61207         lacks mbrtowc.
61208
61209 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61210
61211         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61212         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61213
61214 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61215         and Bruno Haible  <haible@clisp.cons.org>
61216
61217         * lib/quotearg.c (mbrtowc):
61218         Assign to *pwc, and return 1 only if result is nonzero.
61219         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61220
61221 2000-07-03  Jim Meyering  <meyering@lucent.com>
61222
61223         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61224
61225 2000-07-03  Jim Meyering  <meyering@lucent.com>
61226
61227         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61228         This is necessary to get a definition of e.g., UTMP_FILE on
61229         HP-UX 10.20.
61230         From Bob Proulx.
61231
61232 2000-07-02  Jim Meyering  <meyering@lucent.com>
61233
61234         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61235
61236         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61237         AC_LIBOBJ(function_name).
61238         * m4/chown.m4: Likewise.
61239         * m4/fnmatch.m4: Likewise.
61240         * m4/ftruncate.m4: Likewise.
61241         * m4/getgroups.m4: Likewise.
61242         * m4/getline.m4: Likewise.
61243         * m4/group-member.m4: Likewise.
61244         * m4/jm-macros.m4: Likewise.
61245         * m4/lstat.m4: Likewise.
61246         * m4/malloc.m4: Likewise.
61247         * m4/memcmp.m4: Likewise.
61248         * m4/nanosleep.m4: Likewise.
61249         * m4/putenv.m4: Likewise.
61250         * m4/realloc.m4: Likewise.
61251         * m4/regex.m4: Likewise.
61252         * m4/stat.m4: Likewise.
61253         * m4/strftime.m4: Likewise.
61254
61255 2000-07-02  Jim Meyering  <meyering@lucent.com>
61256
61257         * lib/quotearg.c (mbstate_t): Don't define here.
61258
61259 2000-07-02  Jim Meyering  <meyering@lucent.com>
61260
61261         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61262
61263 2000-07-01  Jim Meyering  <meyering@lucent.com>
61264
61265         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61266
61267 2000-07-01  Jim Meyering  <meyering@lucent.com>
61268
61269         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61270         problem.
61271
61272 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61273
61274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61275         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61276
61277 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61278
61279         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61280         per change in ../m4/ls-mntd-fs.m4.
61281         (read_filesystem_list): Ignore symbolic links.
61282
61283 2000-06-29  Jim Meyering  <meyering@lucent.com>
61284
61285         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61286         for declaration of strcmp.
61287
61288         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61289
61290         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61291         Avoid warning by casting result to `char *' to remove `const'.
61292
61293 2000-06-28  Jim Meyering  <meyering@lucent.com>
61294
61295         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61296         included by quotearg.c, for which we perform this test.  From
61297         Bruno Haible.
61298
61299 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61300
61301         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61302         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61303         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61304
61305 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61306
61307         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61308
61309 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61310
61311         savedir now sets errno on failure and invokes xmalloc to get memory.
61312         Fix a couple of other minor bugs while we're at it.
61313
61314         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61315         (NAMLEN): Remove macro.
61316         (malloc, realloc): Remove decls.
61317         (stpcpy): Likewise.
61318         ("xalloc.h"): Include.
61319         (NAME_SIZE_DEFAULT): New macro.
61320         (savedir): Use xmalloc / xrealloc to allocate memory.
61321         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61322         Skip "" directory entries.
61323         Use strlen to calculate directory entry length, since the old method
61324         is rarely used these days and isn't worth supporting.
61325         Don't use a pointer after freeing it.
61326         Check for integer overflow when calculating allocation size.
61327         Use memcpy to copy entries, instead of stpcpy.
61328         Set errno properly when returning NULL.
61329         Check for readdir error.
61330
61331 2000-06-26  Jim Meyering  <meyering@lucent.com>
61332
61333         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61334
61335 2000-06-25  Jim Meyering  <meyering@lucent.com>
61336
61337         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61338         Linux header bug when _XOPEN_SOURCE is defined to 500.
61339
61340 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61341
61342         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61343         deficiency.
61344
61345 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61346
61347         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61348         Include xalloc.h.
61349         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61350
61351 2000-06-24  Jim Meyering  <meyering@lucent.com>
61352
61353         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61354         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61355         for which strerror does return char*, but which lacks a conveniently
61356         accessible declaration of the function.  If the compile-test says
61357         strerror_r doesn't work, then resort to a `run'-test that works on
61358         BeOS and segfaults on DEC Unix.
61359
61360 2000-06-24  Jim Meyering  <meyering@lucent.com>
61361
61362         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61363
61364 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61365
61366         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61367         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61368
61369 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61370
61371         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61372         (mbrtowc, mbstate_t): Define substitutes if
61373         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61374         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61375         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61376
61377 2000-06-23  Jim Meyering  <meyering@lucent.com>
61378
61379         * m4/afs.m4: Add missing AC_MSG_RESULT.
61380         Reported by Bruno Haible.
61381
61382         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61383         Suggestion from Bruno Haible.
61384
61385 2000-06-23  Jim Meyering  <meyering@lucent.com>
61386
61387         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61388
61389 2000-06-21  Jim Meyering  <meyering@lucent.com>
61390
61391         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61392
61393 2000-06-21  Jim Meyering  <meyering@lucent.com>
61394
61395         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61396         (noinst_HEADERS): Add getstr.h.
61397
61398         * lib/getline.c (getstr): Move into a separate file.
61399         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61400         the following changes: new parameter, delim2; both delim[12]
61401         parameters have type `int', not `char'.  The latter would lose
61402         with 8-bit delimiters.
61403         * lib/getstr.h: New file.
61404
61405 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61406
61407         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61408         than 1024, return a memory chunk of least possible size, instead
61409         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61410         Use free/xmalloc instead of xrealloc to avoid copying for very long
61411         paths.
61412
61413 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61414
61415         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61416         the empty string.
61417
61418 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61419
61420         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61421         address, not strdup.  Include <stdlib.h> and don't declare free().
61422
61423 2000-06-19  Jim Meyering  <meyering@lucent.com>
61424
61425         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61426
61427 2000-06-18  Jim Meyering  <meyering@lucent.com>
61428
61429         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61430
61431         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61432         `checking whether...' message to be consistent with that of the
61433         lstat test.
61434
61435 2000-06-18  Jim Meyering  <meyering@lucent.com>
61436
61437         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61438         Besides, these days every porting target provides a mkdir function.
61439
61440         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61441         needed. (this snippet comes from src/system.h).
61442
61443 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61444
61445         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61446
61447 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61448
61449         * lib/human.c (adjust_value): New function.
61450         (human_readable_inexact): Apply rounding style even when
61451         printing approximate values.
61452
61453 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61454
61455         * lib/human.c (human_readable_inexact): Allow an input block
61456         size that is not a multiple of the output block size, and vice versa.
61457         Reported by Piergiorgio Sartor.
61458
61459 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61460
61461         * lib/getdate.y (get_date): Apply relative times after time
61462         zone indicator, not before.  Reported by Todd A. Jacobs.
61463
61464 2000-06-13  Jim Meyering  <meyering@lucent.com>
61465
61466         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61467
61468         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61469
61470 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61471
61472         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61473
61474 2000-06-12  Jim Meyering  <meyering@lucent.com>
61475
61476         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61477         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61478         optional argument.
61479         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61480         the optional argument, `lib'.
61481
61482 2000-06-08  Jim Meyering  <meyering@lucent.com>
61483
61484         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61485
61486 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61487
61488         Rewrite largefile configuration so that we don't need to run
61489         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61490         AC_CANONICAL_HOST in configure.in -- jmm]
61491
61492         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61493         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61494         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61495         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61496         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61497         All uses changed.
61498         Instead of inspecting the output of getconf, try to compile the
61499         test program without and with the macro definition.
61500         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61501         for getconf.  Instead, check for the needed flags by compiling
61502         test programs.
61503
61504 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61505
61506         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61507
61508 2000-06-04  Jim Meyering  <meyering@lucent.com>
61509
61510         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61511         SunOS 4.1.4 for which gid_t is an unsigned type.
61512
61513 2000-06-03  Jim Meyering  <meyering@lucent.com>
61514
61515         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61516         now that autoconf requires that.
61517
61518         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61519         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61520         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61521
61522 2000-06-03  Jim Meyering  <meyering@lucent.com>
61523
61524         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61525
61526 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61527
61528         * m4/glibc21.m4: New file.
61529         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61530
61531 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61532
61533         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61534         newer, don't install charset.alias.
61535         * lib/config.charset: Change the Linux/glibc rules so they become empty
61536         on glibc-2.1 or newer.
61537
61538 2000-06-02  Jim Meyering  <meyering@lucent.com>
61539
61540         * lib/mountlist.c: Back out last change.  Instead, do this...
61541         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61542         me_dummy member using the same `ignore'-testing code.
61543         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61544         fs_type strings.
61545         From Mark D. Roth.
61546
61547 2000-05-29  Jim Meyering  <meyering@lucent.com>
61548
61549         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61550         mounts with the `ignore' attribute.  Based on a patch from
61551         Mark D. Roth.
61552
61553 2000-05-28  Jim Meyering  <meyering@lucent.com>
61554
61555         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61556         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61557         * m4/stat.m4: Likewise.
61558         * m4/lstat.m4: Likewise.
61559         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61560
61561         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61562         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61563
61564 2000-05-26  Jim Meyering  <meyering@lucent.com>
61565
61566         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61567
61568 2000-05-24  Jim Meyering  <meyering@lucent.com>
61569
61570         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61571         autoconf requires that.
61572         * m4/lib-check.m4: Likewise.
61573         * m4/jm-macros.m4: Likewise.
61574         * m4/strftime.m4: Likewise.
61575
61576         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61577         AC_CHECK_DECLS, now that autoconf requires that.
61578
61579 2000-05-22  Jim Meyering  <meyering@lucent.com>
61580
61581         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61582         * m4/lstat.m4: Likewise.
61583
61584 2000-05-22  Jim Meyering  <meyering@lucent.com>
61585
61586         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61587
61588 2000-05-20  Jim Meyering  <meyering@lucent.com>
61589
61590         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61591         (jm_PREREQ): Use it.
61592
61593 2000-05-18  Jim Meyering  <meyering@lucent.com>
61594
61595         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61596         back, too, since it may have been modified by allocate_entry.
61597         (hash_delete): Rewrite to use neither the assignment operator
61598         nor the comma operator in an if-expression.
61599
61600 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61601
61602         * lib/closeout.c:
61603         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61604         Remove; no longer needed.
61605         "quotearg.h": Add include.
61606         (file_name): Do not bother to explicitly initialize to NULL; it's less
61607         efficient on some hosts.
61608         (close_stdout_status): Remove test as to whether stdout was already
61609         closed; it breaks for the case "echo x | sort >&-".
61610         Quote file name colons.
61611         Do not assume that _("write error") lacks format strings.
61612
61613 2000-05-15  Jim Meyering  <meyering@lucent.com>
61614
61615         * lib/version-etc.c (version_etc_copyright): Update the copyright
61616         string used in all --version output.
61617
61618 2000-05-14  Jim Meyering  <meyering@lucent.com>
61619
61620         * lib/closeout.c (close_stdout_set_file_name): New function.
61621         (close_stdout_status): Use new file-scoped global.
61622         Return right away if fstat says the stdout file descriptor is invalid.
61623         * lib/closeout.h (close_stdout_set_file_name): Declare.
61624
61625 2000-05-10  Jim Meyering  <meyering@lucent.com>
61626
61627         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61628         (close_stdout_set_status): New function.
61629         * lib/closeout.h (close_stdout_set_status): Declare.
61630
61631 2000-05-09  Jim Meyering  <meyering@lucent.com>
61632
61633         * m4/gettext.m4: Rename this...
61634         * m4/libintl.m4: ...to this.
61635
61636 2000-05-08  Jim Meyering  <meyering@lucent.com>
61637
61638         * lib/long-options.c: Don't include closeout.h.
61639         (parse_long_options): Don't call close_stdout for --version.
61640
61641 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61642
61643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61644         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61645         2.1.3 bug.  This avoids a clash when files like regex.c define
61646         _GNU_SOURCE.
61647
61648 2000-05-06  Jim Meyering  <meyering@lucent.com>
61649
61650         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61651         (AC_REPLACE_FUNCS): Add strnlen.
61652
61653         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61654         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61655
61656         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61657         AC_SEARCH_LIBS call for nanosleep.
61658         (LIB_NANOSLEEP): Set and AC_SUBST.
61659
61660 2000-05-06  Jim Meyering  <meyering@lucent.com>
61661
61662         * lib/strnlen.c: Undefine __strnlen and strnlen.
61663         [!weak_alias]: Define __strnlen to strnlen.
61664
61665         * lib/atexit.c: New file, from libiberty.
61666
61667 2000-05-06  Jim Meyering  <meyering@lucent.com>
61668
61669         * lib/closeout.c (close_stdout_status): Also check for errors on the
61670         stderr stream.
61671
61672 2000-05-05  Jim Meyering  <meyering@lucent.com>
61673
61674         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61675         AC_SEARCH_LIBS call for clock_gettime.
61676         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61677
61678         * m4/search-libs.m4: Update from autoconf.
61679
61680         su doesn't work on Solaris 2.6.
61681         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61682         <shadow.h>.  Reported by Dragos Harabor.
61683
61684 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61685
61686         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61687         memcpy instead of xmalloc, xrealloc, path_concat.
61688         (locale_charset): Treat empty environment variables as absent.
61689         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61690
61691 2000-05-04  Jim Meyering  <meyering@lucent.com>
61692
61693         * lib/getopt.c: Update from glibc.
61694         * lib/obstack.c: Likewise.
61695         * lib/obstack.h: Likewise.
61696         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
61697         file
61698
61699         * lib/regex.h: Likewise.
61700         * lib/strndup.c: Likewise.
61701         * lib/strnlen.c: New file, from glibc.
61702
61703 2000-05-03  Jim Meyering  <meyering@lucent.com>
61704
61705         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61706
61707 2000-05-02  Paul Eggert  <eggert@twinsun.com>
61708
61709         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61710         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
61711         compile-time test, rather than inspecting host and OS, to
61712         decide whether to define _LARGEFILE_SOURCE.
61713
61714 2000-05-01  Jim Meyering  <meyering@lucent.com>
61715
61716         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61717
61718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61719         Based on a patch from Bruno Haible.
61720
61721 2000-05-01  Jim Meyering  <meyering@lucent.com>
61722
61723         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61724
61725 2000-04-29  Jim Meyering  <meyering@lucent.com>
61726
61727         * lib/path-concat.c: Declare strdup only if it's not defined.
61728         * lib/canon-host.c: Likewise.
61729
61730 2000-04-28  Jim Meyering  <meyering@lucent.com>
61731
61732         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61733         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
61734         is included first, then limits.h is included by locale.h by libintl.h.
61735         From John David Anglin.
61736
61737 2000-04-25  Jim Meyering  <meyering@lucent.com>
61738
61739         * lib/makepath.c (S_IRWXUGO): Define.
61740         (make_path): Always perform explicit chmod if MODE specifies any
61741         of the `special' permission bits.  Prompted by a bug report against
61742         install from Mate Wierdl and Joost van Baal.
61743
61744 2000-04-18  Jim Meyering  <meyering@lucent.com>
61745
61746         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61747         (jm_PREREQ): Use it.
61748
61749 2000-04-18  Jim Meyering  <meyering@lucent.com>
61750
61751         * lib/README: New file.
61752
61753         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61754         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
61755
61756 2000-04-17  Jim Meyering  <meyering@lucent.com>
61757
61758         Get it right :-)
61759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
61760         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
61761         Suggestion from Akim Demaille.
61762
61763 2000-04-17  Jim Meyering  <meyering@lucent.com>
61764
61765         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
61766         the definition of it to rpl_strftime also defined-away the system's
61767         declaration.
61768
61769 2000-04-15  Jim Meyering  <meyering@lucent.com>
61770
61771         Use `C' to denote so-called `contiguous' files, the same way
61772         that tar does.
61773         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
61774         (ftypelet): Use S_ISCTG.
61775         From Michael Deutschmann.
61776
61777 2000-04-14  Jim Meyering  <meyering@lucent.com>
61778
61779         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
61780         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
61781         clobbered.
61782
61783 2000-04-14  Jim Meyering  <meyering@lucent.com>
61784
61785         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
61786
61787 2000-04-13  Jim Meyering  <meyering@lucent.com>
61788
61789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
61790         AH_VERBATIM to insert required #ifndef into config.h.in.
61791         Suggestion from Akim Demaille.
61792
61793 2000-04-12  Jim Meyering  <meyering@lucent.com>
61794
61795         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
61796         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
61797         Christian Krackowizer.
61798
61799         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
61800         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
61801         (AC_SYS_LARGEFILE): Require.
61802         (AM_C_PROTOTYPES): Require.
61803
61804 2000-04-08  Jim Meyering  <meyering@lucent.com>
61805
61806         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
61807         names don't conflict.  Reported by Eli Zaretskii.
61808
61809 2000-04-07  Jim Meyering  <meyering@lucent.com>
61810
61811         * lib/putenv.c: Move inclusion of errno.h so it follows that of
61812         sys/types.h, to work around system header problems on AIX 3.2.5.
61813         From Bruno Haible.
61814
61815 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
61816
61817         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
61818         bug.  Deal with the different error behavior of Irix iconv.
61819
61820 2000-04-05  Paul Eggert  <eggert@twinsun.com>
61821
61822         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
61823         IRIX if the installer said otherwise.
61824
61825 2000-04-05  Jim Meyering  <meyering@lucent.com>
61826
61827         Portability tweaks required for ultrix4.3.
61828         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
61829         (jm_CHECK_DECLS): Add getutent to the list of functions.
61830         (_jm_DECL_HEADERS): Add utmpx.h.
61831         From John David Anglin.
61832
61833         * m4/strftime.m4: Back out the 2000-04-02 change.
61834         Instead of that change, simply undefine putenv in the test program.
61835
61836 2000-04-05  Jim Meyering  <meyering@lucent.com>
61837
61838         Portability tweaks required for ultrix4.3.
61839         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
61840         getutent.
61841         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
61842         * lib/canon-host.c: Declare strdup.
61843         * lib/path-concat.c: Likewise.
61844         From John David Anglin.
61845
61846 2000-04-04  Jim Meyering  <meyering@lucent.com>
61847
61848         Be more DOS 8.3-friendly.
61849         * lib/ref-add.sin: Renamed from ref-add.sed.in.
61850         * lib/ref-del.sin: Renamed from ref-del.sed.in.
61851         * lib/Makefile.am: Reflect renaming.
61852         Reported by Eli Zaretskii.
61853
61854         Use a temporary file name that won't clash with `charset.alias'
61855         in the DOS 8.3 name space.
61856         * lib/Makefile.am (charset_tmp): Define.
61857         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
61858         (uninstall-local): Likewise.
61859         Reported by Eli Zaretskii.
61860
61861 2000-04-03  Jim Meyering  <meyering@lucent.com>
61862
61863         * m4/gettext.m4: Fix typo in comment.
61864
61865         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
61866         textutils/configure.in).  Suggestion from Paul Eggert.
61867         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
61868
61869 2000-04-02  Paul Eggert  <eggert@twinsun.com>
61870
61871         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
61872         variable in the shell rather than using putenv, which isn't
61873         portable.  This avoids the configure-time inter-test dependency
61874         on the potentially-renamed putenv function.
61875
61876 2000-03-30  Paul Eggert  <eggert@twinsun.com>
61877
61878         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
61879         before checking struct stat.st_blksize, so that
61880         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
61881
61882 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61883
61884         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
61885         since strftime.c uses HAVE_STRFTIME to decide whether to use
61886         the underlying strftime.
61887
61888 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61889
61890         * lib/time/strftime.c (my_strftime): Make sure we call the system
61891         strftime, not ourselves, when invoking the underlying strftime.
61892
61893 2000-03-24  Jim Meyering  <meyering@lucent.com>
61894
61895         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
61896         (charset_alias): Define.
61897         (install-exec-local): Factor out common code.
61898         (uninstall-local): Split lines longer than 80.
61899         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
61900         (SUFFIXES): Define.
61901         (.sed.in.sed): New rule.  Don't redirect directly to $@.
61902         (CLEANFILES): Add ref-add.sed and ref-del.sed.
61903
61904 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
61905
61906         * lib/config.charset: Output a line containing "Packages using this
61907         file".
61908         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
61909         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
61910         ref-del.sed): New rules.
61911
61912 2000-03-17  Jim Meyering  <meyering@lucent.com>
61913
61914         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
61915         Otherwise, include <strings.h>
61916
61917 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
61918
61919         * lib/unicodeio.c (utf8_wctomb): New function.
61920         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
61921         format instead of in UCS-4 with platform dependent endianness.
61922
61923 2000-03-10  Jim Meyering  <meyering@lucent.com>
61924
61925         * m4/lib-check.m4: Look for getspnam in -lgen, too.
61926         From Marco Franzen.
61927
61928 2000-03-07  Paul Eggert  <eggert@twinsun.com>
61929
61930         * lib/savedir.c (savedir): Work even if directory size is
61931         negative; this can happen with some screwy NFS configurations.
61932
61933 2000-03-06  Jim Meyering  <meyering@lucent.com>
61934
61935         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
61936         if it's NULL (because we ran out of memory).  From Bruno Haible.
61937
61938 2000-03-05  Jim Meyering  <meyering@lucent.com>
61939
61940         * lib/localcharset.c ("path-concat.h"): Include.
61941         (get_charset_aliases): Use path_concat instead of ANSI string
61942         concatenation.
61943
61944         * lib/unicodeio.h (PARAMS): Define.
61945         Use it to guard prototype.
61946
61947 2000-03-04  Jim Meyering  <meyering@lucent.com>
61948
61949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
61950         for lib/localcharset.c.
61951
61952 2000-03-04  Jim Meyering  <meyering@lucent.com>
61953
61954         * lib/Makefile.am (install-exec-local): Create $(libdir) before
61955         installing into it.
61956         (uninstall-local): Uncomment this rule so `make distcheck' works
61957         once again.
61958
61959         * lib/unicodeio.c (<errno.h>): Include it.
61960         (errno): Declare if not defined.
61961
61962         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
61963
61964         * lib/config.charset: New version, incorporating remarks from a linux
61965         i18n mailing list.  From Bruno Haible.
61966
61967 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
61968
61969         * m4/codeset.m4: New file.
61970         * m4/iconv.m4: New file.
61971         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
61972
61973 2000-03-03  Jim Meyering  <meyering@lucent.com>
61974
61975         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
61976
61977 2000-03-02  Jim Meyering  <meyering@lucent.com>
61978
61979         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
61980         the messages come out on separate lines.
61981
61982         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
61983         rather than jm_CHECK_DECLARATIONS.
61984         * m4/decl.m4: Remove now-unused file.
61985
61986         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
61987         geteuid.
61988
61989 2000-03-02  Jim Meyering  <meyering@lucent.com>
61990
61991         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
61992
61993 2000-03-01  Jim Meyering  <meyering@lucent.com>
61994
61995         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
61996         * lib/unicodeio.c: Likewise.
61997
61998 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
61999
62000         * lib/config.charset: New file.
62001         * lib/localcharset.c: New file.
62002         * lib/unicodeio.h, lib/unicodeio.c: New files.
62003         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62004         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62005         (noinst_HEADERS): Add unicodeio.h.
62006         (all-local, install-exec-local, charset.alias): New targets.
62007
62008 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62009
62010         * lib/quotearg.c (ALERT_CHAR): New macro.
62011         (quotearg_buffer_restyled): Use it.
62012
62013 2000-02-27  Jim Meyering  <meyering@lucent.com>
62014
62015         * m4/check-decl.m4: Add getenv to the list.
62016
62017 2000-02-27  Jim Meyering  <meyering@lucent.com>
62018
62019         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62020         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62021
62022         * lib/backupfile.c: Guard inclusion of stdlib.h with
62023         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62024         Declare malloc if needed.
62025
62026         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62027         `#ifndef HAVE_DECL..'
62028         now that autoconf always defines the HAVE_DECL_ symbols.
62029         * lib/human.c: Likewise.
62030         * lib/same.c: Likewise.
62031         * lib/strtoumax.c: Likewise.
62032
62033         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62034         declaration check was not run.
62035         * lib/hash.c: Likewise.
62036         * lib/human.c: Likewise.
62037         * lib/same.c: Likewise.
62038         * lib/strtoumax.c: Likewise.
62039
62040         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62041         `.', then first look up the entire `.'-containing string as a login
62042         name.
62043
62044 2000-02-23  Jim Meyering  <meyering@lucent.com>
62045
62046         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62047         in place of my hack.
62048
62049 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62050
62051         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62052         (textint): New typedef.
62053         (parser_control): Member year changed from int to textint.
62054         All uses changed.
62055         (YYSTYPE): Removed; replaced by %union with int and textint members.
62056         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62057         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62058         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62059         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62060         (date, number, to_year): Use width of number in digits, not its value,
62061         to determine whether it's a 2-digit year, or a 2-digit time.
62062         (yylex): Store number of digits of numeric tokens.
62063         Reported by John Kendall.
62064
62065         (parser_control): Changed from struct parser_control to typedef (for
62066         consistency).  All uses changed.
62067
62068         (tID): Removed; not used.
62069         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62070
62071 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62072
62073         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62074         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62075
62076 2000-02-12  Jim Meyering  <meyering@lucent.com>
62077
62078         * lib/userspec.c (ISDIGIT): Define it.
62079         (isdigit): Remove definition.
62080         (is_number): Use ISDIGIT, not isdigit.
62081         <libintl.h>: Include.
62082         (_ and N_): Define.
62083         (parse_user_spec): Mark translatable strings.
62084
62085 2000-02-10  Jim Meyering  <meyering@lucent.com>
62086
62087         With these changes, nanosleep.[ch] are finally enough like the other
62088         lib/* replacement files to compile on a few more losing systems.
62089
62090         * lib/nanosleep.h: Don't include config.h.
62091         Remove prototype from declaration of nanosleep.
62092         (PARAMS): Remove now-unneeded definition.
62093         * lib/nanosleep.c: #undef nanosleep.
62094         (rpl_nanosleep): Rename from nanosleep.
62095
62096 2000-02-10  Jim Meyering  <meyering@lucent.com>
62097
62098         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62099         gnu_nanosleep to rpl_nanosleep.
62100
62101 2000-02-09  Jim Meyering  <meyering@lucent.com>
62102
62103         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62104         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62105
62106 2000-02-08  Akim Demaille  <akim@epita.fr>
62107
62108         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62109         `[' and `]' and remove uses of `changequote'.
62110         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62111         (AC_SYS_LARGEFILE): Likewise.
62112         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62113         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62114         of changequote.
62115         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62116         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62117         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62118         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62119
62120 2000-02-05  Jim Meyering  <meyering@lucent.com>
62121
62122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62123         Remove explicit use of AC_HEADER_TIME.  It is required by
62124         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62125         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62126         in autoconf whereby the expansion of the latter ended up preceding
62127         the expansion of its prerequisite, AC_HEADER_TIME.
62128         Reported by Volker Borchert.
62129
62130 2000-02-03  Jim Meyering  <meyering@lucent.com>
62131
62132         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62133
62134 2000-02-03  Jim Meyering  <meyering@lucent.com>
62135
62136         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62137         rather than with `#if HAVE_UTMPNAME'.
62138
62139 2000-02-02  Jim Meyering  <meyering@lucent.com>
62140
62141         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62142         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62143         Reported by Eli Zaretskii.
62144
62145 2000-02-01  Jim Meyering  <meyering@lucent.com>
62146
62147         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62148
62149 2000-01-31  Jim Meyering  <meyering@lucent.com>
62150
62151         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62152         functions.  Add the time.h and sys/time.h headers along with the
62153         AC_REQUIRE'ment of AC_HEADER_TIME.
62154
62155 2000-01-31  Jim Meyering  <meyering@lucent.com>
62156
62157         * lib/nanosleep.h (nanosleep): Guard declaration with
62158         `#if ! HAVE_DECL_NANOSLEEP'.
62159         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62160         the declaration in that vendor's sys/timers.h.
62161         Reported by Christian Krackowizer.
62162
62163         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62164         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62165         (ISPRINT): Likewise.
62166         Reported by Tom Tromey.
62167
62168 2000-01-30  Jim Meyering  <meyering@lucent.com>
62169
62170         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62171
62172         * m4/prereq.m4 (utmp_includes): Define.
62173         Check for ut_user and ut_name members in both struct utmpx
62174         and struct utmp.
62175
62176 2000-01-30  Jim Meyering  <meyering@lucent.com>
62177
62178         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62179         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62180         header files where only utmpx.ut_user is declared.
62181
62182         * lib/readutmp.h (UT_USER): Define.
62183
62184 2000-01-29  Jim Meyering  <meyering@lucent.com>
62185
62186         * m4/lib-check.m4: New file containing library-related checks from
62187         fileutils and sh-utils (textutils had none).
62188
62189 2000-01-28  Jim Meyering  <meyering@lucent.com>
62190
62191         * m4/perl.m4: Change format of warning message to look more like that
62192         from the missing script.  Suggestion from François Pinard.
62193
62194 2000-01-25  Jim Meyering  <meyering@lucent.com>
62195
62196         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62197         well as time.h in the compile check.
62198         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62199         Fix typo in cross-compiling case: s/yes/no/.
62200
62201 2000-01-23  Jim Meyering  <meyering@lucent.com>
62202
62203         * m4/jm-macros.m4: Move df-related tests here from
62204         fileutils/configure.in
62205
62206         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62207         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62208
62209         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62210         s/space/ac_fsusage_space/.
62211         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62212
62213         * m4/ftruncate.m4: New file (derived from part of
62214         fileutils/configure.in).
62215         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62216         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62217
62218         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62219         AC_SUBST these here, rather than just in sh-util/configure.in, so
62220         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62221         all the same.
62222         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62223         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62224         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62225         (AC_SUBST(POW_LIBM)): Likewise.
62226         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62227
62228 2000-01-23  Jim Meyering  <meyering@lucent.com>
62229
62230         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62231         obstack.c.
62232
62233 2000-01-22  Jim Meyering  <meyering@lucent.com>
62234
62235         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62236
62237         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62238
62239         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62240         configure.in
62241         (AC_CHECK_HEADERS): Likewise for sh-utils.
62242         (AC_CHECK_HEADERS): Likewise for textutils.
62243         Merge the three lists of headers.
62244
62245         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62246         from fileutils' configure.in.
62247
62248         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62249         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62250         check-decl.m4.
62251
62252         * m4/check-decl.m4: Use #if rather than #ifdef.
62253         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62254         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62255         (_jm_DECL_HEADERS): Define new function.
62256         (jm_CHECK_DECLARATIONS): Require it.
62257
62258 2000-01-22  Jim Meyering  <meyering@lucent.com>
62259
62260         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62261         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62262         Required for some AIX systems.  Reported by Christian Krackowizer.
62263         [TESTING] (main): New function.
62264
62265         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62266         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62267         letters.
62268
62269         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62270         iswprint.
62271
62272         * lib/strverscmp.c (ISDIGIT): Define.
62273         (strverscmp): Use ISDIGIT, not isdigit.
62274
62275 2000-01-19  Jim Meyering  <meyering@lucent.com>
62276
62277         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62278         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62279         defines `struct timespec' in <sys/time.h>
62280
62281         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62282         Thanks to Akim for explaining.
62283
62284 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62285
62286         * lib/nanosleep.c (nanosleep):
62287         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62288         POSIX.1 doesn't require SA_INTERRUPT and some systems
62289         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62290         it's been part of POSIX.1 since day 1 (in 1988).
62291
62292 2000-01-17  Jim Meyering  <meyering@lucent.com>
62293
62294         * lib/interlock: Remove unused file.  Reported by François Pinard.
62295
62296 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62297
62298         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62299         alert, backslash, formfeed, and vertical tab unnecessarily in
62300         shell quoting style.
62301
62302 2000-01-16  Jim Meyering  <meyering@lucent.com>
62303
62304         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62305         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62306         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62307         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62308
62309 2000-01-16  Jim Meyering  <meyering@lucent.com>
62310
62311         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62312         because the latter didn't work.
62313
62314 2000-01-15  Jim Meyering  <meyering@lucent.com>
62315
62316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62317         (AC_REPLACE_FUNCS): Add memcpy and memset.
62318         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62319         Add strpbrk.
62320         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62321
62322 2000-01-12  Jim Meyering  <meyering@lucent.com>
62323
62324         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62325         (jm_PREREQ): Use it.
62326         (jm_PREREQ_READUTMP): New macro.
62327         (jm_PREREQ): Use it.
62328
62329 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62330
62331         Quote multibyte characters correctly.
62332         * m4/c-bs-a.m4: New file.
62333         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62334         (jm_PREREQ): Use it.
62335
62336 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62337
62338         * m4/uintmax_t.m4: Port to autoconf 2.13.
62339
62340 2000-01-08  Jim Meyering  <meyering@ascend.com>
62341
62342         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62343         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62344
62345 2000-01-04  Jim Meyering  <meyering@ascend.com>
62346
62347         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62348         jm_STRUCT_DIRENT_D_TYPE.
62349         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62350         jm_STRUCT_DIRENT_D_INO.
62351         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62352         jm_STRUCT_UTIMBUF.
62353         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62354         renamings.
62355         * m4/utime.m4: Likewise.
62356
62357         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62358         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62359
62360 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62361
62362         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62363         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62364
62365 2000-01-02  Jim Meyering  <meyering@ascend.com>
62366
62367         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62368         remember if this is necessary.
62369
62370 1999-12-26  Jim Meyering  <meyering@ascend.com>
62371
62372         * m4/jm-macros.m4: Use it here.
62373         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62374
62375 1999-12-23  Jim Meyering  <meyering@ascend.com>
62376
62377         * m4/jm-macros.m4: Check for clock_gettime (moved from
62378         fileutils/configure.in)
62379         Check for gettimeofday.
62380
62381 1999-12-20  Jim Meyering  <meyering@ascend.com>
62382
62383         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62384         autoconf-2.14a-1999-12-20.
62385
62386 1999-12-19  Jim Meyering  <meyering@ascend.com>
62387
62388         * m4/lstat-slash.m4: New file.
62389         * m4/jm-macros.m4: Use the new macro:
62390         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62391
62392 1999-12-07  Jim Meyering  <meyering@ascend.com>
62393
62394         * m4/perl.m4: Require that File::Compare be available, too.
62395         Too many systems seem to lack it.
62396
62397         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62398         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62399
62400 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62401
62402         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62403         problem with the QNX 4.25 shell, which doesn't propagate exit
62404         status of failed commands inside shell assignments.
62405
62406 1999-11-17  Jim Meyering  <meyering@ascend.com>
62407
62408         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62409
62410 1999-11-07  Jim Meyering  <meyering@ascend.com>
62411
62412         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62413
62414 1999-11-06  Jim Meyering  <meyering@ascend.com>
62415
62416         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62417         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62418
62419 1999-11-05  Jim Meyering  <meyering@ascend.com>
62420
62421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62422         configure.in of textutils, fileutils, and sh-utils into this one
62423         (shared between those packages) file.
62424         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62425         AC_STRUCT_ST_BLKSIZE.
62426
62427 1999-11-03  Jim Meyering  <meyering@ascend.com>
62428
62429         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62430         of AC_CHECK_TYPE checks includes unistd.h.
62431         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62432         Suggestion from Akim Demaille.
62433
62434 1999-10-30  Jim Meyering  <meyering@ascend.com>
62435
62436         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62437         m4-quoted string.
62438         * m4/ls-mntd-fs.m4: Likewise.
62439         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62440         * m4/jm-winsz1.m4: Likewise.
62441
62442         * m4/const.m4: Remove file, since the fix made it into the experimental
62443         version of autoconf.
62444         * m4/mktime.m4: Likewise.
62445
62446         * m4/check-type.m4: Remove file, now that the latest version of
62447         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62448
62449         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62450         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62451         AC_CHECK_TYPE.
62452
62453 1999-10-04  Jim Meyering  <meyering@ascend.com>
62454
62455         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62456
62457 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62458
62459         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62460         2.95.1 bug with HP-UX 10.20.
62461
62462 1999-09-17  Jim Meyering  <meyering@ascend.com>
62463
62464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62465         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62466         due to missing strdup (against sh-utils-2.0).
62467
62468 1999-08-29  Jim Meyering  <meyering@ascend.com>
62469
62470         * m4/jm-macros.m4: Require jm_BISON.
62471         * m4/bison.m4: New file.
62472
62473 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62474
62475         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62476         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62477
62478 1999-08-05  Jim Meyering  <meyering@ascend.com>
62479
62480         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62481         to avoid conflicts with `conftest' on 8+3 filesystems.
62482         Suggestion from Eli Zaretskii.
62483
62484 1999-08-04  Jim Meyering  <meyering@ascend.com>
62485
62486         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62487         fileutils and sh-utils (textutils's getline test was inadequate).
62488         (AM_FUNC_GETLINE): Run this test.
62489         (AC_CHECK_FUNCS): Check for getdelim.
62490         Reported by Bob Proulx.
62491
62492 1999-08-02  Jim Meyering  <meyering@ascend.com>
62493
62494         * m4/jm-macros.m4: Add a comment.
62495
62496 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62497
62498         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62499         <inttypes.h> defines strtoumax as a macro (and not as a
62500         function).
62501
62502 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62503
62504         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62505         that we can shift, multiply and divide unsigned long long
62506         values; Ultrix cc can't do it.
62507
62508 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62509
62510         * m4/mktime.m4: New file, which is a preview of what should appear
62511         in the next public autoconf release.
62512
62513 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62514
62515         * m4/lfs.m4: Remove this file.
62516         * m4/largefile.m4: New file.  It contains the old contents of
62517         lfs.m4, except that all names with prefix AC_LFS have been
62518         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62519         compatible with future autoconf versions.  Also, some minor m4
62520         quoting problems have been fixed.
62521
62522 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62523
62524         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62525         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62526         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62527         and simplify the shell code.
62528
62529 1999-08-01  Jim Meyering  <meyering@ascend.com>
62530
62531         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62532         m4.
62533
62534 1999-07-20  Jim Meyering  <meyering@ascend.com>
62535
62536         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62537
62538 1999-07-15  Jim Meyering  <meyering@ascend.com>
62539
62540         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62541
62542 1999-05-22  Jim Meyering  <meyering@ascend.com>
62543
62544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62545
62546 1999-05-20  Jim Meyering  <meyering@ascend.com>
62547
62548         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62549         Add a colon after each `then' in case $4 is empty.
62550
62551 1999-05-16  Jim Meyering  <meyering@ascend.com>
62552
62553         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62554
62555 1999-05-10  Jim Meyering  <meyering@ascend.com>
62556
62557         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62558
62559         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62560         AC_FUNC_MKTIME.
62561
62562 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62563
62564         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62565
62566 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62567
62568         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62569         not CPPFLAGS, so that linking works correctly in IRIX.
62570
62571 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62572
62573         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62574
62575 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62576
62577         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62578         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62579         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62580         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62581         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62582
62583         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62584
62585 1999-04-20  Jim Meyering  <meyering@ascend.com>
62586
62587         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62588         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62589         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62590
62591 1999-04-18  Jim Meyering  <meyering@ascend.com>
62592
62593         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62594         * m4/jm-macros.m4: Use it.
62595
62596 1999-04-06  Jim Meyering  <meyering@ascend.com>
62597
62598         * m4/strftime.m4: Remove test for %f.
62599
62600 1999-03-29  Jim Meyering  <meyering@ascend.com>
62601
62602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62603         superset of the AC_TYPE_* checks in the textutils, fileutils,
62604         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62605         AC_TYPE_PID_T.
62606
62607 1999-03-28  Jim Meyering  <meyering@ascend.com>
62608
62609         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62610         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62611         replaced e.g., in the *.sh files of the sh-utils.
62612
62613 1999-03-20  Jim Meyering  <meyering@ascend.com>
62614
62615         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62616         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62617         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62618
62619 1999-03-19  Jim Meyering  <meyering@ascend.com>
62620
62621         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62622
62623 1999-03-12  Jim Meyering  <meyering@ascend.com>
62624
62625         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62626
62627 1999-03-07  Jim Meyering  <meyering@ascend.com>
62628
62629         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62630         declared.
62631
62632 1999-02-17  Jim Meyering  <meyering@ascend.com>
62633
62634         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62635         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62636
62637 1999-02-07  Jim Meyering  <meyering@ascend.com>
62638
62639         * m4/group-member.m4: New file -- extracted from sh-utils'
62640         configure.in.
62641
62642         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62643         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62644
62645 1999-02-06  Jim Meyering  <meyering@ascend.com>
62646
62647         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62648         * m4/fnmatch.m4: Likewise.
62649         * m4/getgroups.m4: Likewise.
62650         * m4/lstat.m4: Likewise.
62651         * m4/malloc.m4: Likewise.
62652         * m4/putenv.m4: Likewise.
62653         * m4/realloc.m4: Likewise.
62654         * m4/regex.m4: Likewise.
62655         * m4/stat.m4: Likewise.
62656         * m4/strftime.m4: Likewise.
62657         Suggestion from Alain Magloire.
62658
62659         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62660         * m4/fnmatch.m4: Likewise.
62661         * m4/getgroups.m4: Likewise.
62662         * m4/getline.m4: Likewise.
62663         * m4/lstat.m4: Likewise.
62664         * m4/malloc.m4: Likewise.
62665         * m4/memcmp.m4: Likewise.
62666         * m4/putenv.m4: Likewise.
62667         * m4/realloc.m4: Likewise.
62668         * m4/regex.m4: Likewise.
62669         * m4/stat.m4: Likewise.
62670         * m4/strftime.m4: Likewise.
62671         Suggestion from Alain Magloire.
62672
62673         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62674         an argument.
62675
62676         * m4/regex.m4: Add a run-time Test for proper operation of
62677         re_compile_pattern.
62678
62679 1999-01-31  Jim Meyering  <meyering@ascend.com>
62680
62681         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62682
62683 1999-01-30  Jim Meyering  <meyering@ascend.com>
62684
62685         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62686
62687         * m4/jm-mktime.m4: Make this a wrapper around the official
62688         AM_FUNC_MKTIME rather than my private copy, now that the official one
62689         is up to date.
62690         * m4/mktime.m4: Remove file.
62691
62692         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62693         * m4/uptime.m4: Likewise.
62694         * m4/uintmax_t.m4: Likewise.
62695
62696 1999-01-28  Jim Meyering  <meyering@ascend.com>
62697
62698         * m4/jm-macros.m4: Use jm_AFS.
62699         * m4/afs.m4: New file (from fileutils' configure.in).
62700
62701         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62702         * m4/chown.m4: Likewise.
62703         * m4/d-ino.m4: Likewise.
62704         * m4/d-type.m4: Likewise.
62705         * m4/fnmatch.m4: Likewise.
62706         * m4/getgroups.m4: Likewise.
62707         * m4/gettext.m4: Likewise.
62708         * m4/jm-mktime.m4: Likewise.
62709         * m4/jm-winsz2.m4: Likewise.
62710         * m4/lcmessage.m4: Likewise.
62711         * m4/ls-mntd-fs.m4: Likewise.
62712         * m4/malloc.m4: Likewise.
62713         * m4/memcmp.m4: Likewise.
62714         * m4/putenv.m4: Likewise.
62715         * m4/realloc.m4: Likewise.
62716         * m4/st_mtim.m4: Likewise.
62717         * m4/strftime.m4: Likewise.
62718
62719 1999-01-16  Jim Meyering  <meyering@ascend.com>
62720
62721         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62722         (ARGMATCH_DIE_DECL): Define.
62723
62724 1999-01-12  Jim Meyering  <meyering@ascend.com>
62725
62726         * m4/Makefile.am.in: Rewrite to avoid using fmt.
62727         Reported by Lars Hecking.
62728
62729 1999-01-10  Jim Meyering  <meyering@ascend.com>
62730
62731         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62732         gross kludge.
62733         * m4/inttypes_h.m4: Likewise.
62734         * m4/lstat.m4: Likewise.
62735         * m4/malloc.m4: Likewise.
62736         * m4/readdir.m4: Likewise.
62737         * m4/realloc.m4: Likewise.
62738         * m4/st_dm_mode.m4: Likewise.
62739         * m4/stat.m4: Likewise.
62740         * m4/utimbuf.m4: Likewise.
62741         * m4/utimes.m4: Likewise.
62742
62743         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62744         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
62745         comments in config.h.in are meaningful.
62746
62747         * m4/jm-macros.m4: Require autoconf-2.13 here.
62748
62749         * m4/regex.m4: By default, don't use the included regex.c on systems
62750         with glibc 2.  Suggestion from Uli Drepper.
62751
62752 1999-01-02  Jim Meyering  <meyering@ascend.com>
62753
62754         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62755
62756 1998-12-18  Jim Meyering  <meyering@ascend.com>
62757
62758         * m4/Makefile.am.in (Makefile.am): Simplify rule.
62759         Based on a suggestion from Lars Hecking.
62760
62761 1998-11-16  Paul Eggert  <eggert@twinsun.com>
62762
62763         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
62764
62765 1998-11-16  Jim Meyering  <meyering@ascend.com>
62766
62767         * m4/lfs.m4: Double-quote the `uname...` expression.
62768
62769 1998-11-14  Jim Meyering  <meyering@ascend.com>
62770
62771         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
62772         * m4/stat.m4: Likewise.
62773
62774 1998-11-03  Jim Meyering  <meyering@ascend.com>
62775
62776         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
62777         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
62778
62779 1998-10-18  Jim Meyering  <meyering@ascend.com>
62780
62781         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
62782
62783 1998-10-17  Jim Meyering  <meyering@ascend.com>
62784
62785         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
62786         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
62787         calls for those previously hard-coded headers.  Instead, take a new
62788         parameter.
62789         (jm_CHECK_DECLARATIONS): Reflect interface change.
62790         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
62791         (jm_CHECK_DECL_LOCALTIME_R): New macro.
62792
62793         * m4/mktime.m4: Test for spring-forward gap before long-running test.
62794
62795 1998-10-14  Jim Meyering  <meyering@ascend.com>
62796
62797         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
62798         instead of "TZ=America/Vancouver".  From Paul Eggert.
62799
62800 1998-10-11  Jim Meyering  <meyering@ascend.com>
62801
62802         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
62803         This adds a test for a recently added compatibility fix for mktime.c.
62804         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
62805
62806 1998-09-27  Jim Meyering  <meyering@ascend.com>
62807
62808         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
62809
62810         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
62811         ../configure.in, including a change from Gordon Matzigkeit to allow
62812         cross-compiling for the Hurd.
62813
62814         * m4/glibc.m4: New file/macro to test for the GNU C Library
62815         versions 1 and 2.  From Gordon Matzigkeit.
62816         Indent.
62817
62818 1998-09-21  Jim Meyering  <meyering@ascend.com>
62819
62820         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
62821
62822 1998-08-18  Paul Eggert  <eggert@twinsun.com>
62823
62824         Port nanosecond-resolution times to UnixWare 2.1.2 and
62825         pedantic Solaris 2.6.
62826
62827         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
62828         AC_STRUCT_ST_MTIM.
62829         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
62830         Generate name of ns member, instead of just 1 or undef.
62831         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
62832
62833 1998-08-15  Jim Meyering  <meyering@ascend.com>
62834
62835         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
62836         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
62837         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
62838         instead of jm_TYPE_SSIZE_T.
62839
62840 1998-08-12  Jim Meyering  <meyering@ascend.com>
62841
62842         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
62843
62844 1998-08-02  Jim Meyering  <meyering@ascend.com>
62845
62846         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
62847         in acconfig.h manually.
62848
62849 1998-07-31  Paul Eggert  <eggert@twinsun.com>
62850
62851         * m4/st_mtim.m4: New file.
62852
62853 1998-07-28  Jim Meyering  <meyering@ascend.com>
62854
62855         * m4/utimes.m4: Undef stat.
62856
62857 1998-07-25  Jim Meyering  <meyering@ascend.com>
62858
62859         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
62860         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
62861
62862 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
62863
62864         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
62865         uid and gid actually remain unchanged.
62866
62867 1998-07-07  Jim Meyering  <meyering@ascend.com>
62868
62869         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
62870
62871 1998-07-04  Jim Meyering  <meyering@ascend.com>
62872
62873         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
62874         to prove that this macro can be used in packages without regex.c.
62875
62876 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
62877
62878         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
62879         is to be used.
62880
62881 1998-07-03  Jim Meyering  <meyering@ascend.com>
62882
62883         * m4/gettext.m4: Add -lintl if it's found to be necessary.
62884
62885         * m4/gettext.m4: New file -- from gettext-0.10.35.
62886         * m4/lcmessage.m4: Likewise.
62887         * m4/progtest.m4: Likewise.
62888
62889         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
62890         * m4/jm-macros.m4: Require the new macro.
62891
62892 1998-06-29  Jim Meyering  <meyering@ascend.com>
62893
62894         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
62895         for the definition of NGROUPS (used in a system header included
62896         by sys/mount.h).
62897
62898 1998-06-28  Jim Meyering  <meyering@ascend.com>
62899
62900         * m4/ls-mntd-fs.m4: New file.
62901         * m4/fstypename.m4: New file.
62902
62903         * m4/jm-macros.m4: Require the new macro.
62904         * m4/jm-glibc-io.m4: New file.
62905
62906 1998-05-19  Jim Meyering  <meyering@ascend.com>
62907
62908         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
62909         * m4/lchown.m4: New file.
62910
62911         * m4/Makefile.am.in: New file.
62912         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
62913
62914 1998-05-14  Jim Meyering  <meyering@ascend.com>
62915
62916         * m4/Makefile.am (EXTRA_DIST): Add them.
62917         * m4/jm-macros.m4: New file.
62918         * m4/utimbuf.m4: New file.
62919
62920 1998-05-12  Jim Meyering  <meyering@ascend.com>
62921
62922         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
62923
62924 1998-05-11  Jim Meyering  <meyering@ascend.com>
62925
62926         * m4/isc-posix.m4: New file.
62927
62928 1998-05-10  Jim Meyering  <meyering@ascend.com>
62929
62930         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
62931
62932 1998-05-09  Jim Meyering  <meyering@ascend.com>
62933
62934         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
62935         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
62936         with automake.
62937
62938         * m4/ssize_t.m4: New file.
62939         * m4/mktime.m4: Remove file -- the new automake has this now.
62940
62941 1998-04-26  Jim Meyering  <meyering@ascend.com>
62942
62943         * m4/assert.m4: New file.
62944         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
62945
62946 1998-04-05  Jim Meyering  <meyering@ascend.com>
62947
62948         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
62949         (jm_PREREQ): Use it here.
62950
62951 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
62952
62953         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
62954         in acconfig.h.
62955
62956 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
62957
62958         * m4/prereq.m4: New file.
62959         * m4/error.m4: New file.
62960         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
62961
62962 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
62963
62964         * m4/getline.m4: Don't set am_cv_func_working_getline before the
62965         cache-check for the same variable -- that defeated the purpose of
62966         the test; the test program was never run.  This was a problem only
62967         on systems with losing getline functions -- HP-UX 10.20 is one.
62968         Reported by Bjorn Helgaas.
62969
62970 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
62971
62972         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
62973
62974 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
62975
62976         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
62977
62978         * m4/const.m4: New file.  Use an initializer in this declaration
62979         typedef int charset[2]; const charset x;
62980         Reported by Bob Glickstein.
62981
62982 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
62983
62984         * m4/chown.m4: Fix reversed types on -1 args to chown.
62985         From Kaveh Ghazi.
62986
62987 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
62988
62989         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
62990         Add lseek and memchr.
62991
62992         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
62993         T.E.Dickey <dickey@clark.net> said that some older preprocessors
62994         have a 20-character limit on names.
62995
62996 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
62997
62998         * m4/inttypes_h.m4: New file.
62999         * m4/uintmax_t.m4: New file.
63000         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63001
63002
63003         -----
63004
63005         Local Variables:
63006         coding: utf-8
63007         End:
63008
63009         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63010
63011         Copying and distribution of this file, with or without
63012         modification, are permitted provided the copyright notice
63013         and this notice are preserved.